Subversion Repositories SmartDukaan

Rev

Rev 3385 | Rev 3499 | 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
 
48 ashish 251
  }
252
 
3430 rajveer 253
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
254
 
255
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
256
 
257
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserById_call> resultHandler) throws org.apache.thrift.TException;
258
 
259
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByEmail_call> resultHandler) throws org.apache.thrift.TException;
260
 
261
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
262
 
263
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
264
 
265
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
266
 
267
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
268
 
269
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserState_call> resultHandler) throws org.apache.thrift.TException;
270
 
271
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
272
 
273
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
274
 
275
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
276
 
277
    public void removeAddressForUser(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
278
 
279
    public void setUserAsLoggedIn(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setUserAsLoggedIn_call> resultHandler) throws org.apache.thrift.TException;
280
 
281
    public void setUserAsLoggedOut(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setUserAsLoggedOut_call> resultHandler) throws org.apache.thrift.TException;
282
 
283
    public void setDefaultAddress(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setDefaultAddress_call> resultHandler) throws org.apache.thrift.TException;
284
 
285
    public void updatePassword(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
286
 
287
    public void forgotPassword(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.forgotPassword_call> resultHandler) throws org.apache.thrift.TException;
288
 
289
    public void getAllAddressesForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAddressesForUser_call> resultHandler) throws org.apache.thrift.TException;
290
 
291
    public void getAddressById(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddressById_call> resultHandler) throws org.apache.thrift.TException;
292
 
293
    public void getDefaultAddressId(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDefaultAddressId_call> resultHandler) throws org.apache.thrift.TException;
294
 
295
    public void getDefaultPincode(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDefaultPincode_call> resultHandler) throws org.apache.thrift.TException;
296
 
297
    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;
298
 
299
    public void getUserCommunicationById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationById_call> resultHandler) throws org.apache.thrift.TException;
300
 
301
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException;
302
 
303
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException;
304
 
305
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
306
 
307
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException;
308
 
309
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
310
 
311
    public void getMasterAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateByName_call> resultHandler) throws org.apache.thrift.TException;
312
 
313
    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;
314
 
315
    public void getAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
316
 
317
    public void getAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliateByName_call> resultHandler) throws org.apache.thrift.TException;
318
 
319
    public void getTrackerById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackerById_call> resultHandler) throws org.apache.thrift.TException;
320
 
321
    public void getAffiliatesByMasterAffiliate(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliatesByMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
322
 
323
    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;
324
 
325
    public void getTrackLogById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogById_call> resultHandler) throws org.apache.thrift.TException;
326
 
327
    public void getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogsByAffiliate_call> resultHandler) throws org.apache.thrift.TException;
328
 
329
    public void getTrackLogsByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogsByUser_call> resultHandler) throws org.apache.thrift.TException;
330
 
331
    public void getTrackLogs(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogs_call> resultHandler) throws org.apache.thrift.TException;
332
 
333
    public void createCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createCart_call> resultHandler) throws org.apache.thrift.TException;
334
 
335
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentCart_call> resultHandler) throws org.apache.thrift.TException;
336
 
337
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCart_call> resultHandler) throws org.apache.thrift.TException;
338
 
339
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsForUser_call> resultHandler) throws org.apache.thrift.TException;
340
 
341
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException;
342
 
343
    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;
344
 
345
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeCartStatus_call> resultHandler) throws org.apache.thrift.TException;
346
 
347
    public void addItemToCart(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
348
 
349
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
350
 
351
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeQuantity_call> resultHandler) throws org.apache.thrift.TException;
352
 
353
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
354
 
355
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
356
 
357
    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;
358
 
359
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
360
 
361
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
362
 
363
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
364
 
365
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
366
 
367
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkOut_call> resultHandler) throws org.apache.thrift.TException;
368
 
369
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetCart_call> resultHandler) throws org.apache.thrift.TException;
370
 
371
    public void getUserCount(UserType userType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCount_call> resultHandler) throws org.apache.thrift.TException;
372
 
373
    public void getAllUsers(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsers_call> resultHandler) throws org.apache.thrift.TException;
374
 
375
    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;
376
 
377
    public void getUserNotes(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserNotes_call> resultHandler) throws org.apache.thrift.TException;
378
 
379
    public void getMyResearchItems(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMyResearchItems_call> resultHandler) throws org.apache.thrift.TException;
380
 
381
    public void updateMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMyResearch_call> resultHandler) throws org.apache.thrift.TException;
382
 
383
    public void deleteItemFromMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromMyResearch_call> resultHandler) throws org.apache.thrift.TException;
384
 
385
    public void getBrowseHistoryItems(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBrowseHistoryItems_call> resultHandler) throws org.apache.thrift.TException;
386
 
387
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException;
388
 
389
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
390
 
391
  }
392
 
3374 rajveer 393
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 394
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
395
      public Factory() {}
396
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
397
        return new Client(prot);
398
      }
399
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
400
        return new Client(iprot, oprot);
401
      }
402
    }
403
 
404
    public Client(org.apache.thrift.protocol.TProtocol prot)
48 ashish 405
    {
3430 rajveer 406
      super(prot, prot);
48 ashish 407
    }
408
 
3430 rajveer 409
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 410
      super(iprot, oprot);
48 ashish 411
    }
412
 
3430 rajveer 413
    public User createAnonymousUser(String jsessionId) throws UserContextException, org.apache.thrift.TException
48 ashish 414
    {
553 chandransh 415
      send_createAnonymousUser(jsessionId);
416
      return recv_createAnonymousUser();
48 ashish 417
    }
418
 
3430 rajveer 419
    public void send_createAnonymousUser(String jsessionId) throws org.apache.thrift.TException
48 ashish 420
    {
553 chandransh 421
      createAnonymousUser_args args = new createAnonymousUser_args();
3430 rajveer 422
      args.setJsessionId(jsessionId);
423
      sendBase("createAnonymousUser", args);
48 ashish 424
    }
425
 
3430 rajveer 426
    public User recv_createAnonymousUser() throws UserContextException, org.apache.thrift.TException
48 ashish 427
    {
553 chandransh 428
      createAnonymousUser_result result = new createAnonymousUser_result();
3430 rajveer 429
      receiveBase(result, "createAnonymousUser");
48 ashish 430
      if (result.isSetSuccess()) {
431
        return result.success;
432
      }
553 chandransh 433
      if (result.ucex != null) {
434
        throw result.ucex;
48 ashish 435
      }
3430 rajveer 436
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
48 ashish 437
    }
438
 
3430 rajveer 439
    public User getUserById(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 440
    {
553 chandransh 441
      send_getUserById(userId);
442
      return recv_getUserById();
48 ashish 443
    }
444
 
3430 rajveer 445
    public void send_getUserById(long userId) throws org.apache.thrift.TException
48 ashish 446
    {
553 chandransh 447
      getUserById_args args = new getUserById_args();
3430 rajveer 448
      args.setUserId(userId);
449
      sendBase("getUserById", args);
48 ashish 450
    }
451
 
3430 rajveer 452
    public User recv_getUserById() throws UserContextException, org.apache.thrift.TException
48 ashish 453
    {
553 chandransh 454
      getUserById_result result = new getUserById_result();
3430 rajveer 455
      receiveBase(result, "getUserById");
48 ashish 456
      if (result.isSetSuccess()) {
457
        return result.success;
458
      }
553 chandransh 459
      if (result.ucex != null) {
460
        throw result.ucex;
48 ashish 461
      }
3430 rajveer 462
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
48 ashish 463
    }
464
 
3430 rajveer 465
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException
1491 vikas 466
    {
467
      send_getUserByEmail(email);
468
      return recv_getUserByEmail();
469
    }
470
 
3430 rajveer 471
    public void send_getUserByEmail(String email) throws org.apache.thrift.TException
1491 vikas 472
    {
473
      getUserByEmail_args args = new getUserByEmail_args();
3430 rajveer 474
      args.setEmail(email);
475
      sendBase("getUserByEmail", args);
1491 vikas 476
    }
477
 
3430 rajveer 478
    public User recv_getUserByEmail() throws UserContextException, org.apache.thrift.TException
1491 vikas 479
    {
480
      getUserByEmail_result result = new getUserByEmail_result();
3430 rajveer 481
      receiveBase(result, "getUserByEmail");
1491 vikas 482
      if (result.isSetSuccess()) {
483
        return result.success;
484
      }
485
      if (result.ucex != null) {
486
        throw result.ucex;
487
      }
3430 rajveer 488
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
1491 vikas 489
    }
490
 
3430 rajveer 491
    public User getUserByMobileNumber(long mobileNumber) throws UserContextException, org.apache.thrift.TException
3028 mandeep.dh 492
    {
493
      send_getUserByMobileNumber(mobileNumber);
494
      return recv_getUserByMobileNumber();
495
    }
496
 
3430 rajveer 497
    public void send_getUserByMobileNumber(long mobileNumber) throws org.apache.thrift.TException
3028 mandeep.dh 498
    {
499
      getUserByMobileNumber_args args = new getUserByMobileNumber_args();
3430 rajveer 500
      args.setMobileNumber(mobileNumber);
501
      sendBase("getUserByMobileNumber", args);
3028 mandeep.dh 502
    }
503
 
3430 rajveer 504
    public User recv_getUserByMobileNumber() throws UserContextException, org.apache.thrift.TException
3028 mandeep.dh 505
    {
506
      getUserByMobileNumber_result result = new getUserByMobileNumber_result();
3430 rajveer 507
      receiveBase(result, "getUserByMobileNumber");
3028 mandeep.dh 508
      if (result.isSetSuccess()) {
509
        return result.success;
510
      }
511
      if (result.ucex != null) {
512
        throw result.ucex;
513
      }
3430 rajveer 514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
3028 mandeep.dh 515
    }
516
 
3430 rajveer 517
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException
48 ashish 518
    {
553 chandransh 519
      send_createUser(user);
520
      return recv_createUser();
48 ashish 521
    }
522
 
3430 rajveer 523
    public void send_createUser(User user) throws org.apache.thrift.TException
48 ashish 524
    {
553 chandransh 525
      createUser_args args = new createUser_args();
3430 rajveer 526
      args.setUser(user);
527
      sendBase("createUser", args);
48 ashish 528
    }
529
 
3430 rajveer 530
    public User recv_createUser() throws UserContextException, org.apache.thrift.TException
48 ashish 531
    {
553 chandransh 532
      createUser_result result = new createUser_result();
3430 rajveer 533
      receiveBase(result, "createUser");
48 ashish 534
      if (result.isSetSuccess()) {
535
        return result.success;
536
      }
553 chandransh 537
      if (result.ucex != null) {
538
        throw result.ucex;
48 ashish 539
      }
3430 rajveer 540
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
48 ashish 541
    }
542
 
3430 rajveer 543
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException
48 ashish 544
    {
553 chandransh 545
      send_updateUser(user);
546
      return recv_updateUser();
48 ashish 547
    }
548
 
3430 rajveer 549
    public void send_updateUser(User user) throws org.apache.thrift.TException
48 ashish 550
    {
553 chandransh 551
      updateUser_args args = new updateUser_args();
3430 rajveer 552
      args.setUser(user);
553
      sendBase("updateUser", args);
48 ashish 554
    }
555
 
3430 rajveer 556
    public User recv_updateUser() throws UserContextException, org.apache.thrift.TException
48 ashish 557
    {
553 chandransh 558
      updateUser_result result = new updateUser_result();
3430 rajveer 559
      receiveBase(result, "updateUser");
48 ashish 560
      if (result.isSetSuccess()) {
561
        return result.success;
562
      }
553 chandransh 563
      if (result.ucex != null) {
564
        throw result.ucex;
48 ashish 565
      }
3430 rajveer 566
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
48 ashish 567
    }
568
 
3430 rajveer 569
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 570
    {
553 chandransh 571
      send_deleteUser(userId);
572
      return recv_deleteUser();
48 ashish 573
    }
574
 
3430 rajveer 575
    public void send_deleteUser(long userId) throws org.apache.thrift.TException
48 ashish 576
    {
553 chandransh 577
      deleteUser_args args = new deleteUser_args();
3430 rajveer 578
      args.setUserId(userId);
579
      sendBase("deleteUser", args);
48 ashish 580
    }
581
 
3430 rajveer 582
    public boolean recv_deleteUser() throws UserContextException, org.apache.thrift.TException
48 ashish 583
    {
553 chandransh 584
      deleteUser_result result = new deleteUser_result();
3430 rajveer 585
      receiveBase(result, "deleteUser");
48 ashish 586
      if (result.isSetSuccess()) {
587
        return result.success;
588
      }
553 chandransh 589
      if (result.ucex != null) {
590
        throw result.ucex;
48 ashish 591
      }
3430 rajveer 592
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
48 ashish 593
    }
594
 
3430 rajveer 595
    public UserState getUserState(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 596
    {
553 chandransh 597
      send_getUserState(userId);
598
      return recv_getUserState();
48 ashish 599
    }
600
 
3430 rajveer 601
    public void send_getUserState(long userId) throws org.apache.thrift.TException
48 ashish 602
    {
553 chandransh 603
      getUserState_args args = new getUserState_args();
3430 rajveer 604
      args.setUserId(userId);
605
      sendBase("getUserState", args);
48 ashish 606
    }
607
 
3430 rajveer 608
    public UserState recv_getUserState() throws UserContextException, org.apache.thrift.TException
48 ashish 609
    {
553 chandransh 610
      getUserState_result result = new getUserState_result();
3430 rajveer 611
      receiveBase(result, "getUserState");
48 ashish 612
      if (result.isSetSuccess()) {
613
        return result.success;
614
      }
553 chandransh 615
      if (result.ucex != null) {
616
        throw result.ucex;
48 ashish 617
      }
3430 rajveer 618
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
48 ashish 619
    }
620
 
3430 rajveer 621
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
48 ashish 622
    {
553 chandransh 623
      send_authenticateUser(email, password);
123 ashish 624
      return recv_authenticateUser();
625
    }
626
 
3430 rajveer 627
    public void send_authenticateUser(String email, String password) throws org.apache.thrift.TException
123 ashish 628
    {
629
      authenticateUser_args args = new authenticateUser_args();
3430 rajveer 630
      args.setEmail(email);
631
      args.setPassword(password);
632
      sendBase("authenticateUser", args);
123 ashish 633
    }
634
 
3430 rajveer 635
    public User recv_authenticateUser() throws AuthenticationException, org.apache.thrift.TException
123 ashish 636
    {
637
      authenticateUser_result result = new authenticateUser_result();
3430 rajveer 638
      receiveBase(result, "authenticateUser");
123 ashish 639
      if (result.isSetSuccess()) {
640
        return result.success;
641
      }
553 chandransh 642
      if (result.auex != null) {
643
        throw result.auex;
123 ashish 644
      }
3430 rajveer 645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
123 ashish 646
    }
647
 
3430 rajveer 648
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException
48 ashish 649
    {
650
      send_userExists(email);
651
      return recv_userExists();
652
    }
653
 
3430 rajveer 654
    public void send_userExists(String email) throws org.apache.thrift.TException
48 ashish 655
    {
656
      userExists_args args = new userExists_args();
3430 rajveer 657
      args.setEmail(email);
658
      sendBase("userExists", args);
48 ashish 659
    }
660
 
3430 rajveer 661
    public boolean recv_userExists() throws UserContextException, org.apache.thrift.TException
48 ashish 662
    {
663
      userExists_result result = new userExists_result();
3430 rajveer 664
      receiveBase(result, "userExists");
48 ashish 665
      if (result.isSetSuccess()) {
666
        return result.success;
667
      }
668
      if (result.ucx != null) {
669
        throw result.ucx;
670
      }
3430 rajveer 671
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
48 ashish 672
    }
673
 
3430 rajveer 674
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException
48 ashish 675
    {
571 rajveer 676
      send_addAddressForUser(userId, address, setDefault);
48 ashish 677
      return recv_addAddressForUser();
678
    }
679
 
3430 rajveer 680
    public void send_addAddressForUser(long userId, Address address, boolean setDefault) throws org.apache.thrift.TException
48 ashish 681
    {
682
      addAddressForUser_args args = new addAddressForUser_args();
3430 rajveer 683
      args.setUserId(userId);
684
      args.setAddress(address);
685
      args.setSetDefault(setDefault);
686
      sendBase("addAddressForUser", args);
48 ashish 687
    }
688
 
3430 rajveer 689
    public long recv_addAddressForUser() throws UserContextException, org.apache.thrift.TException
48 ashish 690
    {
691
      addAddressForUser_result result = new addAddressForUser_result();
3430 rajveer 692
      receiveBase(result, "addAddressForUser");
48 ashish 693
      if (result.isSetSuccess()) {
694
        return result.success;
695
      }
696
      if (result.ucx != null) {
697
        throw result.ucx;
698
      }
3430 rajveer 699
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
48 ashish 700
    }
701
 
3430 rajveer 702
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, org.apache.thrift.TException
48 ashish 703
    {
704
      send_removeAddressForUser(userid, addressId);
705
      return recv_removeAddressForUser();
706
    }
707
 
3430 rajveer 708
    public void send_removeAddressForUser(long userid, long addressId) throws org.apache.thrift.TException
48 ashish 709
    {
710
      removeAddressForUser_args args = new removeAddressForUser_args();
3430 rajveer 711
      args.setUserid(userid);
712
      args.setAddressId(addressId);
713
      sendBase("removeAddressForUser", args);
48 ashish 714
    }
715
 
3430 rajveer 716
    public boolean recv_removeAddressForUser() throws UserContextException, org.apache.thrift.TException
48 ashish 717
    {
718
      removeAddressForUser_result result = new removeAddressForUser_result();
3430 rajveer 719
      receiveBase(result, "removeAddressForUser");
48 ashish 720
      if (result.isSetSuccess()) {
721
        return result.success;
722
      }
723
      if (result.ucx != null) {
724
        throw result.ucx;
725
      }
3430 rajveer 726
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
48 ashish 727
    }
728
 
3430 rajveer 729
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, org.apache.thrift.TException
48 ashish 730
    {
731
      send_setUserAsLoggedIn(userId, timestamp);
732
      return recv_setUserAsLoggedIn();
733
    }
734
 
3430 rajveer 735
    public void send_setUserAsLoggedIn(long userId, long timestamp) throws org.apache.thrift.TException
48 ashish 736
    {
737
      setUserAsLoggedIn_args args = new setUserAsLoggedIn_args();
3430 rajveer 738
      args.setUserId(userId);
739
      args.setTimestamp(timestamp);
740
      sendBase("setUserAsLoggedIn", args);
48 ashish 741
    }
742
 
3430 rajveer 743
    public boolean recv_setUserAsLoggedIn() throws UserContextException, org.apache.thrift.TException
48 ashish 744
    {
745
      setUserAsLoggedIn_result result = new setUserAsLoggedIn_result();
3430 rajveer 746
      receiveBase(result, "setUserAsLoggedIn");
48 ashish 747
      if (result.isSetSuccess()) {
748
        return result.success;
749
      }
750
      if (result.ucx != null) {
751
        throw result.ucx;
752
      }
3430 rajveer 753
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
48 ashish 754
    }
755
 
3430 rajveer 756
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, org.apache.thrift.TException
48 ashish 757
    {
758
      send_setUserAsLoggedOut(userid, timestamp);
759
      return recv_setUserAsLoggedOut();
760
    }
761
 
3430 rajveer 762
    public void send_setUserAsLoggedOut(long userid, long timestamp) throws org.apache.thrift.TException
48 ashish 763
    {
764
      setUserAsLoggedOut_args args = new setUserAsLoggedOut_args();
3430 rajveer 765
      args.setUserid(userid);
766
      args.setTimestamp(timestamp);
767
      sendBase("setUserAsLoggedOut", args);
48 ashish 768
    }
769
 
3430 rajveer 770
    public boolean recv_setUserAsLoggedOut() throws UserContextException, org.apache.thrift.TException
48 ashish 771
    {
772
      setUserAsLoggedOut_result result = new setUserAsLoggedOut_result();
3430 rajveer 773
      receiveBase(result, "setUserAsLoggedOut");
48 ashish 774
      if (result.isSetSuccess()) {
775
        return result.success;
776
      }
777
      if (result.ucx != null) {
778
        throw result.ucx;
779
      }
3430 rajveer 780
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
48 ashish 781
    }
782
 
3430 rajveer 783
    public boolean setDefaultAddress(long userid, long addressId) throws UserContextException, org.apache.thrift.TException
506 rajveer 784
    {
785
      send_setDefaultAddress(userid, addressId);
786
      return recv_setDefaultAddress();
787
    }
788
 
3430 rajveer 789
    public void send_setDefaultAddress(long userid, long addressId) throws org.apache.thrift.TException
506 rajveer 790
    {
791
      setDefaultAddress_args args = new setDefaultAddress_args();
3430 rajveer 792
      args.setUserid(userid);
793
      args.setAddressId(addressId);
794
      sendBase("setDefaultAddress", args);
506 rajveer 795
    }
796
 
3430 rajveer 797
    public boolean recv_setDefaultAddress() throws UserContextException, org.apache.thrift.TException
506 rajveer 798
    {
799
      setDefaultAddress_result result = new setDefaultAddress_result();
3430 rajveer 800
      receiveBase(result, "setDefaultAddress");
506 rajveer 801
      if (result.isSetSuccess()) {
802
        return result.success;
803
      }
804
      if (result.ucx != null) {
805
        throw result.ucx;
806
      }
3430 rajveer 807
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
506 rajveer 808
    }
809
 
3430 rajveer 810
    public boolean updatePassword(long userid, String oldPassword, String newPassword) throws UserContextException, org.apache.thrift.TException
48 ashish 811
    {
593 rajveer 812
      send_updatePassword(userid, oldPassword, newPassword);
48 ashish 813
      return recv_updatePassword();
814
    }
815
 
3430 rajveer 816
    public void send_updatePassword(long userid, String oldPassword, String newPassword) throws org.apache.thrift.TException
48 ashish 817
    {
818
      updatePassword_args args = new updatePassword_args();
3430 rajveer 819
      args.setUserid(userid);
820
      args.setOldPassword(oldPassword);
821
      args.setNewPassword(newPassword);
822
      sendBase("updatePassword", args);
48 ashish 823
    }
824
 
3430 rajveer 825
    public boolean recv_updatePassword() throws UserContextException, org.apache.thrift.TException
48 ashish 826
    {
827
      updatePassword_result result = new updatePassword_result();
3430 rajveer 828
      receiveBase(result, "updatePassword");
48 ashish 829
      if (result.isSetSuccess()) {
830
        return result.success;
831
      }
832
      if (result.ucx != null) {
833
        throw result.ucx;
834
      }
3430 rajveer 835
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
48 ashish 836
    }
837
 
3430 rajveer 838
    public boolean forgotPassword(String email, String newPassword) throws UserContextException, org.apache.thrift.TException
582 rajveer 839
    {
896 rajveer 840
      send_forgotPassword(email, newPassword);
582 rajveer 841
      return recv_forgotPassword();
842
    }
843
 
3430 rajveer 844
    public void send_forgotPassword(String email, String newPassword) throws org.apache.thrift.TException
582 rajveer 845
    {
846
      forgotPassword_args args = new forgotPassword_args();
3430 rajveer 847
      args.setEmail(email);
848
      args.setNewPassword(newPassword);
849
      sendBase("forgotPassword", args);
582 rajveer 850
    }
851
 
3430 rajveer 852
    public boolean recv_forgotPassword() throws UserContextException, org.apache.thrift.TException
582 rajveer 853
    {
854
      forgotPassword_result result = new forgotPassword_result();
3430 rajveer 855
      receiveBase(result, "forgotPassword");
582 rajveer 856
      if (result.isSetSuccess()) {
857
        return result.success;
858
      }
859
      if (result.ucx != null) {
860
        throw result.ucx;
861
      }
3430 rajveer 862
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
582 rajveer 863
    }
864
 
3430 rajveer 865
    public List<Address> getAllAddressesForUser(long userId) throws UserContextException, org.apache.thrift.TException
593 rajveer 866
    {
867
      send_getAllAddressesForUser(userId);
868
      return recv_getAllAddressesForUser();
869
    }
870
 
3430 rajveer 871
    public void send_getAllAddressesForUser(long userId) throws org.apache.thrift.TException
593 rajveer 872
    {
873
      getAllAddressesForUser_args args = new getAllAddressesForUser_args();
3430 rajveer 874
      args.setUserId(userId);
875
      sendBase("getAllAddressesForUser", args);
593 rajveer 876
    }
877
 
3430 rajveer 878
    public List<Address> recv_getAllAddressesForUser() throws UserContextException, org.apache.thrift.TException
593 rajveer 879
    {
880
      getAllAddressesForUser_result result = new getAllAddressesForUser_result();
3430 rajveer 881
      receiveBase(result, "getAllAddressesForUser");
593 rajveer 882
      if (result.isSetSuccess()) {
883
        return result.success;
884
      }
885
      if (result.ucx != null) {
886
        throw result.ucx;
887
      }
3430 rajveer 888
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
593 rajveer 889
    }
890
 
3430 rajveer 891
    public Address getAddressById(long addressId) throws UserContextException, org.apache.thrift.TException
1893 vikas 892
    {
893
      send_getAddressById(addressId);
894
      return recv_getAddressById();
895
    }
896
 
3430 rajveer 897
    public void send_getAddressById(long addressId) throws org.apache.thrift.TException
1893 vikas 898
    {
899
      getAddressById_args args = new getAddressById_args();
3430 rajveer 900
      args.setAddressId(addressId);
901
      sendBase("getAddressById", args);
1893 vikas 902
    }
903
 
3430 rajveer 904
    public Address recv_getAddressById() throws UserContextException, org.apache.thrift.TException
1893 vikas 905
    {
906
      getAddressById_result result = new getAddressById_result();
3430 rajveer 907
      receiveBase(result, "getAddressById");
1893 vikas 908
      if (result.isSetSuccess()) {
909
        return result.success;
910
      }
911
      if (result.ucx != null) {
912
        throw result.ucx;
913
      }
3430 rajveer 914
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1893 vikas 915
    }
916
 
3430 rajveer 917
    public long getDefaultAddressId(long userId) throws UserContextException, org.apache.thrift.TException
593 rajveer 918
    {
919
      send_getDefaultAddressId(userId);
920
      return recv_getDefaultAddressId();
921
    }
922
 
3430 rajveer 923
    public void send_getDefaultAddressId(long userId) throws org.apache.thrift.TException
593 rajveer 924
    {
925
      getDefaultAddressId_args args = new getDefaultAddressId_args();
3430 rajveer 926
      args.setUserId(userId);
927
      sendBase("getDefaultAddressId", args);
593 rajveer 928
    }
929
 
3430 rajveer 930
    public long recv_getDefaultAddressId() throws UserContextException, org.apache.thrift.TException
593 rajveer 931
    {
932
      getDefaultAddressId_result result = new getDefaultAddressId_result();
3430 rajveer 933
      receiveBase(result, "getDefaultAddressId");
593 rajveer 934
      if (result.isSetSuccess()) {
935
        return result.success;
936
      }
937
      if (result.ucx != null) {
938
        throw result.ucx;
939
      }
3430 rajveer 940
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
593 rajveer 941
    }
942
 
3430 rajveer 943
    public String getDefaultPincode(long userId) throws UserContextException, org.apache.thrift.TException
784 rajveer 944
    {
945
      send_getDefaultPincode(userId);
946
      return recv_getDefaultPincode();
947
    }
948
 
3430 rajveer 949
    public void send_getDefaultPincode(long userId) throws org.apache.thrift.TException
784 rajveer 950
    {
951
      getDefaultPincode_args args = new getDefaultPincode_args();
3430 rajveer 952
      args.setUserId(userId);
953
      sendBase("getDefaultPincode", args);
784 rajveer 954
    }
955
 
3430 rajveer 956
    public String recv_getDefaultPincode() throws UserContextException, org.apache.thrift.TException
784 rajveer 957
    {
958
      getDefaultPincode_result result = new getDefaultPincode_result();
3430 rajveer 959
      receiveBase(result, "getDefaultPincode");
784 rajveer 960
      if (result.isSetSuccess()) {
961
        return result.success;
962
      }
963
      if (result.ucx != null) {
964
        throw result.ucx;
965
      }
3430 rajveer 966
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
784 rajveer 967
    }
968
 
3430 rajveer 969
    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 970
    {
971
      send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message);
972
      return recv_saveUserCommunication();
973
    }
974
 
3430 rajveer 975
    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 976
    {
977
      saveUserCommunication_args args = new saveUserCommunication_args();
3430 rajveer 978
      args.setUserId(userId);
979
      args.setReplyTo(replyTo);
980
      args.setCommunicationType(communicationType);
981
      args.setOrderId(orderId);
982
      args.setAirwaybillNo(airwaybillNo);
983
      args.setProductName(productName);
984
      args.setSubject(subject);
985
      args.setMessage(message);
986
      sendBase("saveUserCommunication", args);
1177 varun.gupt 987
    }
988
 
3430 rajveer 989
    public boolean recv_saveUserCommunication() throws UserCommunicationException, org.apache.thrift.TException
1177 varun.gupt 990
    {
991
      saveUserCommunication_result result = new saveUserCommunication_result();
3430 rajveer 992
      receiveBase(result, "saveUserCommunication");
1177 varun.gupt 993
      if (result.isSetSuccess()) {
994
        return result.success;
995
      }
996
      if (result.ucx != null) {
997
        throw result.ucx;
998
      }
3430 rajveer 999
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1177 varun.gupt 1000
    }
1001
 
3430 rajveer 1002
    public UserCommunication getUserCommunicationById(long id) throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1003
    {
1004
      send_getUserCommunicationById(id);
1005
      return recv_getUserCommunicationById();
1006
    }
1007
 
3430 rajveer 1008
    public void send_getUserCommunicationById(long id) throws org.apache.thrift.TException
1590 varun.gupt 1009
    {
1010
      getUserCommunicationById_args args = new getUserCommunicationById_args();
3430 rajveer 1011
      args.setId(id);
1012
      sendBase("getUserCommunicationById", args);
1590 varun.gupt 1013
    }
1014
 
3430 rajveer 1015
    public UserCommunication recv_getUserCommunicationById() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1016
    {
1017
      getUserCommunicationById_result result = new getUserCommunicationById_result();
3430 rajveer 1018
      receiveBase(result, "getUserCommunicationById");
1590 varun.gupt 1019
      if (result.isSetSuccess()) {
1020
        return result.success;
1021
      }
1022
      if (result.ucx != null) {
1023
        throw result.ucx;
1024
      }
3430 rajveer 1025
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1590 varun.gupt 1026
    }
1027
 
3430 rajveer 1028
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1029
    {
1030
      send_getUserCommunicationByUser(userId);
1031
      return recv_getUserCommunicationByUser();
1032
    }
1033
 
3430 rajveer 1034
    public void send_getUserCommunicationByUser(long userId) throws org.apache.thrift.TException
1590 varun.gupt 1035
    {
1036
      getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
3430 rajveer 1037
      args.setUserId(userId);
1038
      sendBase("getUserCommunicationByUser", args);
1590 varun.gupt 1039
    }
1040
 
3430 rajveer 1041
    public List<UserCommunication> recv_getUserCommunicationByUser() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1042
    {
1043
      getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
3430 rajveer 1044
      receiveBase(result, "getUserCommunicationByUser");
1590 varun.gupt 1045
      if (result.isSetSuccess()) {
1046
        return result.success;
1047
      }
1048
      if (result.ucx != null) {
1049
        throw result.ucx;
1050
      }
3430 rajveer 1051
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1590 varun.gupt 1052
    }
1053
 
3430 rajveer 1054
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1055
    {
1056
      send_getAllUserCommunications();
1057
      return recv_getAllUserCommunications();
1058
    }
1059
 
3430 rajveer 1060
    public void send_getAllUserCommunications() throws org.apache.thrift.TException
1590 varun.gupt 1061
    {
1062
      getAllUserCommunications_args args = new getAllUserCommunications_args();
3430 rajveer 1063
      sendBase("getAllUserCommunications", args);
1590 varun.gupt 1064
    }
1065
 
3430 rajveer 1066
    public List<UserCommunication> recv_getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1067
    {
1068
      getAllUserCommunications_result result = new getAllUserCommunications_result();
3430 rajveer 1069
      receiveBase(result, "getAllUserCommunications");
1590 varun.gupt 1070
      if (result.isSetSuccess()) {
1071
        return result.success;
1072
      }
1073
      if (result.ucx != null) {
1074
        throw result.ucx;
1075
      }
3430 rajveer 1076
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1590 varun.gupt 1077
    }
1078
 
3430 rajveer 1079
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1080
    {
1860 vikas 1081
      send_createMasterAffiliate(name, addedOn);
1846 vikas 1082
      return recv_createMasterAffiliate();
1083
    }
1084
 
3430 rajveer 1085
    public void send_createMasterAffiliate(String name, long addedOn) throws org.apache.thrift.TException
1846 vikas 1086
    {
1087
      createMasterAffiliate_args args = new createMasterAffiliate_args();
3430 rajveer 1088
      args.setName(name);
1089
      args.setAddedOn(addedOn);
1090
      sendBase("createMasterAffiliate", args);
1846 vikas 1091
    }
1092
 
3430 rajveer 1093
    public MasterAffiliate recv_createMasterAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1094
    {
1095
      createMasterAffiliate_result result = new createMasterAffiliate_result();
3430 rajveer 1096
      receiveBase(result, "createMasterAffiliate");
1846 vikas 1097
      if (result.isSetSuccess()) {
1098
        return result.success;
1099
      }
1100
      if (result.utx != null) {
1101
        throw result.utx;
1102
      }
3430 rajveer 1103
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1846 vikas 1104
    }
1105
 
3430 rajveer 1106
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException
1900 vikas 1107
    {
1108
      send_getAllMasterAffiliates();
1109
      return recv_getAllMasterAffiliates();
1110
    }
1111
 
3430 rajveer 1112
    public void send_getAllMasterAffiliates() throws org.apache.thrift.TException
1900 vikas 1113
    {
1114
      getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
3430 rajveer 1115
      sendBase("getAllMasterAffiliates", args);
1900 vikas 1116
    }
1117
 
3430 rajveer 1118
    public List<MasterAffiliate> recv_getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException
1900 vikas 1119
    {
1120
      getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
3430 rajveer 1121
      receiveBase(result, "getAllMasterAffiliates");
1900 vikas 1122
      if (result.isSetSuccess()) {
1123
        return result.success;
1124
      }
1125
      if (result.utx != null) {
1126
        throw result.utx;
1127
      }
3430 rajveer 1128
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1900 vikas 1129
    }
1130
 
3430 rajveer 1131
    public MasterAffiliate getMasterAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1132
    {
1133
      send_getMasterAffiliateById(id);
1134
      return recv_getMasterAffiliateById();
1135
    }
1136
 
3430 rajveer 1137
    public void send_getMasterAffiliateById(long id) throws org.apache.thrift.TException
1846 vikas 1138
    {
1139
      getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3430 rajveer 1140
      args.setId(id);
1141
      sendBase("getMasterAffiliateById", args);
1846 vikas 1142
    }
1143
 
3430 rajveer 1144
    public MasterAffiliate recv_getMasterAffiliateById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1145
    {
1146
      getMasterAffiliateById_result result = new getMasterAffiliateById_result();
3430 rajveer 1147
      receiveBase(result, "getMasterAffiliateById");
1846 vikas 1148
      if (result.isSetSuccess()) {
1149
        return result.success;
1150
      }
1151
      if (result.utx != null) {
1152
        throw result.utx;
1153
      }
3430 rajveer 1154
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1846 vikas 1155
    }
1156
 
3430 rajveer 1157
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1158
    {
1159
      send_getMasterAffiliateByName(name);
1160
      return recv_getMasterAffiliateByName();
1161
    }
1162
 
3430 rajveer 1163
    public void send_getMasterAffiliateByName(String name) throws org.apache.thrift.TException
1846 vikas 1164
    {
1165
      getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
3430 rajveer 1166
      args.setName(name);
1167
      sendBase("getMasterAffiliateByName", args);
1846 vikas 1168
    }
1169
 
3430 rajveer 1170
    public MasterAffiliate recv_getMasterAffiliateByName() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1171
    {
1172
      getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
3430 rajveer 1173
      receiveBase(result, "getMasterAffiliateByName");
1846 vikas 1174
      if (result.isSetSuccess()) {
1175
        return result.success;
1176
      }
1177
      if (result.utx != null) {
1178
        throw result.utx;
1179
      }
3430 rajveer 1180
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1846 vikas 1181
    }
1182
 
3430 rajveer 1183
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1184
    {
1860 vikas 1185
      send_createAffiliate(name, url, masterAffiliateId, addedOn);
1846 vikas 1186
      return recv_createAffiliate();
1187
    }
1188
 
3430 rajveer 1189
    public void send_createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws org.apache.thrift.TException
1846 vikas 1190
    {
1191
      createAffiliate_args args = new createAffiliate_args();
3430 rajveer 1192
      args.setName(name);
1193
      args.setUrl(url);
1194
      args.setMasterAffiliateId(masterAffiliateId);
1195
      args.setAddedOn(addedOn);
1196
      sendBase("createAffiliate", args);
1846 vikas 1197
    }
1198
 
3430 rajveer 1199
    public Affiliate recv_createAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1200
    {
1201
      createAffiliate_result result = new createAffiliate_result();
3430 rajveer 1202
      receiveBase(result, "createAffiliate");
1846 vikas 1203
      if (result.isSetSuccess()) {
1204
        return result.success;
1205
      }
1206
      if (result.utx != null) {
1207
        throw result.utx;
1208
      }
3430 rajveer 1209
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1846 vikas 1210
    }
1211
 
3430 rajveer 1212
    public Affiliate getAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1213
    {
1214
      send_getAffiliateById(id);
1215
      return recv_getAffiliateById();
1216
    }
1217
 
3430 rajveer 1218
    public void send_getAffiliateById(long id) throws org.apache.thrift.TException
1846 vikas 1219
    {
1220
      getAffiliateById_args args = new getAffiliateById_args();
3430 rajveer 1221
      args.setId(id);
1222
      sendBase("getAffiliateById", args);
1846 vikas 1223
    }
1224
 
3430 rajveer 1225
    public Affiliate recv_getAffiliateById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1226
    {
1227
      getAffiliateById_result result = new getAffiliateById_result();
3430 rajveer 1228
      receiveBase(result, "getAffiliateById");
1846 vikas 1229
      if (result.isSetSuccess()) {
1230
        return result.success;
1231
      }
1232
      if (result.utx != null) {
1233
        throw result.utx;
1234
      }
3430 rajveer 1235
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1846 vikas 1236
    }
1237
 
3430 rajveer 1238
    public Affiliate getAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1239
    {
1240
      send_getAffiliateByName(name);
1241
      return recv_getAffiliateByName();
1242
    }
1243
 
3430 rajveer 1244
    public void send_getAffiliateByName(String name) throws org.apache.thrift.TException
1846 vikas 1245
    {
1246
      getAffiliateByName_args args = new getAffiliateByName_args();
3430 rajveer 1247
      args.setName(name);
1248
      sendBase("getAffiliateByName", args);
1846 vikas 1249
    }
1250
 
3430 rajveer 1251
    public Affiliate recv_getAffiliateByName() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1252
    {
1253
      getAffiliateByName_result result = new getAffiliateByName_result();
3430 rajveer 1254
      receiveBase(result, "getAffiliateByName");
1846 vikas 1255
      if (result.isSetSuccess()) {
1256
        return result.success;
1257
      }
1258
      if (result.utx != null) {
1259
        throw result.utx;
1260
      }
3430 rajveer 1261
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1846 vikas 1262
    }
1263
 
3430 rajveer 1264
    public Tracker getTrackerById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1265
    {
1998 vikas 1266
      send_getTrackerById(id);
1846 vikas 1267
      return recv_getTrackerById();
1268
    }
1269
 
3430 rajveer 1270
    public void send_getTrackerById(long id) throws org.apache.thrift.TException
1846 vikas 1271
    {
1272
      getTrackerById_args args = new getTrackerById_args();
3430 rajveer 1273
      args.setId(id);
1274
      sendBase("getTrackerById", args);
1846 vikas 1275
    }
1276
 
3430 rajveer 1277
    public Tracker recv_getTrackerById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1278
    {
1279
      getTrackerById_result result = new getTrackerById_result();
3430 rajveer 1280
      receiveBase(result, "getTrackerById");
1846 vikas 1281
      if (result.isSetSuccess()) {
1282
        return result.success;
1283
      }
1284
      if (result.utx != null) {
1285
        throw result.utx;
1286
      }
3430 rajveer 1287
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1846 vikas 1288
    }
1289
 
3430 rajveer 1290
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1291
    {
1998 vikas 1292
      send_getAffiliatesByMasterAffiliate(id);
1293
      return recv_getAffiliatesByMasterAffiliate();
1846 vikas 1294
    }
1295
 
3430 rajveer 1296
    public void send_getAffiliatesByMasterAffiliate(long id) throws org.apache.thrift.TException
1846 vikas 1297
    {
1998 vikas 1298
      getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
3430 rajveer 1299
      args.setId(id);
1300
      sendBase("getAffiliatesByMasterAffiliate", args);
1846 vikas 1301
    }
1302
 
3430 rajveer 1303
    public List<Affiliate> recv_getAffiliatesByMasterAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1304
    {
1998 vikas 1305
      getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
3430 rajveer 1306
      receiveBase(result, "getAffiliatesByMasterAffiliate");
1846 vikas 1307
      if (result.isSetSuccess()) {
1308
        return result.success;
1309
      }
1310
      if (result.utx != null) {
1311
        throw result.utx;
1312
      }
3430 rajveer 1313
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1846 vikas 1314
    }
1315
 
3430 rajveer 1316
    public long addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1317
    {
1998 vikas 1318
      send_addTrackLog(affiliateId, userId, event, url, data, addedOn);
1846 vikas 1319
      return recv_addTrackLog();
1320
    }
1321
 
3430 rajveer 1322
    public void send_addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws org.apache.thrift.TException
1846 vikas 1323
    {
1324
      addTrackLog_args args = new addTrackLog_args();
3430 rajveer 1325
      args.setAffiliateId(affiliateId);
1326
      args.setUserId(userId);
1327
      args.setEvent(event);
1328
      args.setUrl(url);
1329
      args.setData(data);
1330
      args.setAddedOn(addedOn);
1331
      sendBase("addTrackLog", args);
1846 vikas 1332
    }
1333
 
3430 rajveer 1334
    public long recv_addTrackLog() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1335
    {
1336
      addTrackLog_result result = new addTrackLog_result();
3430 rajveer 1337
      receiveBase(result, "addTrackLog");
1846 vikas 1338
      if (result.isSetSuccess()) {
1339
        return result.success;
1340
      }
1341
      if (result.utx != null) {
1342
        throw result.utx;
1343
      }
3430 rajveer 1344
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1846 vikas 1345
    }
1346
 
3430 rajveer 1347
    public TrackLog getTrackLogById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1348
    {
1349
      send_getTrackLogById(id);
1350
      return recv_getTrackLogById();
1351
    }
1352
 
3430 rajveer 1353
    public void send_getTrackLogById(long id) throws org.apache.thrift.TException
1846 vikas 1354
    {
1355
      getTrackLogById_args args = new getTrackLogById_args();
3430 rajveer 1356
      args.setId(id);
1357
      sendBase("getTrackLogById", args);
1846 vikas 1358
    }
1359
 
3430 rajveer 1360
    public TrackLog recv_getTrackLogById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1361
    {
1362
      getTrackLogById_result result = new getTrackLogById_result();
3430 rajveer 1363
      receiveBase(result, "getTrackLogById");
1846 vikas 1364
      if (result.isSetSuccess()) {
1365
        return result.success;
1366
      }
1367
      if (result.utx != null) {
1368
        throw result.utx;
1369
      }
3430 rajveer 1370
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1846 vikas 1371
    }
1372
 
3430 rajveer 1373
    public List<TrackLog> getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1374
    {
3293 vikas 1375
      send_getTrackLogsByAffiliate(affiliateId, startDate, endDate);
1998 vikas 1376
      return recv_getTrackLogsByAffiliate();
1846 vikas 1377
    }
1378
 
3430 rajveer 1379
    public void send_getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws org.apache.thrift.TException
1846 vikas 1380
    {
1998 vikas 1381
      getTrackLogsByAffiliate_args args = new getTrackLogsByAffiliate_args();
3430 rajveer 1382
      args.setAffiliateId(affiliateId);
1383
      args.setStartDate(startDate);
1384
      args.setEndDate(endDate);
1385
      sendBase("getTrackLogsByAffiliate", args);
1846 vikas 1386
    }
1387
 
3430 rajveer 1388
    public List<TrackLog> recv_getTrackLogsByAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1389
    {
1998 vikas 1390
      getTrackLogsByAffiliate_result result = new getTrackLogsByAffiliate_result();
3430 rajveer 1391
      receiveBase(result, "getTrackLogsByAffiliate");
1846 vikas 1392
      if (result.isSetSuccess()) {
1393
        return result.success;
1394
      }
1395
      if (result.utx != null) {
1396
        throw result.utx;
1397
      }
3430 rajveer 1398
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1846 vikas 1399
    }
1400
 
3430 rajveer 1401
    public List<TrackLog> getTrackLogsByUser(long userId) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1402
    {
1403
      send_getTrackLogsByUser(userId);
1404
      return recv_getTrackLogsByUser();
1405
    }
1406
 
3430 rajveer 1407
    public void send_getTrackLogsByUser(long userId) throws org.apache.thrift.TException
1846 vikas 1408
    {
1409
      getTrackLogsByUser_args args = new getTrackLogsByUser_args();
3430 rajveer 1410
      args.setUserId(userId);
1411
      sendBase("getTrackLogsByUser", args);
1846 vikas 1412
    }
1413
 
3430 rajveer 1414
    public List<TrackLog> recv_getTrackLogsByUser() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1415
    {
1416
      getTrackLogsByUser_result result = new getTrackLogsByUser_result();
3430 rajveer 1417
      receiveBase(result, "getTrackLogsByUser");
1846 vikas 1418
      if (result.isSetSuccess()) {
1419
        return result.success;
1420
      }
1421
      if (result.utx != null) {
1422
        throw result.utx;
1423
      }
3430 rajveer 1424
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1846 vikas 1425
    }
1426
 
3430 rajveer 1427
    public List<TrackLog> getTrackLogs(long userId, String event, String url) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1428
    {
1998 vikas 1429
      send_getTrackLogs(userId, event, url);
1846 vikas 1430
      return recv_getTrackLogs();
1431
    }
1432
 
3430 rajveer 1433
    public void send_getTrackLogs(long userId, String event, String url) throws org.apache.thrift.TException
1846 vikas 1434
    {
1435
      getTrackLogs_args args = new getTrackLogs_args();
3430 rajveer 1436
      args.setUserId(userId);
1437
      args.setEvent(event);
1438
      args.setUrl(url);
1439
      sendBase("getTrackLogs", args);
1846 vikas 1440
    }
1441
 
3430 rajveer 1442
    public List<TrackLog> recv_getTrackLogs() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1443
    {
1444
      getTrackLogs_result result = new getTrackLogs_result();
3430 rajveer 1445
      receiveBase(result, "getTrackLogs");
1846 vikas 1446
      if (result.isSetSuccess()) {
1447
        return result.success;
1448
      }
1449
      if (result.utx != null) {
1450
        throw result.utx;
1451
      }
3430 rajveer 1452
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1846 vikas 1453
    }
1454
 
3430 rajveer 1455
    public long createCart(long userId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1456
    {
553 chandransh 1457
      send_createCart(userId);
1458
      return recv_createCart();
48 ashish 1459
    }
1460
 
3430 rajveer 1461
    public void send_createCart(long userId) throws org.apache.thrift.TException
48 ashish 1462
    {
553 chandransh 1463
      createCart_args args = new createCart_args();
3430 rajveer 1464
      args.setUserId(userId);
1465
      sendBase("createCart", args);
48 ashish 1466
    }
1467
 
3430 rajveer 1468
    public long recv_createCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1469
    {
553 chandransh 1470
      createCart_result result = new createCart_result();
3430 rajveer 1471
      receiveBase(result, "createCart");
48 ashish 1472
      if (result.isSetSuccess()) {
1473
        return result.success;
1474
      }
553 chandransh 1475
      if (result.scx != null) {
1476
        throw result.scx;
48 ashish 1477
      }
3430 rajveer 1478
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
48 ashish 1479
    }
1480
 
3430 rajveer 1481
    public Cart getCurrentCart(long userId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1482
    {
553 chandransh 1483
      send_getCurrentCart(userId);
1484
      return recv_getCurrentCart();
48 ashish 1485
    }
1486
 
3430 rajveer 1487
    public void send_getCurrentCart(long userId) throws org.apache.thrift.TException
48 ashish 1488
    {
553 chandransh 1489
      getCurrentCart_args args = new getCurrentCart_args();
3430 rajveer 1490
      args.setUserId(userId);
1491
      sendBase("getCurrentCart", args);
48 ashish 1492
    }
1493
 
3430 rajveer 1494
    public Cart recv_getCurrentCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1495
    {
553 chandransh 1496
      getCurrentCart_result result = new getCurrentCart_result();
3430 rajveer 1497
      receiveBase(result, "getCurrentCart");
48 ashish 1498
      if (result.isSetSuccess()) {
1499
        return result.success;
1500
      }
553 chandransh 1501
      if (result.scx != null) {
1502
        throw result.scx;
48 ashish 1503
      }
3430 rajveer 1504
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
48 ashish 1505
    }
1506
 
3430 rajveer 1507
    public Cart getCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1508
    {
553 chandransh 1509
      send_getCart(cartId);
1510
      return recv_getCart();
48 ashish 1511
    }
1512
 
3430 rajveer 1513
    public void send_getCart(long cartId) throws org.apache.thrift.TException
48 ashish 1514
    {
553 chandransh 1515
      getCart_args args = new getCart_args();
3430 rajveer 1516
      args.setCartId(cartId);
1517
      sendBase("getCart", args);
48 ashish 1518
    }
1519
 
3430 rajveer 1520
    public Cart recv_getCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1521
    {
553 chandransh 1522
      getCart_result result = new getCart_result();
3430 rajveer 1523
      receiveBase(result, "getCart");
48 ashish 1524
      if (result.isSetSuccess()) {
1525
        return result.success;
1526
      }
553 chandransh 1527
      if (result.scx != null) {
1528
        throw result.scx;
48 ashish 1529
      }
3430 rajveer 1530
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
48 ashish 1531
    }
1532
 
3430 rajveer 1533
    public List<Cart> getCartsForUser(long userId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1534
    {
553 chandransh 1535
      send_getCartsForUser(userId, status);
1536
      return recv_getCartsForUser();
48 ashish 1537
    }
1538
 
3430 rajveer 1539
    public void send_getCartsForUser(long userId, CartStatus status) throws org.apache.thrift.TException
48 ashish 1540
    {
553 chandransh 1541
      getCartsForUser_args args = new getCartsForUser_args();
3430 rajveer 1542
      args.setUserId(userId);
1543
      args.setStatus(status);
1544
      sendBase("getCartsForUser", args);
48 ashish 1545
    }
1546
 
3430 rajveer 1547
    public List<Cart> recv_getCartsForUser() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1548
    {
553 chandransh 1549
      getCartsForUser_result result = new getCartsForUser_result();
3430 rajveer 1550
      receiveBase(result, "getCartsForUser");
48 ashish 1551
      if (result.isSetSuccess()) {
1552
        return result.success;
1553
      }
553 chandransh 1554
      if (result.scx != null) {
1555
        throw result.scx;
48 ashish 1556
      }
3430 rajveer 1557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
48 ashish 1558
    }
1559
 
3430 rajveer 1560
    public List<Cart> getCartsByStatus(CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1561
    {
553 chandransh 1562
      send_getCartsByStatus(status);
1563
      return recv_getCartsByStatus();
48 ashish 1564
    }
1565
 
3430 rajveer 1566
    public void send_getCartsByStatus(CartStatus status) throws org.apache.thrift.TException
48 ashish 1567
    {
553 chandransh 1568
      getCartsByStatus_args args = new getCartsByStatus_args();
3430 rajveer 1569
      args.setStatus(status);
1570
      sendBase("getCartsByStatus", args);
48 ashish 1571
    }
1572
 
3430 rajveer 1573
    public List<Cart> recv_getCartsByStatus() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1574
    {
553 chandransh 1575
      getCartsByStatus_result result = new getCartsByStatus_result();
3430 rajveer 1576
      receiveBase(result, "getCartsByStatus");
48 ashish 1577
      if (result.isSetSuccess()) {
1578
        return result.success;
1579
      }
553 chandransh 1580
      if (result.scx != null) {
1581
        throw result.scx;
48 ashish 1582
      }
3430 rajveer 1583
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
48 ashish 1584
    }
1585
 
3430 rajveer 1586
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1587
    {
553 chandransh 1588
      send_getCartsByTime(from_time, to_time, status);
1589
      return recv_getCartsByTime();
48 ashish 1590
    }
1591
 
3430 rajveer 1592
    public void send_getCartsByTime(long from_time, long to_time, CartStatus status) throws org.apache.thrift.TException
48 ashish 1593
    {
553 chandransh 1594
      getCartsByTime_args args = new getCartsByTime_args();
3430 rajveer 1595
      args.setFrom_time(from_time);
1596
      args.setTo_time(to_time);
1597
      args.setStatus(status);
1598
      sendBase("getCartsByTime", args);
48 ashish 1599
    }
1600
 
3430 rajveer 1601
    public List<Cart> recv_getCartsByTime() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1602
    {
553 chandransh 1603
      getCartsByTime_result result = new getCartsByTime_result();
3430 rajveer 1604
      receiveBase(result, "getCartsByTime");
48 ashish 1605
      if (result.isSetSuccess()) {
1606
        return result.success;
1607
      }
553 chandransh 1608
      if (result.scx != null) {
1609
        throw result.scx;
48 ashish 1610
      }
3430 rajveer 1611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
48 ashish 1612
    }
1613
 
3430 rajveer 1614
    public void changeCartStatus(long cartId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1615
    {
553 chandransh 1616
      send_changeCartStatus(cartId, status);
1617
      recv_changeCartStatus();
130 ashish 1618
    }
1619
 
3430 rajveer 1620
    public void send_changeCartStatus(long cartId, CartStatus status) throws org.apache.thrift.TException
130 ashish 1621
    {
553 chandransh 1622
      changeCartStatus_args args = new changeCartStatus_args();
3430 rajveer 1623
      args.setCartId(cartId);
1624
      args.setStatus(status);
1625
      sendBase("changeCartStatus", args);
130 ashish 1626
    }
1627
 
3430 rajveer 1628
    public void recv_changeCartStatus() throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1629
    {
553 chandransh 1630
      changeCartStatus_result result = new changeCartStatus_result();
3430 rajveer 1631
      receiveBase(result, "changeCartStatus");
553 chandransh 1632
      if (result.scx != null) {
1633
        throw result.scx;
1634
      }
1635
      return;
1636
    }
1637
 
3430 rajveer 1638
    public String addItemToCart(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1639
    {
1640
      send_addItemToCart(cartId, itemId, quantity);
2034 rajveer 1641
      return recv_addItemToCart();
553 chandransh 1642
    }
1643
 
3430 rajveer 1644
    public void send_addItemToCart(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
553 chandransh 1645
    {
1646
      addItemToCart_args args = new addItemToCart_args();
3430 rajveer 1647
      args.setCartId(cartId);
1648
      args.setItemId(itemId);
1649
      args.setQuantity(quantity);
1650
      sendBase("addItemToCart", args);
553 chandransh 1651
    }
1652
 
3430 rajveer 1653
    public String recv_addItemToCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1654
    {
1655
      addItemToCart_result result = new addItemToCart_result();
3430 rajveer 1656
      receiveBase(result, "addItemToCart");
2034 rajveer 1657
      if (result.isSetSuccess()) {
1658
        return result.success;
1659
      }
553 chandransh 1660
      if (result.scx != null) {
1661
        throw result.scx;
1662
      }
3430 rajveer 1663
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
553 chandransh 1664
    }
1665
 
3430 rajveer 1666
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1667
    {
1668
      send_deleteItemFromCart(cartId, itemId);
1669
      recv_deleteItemFromCart();
1670
    }
1671
 
3430 rajveer 1672
    public void send_deleteItemFromCart(long cartId, long itemId) throws org.apache.thrift.TException
553 chandransh 1673
    {
1674
      deleteItemFromCart_args args = new deleteItemFromCart_args();
3430 rajveer 1675
      args.setCartId(cartId);
1676
      args.setItemId(itemId);
1677
      sendBase("deleteItemFromCart", args);
553 chandransh 1678
    }
1679
 
3430 rajveer 1680
    public void recv_deleteItemFromCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1681
    {
1682
      deleteItemFromCart_result result = new deleteItemFromCart_result();
3430 rajveer 1683
      receiveBase(result, "deleteItemFromCart");
553 chandransh 1684
      if (result.scx != null) {
1685
        throw result.scx;
1686
      }
1687
      return;
1688
    }
1689
 
3430 rajveer 1690
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1691
    {
1692
      send_changeQuantity(cartId, itemId, quantity);
1693
      recv_changeQuantity();
1694
    }
1695
 
3430 rajveer 1696
    public void send_changeQuantity(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
553 chandransh 1697
    {
1698
      changeQuantity_args args = new changeQuantity_args();
3430 rajveer 1699
      args.setCartId(cartId);
1700
      args.setItemId(itemId);
1701
      args.setQuantity(quantity);
1702
      sendBase("changeQuantity", args);
553 chandransh 1703
    }
1704
 
3430 rajveer 1705
    public void recv_changeQuantity() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1706
    {
1707
      changeQuantity_result result = new changeQuantity_result();
3430 rajveer 1708
      receiveBase(result, "changeQuantity");
553 chandransh 1709
      if (result.scx != null) {
1710
        throw result.scx;
1711
      }
1712
      return;
1713
    }
1714
 
3430 rajveer 1715
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1716
    {
1717
      send_changeItemStatus(cartId, itemId, status);
1718
      recv_changeItemStatus();
1719
    }
1720
 
3430 rajveer 1721
    public void send_changeItemStatus(long cartId, long itemId, LineStatus status) throws org.apache.thrift.TException
553 chandransh 1722
    {
1723
      changeItemStatus_args args = new changeItemStatus_args();
3430 rajveer 1724
      args.setCartId(cartId);
1725
      args.setItemId(itemId);
1726
      args.setStatus(status);
1727
      sendBase("changeItemStatus", args);
553 chandransh 1728
    }
1729
 
3430 rajveer 1730
    public void recv_changeItemStatus() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1731
    {
1732
      changeItemStatus_result result = new changeItemStatus_result();
3430 rajveer 1733
      receiveBase(result, "changeItemStatus");
553 chandransh 1734
      if (result.scx != null) {
1735
        throw result.scx;
1736
      }
1737
      return;
1738
    }
1739
 
3430 rajveer 1740
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1741
    {
1742
      send_addAddressToCart(cartId, addressId);
1743
      recv_addAddressToCart();
1744
    }
1745
 
3430 rajveer 1746
    public void send_addAddressToCart(long cartId, long addressId) throws org.apache.thrift.TException
553 chandransh 1747
    {
1748
      addAddressToCart_args args = new addAddressToCart_args();
3430 rajveer 1749
      args.setCartId(cartId);
1750
      args.setAddressId(addressId);
1751
      sendBase("addAddressToCart", args);
553 chandransh 1752
    }
1753
 
3430 rajveer 1754
    public void recv_addAddressToCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1755
    {
1756
      addAddressToCart_result result = new addAddressToCart_result();
3430 rajveer 1757
      receiveBase(result, "addAddressToCart");
578 chandransh 1758
      if (result.scx != null) {
1759
        throw result.scx;
1760
      }
553 chandransh 1761
      return;
1762
    }
1763
 
3430 rajveer 1764
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1765
    {
1766
      send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice);
1767
      recv_applyCouponToCart();
1768
    }
1769
 
3430 rajveer 1770
    public void send_applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws org.apache.thrift.TException
1982 varun.gupt 1771
    {
1772
      applyCouponToCart_args args = new applyCouponToCart_args();
3430 rajveer 1773
      args.setCartId(cartId);
1774
      args.setCouponCode(couponCode);
1775
      args.setTotalPrice(totalPrice);
1776
      args.setDiscountedPrice(discountedPrice);
1777
      sendBase("applyCouponToCart", args);
1982 varun.gupt 1778
    }
1779
 
3430 rajveer 1780
    public void recv_applyCouponToCart() throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1781
    {
1782
      applyCouponToCart_result result = new applyCouponToCart_result();
3430 rajveer 1783
      receiveBase(result, "applyCouponToCart");
1982 varun.gupt 1784
      if (result.scx != null) {
1785
        throw result.scx;
1786
      }
1787
      return;
1788
    }
1789
 
3430 rajveer 1790
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1791
    {
1792
      send_removeCoupon(cartId);
1793
      recv_removeCoupon();
1794
    }
1795
 
3430 rajveer 1796
    public void send_removeCoupon(long cartId) throws org.apache.thrift.TException
1982 varun.gupt 1797
    {
1798
      removeCoupon_args args = new removeCoupon_args();
3430 rajveer 1799
      args.setCartId(cartId);
1800
      sendBase("removeCoupon", args);
1982 varun.gupt 1801
    }
1802
 
3430 rajveer 1803
    public void recv_removeCoupon() throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1804
    {
1805
      removeCoupon_result result = new removeCoupon_result();
3430 rajveer 1806
      receiveBase(result, "removeCoupon");
1982 varun.gupt 1807
      if (result.scx != null) {
1808
        throw result.scx;
1809
      }
1810
      return;
1811
    }
1812
 
3430 rajveer 1813
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1814
    {
2816 vikas 1815
      send_createOrders(cartId, sessionSource, sessionStartTime);
688 chandransh 1816
      return recv_createOrders();
553 chandransh 1817
    }
1818
 
3430 rajveer 1819
    public void send_createOrders(long cartId, String sessionSource, long sessionStartTime) throws org.apache.thrift.TException
553 chandransh 1820
    {
688 chandransh 1821
      createOrders_args args = new createOrders_args();
3430 rajveer 1822
      args.setCartId(cartId);
1823
      args.setSessionSource(sessionSource);
1824
      args.setSessionStartTime(sessionStartTime);
1825
      sendBase("createOrders", args);
553 chandransh 1826
    }
1827
 
3430 rajveer 1828
    public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1829
    {
688 chandransh 1830
      createOrders_result result = new createOrders_result();
3430 rajveer 1831
      receiveBase(result, "createOrders");
130 ashish 1832
      if (result.isSetSuccess()) {
1833
        return result.success;
1834
      }
553 chandransh 1835
      if (result.scx != null) {
1836
        throw result.scx;
130 ashish 1837
      }
3430 rajveer 1838
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 1839
    }
1840
 
3430 rajveer 1841
    public String validateCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1842
    {
553 chandransh 1843
      send_validateCart(cartId);
1844
      return recv_validateCart();
130 ashish 1845
    }
1846
 
3430 rajveer 1847
    public void send_validateCart(long cartId) throws org.apache.thrift.TException
130 ashish 1848
    {
553 chandransh 1849
      validateCart_args args = new validateCart_args();
3430 rajveer 1850
      args.setCartId(cartId);
1851
      sendBase("validateCart", args);
130 ashish 1852
    }
1853
 
3430 rajveer 1854
    public String recv_validateCart() throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1855
    {
553 chandransh 1856
      validateCart_result result = new validateCart_result();
3430 rajveer 1857
      receiveBase(result, "validateCart");
130 ashish 1858
      if (result.isSetSuccess()) {
1859
        return result.success;
1860
      }
578 chandransh 1861
      if (result.scex != null) {
1862
        throw result.scex;
1863
      }
3430 rajveer 1864
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
553 chandransh 1865
    }
1866
 
3430 rajveer 1867
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
578 chandransh 1868
    {
688 chandransh 1869
      send_mergeCart(fromCartId, toCartId);
1870
      recv_mergeCart();
578 chandransh 1871
    }
1872
 
3430 rajveer 1873
    public void send_mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
578 chandransh 1874
    {
688 chandransh 1875
      mergeCart_args args = new mergeCart_args();
3430 rajveer 1876
      args.setFromCartId(fromCartId);
1877
      args.setToCartId(toCartId);
1878
      sendBase("mergeCart", args);
688 chandransh 1879
    }
1880
 
3430 rajveer 1881
    public void recv_mergeCart() throws org.apache.thrift.TException
688 chandransh 1882
    {
1883
      mergeCart_result result = new mergeCart_result();
3430 rajveer 1884
      receiveBase(result, "mergeCart");
688 chandransh 1885
      return;
1886
    }
1887
 
3430 rajveer 1888
    public boolean checkOut(long cartId) throws ShoppingCartException, org.apache.thrift.TException
688 chandransh 1889
    {
1890
      send_checkOut(cartId);
1891
      return recv_checkOut();
1892
    }
1893
 
3430 rajveer 1894
    public void send_checkOut(long cartId) throws org.apache.thrift.TException
688 chandransh 1895
    {
1896
      checkOut_args args = new checkOut_args();
3430 rajveer 1897
      args.setCartId(cartId);
1898
      sendBase("checkOut", args);
578 chandransh 1899
    }
1900
 
3430 rajveer 1901
    public boolean recv_checkOut() throws ShoppingCartException, org.apache.thrift.TException
578 chandransh 1902
    {
688 chandransh 1903
      checkOut_result result = new checkOut_result();
3430 rajveer 1904
      receiveBase(result, "checkOut");
578 chandransh 1905
      if (result.isSetSuccess()) {
1906
        return result.success;
1907
      }
1908
      if (result.scex != null) {
1909
        throw result.scex;
1910
      }
3430 rajveer 1911
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
578 chandransh 1912
    }
1913
 
3430 rajveer 1914
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1915
    {
688 chandransh 1916
      send_resetCart(cartId, items);
1917
      return recv_resetCart();
553 chandransh 1918
    }
1919
 
3430 rajveer 1920
    public void send_resetCart(long cartId, Map<Long,Double> items) throws org.apache.thrift.TException
553 chandransh 1921
    {
688 chandransh 1922
      resetCart_args args = new resetCart_args();
3430 rajveer 1923
      args.setCartId(cartId);
1924
      args.setItems(items);
1925
      sendBase("resetCart", args);
553 chandransh 1926
    }
1927
 
3430 rajveer 1928
    public boolean recv_resetCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1929
    {
688 chandransh 1930
      resetCart_result result = new resetCart_result();
3430 rajveer 1931
      receiveBase(result, "resetCart");
688 chandransh 1932
      if (result.isSetSuccess()) {
1933
        return result.success;
1934
      }
1935
      if (result.scex != null) {
1936
        throw result.scex;
1937
      }
3430 rajveer 1938
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
130 ashish 1939
    }
1940
 
3430 rajveer 1941
    public long getUserCount(UserType userType) throws org.apache.thrift.TException
553 chandransh 1942
    {
2981 rajveer 1943
      send_getUserCount(userType);
1944
      return recv_getUserCount();
553 chandransh 1945
    }
1946
 
3430 rajveer 1947
    public void send_getUserCount(UserType userType) throws org.apache.thrift.TException
553 chandransh 1948
    {
2981 rajveer 1949
      getUserCount_args args = new getUserCount_args();
3430 rajveer 1950
      args.setUserType(userType);
1951
      sendBase("getUserCount", args);
553 chandransh 1952
    }
1953
 
3430 rajveer 1954
    public long recv_getUserCount() throws org.apache.thrift.TException
553 chandransh 1955
    {
2981 rajveer 1956
      getUserCount_result result = new getUserCount_result();
3430 rajveer 1957
      receiveBase(result, "getUserCount");
553 chandransh 1958
      if (result.isSetSuccess()) {
1959
        return result.success;
1960
      }
3430 rajveer 1961
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
553 chandransh 1962
    }
1963
 
3430 rajveer 1964
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException
553 chandransh 1965
    {
2981 rajveer 1966
      send_getAllUsers(userType, startDate, endDate);
1967
      return recv_getAllUsers();
553 chandransh 1968
    }
1969
 
3430 rajveer 1970
    public void send_getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException
553 chandransh 1971
    {
2981 rajveer 1972
      getAllUsers_args args = new getAllUsers_args();
3430 rajveer 1973
      args.setUserType(userType);
1974
      args.setStartDate(startDate);
1975
      args.setEndDate(endDate);
1976
      sendBase("getAllUsers", args);
553 chandransh 1977
    }
1978
 
3430 rajveer 1979
    public List<User> recv_getAllUsers() throws org.apache.thrift.TException
553 chandransh 1980
    {
2981 rajveer 1981
      getAllUsers_result result = new getAllUsers_result();
3430 rajveer 1982
      receiveBase(result, "getAllUsers");
553 chandransh 1983
      if (result.isSetSuccess()) {
1984
        return result.success;
1985
      }
3430 rajveer 1986
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
553 chandransh 1987
    }
1988
 
3430 rajveer 1989
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException
553 chandransh 1990
    {
2981 rajveer 1991
      send_putUserNote(user_id, entity_id, slide, note);
1992
      recv_putUserNote();
553 chandransh 1993
    }
1994
 
3430 rajveer 1995
    public void send_putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException
553 chandransh 1996
    {
2981 rajveer 1997
      putUserNote_args args = new putUserNote_args();
3430 rajveer 1998
      args.setUser_id(user_id);
1999
      args.setEntity_id(entity_id);
2000
      args.setSlide(slide);
2001
      args.setNote(note);
2002
      sendBase("putUserNote", args);
553 chandransh 2003
    }
2004
 
3430 rajveer 2005
    public void recv_putUserNote() throws org.apache.thrift.TException
553 chandransh 2006
    {
2981 rajveer 2007
      putUserNote_result result = new putUserNote_result();
3430 rajveer 2008
      receiveBase(result, "putUserNote");
553 chandransh 2009
      return;
2010
    }
2011
 
3430 rajveer 2012
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException
553 chandransh 2013
    {
2981 rajveer 2014
      send_getUserNotes(user_id, entity_id);
2015
      return recv_getUserNotes();
553 chandransh 2016
    }
2017
 
3430 rajveer 2018
    public void send_getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException
553 chandransh 2019
    {
2981 rajveer 2020
      getUserNotes_args args = new getUserNotes_args();
3430 rajveer 2021
      args.setUser_id(user_id);
2022
      args.setEntity_id(entity_id);
2023
      sendBase("getUserNotes", args);
553 chandransh 2024
    }
2025
 
3430 rajveer 2026
    public List<UserNote> recv_getUserNotes() throws org.apache.thrift.TException
553 chandransh 2027
    {
2981 rajveer 2028
      getUserNotes_result result = new getUserNotes_result();
3430 rajveer 2029
      receiveBase(result, "getUserNotes");
2981 rajveer 2030
      if (result.isSetSuccess()) {
2031
        return result.success;
2032
      }
3430 rajveer 2033
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
553 chandransh 2034
    }
2035
 
3430 rajveer 2036
    public List<Long> getMyResearchItems(long userId) throws WidgetException, org.apache.thrift.TException
553 chandransh 2037
    {
2981 rajveer 2038
      send_getMyResearchItems(userId);
2039
      return recv_getMyResearchItems();
553 chandransh 2040
    }
2041
 
3430 rajveer 2042
    public void send_getMyResearchItems(long userId) throws org.apache.thrift.TException
553 chandransh 2043
    {
2981 rajveer 2044
      getMyResearchItems_args args = new getMyResearchItems_args();
3430 rajveer 2045
      args.setUserId(userId);
2046
      sendBase("getMyResearchItems", args);
553 chandransh 2047
    }
2048
 
3430 rajveer 2049
    public List<Long> recv_getMyResearchItems() throws WidgetException, org.apache.thrift.TException
553 chandransh 2050
    {
2981 rajveer 2051
      getMyResearchItems_result result = new getMyResearchItems_result();
3430 rajveer 2052
      receiveBase(result, "getMyResearchItems");
553 chandransh 2053
      if (result.isSetSuccess()) {
2054
        return result.success;
2055
      }
2056
      if (result.scx != null) {
2057
        throw result.scx;
2058
      }
3430 rajveer 2059
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
553 chandransh 2060
    }
2061
 
3430 rajveer 2062
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException
553 chandransh 2063
    {
2981 rajveer 2064
      send_updateMyResearch(userId, itemId);
2065
      return recv_updateMyResearch();
553 chandransh 2066
    }
2067
 
3430 rajveer 2068
    public void send_updateMyResearch(long userId, long itemId) throws org.apache.thrift.TException
553 chandransh 2069
    {
2981 rajveer 2070
      updateMyResearch_args args = new updateMyResearch_args();
3430 rajveer 2071
      args.setUserId(userId);
2072
      args.setItemId(itemId);
2073
      sendBase("updateMyResearch", args);
553 chandransh 2074
    }
2075
 
3430 rajveer 2076
    public boolean recv_updateMyResearch() throws WidgetException, org.apache.thrift.TException
553 chandransh 2077
    {
2981 rajveer 2078
      updateMyResearch_result result = new updateMyResearch_result();
3430 rajveer 2079
      receiveBase(result, "updateMyResearch");
2981 rajveer 2080
      if (result.isSetSuccess()) {
2081
        return result.success;
2082
      }
2083
      if (result.scx != null) {
2084
        throw result.scx;
2085
      }
3430 rajveer 2086
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
553 chandransh 2087
    }
2088
 
3430 rajveer 2089
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException
1598 ankur.sing 2090
    {
2981 rajveer 2091
      send_deleteItemFromMyResearch(userId, itemId);
2092
      recv_deleteItemFromMyResearch();
1598 ankur.sing 2093
    }
2094
 
3430 rajveer 2095
    public void send_deleteItemFromMyResearch(long userId, long itemId) throws org.apache.thrift.TException
1598 ankur.sing 2096
    {
2981 rajveer 2097
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
3430 rajveer 2098
      args.setUserId(userId);
2099
      args.setItemId(itemId);
2100
      sendBase("deleteItemFromMyResearch", args);
1598 ankur.sing 2101
    }
2102
 
3430 rajveer 2103
    public void recv_deleteItemFromMyResearch() throws WidgetException, org.apache.thrift.TException
1598 ankur.sing 2104
    {
2981 rajveer 2105
      deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
3430 rajveer 2106
      receiveBase(result, "deleteItemFromMyResearch");
2981 rajveer 2107
      if (result.scx != null) {
2108
        throw result.scx;
1598 ankur.sing 2109
      }
2981 rajveer 2110
      return;
1598 ankur.sing 2111
    }
2112
 
3430 rajveer 2113
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, org.apache.thrift.TException
1674 ankur.sing 2114
    {
2981 rajveer 2115
      send_getBrowseHistoryItems(userId);
2116
      return recv_getBrowseHistoryItems();
1674 ankur.sing 2117
    }
2118
 
3430 rajveer 2119
    public void send_getBrowseHistoryItems(long userId) throws org.apache.thrift.TException
1674 ankur.sing 2120
    {
2981 rajveer 2121
      getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
3430 rajveer 2122
      args.setUserId(userId);
2123
      sendBase("getBrowseHistoryItems", args);
1674 ankur.sing 2124
    }
2125
 
3430 rajveer 2126
    public List<Long> recv_getBrowseHistoryItems() throws WidgetException, org.apache.thrift.TException
1674 ankur.sing 2127
    {
2981 rajveer 2128
      getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
3430 rajveer 2129
      receiveBase(result, "getBrowseHistoryItems");
1674 ankur.sing 2130
      if (result.isSetSuccess()) {
2131
        return result.success;
2132
      }
2981 rajveer 2133
      if (result.scx != null) {
2134
        throw result.scx;
2135
      }
3430 rajveer 2136
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1674 ankur.sing 2137
    }
2138
 
3430 rajveer 2139
    public void updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException
2642 varun.gupt 2140
    {
2981 rajveer 2141
      send_updateBrowseHistory(userId, itemId);
2142
      recv_updateBrowseHistory();
2642 varun.gupt 2143
    }
2144
 
3430 rajveer 2145
    public void send_updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException
2642 varun.gupt 2146
    {
2981 rajveer 2147
      updateBrowseHistory_args args = new updateBrowseHistory_args();
3430 rajveer 2148
      args.setUserId(userId);
2149
      args.setItemId(itemId);
2150
      sendBase("updateBrowseHistory", args);
2642 varun.gupt 2151
    }
2152
 
3430 rajveer 2153
    public void recv_updateBrowseHistory() throws org.apache.thrift.TException
2642 varun.gupt 2154
    {
2981 rajveer 2155
      updateBrowseHistory_result result = new updateBrowseHistory_result();
3430 rajveer 2156
      receiveBase(result, "updateBrowseHistory");
2642 varun.gupt 2157
      return;
2158
    }
2159
 
3430 rajveer 2160
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException
3385 varun.gupt 2161
    {
2162
      send_getCartsWithCouponCount(couponCode);
2163
      return recv_getCartsWithCouponCount();
2164
    }
2165
 
3430 rajveer 2166
    public void send_getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException
3385 varun.gupt 2167
    {
2168
      getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
3430 rajveer 2169
      args.setCouponCode(couponCode);
2170
      sendBase("getCartsWithCouponCount", args);
3385 varun.gupt 2171
    }
2172
 
3430 rajveer 2173
    public long recv_getCartsWithCouponCount() throws org.apache.thrift.TException
3385 varun.gupt 2174
    {
2175
      getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
3430 rajveer 2176
      receiveBase(result, "getCartsWithCouponCount");
3385 varun.gupt 2177
      if (result.isSetSuccess()) {
2178
        return result.success;
2179
      }
3430 rajveer 2180
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
3385 varun.gupt 2181
    }
2182
 
48 ashish 2183
  }
3430 rajveer 2184
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2185
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2186
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2187
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2188
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2189
        this.clientManager = clientManager;
2190
        this.protocolFactory = protocolFactory;
2191
      }
2192
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2193
        return new AsyncClient(protocolFactory, clientManager, transport);
2194
      }
48 ashish 2195
    }
2196
 
3430 rajveer 2197
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2198
      super(protocolFactory, clientManager, transport);
2199
    }
48 ashish 2200
 
3430 rajveer 2201
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException {
2202
      checkReady();
2203
      createAnonymousUser_call method_call = new createAnonymousUser_call(jsessionId, resultHandler, this, ___protocolFactory, ___transport);
2204
      this.___currentMethod = method_call;
2205
      ___manager.call(method_call);
2206
    }
2207
 
2208
    public static class createAnonymousUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2209
      private String jsessionId;
2210
      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 {
2211
        super(client, protocolFactory, transport, resultHandler, false);
2212
        this.jsessionId = jsessionId;
48 ashish 2213
      }
3430 rajveer 2214
 
2215
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2216
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createAnonymousUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2217
        createAnonymousUser_args args = new createAnonymousUser_args();
2218
        args.setJsessionId(jsessionId);
2219
        args.write(prot);
2220
        prot.writeMessageEnd();
2221
      }
2222
 
2223
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2224
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2225
          throw new IllegalStateException("Method call not finished!");
2226
        }
2227
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2228
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2229
        return (new Client(prot)).recv_createAnonymousUser();
2230
      }
48 ashish 2231
    }
2232
 
3430 rajveer 2233
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserById_call> resultHandler) throws org.apache.thrift.TException {
2234
      checkReady();
2235
      getUserById_call method_call = new getUserById_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2236
      this.___currentMethod = method_call;
2237
      ___manager.call(method_call);
2238
    }
2239
 
2240
    public static class getUserById_call extends org.apache.thrift.async.TAsyncMethodCall {
2241
      private long userId;
2242
      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 {
2243
        super(client, protocolFactory, transport, resultHandler, false);
2244
        this.userId = userId;
2245
      }
2246
 
2247
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2248
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2249
        getUserById_args args = new getUserById_args();
2250
        args.setUserId(userId);
2251
        args.write(prot);
2252
        prot.writeMessageEnd();
2253
      }
2254
 
2255
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2256
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2257
          throw new IllegalStateException("Method call not finished!");
2258
        }
2259
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2260
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2261
        return (new Client(prot)).recv_getUserById();
2262
      }
2263
    }
2264
 
2265
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<getUserByEmail_call> resultHandler) throws org.apache.thrift.TException {
2266
      checkReady();
2267
      getUserByEmail_call method_call = new getUserByEmail_call(email, resultHandler, this, ___protocolFactory, ___transport);
2268
      this.___currentMethod = method_call;
2269
      ___manager.call(method_call);
2270
    }
2271
 
2272
    public static class getUserByEmail_call extends org.apache.thrift.async.TAsyncMethodCall {
2273
      private String email;
2274
      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 {
2275
        super(client, protocolFactory, transport, resultHandler, false);
2276
        this.email = email;
2277
      }
2278
 
2279
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2280
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserByEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2281
        getUserByEmail_args args = new getUserByEmail_args();
2282
        args.setEmail(email);
2283
        args.write(prot);
2284
        prot.writeMessageEnd();
2285
      }
2286
 
2287
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2288
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2289
          throw new IllegalStateException("Method call not finished!");
2290
        }
2291
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2292
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2293
        return (new Client(prot)).recv_getUserByEmail();
2294
      }
2295
    }
2296
 
2297
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException {
2298
      checkReady();
2299
      getUserByMobileNumber_call method_call = new getUserByMobileNumber_call(mobileNumber, resultHandler, this, ___protocolFactory, ___transport);
2300
      this.___currentMethod = method_call;
2301
      ___manager.call(method_call);
2302
    }
2303
 
2304
    public static class getUserByMobileNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
2305
      private long mobileNumber;
2306
      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 {
2307
        super(client, protocolFactory, transport, resultHandler, false);
2308
        this.mobileNumber = mobileNumber;
2309
      }
2310
 
2311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserByMobileNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
2313
        getUserByMobileNumber_args args = new getUserByMobileNumber_args();
2314
        args.setMobileNumber(mobileNumber);
2315
        args.write(prot);
2316
        prot.writeMessageEnd();
2317
      }
2318
 
2319
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2320
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2321
          throw new IllegalStateException("Method call not finished!");
2322
        }
2323
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2324
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2325
        return (new Client(prot)).recv_getUserByMobileNumber();
2326
      }
2327
    }
2328
 
2329
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler) throws org.apache.thrift.TException {
2330
      checkReady();
2331
      createUser_call method_call = new createUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
2332
      this.___currentMethod = method_call;
2333
      ___manager.call(method_call);
2334
    }
2335
 
2336
    public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2337
      private User user;
2338
      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 {
2339
        super(client, protocolFactory, transport, resultHandler, false);
2340
        this.user = user;
2341
      }
2342
 
2343
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2344
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2345
        createUser_args args = new createUser_args();
2346
        args.setUser(user);
2347
        args.write(prot);
2348
        prot.writeMessageEnd();
2349
      }
2350
 
2351
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2353
          throw new IllegalStateException("Method call not finished!");
2354
        }
2355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2357
        return (new Client(prot)).recv_createUser();
2358
      }
2359
    }
2360
 
2361
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<updateUser_call> resultHandler) throws org.apache.thrift.TException {
2362
      checkReady();
2363
      updateUser_call method_call = new updateUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
2364
      this.___currentMethod = method_call;
2365
      ___manager.call(method_call);
2366
    }
2367
 
2368
    public static class updateUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2369
      private User user;
2370
      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 {
2371
        super(client, protocolFactory, transport, resultHandler, false);
2372
        this.user = user;
2373
      }
2374
 
2375
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2376
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2377
        updateUser_args args = new updateUser_args();
2378
        args.setUser(user);
2379
        args.write(prot);
2380
        prot.writeMessageEnd();
2381
      }
2382
 
2383
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2384
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2385
          throw new IllegalStateException("Method call not finished!");
2386
        }
2387
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2389
        return (new Client(prot)).recv_updateUser();
2390
      }
2391
    }
2392
 
2393
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
2394
      checkReady();
2395
      deleteUser_call method_call = new deleteUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2396
      this.___currentMethod = method_call;
2397
      ___manager.call(method_call);
2398
    }
2399
 
2400
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2401
      private long userId;
2402
      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 {
2403
        super(client, protocolFactory, transport, resultHandler, false);
2404
        this.userId = userId;
2405
      }
2406
 
2407
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2408
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2409
        deleteUser_args args = new deleteUser_args();
2410
        args.setUserId(userId);
2411
        args.write(prot);
2412
        prot.writeMessageEnd();
2413
      }
2414
 
2415
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2416
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2417
          throw new IllegalStateException("Method call not finished!");
2418
        }
2419
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2420
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2421
        return (new Client(prot)).recv_deleteUser();
2422
      }
2423
    }
2424
 
2425
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserState_call> resultHandler) throws org.apache.thrift.TException {
2426
      checkReady();
2427
      getUserState_call method_call = new getUserState_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2428
      this.___currentMethod = method_call;
2429
      ___manager.call(method_call);
2430
    }
2431
 
2432
    public static class getUserState_call extends org.apache.thrift.async.TAsyncMethodCall {
2433
      private long userId;
2434
      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 {
2435
        super(client, protocolFactory, transport, resultHandler, false);
2436
        this.userId = userId;
2437
      }
2438
 
2439
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2440
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserState", org.apache.thrift.protocol.TMessageType.CALL, 0));
2441
        getUserState_args args = new getUserState_args();
2442
        args.setUserId(userId);
2443
        args.write(prot);
2444
        prot.writeMessageEnd();
2445
      }
2446
 
2447
      public UserState getResult() throws UserContextException, org.apache.thrift.TException {
2448
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2449
          throw new IllegalStateException("Method call not finished!");
2450
        }
2451
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2452
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2453
        return (new Client(prot)).recv_getUserState();
2454
      }
2455
    }
2456
 
2457
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2458
      checkReady();
2459
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2460
      this.___currentMethod = method_call;
2461
      ___manager.call(method_call);
2462
    }
2463
 
2464
    public static class authenticateUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2465
      private String email;
2466
      private String password;
2467
      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 {
2468
        super(client, protocolFactory, transport, resultHandler, false);
2469
        this.email = email;
2470
        this.password = password;
2471
      }
2472
 
2473
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2474
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2475
        authenticateUser_args args = new authenticateUser_args();
2476
        args.setEmail(email);
2477
        args.setPassword(password);
2478
        args.write(prot);
2479
        prot.writeMessageEnd();
2480
      }
2481
 
2482
      public User getResult() throws AuthenticationException, org.apache.thrift.TException {
2483
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2484
          throw new IllegalStateException("Method call not finished!");
2485
        }
2486
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2487
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2488
        return (new Client(prot)).recv_authenticateUser();
2489
      }
2490
    }
2491
 
2492
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<userExists_call> resultHandler) throws org.apache.thrift.TException {
2493
      checkReady();
2494
      userExists_call method_call = new userExists_call(email, resultHandler, this, ___protocolFactory, ___transport);
2495
      this.___currentMethod = method_call;
2496
      ___manager.call(method_call);
2497
    }
2498
 
2499
    public static class userExists_call extends org.apache.thrift.async.TAsyncMethodCall {
2500
      private String email;
2501
      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 {
2502
        super(client, protocolFactory, transport, resultHandler, false);
2503
        this.email = email;
2504
      }
2505
 
2506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("userExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
2508
        userExists_args args = new userExists_args();
2509
        args.setEmail(email);
2510
        args.write(prot);
2511
        prot.writeMessageEnd();
2512
      }
2513
 
2514
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2515
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2516
          throw new IllegalStateException("Method call not finished!");
2517
        }
2518
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2519
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2520
        return (new Client(prot)).recv_userExists();
2521
      }
2522
    }
2523
 
2524
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<addAddressForUser_call> resultHandler) throws org.apache.thrift.TException {
2525
      checkReady();
2526
      addAddressForUser_call method_call = new addAddressForUser_call(userId, address, setDefault, resultHandler, this, ___protocolFactory, ___transport);
2527
      this.___currentMethod = method_call;
2528
      ___manager.call(method_call);
2529
    }
2530
 
2531
    public static class addAddressForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2532
      private long userId;
2533
      private Address address;
2534
      private boolean setDefault;
2535
      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 {
2536
        super(client, protocolFactory, transport, resultHandler, false);
2537
        this.userId = userId;
2538
        this.address = address;
2539
        this.setDefault = setDefault;
2540
      }
2541
 
2542
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2543
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAddressForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2544
        addAddressForUser_args args = new addAddressForUser_args();
2545
        args.setUserId(userId);
2546
        args.setAddress(address);
2547
        args.setSetDefault(setDefault);
2548
        args.write(prot);
2549
        prot.writeMessageEnd();
2550
      }
2551
 
2552
      public long getResult() throws UserContextException, org.apache.thrift.TException {
2553
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2554
          throw new IllegalStateException("Method call not finished!");
2555
        }
2556
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2557
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2558
        return (new Client(prot)).recv_addAddressForUser();
2559
      }
2560
    }
2561
 
2562
    public void removeAddressForUser(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<removeAddressForUser_call> resultHandler) throws org.apache.thrift.TException {
2563
      checkReady();
2564
      removeAddressForUser_call method_call = new removeAddressForUser_call(userid, addressId, resultHandler, this, ___protocolFactory, ___transport);
2565
      this.___currentMethod = method_call;
2566
      ___manager.call(method_call);
2567
    }
2568
 
2569
    public static class removeAddressForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2570
      private long userid;
2571
      private long addressId;
2572
      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 {
2573
        super(client, protocolFactory, transport, resultHandler, false);
2574
        this.userid = userid;
2575
        this.addressId = addressId;
2576
      }
2577
 
2578
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2579
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeAddressForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2580
        removeAddressForUser_args args = new removeAddressForUser_args();
2581
        args.setUserid(userid);
2582
        args.setAddressId(addressId);
2583
        args.write(prot);
2584
        prot.writeMessageEnd();
2585
      }
2586
 
2587
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2588
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2589
          throw new IllegalStateException("Method call not finished!");
2590
        }
2591
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2592
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2593
        return (new Client(prot)).recv_removeAddressForUser();
2594
      }
2595
    }
2596
 
2597
    public void setUserAsLoggedIn(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedIn_call> resultHandler) throws org.apache.thrift.TException {
2598
      checkReady();
2599
      setUserAsLoggedIn_call method_call = new setUserAsLoggedIn_call(userId, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2600
      this.___currentMethod = method_call;
2601
      ___manager.call(method_call);
2602
    }
2603
 
2604
    public static class setUserAsLoggedIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2605
      private long userId;
2606
      private long timestamp;
2607
      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 {
2608
        super(client, protocolFactory, transport, resultHandler, false);
2609
        this.userId = userId;
2610
        this.timestamp = timestamp;
2611
      }
2612
 
2613
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2614
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserAsLoggedIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2615
        setUserAsLoggedIn_args args = new setUserAsLoggedIn_args();
2616
        args.setUserId(userId);
2617
        args.setTimestamp(timestamp);
2618
        args.write(prot);
2619
        prot.writeMessageEnd();
2620
      }
2621
 
2622
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2623
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2624
          throw new IllegalStateException("Method call not finished!");
2625
        }
2626
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2627
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2628
        return (new Client(prot)).recv_setUserAsLoggedIn();
2629
      }
2630
    }
2631
 
2632
    public void setUserAsLoggedOut(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedOut_call> resultHandler) throws org.apache.thrift.TException {
2633
      checkReady();
2634
      setUserAsLoggedOut_call method_call = new setUserAsLoggedOut_call(userid, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2635
      this.___currentMethod = method_call;
2636
      ___manager.call(method_call);
2637
    }
2638
 
2639
    public static class setUserAsLoggedOut_call extends org.apache.thrift.async.TAsyncMethodCall {
2640
      private long userid;
2641
      private long timestamp;
2642
      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 {
2643
        super(client, protocolFactory, transport, resultHandler, false);
2644
        this.userid = userid;
2645
        this.timestamp = timestamp;
2646
      }
2647
 
2648
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2649
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserAsLoggedOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
2650
        setUserAsLoggedOut_args args = new setUserAsLoggedOut_args();
2651
        args.setUserid(userid);
2652
        args.setTimestamp(timestamp);
2653
        args.write(prot);
2654
        prot.writeMessageEnd();
2655
      }
2656
 
2657
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2658
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2659
          throw new IllegalStateException("Method call not finished!");
2660
        }
2661
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2662
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2663
        return (new Client(prot)).recv_setUserAsLoggedOut();
2664
      }
2665
    }
2666
 
2667
    public void setDefaultAddress(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<setDefaultAddress_call> resultHandler) throws org.apache.thrift.TException {
2668
      checkReady();
2669
      setDefaultAddress_call method_call = new setDefaultAddress_call(userid, addressId, resultHandler, this, ___protocolFactory, ___transport);
2670
      this.___currentMethod = method_call;
2671
      ___manager.call(method_call);
2672
    }
2673
 
2674
    public static class setDefaultAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
2675
      private long userid;
2676
      private long addressId;
2677
      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 {
2678
        super(client, protocolFactory, transport, resultHandler, false);
2679
        this.userid = userid;
2680
        this.addressId = addressId;
2681
      }
2682
 
2683
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2684
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setDefaultAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
2685
        setDefaultAddress_args args = new setDefaultAddress_args();
2686
        args.setUserid(userid);
2687
        args.setAddressId(addressId);
2688
        args.write(prot);
2689
        prot.writeMessageEnd();
2690
      }
2691
 
2692
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2693
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2694
          throw new IllegalStateException("Method call not finished!");
2695
        }
2696
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2697
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2698
        return (new Client(prot)).recv_setDefaultAddress();
2699
      }
2700
    }
2701
 
2702
    public void updatePassword(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
2703
      checkReady();
2704
      updatePassword_call method_call = new updatePassword_call(userid, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
2705
      this.___currentMethod = method_call;
2706
      ___manager.call(method_call);
2707
    }
2708
 
2709
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
2710
      private long userid;
2711
      private String oldPassword;
2712
      private String newPassword;
2713
      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 {
2714
        super(client, protocolFactory, transport, resultHandler, false);
2715
        this.userid = userid;
2716
        this.oldPassword = oldPassword;
2717
        this.newPassword = newPassword;
2718
      }
2719
 
2720
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2721
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
2722
        updatePassword_args args = new updatePassword_args();
2723
        args.setUserid(userid);
2724
        args.setOldPassword(oldPassword);
2725
        args.setNewPassword(newPassword);
2726
        args.write(prot);
2727
        prot.writeMessageEnd();
2728
      }
2729
 
2730
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2731
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2732
          throw new IllegalStateException("Method call not finished!");
2733
        }
2734
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2735
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2736
        return (new Client(prot)).recv_updatePassword();
2737
      }
2738
    }
2739
 
2740
    public void forgotPassword(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<forgotPassword_call> resultHandler) throws org.apache.thrift.TException {
2741
      checkReady();
2742
      forgotPassword_call method_call = new forgotPassword_call(email, newPassword, resultHandler, this, ___protocolFactory, ___transport);
2743
      this.___currentMethod = method_call;
2744
      ___manager.call(method_call);
2745
    }
2746
 
2747
    public static class forgotPassword_call extends org.apache.thrift.async.TAsyncMethodCall {
2748
      private String email;
2749
      private String newPassword;
2750
      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 {
2751
        super(client, protocolFactory, transport, resultHandler, false);
2752
        this.email = email;
2753
        this.newPassword = newPassword;
2754
      }
2755
 
2756
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2757
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("forgotPassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
2758
        forgotPassword_args args = new forgotPassword_args();
2759
        args.setEmail(email);
2760
        args.setNewPassword(newPassword);
2761
        args.write(prot);
2762
        prot.writeMessageEnd();
2763
      }
2764
 
2765
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2766
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2767
          throw new IllegalStateException("Method call not finished!");
2768
        }
2769
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2770
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2771
        return (new Client(prot)).recv_forgotPassword();
2772
      }
2773
    }
2774
 
2775
    public void getAllAddressesForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getAllAddressesForUser_call> resultHandler) throws org.apache.thrift.TException {
2776
      checkReady();
2777
      getAllAddressesForUser_call method_call = new getAllAddressesForUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2778
      this.___currentMethod = method_call;
2779
      ___manager.call(method_call);
2780
    }
2781
 
2782
    public static class getAllAddressesForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2783
      private long userId;
2784
      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 {
2785
        super(client, protocolFactory, transport, resultHandler, false);
2786
        this.userId = userId;
2787
      }
2788
 
2789
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2790
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAddressesForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2791
        getAllAddressesForUser_args args = new getAllAddressesForUser_args();
2792
        args.setUserId(userId);
2793
        args.write(prot);
2794
        prot.writeMessageEnd();
2795
      }
2796
 
2797
      public List<Address> getResult() throws UserContextException, org.apache.thrift.TException {
2798
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2799
          throw new IllegalStateException("Method call not finished!");
2800
        }
2801
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2802
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2803
        return (new Client(prot)).recv_getAllAddressesForUser();
2804
      }
2805
    }
2806
 
2807
    public void getAddressById(long addressId, org.apache.thrift.async.AsyncMethodCallback<getAddressById_call> resultHandler) throws org.apache.thrift.TException {
2808
      checkReady();
2809
      getAddressById_call method_call = new getAddressById_call(addressId, resultHandler, this, ___protocolFactory, ___transport);
2810
      this.___currentMethod = method_call;
2811
      ___manager.call(method_call);
2812
    }
2813
 
2814
    public static class getAddressById_call extends org.apache.thrift.async.TAsyncMethodCall {
2815
      private long addressId;
2816
      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 {
2817
        super(client, protocolFactory, transport, resultHandler, false);
2818
        this.addressId = addressId;
2819
      }
2820
 
2821
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2822
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddressById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2823
        getAddressById_args args = new getAddressById_args();
2824
        args.setAddressId(addressId);
2825
        args.write(prot);
2826
        prot.writeMessageEnd();
2827
      }
2828
 
2829
      public Address getResult() throws UserContextException, org.apache.thrift.TException {
2830
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2831
          throw new IllegalStateException("Method call not finished!");
2832
        }
2833
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2834
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2835
        return (new Client(prot)).recv_getAddressById();
2836
      }
2837
    }
2838
 
2839
    public void getDefaultAddressId(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultAddressId_call> resultHandler) throws org.apache.thrift.TException {
2840
      checkReady();
2841
      getDefaultAddressId_call method_call = new getDefaultAddressId_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2842
      this.___currentMethod = method_call;
2843
      ___manager.call(method_call);
2844
    }
2845
 
2846
    public static class getDefaultAddressId_call extends org.apache.thrift.async.TAsyncMethodCall {
2847
      private long userId;
2848
      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 {
2849
        super(client, protocolFactory, transport, resultHandler, false);
2850
        this.userId = userId;
2851
      }
2852
 
2853
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2854
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDefaultAddressId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2855
        getDefaultAddressId_args args = new getDefaultAddressId_args();
2856
        args.setUserId(userId);
2857
        args.write(prot);
2858
        prot.writeMessageEnd();
2859
      }
2860
 
2861
      public long getResult() throws UserContextException, org.apache.thrift.TException {
2862
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2863
          throw new IllegalStateException("Method call not finished!");
2864
        }
2865
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2866
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2867
        return (new Client(prot)).recv_getDefaultAddressId();
2868
      }
2869
    }
2870
 
2871
    public void getDefaultPincode(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultPincode_call> resultHandler) throws org.apache.thrift.TException {
2872
      checkReady();
2873
      getDefaultPincode_call method_call = new getDefaultPincode_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2874
      this.___currentMethod = method_call;
2875
      ___manager.call(method_call);
2876
    }
2877
 
2878
    public static class getDefaultPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
2879
      private long userId;
2880
      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 {
2881
        super(client, protocolFactory, transport, resultHandler, false);
2882
        this.userId = userId;
2883
      }
2884
 
2885
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2886
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDefaultPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
2887
        getDefaultPincode_args args = new getDefaultPincode_args();
2888
        args.setUserId(userId);
2889
        args.write(prot);
2890
        prot.writeMessageEnd();
2891
      }
2892
 
2893
      public String getResult() throws UserContextException, org.apache.thrift.TException {
2894
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2895
          throw new IllegalStateException("Method call not finished!");
2896
        }
2897
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2898
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2899
        return (new Client(prot)).recv_getDefaultPincode();
2900
      }
2901
    }
2902
 
2903
    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 {
2904
      checkReady();
2905
      saveUserCommunication_call method_call = new saveUserCommunication_call(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message, resultHandler, this, ___protocolFactory, ___transport);
2906
      this.___currentMethod = method_call;
2907
      ___manager.call(method_call);
2908
    }
2909
 
2910
    public static class saveUserCommunication_call extends org.apache.thrift.async.TAsyncMethodCall {
2911
      private long userId;
2912
      private String replyTo;
2913
      private long communicationType;
2914
      private long orderId;
2915
      private String airwaybillNo;
2916
      private String productName;
2917
      private String subject;
2918
      private String message;
2919
      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 {
2920
        super(client, protocolFactory, transport, resultHandler, false);
2921
        this.userId = userId;
2922
        this.replyTo = replyTo;
2923
        this.communicationType = communicationType;
2924
        this.orderId = orderId;
2925
        this.airwaybillNo = airwaybillNo;
2926
        this.productName = productName;
2927
        this.subject = subject;
2928
        this.message = message;
2929
      }
2930
 
2931
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2932
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserCommunication", org.apache.thrift.protocol.TMessageType.CALL, 0));
2933
        saveUserCommunication_args args = new saveUserCommunication_args();
2934
        args.setUserId(userId);
2935
        args.setReplyTo(replyTo);
2936
        args.setCommunicationType(communicationType);
2937
        args.setOrderId(orderId);
2938
        args.setAirwaybillNo(airwaybillNo);
2939
        args.setProductName(productName);
2940
        args.setSubject(subject);
2941
        args.setMessage(message);
2942
        args.write(prot);
2943
        prot.writeMessageEnd();
2944
      }
2945
 
2946
      public boolean getResult() throws UserCommunicationException, org.apache.thrift.TException {
2947
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2948
          throw new IllegalStateException("Method call not finished!");
2949
        }
2950
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2951
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2952
        return (new Client(prot)).recv_saveUserCommunication();
2953
      }
2954
    }
2955
 
2956
    public void getUserCommunicationById(long id, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationById_call> resultHandler) throws org.apache.thrift.TException {
2957
      checkReady();
2958
      getUserCommunicationById_call method_call = new getUserCommunicationById_call(id, resultHandler, this, ___protocolFactory, ___transport);
2959
      this.___currentMethod = method_call;
2960
      ___manager.call(method_call);
2961
    }
2962
 
2963
    public static class getUserCommunicationById_call extends org.apache.thrift.async.TAsyncMethodCall {
2964
      private long id;
2965
      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 {
2966
        super(client, protocolFactory, transport, resultHandler, false);
2967
        this.id = id;
2968
      }
2969
 
2970
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2971
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCommunicationById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2972
        getUserCommunicationById_args args = new getUserCommunicationById_args();
2973
        args.setId(id);
2974
        args.write(prot);
2975
        prot.writeMessageEnd();
2976
      }
2977
 
2978
      public UserCommunication getResult() throws UserCommunicationException, org.apache.thrift.TException {
2979
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2980
          throw new IllegalStateException("Method call not finished!");
2981
        }
2982
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2983
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2984
        return (new Client(prot)).recv_getUserCommunicationById();
2985
      }
2986
    }
2987
 
2988
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException {
2989
      checkReady();
2990
      getUserCommunicationByUser_call method_call = new getUserCommunicationByUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2991
      this.___currentMethod = method_call;
2992
      ___manager.call(method_call);
2993
    }
2994
 
2995
    public static class getUserCommunicationByUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2996
      private long userId;
2997
      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 {
2998
        super(client, protocolFactory, transport, resultHandler, false);
2999
        this.userId = userId;
3000
      }
3001
 
3002
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3003
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCommunicationByUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3004
        getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
3005
        args.setUserId(userId);
3006
        args.write(prot);
3007
        prot.writeMessageEnd();
3008
      }
3009
 
3010
      public List<UserCommunication> getResult() throws UserCommunicationException, org.apache.thrift.TException {
3011
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3012
          throw new IllegalStateException("Method call not finished!");
3013
        }
3014
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3015
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3016
        return (new Client(prot)).recv_getUserCommunicationByUser();
3017
      }
3018
    }
3019
 
3020
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException {
3021
      checkReady();
3022
      getAllUserCommunications_call method_call = new getAllUserCommunications_call(resultHandler, this, ___protocolFactory, ___transport);
3023
      this.___currentMethod = method_call;
3024
      ___manager.call(method_call);
3025
    }
3026
 
3027
    public static class getAllUserCommunications_call extends org.apache.thrift.async.TAsyncMethodCall {
3028
      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 {
3029
        super(client, protocolFactory, transport, resultHandler, false);
3030
      }
3031
 
3032
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3033
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserCommunications", org.apache.thrift.protocol.TMessageType.CALL, 0));
3034
        getAllUserCommunications_args args = new getAllUserCommunications_args();
3035
        args.write(prot);
3036
        prot.writeMessageEnd();
3037
      }
3038
 
3039
      public List<UserCommunication> getResult() throws UserCommunicationException, org.apache.thrift.TException {
3040
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3041
          throw new IllegalStateException("Method call not finished!");
3042
        }
3043
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3044
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3045
        return (new Client(prot)).recv_getAllUserCommunications();
3046
      }
3047
    }
3048
 
3049
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3050
      checkReady();
3051
      createMasterAffiliate_call method_call = new createMasterAffiliate_call(name, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3052
      this.___currentMethod = method_call;
3053
      ___manager.call(method_call);
3054
    }
3055
 
3056
    public static class createMasterAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3057
      private String name;
3058
      private long addedOn;
3059
      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 {
3060
        super(client, protocolFactory, transport, resultHandler, false);
3061
        this.name = name;
3062
        this.addedOn = addedOn;
3063
      }
3064
 
3065
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3066
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createMasterAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3067
        createMasterAffiliate_args args = new createMasterAffiliate_args();
3068
        args.setName(name);
3069
        args.setAddedOn(addedOn);
3070
        args.write(prot);
3071
        prot.writeMessageEnd();
3072
      }
3073
 
3074
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3075
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3076
          throw new IllegalStateException("Method call not finished!");
3077
        }
3078
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3079
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3080
        return (new Client(prot)).recv_createMasterAffiliate();
3081
      }
3082
    }
3083
 
3084
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException {
3085
      checkReady();
3086
      getAllMasterAffiliates_call method_call = new getAllMasterAffiliates_call(resultHandler, this, ___protocolFactory, ___transport);
3087
      this.___currentMethod = method_call;
3088
      ___manager.call(method_call);
3089
    }
3090
 
3091
    public static class getAllMasterAffiliates_call extends org.apache.thrift.async.TAsyncMethodCall {
3092
      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 {
3093
        super(client, protocolFactory, transport, resultHandler, false);
3094
      }
3095
 
3096
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3097
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllMasterAffiliates", org.apache.thrift.protocol.TMessageType.CALL, 0));
3098
        getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
3099
        args.write(prot);
3100
        prot.writeMessageEnd();
3101
      }
3102
 
3103
      public List<MasterAffiliate> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3104
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3105
          throw new IllegalStateException("Method call not finished!");
3106
        }
3107
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3109
        return (new Client(prot)).recv_getAllMasterAffiliates();
3110
      }
3111
    }
3112
 
3113
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException {
3114
      checkReady();
3115
      getMasterAffiliateById_call method_call = new getMasterAffiliateById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3116
      this.___currentMethod = method_call;
3117
      ___manager.call(method_call);
3118
    }
3119
 
3120
    public static class getMasterAffiliateById_call extends org.apache.thrift.async.TAsyncMethodCall {
3121
      private long id;
3122
      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 {
3123
        super(client, protocolFactory, transport, resultHandler, false);
3124
        this.id = id;
3125
      }
3126
 
3127
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3128
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterAffiliateById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3129
        getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3130
        args.setId(id);
3131
        args.write(prot);
3132
        prot.writeMessageEnd();
3133
      }
3134
 
3135
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3137
          throw new IllegalStateException("Method call not finished!");
3138
        }
3139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3141
        return (new Client(prot)).recv_getMasterAffiliateById();
3142
      }
3143
    }
3144
 
3145
    public void getMasterAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateByName_call> resultHandler) throws org.apache.thrift.TException {
3146
      checkReady();
3147
      getMasterAffiliateByName_call method_call = new getMasterAffiliateByName_call(name, resultHandler, this, ___protocolFactory, ___transport);
3148
      this.___currentMethod = method_call;
3149
      ___manager.call(method_call);
3150
    }
3151
 
3152
    public static class getMasterAffiliateByName_call extends org.apache.thrift.async.TAsyncMethodCall {
3153
      private String name;
3154
      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 {
3155
        super(client, protocolFactory, transport, resultHandler, false);
3156
        this.name = name;
3157
      }
3158
 
3159
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3160
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterAffiliateByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3161
        getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
3162
        args.setName(name);
3163
        args.write(prot);
3164
        prot.writeMessageEnd();
3165
      }
3166
 
3167
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3168
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3169
          throw new IllegalStateException("Method call not finished!");
3170
        }
3171
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3172
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3173
        return (new Client(prot)).recv_getMasterAffiliateByName();
3174
      }
3175
    }
3176
 
3177
    public void createAffiliate(String name, String url, long masterAffiliateId, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3178
      checkReady();
3179
      createAffiliate_call method_call = new createAffiliate_call(name, url, masterAffiliateId, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3180
      this.___currentMethod = method_call;
3181
      ___manager.call(method_call);
3182
    }
3183
 
3184
    public static class createAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3185
      private String name;
3186
      private String url;
3187
      private long masterAffiliateId;
3188
      private long addedOn;
3189
      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 {
3190
        super(client, protocolFactory, transport, resultHandler, false);
3191
        this.name = name;
3192
        this.url = url;
3193
        this.masterAffiliateId = masterAffiliateId;
3194
        this.addedOn = addedOn;
3195
      }
3196
 
3197
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3198
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3199
        createAffiliate_args args = new createAffiliate_args();
3200
        args.setName(name);
3201
        args.setUrl(url);
3202
        args.setMasterAffiliateId(masterAffiliateId);
3203
        args.setAddedOn(addedOn);
3204
        args.write(prot);
3205
        prot.writeMessageEnd();
3206
      }
3207
 
3208
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3209
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3210
          throw new IllegalStateException("Method call not finished!");
3211
        }
3212
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3213
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3214
        return (new Client(prot)).recv_createAffiliate();
3215
      }
3216
    }
3217
 
3218
    public void getAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliateById_call> resultHandler) throws org.apache.thrift.TException {
3219
      checkReady();
3220
      getAffiliateById_call method_call = new getAffiliateById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3221
      this.___currentMethod = method_call;
3222
      ___manager.call(method_call);
3223
    }
3224
 
3225
    public static class getAffiliateById_call extends org.apache.thrift.async.TAsyncMethodCall {
3226
      private long id;
3227
      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 {
3228
        super(client, protocolFactory, transport, resultHandler, false);
3229
        this.id = id;
3230
      }
3231
 
3232
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3233
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliateById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3234
        getAffiliateById_args args = new getAffiliateById_args();
3235
        args.setId(id);
3236
        args.write(prot);
3237
        prot.writeMessageEnd();
3238
      }
3239
 
3240
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3241
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3242
          throw new IllegalStateException("Method call not finished!");
3243
        }
3244
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3245
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3246
        return (new Client(prot)).recv_getAffiliateById();
3247
      }
3248
    }
3249
 
3250
    public void getAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<getAffiliateByName_call> resultHandler) throws org.apache.thrift.TException {
3251
      checkReady();
3252
      getAffiliateByName_call method_call = new getAffiliateByName_call(name, resultHandler, this, ___protocolFactory, ___transport);
3253
      this.___currentMethod = method_call;
3254
      ___manager.call(method_call);
3255
    }
3256
 
3257
    public static class getAffiliateByName_call extends org.apache.thrift.async.TAsyncMethodCall {
3258
      private String name;
3259
      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 {
3260
        super(client, protocolFactory, transport, resultHandler, false);
3261
        this.name = name;
3262
      }
3263
 
3264
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3265
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliateByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3266
        getAffiliateByName_args args = new getAffiliateByName_args();
3267
        args.setName(name);
3268
        args.write(prot);
3269
        prot.writeMessageEnd();
3270
      }
3271
 
3272
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3273
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3274
          throw new IllegalStateException("Method call not finished!");
3275
        }
3276
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3277
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3278
        return (new Client(prot)).recv_getAffiliateByName();
3279
      }
3280
    }
3281
 
3282
    public void getTrackerById(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackerById_call> resultHandler) throws org.apache.thrift.TException {
3283
      checkReady();
3284
      getTrackerById_call method_call = new getTrackerById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3285
      this.___currentMethod = method_call;
3286
      ___manager.call(method_call);
3287
    }
3288
 
3289
    public static class getTrackerById_call extends org.apache.thrift.async.TAsyncMethodCall {
3290
      private long id;
3291
      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 {
3292
        super(client, protocolFactory, transport, resultHandler, false);
3293
        this.id = id;
3294
      }
3295
 
3296
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3297
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackerById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3298
        getTrackerById_args args = new getTrackerById_args();
3299
        args.setId(id);
3300
        args.write(prot);
3301
        prot.writeMessageEnd();
3302
      }
3303
 
3304
      public Tracker getResult() throws UserAffiliateException, org.apache.thrift.TException {
3305
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3306
          throw new IllegalStateException("Method call not finished!");
3307
        }
3308
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3309
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3310
        return (new Client(prot)).recv_getTrackerById();
3311
      }
3312
    }
3313
 
3314
    public void getAffiliatesByMasterAffiliate(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliatesByMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3315
      checkReady();
3316
      getAffiliatesByMasterAffiliate_call method_call = new getAffiliatesByMasterAffiliate_call(id, resultHandler, this, ___protocolFactory, ___transport);
3317
      this.___currentMethod = method_call;
3318
      ___manager.call(method_call);
3319
    }
3320
 
3321
    public static class getAffiliatesByMasterAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3322
      private long id;
3323
      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 {
3324
        super(client, protocolFactory, transport, resultHandler, false);
3325
        this.id = id;
3326
      }
3327
 
3328
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3329
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliatesByMasterAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3330
        getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
3331
        args.setId(id);
3332
        args.write(prot);
3333
        prot.writeMessageEnd();
3334
      }
3335
 
3336
      public List<Affiliate> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3337
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3338
          throw new IllegalStateException("Method call not finished!");
3339
        }
3340
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3341
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3342
        return (new Client(prot)).recv_getAffiliatesByMasterAffiliate();
3343
      }
3344
    }
3345
 
3346
    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 {
3347
      checkReady();
3348
      addTrackLog_call method_call = new addTrackLog_call(affiliateId, userId, event, url, data, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3349
      this.___currentMethod = method_call;
3350
      ___manager.call(method_call);
3351
    }
3352
 
3353
    public static class addTrackLog_call extends org.apache.thrift.async.TAsyncMethodCall {
3354
      private long affiliateId;
3355
      private long userId;
3356
      private TrackLogType event;
3357
      private String url;
3358
      private String data;
3359
      private long addedOn;
3360
      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 {
3361
        super(client, protocolFactory, transport, resultHandler, false);
3362
        this.affiliateId = affiliateId;
3363
        this.userId = userId;
3364
        this.event = event;
3365
        this.url = url;
3366
        this.data = data;
3367
        this.addedOn = addedOn;
3368
      }
3369
 
3370
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3371
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addTrackLog", org.apache.thrift.protocol.TMessageType.CALL, 0));
3372
        addTrackLog_args args = new addTrackLog_args();
3373
        args.setAffiliateId(affiliateId);
3374
        args.setUserId(userId);
3375
        args.setEvent(event);
3376
        args.setUrl(url);
3377
        args.setData(data);
3378
        args.setAddedOn(addedOn);
3379
        args.write(prot);
3380
        prot.writeMessageEnd();
3381
      }
3382
 
3383
      public long getResult() throws UserAffiliateException, org.apache.thrift.TException {
3384
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3385
          throw new IllegalStateException("Method call not finished!");
3386
        }
3387
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3389
        return (new Client(prot)).recv_addTrackLog();
3390
      }
3391
    }
3392
 
3393
    public void getTrackLogById(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackLogById_call> resultHandler) throws org.apache.thrift.TException {
3394
      checkReady();
3395
      getTrackLogById_call method_call = new getTrackLogById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3396
      this.___currentMethod = method_call;
3397
      ___manager.call(method_call);
3398
    }
3399
 
3400
    public static class getTrackLogById_call extends org.apache.thrift.async.TAsyncMethodCall {
3401
      private long id;
3402
      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 {
3403
        super(client, protocolFactory, transport, resultHandler, false);
3404
        this.id = id;
3405
      }
3406
 
3407
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3408
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3409
        getTrackLogById_args args = new getTrackLogById_args();
3410
        args.setId(id);
3411
        args.write(prot);
3412
        prot.writeMessageEnd();
3413
      }
3414
 
3415
      public TrackLog getResult() throws UserAffiliateException, org.apache.thrift.TException {
3416
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3417
          throw new IllegalStateException("Method call not finished!");
3418
        }
3419
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3420
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3421
        return (new Client(prot)).recv_getTrackLogById();
3422
      }
3423
    }
3424
 
3425
    public void getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3426
      checkReady();
3427
      getTrackLogsByAffiliate_call method_call = new getTrackLogsByAffiliate_call(affiliateId, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
3428
      this.___currentMethod = method_call;
3429
      ___manager.call(method_call);
3430
    }
3431
 
3432
    public static class getTrackLogsByAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3433
      private long affiliateId;
3434
      private long startDate;
3435
      private long endDate;
3436
      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 {
3437
        super(client, protocolFactory, transport, resultHandler, false);
3438
        this.affiliateId = affiliateId;
3439
        this.startDate = startDate;
3440
        this.endDate = endDate;
3441
      }
3442
 
3443
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3444
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogsByAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3445
        getTrackLogsByAffiliate_args args = new getTrackLogsByAffiliate_args();
3446
        args.setAffiliateId(affiliateId);
3447
        args.setStartDate(startDate);
3448
        args.setEndDate(endDate);
3449
        args.write(prot);
3450
        prot.writeMessageEnd();
3451
      }
3452
 
3453
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3454
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3455
          throw new IllegalStateException("Method call not finished!");
3456
        }
3457
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3458
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3459
        return (new Client(prot)).recv_getTrackLogsByAffiliate();
3460
      }
3461
    }
3462
 
3463
    public void getTrackLogsByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByUser_call> resultHandler) throws org.apache.thrift.TException {
3464
      checkReady();
3465
      getTrackLogsByUser_call method_call = new getTrackLogsByUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3466
      this.___currentMethod = method_call;
3467
      ___manager.call(method_call);
3468
    }
3469
 
3470
    public static class getTrackLogsByUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3471
      private long userId;
3472
      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 {
3473
        super(client, protocolFactory, transport, resultHandler, false);
3474
        this.userId = userId;
3475
      }
3476
 
3477
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3478
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogsByUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3479
        getTrackLogsByUser_args args = new getTrackLogsByUser_args();
3480
        args.setUserId(userId);
3481
        args.write(prot);
3482
        prot.writeMessageEnd();
3483
      }
3484
 
3485
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3486
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3487
          throw new IllegalStateException("Method call not finished!");
3488
        }
3489
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3490
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3491
        return (new Client(prot)).recv_getTrackLogsByUser();
3492
      }
3493
    }
3494
 
3495
    public void getTrackLogs(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<getTrackLogs_call> resultHandler) throws org.apache.thrift.TException {
3496
      checkReady();
3497
      getTrackLogs_call method_call = new getTrackLogs_call(userId, event, url, resultHandler, this, ___protocolFactory, ___transport);
3498
      this.___currentMethod = method_call;
3499
      ___manager.call(method_call);
3500
    }
3501
 
3502
    public static class getTrackLogs_call extends org.apache.thrift.async.TAsyncMethodCall {
3503
      private long userId;
3504
      private String event;
3505
      private String url;
3506
      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 {
3507
        super(client, protocolFactory, transport, resultHandler, false);
3508
        this.userId = userId;
3509
        this.event = event;
3510
        this.url = url;
3511
      }
3512
 
3513
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3514
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3515
        getTrackLogs_args args = new getTrackLogs_args();
3516
        args.setUserId(userId);
3517
        args.setEvent(event);
3518
        args.setUrl(url);
3519
        args.write(prot);
3520
        prot.writeMessageEnd();
3521
      }
3522
 
3523
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3524
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3525
          throw new IllegalStateException("Method call not finished!");
3526
        }
3527
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3528
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3529
        return (new Client(prot)).recv_getTrackLogs();
3530
      }
3531
    }
3532
 
3533
    public void createCart(long userId, org.apache.thrift.async.AsyncMethodCallback<createCart_call> resultHandler) throws org.apache.thrift.TException {
3534
      checkReady();
3535
      createCart_call method_call = new createCart_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3536
      this.___currentMethod = method_call;
3537
      ___manager.call(method_call);
3538
    }
3539
 
3540
    public static class createCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3541
      private long userId;
3542
      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 {
3543
        super(client, protocolFactory, transport, resultHandler, false);
3544
        this.userId = userId;
3545
      }
3546
 
3547
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3548
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3549
        createCart_args args = new createCart_args();
3550
        args.setUserId(userId);
3551
        args.write(prot);
3552
        prot.writeMessageEnd();
3553
      }
3554
 
3555
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
3556
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3557
          throw new IllegalStateException("Method call not finished!");
3558
        }
3559
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3560
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3561
        return (new Client(prot)).recv_createCart();
3562
      }
3563
    }
3564
 
3565
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<getCurrentCart_call> resultHandler) throws org.apache.thrift.TException {
3566
      checkReady();
3567
      getCurrentCart_call method_call = new getCurrentCart_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3568
      this.___currentMethod = method_call;
3569
      ___manager.call(method_call);
3570
    }
3571
 
3572
    public static class getCurrentCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3573
      private long userId;
3574
      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 {
3575
        super(client, protocolFactory, transport, resultHandler, false);
3576
        this.userId = userId;
3577
      }
3578
 
3579
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3580
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3581
        getCurrentCart_args args = new getCurrentCart_args();
3582
        args.setUserId(userId);
3583
        args.write(prot);
3584
        prot.writeMessageEnd();
3585
      }
3586
 
3587
      public Cart getResult() throws ShoppingCartException, org.apache.thrift.TException {
3588
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3589
          throw new IllegalStateException("Method call not finished!");
3590
        }
3591
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3592
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3593
        return (new Client(prot)).recv_getCurrentCart();
3594
      }
3595
    }
3596
 
3597
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<getCart_call> resultHandler) throws org.apache.thrift.TException {
3598
      checkReady();
3599
      getCart_call method_call = new getCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
3600
      this.___currentMethod = method_call;
3601
      ___manager.call(method_call);
3602
    }
3603
 
3604
    public static class getCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3605
      private long cartId;
3606
      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 {
3607
        super(client, protocolFactory, transport, resultHandler, false);
3608
        this.cartId = cartId;
3609
      }
3610
 
3611
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3612
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3613
        getCart_args args = new getCart_args();
3614
        args.setCartId(cartId);
3615
        args.write(prot);
3616
        prot.writeMessageEnd();
3617
      }
3618
 
3619
      public Cart getResult() throws ShoppingCartException, org.apache.thrift.TException {
3620
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3621
          throw new IllegalStateException("Method call not finished!");
3622
        }
3623
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3624
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3625
        return (new Client(prot)).recv_getCart();
3626
      }
3627
    }
3628
 
3629
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsForUser_call> resultHandler) throws org.apache.thrift.TException {
3630
      checkReady();
3631
      getCartsForUser_call method_call = new getCartsForUser_call(userId, status, resultHandler, this, ___protocolFactory, ___transport);
3632
      this.___currentMethod = method_call;
3633
      ___manager.call(method_call);
3634
    }
3635
 
3636
    public static class getCartsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3637
      private long userId;
3638
      private CartStatus status;
3639
      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 {
3640
        super(client, protocolFactory, transport, resultHandler, false);
3641
        this.userId = userId;
3642
        this.status = status;
3643
      }
3644
 
3645
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3646
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3647
        getCartsForUser_args args = new getCartsForUser_args();
3648
        args.setUserId(userId);
3649
        args.setStatus(status);
3650
        args.write(prot);
3651
        prot.writeMessageEnd();
3652
      }
3653
 
3654
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3655
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3656
          throw new IllegalStateException("Method call not finished!");
3657
        }
3658
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3659
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3660
        return (new Client(prot)).recv_getCartsForUser();
3661
      }
3662
    }
3663
 
3664
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException {
3665
      checkReady();
3666
      getCartsByStatus_call method_call = new getCartsByStatus_call(status, resultHandler, this, ___protocolFactory, ___transport);
3667
      this.___currentMethod = method_call;
3668
      ___manager.call(method_call);
3669
    }
3670
 
3671
    public static class getCartsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3672
      private CartStatus status;
3673
      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 {
3674
        super(client, protocolFactory, transport, resultHandler, false);
3675
        this.status = status;
3676
      }
3677
 
3678
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3679
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3680
        getCartsByStatus_args args = new getCartsByStatus_args();
3681
        args.setStatus(status);
3682
        args.write(prot);
3683
        prot.writeMessageEnd();
3684
      }
3685
 
3686
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3687
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3688
          throw new IllegalStateException("Method call not finished!");
3689
        }
3690
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3691
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3692
        return (new Client(prot)).recv_getCartsByStatus();
3693
      }
3694
    }
3695
 
3696
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByTime_call> resultHandler) throws org.apache.thrift.TException {
3697
      checkReady();
3698
      getCartsByTime_call method_call = new getCartsByTime_call(from_time, to_time, status, resultHandler, this, ___protocolFactory, ___transport);
3699
      this.___currentMethod = method_call;
3700
      ___manager.call(method_call);
3701
    }
3702
 
3703
    public static class getCartsByTime_call extends org.apache.thrift.async.TAsyncMethodCall {
3704
      private long from_time;
3705
      private long to_time;
3706
      private CartStatus status;
3707
      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 {
3708
        super(client, protocolFactory, transport, resultHandler, false);
3709
        this.from_time = from_time;
3710
        this.to_time = to_time;
3711
        this.status = status;
3712
      }
3713
 
3714
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3715
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByTime", org.apache.thrift.protocol.TMessageType.CALL, 0));
3716
        getCartsByTime_args args = new getCartsByTime_args();
3717
        args.setFrom_time(from_time);
3718
        args.setTo_time(to_time);
3719
        args.setStatus(status);
3720
        args.write(prot);
3721
        prot.writeMessageEnd();
3722
      }
3723
 
3724
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3725
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3726
          throw new IllegalStateException("Method call not finished!");
3727
        }
3728
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3729
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3730
        return (new Client(prot)).recv_getCartsByTime();
3731
      }
3732
    }
3733
 
3734
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<changeCartStatus_call> resultHandler) throws org.apache.thrift.TException {
3735
      checkReady();
3736
      changeCartStatus_call method_call = new changeCartStatus_call(cartId, status, resultHandler, this, ___protocolFactory, ___transport);
3737
      this.___currentMethod = method_call;
3738
      ___manager.call(method_call);
3739
    }
3740
 
3741
    public static class changeCartStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3742
      private long cartId;
3743
      private CartStatus status;
3744
      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 {
3745
        super(client, protocolFactory, transport, resultHandler, false);
3746
        this.cartId = cartId;
3747
        this.status = status;
3748
      }
3749
 
3750
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3751
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeCartStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3752
        changeCartStatus_args args = new changeCartStatus_args();
3753
        args.setCartId(cartId);
3754
        args.setStatus(status);
3755
        args.write(prot);
3756
        prot.writeMessageEnd();
3757
      }
3758
 
3759
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3760
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3761
          throw new IllegalStateException("Method call not finished!");
3762
        }
3763
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3764
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3765
        (new Client(prot)).recv_changeCartStatus();
3766
      }
3767
    }
3768
 
3769
    public void addItemToCart(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addItemToCart_call> resultHandler) throws org.apache.thrift.TException {
3770
      checkReady();
3771
      addItemToCart_call method_call = new addItemToCart_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3772
      this.___currentMethod = method_call;
3773
      ___manager.call(method_call);
3774
    }
3775
 
3776
    public static class addItemToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3777
      private long cartId;
3778
      private long itemId;
3779
      private long quantity;
3780
      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 {
3781
        super(client, protocolFactory, transport, resultHandler, false);
3782
        this.cartId = cartId;
3783
        this.itemId = itemId;
3784
        this.quantity = quantity;
3785
      }
3786
 
3787
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3788
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItemToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3789
        addItemToCart_args args = new addItemToCart_args();
3790
        args.setCartId(cartId);
3791
        args.setItemId(itemId);
3792
        args.setQuantity(quantity);
3793
        args.write(prot);
3794
        prot.writeMessageEnd();
3795
      }
3796
 
3797
      public String getResult() throws ShoppingCartException, org.apache.thrift.TException {
3798
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3799
          throw new IllegalStateException("Method call not finished!");
3800
        }
3801
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3802
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3803
        return (new Client(prot)).recv_addItemToCart();
3804
      }
3805
    }
3806
 
3807
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException {
3808
      checkReady();
3809
      deleteItemFromCart_call method_call = new deleteItemFromCart_call(cartId, itemId, resultHandler, this, ___protocolFactory, ___transport);
3810
      this.___currentMethod = method_call;
3811
      ___manager.call(method_call);
3812
    }
3813
 
3814
    public static class deleteItemFromCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3815
      private long cartId;
3816
      private long itemId;
3817
      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 {
3818
        super(client, protocolFactory, transport, resultHandler, false);
3819
        this.cartId = cartId;
3820
        this.itemId = itemId;
3821
      }
3822
 
3823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3825
        deleteItemFromCart_args args = new deleteItemFromCart_args();
3826
        args.setCartId(cartId);
3827
        args.setItemId(itemId);
3828
        args.write(prot);
3829
        prot.writeMessageEnd();
3830
      }
3831
 
3832
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3833
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3834
          throw new IllegalStateException("Method call not finished!");
3835
        }
3836
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3837
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3838
        (new Client(prot)).recv_deleteItemFromCart();
3839
      }
3840
    }
3841
 
3842
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<changeQuantity_call> resultHandler) throws org.apache.thrift.TException {
3843
      checkReady();
3844
      changeQuantity_call method_call = new changeQuantity_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3845
      this.___currentMethod = method_call;
3846
      ___manager.call(method_call);
3847
    }
3848
 
3849
    public static class changeQuantity_call extends org.apache.thrift.async.TAsyncMethodCall {
3850
      private long cartId;
3851
      private long itemId;
3852
      private long quantity;
3853
      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 {
3854
        super(client, protocolFactory, transport, resultHandler, false);
3855
        this.cartId = cartId;
3856
        this.itemId = itemId;
3857
        this.quantity = quantity;
3858
      }
3859
 
3860
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3861
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeQuantity", org.apache.thrift.protocol.TMessageType.CALL, 0));
3862
        changeQuantity_args args = new changeQuantity_args();
3863
        args.setCartId(cartId);
3864
        args.setItemId(itemId);
3865
        args.setQuantity(quantity);
3866
        args.write(prot);
3867
        prot.writeMessageEnd();
3868
      }
3869
 
3870
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3871
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3872
          throw new IllegalStateException("Method call not finished!");
3873
        }
3874
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3875
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3876
        (new Client(prot)).recv_changeQuantity();
3877
      }
3878
    }
3879
 
3880
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
3881
      checkReady();
3882
      changeItemStatus_call method_call = new changeItemStatus_call(cartId, itemId, status, resultHandler, this, ___protocolFactory, ___transport);
3883
      this.___currentMethod = method_call;
3884
      ___manager.call(method_call);
3885
    }
3886
 
3887
    public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3888
      private long cartId;
3889
      private long itemId;
3890
      private LineStatus status;
3891
      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 {
3892
        super(client, protocolFactory, transport, resultHandler, false);
3893
        this.cartId = cartId;
3894
        this.itemId = itemId;
3895
        this.status = status;
3896
      }
3897
 
3898
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3899
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3900
        changeItemStatus_args args = new changeItemStatus_args();
3901
        args.setCartId(cartId);
3902
        args.setItemId(itemId);
3903
        args.setStatus(status);
3904
        args.write(prot);
3905
        prot.writeMessageEnd();
3906
      }
3907
 
3908
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3909
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3910
          throw new IllegalStateException("Method call not finished!");
3911
        }
3912
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3913
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3914
        (new Client(prot)).recv_changeItemStatus();
3915
      }
3916
    }
3917
 
3918
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<addAddressToCart_call> resultHandler) throws org.apache.thrift.TException {
3919
      checkReady();
3920
      addAddressToCart_call method_call = new addAddressToCart_call(cartId, addressId, resultHandler, this, ___protocolFactory, ___transport);
3921
      this.___currentMethod = method_call;
3922
      ___manager.call(method_call);
3923
    }
3924
 
3925
    public static class addAddressToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3926
      private long cartId;
3927
      private long addressId;
3928
      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 {
3929
        super(client, protocolFactory, transport, resultHandler, false);
3930
        this.cartId = cartId;
3931
        this.addressId = addressId;
3932
      }
3933
 
3934
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3935
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAddressToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3936
        addAddressToCart_args args = new addAddressToCart_args();
3937
        args.setCartId(cartId);
3938
        args.setAddressId(addressId);
3939
        args.write(prot);
3940
        prot.writeMessageEnd();
3941
      }
3942
 
3943
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3944
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3945
          throw new IllegalStateException("Method call not finished!");
3946
        }
3947
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3948
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3949
        (new Client(prot)).recv_addAddressToCart();
3950
      }
3951
    }
3952
 
3953
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException {
3954
      checkReady();
3955
      applyCouponToCart_call method_call = new applyCouponToCart_call(cartId, couponCode, totalPrice, discountedPrice, resultHandler, this, ___protocolFactory, ___transport);
3956
      this.___currentMethod = method_call;
3957
      ___manager.call(method_call);
3958
    }
3959
 
3960
    public static class applyCouponToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3961
      private long cartId;
3962
      private String couponCode;
3963
      private double totalPrice;
3964
      private double discountedPrice;
3965
      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 {
3966
        super(client, protocolFactory, transport, resultHandler, false);
3967
        this.cartId = cartId;
3968
        this.couponCode = couponCode;
3969
        this.totalPrice = totalPrice;
3970
        this.discountedPrice = discountedPrice;
3971
      }
3972
 
3973
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3974
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("applyCouponToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3975
        applyCouponToCart_args args = new applyCouponToCart_args();
3976
        args.setCartId(cartId);
3977
        args.setCouponCode(couponCode);
3978
        args.setTotalPrice(totalPrice);
3979
        args.setDiscountedPrice(discountedPrice);
3980
        args.write(prot);
3981
        prot.writeMessageEnd();
3982
      }
3983
 
3984
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3985
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3986
          throw new IllegalStateException("Method call not finished!");
3987
        }
3988
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3989
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3990
        (new Client(prot)).recv_applyCouponToCart();
3991
      }
3992
    }
3993
 
3994
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<removeCoupon_call> resultHandler) throws org.apache.thrift.TException {
3995
      checkReady();
3996
      removeCoupon_call method_call = new removeCoupon_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
3997
      this.___currentMethod = method_call;
3998
      ___manager.call(method_call);
3999
    }
4000
 
4001
    public static class removeCoupon_call extends org.apache.thrift.async.TAsyncMethodCall {
4002
      private long cartId;
4003
      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 {
4004
        super(client, protocolFactory, transport, resultHandler, false);
4005
        this.cartId = cartId;
4006
      }
4007
 
4008
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4009
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeCoupon", org.apache.thrift.protocol.TMessageType.CALL, 0));
4010
        removeCoupon_args args = new removeCoupon_args();
4011
        args.setCartId(cartId);
4012
        args.write(prot);
4013
        prot.writeMessageEnd();
4014
      }
4015
 
4016
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4017
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4018
          throw new IllegalStateException("Method call not finished!");
4019
        }
4020
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4021
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4022
        (new Client(prot)).recv_removeCoupon();
4023
      }
4024
    }
4025
 
4026
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
4027
      checkReady();
4028
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, resultHandler, this, ___protocolFactory, ___transport);
4029
      this.___currentMethod = method_call;
4030
      ___manager.call(method_call);
4031
    }
4032
 
4033
    public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4034
      private long cartId;
4035
      private String sessionSource;
4036
      private long sessionStartTime;
4037
      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 {
4038
        super(client, protocolFactory, transport, resultHandler, false);
4039
        this.cartId = cartId;
4040
        this.sessionSource = sessionSource;
4041
        this.sessionStartTime = sessionStartTime;
4042
      }
4043
 
4044
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4045
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4046
        createOrders_args args = new createOrders_args();
4047
        args.setCartId(cartId);
4048
        args.setSessionSource(sessionSource);
4049
        args.setSessionStartTime(sessionStartTime);
4050
        args.write(prot);
4051
        prot.writeMessageEnd();
4052
      }
4053
 
4054
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
4055
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4056
          throw new IllegalStateException("Method call not finished!");
4057
        }
4058
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4059
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4060
        return (new Client(prot)).recv_createOrders();
4061
      }
4062
    }
4063
 
4064
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<validateCart_call> resultHandler) throws org.apache.thrift.TException {
4065
      checkReady();
4066
      validateCart_call method_call = new validateCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4067
      this.___currentMethod = method_call;
4068
      ___manager.call(method_call);
4069
    }
4070
 
4071
    public static class validateCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4072
      private long cartId;
4073
      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 {
4074
        super(client, protocolFactory, transport, resultHandler, false);
4075
        this.cartId = cartId;
4076
      }
4077
 
4078
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4079
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4080
        validateCart_args args = new validateCart_args();
4081
        args.setCartId(cartId);
4082
        args.write(prot);
4083
        prot.writeMessageEnd();
4084
      }
4085
 
4086
      public String getResult() throws ShoppingCartException, org.apache.thrift.TException {
4087
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4088
          throw new IllegalStateException("Method call not finished!");
4089
        }
4090
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4091
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4092
        return (new Client(prot)).recv_validateCart();
4093
      }
4094
    }
4095
 
4096
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<mergeCart_call> resultHandler) throws org.apache.thrift.TException {
4097
      checkReady();
4098
      mergeCart_call method_call = new mergeCart_call(fromCartId, toCartId, resultHandler, this, ___protocolFactory, ___transport);
4099
      this.___currentMethod = method_call;
4100
      ___manager.call(method_call);
4101
    }
4102
 
4103
    public static class mergeCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4104
      private long fromCartId;
4105
      private long toCartId;
4106
      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 {
4107
        super(client, protocolFactory, transport, resultHandler, false);
4108
        this.fromCartId = fromCartId;
4109
        this.toCartId = toCartId;
4110
      }
4111
 
4112
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4113
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mergeCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4114
        mergeCart_args args = new mergeCart_args();
4115
        args.setFromCartId(fromCartId);
4116
        args.setToCartId(toCartId);
4117
        args.write(prot);
4118
        prot.writeMessageEnd();
4119
      }
4120
 
4121
      public void getResult() throws org.apache.thrift.TException {
4122
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4123
          throw new IllegalStateException("Method call not finished!");
4124
        }
4125
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4126
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4127
        (new Client(prot)).recv_mergeCart();
4128
      }
4129
    }
4130
 
4131
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<checkOut_call> resultHandler) throws org.apache.thrift.TException {
4132
      checkReady();
4133
      checkOut_call method_call = new checkOut_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4134
      this.___currentMethod = method_call;
4135
      ___manager.call(method_call);
4136
    }
4137
 
4138
    public static class checkOut_call extends org.apache.thrift.async.TAsyncMethodCall {
4139
      private long cartId;
4140
      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 {
4141
        super(client, protocolFactory, transport, resultHandler, false);
4142
        this.cartId = cartId;
4143
      }
4144
 
4145
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4146
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
4147
        checkOut_args args = new checkOut_args();
4148
        args.setCartId(cartId);
4149
        args.write(prot);
4150
        prot.writeMessageEnd();
4151
      }
4152
 
4153
      public boolean getResult() throws ShoppingCartException, org.apache.thrift.TException {
4154
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4155
          throw new IllegalStateException("Method call not finished!");
4156
        }
4157
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4158
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4159
        return (new Client(prot)).recv_checkOut();
4160
      }
4161
    }
4162
 
4163
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<resetCart_call> resultHandler) throws org.apache.thrift.TException {
4164
      checkReady();
4165
      resetCart_call method_call = new resetCart_call(cartId, items, resultHandler, this, ___protocolFactory, ___transport);
4166
      this.___currentMethod = method_call;
4167
      ___manager.call(method_call);
4168
    }
4169
 
4170
    public static class resetCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4171
      private long cartId;
4172
      private Map<Long,Double> items;
4173
      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 {
4174
        super(client, protocolFactory, transport, resultHandler, false);
4175
        this.cartId = cartId;
4176
        this.items = items;
4177
      }
4178
 
4179
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4180
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4181
        resetCart_args args = new resetCart_args();
4182
        args.setCartId(cartId);
4183
        args.setItems(items);
4184
        args.write(prot);
4185
        prot.writeMessageEnd();
4186
      }
4187
 
4188
      public boolean getResult() throws ShoppingCartException, org.apache.thrift.TException {
4189
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4190
          throw new IllegalStateException("Method call not finished!");
4191
        }
4192
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4193
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4194
        return (new Client(prot)).recv_resetCart();
4195
      }
4196
    }
4197
 
4198
    public void getUserCount(UserType userType, org.apache.thrift.async.AsyncMethodCallback<getUserCount_call> resultHandler) throws org.apache.thrift.TException {
4199
      checkReady();
4200
      getUserCount_call method_call = new getUserCount_call(userType, resultHandler, this, ___protocolFactory, ___transport);
4201
      this.___currentMethod = method_call;
4202
      ___manager.call(method_call);
4203
    }
4204
 
4205
    public static class getUserCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4206
      private UserType userType;
4207
      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 {
4208
        super(client, protocolFactory, transport, resultHandler, false);
4209
        this.userType = userType;
4210
      }
4211
 
4212
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4213
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4214
        getUserCount_args args = new getUserCount_args();
4215
        args.setUserType(userType);
4216
        args.write(prot);
4217
        prot.writeMessageEnd();
4218
      }
4219
 
4220
      public long getResult() throws org.apache.thrift.TException {
4221
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4222
          throw new IllegalStateException("Method call not finished!");
4223
        }
4224
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4225
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4226
        return (new Client(prot)).recv_getUserCount();
4227
      }
4228
    }
4229
 
4230
    public void getAllUsers(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAllUsers_call> resultHandler) throws org.apache.thrift.TException {
4231
      checkReady();
4232
      getAllUsers_call method_call = new getAllUsers_call(userType, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4233
      this.___currentMethod = method_call;
4234
      ___manager.call(method_call);
4235
    }
4236
 
4237
    public static class getAllUsers_call extends org.apache.thrift.async.TAsyncMethodCall {
4238
      private UserType userType;
4239
      private long startDate;
4240
      private long endDate;
4241
      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 {
4242
        super(client, protocolFactory, transport, resultHandler, false);
4243
        this.userType = userType;
4244
        this.startDate = startDate;
4245
        this.endDate = endDate;
4246
      }
4247
 
4248
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4249
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsers", org.apache.thrift.protocol.TMessageType.CALL, 0));
4250
        getAllUsers_args args = new getAllUsers_args();
4251
        args.setUserType(userType);
4252
        args.setStartDate(startDate);
4253
        args.setEndDate(endDate);
4254
        args.write(prot);
4255
        prot.writeMessageEnd();
4256
      }
4257
 
4258
      public List<User> getResult() throws org.apache.thrift.TException {
4259
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4260
          throw new IllegalStateException("Method call not finished!");
4261
        }
4262
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4263
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4264
        return (new Client(prot)).recv_getAllUsers();
4265
      }
4266
    }
4267
 
4268
    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 {
4269
      checkReady();
4270
      putUserNote_call method_call = new putUserNote_call(user_id, entity_id, slide, note, resultHandler, this, ___protocolFactory, ___transport);
4271
      this.___currentMethod = method_call;
4272
      ___manager.call(method_call);
4273
    }
4274
 
4275
    public static class putUserNote_call extends org.apache.thrift.async.TAsyncMethodCall {
4276
      private long user_id;
4277
      private long entity_id;
4278
      private String slide;
4279
      private String note;
4280
      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 {
4281
        super(client, protocolFactory, transport, resultHandler, false);
4282
        this.user_id = user_id;
4283
        this.entity_id = entity_id;
4284
        this.slide = slide;
4285
        this.note = note;
4286
      }
4287
 
4288
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4289
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putUserNote", org.apache.thrift.protocol.TMessageType.CALL, 0));
4290
        putUserNote_args args = new putUserNote_args();
4291
        args.setUser_id(user_id);
4292
        args.setEntity_id(entity_id);
4293
        args.setSlide(slide);
4294
        args.setNote(note);
4295
        args.write(prot);
4296
        prot.writeMessageEnd();
4297
      }
4298
 
4299
      public void getResult() throws org.apache.thrift.TException {
4300
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4301
          throw new IllegalStateException("Method call not finished!");
4302
        }
4303
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4304
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4305
        (new Client(prot)).recv_putUserNote();
4306
      }
4307
    }
4308
 
4309
    public void getUserNotes(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<getUserNotes_call> resultHandler) throws org.apache.thrift.TException {
4310
      checkReady();
4311
      getUserNotes_call method_call = new getUserNotes_call(user_id, entity_id, resultHandler, this, ___protocolFactory, ___transport);
4312
      this.___currentMethod = method_call;
4313
      ___manager.call(method_call);
4314
    }
4315
 
4316
    public static class getUserNotes_call extends org.apache.thrift.async.TAsyncMethodCall {
4317
      private long user_id;
4318
      private long entity_id;
4319
      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 {
4320
        super(client, protocolFactory, transport, resultHandler, false);
4321
        this.user_id = user_id;
4322
        this.entity_id = entity_id;
4323
      }
4324
 
4325
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4326
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserNotes", org.apache.thrift.protocol.TMessageType.CALL, 0));
4327
        getUserNotes_args args = new getUserNotes_args();
4328
        args.setUser_id(user_id);
4329
        args.setEntity_id(entity_id);
4330
        args.write(prot);
4331
        prot.writeMessageEnd();
4332
      }
4333
 
4334
      public List<UserNote> getResult() throws org.apache.thrift.TException {
4335
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4336
          throw new IllegalStateException("Method call not finished!");
4337
        }
4338
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4339
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4340
        return (new Client(prot)).recv_getUserNotes();
4341
      }
4342
    }
4343
 
4344
    public void getMyResearchItems(long userId, org.apache.thrift.async.AsyncMethodCallback<getMyResearchItems_call> resultHandler) throws org.apache.thrift.TException {
4345
      checkReady();
4346
      getMyResearchItems_call method_call = new getMyResearchItems_call(userId, resultHandler, this, ___protocolFactory, ___transport);
4347
      this.___currentMethod = method_call;
4348
      ___manager.call(method_call);
4349
    }
4350
 
4351
    public static class getMyResearchItems_call extends org.apache.thrift.async.TAsyncMethodCall {
4352
      private long userId;
4353
      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 {
4354
        super(client, protocolFactory, transport, resultHandler, false);
4355
        this.userId = userId;
4356
      }
4357
 
4358
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4359
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMyResearchItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
4360
        getMyResearchItems_args args = new getMyResearchItems_args();
4361
        args.setUserId(userId);
4362
        args.write(prot);
4363
        prot.writeMessageEnd();
4364
      }
4365
 
4366
      public List<Long> getResult() throws WidgetException, org.apache.thrift.TException {
4367
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4368
          throw new IllegalStateException("Method call not finished!");
4369
        }
4370
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4371
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4372
        return (new Client(prot)).recv_getMyResearchItems();
4373
      }
4374
    }
4375
 
4376
    public void updateMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateMyResearch_call> resultHandler) throws org.apache.thrift.TException {
4377
      checkReady();
4378
      updateMyResearch_call method_call = new updateMyResearch_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4379
      this.___currentMethod = method_call;
4380
      ___manager.call(method_call);
4381
    }
4382
 
4383
    public static class updateMyResearch_call extends org.apache.thrift.async.TAsyncMethodCall {
4384
      private long userId;
4385
      private long itemId;
4386
      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 {
4387
        super(client, protocolFactory, transport, resultHandler, false);
4388
        this.userId = userId;
4389
        this.itemId = itemId;
4390
      }
4391
 
4392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMyResearch", org.apache.thrift.protocol.TMessageType.CALL, 0));
4394
        updateMyResearch_args args = new updateMyResearch_args();
4395
        args.setUserId(userId);
4396
        args.setItemId(itemId);
4397
        args.write(prot);
4398
        prot.writeMessageEnd();
4399
      }
4400
 
4401
      public boolean getResult() throws WidgetException, org.apache.thrift.TException {
4402
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4403
          throw new IllegalStateException("Method call not finished!");
4404
        }
4405
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4406
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4407
        return (new Client(prot)).recv_updateMyResearch();
4408
      }
4409
    }
4410
 
4411
    public void deleteItemFromMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromMyResearch_call> resultHandler) throws org.apache.thrift.TException {
4412
      checkReady();
4413
      deleteItemFromMyResearch_call method_call = new deleteItemFromMyResearch_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4414
      this.___currentMethod = method_call;
4415
      ___manager.call(method_call);
4416
    }
4417
 
4418
    public static class deleteItemFromMyResearch_call extends org.apache.thrift.async.TAsyncMethodCall {
4419
      private long userId;
4420
      private long itemId;
4421
      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 {
4422
        super(client, protocolFactory, transport, resultHandler, false);
4423
        this.userId = userId;
4424
        this.itemId = itemId;
4425
      }
4426
 
4427
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4428
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromMyResearch", org.apache.thrift.protocol.TMessageType.CALL, 0));
4429
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
4430
        args.setUserId(userId);
4431
        args.setItemId(itemId);
4432
        args.write(prot);
4433
        prot.writeMessageEnd();
4434
      }
4435
 
4436
      public void getResult() throws WidgetException, org.apache.thrift.TException {
4437
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4438
          throw new IllegalStateException("Method call not finished!");
4439
        }
4440
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4441
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4442
        (new Client(prot)).recv_deleteItemFromMyResearch();
4443
      }
4444
    }
4445
 
4446
    public void getBrowseHistoryItems(long userId, org.apache.thrift.async.AsyncMethodCallback<getBrowseHistoryItems_call> resultHandler) throws org.apache.thrift.TException {
4447
      checkReady();
4448
      getBrowseHistoryItems_call method_call = new getBrowseHistoryItems_call(userId, resultHandler, this, ___protocolFactory, ___transport);
4449
      this.___currentMethod = method_call;
4450
      ___manager.call(method_call);
4451
    }
4452
 
4453
    public static class getBrowseHistoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
4454
      private long userId;
4455
      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 {
4456
        super(client, protocolFactory, transport, resultHandler, false);
4457
        this.userId = userId;
4458
      }
4459
 
4460
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4461
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBrowseHistoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
4462
        getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
4463
        args.setUserId(userId);
4464
        args.write(prot);
4465
        prot.writeMessageEnd();
4466
      }
4467
 
4468
      public List<Long> getResult() throws WidgetException, org.apache.thrift.TException {
4469
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4470
          throw new IllegalStateException("Method call not finished!");
4471
        }
4472
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4473
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4474
        return (new Client(prot)).recv_getBrowseHistoryItems();
4475
      }
4476
    }
4477
 
4478
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException {
4479
      checkReady();
4480
      updateBrowseHistory_call method_call = new updateBrowseHistory_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4481
      this.___currentMethod = method_call;
4482
      ___manager.call(method_call);
4483
    }
4484
 
4485
    public static class updateBrowseHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
4486
      private long userId;
4487
      private long itemId;
4488
      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 {
4489
        super(client, protocolFactory, transport, resultHandler, false);
4490
        this.userId = userId;
4491
        this.itemId = itemId;
4492
      }
4493
 
4494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBrowseHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4496
        updateBrowseHistory_args args = new updateBrowseHistory_args();
4497
        args.setUserId(userId);
4498
        args.setItemId(itemId);
4499
        args.write(prot);
4500
        prot.writeMessageEnd();
4501
      }
4502
 
4503
      public void getResult() throws org.apache.thrift.TException {
4504
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4505
          throw new IllegalStateException("Method call not finished!");
4506
        }
4507
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4508
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4509
        (new Client(prot)).recv_updateBrowseHistory();
4510
      }
4511
    }
4512
 
4513
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException {
4514
      checkReady();
4515
      getCartsWithCouponCount_call method_call = new getCartsWithCouponCount_call(couponCode, resultHandler, this, ___protocolFactory, ___transport);
4516
      this.___currentMethod = method_call;
4517
      ___manager.call(method_call);
4518
    }
4519
 
4520
    public static class getCartsWithCouponCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4521
      private String couponCode;
4522
      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 {
4523
        super(client, protocolFactory, transport, resultHandler, false);
4524
        this.couponCode = couponCode;
4525
      }
4526
 
4527
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4528
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsWithCouponCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4529
        getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
4530
        args.setCouponCode(couponCode);
4531
        args.write(prot);
4532
        prot.writeMessageEnd();
4533
      }
4534
 
4535
      public long getResult() throws org.apache.thrift.TException {
4536
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4537
          throw new IllegalStateException("Method call not finished!");
4538
        }
4539
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4540
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4541
        return (new Client(prot)).recv_getCartsWithCouponCount();
4542
      }
4543
    }
4544
 
4545
  }
4546
 
4547
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4548
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4549
    public Processor(I iface) {
4550
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
4551
    }
4552
 
4553
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4554
      super(iface, getProcessMap(processMap));
4555
    }
4556
 
4557
    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) {
4558
      processMap.put("createAnonymousUser", new createAnonymousUser());
4559
      processMap.put("getUserById", new getUserById());
4560
      processMap.put("getUserByEmail", new getUserByEmail());
4561
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4562
      processMap.put("createUser", new createUser());
4563
      processMap.put("updateUser", new updateUser());
4564
      processMap.put("deleteUser", new deleteUser());
4565
      processMap.put("getUserState", new getUserState());
4566
      processMap.put("authenticateUser", new authenticateUser());
4567
      processMap.put("userExists", new userExists());
4568
      processMap.put("addAddressForUser", new addAddressForUser());
4569
      processMap.put("removeAddressForUser", new removeAddressForUser());
4570
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
4571
      processMap.put("setUserAsLoggedOut", new setUserAsLoggedOut());
4572
      processMap.put("setDefaultAddress", new setDefaultAddress());
4573
      processMap.put("updatePassword", new updatePassword());
4574
      processMap.put("forgotPassword", new forgotPassword());
4575
      processMap.put("getAllAddressesForUser", new getAllAddressesForUser());
4576
      processMap.put("getAddressById", new getAddressById());
4577
      processMap.put("getDefaultAddressId", new getDefaultAddressId());
4578
      processMap.put("getDefaultPincode", new getDefaultPincode());
4579
      processMap.put("saveUserCommunication", new saveUserCommunication());
4580
      processMap.put("getUserCommunicationById", new getUserCommunicationById());
4581
      processMap.put("getUserCommunicationByUser", new getUserCommunicationByUser());
4582
      processMap.put("getAllUserCommunications", new getAllUserCommunications());
4583
      processMap.put("createMasterAffiliate", new createMasterAffiliate());
4584
      processMap.put("getAllMasterAffiliates", new getAllMasterAffiliates());
4585
      processMap.put("getMasterAffiliateById", new getMasterAffiliateById());
4586
      processMap.put("getMasterAffiliateByName", new getMasterAffiliateByName());
4587
      processMap.put("createAffiliate", new createAffiliate());
4588
      processMap.put("getAffiliateById", new getAffiliateById());
4589
      processMap.put("getAffiliateByName", new getAffiliateByName());
4590
      processMap.put("getTrackerById", new getTrackerById());
4591
      processMap.put("getAffiliatesByMasterAffiliate", new getAffiliatesByMasterAffiliate());
4592
      processMap.put("addTrackLog", new addTrackLog());
4593
      processMap.put("getTrackLogById", new getTrackLogById());
4594
      processMap.put("getTrackLogsByAffiliate", new getTrackLogsByAffiliate());
4595
      processMap.put("getTrackLogsByUser", new getTrackLogsByUser());
4596
      processMap.put("getTrackLogs", new getTrackLogs());
4597
      processMap.put("createCart", new createCart());
4598
      processMap.put("getCurrentCart", new getCurrentCart());
4599
      processMap.put("getCart", new getCart());
4600
      processMap.put("getCartsForUser", new getCartsForUser());
4601
      processMap.put("getCartsByStatus", new getCartsByStatus());
4602
      processMap.put("getCartsByTime", new getCartsByTime());
4603
      processMap.put("changeCartStatus", new changeCartStatus());
4604
      processMap.put("addItemToCart", new addItemToCart());
4605
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4606
      processMap.put("changeQuantity", new changeQuantity());
4607
      processMap.put("changeItemStatus", new changeItemStatus());
4608
      processMap.put("addAddressToCart", new addAddressToCart());
4609
      processMap.put("applyCouponToCart", new applyCouponToCart());
4610
      processMap.put("removeCoupon", new removeCoupon());
4611
      processMap.put("createOrders", new createOrders());
4612
      processMap.put("validateCart", new validateCart());
4613
      processMap.put("mergeCart", new mergeCart());
4614
      processMap.put("checkOut", new checkOut());
4615
      processMap.put("resetCart", new resetCart());
4616
      processMap.put("getUserCount", new getUserCount());
4617
      processMap.put("getAllUsers", new getAllUsers());
4618
      processMap.put("putUserNote", new putUserNote());
4619
      processMap.put("getUserNotes", new getUserNotes());
4620
      processMap.put("getMyResearchItems", new getMyResearchItems());
4621
      processMap.put("updateMyResearch", new updateMyResearch());
4622
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4623
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4624
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4625
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
4626
      return processMap;
4627
    }
4628
 
4629
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4630
      public createAnonymousUser() {
4631
        super("createAnonymousUser");
4632
      }
4633
 
4634
      protected createAnonymousUser_args getEmptyArgsInstance() {
4635
        return new createAnonymousUser_args();
4636
      }
4637
 
4638
      protected createAnonymousUser_result getResult(I iface, createAnonymousUser_args args) throws org.apache.thrift.TException {
553 chandransh 4639
        createAnonymousUser_result result = new createAnonymousUser_result();
48 ashish 4640
        try {
3430 rajveer 4641
          result.success = iface.createAnonymousUser(args.jsessionId);
553 chandransh 4642
        } catch (UserContextException ucex) {
4643
          result.ucex = ucex;
48 ashish 4644
        }
3430 rajveer 4645
        return result;
48 ashish 4646
      }
4647
    }
4648
 
3430 rajveer 4649
    private static class getUserById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserById_args> {
4650
      public getUserById() {
4651
        super("getUserById");
4652
      }
4653
 
4654
      protected getUserById_args getEmptyArgsInstance() {
4655
        return new getUserById_args();
4656
      }
4657
 
4658
      protected getUserById_result getResult(I iface, getUserById_args args) throws org.apache.thrift.TException {
553 chandransh 4659
        getUserById_result result = new getUserById_result();
48 ashish 4660
        try {
3430 rajveer 4661
          result.success = iface.getUserById(args.userId);
553 chandransh 4662
        } catch (UserContextException ucex) {
4663
          result.ucex = ucex;
48 ashish 4664
        }
3430 rajveer 4665
        return result;
48 ashish 4666
      }
4667
    }
4668
 
3430 rajveer 4669
    private static class getUserByEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByEmail_args> {
4670
      public getUserByEmail() {
4671
        super("getUserByEmail");
4672
      }
4673
 
4674
      protected getUserByEmail_args getEmptyArgsInstance() {
4675
        return new getUserByEmail_args();
4676
      }
4677
 
4678
      protected getUserByEmail_result getResult(I iface, getUserByEmail_args args) throws org.apache.thrift.TException {
1491 vikas 4679
        getUserByEmail_result result = new getUserByEmail_result();
4680
        try {
3430 rajveer 4681
          result.success = iface.getUserByEmail(args.email);
1491 vikas 4682
        } catch (UserContextException ucex) {
4683
          result.ucex = ucex;
4684
        }
3430 rajveer 4685
        return result;
1491 vikas 4686
      }
4687
    }
4688
 
3430 rajveer 4689
    private static class getUserByMobileNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByMobileNumber_args> {
4690
      public getUserByMobileNumber() {
4691
        super("getUserByMobileNumber");
4692
      }
4693
 
4694
      protected getUserByMobileNumber_args getEmptyArgsInstance() {
4695
        return new getUserByMobileNumber_args();
4696
      }
4697
 
4698
      protected getUserByMobileNumber_result getResult(I iface, getUserByMobileNumber_args args) throws org.apache.thrift.TException {
3028 mandeep.dh 4699
        getUserByMobileNumber_result result = new getUserByMobileNumber_result();
4700
        try {
3430 rajveer 4701
          result.success = iface.getUserByMobileNumber(args.mobileNumber);
3028 mandeep.dh 4702
        } catch (UserContextException ucex) {
4703
          result.ucex = ucex;
4704
        }
3430 rajveer 4705
        return result;
3028 mandeep.dh 4706
      }
4707
    }
4708
 
3430 rajveer 4709
    private static class createUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createUser_args> {
4710
      public createUser() {
4711
        super("createUser");
4712
      }
4713
 
4714
      protected createUser_args getEmptyArgsInstance() {
4715
        return new createUser_args();
4716
      }
4717
 
4718
      protected createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException {
553 chandransh 4719
        createUser_result result = new createUser_result();
48 ashish 4720
        try {
3430 rajveer 4721
          result.success = iface.createUser(args.user);
553 chandransh 4722
        } catch (UserContextException ucex) {
4723
          result.ucex = ucex;
48 ashish 4724
        }
3430 rajveer 4725
        return result;
48 ashish 4726
      }
4727
    }
4728
 
3430 rajveer 4729
    private static class updateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUser_args> {
4730
      public updateUser() {
4731
        super("updateUser");
4732
      }
4733
 
4734
      protected updateUser_args getEmptyArgsInstance() {
4735
        return new updateUser_args();
4736
      }
4737
 
4738
      protected updateUser_result getResult(I iface, updateUser_args args) throws org.apache.thrift.TException {
553 chandransh 4739
        updateUser_result result = new updateUser_result();
48 ashish 4740
        try {
3430 rajveer 4741
          result.success = iface.updateUser(args.user);
553 chandransh 4742
        } catch (UserContextException ucex) {
4743
          result.ucex = ucex;
48 ashish 4744
        }
3430 rajveer 4745
        return result;
48 ashish 4746
      }
4747
    }
4748
 
3430 rajveer 4749
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
4750
      public deleteUser() {
4751
        super("deleteUser");
4752
      }
4753
 
4754
      protected deleteUser_args getEmptyArgsInstance() {
4755
        return new deleteUser_args();
4756
      }
4757
 
4758
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
553 chandransh 4759
        deleteUser_result result = new deleteUser_result();
48 ashish 4760
        try {
3430 rajveer 4761
          result.success = iface.deleteUser(args.userId);
553 chandransh 4762
          result.setSuccessIsSet(true);
4763
        } catch (UserContextException ucex) {
4764
          result.ucex = ucex;
48 ashish 4765
        }
3430 rajveer 4766
        return result;
48 ashish 4767
      }
4768
    }
4769
 
3430 rajveer 4770
    private static class getUserState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserState_args> {
4771
      public getUserState() {
4772
        super("getUserState");
4773
      }
4774
 
4775
      protected getUserState_args getEmptyArgsInstance() {
4776
        return new getUserState_args();
4777
      }
4778
 
4779
      protected getUserState_result getResult(I iface, getUserState_args args) throws org.apache.thrift.TException {
553 chandransh 4780
        getUserState_result result = new getUserState_result();
48 ashish 4781
        try {
3430 rajveer 4782
          result.success = iface.getUserState(args.userId);
553 chandransh 4783
        } catch (UserContextException ucex) {
4784
          result.ucex = ucex;
48 ashish 4785
        }
3430 rajveer 4786
        return result;
48 ashish 4787
      }
4788
    }
4789
 
3430 rajveer 4790
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
4791
      public authenticateUser() {
4792
        super("authenticateUser");
4793
      }
4794
 
4795
      protected authenticateUser_args getEmptyArgsInstance() {
4796
        return new authenticateUser_args();
4797
      }
4798
 
4799
      protected authenticateUser_result getResult(I iface, authenticateUser_args args) throws org.apache.thrift.TException {
123 ashish 4800
        authenticateUser_result result = new authenticateUser_result();
4801
        try {
3430 rajveer 4802
          result.success = iface.authenticateUser(args.email, args.password);
553 chandransh 4803
        } catch (AuthenticationException auex) {
4804
          result.auex = auex;
123 ashish 4805
        }
3430 rajveer 4806
        return result;
123 ashish 4807
      }
4808
    }
4809
 
3430 rajveer 4810
    private static class userExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, userExists_args> {
4811
      public userExists() {
4812
        super("userExists");
4813
      }
4814
 
4815
      protected userExists_args getEmptyArgsInstance() {
4816
        return new userExists_args();
4817
      }
4818
 
4819
      protected userExists_result getResult(I iface, userExists_args args) throws org.apache.thrift.TException {
48 ashish 4820
        userExists_result result = new userExists_result();
4821
        try {
3430 rajveer 4822
          result.success = iface.userExists(args.email);
48 ashish 4823
          result.setSuccessIsSet(true);
4824
        } catch (UserContextException ucx) {
4825
          result.ucx = ucx;
4826
        }
3430 rajveer 4827
        return result;
48 ashish 4828
      }
4829
    }
4830
 
3430 rajveer 4831
    private static class addAddressForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressForUser_args> {
4832
      public addAddressForUser() {
4833
        super("addAddressForUser");
4834
      }
4835
 
4836
      protected addAddressForUser_args getEmptyArgsInstance() {
4837
        return new addAddressForUser_args();
4838
      }
4839
 
4840
      protected addAddressForUser_result getResult(I iface, addAddressForUser_args args) throws org.apache.thrift.TException {
48 ashish 4841
        addAddressForUser_result result = new addAddressForUser_result();
4842
        try {
3430 rajveer 4843
          result.success = iface.addAddressForUser(args.userId, args.address, args.setDefault);
48 ashish 4844
          result.setSuccessIsSet(true);
4845
        } catch (UserContextException ucx) {
4846
          result.ucx = ucx;
4847
        }
3430 rajveer 4848
        return result;
48 ashish 4849
      }
4850
    }
4851
 
3430 rajveer 4852
    private static class removeAddressForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeAddressForUser_args> {
4853
      public removeAddressForUser() {
4854
        super("removeAddressForUser");
4855
      }
4856
 
4857
      protected removeAddressForUser_args getEmptyArgsInstance() {
4858
        return new removeAddressForUser_args();
4859
      }
4860
 
4861
      protected removeAddressForUser_result getResult(I iface, removeAddressForUser_args args) throws org.apache.thrift.TException {
48 ashish 4862
        removeAddressForUser_result result = new removeAddressForUser_result();
4863
        try {
3430 rajveer 4864
          result.success = iface.removeAddressForUser(args.userid, args.addressId);
48 ashish 4865
          result.setSuccessIsSet(true);
4866
        } catch (UserContextException ucx) {
4867
          result.ucx = ucx;
4868
        }
3430 rajveer 4869
        return result;
48 ashish 4870
      }
4871
    }
4872
 
3430 rajveer 4873
    private static class setUserAsLoggedIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUserAsLoggedIn_args> {
4874
      public setUserAsLoggedIn() {
4875
        super("setUserAsLoggedIn");
4876
      }
4877
 
4878
      protected setUserAsLoggedIn_args getEmptyArgsInstance() {
4879
        return new setUserAsLoggedIn_args();
4880
      }
4881
 
4882
      protected setUserAsLoggedIn_result getResult(I iface, setUserAsLoggedIn_args args) throws org.apache.thrift.TException {
48 ashish 4883
        setUserAsLoggedIn_result result = new setUserAsLoggedIn_result();
4884
        try {
3430 rajveer 4885
          result.success = iface.setUserAsLoggedIn(args.userId, args.timestamp);
48 ashish 4886
          result.setSuccessIsSet(true);
4887
        } catch (UserContextException ucx) {
4888
          result.ucx = ucx;
4889
        }
3430 rajveer 4890
        return result;
48 ashish 4891
      }
4892
    }
4893
 
3430 rajveer 4894
    private static class setUserAsLoggedOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUserAsLoggedOut_args> {
4895
      public setUserAsLoggedOut() {
4896
        super("setUserAsLoggedOut");
4897
      }
4898
 
4899
      protected setUserAsLoggedOut_args getEmptyArgsInstance() {
4900
        return new setUserAsLoggedOut_args();
4901
      }
4902
 
4903
      protected setUserAsLoggedOut_result getResult(I iface, setUserAsLoggedOut_args args) throws org.apache.thrift.TException {
48 ashish 4904
        setUserAsLoggedOut_result result = new setUserAsLoggedOut_result();
4905
        try {
3430 rajveer 4906
          result.success = iface.setUserAsLoggedOut(args.userid, args.timestamp);
48 ashish 4907
          result.setSuccessIsSet(true);
4908
        } catch (UserContextException ucx) {
4909
          result.ucx = ucx;
4910
        }
3430 rajveer 4911
        return result;
48 ashish 4912
      }
4913
    }
4914
 
3430 rajveer 4915
    private static class setDefaultAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setDefaultAddress_args> {
4916
      public setDefaultAddress() {
4917
        super("setDefaultAddress");
4918
      }
4919
 
4920
      protected setDefaultAddress_args getEmptyArgsInstance() {
4921
        return new setDefaultAddress_args();
4922
      }
4923
 
4924
      protected setDefaultAddress_result getResult(I iface, setDefaultAddress_args args) throws org.apache.thrift.TException {
506 rajveer 4925
        setDefaultAddress_result result = new setDefaultAddress_result();
4926
        try {
3430 rajveer 4927
          result.success = iface.setDefaultAddress(args.userid, args.addressId);
506 rajveer 4928
          result.setSuccessIsSet(true);
4929
        } catch (UserContextException ucx) {
4930
          result.ucx = ucx;
4931
        }
3430 rajveer 4932
        return result;
506 rajveer 4933
      }
4934
    }
4935
 
3430 rajveer 4936
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
4937
      public updatePassword() {
4938
        super("updatePassword");
4939
      }
4940
 
4941
      protected updatePassword_args getEmptyArgsInstance() {
4942
        return new updatePassword_args();
4943
      }
4944
 
4945
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
48 ashish 4946
        updatePassword_result result = new updatePassword_result();
4947
        try {
3430 rajveer 4948
          result.success = iface.updatePassword(args.userid, args.oldPassword, args.newPassword);
48 ashish 4949
          result.setSuccessIsSet(true);
4950
        } catch (UserContextException ucx) {
4951
          result.ucx = ucx;
4952
        }
3430 rajveer 4953
        return result;
48 ashish 4954
      }
4955
    }
4956
 
3430 rajveer 4957
    private static class forgotPassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, forgotPassword_args> {
4958
      public forgotPassword() {
4959
        super("forgotPassword");
4960
      }
4961
 
4962
      protected forgotPassword_args getEmptyArgsInstance() {
4963
        return new forgotPassword_args();
4964
      }
4965
 
4966
      protected forgotPassword_result getResult(I iface, forgotPassword_args args) throws org.apache.thrift.TException {
582 rajveer 4967
        forgotPassword_result result = new forgotPassword_result();
4968
        try {
3430 rajveer 4969
          result.success = iface.forgotPassword(args.email, args.newPassword);
582 rajveer 4970
          result.setSuccessIsSet(true);
4971
        } catch (UserContextException ucx) {
4972
          result.ucx = ucx;
4973
        }
3430 rajveer 4974
        return result;
582 rajveer 4975
      }
4976
    }
4977
 
3430 rajveer 4978
    private static class getAllAddressesForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAddressesForUser_args> {
4979
      public getAllAddressesForUser() {
4980
        super("getAllAddressesForUser");
4981
      }
4982
 
4983
      protected getAllAddressesForUser_args getEmptyArgsInstance() {
4984
        return new getAllAddressesForUser_args();
4985
      }
4986
 
4987
      protected getAllAddressesForUser_result getResult(I iface, getAllAddressesForUser_args args) throws org.apache.thrift.TException {
593 rajveer 4988
        getAllAddressesForUser_result result = new getAllAddressesForUser_result();
4989
        try {
3430 rajveer 4990
          result.success = iface.getAllAddressesForUser(args.userId);
593 rajveer 4991
        } catch (UserContextException ucx) {
4992
          result.ucx = ucx;
4993
        }
3430 rajveer 4994
        return result;
593 rajveer 4995
      }
4996
    }
4997
 
3430 rajveer 4998
    private static class getAddressById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddressById_args> {
4999
      public getAddressById() {
5000
        super("getAddressById");
5001
      }
5002
 
5003
      protected getAddressById_args getEmptyArgsInstance() {
5004
        return new getAddressById_args();
5005
      }
5006
 
5007
      protected getAddressById_result getResult(I iface, getAddressById_args args) throws org.apache.thrift.TException {
1893 vikas 5008
        getAddressById_result result = new getAddressById_result();
5009
        try {
3430 rajveer 5010
          result.success = iface.getAddressById(args.addressId);
1893 vikas 5011
        } catch (UserContextException ucx) {
5012
          result.ucx = ucx;
5013
        }
3430 rajveer 5014
        return result;
1893 vikas 5015
      }
5016
    }
5017
 
3430 rajveer 5018
    private static class getDefaultAddressId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDefaultAddressId_args> {
5019
      public getDefaultAddressId() {
5020
        super("getDefaultAddressId");
5021
      }
5022
 
5023
      protected getDefaultAddressId_args getEmptyArgsInstance() {
5024
        return new getDefaultAddressId_args();
5025
      }
5026
 
5027
      protected getDefaultAddressId_result getResult(I iface, getDefaultAddressId_args args) throws org.apache.thrift.TException {
593 rajveer 5028
        getDefaultAddressId_result result = new getDefaultAddressId_result();
5029
        try {
3430 rajveer 5030
          result.success = iface.getDefaultAddressId(args.userId);
593 rajveer 5031
          result.setSuccessIsSet(true);
5032
        } catch (UserContextException ucx) {
5033
          result.ucx = ucx;
5034
        }
3430 rajveer 5035
        return result;
593 rajveer 5036
      }
5037
    }
5038
 
3430 rajveer 5039
    private static class getDefaultPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDefaultPincode_args> {
5040
      public getDefaultPincode() {
5041
        super("getDefaultPincode");
5042
      }
5043
 
5044
      protected getDefaultPincode_args getEmptyArgsInstance() {
5045
        return new getDefaultPincode_args();
5046
      }
5047
 
5048
      protected getDefaultPincode_result getResult(I iface, getDefaultPincode_args args) throws org.apache.thrift.TException {
784 rajveer 5049
        getDefaultPincode_result result = new getDefaultPincode_result();
5050
        try {
3430 rajveer 5051
          result.success = iface.getDefaultPincode(args.userId);
784 rajveer 5052
        } catch (UserContextException ucx) {
5053
          result.ucx = ucx;
5054
        }
3430 rajveer 5055
        return result;
784 rajveer 5056
      }
5057
    }
5058
 
3430 rajveer 5059
    private static class saveUserCommunication<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserCommunication_args> {
5060
      public saveUserCommunication() {
5061
        super("saveUserCommunication");
5062
      }
5063
 
5064
      protected saveUserCommunication_args getEmptyArgsInstance() {
5065
        return new saveUserCommunication_args();
5066
      }
5067
 
5068
      protected saveUserCommunication_result getResult(I iface, saveUserCommunication_args args) throws org.apache.thrift.TException {
1177 varun.gupt 5069
        saveUserCommunication_result result = new saveUserCommunication_result();
5070
        try {
3430 rajveer 5071
          result.success = iface.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message);
1177 varun.gupt 5072
          result.setSuccessIsSet(true);
5073
        } catch (UserCommunicationException ucx) {
5074
          result.ucx = ucx;
5075
        }
3430 rajveer 5076
        return result;
1177 varun.gupt 5077
      }
5078
    }
5079
 
3430 rajveer 5080
    private static class getUserCommunicationById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCommunicationById_args> {
5081
      public getUserCommunicationById() {
5082
        super("getUserCommunicationById");
5083
      }
5084
 
5085
      protected getUserCommunicationById_args getEmptyArgsInstance() {
5086
        return new getUserCommunicationById_args();
5087
      }
5088
 
5089
      protected getUserCommunicationById_result getResult(I iface, getUserCommunicationById_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5090
        getUserCommunicationById_result result = new getUserCommunicationById_result();
5091
        try {
3430 rajveer 5092
          result.success = iface.getUserCommunicationById(args.id);
1590 varun.gupt 5093
        } catch (UserCommunicationException ucx) {
5094
          result.ucx = ucx;
5095
        }
3430 rajveer 5096
        return result;
1590 varun.gupt 5097
      }
5098
    }
5099
 
3430 rajveer 5100
    private static class getUserCommunicationByUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCommunicationByUser_args> {
5101
      public getUserCommunicationByUser() {
5102
        super("getUserCommunicationByUser");
5103
      }
5104
 
5105
      protected getUserCommunicationByUser_args getEmptyArgsInstance() {
5106
        return new getUserCommunicationByUser_args();
5107
      }
5108
 
5109
      protected getUserCommunicationByUser_result getResult(I iface, getUserCommunicationByUser_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5110
        getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
5111
        try {
3430 rajveer 5112
          result.success = iface.getUserCommunicationByUser(args.userId);
1590 varun.gupt 5113
        } catch (UserCommunicationException ucx) {
5114
          result.ucx = ucx;
5115
        }
3430 rajveer 5116
        return result;
1590 varun.gupt 5117
      }
5118
    }
5119
 
3430 rajveer 5120
    private static class getAllUserCommunications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUserCommunications_args> {
5121
      public getAllUserCommunications() {
5122
        super("getAllUserCommunications");
5123
      }
5124
 
5125
      protected getAllUserCommunications_args getEmptyArgsInstance() {
5126
        return new getAllUserCommunications_args();
5127
      }
5128
 
5129
      protected getAllUserCommunications_result getResult(I iface, getAllUserCommunications_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5130
        getAllUserCommunications_result result = new getAllUserCommunications_result();
5131
        try {
3430 rajveer 5132
          result.success = iface.getAllUserCommunications();
1590 varun.gupt 5133
        } catch (UserCommunicationException ucx) {
5134
          result.ucx = ucx;
5135
        }
3430 rajveer 5136
        return result;
1590 varun.gupt 5137
      }
5138
    }
5139
 
3430 rajveer 5140
    private static class createMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createMasterAffiliate_args> {
5141
      public createMasterAffiliate() {
5142
        super("createMasterAffiliate");
5143
      }
5144
 
5145
      protected createMasterAffiliate_args getEmptyArgsInstance() {
5146
        return new createMasterAffiliate_args();
5147
      }
5148
 
5149
      protected createMasterAffiliate_result getResult(I iface, createMasterAffiliate_args args) throws org.apache.thrift.TException {
1846 vikas 5150
        createMasterAffiliate_result result = new createMasterAffiliate_result();
5151
        try {
3430 rajveer 5152
          result.success = iface.createMasterAffiliate(args.name, args.addedOn);
1998 vikas 5153
        } catch (UserAffiliateException utx) {
1846 vikas 5154
          result.utx = utx;
5155
        }
3430 rajveer 5156
        return result;
1846 vikas 5157
      }
5158
    }
5159
 
3430 rajveer 5160
    private static class getAllMasterAffiliates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllMasterAffiliates_args> {
5161
      public getAllMasterAffiliates() {
5162
        super("getAllMasterAffiliates");
5163
      }
5164
 
5165
      protected getAllMasterAffiliates_args getEmptyArgsInstance() {
5166
        return new getAllMasterAffiliates_args();
5167
      }
5168
 
5169
      protected getAllMasterAffiliates_result getResult(I iface, getAllMasterAffiliates_args args) throws org.apache.thrift.TException {
1900 vikas 5170
        getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
5171
        try {
3430 rajveer 5172
          result.success = iface.getAllMasterAffiliates();
1998 vikas 5173
        } catch (UserAffiliateException utx) {
1900 vikas 5174
          result.utx = utx;
5175
        }
3430 rajveer 5176
        return result;
1900 vikas 5177
      }
5178
    }
5179
 
3430 rajveer 5180
    private static class getMasterAffiliateById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterAffiliateById_args> {
5181
      public getMasterAffiliateById() {
5182
        super("getMasterAffiliateById");
5183
      }
5184
 
5185
      protected getMasterAffiliateById_args getEmptyArgsInstance() {
5186
        return new getMasterAffiliateById_args();
5187
      }
5188
 
5189
      protected getMasterAffiliateById_result getResult(I iface, getMasterAffiliateById_args args) throws org.apache.thrift.TException {
1846 vikas 5190
        getMasterAffiliateById_result result = new getMasterAffiliateById_result();
5191
        try {
3430 rajveer 5192
          result.success = iface.getMasterAffiliateById(args.id);
1998 vikas 5193
        } catch (UserAffiliateException utx) {
1846 vikas 5194
          result.utx = utx;
5195
        }
3430 rajveer 5196
        return result;
1846 vikas 5197
      }
5198
    }
5199
 
3430 rajveer 5200
    private static class getMasterAffiliateByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterAffiliateByName_args> {
5201
      public getMasterAffiliateByName() {
5202
        super("getMasterAffiliateByName");
5203
      }
5204
 
5205
      protected getMasterAffiliateByName_args getEmptyArgsInstance() {
5206
        return new getMasterAffiliateByName_args();
5207
      }
5208
 
5209
      protected getMasterAffiliateByName_result getResult(I iface, getMasterAffiliateByName_args args) throws org.apache.thrift.TException {
1846 vikas 5210
        getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
5211
        try {
3430 rajveer 5212
          result.success = iface.getMasterAffiliateByName(args.name);
1998 vikas 5213
        } catch (UserAffiliateException utx) {
1846 vikas 5214
          result.utx = utx;
5215
        }
3430 rajveer 5216
        return result;
1846 vikas 5217
      }
5218
    }
5219
 
3430 rajveer 5220
    private static class createAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAffiliate_args> {
5221
      public createAffiliate() {
5222
        super("createAffiliate");
5223
      }
5224
 
5225
      protected createAffiliate_args getEmptyArgsInstance() {
5226
        return new createAffiliate_args();
5227
      }
5228
 
5229
      protected createAffiliate_result getResult(I iface, createAffiliate_args args) throws org.apache.thrift.TException {
1846 vikas 5230
        createAffiliate_result result = new createAffiliate_result();
5231
        try {
3430 rajveer 5232
          result.success = iface.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn);
1998 vikas 5233
        } catch (UserAffiliateException utx) {
1846 vikas 5234
          result.utx = utx;
5235
        }
3430 rajveer 5236
        return result;
1846 vikas 5237
      }
5238
    }
5239
 
3430 rajveer 5240
    private static class getAffiliateById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliateById_args> {
5241
      public getAffiliateById() {
5242
        super("getAffiliateById");
5243
      }
5244
 
5245
      protected getAffiliateById_args getEmptyArgsInstance() {
5246
        return new getAffiliateById_args();
5247
      }
5248
 
5249
      protected getAffiliateById_result getResult(I iface, getAffiliateById_args args) throws org.apache.thrift.TException {
1846 vikas 5250
        getAffiliateById_result result = new getAffiliateById_result();
5251
        try {
3430 rajveer 5252
          result.success = iface.getAffiliateById(args.id);
1998 vikas 5253
        } catch (UserAffiliateException utx) {
1846 vikas 5254
          result.utx = utx;
5255
        }
3430 rajveer 5256
        return result;
1846 vikas 5257
      }
5258
    }
5259
 
3430 rajveer 5260
    private static class getAffiliateByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliateByName_args> {
5261
      public getAffiliateByName() {
5262
        super("getAffiliateByName");
5263
      }
5264
 
5265
      protected getAffiliateByName_args getEmptyArgsInstance() {
5266
        return new getAffiliateByName_args();
5267
      }
5268
 
5269
      protected getAffiliateByName_result getResult(I iface, getAffiliateByName_args args) throws org.apache.thrift.TException {
1846 vikas 5270
        getAffiliateByName_result result = new getAffiliateByName_result();
5271
        try {
3430 rajveer 5272
          result.success = iface.getAffiliateByName(args.name);
1998 vikas 5273
        } catch (UserAffiliateException utx) {
1846 vikas 5274
          result.utx = utx;
5275
        }
3430 rajveer 5276
        return result;
1846 vikas 5277
      }
5278
    }
5279
 
3430 rajveer 5280
    private static class getTrackerById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackerById_args> {
5281
      public getTrackerById() {
5282
        super("getTrackerById");
5283
      }
5284
 
5285
      protected getTrackerById_args getEmptyArgsInstance() {
5286
        return new getTrackerById_args();
5287
      }
5288
 
5289
      protected getTrackerById_result getResult(I iface, getTrackerById_args args) throws org.apache.thrift.TException {
1846 vikas 5290
        getTrackerById_result result = new getTrackerById_result();
5291
        try {
3430 rajveer 5292
          result.success = iface.getTrackerById(args.id);
1998 vikas 5293
        } catch (UserAffiliateException utx) {
1846 vikas 5294
          result.utx = utx;
5295
        }
3430 rajveer 5296
        return result;
1846 vikas 5297
      }
5298
    }
5299
 
3430 rajveer 5300
    private static class getAffiliatesByMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliatesByMasterAffiliate_args> {
5301
      public getAffiliatesByMasterAffiliate() {
5302
        super("getAffiliatesByMasterAffiliate");
5303
      }
5304
 
5305
      protected getAffiliatesByMasterAffiliate_args getEmptyArgsInstance() {
5306
        return new getAffiliatesByMasterAffiliate_args();
5307
      }
5308
 
5309
      protected getAffiliatesByMasterAffiliate_result getResult(I iface, getAffiliatesByMasterAffiliate_args args) throws org.apache.thrift.TException {
1998 vikas 5310
        getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
1846 vikas 5311
        try {
3430 rajveer 5312
          result.success = iface.getAffiliatesByMasterAffiliate(args.id);
1998 vikas 5313
        } catch (UserAffiliateException utx) {
1846 vikas 5314
          result.utx = utx;
5315
        }
3430 rajveer 5316
        return result;
1846 vikas 5317
      }
5318
    }
5319
 
3430 rajveer 5320
    private static class addTrackLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addTrackLog_args> {
5321
      public addTrackLog() {
5322
        super("addTrackLog");
5323
      }
5324
 
5325
      protected addTrackLog_args getEmptyArgsInstance() {
5326
        return new addTrackLog_args();
5327
      }
5328
 
5329
      protected addTrackLog_result getResult(I iface, addTrackLog_args args) throws org.apache.thrift.TException {
1846 vikas 5330
        addTrackLog_result result = new addTrackLog_result();
5331
        try {
3430 rajveer 5332
          result.success = iface.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn);
1846 vikas 5333
          result.setSuccessIsSet(true);
1998 vikas 5334
        } catch (UserAffiliateException utx) {
1846 vikas 5335
          result.utx = utx;
5336
        }
3430 rajveer 5337
        return result;
1846 vikas 5338
      }
5339
    }
5340
 
3430 rajveer 5341
    private static class getTrackLogById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogById_args> {
5342
      public getTrackLogById() {
5343
        super("getTrackLogById");
5344
      }
5345
 
5346
      protected getTrackLogById_args getEmptyArgsInstance() {
5347
        return new getTrackLogById_args();
5348
      }
5349
 
5350
      protected getTrackLogById_result getResult(I iface, getTrackLogById_args args) throws org.apache.thrift.TException {
1846 vikas 5351
        getTrackLogById_result result = new getTrackLogById_result();
5352
        try {
3430 rajveer 5353
          result.success = iface.getTrackLogById(args.id);
1998 vikas 5354
        } catch (UserAffiliateException utx) {
1846 vikas 5355
          result.utx = utx;
5356
        }
3430 rajveer 5357
        return result;
1846 vikas 5358
      }
5359
    }
5360
 
3430 rajveer 5361
    private static class getTrackLogsByAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogsByAffiliate_args> {
5362
      public getTrackLogsByAffiliate() {
5363
        super("getTrackLogsByAffiliate");
5364
      }
5365
 
5366
      protected getTrackLogsByAffiliate_args getEmptyArgsInstance() {
5367
        return new getTrackLogsByAffiliate_args();
5368
      }
5369
 
5370
      protected getTrackLogsByAffiliate_result getResult(I iface, getTrackLogsByAffiliate_args args) throws org.apache.thrift.TException {
1998 vikas 5371
        getTrackLogsByAffiliate_result result = new getTrackLogsByAffiliate_result();
1846 vikas 5372
        try {
3430 rajveer 5373
          result.success = iface.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate);
1998 vikas 5374
        } catch (UserAffiliateException utx) {
1846 vikas 5375
          result.utx = utx;
5376
        }
3430 rajveer 5377
        return result;
1846 vikas 5378
      }
5379
    }
5380
 
3430 rajveer 5381
    private static class getTrackLogsByUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogsByUser_args> {
5382
      public getTrackLogsByUser() {
5383
        super("getTrackLogsByUser");
5384
      }
5385
 
5386
      protected getTrackLogsByUser_args getEmptyArgsInstance() {
5387
        return new getTrackLogsByUser_args();
5388
      }
5389
 
5390
      protected getTrackLogsByUser_result getResult(I iface, getTrackLogsByUser_args args) throws org.apache.thrift.TException {
1846 vikas 5391
        getTrackLogsByUser_result result = new getTrackLogsByUser_result();
5392
        try {
3430 rajveer 5393
          result.success = iface.getTrackLogsByUser(args.userId);
1998 vikas 5394
        } catch (UserAffiliateException utx) {
1846 vikas 5395
          result.utx = utx;
5396
        }
3430 rajveer 5397
        return result;
1846 vikas 5398
      }
5399
    }
5400
 
3430 rajveer 5401
    private static class getTrackLogs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogs_args> {
5402
      public getTrackLogs() {
5403
        super("getTrackLogs");
5404
      }
5405
 
5406
      protected getTrackLogs_args getEmptyArgsInstance() {
5407
        return new getTrackLogs_args();
5408
      }
5409
 
5410
      protected getTrackLogs_result getResult(I iface, getTrackLogs_args args) throws org.apache.thrift.TException {
1846 vikas 5411
        getTrackLogs_result result = new getTrackLogs_result();
5412
        try {
3430 rajveer 5413
          result.success = iface.getTrackLogs(args.userId, args.event, args.url);
1998 vikas 5414
        } catch (UserAffiliateException utx) {
1846 vikas 5415
          result.utx = utx;
5416
        }
3430 rajveer 5417
        return result;
1846 vikas 5418
      }
5419
    }
5420
 
3430 rajveer 5421
    private static class createCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createCart_args> {
5422
      public createCart() {
5423
        super("createCart");
5424
      }
5425
 
5426
      protected createCart_args getEmptyArgsInstance() {
5427
        return new createCart_args();
5428
      }
5429
 
5430
      protected createCart_result getResult(I iface, createCart_args args) throws org.apache.thrift.TException {
553 chandransh 5431
        createCart_result result = new createCart_result();
48 ashish 5432
        try {
3430 rajveer 5433
          result.success = iface.createCart(args.userId);
48 ashish 5434
          result.setSuccessIsSet(true);
553 chandransh 5435
        } catch (ShoppingCartException scx) {
5436
          result.scx = scx;
48 ashish 5437
        }
3430 rajveer 5438
        return result;
48 ashish 5439
      }
5440
    }
5441
 
3430 rajveer 5442
    private static class getCurrentCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentCart_args> {
5443
      public getCurrentCart() {
5444
        super("getCurrentCart");
5445
      }
5446
 
5447
      protected getCurrentCart_args getEmptyArgsInstance() {
5448
        return new getCurrentCart_args();
5449
      }
5450
 
5451
      protected getCurrentCart_result getResult(I iface, getCurrentCart_args args) throws org.apache.thrift.TException {
553 chandransh 5452
        getCurrentCart_result result = new getCurrentCart_result();
48 ashish 5453
        try {
3430 rajveer 5454
          result.success = iface.getCurrentCart(args.userId);
553 chandransh 5455
        } catch (ShoppingCartException scx) {
5456
          result.scx = scx;
48 ashish 5457
        }
3430 rajveer 5458
        return result;
48 ashish 5459
      }
5460
    }
5461
 
3430 rajveer 5462
    private static class getCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCart_args> {
5463
      public getCart() {
5464
        super("getCart");
5465
      }
5466
 
5467
      protected getCart_args getEmptyArgsInstance() {
5468
        return new getCart_args();
5469
      }
5470
 
5471
      protected getCart_result getResult(I iface, getCart_args args) throws org.apache.thrift.TException {
553 chandransh 5472
        getCart_result result = new getCart_result();
48 ashish 5473
        try {
3430 rajveer 5474
          result.success = iface.getCart(args.cartId);
553 chandransh 5475
        } catch (ShoppingCartException scx) {
5476
          result.scx = scx;
48 ashish 5477
        }
3430 rajveer 5478
        return result;
48 ashish 5479
      }
5480
    }
5481
 
3430 rajveer 5482
    private static class getCartsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsForUser_args> {
5483
      public getCartsForUser() {
5484
        super("getCartsForUser");
5485
      }
5486
 
5487
      protected getCartsForUser_args getEmptyArgsInstance() {
5488
        return new getCartsForUser_args();
5489
      }
5490
 
5491
      protected getCartsForUser_result getResult(I iface, getCartsForUser_args args) throws org.apache.thrift.TException {
553 chandransh 5492
        getCartsForUser_result result = new getCartsForUser_result();
48 ashish 5493
        try {
3430 rajveer 5494
          result.success = iface.getCartsForUser(args.userId, args.status);
553 chandransh 5495
        } catch (ShoppingCartException scx) {
5496
          result.scx = scx;
48 ashish 5497
        }
3430 rajveer 5498
        return result;
48 ashish 5499
      }
5500
    }
5501
 
3430 rajveer 5502
    private static class getCartsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByStatus_args> {
5503
      public getCartsByStatus() {
5504
        super("getCartsByStatus");
5505
      }
5506
 
5507
      protected getCartsByStatus_args getEmptyArgsInstance() {
5508
        return new getCartsByStatus_args();
5509
      }
5510
 
5511
      protected getCartsByStatus_result getResult(I iface, getCartsByStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5512
        getCartsByStatus_result result = new getCartsByStatus_result();
48 ashish 5513
        try {
3430 rajveer 5514
          result.success = iface.getCartsByStatus(args.status);
553 chandransh 5515
        } catch (ShoppingCartException scx) {
5516
          result.scx = scx;
48 ashish 5517
        }
3430 rajveer 5518
        return result;
48 ashish 5519
      }
5520
    }
5521
 
3430 rajveer 5522
    private static class getCartsByTime<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByTime_args> {
5523
      public getCartsByTime() {
5524
        super("getCartsByTime");
5525
      }
5526
 
5527
      protected getCartsByTime_args getEmptyArgsInstance() {
5528
        return new getCartsByTime_args();
5529
      }
5530
 
5531
      protected getCartsByTime_result getResult(I iface, getCartsByTime_args args) throws org.apache.thrift.TException {
553 chandransh 5532
        getCartsByTime_result result = new getCartsByTime_result();
48 ashish 5533
        try {
3430 rajveer 5534
          result.success = iface.getCartsByTime(args.from_time, args.to_time, args.status);
553 chandransh 5535
        } catch (ShoppingCartException scx) {
5536
          result.scx = scx;
48 ashish 5537
        }
3430 rajveer 5538
        return result;
48 ashish 5539
      }
5540
    }
5541
 
3430 rajveer 5542
    private static class changeCartStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeCartStatus_args> {
5543
      public changeCartStatus() {
5544
        super("changeCartStatus");
5545
      }
5546
 
5547
      protected changeCartStatus_args getEmptyArgsInstance() {
5548
        return new changeCartStatus_args();
5549
      }
5550
 
5551
      protected changeCartStatus_result getResult(I iface, changeCartStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5552
        changeCartStatus_result result = new changeCartStatus_result();
130 ashish 5553
        try {
3430 rajveer 5554
          iface.changeCartStatus(args.cartId, args.status);
553 chandransh 5555
        } catch (ShoppingCartException scx) {
5556
          result.scx = scx;
5557
        }
3430 rajveer 5558
        return result;
553 chandransh 5559
      }
5560
    }
5561
 
3430 rajveer 5562
    private static class addItemToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemToCart_args> {
5563
      public addItemToCart() {
5564
        super("addItemToCart");
5565
      }
5566
 
5567
      protected addItemToCart_args getEmptyArgsInstance() {
5568
        return new addItemToCart_args();
5569
      }
5570
 
5571
      protected addItemToCart_result getResult(I iface, addItemToCart_args args) throws org.apache.thrift.TException {
553 chandransh 5572
        addItemToCart_result result = new addItemToCart_result();
5573
        try {
3430 rajveer 5574
          result.success = iface.addItemToCart(args.cartId, args.itemId, args.quantity);
553 chandransh 5575
        } catch (ShoppingCartException scx) {
5576
          result.scx = scx;
5577
        }
3430 rajveer 5578
        return result;
553 chandransh 5579
      }
5580
    }
5581
 
3430 rajveer 5582
    private static class deleteItemFromCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromCart_args> {
5583
      public deleteItemFromCart() {
5584
        super("deleteItemFromCart");
5585
      }
5586
 
5587
      protected deleteItemFromCart_args getEmptyArgsInstance() {
5588
        return new deleteItemFromCart_args();
5589
      }
5590
 
5591
      protected deleteItemFromCart_result getResult(I iface, deleteItemFromCart_args args) throws org.apache.thrift.TException {
553 chandransh 5592
        deleteItemFromCart_result result = new deleteItemFromCart_result();
5593
        try {
3430 rajveer 5594
          iface.deleteItemFromCart(args.cartId, args.itemId);
553 chandransh 5595
        } catch (ShoppingCartException scx) {
5596
          result.scx = scx;
5597
        }
3430 rajveer 5598
        return result;
553 chandransh 5599
      }
5600
    }
5601
 
3430 rajveer 5602
    private static class changeQuantity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeQuantity_args> {
5603
      public changeQuantity() {
5604
        super("changeQuantity");
5605
      }
5606
 
5607
      protected changeQuantity_args getEmptyArgsInstance() {
5608
        return new changeQuantity_args();
5609
      }
5610
 
5611
      protected changeQuantity_result getResult(I iface, changeQuantity_args args) throws org.apache.thrift.TException {
553 chandransh 5612
        changeQuantity_result result = new changeQuantity_result();
5613
        try {
3430 rajveer 5614
          iface.changeQuantity(args.cartId, args.itemId, args.quantity);
553 chandransh 5615
        } catch (ShoppingCartException scx) {
5616
          result.scx = scx;
5617
        }
3430 rajveer 5618
        return result;
553 chandransh 5619
      }
5620
    }
5621
 
3430 rajveer 5622
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
5623
      public changeItemStatus() {
5624
        super("changeItemStatus");
5625
      }
5626
 
5627
      protected changeItemStatus_args getEmptyArgsInstance() {
5628
        return new changeItemStatus_args();
5629
      }
5630
 
5631
      protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5632
        changeItemStatus_result result = new changeItemStatus_result();
5633
        try {
3430 rajveer 5634
          iface.changeItemStatus(args.cartId, args.itemId, args.status);
553 chandransh 5635
        } catch (ShoppingCartException scx) {
5636
          result.scx = scx;
5637
        }
3430 rajveer 5638
        return result;
553 chandransh 5639
      }
5640
    }
5641
 
3430 rajveer 5642
    private static class addAddressToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressToCart_args> {
5643
      public addAddressToCart() {
5644
        super("addAddressToCart");
5645
      }
5646
 
5647
      protected addAddressToCart_args getEmptyArgsInstance() {
5648
        return new addAddressToCart_args();
5649
      }
5650
 
5651
      protected addAddressToCart_result getResult(I iface, addAddressToCart_args args) throws org.apache.thrift.TException {
553 chandransh 5652
        addAddressToCart_result result = new addAddressToCart_result();
578 chandransh 5653
        try {
3430 rajveer 5654
          iface.addAddressToCart(args.cartId, args.addressId);
578 chandransh 5655
        } catch (ShoppingCartException scx) {
5656
          result.scx = scx;
5657
        }
3430 rajveer 5658
        return result;
553 chandransh 5659
      }
5660
    }
5661
 
3430 rajveer 5662
    private static class applyCouponToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, applyCouponToCart_args> {
5663
      public applyCouponToCart() {
5664
        super("applyCouponToCart");
5665
      }
5666
 
5667
      protected applyCouponToCart_args getEmptyArgsInstance() {
5668
        return new applyCouponToCart_args();
5669
      }
5670
 
5671
      protected applyCouponToCart_result getResult(I iface, applyCouponToCart_args args) throws org.apache.thrift.TException {
1982 varun.gupt 5672
        applyCouponToCart_result result = new applyCouponToCart_result();
5673
        try {
3430 rajveer 5674
          iface.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice);
1982 varun.gupt 5675
        } catch (ShoppingCartException scx) {
5676
          result.scx = scx;
5677
        }
3430 rajveer 5678
        return result;
1982 varun.gupt 5679
      }
5680
    }
5681
 
3430 rajveer 5682
    private static class removeCoupon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeCoupon_args> {
5683
      public removeCoupon() {
5684
        super("removeCoupon");
5685
      }
5686
 
5687
      protected removeCoupon_args getEmptyArgsInstance() {
5688
        return new removeCoupon_args();
5689
      }
5690
 
5691
      protected removeCoupon_result getResult(I iface, removeCoupon_args args) throws org.apache.thrift.TException {
1982 varun.gupt 5692
        removeCoupon_result result = new removeCoupon_result();
5693
        try {
3430 rajveer 5694
          iface.removeCoupon(args.cartId);
1982 varun.gupt 5695
        } catch (ShoppingCartException scx) {
5696
          result.scx = scx;
5697
        }
3430 rajveer 5698
        return result;
1982 varun.gupt 5699
      }
5700
    }
5701
 
3430 rajveer 5702
    private static class createOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrders_args> {
5703
      public createOrders() {
5704
        super("createOrders");
5705
      }
5706
 
5707
      protected createOrders_args getEmptyArgsInstance() {
5708
        return new createOrders_args();
5709
      }
5710
 
5711
      protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
688 chandransh 5712
        createOrders_result result = new createOrders_result();
553 chandransh 5713
        try {
3430 rajveer 5714
          result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime);
130 ashish 5715
          result.setSuccessIsSet(true);
553 chandransh 5716
        } catch (ShoppingCartException scx) {
5717
          result.scx = scx;
130 ashish 5718
        }
3430 rajveer 5719
        return result;
130 ashish 5720
      }
5721
    }
5722
 
3430 rajveer 5723
    private static class validateCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateCart_args> {
5724
      public validateCart() {
5725
        super("validateCart");
5726
      }
5727
 
5728
      protected validateCart_args getEmptyArgsInstance() {
5729
        return new validateCart_args();
5730
      }
5731
 
5732
      protected validateCart_result getResult(I iface, validateCart_args args) throws org.apache.thrift.TException {
553 chandransh 5733
        validateCart_result result = new validateCart_result();
578 chandransh 5734
        try {
3430 rajveer 5735
          result.success = iface.validateCart(args.cartId);
578 chandransh 5736
        } catch (ShoppingCartException scex) {
5737
          result.scex = scex;
5738
        }
3430 rajveer 5739
        return result;
553 chandransh 5740
      }
5741
    }
5742
 
3430 rajveer 5743
    private static class mergeCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeCart_args> {
5744
      public mergeCart() {
5745
        super("mergeCart");
5746
      }
5747
 
5748
      protected mergeCart_args getEmptyArgsInstance() {
5749
        return new mergeCart_args();
5750
      }
5751
 
5752
      protected mergeCart_result getResult(I iface, mergeCart_args args) throws org.apache.thrift.TException {
688 chandransh 5753
        mergeCart_result result = new mergeCart_result();
3430 rajveer 5754
        iface.mergeCart(args.fromCartId, args.toCartId);
5755
        return result;
688 chandransh 5756
      }
5757
    }
5758
 
3430 rajveer 5759
    private static class checkOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkOut_args> {
5760
      public checkOut() {
5761
        super("checkOut");
5762
      }
5763
 
5764
      protected checkOut_args getEmptyArgsInstance() {
5765
        return new checkOut_args();
5766
      }
5767
 
5768
      protected checkOut_result getResult(I iface, checkOut_args args) throws org.apache.thrift.TException {
688 chandransh 5769
        checkOut_result result = new checkOut_result();
578 chandransh 5770
        try {
3430 rajveer 5771
          result.success = iface.checkOut(args.cartId);
578 chandransh 5772
          result.setSuccessIsSet(true);
5773
        } catch (ShoppingCartException scex) {
5774
          result.scex = scex;
5775
        }
3430 rajveer 5776
        return result;
578 chandransh 5777
      }
5778
    }
5779
 
3430 rajveer 5780
    private static class resetCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetCart_args> {
5781
      public resetCart() {
5782
        super("resetCart");
5783
      }
5784
 
5785
      protected resetCart_args getEmptyArgsInstance() {
5786
        return new resetCart_args();
5787
      }
5788
 
5789
      protected resetCart_result getResult(I iface, resetCart_args args) throws org.apache.thrift.TException {
688 chandransh 5790
        resetCart_result result = new resetCart_result();
5791
        try {
3430 rajveer 5792
          result.success = iface.resetCart(args.cartId, args.items);
688 chandransh 5793
          result.setSuccessIsSet(true);
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 getUserCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCount_args> {
5802
      public getUserCount() {
5803
        super("getUserCount");
5804
      }
5805
 
5806
      protected getUserCount_args getEmptyArgsInstance() {
5807
        return new getUserCount_args();
5808
      }
5809
 
5810
      protected getUserCount_result getResult(I iface, getUserCount_args args) throws org.apache.thrift.TException {
2981 rajveer 5811
        getUserCount_result result = new getUserCount_result();
3430 rajveer 5812
        result.success = iface.getUserCount(args.userType);
2981 rajveer 5813
        result.setSuccessIsSet(true);
3430 rajveer 5814
        return result;
2981 rajveer 5815
      }
5816
    }
5817
 
3430 rajveer 5818
    private static class getAllUsers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsers_args> {
5819
      public getAllUsers() {
5820
        super("getAllUsers");
5821
      }
5822
 
5823
      protected getAllUsers_args getEmptyArgsInstance() {
5824
        return new getAllUsers_args();
5825
      }
5826
 
5827
      protected getAllUsers_result getResult(I iface, getAllUsers_args args) throws org.apache.thrift.TException {
2981 rajveer 5828
        getAllUsers_result result = new getAllUsers_result();
3430 rajveer 5829
        result.success = iface.getAllUsers(args.userType, args.startDate, args.endDate);
5830
        return result;
2981 rajveer 5831
      }
5832
    }
5833
 
3430 rajveer 5834
    private static class putUserNote<I extends Iface> extends org.apache.thrift.ProcessFunction<I, putUserNote_args> {
5835
      public putUserNote() {
5836
        super("putUserNote");
5837
      }
5838
 
5839
      protected putUserNote_args getEmptyArgsInstance() {
5840
        return new putUserNote_args();
5841
      }
5842
 
5843
      protected putUserNote_result getResult(I iface, putUserNote_args args) throws org.apache.thrift.TException {
2981 rajveer 5844
        putUserNote_result result = new putUserNote_result();
3430 rajveer 5845
        iface.putUserNote(args.user_id, args.entity_id, args.slide, args.note);
5846
        return result;
2981 rajveer 5847
      }
5848
    }
5849
 
3430 rajveer 5850
    private static class getUserNotes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserNotes_args> {
5851
      public getUserNotes() {
5852
        super("getUserNotes");
5853
      }
5854
 
5855
      protected getUserNotes_args getEmptyArgsInstance() {
5856
        return new getUserNotes_args();
5857
      }
5858
 
5859
      protected getUserNotes_result getResult(I iface, getUserNotes_args args) throws org.apache.thrift.TException {
2981 rajveer 5860
        getUserNotes_result result = new getUserNotes_result();
3430 rajveer 5861
        result.success = iface.getUserNotes(args.user_id, args.entity_id);
5862
        return result;
2981 rajveer 5863
      }
5864
    }
5865
 
3430 rajveer 5866
    private static class getMyResearchItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMyResearchItems_args> {
5867
      public getMyResearchItems() {
5868
        super("getMyResearchItems");
5869
      }
5870
 
5871
      protected getMyResearchItems_args getEmptyArgsInstance() {
5872
        return new getMyResearchItems_args();
5873
      }
5874
 
5875
      protected getMyResearchItems_result getResult(I iface, getMyResearchItems_args args) throws org.apache.thrift.TException {
2981 rajveer 5876
        getMyResearchItems_result result = new getMyResearchItems_result();
553 chandransh 5877
        try {
3430 rajveer 5878
          result.success = iface.getMyResearchItems(args.userId);
553 chandransh 5879
        } catch (WidgetException scx) {
5880
          result.scx = scx;
5881
        }
3430 rajveer 5882
        return result;
553 chandransh 5883
      }
5884
    }
5885
 
3430 rajveer 5886
    private static class updateMyResearch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMyResearch_args> {
5887
      public updateMyResearch() {
5888
        super("updateMyResearch");
5889
      }
5890
 
5891
      protected updateMyResearch_args getEmptyArgsInstance() {
5892
        return new updateMyResearch_args();
5893
      }
5894
 
5895
      protected updateMyResearch_result getResult(I iface, updateMyResearch_args args) throws org.apache.thrift.TException {
553 chandransh 5896
        updateMyResearch_result result = new updateMyResearch_result();
5897
        try {
3430 rajveer 5898
          result.success = iface.updateMyResearch(args.userId, args.itemId);
130 ashish 5899
          result.setSuccessIsSet(true);
553 chandransh 5900
        } catch (WidgetException scx) {
5901
          result.scx = scx;
130 ashish 5902
        }
3430 rajveer 5903
        return result;
130 ashish 5904
      }
5905
    }
5906
 
3430 rajveer 5907
    private static class deleteItemFromMyResearch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromMyResearch_args> {
5908
      public deleteItemFromMyResearch() {
5909
        super("deleteItemFromMyResearch");
5910
      }
5911
 
5912
      protected deleteItemFromMyResearch_args getEmptyArgsInstance() {
5913
        return new deleteItemFromMyResearch_args();
5914
      }
5915
 
5916
      protected deleteItemFromMyResearch_result getResult(I iface, deleteItemFromMyResearch_args args) throws org.apache.thrift.TException {
553 chandransh 5917
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
5918
        try {
3430 rajveer 5919
          iface.deleteItemFromMyResearch(args.userId, args.itemId);
553 chandransh 5920
        } catch (WidgetException scx) {
5921
          result.scx = scx;
5922
        }
3430 rajveer 5923
        return result;
553 chandransh 5924
      }
5925
    }
5926
 
3430 rajveer 5927
    private static class getBrowseHistoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBrowseHistoryItems_args> {
5928
      public getBrowseHistoryItems() {
5929
        super("getBrowseHistoryItems");
5930
      }
5931
 
5932
      protected getBrowseHistoryItems_args getEmptyArgsInstance() {
5933
        return new getBrowseHistoryItems_args();
5934
      }
5935
 
5936
      protected getBrowseHistoryItems_result getResult(I iface, getBrowseHistoryItems_args args) throws org.apache.thrift.TException {
2981 rajveer 5937
        getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
553 chandransh 5938
        try {
3430 rajveer 5939
          result.success = iface.getBrowseHistoryItems(args.userId);
553 chandransh 5940
        } catch (WidgetException scx) {
5941
          result.scx = scx;
5942
        }
3430 rajveer 5943
        return result;
553 chandransh 5944
      }
5945
    }
5946
 
3430 rajveer 5947
    private static class updateBrowseHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBrowseHistory_args> {
5948
      public updateBrowseHistory() {
5949
        super("updateBrowseHistory");
5950
      }
5951
 
5952
      protected updateBrowseHistory_args getEmptyArgsInstance() {
5953
        return new updateBrowseHistory_args();
5954
      }
5955
 
5956
      protected updateBrowseHistory_result getResult(I iface, updateBrowseHistory_args args) throws org.apache.thrift.TException {
2981 rajveer 5957
        updateBrowseHistory_result result = new updateBrowseHistory_result();
3430 rajveer 5958
        iface.updateBrowseHistory(args.userId, args.itemId);
5959
        return result;
553 chandransh 5960
      }
5961
    }
5962
 
3430 rajveer 5963
    private static class getCartsWithCouponCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsWithCouponCount_args> {
5964
      public getCartsWithCouponCount() {
5965
        super("getCartsWithCouponCount");
5966
      }
5967
 
5968
      protected getCartsWithCouponCount_args getEmptyArgsInstance() {
5969
        return new getCartsWithCouponCount_args();
5970
      }
5971
 
5972
      protected getCartsWithCouponCount_result getResult(I iface, getCartsWithCouponCount_args args) throws org.apache.thrift.TException {
3385 varun.gupt 5973
        getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
3430 rajveer 5974
        result.success = iface.getCartsWithCouponCount(args.couponCode);
3385 varun.gupt 5975
        result.setSuccessIsSet(true);
3430 rajveer 5976
        return result;
3385 varun.gupt 5977
      }
5978
    }
5979
 
48 ashish 5980
  }
5981
 
3430 rajveer 5982
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
5983
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
48 ashish 5984
 
3430 rajveer 5985
    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 5986
 
3430 rajveer 5987
    private String jsessionId; // required
48 ashish 5988
 
5989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5990
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 5991
      JSESSION_ID((short)1, "jsessionId");
48 ashish 5992
 
5993
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5994
 
5995
      static {
5996
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5997
          byName.put(field.getFieldName(), field);
5998
        }
5999
      }
6000
 
6001
      /**
6002
       * Find the _Fields constant that matches fieldId, or null if its not found.
6003
       */
6004
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6005
        switch(fieldId) {
6006
          case 1: // JSESSION_ID
6007
            return JSESSION_ID;
6008
          default:
6009
            return null;
6010
        }
48 ashish 6011
      }
6012
 
6013
      /**
6014
       * Find the _Fields constant that matches fieldId, throwing an exception
6015
       * if it is not found.
6016
       */
6017
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6018
        _Fields fields = findByThriftId(fieldId);
6019
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6020
        return fields;
6021
      }
6022
 
6023
      /**
6024
       * Find the _Fields constant that matches name, or null if its not found.
6025
       */
6026
      public static _Fields findByName(String name) {
6027
        return byName.get(name);
6028
      }
6029
 
6030
      private final short _thriftId;
6031
      private final String _fieldName;
6032
 
6033
      _Fields(short thriftId, String fieldName) {
6034
        _thriftId = thriftId;
6035
        _fieldName = fieldName;
6036
      }
6037
 
6038
      public short getThriftFieldId() {
6039
        return _thriftId;
6040
      }
6041
 
6042
      public String getFieldName() {
6043
        return _fieldName;
6044
      }
6045
    }
6046
 
6047
    // isset id assignments
6048
 
3430 rajveer 6049
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6050
    static {
3430 rajveer 6051
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6052
      tmpMap.put(_Fields.JSESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("jsessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAnonymousUser_args.class, metaDataMap);
48 ashish 6056
    }
6057
 
553 chandransh 6058
    public createAnonymousUser_args() {
48 ashish 6059
    }
6060
 
553 chandransh 6061
    public createAnonymousUser_args(
6062
      String jsessionId)
48 ashish 6063
    {
6064
      this();
553 chandransh 6065
      this.jsessionId = jsessionId;
48 ashish 6066
    }
6067
 
6068
    /**
6069
     * Performs a deep copy on <i>other</i>.
6070
     */
553 chandransh 6071
    public createAnonymousUser_args(createAnonymousUser_args other) {
6072
      if (other.isSetJsessionId()) {
6073
        this.jsessionId = other.jsessionId;
48 ashish 6074
      }
6075
    }
6076
 
553 chandransh 6077
    public createAnonymousUser_args deepCopy() {
6078
      return new createAnonymousUser_args(this);
48 ashish 6079
    }
6080
 
3430 rajveer 6081
    @Override
6082
    public void clear() {
6083
      this.jsessionId = null;
48 ashish 6084
    }
6085
 
553 chandransh 6086
    public String getJsessionId() {
6087
      return this.jsessionId;
48 ashish 6088
    }
6089
 
3430 rajveer 6090
    public void setJsessionId(String jsessionId) {
553 chandransh 6091
      this.jsessionId = jsessionId;
48 ashish 6092
    }
6093
 
553 chandransh 6094
    public void unsetJsessionId() {
6095
      this.jsessionId = null;
48 ashish 6096
    }
6097
 
3430 rajveer 6098
    /** Returns true if field jsessionId is set (has been assigned a value) and false otherwise */
553 chandransh 6099
    public boolean isSetJsessionId() {
6100
      return this.jsessionId != null;
48 ashish 6101
    }
6102
 
553 chandransh 6103
    public void setJsessionIdIsSet(boolean value) {
48 ashish 6104
      if (!value) {
553 chandransh 6105
        this.jsessionId = null;
48 ashish 6106
      }
6107
    }
6108
 
6109
    public void setFieldValue(_Fields field, Object value) {
6110
      switch (field) {
553 chandransh 6111
      case JSESSION_ID:
48 ashish 6112
        if (value == null) {
553 chandransh 6113
          unsetJsessionId();
48 ashish 6114
        } else {
553 chandransh 6115
          setJsessionId((String)value);
48 ashish 6116
        }
6117
        break;
6118
 
6119
      }
6120
    }
6121
 
6122
    public Object getFieldValue(_Fields field) {
6123
      switch (field) {
553 chandransh 6124
      case JSESSION_ID:
6125
        return getJsessionId();
48 ashish 6126
 
6127
      }
6128
      throw new IllegalStateException();
6129
    }
6130
 
3430 rajveer 6131
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6132
    public boolean isSet(_Fields field) {
6133
      if (field == null) {
6134
        throw new IllegalArgumentException();
6135
      }
48 ashish 6136
 
6137
      switch (field) {
553 chandransh 6138
      case JSESSION_ID:
6139
        return isSetJsessionId();
48 ashish 6140
      }
6141
      throw new IllegalStateException();
6142
    }
6143
 
6144
    @Override
6145
    public boolean equals(Object that) {
6146
      if (that == null)
6147
        return false;
553 chandransh 6148
      if (that instanceof createAnonymousUser_args)
6149
        return this.equals((createAnonymousUser_args)that);
48 ashish 6150
      return false;
6151
    }
6152
 
553 chandransh 6153
    public boolean equals(createAnonymousUser_args that) {
48 ashish 6154
      if (that == null)
6155
        return false;
6156
 
553 chandransh 6157
      boolean this_present_jsessionId = true && this.isSetJsessionId();
6158
      boolean that_present_jsessionId = true && that.isSetJsessionId();
6159
      if (this_present_jsessionId || that_present_jsessionId) {
6160
        if (!(this_present_jsessionId && that_present_jsessionId))
48 ashish 6161
          return false;
553 chandransh 6162
        if (!this.jsessionId.equals(that.jsessionId))
48 ashish 6163
          return false;
6164
      }
6165
 
6166
      return true;
6167
    }
6168
 
6169
    @Override
6170
    public int hashCode() {
6171
      return 0;
6172
    }
6173
 
553 chandransh 6174
    public int compareTo(createAnonymousUser_args other) {
6175
      if (!getClass().equals(other.getClass())) {
6176
        return getClass().getName().compareTo(other.getClass().getName());
6177
      }
6178
 
6179
      int lastComparison = 0;
6180
      createAnonymousUser_args typedOther = (createAnonymousUser_args)other;
6181
 
3430 rajveer 6182
      lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(typedOther.isSetJsessionId());
553 chandransh 6183
      if (lastComparison != 0) {
6184
        return lastComparison;
6185
      }
3430 rajveer 6186
      if (isSetJsessionId()) {
6187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jsessionId, typedOther.jsessionId);
6188
        if (lastComparison != 0) {
6189
          return lastComparison;
6190
        }
553 chandransh 6191
      }
6192
      return 0;
6193
    }
6194
 
3430 rajveer 6195
    public _Fields fieldForId(int fieldId) {
6196
      return _Fields.findByThriftId(fieldId);
6197
    }
6198
 
6199
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6200
      org.apache.thrift.protocol.TField field;
48 ashish 6201
      iprot.readStructBegin();
6202
      while (true)
6203
      {
6204
        field = iprot.readFieldBegin();
3430 rajveer 6205
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6206
          break;
6207
        }
3430 rajveer 6208
        switch (field.id) {
6209
          case 1: // JSESSION_ID
6210
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6211
              this.jsessionId = iprot.readString();
6212
            } else { 
6213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6214
            }
6215
            break;
6216
          default:
6217
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6218
        }
3430 rajveer 6219
        iprot.readFieldEnd();
48 ashish 6220
      }
6221
      iprot.readStructEnd();
6222
      validate();
6223
    }
6224
 
3430 rajveer 6225
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6226
      validate();
6227
 
6228
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 6229
      if (this.jsessionId != null) {
6230
        oprot.writeFieldBegin(JSESSION_ID_FIELD_DESC);
6231
        oprot.writeString(this.jsessionId);
48 ashish 6232
        oprot.writeFieldEnd();
6233
      }
6234
      oprot.writeFieldStop();
6235
      oprot.writeStructEnd();
6236
    }
6237
 
6238
    @Override
6239
    public String toString() {
553 chandransh 6240
      StringBuilder sb = new StringBuilder("createAnonymousUser_args(");
48 ashish 6241
      boolean first = true;
6242
 
553 chandransh 6243
      sb.append("jsessionId:");
6244
      if (this.jsessionId == null) {
48 ashish 6245
        sb.append("null");
6246
      } else {
553 chandransh 6247
        sb.append(this.jsessionId);
48 ashish 6248
      }
6249
      first = false;
6250
      sb.append(")");
6251
      return sb.toString();
6252
    }
6253
 
3430 rajveer 6254
    public void validate() throws org.apache.thrift.TException {
48 ashish 6255
      // check for required fields
6256
    }
6257
 
3430 rajveer 6258
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6259
      try {
6260
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6261
      } catch (org.apache.thrift.TException te) {
6262
        throw new java.io.IOException(te);
6263
      }
6264
    }
6265
 
6266
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6267
      try {
6268
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6269
      } catch (org.apache.thrift.TException te) {
6270
        throw new java.io.IOException(te);
6271
      }
6272
    }
6273
 
48 ashish 6274
  }
6275
 
3430 rajveer 6276
  public static class createAnonymousUser_result implements org.apache.thrift.TBase<createAnonymousUser_result, createAnonymousUser_result._Fields>, java.io.Serializable, Cloneable   {
6277
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_result");
48 ashish 6278
 
3430 rajveer 6279
    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);
6280
    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 6281
 
3430 rajveer 6282
    private User success; // required
6283
    private UserContextException ucex; // required
48 ashish 6284
 
6285
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6286
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 6287
      SUCCESS((short)0, "success"),
553 chandransh 6288
      UCEX((short)1, "ucex");
48 ashish 6289
 
6290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6291
 
6292
      static {
6293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6294
          byName.put(field.getFieldName(), field);
6295
        }
6296
      }
6297
 
6298
      /**
6299
       * Find the _Fields constant that matches fieldId, or null if its not found.
6300
       */
6301
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6302
        switch(fieldId) {
6303
          case 0: // SUCCESS
6304
            return SUCCESS;
6305
          case 1: // UCEX
6306
            return UCEX;
6307
          default:
6308
            return null;
6309
        }
48 ashish 6310
      }
6311
 
6312
      /**
6313
       * Find the _Fields constant that matches fieldId, throwing an exception
6314
       * if it is not found.
6315
       */
6316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6317
        _Fields fields = findByThriftId(fieldId);
6318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6319
        return fields;
6320
      }
6321
 
6322
      /**
6323
       * Find the _Fields constant that matches name, or null if its not found.
6324
       */
6325
      public static _Fields findByName(String name) {
6326
        return byName.get(name);
6327
      }
6328
 
6329
      private final short _thriftId;
6330
      private final String _fieldName;
6331
 
6332
      _Fields(short thriftId, String fieldName) {
6333
        _thriftId = thriftId;
6334
        _fieldName = fieldName;
6335
      }
6336
 
6337
      public short getThriftFieldId() {
6338
        return _thriftId;
6339
      }
6340
 
6341
      public String getFieldName() {
6342
        return _fieldName;
6343
      }
6344
    }
6345
 
6346
    // isset id assignments
6347
 
3430 rajveer 6348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6349
    static {
3430 rajveer 6350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6351
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6352
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
6353
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAnonymousUser_result.class, metaDataMap);
48 ashish 6357
    }
6358
 
553 chandransh 6359
    public createAnonymousUser_result() {
48 ashish 6360
    }
6361
 
553 chandransh 6362
    public createAnonymousUser_result(
6363
      User success,
6364
      UserContextException ucex)
48 ashish 6365
    {
6366
      this();
6367
      this.success = success;
553 chandransh 6368
      this.ucex = ucex;
48 ashish 6369
    }
6370
 
6371
    /**
6372
     * Performs a deep copy on <i>other</i>.
6373
     */
553 chandransh 6374
    public createAnonymousUser_result(createAnonymousUser_result other) {
48 ashish 6375
      if (other.isSetSuccess()) {
553 chandransh 6376
        this.success = new User(other.success);
48 ashish 6377
      }
553 chandransh 6378
      if (other.isSetUcex()) {
6379
        this.ucex = new UserContextException(other.ucex);
48 ashish 6380
      }
6381
    }
6382
 
553 chandransh 6383
    public createAnonymousUser_result deepCopy() {
6384
      return new createAnonymousUser_result(this);
48 ashish 6385
    }
6386
 
3430 rajveer 6387
    @Override
6388
    public void clear() {
6389
      this.success = null;
6390
      this.ucex = null;
48 ashish 6391
    }
6392
 
553 chandransh 6393
    public User getSuccess() {
48 ashish 6394
      return this.success;
6395
    }
6396
 
3430 rajveer 6397
    public void setSuccess(User success) {
48 ashish 6398
      this.success = success;
6399
    }
6400
 
6401
    public void unsetSuccess() {
6402
      this.success = null;
6403
    }
6404
 
3430 rajveer 6405
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 6406
    public boolean isSetSuccess() {
6407
      return this.success != null;
6408
    }
6409
 
6410
    public void setSuccessIsSet(boolean value) {
6411
      if (!value) {
6412
        this.success = null;
6413
      }
6414
    }
6415
 
553 chandransh 6416
    public UserContextException getUcex() {
6417
      return this.ucex;
48 ashish 6418
    }
6419
 
3430 rajveer 6420
    public void setUcex(UserContextException ucex) {
553 chandransh 6421
      this.ucex = ucex;
48 ashish 6422
    }
6423
 
553 chandransh 6424
    public void unsetUcex() {
6425
      this.ucex = null;
48 ashish 6426
    }
6427
 
3430 rajveer 6428
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 6429
    public boolean isSetUcex() {
6430
      return this.ucex != null;
48 ashish 6431
    }
6432
 
553 chandransh 6433
    public void setUcexIsSet(boolean value) {
48 ashish 6434
      if (!value) {
553 chandransh 6435
        this.ucex = null;
48 ashish 6436
      }
6437
    }
6438
 
6439
    public void setFieldValue(_Fields field, Object value) {
6440
      switch (field) {
6441
      case SUCCESS:
6442
        if (value == null) {
6443
          unsetSuccess();
6444
        } else {
553 chandransh 6445
          setSuccess((User)value);
48 ashish 6446
        }
6447
        break;
6448
 
553 chandransh 6449
      case UCEX:
48 ashish 6450
        if (value == null) {
553 chandransh 6451
          unsetUcex();
48 ashish 6452
        } else {
553 chandransh 6453
          setUcex((UserContextException)value);
48 ashish 6454
        }
6455
        break;
6456
 
6457
      }
6458
    }
6459
 
6460
    public Object getFieldValue(_Fields field) {
6461
      switch (field) {
6462
      case SUCCESS:
6463
        return getSuccess();
6464
 
553 chandransh 6465
      case UCEX:
6466
        return getUcex();
48 ashish 6467
 
6468
      }
6469
      throw new IllegalStateException();
6470
    }
6471
 
3430 rajveer 6472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6473
    public boolean isSet(_Fields field) {
6474
      if (field == null) {
6475
        throw new IllegalArgumentException();
6476
      }
48 ashish 6477
 
6478
      switch (field) {
6479
      case SUCCESS:
6480
        return isSetSuccess();
553 chandransh 6481
      case UCEX:
6482
        return isSetUcex();
48 ashish 6483
      }
6484
      throw new IllegalStateException();
6485
    }
6486
 
6487
    @Override
6488
    public boolean equals(Object that) {
6489
      if (that == null)
6490
        return false;
553 chandransh 6491
      if (that instanceof createAnonymousUser_result)
6492
        return this.equals((createAnonymousUser_result)that);
48 ashish 6493
      return false;
6494
    }
6495
 
553 chandransh 6496
    public boolean equals(createAnonymousUser_result that) {
48 ashish 6497
      if (that == null)
6498
        return false;
6499
 
6500
      boolean this_present_success = true && this.isSetSuccess();
6501
      boolean that_present_success = true && that.isSetSuccess();
6502
      if (this_present_success || that_present_success) {
6503
        if (!(this_present_success && that_present_success))
6504
          return false;
6505
        if (!this.success.equals(that.success))
6506
          return false;
6507
      }
6508
 
553 chandransh 6509
      boolean this_present_ucex = true && this.isSetUcex();
6510
      boolean that_present_ucex = true && that.isSetUcex();
6511
      if (this_present_ucex || that_present_ucex) {
6512
        if (!(this_present_ucex && that_present_ucex))
48 ashish 6513
          return false;
553 chandransh 6514
        if (!this.ucex.equals(that.ucex))
48 ashish 6515
          return false;
6516
      }
6517
 
6518
      return true;
6519
    }
6520
 
6521
    @Override
6522
    public int hashCode() {
6523
      return 0;
6524
    }
6525
 
571 rajveer 6526
    public int compareTo(createAnonymousUser_result other) {
6527
      if (!getClass().equals(other.getClass())) {
6528
        return getClass().getName().compareTo(other.getClass().getName());
6529
      }
6530
 
6531
      int lastComparison = 0;
6532
      createAnonymousUser_result typedOther = (createAnonymousUser_result)other;
6533
 
3430 rajveer 6534
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 6535
      if (lastComparison != 0) {
6536
        return lastComparison;
6537
      }
3430 rajveer 6538
      if (isSetSuccess()) {
6539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6540
        if (lastComparison != 0) {
6541
          return lastComparison;
6542
        }
571 rajveer 6543
      }
3430 rajveer 6544
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 6545
      if (lastComparison != 0) {
6546
        return lastComparison;
6547
      }
3430 rajveer 6548
      if (isSetUcex()) {
6549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
6550
        if (lastComparison != 0) {
6551
          return lastComparison;
6552
        }
571 rajveer 6553
      }
6554
      return 0;
6555
    }
6556
 
3430 rajveer 6557
    public _Fields fieldForId(int fieldId) {
6558
      return _Fields.findByThriftId(fieldId);
6559
    }
6560
 
6561
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6562
      org.apache.thrift.protocol.TField field;
48 ashish 6563
      iprot.readStructBegin();
6564
      while (true)
6565
      {
6566
        field = iprot.readFieldBegin();
3430 rajveer 6567
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6568
          break;
6569
        }
3430 rajveer 6570
        switch (field.id) {
6571
          case 0: // SUCCESS
6572
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6573
              this.success = new User();
6574
              this.success.read(iprot);
6575
            } else { 
6576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6577
            }
6578
            break;
6579
          case 1: // UCEX
6580
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6581
              this.ucex = new UserContextException();
6582
              this.ucex.read(iprot);
6583
            } else { 
6584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6585
            }
6586
            break;
6587
          default:
6588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6589
        }
3430 rajveer 6590
        iprot.readFieldEnd();
48 ashish 6591
      }
6592
      iprot.readStructEnd();
6593
      validate();
6594
    }
6595
 
3430 rajveer 6596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6597
      oprot.writeStructBegin(STRUCT_DESC);
6598
 
6599
      if (this.isSetSuccess()) {
6600
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6601
        this.success.write(oprot);
6602
        oprot.writeFieldEnd();
553 chandransh 6603
      } else if (this.isSetUcex()) {
6604
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
6605
        this.ucex.write(oprot);
48 ashish 6606
        oprot.writeFieldEnd();
6607
      }
6608
      oprot.writeFieldStop();
6609
      oprot.writeStructEnd();
6610
    }
6611
 
6612
    @Override
6613
    public String toString() {
553 chandransh 6614
      StringBuilder sb = new StringBuilder("createAnonymousUser_result(");
48 ashish 6615
      boolean first = true;
6616
 
6617
      sb.append("success:");
6618
      if (this.success == null) {
6619
        sb.append("null");
6620
      } else {
6621
        sb.append(this.success);
6622
      }
6623
      first = false;
6624
      if (!first) sb.append(", ");
553 chandransh 6625
      sb.append("ucex:");
6626
      if (this.ucex == null) {
48 ashish 6627
        sb.append("null");
6628
      } else {
553 chandransh 6629
        sb.append(this.ucex);
48 ashish 6630
      }
6631
      first = false;
6632
      sb.append(")");
6633
      return sb.toString();
6634
    }
6635
 
3430 rajveer 6636
    public void validate() throws org.apache.thrift.TException {
48 ashish 6637
      // check for required fields
6638
    }
6639
 
3430 rajveer 6640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6641
      try {
6642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6643
      } catch (org.apache.thrift.TException te) {
6644
        throw new java.io.IOException(te);
6645
      }
6646
    }
6647
 
6648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6649
      try {
6650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6651
      } catch (org.apache.thrift.TException te) {
6652
        throw new java.io.IOException(te);
6653
      }
6654
    }
6655
 
48 ashish 6656
  }
6657
 
3430 rajveer 6658
  public static class getUserById_args implements org.apache.thrift.TBase<getUserById_args, getUserById_args._Fields>, java.io.Serializable, Cloneable   {
6659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserById_args");
48 ashish 6660
 
3430 rajveer 6661
    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 6662
 
3430 rajveer 6663
    private long userId; // required
48 ashish 6664
 
6665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 6667
      USER_ID((short)1, "userId");
48 ashish 6668
 
6669
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6670
 
6671
      static {
6672
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6673
          byName.put(field.getFieldName(), field);
6674
        }
6675
      }
6676
 
6677
      /**
6678
       * Find the _Fields constant that matches fieldId, or null if its not found.
6679
       */
6680
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6681
        switch(fieldId) {
6682
          case 1: // USER_ID
6683
            return USER_ID;
6684
          default:
6685
            return null;
6686
        }
48 ashish 6687
      }
6688
 
6689
      /**
6690
       * Find the _Fields constant that matches fieldId, throwing an exception
6691
       * if it is not found.
6692
       */
6693
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6694
        _Fields fields = findByThriftId(fieldId);
6695
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6696
        return fields;
6697
      }
6698
 
6699
      /**
6700
       * Find the _Fields constant that matches name, or null if its not found.
6701
       */
6702
      public static _Fields findByName(String name) {
6703
        return byName.get(name);
6704
      }
6705
 
6706
      private final short _thriftId;
6707
      private final String _fieldName;
6708
 
6709
      _Fields(short thriftId, String fieldName) {
6710
        _thriftId = thriftId;
6711
        _fieldName = fieldName;
6712
      }
6713
 
6714
      public short getThriftFieldId() {
6715
        return _thriftId;
6716
      }
6717
 
6718
      public String getFieldName() {
6719
        return _fieldName;
6720
      }
6721
    }
6722
 
6723
    // isset id assignments
6724
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 6725
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 6726
 
3430 rajveer 6727
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6728
    static {
3430 rajveer 6729
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6730
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserById_args.class, metaDataMap);
48 ashish 6734
    }
6735
 
553 chandransh 6736
    public getUserById_args() {
48 ashish 6737
    }
6738
 
553 chandransh 6739
    public getUserById_args(
6740
      long userId)
48 ashish 6741
    {
6742
      this();
6743
      this.userId = userId;
6744
      setUserIdIsSet(true);
6745
    }
6746
 
6747
    /**
6748
     * Performs a deep copy on <i>other</i>.
6749
     */
553 chandransh 6750
    public getUserById_args(getUserById_args other) {
48 ashish 6751
      __isset_bit_vector.clear();
6752
      __isset_bit_vector.or(other.__isset_bit_vector);
6753
      this.userId = other.userId;
6754
    }
6755
 
553 chandransh 6756
    public getUserById_args deepCopy() {
6757
      return new getUserById_args(this);
48 ashish 6758
    }
6759
 
3430 rajveer 6760
    @Override
6761
    public void clear() {
6762
      setUserIdIsSet(false);
6763
      this.userId = 0;
48 ashish 6764
    }
6765
 
6766
    public long getUserId() {
6767
      return this.userId;
6768
    }
6769
 
3430 rajveer 6770
    public void setUserId(long userId) {
48 ashish 6771
      this.userId = userId;
6772
      setUserIdIsSet(true);
6773
    }
6774
 
6775
    public void unsetUserId() {
6776
      __isset_bit_vector.clear(__USERID_ISSET_ID);
6777
    }
6778
 
3430 rajveer 6779
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 6780
    public boolean isSetUserId() {
6781
      return __isset_bit_vector.get(__USERID_ISSET_ID);
6782
    }
6783
 
6784
    public void setUserIdIsSet(boolean value) {
6785
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
6786
    }
6787
 
6788
    public void setFieldValue(_Fields field, Object value) {
6789
      switch (field) {
6790
      case USER_ID:
6791
        if (value == null) {
6792
          unsetUserId();
6793
        } else {
6794
          setUserId((Long)value);
6795
        }
6796
        break;
6797
 
6798
      }
6799
    }
6800
 
6801
    public Object getFieldValue(_Fields field) {
6802
      switch (field) {
6803
      case USER_ID:
3430 rajveer 6804
        return Long.valueOf(getUserId());
48 ashish 6805
 
6806
      }
6807
      throw new IllegalStateException();
6808
    }
6809
 
3430 rajveer 6810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6811
    public boolean isSet(_Fields field) {
6812
      if (field == null) {
6813
        throw new IllegalArgumentException();
6814
      }
48 ashish 6815
 
6816
      switch (field) {
6817
      case USER_ID:
6818
        return isSetUserId();
6819
      }
6820
      throw new IllegalStateException();
6821
    }
6822
 
6823
    @Override
6824
    public boolean equals(Object that) {
6825
      if (that == null)
6826
        return false;
553 chandransh 6827
      if (that instanceof getUserById_args)
6828
        return this.equals((getUserById_args)that);
48 ashish 6829
      return false;
6830
    }
6831
 
553 chandransh 6832
    public boolean equals(getUserById_args that) {
48 ashish 6833
      if (that == null)
6834
        return false;
6835
 
6836
      boolean this_present_userId = true;
6837
      boolean that_present_userId = true;
6838
      if (this_present_userId || that_present_userId) {
6839
        if (!(this_present_userId && that_present_userId))
6840
          return false;
6841
        if (this.userId != that.userId)
6842
          return false;
6843
      }
6844
 
6845
      return true;
6846
    }
6847
 
6848
    @Override
6849
    public int hashCode() {
6850
      return 0;
6851
    }
6852
 
553 chandransh 6853
    public int compareTo(getUserById_args other) {
48 ashish 6854
      if (!getClass().equals(other.getClass())) {
6855
        return getClass().getName().compareTo(other.getClass().getName());
6856
      }
6857
 
6858
      int lastComparison = 0;
553 chandransh 6859
      getUserById_args typedOther = (getUserById_args)other;
48 ashish 6860
 
3430 rajveer 6861
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 6862
      if (lastComparison != 0) {
6863
        return lastComparison;
6864
      }
3430 rajveer 6865
      if (isSetUserId()) {
6866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
6867
        if (lastComparison != 0) {
6868
          return lastComparison;
6869
        }
48 ashish 6870
      }
6871
      return 0;
6872
    }
6873
 
3430 rajveer 6874
    public _Fields fieldForId(int fieldId) {
6875
      return _Fields.findByThriftId(fieldId);
6876
    }
6877
 
6878
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6879
      org.apache.thrift.protocol.TField field;
48 ashish 6880
      iprot.readStructBegin();
6881
      while (true)
6882
      {
6883
        field = iprot.readFieldBegin();
3430 rajveer 6884
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6885
          break;
6886
        }
3430 rajveer 6887
        switch (field.id) {
6888
          case 1: // USER_ID
6889
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6890
              this.userId = iprot.readI64();
6891
              setUserIdIsSet(true);
6892
            } else { 
6893
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6894
            }
6895
            break;
6896
          default:
6897
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6898
        }
3430 rajveer 6899
        iprot.readFieldEnd();
48 ashish 6900
      }
6901
      iprot.readStructEnd();
6902
      validate();
6903
    }
6904
 
3430 rajveer 6905
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6906
      validate();
6907
 
6908
      oprot.writeStructBegin(STRUCT_DESC);
6909
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
6910
      oprot.writeI64(this.userId);
6911
      oprot.writeFieldEnd();
6912
      oprot.writeFieldStop();
6913
      oprot.writeStructEnd();
6914
    }
6915
 
6916
    @Override
6917
    public String toString() {
553 chandransh 6918
      StringBuilder sb = new StringBuilder("getUserById_args(");
48 ashish 6919
      boolean first = true;
6920
 
6921
      sb.append("userId:");
6922
      sb.append(this.userId);
6923
      first = false;
6924
      sb.append(")");
6925
      return sb.toString();
6926
    }
6927
 
3430 rajveer 6928
    public void validate() throws org.apache.thrift.TException {
48 ashish 6929
      // check for required fields
6930
    }
6931
 
3430 rajveer 6932
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6933
      try {
6934
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6935
      } catch (org.apache.thrift.TException te) {
6936
        throw new java.io.IOException(te);
6937
      }
6938
    }
6939
 
6940
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6941
      try {
6942
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6943
        __isset_bit_vector = new BitSet(1);
6944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6945
      } catch (org.apache.thrift.TException te) {
6946
        throw new java.io.IOException(te);
6947
      }
6948
    }
6949
 
48 ashish 6950
  }
6951
 
3430 rajveer 6952
  public static class getUserById_result implements org.apache.thrift.TBase<getUserById_result, getUserById_result._Fields>, java.io.Serializable, Cloneable   {
6953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserById_result");
48 ashish 6954
 
3430 rajveer 6955
    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);
6956
    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 6957
 
3430 rajveer 6958
    private User success; // required
6959
    private UserContextException ucex; // required
48 ashish 6960
 
6961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 6963
      SUCCESS((short)0, "success"),
553 chandransh 6964
      UCEX((short)1, "ucex");
48 ashish 6965
 
6966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6967
 
6968
      static {
6969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6970
          byName.put(field.getFieldName(), field);
6971
        }
6972
      }
6973
 
6974
      /**
6975
       * Find the _Fields constant that matches fieldId, or null if its not found.
6976
       */
6977
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6978
        switch(fieldId) {
6979
          case 0: // SUCCESS
6980
            return SUCCESS;
6981
          case 1: // UCEX
6982
            return UCEX;
6983
          default:
6984
            return null;
6985
        }
48 ashish 6986
      }
6987
 
6988
      /**
6989
       * Find the _Fields constant that matches fieldId, throwing an exception
6990
       * if it is not found.
6991
       */
6992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6993
        _Fields fields = findByThriftId(fieldId);
6994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6995
        return fields;
6996
      }
6997
 
6998
      /**
6999
       * Find the _Fields constant that matches name, or null if its not found.
7000
       */
7001
      public static _Fields findByName(String name) {
7002
        return byName.get(name);
7003
      }
7004
 
7005
      private final short _thriftId;
7006
      private final String _fieldName;
7007
 
7008
      _Fields(short thriftId, String fieldName) {
7009
        _thriftId = thriftId;
7010
        _fieldName = fieldName;
7011
      }
7012
 
7013
      public short getThriftFieldId() {
7014
        return _thriftId;
7015
      }
7016
 
7017
      public String getFieldName() {
7018
        return _fieldName;
7019
      }
7020
    }
7021
 
7022
    // isset id assignments
7023
 
3430 rajveer 7024
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 7025
    static {
3430 rajveer 7026
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7027
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7028
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7029
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7031
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7032
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserById_result.class, metaDataMap);
48 ashish 7033
    }
7034
 
553 chandransh 7035
    public getUserById_result() {
48 ashish 7036
    }
7037
 
553 chandransh 7038
    public getUserById_result(
7039
      User success,
7040
      UserContextException ucex)
48 ashish 7041
    {
7042
      this();
7043
      this.success = success;
553 chandransh 7044
      this.ucex = ucex;
48 ashish 7045
    }
7046
 
7047
    /**
7048
     * Performs a deep copy on <i>other</i>.
7049
     */
553 chandransh 7050
    public getUserById_result(getUserById_result other) {
48 ashish 7051
      if (other.isSetSuccess()) {
553 chandransh 7052
        this.success = new User(other.success);
48 ashish 7053
      }
553 chandransh 7054
      if (other.isSetUcex()) {
7055
        this.ucex = new UserContextException(other.ucex);
48 ashish 7056
      }
7057
    }
7058
 
553 chandransh 7059
    public getUserById_result deepCopy() {
7060
      return new getUserById_result(this);
48 ashish 7061
    }
7062
 
3430 rajveer 7063
    @Override
7064
    public void clear() {
7065
      this.success = null;
7066
      this.ucex = null;
48 ashish 7067
    }
7068
 
553 chandransh 7069
    public User getSuccess() {
48 ashish 7070
      return this.success;
7071
    }
7072
 
3430 rajveer 7073
    public void setSuccess(User success) {
48 ashish 7074
      this.success = success;
7075
    }
7076
 
7077
    public void unsetSuccess() {
7078
      this.success = null;
7079
    }
7080
 
3430 rajveer 7081
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 7082
    public boolean isSetSuccess() {
7083
      return this.success != null;
7084
    }
7085
 
7086
    public void setSuccessIsSet(boolean value) {
7087
      if (!value) {
7088
        this.success = null;
7089
      }
7090
    }
7091
 
553 chandransh 7092
    public UserContextException getUcex() {
7093
      return this.ucex;
48 ashish 7094
    }
7095
 
3430 rajveer 7096
    public void setUcex(UserContextException ucex) {
553 chandransh 7097
      this.ucex = ucex;
48 ashish 7098
    }
7099
 
553 chandransh 7100
    public void unsetUcex() {
7101
      this.ucex = null;
48 ashish 7102
    }
7103
 
3430 rajveer 7104
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 7105
    public boolean isSetUcex() {
7106
      return this.ucex != null;
48 ashish 7107
    }
7108
 
553 chandransh 7109
    public void setUcexIsSet(boolean value) {
48 ashish 7110
      if (!value) {
553 chandransh 7111
        this.ucex = null;
48 ashish 7112
      }
7113
    }
7114
 
7115
    public void setFieldValue(_Fields field, Object value) {
7116
      switch (field) {
7117
      case SUCCESS:
7118
        if (value == null) {
7119
          unsetSuccess();
7120
        } else {
553 chandransh 7121
          setSuccess((User)value);
48 ashish 7122
        }
7123
        break;
7124
 
553 chandransh 7125
      case UCEX:
48 ashish 7126
        if (value == null) {
553 chandransh 7127
          unsetUcex();
48 ashish 7128
        } else {
553 chandransh 7129
          setUcex((UserContextException)value);
48 ashish 7130
        }
7131
        break;
7132
 
7133
      }
7134
    }
7135
 
7136
    public Object getFieldValue(_Fields field) {
7137
      switch (field) {
7138
      case SUCCESS:
7139
        return getSuccess();
7140
 
553 chandransh 7141
      case UCEX:
7142
        return getUcex();
48 ashish 7143
 
7144
      }
7145
      throw new IllegalStateException();
7146
    }
7147
 
3430 rajveer 7148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7149
    public boolean isSet(_Fields field) {
7150
      if (field == null) {
7151
        throw new IllegalArgumentException();
7152
      }
48 ashish 7153
 
7154
      switch (field) {
7155
      case SUCCESS:
7156
        return isSetSuccess();
553 chandransh 7157
      case UCEX:
7158
        return isSetUcex();
48 ashish 7159
      }
7160
      throw new IllegalStateException();
7161
    }
7162
 
7163
    @Override
7164
    public boolean equals(Object that) {
7165
      if (that == null)
7166
        return false;
553 chandransh 7167
      if (that instanceof getUserById_result)
7168
        return this.equals((getUserById_result)that);
48 ashish 7169
      return false;
7170
    }
7171
 
553 chandransh 7172
    public boolean equals(getUserById_result that) {
48 ashish 7173
      if (that == null)
7174
        return false;
7175
 
7176
      boolean this_present_success = true && this.isSetSuccess();
7177
      boolean that_present_success = true && that.isSetSuccess();
7178
      if (this_present_success || that_present_success) {
7179
        if (!(this_present_success && that_present_success))
7180
          return false;
7181
        if (!this.success.equals(that.success))
7182
          return false;
7183
      }
7184
 
553 chandransh 7185
      boolean this_present_ucex = true && this.isSetUcex();
7186
      boolean that_present_ucex = true && that.isSetUcex();
7187
      if (this_present_ucex || that_present_ucex) {
7188
        if (!(this_present_ucex && that_present_ucex))
48 ashish 7189
          return false;
553 chandransh 7190
        if (!this.ucex.equals(that.ucex))
48 ashish 7191
          return false;
7192
      }
7193
 
7194
      return true;
7195
    }
7196
 
7197
    @Override
7198
    public int hashCode() {
7199
      return 0;
7200
    }
7201
 
571 rajveer 7202
    public int compareTo(getUserById_result other) {
7203
      if (!getClass().equals(other.getClass())) {
7204
        return getClass().getName().compareTo(other.getClass().getName());
7205
      }
7206
 
7207
      int lastComparison = 0;
7208
      getUserById_result typedOther = (getUserById_result)other;
7209
 
3430 rajveer 7210
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 7211
      if (lastComparison != 0) {
7212
        return lastComparison;
7213
      }
3430 rajveer 7214
      if (isSetSuccess()) {
7215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7216
        if (lastComparison != 0) {
7217
          return lastComparison;
7218
        }
571 rajveer 7219
      }
3430 rajveer 7220
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 7221
      if (lastComparison != 0) {
7222
        return lastComparison;
7223
      }
3430 rajveer 7224
      if (isSetUcex()) {
7225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
7226
        if (lastComparison != 0) {
7227
          return lastComparison;
7228
        }
571 rajveer 7229
      }
7230
      return 0;
7231
    }
7232
 
3430 rajveer 7233
    public _Fields fieldForId(int fieldId) {
7234
      return _Fields.findByThriftId(fieldId);
7235
    }
7236
 
7237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7238
      org.apache.thrift.protocol.TField field;
48 ashish 7239
      iprot.readStructBegin();
7240
      while (true)
7241
      {
7242
        field = iprot.readFieldBegin();
3430 rajveer 7243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 7244
          break;
7245
        }
3430 rajveer 7246
        switch (field.id) {
7247
          case 0: // SUCCESS
7248
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7249
              this.success = new User();
7250
              this.success.read(iprot);
7251
            } else { 
7252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7253
            }
7254
            break;
7255
          case 1: // UCEX
7256
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7257
              this.ucex = new UserContextException();
7258
              this.ucex.read(iprot);
7259
            } else { 
7260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7261
            }
7262
            break;
7263
          default:
7264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 7265
        }
3430 rajveer 7266
        iprot.readFieldEnd();
48 ashish 7267
      }
7268
      iprot.readStructEnd();
7269
      validate();
7270
    }
7271
 
3430 rajveer 7272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 7273
      oprot.writeStructBegin(STRUCT_DESC);
7274
 
7275
      if (this.isSetSuccess()) {
7276
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7277
        this.success.write(oprot);
7278
        oprot.writeFieldEnd();
553 chandransh 7279
      } else if (this.isSetUcex()) {
7280
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
7281
        this.ucex.write(oprot);
48 ashish 7282
        oprot.writeFieldEnd();
7283
      }
7284
      oprot.writeFieldStop();
7285
      oprot.writeStructEnd();
7286
    }
7287
 
7288
    @Override
7289
    public String toString() {
553 chandransh 7290
      StringBuilder sb = new StringBuilder("getUserById_result(");
48 ashish 7291
      boolean first = true;
7292
 
7293
      sb.append("success:");
7294
      if (this.success == null) {
7295
        sb.append("null");
7296
      } else {
7297
        sb.append(this.success);
7298
      }
7299
      first = false;
7300
      if (!first) sb.append(", ");
553 chandransh 7301
      sb.append("ucex:");
7302
      if (this.ucex == null) {
48 ashish 7303
        sb.append("null");
7304
      } else {
553 chandransh 7305
        sb.append(this.ucex);
48 ashish 7306
      }
7307
      first = false;
7308
      sb.append(")");
7309
      return sb.toString();
7310
    }
7311
 
3430 rajveer 7312
    public void validate() throws org.apache.thrift.TException {
48 ashish 7313
      // check for required fields
7314
    }
7315
 
3430 rajveer 7316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7317
      try {
7318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7319
      } catch (org.apache.thrift.TException te) {
7320
        throw new java.io.IOException(te);
7321
      }
7322
    }
7323
 
7324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7325
      try {
7326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7327
      } catch (org.apache.thrift.TException te) {
7328
        throw new java.io.IOException(te);
7329
      }
7330
    }
7331
 
48 ashish 7332
  }
7333
 
3430 rajveer 7334
  public static class getUserByEmail_args implements org.apache.thrift.TBase<getUserByEmail_args, getUserByEmail_args._Fields>, java.io.Serializable, Cloneable   {
7335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_args");
1491 vikas 7336
 
3430 rajveer 7337
    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 7338
 
3430 rajveer 7339
    private String email; // required
1491 vikas 7340
 
7341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1491 vikas 7343
      EMAIL((short)1, "email");
7344
 
7345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7346
 
7347
      static {
7348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7349
          byName.put(field.getFieldName(), field);
7350
        }
7351
      }
7352
 
7353
      /**
7354
       * Find the _Fields constant that matches fieldId, or null if its not found.
7355
       */
7356
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7357
        switch(fieldId) {
7358
          case 1: // EMAIL
7359
            return EMAIL;
7360
          default:
7361
            return null;
7362
        }
1491 vikas 7363
      }
7364
 
7365
      /**
7366
       * Find the _Fields constant that matches fieldId, throwing an exception
7367
       * if it is not found.
7368
       */
7369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7370
        _Fields fields = findByThriftId(fieldId);
7371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7372
        return fields;
7373
      }
7374
 
7375
      /**
7376
       * Find the _Fields constant that matches name, or null if its not found.
7377
       */
7378
      public static _Fields findByName(String name) {
7379
        return byName.get(name);
7380
      }
7381
 
7382
      private final short _thriftId;
7383
      private final String _fieldName;
7384
 
7385
      _Fields(short thriftId, String fieldName) {
7386
        _thriftId = thriftId;
7387
        _fieldName = fieldName;
7388
      }
7389
 
7390
      public short getThriftFieldId() {
7391
        return _thriftId;
7392
      }
7393
 
7394
      public String getFieldName() {
7395
        return _fieldName;
7396
      }
7397
    }
7398
 
7399
    // isset id assignments
7400
 
3430 rajveer 7401
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1491 vikas 7402
    static {
3430 rajveer 7403
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7404
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_args.class, metaDataMap);
1491 vikas 7408
    }
7409
 
7410
    public getUserByEmail_args() {
7411
    }
7412
 
7413
    public getUserByEmail_args(
7414
      String email)
7415
    {
7416
      this();
7417
      this.email = email;
7418
    }
7419
 
7420
    /**
7421
     * Performs a deep copy on <i>other</i>.
7422
     */
7423
    public getUserByEmail_args(getUserByEmail_args other) {
7424
      if (other.isSetEmail()) {
7425
        this.email = other.email;
7426
      }
7427
    }
7428
 
7429
    public getUserByEmail_args deepCopy() {
7430
      return new getUserByEmail_args(this);
7431
    }
7432
 
3430 rajveer 7433
    @Override
7434
    public void clear() {
7435
      this.email = null;
1491 vikas 7436
    }
7437
 
7438
    public String getEmail() {
7439
      return this.email;
7440
    }
7441
 
3430 rajveer 7442
    public void setEmail(String email) {
1491 vikas 7443
      this.email = email;
7444
    }
7445
 
7446
    public void unsetEmail() {
7447
      this.email = null;
7448
    }
7449
 
3430 rajveer 7450
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
1491 vikas 7451
    public boolean isSetEmail() {
7452
      return this.email != null;
7453
    }
7454
 
7455
    public void setEmailIsSet(boolean value) {
7456
      if (!value) {
7457
        this.email = null;
7458
      }
7459
    }
7460
 
7461
    public void setFieldValue(_Fields field, Object value) {
7462
      switch (field) {
7463
      case EMAIL:
7464
        if (value == null) {
7465
          unsetEmail();
7466
        } else {
7467
          setEmail((String)value);
7468
        }
7469
        break;
7470
 
7471
      }
7472
    }
7473
 
7474
    public Object getFieldValue(_Fields field) {
7475
      switch (field) {
7476
      case EMAIL:
7477
        return getEmail();
7478
 
7479
      }
7480
      throw new IllegalStateException();
7481
    }
7482
 
3430 rajveer 7483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7484
    public boolean isSet(_Fields field) {
7485
      if (field == null) {
7486
        throw new IllegalArgumentException();
7487
      }
1491 vikas 7488
 
7489
      switch (field) {
7490
      case EMAIL:
7491
        return isSetEmail();
7492
      }
7493
      throw new IllegalStateException();
7494
    }
7495
 
7496
    @Override
7497
    public boolean equals(Object that) {
7498
      if (that == null)
7499
        return false;
7500
      if (that instanceof getUserByEmail_args)
7501
        return this.equals((getUserByEmail_args)that);
7502
      return false;
7503
    }
7504
 
7505
    public boolean equals(getUserByEmail_args that) {
7506
      if (that == null)
7507
        return false;
7508
 
7509
      boolean this_present_email = true && this.isSetEmail();
7510
      boolean that_present_email = true && that.isSetEmail();
7511
      if (this_present_email || that_present_email) {
7512
        if (!(this_present_email && that_present_email))
7513
          return false;
7514
        if (!this.email.equals(that.email))
7515
          return false;
7516
      }
7517
 
7518
      return true;
7519
    }
7520
 
7521
    @Override
7522
    public int hashCode() {
7523
      return 0;
7524
    }
7525
 
7526
    public int compareTo(getUserByEmail_args other) {
7527
      if (!getClass().equals(other.getClass())) {
7528
        return getClass().getName().compareTo(other.getClass().getName());
7529
      }
7530
 
7531
      int lastComparison = 0;
7532
      getUserByEmail_args typedOther = (getUserByEmail_args)other;
7533
 
3430 rajveer 7534
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1491 vikas 7535
      if (lastComparison != 0) {
7536
        return lastComparison;
7537
      }
3430 rajveer 7538
      if (isSetEmail()) {
7539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
7540
        if (lastComparison != 0) {
7541
          return lastComparison;
7542
        }
1491 vikas 7543
      }
7544
      return 0;
7545
    }
7546
 
3430 rajveer 7547
    public _Fields fieldForId(int fieldId) {
7548
      return _Fields.findByThriftId(fieldId);
7549
    }
7550
 
7551
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7552
      org.apache.thrift.protocol.TField field;
1491 vikas 7553
      iprot.readStructBegin();
7554
      while (true)
7555
      {
7556
        field = iprot.readFieldBegin();
3430 rajveer 7557
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1491 vikas 7558
          break;
7559
        }
3430 rajveer 7560
        switch (field.id) {
7561
          case 1: // EMAIL
7562
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7563
              this.email = iprot.readString();
7564
            } else { 
7565
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7566
            }
7567
            break;
7568
          default:
7569
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491 vikas 7570
        }
3430 rajveer 7571
        iprot.readFieldEnd();
1491 vikas 7572
      }
7573
      iprot.readStructEnd();
7574
      validate();
7575
    }
7576
 
3430 rajveer 7577
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1491 vikas 7578
      validate();
7579
 
7580
      oprot.writeStructBegin(STRUCT_DESC);
7581
      if (this.email != null) {
7582
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
7583
        oprot.writeString(this.email);
7584
        oprot.writeFieldEnd();
7585
      }
7586
      oprot.writeFieldStop();
7587
      oprot.writeStructEnd();
7588
    }
7589
 
7590
    @Override
7591
    public String toString() {
7592
      StringBuilder sb = new StringBuilder("getUserByEmail_args(");
7593
      boolean first = true;
7594
 
7595
      sb.append("email:");
7596
      if (this.email == null) {
7597
        sb.append("null");
7598
      } else {
7599
        sb.append(this.email);
7600
      }
7601
      first = false;
7602
      sb.append(")");
7603
      return sb.toString();
7604
    }
7605
 
3430 rajveer 7606
    public void validate() throws org.apache.thrift.TException {
1491 vikas 7607
      // check for required fields
7608
    }
7609
 
3430 rajveer 7610
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7611
      try {
7612
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7613
      } catch (org.apache.thrift.TException te) {
7614
        throw new java.io.IOException(te);
7615
      }
7616
    }
7617
 
7618
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7619
      try {
7620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7621
      } catch (org.apache.thrift.TException te) {
7622
        throw new java.io.IOException(te);
7623
      }
7624
    }
7625
 
1491 vikas 7626
  }
7627
 
3430 rajveer 7628
  public static class getUserByEmail_result implements org.apache.thrift.TBase<getUserByEmail_result, getUserByEmail_result._Fields>, java.io.Serializable, Cloneable   {
7629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_result");
1491 vikas 7630
 
3430 rajveer 7631
    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);
7632
    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 7633
 
3430 rajveer 7634
    private User success; // required
7635
    private UserContextException ucex; // required
1491 vikas 7636
 
7637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1491 vikas 7639
      SUCCESS((short)0, "success"),
7640
      UCEX((short)1, "ucex");
7641
 
7642
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7643
 
7644
      static {
7645
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7646
          byName.put(field.getFieldName(), field);
7647
        }
7648
      }
7649
 
7650
      /**
7651
       * Find the _Fields constant that matches fieldId, or null if its not found.
7652
       */
7653
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7654
        switch(fieldId) {
7655
          case 0: // SUCCESS
7656
            return SUCCESS;
7657
          case 1: // UCEX
7658
            return UCEX;
7659
          default:
7660
            return null;
7661
        }
1491 vikas 7662
      }
7663
 
7664
      /**
7665
       * Find the _Fields constant that matches fieldId, throwing an exception
7666
       * if it is not found.
7667
       */
7668
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7669
        _Fields fields = findByThriftId(fieldId);
7670
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7671
        return fields;
7672
      }
7673
 
7674
      /**
7675
       * Find the _Fields constant that matches name, or null if its not found.
7676
       */
7677
      public static _Fields findByName(String name) {
7678
        return byName.get(name);
7679
      }
7680
 
7681
      private final short _thriftId;
7682
      private final String _fieldName;
7683
 
7684
      _Fields(short thriftId, String fieldName) {
7685
        _thriftId = thriftId;
7686
        _fieldName = fieldName;
7687
      }
7688
 
7689
      public short getThriftFieldId() {
7690
        return _thriftId;
7691
      }
7692
 
7693
      public String getFieldName() {
7694
        return _fieldName;
7695
      }
7696
    }
7697
 
7698
    // isset id assignments
7699
 
3430 rajveer 7700
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1491 vikas 7701
    static {
3430 rajveer 7702
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7703
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7704
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7705
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7707
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7708
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_result.class, metaDataMap);
1491 vikas 7709
    }
7710
 
7711
    public getUserByEmail_result() {
7712
    }
7713
 
7714
    public getUserByEmail_result(
7715
      User success,
7716
      UserContextException ucex)
7717
    {
7718
      this();
7719
      this.success = success;
7720
      this.ucex = ucex;
7721
    }
7722
 
7723
    /**
7724
     * Performs a deep copy on <i>other</i>.
7725
     */
7726
    public getUserByEmail_result(getUserByEmail_result other) {
7727
      if (other.isSetSuccess()) {
7728
        this.success = new User(other.success);
7729
      }
7730
      if (other.isSetUcex()) {
7731
        this.ucex = new UserContextException(other.ucex);
7732
      }
7733
    }
7734
 
7735
    public getUserByEmail_result deepCopy() {
7736
      return new getUserByEmail_result(this);
7737
    }
7738
 
3430 rajveer 7739
    @Override
7740
    public void clear() {
7741
      this.success = null;
7742
      this.ucex = null;
1491 vikas 7743
    }
7744
 
7745
    public User getSuccess() {
7746
      return this.success;
7747
    }
7748
 
3430 rajveer 7749
    public void setSuccess(User success) {
1491 vikas 7750
      this.success = success;
7751
    }
7752
 
7753
    public void unsetSuccess() {
7754
      this.success = null;
7755
    }
7756
 
3430 rajveer 7757
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1491 vikas 7758
    public boolean isSetSuccess() {
7759
      return this.success != null;
7760
    }
7761
 
7762
    public void setSuccessIsSet(boolean value) {
7763
      if (!value) {
7764
        this.success = null;
7765
      }
7766
    }
7767
 
7768
    public UserContextException getUcex() {
7769
      return this.ucex;
7770
    }
7771
 
3430 rajveer 7772
    public void setUcex(UserContextException ucex) {
1491 vikas 7773
      this.ucex = ucex;
7774
    }
7775
 
7776
    public void unsetUcex() {
7777
      this.ucex = null;
7778
    }
7779
 
3430 rajveer 7780
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
1491 vikas 7781
    public boolean isSetUcex() {
7782
      return this.ucex != null;
7783
    }
7784
 
7785
    public void setUcexIsSet(boolean value) {
7786
      if (!value) {
7787
        this.ucex = null;
7788
      }
7789
    }
7790
 
7791
    public void setFieldValue(_Fields field, Object value) {
7792
      switch (field) {
7793
      case SUCCESS:
7794
        if (value == null) {
7795
          unsetSuccess();
7796
        } else {
7797
          setSuccess((User)value);
7798
        }
7799
        break;
7800
 
7801
      case UCEX:
7802
        if (value == null) {
7803
          unsetUcex();
7804
        } else {
7805
          setUcex((UserContextException)value);
7806
        }
7807
        break;
7808
 
7809
      }
7810
    }
7811
 
7812
    public Object getFieldValue(_Fields field) {
7813
      switch (field) {
7814
      case SUCCESS:
7815
        return getSuccess();
7816
 
7817
      case UCEX:
7818
        return getUcex();
7819
 
7820
      }
7821
      throw new IllegalStateException();
7822
    }
7823
 
3430 rajveer 7824
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7825
    public boolean isSet(_Fields field) {
7826
      if (field == null) {
7827
        throw new IllegalArgumentException();
7828
      }
1491 vikas 7829
 
7830
      switch (field) {
7831
      case SUCCESS:
7832
        return isSetSuccess();
7833
      case UCEX:
7834
        return isSetUcex();
7835
      }
7836
      throw new IllegalStateException();
7837
    }
7838
 
7839
    @Override
7840
    public boolean equals(Object that) {
7841
      if (that == null)
7842
        return false;
7843
      if (that instanceof getUserByEmail_result)
7844
        return this.equals((getUserByEmail_result)that);
7845
      return false;
7846
    }
7847
 
7848
    public boolean equals(getUserByEmail_result that) {
7849
      if (that == null)
7850
        return false;
7851
 
7852
      boolean this_present_success = true && this.isSetSuccess();
7853
      boolean that_present_success = true && that.isSetSuccess();
7854
      if (this_present_success || that_present_success) {
7855
        if (!(this_present_success && that_present_success))
7856
          return false;
7857
        if (!this.success.equals(that.success))
7858
          return false;
7859
      }
7860
 
7861
      boolean this_present_ucex = true && this.isSetUcex();
7862
      boolean that_present_ucex = true && that.isSetUcex();
7863
      if (this_present_ucex || that_present_ucex) {
7864
        if (!(this_present_ucex && that_present_ucex))
7865
          return false;
7866
        if (!this.ucex.equals(that.ucex))
7867
          return false;
7868
      }
7869
 
7870
      return true;
7871
    }
7872
 
7873
    @Override
7874
    public int hashCode() {
7875
      return 0;
7876
    }
7877
 
7878
    public int compareTo(getUserByEmail_result other) {
7879
      if (!getClass().equals(other.getClass())) {
7880
        return getClass().getName().compareTo(other.getClass().getName());
7881
      }
7882
 
7883
      int lastComparison = 0;
7884
      getUserByEmail_result typedOther = (getUserByEmail_result)other;
7885
 
3430 rajveer 7886
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1491 vikas 7887
      if (lastComparison != 0) {
7888
        return lastComparison;
7889
      }
3430 rajveer 7890
      if (isSetSuccess()) {
7891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7892
        if (lastComparison != 0) {
7893
          return lastComparison;
7894
        }
1491 vikas 7895
      }
3430 rajveer 7896
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
1491 vikas 7897
      if (lastComparison != 0) {
7898
        return lastComparison;
7899
      }
3430 rajveer 7900
      if (isSetUcex()) {
7901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
7902
        if (lastComparison != 0) {
7903
          return lastComparison;
7904
        }
1491 vikas 7905
      }
7906
      return 0;
7907
    }
7908
 
3430 rajveer 7909
    public _Fields fieldForId(int fieldId) {
7910
      return _Fields.findByThriftId(fieldId);
7911
    }
7912
 
7913
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7914
      org.apache.thrift.protocol.TField field;
1491 vikas 7915
      iprot.readStructBegin();
7916
      while (true)
7917
      {
7918
        field = iprot.readFieldBegin();
3430 rajveer 7919
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1491 vikas 7920
          break;
7921
        }
3430 rajveer 7922
        switch (field.id) {
7923
          case 0: // SUCCESS
7924
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7925
              this.success = new User();
7926
              this.success.read(iprot);
7927
            } else { 
7928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7929
            }
7930
            break;
7931
          case 1: // UCEX
7932
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7933
              this.ucex = new UserContextException();
7934
              this.ucex.read(iprot);
7935
            } else { 
7936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7937
            }
7938
            break;
7939
          default:
7940
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491 vikas 7941
        }
3430 rajveer 7942
        iprot.readFieldEnd();
1491 vikas 7943
      }
7944
      iprot.readStructEnd();
7945
      validate();
7946
    }
7947
 
3430 rajveer 7948
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1491 vikas 7949
      oprot.writeStructBegin(STRUCT_DESC);
7950
 
7951
      if (this.isSetSuccess()) {
7952
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7953
        this.success.write(oprot);
7954
        oprot.writeFieldEnd();
7955
      } else if (this.isSetUcex()) {
7956
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
7957
        this.ucex.write(oprot);
7958
        oprot.writeFieldEnd();
7959
      }
7960
      oprot.writeFieldStop();
7961
      oprot.writeStructEnd();
7962
    }
7963
 
7964
    @Override
7965
    public String toString() {
7966
      StringBuilder sb = new StringBuilder("getUserByEmail_result(");
7967
      boolean first = true;
7968
 
7969
      sb.append("success:");
7970
      if (this.success == null) {
7971
        sb.append("null");
7972
      } else {
7973
        sb.append(this.success);
7974
      }
7975
      first = false;
7976
      if (!first) sb.append(", ");
7977
      sb.append("ucex:");
7978
      if (this.ucex == null) {
7979
        sb.append("null");
7980
      } else {
7981
        sb.append(this.ucex);
7982
      }
7983
      first = false;
7984
      sb.append(")");
7985
      return sb.toString();
7986
    }
7987
 
3430 rajveer 7988
    public void validate() throws org.apache.thrift.TException {
1491 vikas 7989
      // check for required fields
7990
    }
7991
 
3430 rajveer 7992
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7993
      try {
7994
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7995
      } catch (org.apache.thrift.TException te) {
7996
        throw new java.io.IOException(te);
7997
      }
7998
    }
7999
 
8000
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8001
      try {
8002
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8003
      } catch (org.apache.thrift.TException te) {
8004
        throw new java.io.IOException(te);
8005
      }
8006
    }
8007
 
1491 vikas 8008
  }
8009
 
3430 rajveer 8010
  public static class getUserByMobileNumber_args implements org.apache.thrift.TBase<getUserByMobileNumber_args, getUserByMobileNumber_args._Fields>, java.io.Serializable, Cloneable   {
8011
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_args");
3028 mandeep.dh 8012
 
3430 rajveer 8013
    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 8014
 
3430 rajveer 8015
    private long mobileNumber; // required
3028 mandeep.dh 8016
 
8017
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8018
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 8019
      MOBILE_NUMBER((short)1, "mobileNumber");
8020
 
8021
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8022
 
8023
      static {
8024
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8025
          byName.put(field.getFieldName(), field);
8026
        }
8027
      }
8028
 
8029
      /**
8030
       * Find the _Fields constant that matches fieldId, or null if its not found.
8031
       */
8032
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8033
        switch(fieldId) {
8034
          case 1: // MOBILE_NUMBER
8035
            return MOBILE_NUMBER;
8036
          default:
8037
            return null;
8038
        }
3028 mandeep.dh 8039
      }
8040
 
8041
      /**
8042
       * Find the _Fields constant that matches fieldId, throwing an exception
8043
       * if it is not found.
8044
       */
8045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8046
        _Fields fields = findByThriftId(fieldId);
8047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8048
        return fields;
8049
      }
8050
 
8051
      /**
8052
       * Find the _Fields constant that matches name, or null if its not found.
8053
       */
8054
      public static _Fields findByName(String name) {
8055
        return byName.get(name);
8056
      }
8057
 
8058
      private final short _thriftId;
8059
      private final String _fieldName;
8060
 
8061
      _Fields(short thriftId, String fieldName) {
8062
        _thriftId = thriftId;
8063
        _fieldName = fieldName;
8064
      }
8065
 
8066
      public short getThriftFieldId() {
8067
        return _thriftId;
8068
      }
8069
 
8070
      public String getFieldName() {
8071
        return _fieldName;
8072
      }
8073
    }
8074
 
8075
    // isset id assignments
8076
    private static final int __MOBILENUMBER_ISSET_ID = 0;
8077
    private BitSet __isset_bit_vector = new BitSet(1);
8078
 
3430 rajveer 8079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 8080
    static {
3430 rajveer 8081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8082
      tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8084
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8085
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_args.class, metaDataMap);
3028 mandeep.dh 8086
    }
8087
 
8088
    public getUserByMobileNumber_args() {
8089
    }
8090
 
8091
    public getUserByMobileNumber_args(
8092
      long mobileNumber)
8093
    {
8094
      this();
8095
      this.mobileNumber = mobileNumber;
8096
      setMobileNumberIsSet(true);
8097
    }
8098
 
8099
    /**
8100
     * Performs a deep copy on <i>other</i>.
8101
     */
8102
    public getUserByMobileNumber_args(getUserByMobileNumber_args other) {
8103
      __isset_bit_vector.clear();
8104
      __isset_bit_vector.or(other.__isset_bit_vector);
8105
      this.mobileNumber = other.mobileNumber;
8106
    }
8107
 
8108
    public getUserByMobileNumber_args deepCopy() {
8109
      return new getUserByMobileNumber_args(this);
8110
    }
8111
 
3430 rajveer 8112
    @Override
8113
    public void clear() {
8114
      setMobileNumberIsSet(false);
8115
      this.mobileNumber = 0;
3028 mandeep.dh 8116
    }
8117
 
8118
    public long getMobileNumber() {
8119
      return this.mobileNumber;
8120
    }
8121
 
3430 rajveer 8122
    public void setMobileNumber(long mobileNumber) {
3028 mandeep.dh 8123
      this.mobileNumber = mobileNumber;
8124
      setMobileNumberIsSet(true);
8125
    }
8126
 
8127
    public void unsetMobileNumber() {
8128
      __isset_bit_vector.clear(__MOBILENUMBER_ISSET_ID);
8129
    }
8130
 
3430 rajveer 8131
    /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8132
    public boolean isSetMobileNumber() {
8133
      return __isset_bit_vector.get(__MOBILENUMBER_ISSET_ID);
8134
    }
8135
 
8136
    public void setMobileNumberIsSet(boolean value) {
8137
      __isset_bit_vector.set(__MOBILENUMBER_ISSET_ID, value);
8138
    }
8139
 
8140
    public void setFieldValue(_Fields field, Object value) {
8141
      switch (field) {
8142
      case MOBILE_NUMBER:
8143
        if (value == null) {
8144
          unsetMobileNumber();
8145
        } else {
8146
          setMobileNumber((Long)value);
8147
        }
8148
        break;
8149
 
8150
      }
8151
    }
8152
 
8153
    public Object getFieldValue(_Fields field) {
8154
      switch (field) {
8155
      case MOBILE_NUMBER:
3430 rajveer 8156
        return Long.valueOf(getMobileNumber());
3028 mandeep.dh 8157
 
8158
      }
8159
      throw new IllegalStateException();
8160
    }
8161
 
3430 rajveer 8162
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8163
    public boolean isSet(_Fields field) {
8164
      if (field == null) {
8165
        throw new IllegalArgumentException();
8166
      }
3028 mandeep.dh 8167
 
8168
      switch (field) {
8169
      case MOBILE_NUMBER:
8170
        return isSetMobileNumber();
8171
      }
8172
      throw new IllegalStateException();
8173
    }
8174
 
8175
    @Override
8176
    public boolean equals(Object that) {
8177
      if (that == null)
8178
        return false;
8179
      if (that instanceof getUserByMobileNumber_args)
8180
        return this.equals((getUserByMobileNumber_args)that);
8181
      return false;
8182
    }
8183
 
8184
    public boolean equals(getUserByMobileNumber_args that) {
8185
      if (that == null)
8186
        return false;
8187
 
8188
      boolean this_present_mobileNumber = true;
8189
      boolean that_present_mobileNumber = true;
8190
      if (this_present_mobileNumber || that_present_mobileNumber) {
8191
        if (!(this_present_mobileNumber && that_present_mobileNumber))
8192
          return false;
8193
        if (this.mobileNumber != that.mobileNumber)
8194
          return false;
8195
      }
8196
 
8197
      return true;
8198
    }
8199
 
8200
    @Override
8201
    public int hashCode() {
8202
      return 0;
8203
    }
8204
 
8205
    public int compareTo(getUserByMobileNumber_args other) {
8206
      if (!getClass().equals(other.getClass())) {
8207
        return getClass().getName().compareTo(other.getClass().getName());
8208
      }
8209
 
8210
      int lastComparison = 0;
8211
      getUserByMobileNumber_args typedOther = (getUserByMobileNumber_args)other;
8212
 
3430 rajveer 8213
      lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
3028 mandeep.dh 8214
      if (lastComparison != 0) {
8215
        return lastComparison;
8216
      }
3430 rajveer 8217
      if (isSetMobileNumber()) {
8218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
8219
        if (lastComparison != 0) {
8220
          return lastComparison;
8221
        }
3028 mandeep.dh 8222
      }
8223
      return 0;
8224
    }
8225
 
3430 rajveer 8226
    public _Fields fieldForId(int fieldId) {
8227
      return _Fields.findByThriftId(fieldId);
8228
    }
8229
 
8230
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8231
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 8232
      iprot.readStructBegin();
8233
      while (true)
8234
      {
8235
        field = iprot.readFieldBegin();
3430 rajveer 8236
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 8237
          break;
8238
        }
3430 rajveer 8239
        switch (field.id) {
8240
          case 1: // MOBILE_NUMBER
8241
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8242
              this.mobileNumber = iprot.readI64();
8243
              setMobileNumberIsSet(true);
8244
            } else { 
8245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8246
            }
8247
            break;
8248
          default:
8249
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 8250
        }
3430 rajveer 8251
        iprot.readFieldEnd();
3028 mandeep.dh 8252
      }
8253
      iprot.readStructEnd();
8254
      validate();
8255
    }
8256
 
3430 rajveer 8257
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 8258
      validate();
8259
 
8260
      oprot.writeStructBegin(STRUCT_DESC);
8261
      oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
8262
      oprot.writeI64(this.mobileNumber);
8263
      oprot.writeFieldEnd();
8264
      oprot.writeFieldStop();
8265
      oprot.writeStructEnd();
8266
    }
8267
 
8268
    @Override
8269
    public String toString() {
8270
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_args(");
8271
      boolean first = true;
8272
 
8273
      sb.append("mobileNumber:");
8274
      sb.append(this.mobileNumber);
8275
      first = false;
8276
      sb.append(")");
8277
      return sb.toString();
8278
    }
8279
 
3430 rajveer 8280
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 8281
      // check for required fields
8282
    }
8283
 
3430 rajveer 8284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8285
      try {
8286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8287
      } catch (org.apache.thrift.TException te) {
8288
        throw new java.io.IOException(te);
8289
      }
8290
    }
8291
 
8292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8293
      try {
8294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8295
        __isset_bit_vector = new BitSet(1);
8296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8297
      } catch (org.apache.thrift.TException te) {
8298
        throw new java.io.IOException(te);
8299
      }
8300
    }
8301
 
3028 mandeep.dh 8302
  }
8303
 
3430 rajveer 8304
  public static class getUserByMobileNumber_result implements org.apache.thrift.TBase<getUserByMobileNumber_result, getUserByMobileNumber_result._Fields>, java.io.Serializable, Cloneable   {
8305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_result");
3028 mandeep.dh 8306
 
3430 rajveer 8307
    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);
8308
    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 8309
 
3430 rajveer 8310
    private User success; // required
8311
    private UserContextException ucex; // required
3028 mandeep.dh 8312
 
8313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 8315
      SUCCESS((short)0, "success"),
8316
      UCEX((short)1, "ucex");
8317
 
8318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8319
 
8320
      static {
8321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8322
          byName.put(field.getFieldName(), field);
8323
        }
8324
      }
8325
 
8326
      /**
8327
       * Find the _Fields constant that matches fieldId, or null if its not found.
8328
       */
8329
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8330
        switch(fieldId) {
8331
          case 0: // SUCCESS
8332
            return SUCCESS;
8333
          case 1: // UCEX
8334
            return UCEX;
8335
          default:
8336
            return null;
8337
        }
3028 mandeep.dh 8338
      }
8339
 
8340
      /**
8341
       * Find the _Fields constant that matches fieldId, throwing an exception
8342
       * if it is not found.
8343
       */
8344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8345
        _Fields fields = findByThriftId(fieldId);
8346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8347
        return fields;
8348
      }
8349
 
8350
      /**
8351
       * Find the _Fields constant that matches name, or null if its not found.
8352
       */
8353
      public static _Fields findByName(String name) {
8354
        return byName.get(name);
8355
      }
8356
 
8357
      private final short _thriftId;
8358
      private final String _fieldName;
8359
 
8360
      _Fields(short thriftId, String fieldName) {
8361
        _thriftId = thriftId;
8362
        _fieldName = fieldName;
8363
      }
8364
 
8365
      public short getThriftFieldId() {
8366
        return _thriftId;
8367
      }
8368
 
8369
      public String getFieldName() {
8370
        return _fieldName;
8371
      }
8372
    }
8373
 
8374
    // isset id assignments
8375
 
3430 rajveer 8376
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 8377
    static {
3430 rajveer 8378
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8379
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8380
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8381
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_result.class, metaDataMap);
3028 mandeep.dh 8385
    }
8386
 
8387
    public getUserByMobileNumber_result() {
8388
    }
8389
 
8390
    public getUserByMobileNumber_result(
8391
      User success,
8392
      UserContextException ucex)
8393
    {
8394
      this();
8395
      this.success = success;
8396
      this.ucex = ucex;
8397
    }
8398
 
8399
    /**
8400
     * Performs a deep copy on <i>other</i>.
8401
     */
8402
    public getUserByMobileNumber_result(getUserByMobileNumber_result other) {
8403
      if (other.isSetSuccess()) {
8404
        this.success = new User(other.success);
8405
      }
8406
      if (other.isSetUcex()) {
8407
        this.ucex = new UserContextException(other.ucex);
8408
      }
8409
    }
8410
 
8411
    public getUserByMobileNumber_result deepCopy() {
8412
      return new getUserByMobileNumber_result(this);
8413
    }
8414
 
3430 rajveer 8415
    @Override
8416
    public void clear() {
8417
      this.success = null;
8418
      this.ucex = null;
3028 mandeep.dh 8419
    }
8420
 
8421
    public User getSuccess() {
8422
      return this.success;
8423
    }
8424
 
3430 rajveer 8425
    public void setSuccess(User success) {
3028 mandeep.dh 8426
      this.success = success;
8427
    }
8428
 
8429
    public void unsetSuccess() {
8430
      this.success = null;
8431
    }
8432
 
3430 rajveer 8433
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8434
    public boolean isSetSuccess() {
8435
      return this.success != null;
8436
    }
8437
 
8438
    public void setSuccessIsSet(boolean value) {
8439
      if (!value) {
8440
        this.success = null;
8441
      }
8442
    }
8443
 
8444
    public UserContextException getUcex() {
8445
      return this.ucex;
8446
    }
8447
 
3430 rajveer 8448
    public void setUcex(UserContextException ucex) {
3028 mandeep.dh 8449
      this.ucex = ucex;
8450
    }
8451
 
8452
    public void unsetUcex() {
8453
      this.ucex = null;
8454
    }
8455
 
3430 rajveer 8456
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8457
    public boolean isSetUcex() {
8458
      return this.ucex != null;
8459
    }
8460
 
8461
    public void setUcexIsSet(boolean value) {
8462
      if (!value) {
8463
        this.ucex = null;
8464
      }
8465
    }
8466
 
8467
    public void setFieldValue(_Fields field, Object value) {
8468
      switch (field) {
8469
      case SUCCESS:
8470
        if (value == null) {
8471
          unsetSuccess();
8472
        } else {
8473
          setSuccess((User)value);
8474
        }
8475
        break;
8476
 
8477
      case UCEX:
8478
        if (value == null) {
8479
          unsetUcex();
8480
        } else {
8481
          setUcex((UserContextException)value);
8482
        }
8483
        break;
8484
 
8485
      }
8486
    }
8487
 
8488
    public Object getFieldValue(_Fields field) {
8489
      switch (field) {
8490
      case SUCCESS:
8491
        return getSuccess();
8492
 
8493
      case UCEX:
8494
        return getUcex();
8495
 
8496
      }
8497
      throw new IllegalStateException();
8498
    }
8499
 
3430 rajveer 8500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8501
    public boolean isSet(_Fields field) {
8502
      if (field == null) {
8503
        throw new IllegalArgumentException();
8504
      }
3028 mandeep.dh 8505
 
8506
      switch (field) {
8507
      case SUCCESS:
8508
        return isSetSuccess();
8509
      case UCEX:
8510
        return isSetUcex();
8511
      }
8512
      throw new IllegalStateException();
8513
    }
8514
 
8515
    @Override
8516
    public boolean equals(Object that) {
8517
      if (that == null)
8518
        return false;
8519
      if (that instanceof getUserByMobileNumber_result)
8520
        return this.equals((getUserByMobileNumber_result)that);
8521
      return false;
8522
    }
8523
 
8524
    public boolean equals(getUserByMobileNumber_result that) {
8525
      if (that == null)
8526
        return false;
8527
 
8528
      boolean this_present_success = true && this.isSetSuccess();
8529
      boolean that_present_success = true && that.isSetSuccess();
8530
      if (this_present_success || that_present_success) {
8531
        if (!(this_present_success && that_present_success))
8532
          return false;
8533
        if (!this.success.equals(that.success))
8534
          return false;
8535
      }
8536
 
8537
      boolean this_present_ucex = true && this.isSetUcex();
8538
      boolean that_present_ucex = true && that.isSetUcex();
8539
      if (this_present_ucex || that_present_ucex) {
8540
        if (!(this_present_ucex && that_present_ucex))
8541
          return false;
8542
        if (!this.ucex.equals(that.ucex))
8543
          return false;
8544
      }
8545
 
8546
      return true;
8547
    }
8548
 
8549
    @Override
8550
    public int hashCode() {
8551
      return 0;
8552
    }
8553
 
8554
    public int compareTo(getUserByMobileNumber_result other) {
8555
      if (!getClass().equals(other.getClass())) {
8556
        return getClass().getName().compareTo(other.getClass().getName());
8557
      }
8558
 
8559
      int lastComparison = 0;
8560
      getUserByMobileNumber_result typedOther = (getUserByMobileNumber_result)other;
8561
 
3430 rajveer 8562
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 8563
      if (lastComparison != 0) {
8564
        return lastComparison;
8565
      }
3430 rajveer 8566
      if (isSetSuccess()) {
8567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8568
        if (lastComparison != 0) {
8569
          return lastComparison;
8570
        }
3028 mandeep.dh 8571
      }
3430 rajveer 8572
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
3028 mandeep.dh 8573
      if (lastComparison != 0) {
8574
        return lastComparison;
8575
      }
3430 rajveer 8576
      if (isSetUcex()) {
8577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
8578
        if (lastComparison != 0) {
8579
          return lastComparison;
8580
        }
3028 mandeep.dh 8581
      }
8582
      return 0;
8583
    }
8584
 
3430 rajveer 8585
    public _Fields fieldForId(int fieldId) {
8586
      return _Fields.findByThriftId(fieldId);
8587
    }
8588
 
8589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8590
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 8591
      iprot.readStructBegin();
8592
      while (true)
8593
      {
8594
        field = iprot.readFieldBegin();
3430 rajveer 8595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 8596
          break;
8597
        }
3430 rajveer 8598
        switch (field.id) {
8599
          case 0: // SUCCESS
8600
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8601
              this.success = new User();
8602
              this.success.read(iprot);
8603
            } else { 
8604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8605
            }
8606
            break;
8607
          case 1: // UCEX
8608
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8609
              this.ucex = new UserContextException();
8610
              this.ucex.read(iprot);
8611
            } else { 
8612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8613
            }
8614
            break;
8615
          default:
8616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 8617
        }
3430 rajveer 8618
        iprot.readFieldEnd();
3028 mandeep.dh 8619
      }
8620
      iprot.readStructEnd();
8621
      validate();
8622
    }
8623
 
3430 rajveer 8624
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 8625
      oprot.writeStructBegin(STRUCT_DESC);
8626
 
8627
      if (this.isSetSuccess()) {
8628
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8629
        this.success.write(oprot);
8630
        oprot.writeFieldEnd();
8631
      } else if (this.isSetUcex()) {
8632
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
8633
        this.ucex.write(oprot);
8634
        oprot.writeFieldEnd();
8635
      }
8636
      oprot.writeFieldStop();
8637
      oprot.writeStructEnd();
8638
    }
8639
 
8640
    @Override
8641
    public String toString() {
8642
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_result(");
8643
      boolean first = true;
8644
 
8645
      sb.append("success:");
8646
      if (this.success == null) {
8647
        sb.append("null");
8648
      } else {
8649
        sb.append(this.success);
8650
      }
8651
      first = false;
8652
      if (!first) sb.append(", ");
8653
      sb.append("ucex:");
8654
      if (this.ucex == null) {
8655
        sb.append("null");
8656
      } else {
8657
        sb.append(this.ucex);
8658
      }
8659
      first = false;
8660
      sb.append(")");
8661
      return sb.toString();
8662
    }
8663
 
3430 rajveer 8664
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 8665
      // check for required fields
8666
    }
8667
 
3430 rajveer 8668
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8669
      try {
8670
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8671
      } catch (org.apache.thrift.TException te) {
8672
        throw new java.io.IOException(te);
8673
      }
8674
    }
8675
 
8676
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8677
      try {
8678
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8679
      } catch (org.apache.thrift.TException te) {
8680
        throw new java.io.IOException(te);
8681
      }
8682
    }
8683
 
3028 mandeep.dh 8684
  }
8685
 
3430 rajveer 8686
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
8687
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
48 ashish 8688
 
3430 rajveer 8689
    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 8690
 
3430 rajveer 8691
    private User user; // required
48 ashish 8692
 
8693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8694
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 8695
      USER((short)1, "user");
48 ashish 8696
 
8697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8698
 
8699
      static {
8700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8701
          byName.put(field.getFieldName(), field);
8702
        }
8703
      }
8704
 
8705
      /**
8706
       * Find the _Fields constant that matches fieldId, or null if its not found.
8707
       */
8708
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8709
        switch(fieldId) {
8710
          case 1: // USER
8711
            return USER;
8712
          default:
8713
            return null;
8714
        }
48 ashish 8715
      }
8716
 
8717
      /**
8718
       * Find the _Fields constant that matches fieldId, throwing an exception
8719
       * if it is not found.
8720
       */
8721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8722
        _Fields fields = findByThriftId(fieldId);
8723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8724
        return fields;
8725
      }
8726
 
8727
      /**
8728
       * Find the _Fields constant that matches name, or null if its not found.
8729
       */
8730
      public static _Fields findByName(String name) {
8731
        return byName.get(name);
8732
      }
8733
 
8734
      private final short _thriftId;
8735
      private final String _fieldName;
8736
 
8737
      _Fields(short thriftId, String fieldName) {
8738
        _thriftId = thriftId;
8739
        _fieldName = fieldName;
8740
      }
8741
 
8742
      public short getThriftFieldId() {
8743
        return _thriftId;
8744
      }
8745
 
8746
      public String getFieldName() {
8747
        return _fieldName;
8748
      }
8749
    }
8750
 
8751
    // isset id assignments
8752
 
3430 rajveer 8753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 8754
    static {
3430 rajveer 8755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8756
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8757
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8758
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8759
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
48 ashish 8760
    }
8761
 
553 chandransh 8762
    public createUser_args() {
48 ashish 8763
    }
8764
 
553 chandransh 8765
    public createUser_args(
8766
      User user)
48 ashish 8767
    {
8768
      this();
553 chandransh 8769
      this.user = user;
48 ashish 8770
    }
8771
 
8772
    /**
8773
     * Performs a deep copy on <i>other</i>.
8774
     */
553 chandransh 8775
    public createUser_args(createUser_args other) {
8776
      if (other.isSetUser()) {
8777
        this.user = new User(other.user);
48 ashish 8778
      }
8779
    }
8780
 
553 chandransh 8781
    public createUser_args deepCopy() {
8782
      return new createUser_args(this);
48 ashish 8783
    }
8784
 
3430 rajveer 8785
    @Override
8786
    public void clear() {
8787
      this.user = null;
48 ashish 8788
    }
8789
 
553 chandransh 8790
    public User getUser() {
8791
      return this.user;
48 ashish 8792
    }
8793
 
3430 rajveer 8794
    public void setUser(User user) {
553 chandransh 8795
      this.user = user;
48 ashish 8796
    }
8797
 
553 chandransh 8798
    public void unsetUser() {
8799
      this.user = null;
48 ashish 8800
    }
8801
 
3430 rajveer 8802
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
553 chandransh 8803
    public boolean isSetUser() {
8804
      return this.user != null;
48 ashish 8805
    }
8806
 
553 chandransh 8807
    public void setUserIsSet(boolean value) {
48 ashish 8808
      if (!value) {
553 chandransh 8809
        this.user = null;
48 ashish 8810
      }
8811
    }
8812
 
8813
    public void setFieldValue(_Fields field, Object value) {
8814
      switch (field) {
553 chandransh 8815
      case USER:
48 ashish 8816
        if (value == null) {
553 chandransh 8817
          unsetUser();
48 ashish 8818
        } else {
553 chandransh 8819
          setUser((User)value);
48 ashish 8820
        }
8821
        break;
8822
 
8823
      }
8824
    }
8825
 
8826
    public Object getFieldValue(_Fields field) {
8827
      switch (field) {
553 chandransh 8828
      case USER:
8829
        return getUser();
48 ashish 8830
 
8831
      }
8832
      throw new IllegalStateException();
8833
    }
8834
 
3430 rajveer 8835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8836
    public boolean isSet(_Fields field) {
8837
      if (field == null) {
8838
        throw new IllegalArgumentException();
8839
      }
48 ashish 8840
 
8841
      switch (field) {
553 chandransh 8842
      case USER:
8843
        return isSetUser();
48 ashish 8844
      }
8845
      throw new IllegalStateException();
8846
    }
8847
 
8848
    @Override
8849
    public boolean equals(Object that) {
8850
      if (that == null)
8851
        return false;
553 chandransh 8852
      if (that instanceof createUser_args)
8853
        return this.equals((createUser_args)that);
48 ashish 8854
      return false;
8855
    }
8856
 
553 chandransh 8857
    public boolean equals(createUser_args that) {
48 ashish 8858
      if (that == null)
8859
        return false;
8860
 
553 chandransh 8861
      boolean this_present_user = true && this.isSetUser();
8862
      boolean that_present_user = true && that.isSetUser();
8863
      if (this_present_user || that_present_user) {
8864
        if (!(this_present_user && that_present_user))
48 ashish 8865
          return false;
553 chandransh 8866
        if (!this.user.equals(that.user))
48 ashish 8867
          return false;
8868
      }
8869
 
8870
      return true;
8871
    }
8872
 
8873
    @Override
8874
    public int hashCode() {
8875
      return 0;
8876
    }
8877
 
571 rajveer 8878
    public int compareTo(createUser_args other) {
8879
      if (!getClass().equals(other.getClass())) {
8880
        return getClass().getName().compareTo(other.getClass().getName());
8881
      }
8882
 
8883
      int lastComparison = 0;
8884
      createUser_args typedOther = (createUser_args)other;
8885
 
3430 rajveer 8886
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
571 rajveer 8887
      if (lastComparison != 0) {
8888
        return lastComparison;
8889
      }
3430 rajveer 8890
      if (isSetUser()) {
8891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
8892
        if (lastComparison != 0) {
8893
          return lastComparison;
8894
        }
571 rajveer 8895
      }
8896
      return 0;
8897
    }
8898
 
3430 rajveer 8899
    public _Fields fieldForId(int fieldId) {
8900
      return _Fields.findByThriftId(fieldId);
8901
    }
8902
 
8903
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8904
      org.apache.thrift.protocol.TField field;
48 ashish 8905
      iprot.readStructBegin();
8906
      while (true)
8907
      {
8908
        field = iprot.readFieldBegin();
3430 rajveer 8909
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 8910
          break;
8911
        }
3430 rajveer 8912
        switch (field.id) {
8913
          case 1: // USER
8914
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8915
              this.user = new User();
8916
              this.user.read(iprot);
8917
            } else { 
8918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8919
            }
8920
            break;
8921
          default:
8922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 8923
        }
3430 rajveer 8924
        iprot.readFieldEnd();
48 ashish 8925
      }
8926
      iprot.readStructEnd();
8927
      validate();
8928
    }
8929
 
3430 rajveer 8930
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 8931
      validate();
8932
 
8933
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 8934
      if (this.user != null) {
8935
        oprot.writeFieldBegin(USER_FIELD_DESC);
8936
        this.user.write(oprot);
48 ashish 8937
        oprot.writeFieldEnd();
8938
      }
8939
      oprot.writeFieldStop();
8940
      oprot.writeStructEnd();
8941
    }
8942
 
8943
    @Override
8944
    public String toString() {
553 chandransh 8945
      StringBuilder sb = new StringBuilder("createUser_args(");
48 ashish 8946
      boolean first = true;
8947
 
553 chandransh 8948
      sb.append("user:");
8949
      if (this.user == null) {
48 ashish 8950
        sb.append("null");
8951
      } else {
553 chandransh 8952
        sb.append(this.user);
48 ashish 8953
      }
8954
      first = false;
8955
      sb.append(")");
8956
      return sb.toString();
8957
    }
8958
 
3430 rajveer 8959
    public void validate() throws org.apache.thrift.TException {
48 ashish 8960
      // check for required fields
8961
    }
8962
 
3430 rajveer 8963
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8964
      try {
8965
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8966
      } catch (org.apache.thrift.TException te) {
8967
        throw new java.io.IOException(te);
8968
      }
8969
    }
8970
 
8971
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8972
      try {
8973
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8974
      } catch (org.apache.thrift.TException te) {
8975
        throw new java.io.IOException(te);
8976
      }
8977
    }
8978
 
48 ashish 8979
  }
8980
 
3430 rajveer 8981
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
8982
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
48 ashish 8983
 
3430 rajveer 8984
    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);
8985
    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 8986
 
3430 rajveer 8987
    private User success; // required
8988
    private UserContextException ucex; // required
48 ashish 8989
 
8990
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8991
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 8992
      SUCCESS((short)0, "success"),
553 chandransh 8993
      UCEX((short)1, "ucex");
48 ashish 8994
 
8995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8996
 
8997
      static {
8998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8999
          byName.put(field.getFieldName(), field);
9000
        }
9001
      }
9002
 
9003
      /**
9004
       * Find the _Fields constant that matches fieldId, or null if its not found.
9005
       */
9006
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9007
        switch(fieldId) {
9008
          case 0: // SUCCESS
9009
            return SUCCESS;
9010
          case 1: // UCEX
9011
            return UCEX;
9012
          default:
9013
            return null;
9014
        }
48 ashish 9015
      }
9016
 
9017
      /**
9018
       * Find the _Fields constant that matches fieldId, throwing an exception
9019
       * if it is not found.
9020
       */
9021
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9022
        _Fields fields = findByThriftId(fieldId);
9023
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9024
        return fields;
9025
      }
9026
 
9027
      /**
9028
       * Find the _Fields constant that matches name, or null if its not found.
9029
       */
9030
      public static _Fields findByName(String name) {
9031
        return byName.get(name);
9032
      }
9033
 
9034
      private final short _thriftId;
9035
      private final String _fieldName;
9036
 
9037
      _Fields(short thriftId, String fieldName) {
9038
        _thriftId = thriftId;
9039
        _fieldName = fieldName;
9040
      }
9041
 
9042
      public short getThriftFieldId() {
9043
        return _thriftId;
9044
      }
9045
 
9046
      public String getFieldName() {
9047
        return _fieldName;
9048
      }
9049
    }
9050
 
9051
    // isset id assignments
9052
 
3430 rajveer 9053
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9054
    static {
3430 rajveer 9055
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9056
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9057
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9058
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
48 ashish 9062
    }
9063
 
553 chandransh 9064
    public createUser_result() {
48 ashish 9065
    }
9066
 
553 chandransh 9067
    public createUser_result(
9068
      User success,
9069
      UserContextException ucex)
48 ashish 9070
    {
9071
      this();
9072
      this.success = success;
553 chandransh 9073
      this.ucex = ucex;
48 ashish 9074
    }
9075
 
9076
    /**
9077
     * Performs a deep copy on <i>other</i>.
9078
     */
553 chandransh 9079
    public createUser_result(createUser_result other) {
48 ashish 9080
      if (other.isSetSuccess()) {
553 chandransh 9081
        this.success = new User(other.success);
48 ashish 9082
      }
553 chandransh 9083
      if (other.isSetUcex()) {
9084
        this.ucex = new UserContextException(other.ucex);
48 ashish 9085
      }
9086
    }
9087
 
553 chandransh 9088
    public createUser_result deepCopy() {
9089
      return new createUser_result(this);
48 ashish 9090
    }
9091
 
3430 rajveer 9092
    @Override
9093
    public void clear() {
9094
      this.success = null;
9095
      this.ucex = null;
48 ashish 9096
    }
9097
 
553 chandransh 9098
    public User getSuccess() {
48 ashish 9099
      return this.success;
9100
    }
9101
 
3430 rajveer 9102
    public void setSuccess(User success) {
48 ashish 9103
      this.success = success;
9104
    }
9105
 
9106
    public void unsetSuccess() {
9107
      this.success = null;
9108
    }
9109
 
3430 rajveer 9110
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 9111
    public boolean isSetSuccess() {
9112
      return this.success != null;
9113
    }
9114
 
9115
    public void setSuccessIsSet(boolean value) {
9116
      if (!value) {
9117
        this.success = null;
9118
      }
9119
    }
9120
 
553 chandransh 9121
    public UserContextException getUcex() {
9122
      return this.ucex;
48 ashish 9123
    }
9124
 
3430 rajveer 9125
    public void setUcex(UserContextException ucex) {
553 chandransh 9126
      this.ucex = ucex;
48 ashish 9127
    }
9128
 
553 chandransh 9129
    public void unsetUcex() {
9130
      this.ucex = null;
48 ashish 9131
    }
9132
 
3430 rajveer 9133
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 9134
    public boolean isSetUcex() {
9135
      return this.ucex != null;
48 ashish 9136
    }
9137
 
553 chandransh 9138
    public void setUcexIsSet(boolean value) {
48 ashish 9139
      if (!value) {
553 chandransh 9140
        this.ucex = null;
48 ashish 9141
      }
9142
    }
9143
 
9144
    public void setFieldValue(_Fields field, Object value) {
9145
      switch (field) {
9146
      case SUCCESS:
9147
        if (value == null) {
9148
          unsetSuccess();
9149
        } else {
553 chandransh 9150
          setSuccess((User)value);
48 ashish 9151
        }
9152
        break;
9153
 
553 chandransh 9154
      case UCEX:
48 ashish 9155
        if (value == null) {
553 chandransh 9156
          unsetUcex();
48 ashish 9157
        } else {
553 chandransh 9158
          setUcex((UserContextException)value);
48 ashish 9159
        }
9160
        break;
9161
 
9162
      }
9163
    }
9164
 
9165
    public Object getFieldValue(_Fields field) {
9166
      switch (field) {
9167
      case SUCCESS:
9168
        return getSuccess();
9169
 
553 chandransh 9170
      case UCEX:
9171
        return getUcex();
48 ashish 9172
 
9173
      }
9174
      throw new IllegalStateException();
9175
    }
9176
 
3430 rajveer 9177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9178
    public boolean isSet(_Fields field) {
9179
      if (field == null) {
9180
        throw new IllegalArgumentException();
9181
      }
48 ashish 9182
 
9183
      switch (field) {
9184
      case SUCCESS:
9185
        return isSetSuccess();
553 chandransh 9186
      case UCEX:
9187
        return isSetUcex();
48 ashish 9188
      }
9189
      throw new IllegalStateException();
9190
    }
9191
 
9192
    @Override
9193
    public boolean equals(Object that) {
9194
      if (that == null)
9195
        return false;
553 chandransh 9196
      if (that instanceof createUser_result)
9197
        return this.equals((createUser_result)that);
48 ashish 9198
      return false;
9199
    }
9200
 
553 chandransh 9201
    public boolean equals(createUser_result that) {
48 ashish 9202
      if (that == null)
9203
        return false;
9204
 
9205
      boolean this_present_success = true && this.isSetSuccess();
9206
      boolean that_present_success = true && that.isSetSuccess();
9207
      if (this_present_success || that_present_success) {
9208
        if (!(this_present_success && that_present_success))
9209
          return false;
9210
        if (!this.success.equals(that.success))
9211
          return false;
9212
      }
9213
 
553 chandransh 9214
      boolean this_present_ucex = true && this.isSetUcex();
9215
      boolean that_present_ucex = true && that.isSetUcex();
9216
      if (this_present_ucex || that_present_ucex) {
9217
        if (!(this_present_ucex && that_present_ucex))
48 ashish 9218
          return false;
553 chandransh 9219
        if (!this.ucex.equals(that.ucex))
48 ashish 9220
          return false;
9221
      }
9222
 
9223
      return true;
9224
    }
9225
 
9226
    @Override
9227
    public int hashCode() {
9228
      return 0;
9229
    }
9230
 
571 rajveer 9231
    public int compareTo(createUser_result other) {
9232
      if (!getClass().equals(other.getClass())) {
9233
        return getClass().getName().compareTo(other.getClass().getName());
9234
      }
9235
 
9236
      int lastComparison = 0;
9237
      createUser_result typedOther = (createUser_result)other;
9238
 
3430 rajveer 9239
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 9240
      if (lastComparison != 0) {
9241
        return lastComparison;
9242
      }
3430 rajveer 9243
      if (isSetSuccess()) {
9244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9245
        if (lastComparison != 0) {
9246
          return lastComparison;
9247
        }
571 rajveer 9248
      }
3430 rajveer 9249
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 9250
      if (lastComparison != 0) {
9251
        return lastComparison;
9252
      }
3430 rajveer 9253
      if (isSetUcex()) {
9254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
9255
        if (lastComparison != 0) {
9256
          return lastComparison;
9257
        }
571 rajveer 9258
      }
9259
      return 0;
9260
    }
9261
 
3430 rajveer 9262
    public _Fields fieldForId(int fieldId) {
9263
      return _Fields.findByThriftId(fieldId);
9264
    }
9265
 
9266
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9267
      org.apache.thrift.protocol.TField field;
48 ashish 9268
      iprot.readStructBegin();
9269
      while (true)
9270
      {
9271
        field = iprot.readFieldBegin();
3430 rajveer 9272
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9273
          break;
9274
        }
3430 rajveer 9275
        switch (field.id) {
9276
          case 0: // SUCCESS
9277
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9278
              this.success = new User();
9279
              this.success.read(iprot);
9280
            } else { 
9281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9282
            }
9283
            break;
9284
          case 1: // UCEX
9285
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9286
              this.ucex = new UserContextException();
9287
              this.ucex.read(iprot);
9288
            } else { 
9289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9290
            }
9291
            break;
9292
          default:
9293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9294
        }
3430 rajveer 9295
        iprot.readFieldEnd();
48 ashish 9296
      }
9297
      iprot.readStructEnd();
9298
      validate();
9299
    }
9300
 
3430 rajveer 9301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9302
      oprot.writeStructBegin(STRUCT_DESC);
9303
 
9304
      if (this.isSetSuccess()) {
9305
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9306
        this.success.write(oprot);
9307
        oprot.writeFieldEnd();
553 chandransh 9308
      } else if (this.isSetUcex()) {
9309
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
9310
        this.ucex.write(oprot);
48 ashish 9311
        oprot.writeFieldEnd();
9312
      }
9313
      oprot.writeFieldStop();
9314
      oprot.writeStructEnd();
9315
    }
9316
 
9317
    @Override
9318
    public String toString() {
553 chandransh 9319
      StringBuilder sb = new StringBuilder("createUser_result(");
48 ashish 9320
      boolean first = true;
9321
 
9322
      sb.append("success:");
9323
      if (this.success == null) {
9324
        sb.append("null");
9325
      } else {
9326
        sb.append(this.success);
9327
      }
9328
      first = false;
9329
      if (!first) sb.append(", ");
553 chandransh 9330
      sb.append("ucex:");
9331
      if (this.ucex == null) {
48 ashish 9332
        sb.append("null");
9333
      } else {
553 chandransh 9334
        sb.append(this.ucex);
48 ashish 9335
      }
9336
      first = false;
9337
      sb.append(")");
9338
      return sb.toString();
9339
    }
9340
 
3430 rajveer 9341
    public void validate() throws org.apache.thrift.TException {
48 ashish 9342
      // check for required fields
9343
    }
9344
 
3430 rajveer 9345
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9346
      try {
9347
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9348
      } catch (org.apache.thrift.TException te) {
9349
        throw new java.io.IOException(te);
9350
      }
9351
    }
9352
 
9353
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9354
      try {
9355
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9356
      } catch (org.apache.thrift.TException te) {
9357
        throw new java.io.IOException(te);
9358
      }
9359
    }
9360
 
48 ashish 9361
  }
9362
 
3430 rajveer 9363
  public static class updateUser_args implements org.apache.thrift.TBase<updateUser_args, updateUser_args._Fields>, java.io.Serializable, Cloneable   {
9364
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_args");
48 ashish 9365
 
3430 rajveer 9366
    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 9367
 
3430 rajveer 9368
    private User user; // required
48 ashish 9369
 
9370
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9371
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 9372
      USER((short)1, "user");
48 ashish 9373
 
9374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9375
 
9376
      static {
9377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9378
          byName.put(field.getFieldName(), field);
9379
        }
9380
      }
9381
 
9382
      /**
9383
       * Find the _Fields constant that matches fieldId, or null if its not found.
9384
       */
9385
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9386
        switch(fieldId) {
9387
          case 1: // USER
9388
            return USER;
9389
          default:
9390
            return null;
9391
        }
48 ashish 9392
      }
9393
 
9394
      /**
9395
       * Find the _Fields constant that matches fieldId, throwing an exception
9396
       * if it is not found.
9397
       */
9398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9399
        _Fields fields = findByThriftId(fieldId);
9400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9401
        return fields;
9402
      }
9403
 
9404
      /**
9405
       * Find the _Fields constant that matches name, or null if its not found.
9406
       */
9407
      public static _Fields findByName(String name) {
9408
        return byName.get(name);
9409
      }
9410
 
9411
      private final short _thriftId;
9412
      private final String _fieldName;
9413
 
9414
      _Fields(short thriftId, String fieldName) {
9415
        _thriftId = thriftId;
9416
        _fieldName = fieldName;
9417
      }
9418
 
9419
      public short getThriftFieldId() {
9420
        return _thriftId;
9421
      }
9422
 
9423
      public String getFieldName() {
9424
        return _fieldName;
9425
      }
9426
    }
9427
 
9428
    // isset id assignments
9429
 
3430 rajveer 9430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9431
    static {
3430 rajveer 9432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9433
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9434
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9435
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9436
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_args.class, metaDataMap);
48 ashish 9437
    }
9438
 
553 chandransh 9439
    public updateUser_args() {
48 ashish 9440
    }
9441
 
553 chandransh 9442
    public updateUser_args(
9443
      User user)
48 ashish 9444
    {
9445
      this();
553 chandransh 9446
      this.user = user;
48 ashish 9447
    }
9448
 
9449
    /**
9450
     * Performs a deep copy on <i>other</i>.
9451
     */
553 chandransh 9452
    public updateUser_args(updateUser_args other) {
9453
      if (other.isSetUser()) {
9454
        this.user = new User(other.user);
9455
      }
48 ashish 9456
    }
9457
 
553 chandransh 9458
    public updateUser_args deepCopy() {
9459
      return new updateUser_args(this);
48 ashish 9460
    }
9461
 
3430 rajveer 9462
    @Override
9463
    public void clear() {
9464
      this.user = null;
48 ashish 9465
    }
9466
 
553 chandransh 9467
    public User getUser() {
9468
      return this.user;
48 ashish 9469
    }
9470
 
3430 rajveer 9471
    public void setUser(User user) {
553 chandransh 9472
      this.user = user;
48 ashish 9473
    }
9474
 
553 chandransh 9475
    public void unsetUser() {
9476
      this.user = null;
48 ashish 9477
    }
9478
 
3430 rajveer 9479
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
553 chandransh 9480
    public boolean isSetUser() {
9481
      return this.user != null;
48 ashish 9482
    }
9483
 
553 chandransh 9484
    public void setUserIsSet(boolean value) {
9485
      if (!value) {
9486
        this.user = null;
9487
      }
48 ashish 9488
    }
9489
 
9490
    public void setFieldValue(_Fields field, Object value) {
9491
      switch (field) {
553 chandransh 9492
      case USER:
48 ashish 9493
        if (value == null) {
553 chandransh 9494
          unsetUser();
48 ashish 9495
        } else {
553 chandransh 9496
          setUser((User)value);
48 ashish 9497
        }
9498
        break;
9499
 
9500
      }
9501
    }
9502
 
9503
    public Object getFieldValue(_Fields field) {
9504
      switch (field) {
553 chandransh 9505
      case USER:
9506
        return getUser();
48 ashish 9507
 
9508
      }
9509
      throw new IllegalStateException();
9510
    }
9511
 
3430 rajveer 9512
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9513
    public boolean isSet(_Fields field) {
9514
      if (field == null) {
9515
        throw new IllegalArgumentException();
9516
      }
48 ashish 9517
 
9518
      switch (field) {
553 chandransh 9519
      case USER:
9520
        return isSetUser();
48 ashish 9521
      }
9522
      throw new IllegalStateException();
9523
    }
9524
 
9525
    @Override
9526
    public boolean equals(Object that) {
9527
      if (that == null)
9528
        return false;
553 chandransh 9529
      if (that instanceof updateUser_args)
9530
        return this.equals((updateUser_args)that);
48 ashish 9531
      return false;
9532
    }
9533
 
553 chandransh 9534
    public boolean equals(updateUser_args that) {
48 ashish 9535
      if (that == null)
9536
        return false;
9537
 
553 chandransh 9538
      boolean this_present_user = true && this.isSetUser();
9539
      boolean that_present_user = true && that.isSetUser();
9540
      if (this_present_user || that_present_user) {
9541
        if (!(this_present_user && that_present_user))
48 ashish 9542
          return false;
553 chandransh 9543
        if (!this.user.equals(that.user))
48 ashish 9544
          return false;
9545
      }
9546
 
9547
      return true;
9548
    }
9549
 
9550
    @Override
9551
    public int hashCode() {
9552
      return 0;
9553
    }
9554
 
571 rajveer 9555
    public int compareTo(updateUser_args other) {
9556
      if (!getClass().equals(other.getClass())) {
9557
        return getClass().getName().compareTo(other.getClass().getName());
9558
      }
9559
 
9560
      int lastComparison = 0;
9561
      updateUser_args typedOther = (updateUser_args)other;
9562
 
3430 rajveer 9563
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
571 rajveer 9564
      if (lastComparison != 0) {
9565
        return lastComparison;
9566
      }
3430 rajveer 9567
      if (isSetUser()) {
9568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
9569
        if (lastComparison != 0) {
9570
          return lastComparison;
9571
        }
571 rajveer 9572
      }
9573
      return 0;
9574
    }
9575
 
3430 rajveer 9576
    public _Fields fieldForId(int fieldId) {
9577
      return _Fields.findByThriftId(fieldId);
9578
    }
9579
 
9580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9581
      org.apache.thrift.protocol.TField field;
48 ashish 9582
      iprot.readStructBegin();
9583
      while (true)
9584
      {
9585
        field = iprot.readFieldBegin();
3430 rajveer 9586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9587
          break;
9588
        }
3430 rajveer 9589
        switch (field.id) {
9590
          case 1: // USER
9591
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9592
              this.user = new User();
9593
              this.user.read(iprot);
9594
            } else { 
9595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9596
            }
9597
            break;
9598
          default:
9599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9600
        }
3430 rajveer 9601
        iprot.readFieldEnd();
48 ashish 9602
      }
9603
      iprot.readStructEnd();
9604
      validate();
9605
    }
9606
 
3430 rajveer 9607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9608
      validate();
9609
 
9610
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 9611
      if (this.user != null) {
9612
        oprot.writeFieldBegin(USER_FIELD_DESC);
9613
        this.user.write(oprot);
9614
        oprot.writeFieldEnd();
9615
      }
48 ashish 9616
      oprot.writeFieldStop();
9617
      oprot.writeStructEnd();
9618
    }
9619
 
9620
    @Override
9621
    public String toString() {
553 chandransh 9622
      StringBuilder sb = new StringBuilder("updateUser_args(");
48 ashish 9623
      boolean first = true;
9624
 
553 chandransh 9625
      sb.append("user:");
9626
      if (this.user == null) {
9627
        sb.append("null");
9628
      } else {
9629
        sb.append(this.user);
9630
      }
48 ashish 9631
      first = false;
9632
      sb.append(")");
9633
      return sb.toString();
9634
    }
9635
 
3430 rajveer 9636
    public void validate() throws org.apache.thrift.TException {
48 ashish 9637
      // check for required fields
9638
    }
9639
 
3430 rajveer 9640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9641
      try {
9642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9643
      } catch (org.apache.thrift.TException te) {
9644
        throw new java.io.IOException(te);
9645
      }
9646
    }
9647
 
9648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9649
      try {
9650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9651
      } catch (org.apache.thrift.TException te) {
9652
        throw new java.io.IOException(te);
9653
      }
9654
    }
9655
 
48 ashish 9656
  }
9657
 
3430 rajveer 9658
  public static class updateUser_result implements org.apache.thrift.TBase<updateUser_result, updateUser_result._Fields>, java.io.Serializable, Cloneable   {
9659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_result");
48 ashish 9660
 
3430 rajveer 9661
    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);
9662
    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 9663
 
3430 rajveer 9664
    private User success; // required
9665
    private UserContextException ucex; // required
48 ashish 9666
 
9667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 9669
      SUCCESS((short)0, "success"),
553 chandransh 9670
      UCEX((short)1, "ucex");
48 ashish 9671
 
9672
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9673
 
9674
      static {
9675
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9676
          byName.put(field.getFieldName(), field);
9677
        }
9678
      }
9679
 
9680
      /**
9681
       * Find the _Fields constant that matches fieldId, or null if its not found.
9682
       */
9683
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9684
        switch(fieldId) {
9685
          case 0: // SUCCESS
9686
            return SUCCESS;
9687
          case 1: // UCEX
9688
            return UCEX;
9689
          default:
9690
            return null;
9691
        }
48 ashish 9692
      }
9693
 
9694
      /**
9695
       * Find the _Fields constant that matches fieldId, throwing an exception
9696
       * if it is not found.
9697
       */
9698
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9699
        _Fields fields = findByThriftId(fieldId);
9700
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9701
        return fields;
9702
      }
9703
 
9704
      /**
9705
       * Find the _Fields constant that matches name, or null if its not found.
9706
       */
9707
      public static _Fields findByName(String name) {
9708
        return byName.get(name);
9709
      }
9710
 
9711
      private final short _thriftId;
9712
      private final String _fieldName;
9713
 
9714
      _Fields(short thriftId, String fieldName) {
9715
        _thriftId = thriftId;
9716
        _fieldName = fieldName;
9717
      }
9718
 
9719
      public short getThriftFieldId() {
9720
        return _thriftId;
9721
      }
9722
 
9723
      public String getFieldName() {
9724
        return _fieldName;
9725
      }
9726
    }
9727
 
9728
    // isset id assignments
9729
 
3430 rajveer 9730
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9731
    static {
3430 rajveer 9732
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9733
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9734
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9735
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9737
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9738
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_result.class, metaDataMap);
48 ashish 9739
    }
9740
 
553 chandransh 9741
    public updateUser_result() {
48 ashish 9742
    }
9743
 
553 chandransh 9744
    public updateUser_result(
9745
      User success,
9746
      UserContextException ucex)
48 ashish 9747
    {
9748
      this();
9749
      this.success = success;
553 chandransh 9750
      this.ucex = ucex;
48 ashish 9751
    }
9752
 
9753
    /**
9754
     * Performs a deep copy on <i>other</i>.
9755
     */
553 chandransh 9756
    public updateUser_result(updateUser_result other) {
48 ashish 9757
      if (other.isSetSuccess()) {
553 chandransh 9758
        this.success = new User(other.success);
48 ashish 9759
      }
553 chandransh 9760
      if (other.isSetUcex()) {
9761
        this.ucex = new UserContextException(other.ucex);
48 ashish 9762
      }
9763
    }
9764
 
553 chandransh 9765
    public updateUser_result deepCopy() {
9766
      return new updateUser_result(this);
48 ashish 9767
    }
9768
 
3430 rajveer 9769
    @Override
9770
    public void clear() {
9771
      this.success = null;
9772
      this.ucex = null;
48 ashish 9773
    }
9774
 
553 chandransh 9775
    public User getSuccess() {
48 ashish 9776
      return this.success;
9777
    }
9778
 
3430 rajveer 9779
    public void setSuccess(User success) {
48 ashish 9780
      this.success = success;
9781
    }
9782
 
9783
    public void unsetSuccess() {
9784
      this.success = null;
9785
    }
9786
 
3430 rajveer 9787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 9788
    public boolean isSetSuccess() {
9789
      return this.success != null;
9790
    }
9791
 
9792
    public void setSuccessIsSet(boolean value) {
9793
      if (!value) {
9794
        this.success = null;
9795
      }
9796
    }
9797
 
553 chandransh 9798
    public UserContextException getUcex() {
9799
      return this.ucex;
48 ashish 9800
    }
9801
 
3430 rajveer 9802
    public void setUcex(UserContextException ucex) {
553 chandransh 9803
      this.ucex = ucex;
48 ashish 9804
    }
9805
 
553 chandransh 9806
    public void unsetUcex() {
9807
      this.ucex = null;
48 ashish 9808
    }
9809
 
3430 rajveer 9810
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 9811
    public boolean isSetUcex() {
9812
      return this.ucex != null;
48 ashish 9813
    }
9814
 
553 chandransh 9815
    public void setUcexIsSet(boolean value) {
48 ashish 9816
      if (!value) {
553 chandransh 9817
        this.ucex = null;
48 ashish 9818
      }
9819
    }
9820
 
9821
    public void setFieldValue(_Fields field, Object value) {
9822
      switch (field) {
9823
      case SUCCESS:
9824
        if (value == null) {
9825
          unsetSuccess();
9826
        } else {
553 chandransh 9827
          setSuccess((User)value);
48 ashish 9828
        }
9829
        break;
9830
 
553 chandransh 9831
      case UCEX:
48 ashish 9832
        if (value == null) {
553 chandransh 9833
          unsetUcex();
48 ashish 9834
        } else {
553 chandransh 9835
          setUcex((UserContextException)value);
48 ashish 9836
        }
9837
        break;
9838
 
9839
      }
9840
    }
9841
 
9842
    public Object getFieldValue(_Fields field) {
9843
      switch (field) {
9844
      case SUCCESS:
9845
        return getSuccess();
9846
 
553 chandransh 9847
      case UCEX:
9848
        return getUcex();
48 ashish 9849
 
9850
      }
9851
      throw new IllegalStateException();
9852
    }
9853
 
3430 rajveer 9854
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9855
    public boolean isSet(_Fields field) {
9856
      if (field == null) {
9857
        throw new IllegalArgumentException();
9858
      }
48 ashish 9859
 
9860
      switch (field) {
9861
      case SUCCESS:
9862
        return isSetSuccess();
553 chandransh 9863
      case UCEX:
9864
        return isSetUcex();
48 ashish 9865
      }
9866
      throw new IllegalStateException();
9867
    }
9868
 
9869
    @Override
9870
    public boolean equals(Object that) {
9871
      if (that == null)
9872
        return false;
553 chandransh 9873
      if (that instanceof updateUser_result)
9874
        return this.equals((updateUser_result)that);
48 ashish 9875
      return false;
9876
    }
9877
 
553 chandransh 9878
    public boolean equals(updateUser_result that) {
48 ashish 9879
      if (that == null)
9880
        return false;
9881
 
9882
      boolean this_present_success = true && this.isSetSuccess();
9883
      boolean that_present_success = true && that.isSetSuccess();
9884
      if (this_present_success || that_present_success) {
9885
        if (!(this_present_success && that_present_success))
9886
          return false;
9887
        if (!this.success.equals(that.success))
9888
          return false;
9889
      }
9890
 
553 chandransh 9891
      boolean this_present_ucex = true && this.isSetUcex();
9892
      boolean that_present_ucex = true && that.isSetUcex();
9893
      if (this_present_ucex || that_present_ucex) {
9894
        if (!(this_present_ucex && that_present_ucex))
48 ashish 9895
          return false;
553 chandransh 9896
        if (!this.ucex.equals(that.ucex))
48 ashish 9897
          return false;
9898
      }
9899
 
9900
      return true;
9901
    }
9902
 
9903
    @Override
9904
    public int hashCode() {
9905
      return 0;
9906
    }
9907
 
571 rajveer 9908
    public int compareTo(updateUser_result other) {
9909
      if (!getClass().equals(other.getClass())) {
9910
        return getClass().getName().compareTo(other.getClass().getName());
9911
      }
9912
 
9913
      int lastComparison = 0;
9914
      updateUser_result typedOther = (updateUser_result)other;
9915
 
3430 rajveer 9916
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 9917
      if (lastComparison != 0) {
9918
        return lastComparison;
9919
      }
3430 rajveer 9920
      if (isSetSuccess()) {
9921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9922
        if (lastComparison != 0) {
9923
          return lastComparison;
9924
        }
571 rajveer 9925
      }
3430 rajveer 9926
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 9927
      if (lastComparison != 0) {
9928
        return lastComparison;
9929
      }
3430 rajveer 9930
      if (isSetUcex()) {
9931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
9932
        if (lastComparison != 0) {
9933
          return lastComparison;
9934
        }
571 rajveer 9935
      }
9936
      return 0;
9937
    }
9938
 
3430 rajveer 9939
    public _Fields fieldForId(int fieldId) {
9940
      return _Fields.findByThriftId(fieldId);
9941
    }
9942
 
9943
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9944
      org.apache.thrift.protocol.TField field;
48 ashish 9945
      iprot.readStructBegin();
9946
      while (true)
9947
      {
9948
        field = iprot.readFieldBegin();
3430 rajveer 9949
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9950
          break;
9951
        }
3430 rajveer 9952
        switch (field.id) {
9953
          case 0: // SUCCESS
9954
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9955
              this.success = new User();
9956
              this.success.read(iprot);
9957
            } else { 
9958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9959
            }
9960
            break;
9961
          case 1: // UCEX
9962
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9963
              this.ucex = new UserContextException();
9964
              this.ucex.read(iprot);
9965
            } else { 
9966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9967
            }
9968
            break;
9969
          default:
9970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9971
        }
3430 rajveer 9972
        iprot.readFieldEnd();
48 ashish 9973
      }
9974
      iprot.readStructEnd();
9975
      validate();
9976
    }
9977
 
3430 rajveer 9978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9979
      oprot.writeStructBegin(STRUCT_DESC);
9980
 
9981
      if (this.isSetSuccess()) {
9982
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9983
        this.success.write(oprot);
9984
        oprot.writeFieldEnd();
553 chandransh 9985
      } else if (this.isSetUcex()) {
9986
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
9987
        this.ucex.write(oprot);
48 ashish 9988
        oprot.writeFieldEnd();
9989
      }
9990
      oprot.writeFieldStop();
9991
      oprot.writeStructEnd();
9992
    }
9993
 
9994
    @Override
9995
    public String toString() {
553 chandransh 9996
      StringBuilder sb = new StringBuilder("updateUser_result(");
48 ashish 9997
      boolean first = true;
9998
 
9999
      sb.append("success:");
10000
      if (this.success == null) {
10001
        sb.append("null");
10002
      } else {
10003
        sb.append(this.success);
10004
      }
10005
      first = false;
10006
      if (!first) sb.append(", ");
553 chandransh 10007
      sb.append("ucex:");
10008
      if (this.ucex == null) {
48 ashish 10009
        sb.append("null");
10010
      } else {
553 chandransh 10011
        sb.append(this.ucex);
48 ashish 10012
      }
10013
      first = false;
10014
      sb.append(")");
10015
      return sb.toString();
10016
    }
10017
 
3430 rajveer 10018
    public void validate() throws org.apache.thrift.TException {
48 ashish 10019
      // check for required fields
10020
    }
10021
 
3430 rajveer 10022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10023
      try {
10024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10025
      } catch (org.apache.thrift.TException te) {
10026
        throw new java.io.IOException(te);
10027
      }
10028
    }
10029
 
10030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10031
      try {
10032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10033
      } catch (org.apache.thrift.TException te) {
10034
        throw new java.io.IOException(te);
10035
      }
10036
    }
10037
 
48 ashish 10038
  }
10039
 
3430 rajveer 10040
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
48 ashish 10042
 
3430 rajveer 10043
    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 10044
 
3430 rajveer 10045
    private long userId; // required
48 ashish 10046
 
10047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 10049
      USER_ID((short)1, "userId");
48 ashish 10050
 
10051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10052
 
10053
      static {
10054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10055
          byName.put(field.getFieldName(), field);
10056
        }
10057
      }
10058
 
10059
      /**
10060
       * Find the _Fields constant that matches fieldId, or null if its not found.
10061
       */
10062
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10063
        switch(fieldId) {
10064
          case 1: // USER_ID
10065
            return USER_ID;
10066
          default:
10067
            return null;
10068
        }
48 ashish 10069
      }
10070
 
10071
      /**
10072
       * Find the _Fields constant that matches fieldId, throwing an exception
10073
       * if it is not found.
10074
       */
10075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10076
        _Fields fields = findByThriftId(fieldId);
10077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10078
        return fields;
10079
      }
10080
 
10081
      /**
10082
       * Find the _Fields constant that matches name, or null if its not found.
10083
       */
10084
      public static _Fields findByName(String name) {
10085
        return byName.get(name);
10086
      }
10087
 
10088
      private final short _thriftId;
10089
      private final String _fieldName;
10090
 
10091
      _Fields(short thriftId, String fieldName) {
10092
        _thriftId = thriftId;
10093
        _fieldName = fieldName;
10094
      }
10095
 
10096
      public short getThriftFieldId() {
10097
        return _thriftId;
10098
      }
10099
 
10100
      public String getFieldName() {
10101
        return _fieldName;
10102
      }
10103
    }
10104
 
10105
    // isset id assignments
10106
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 10107
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10108
 
3430 rajveer 10109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10110
    static {
3430 rajveer 10111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10112
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
48 ashish 10116
    }
10117
 
553 chandransh 10118
    public deleteUser_args() {
48 ashish 10119
    }
10120
 
553 chandransh 10121
    public deleteUser_args(
10122
      long userId)
48 ashish 10123
    {
10124
      this();
10125
      this.userId = userId;
10126
      setUserIdIsSet(true);
10127
    }
10128
 
10129
    /**
10130
     * Performs a deep copy on <i>other</i>.
10131
     */
553 chandransh 10132
    public deleteUser_args(deleteUser_args other) {
48 ashish 10133
      __isset_bit_vector.clear();
10134
      __isset_bit_vector.or(other.__isset_bit_vector);
10135
      this.userId = other.userId;
10136
    }
10137
 
553 chandransh 10138
    public deleteUser_args deepCopy() {
10139
      return new deleteUser_args(this);
48 ashish 10140
    }
10141
 
3430 rajveer 10142
    @Override
10143
    public void clear() {
10144
      setUserIdIsSet(false);
10145
      this.userId = 0;
48 ashish 10146
    }
10147
 
10148
    public long getUserId() {
10149
      return this.userId;
10150
    }
10151
 
3430 rajveer 10152
    public void setUserId(long userId) {
48 ashish 10153
      this.userId = userId;
10154
      setUserIdIsSet(true);
10155
    }
10156
 
10157
    public void unsetUserId() {
10158
      __isset_bit_vector.clear(__USERID_ISSET_ID);
10159
    }
10160
 
3430 rajveer 10161
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 10162
    public boolean isSetUserId() {
10163
      return __isset_bit_vector.get(__USERID_ISSET_ID);
10164
    }
10165
 
10166
    public void setUserIdIsSet(boolean value) {
10167
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
10168
    }
10169
 
10170
    public void setFieldValue(_Fields field, Object value) {
10171
      switch (field) {
10172
      case USER_ID:
10173
        if (value == null) {
10174
          unsetUserId();
10175
        } else {
10176
          setUserId((Long)value);
10177
        }
10178
        break;
10179
 
10180
      }
10181
    }
10182
 
10183
    public Object getFieldValue(_Fields field) {
10184
      switch (field) {
10185
      case USER_ID:
3430 rajveer 10186
        return Long.valueOf(getUserId());
48 ashish 10187
 
10188
      }
10189
      throw new IllegalStateException();
10190
    }
10191
 
3430 rajveer 10192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10193
    public boolean isSet(_Fields field) {
10194
      if (field == null) {
10195
        throw new IllegalArgumentException();
10196
      }
48 ashish 10197
 
10198
      switch (field) {
10199
      case USER_ID:
10200
        return isSetUserId();
10201
      }
10202
      throw new IllegalStateException();
10203
    }
10204
 
10205
    @Override
10206
    public boolean equals(Object that) {
10207
      if (that == null)
10208
        return false;
553 chandransh 10209
      if (that instanceof deleteUser_args)
10210
        return this.equals((deleteUser_args)that);
48 ashish 10211
      return false;
10212
    }
10213
 
553 chandransh 10214
    public boolean equals(deleteUser_args that) {
48 ashish 10215
      if (that == null)
10216
        return false;
10217
 
10218
      boolean this_present_userId = true;
10219
      boolean that_present_userId = true;
10220
      if (this_present_userId || that_present_userId) {
10221
        if (!(this_present_userId && that_present_userId))
10222
          return false;
10223
        if (this.userId != that.userId)
10224
          return false;
10225
      }
10226
 
10227
      return true;
10228
    }
10229
 
10230
    @Override
10231
    public int hashCode() {
10232
      return 0;
10233
    }
10234
 
553 chandransh 10235
    public int compareTo(deleteUser_args other) {
48 ashish 10236
      if (!getClass().equals(other.getClass())) {
10237
        return getClass().getName().compareTo(other.getClass().getName());
10238
      }
10239
 
10240
      int lastComparison = 0;
553 chandransh 10241
      deleteUser_args typedOther = (deleteUser_args)other;
48 ashish 10242
 
3430 rajveer 10243
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 10244
      if (lastComparison != 0) {
10245
        return lastComparison;
10246
      }
3430 rajveer 10247
      if (isSetUserId()) {
10248
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
10249
        if (lastComparison != 0) {
10250
          return lastComparison;
10251
        }
48 ashish 10252
      }
10253
      return 0;
10254
    }
10255
 
3430 rajveer 10256
    public _Fields fieldForId(int fieldId) {
10257
      return _Fields.findByThriftId(fieldId);
10258
    }
10259
 
10260
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10261
      org.apache.thrift.protocol.TField field;
48 ashish 10262
      iprot.readStructBegin();
10263
      while (true)
10264
      {
10265
        field = iprot.readFieldBegin();
3430 rajveer 10266
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10267
          break;
10268
        }
3430 rajveer 10269
        switch (field.id) {
10270
          case 1: // USER_ID
10271
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10272
              this.userId = iprot.readI64();
10273
              setUserIdIsSet(true);
10274
            } else { 
10275
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10276
            }
10277
            break;
10278
          default:
10279
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10280
        }
3430 rajveer 10281
        iprot.readFieldEnd();
48 ashish 10282
      }
10283
      iprot.readStructEnd();
10284
      validate();
10285
    }
10286
 
3430 rajveer 10287
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10288
      validate();
10289
 
10290
      oprot.writeStructBegin(STRUCT_DESC);
10291
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
10292
      oprot.writeI64(this.userId);
10293
      oprot.writeFieldEnd();
10294
      oprot.writeFieldStop();
10295
      oprot.writeStructEnd();
10296
    }
10297
 
10298
    @Override
10299
    public String toString() {
553 chandransh 10300
      StringBuilder sb = new StringBuilder("deleteUser_args(");
48 ashish 10301
      boolean first = true;
10302
 
10303
      sb.append("userId:");
10304
      sb.append(this.userId);
10305
      first = false;
10306
      sb.append(")");
10307
      return sb.toString();
10308
    }
10309
 
3430 rajveer 10310
    public void validate() throws org.apache.thrift.TException {
48 ashish 10311
      // check for required fields
10312
    }
10313
 
3430 rajveer 10314
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10315
      try {
10316
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10317
      } catch (org.apache.thrift.TException te) {
10318
        throw new java.io.IOException(te);
10319
      }
10320
    }
10321
 
10322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10323
      try {
10324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10325
        __isset_bit_vector = new BitSet(1);
10326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10327
      } catch (org.apache.thrift.TException te) {
10328
        throw new java.io.IOException(te);
10329
      }
10330
    }
10331
 
48 ashish 10332
  }
10333
 
3430 rajveer 10334
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
48 ashish 10336
 
3430 rajveer 10337
    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);
10338
    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 10339
 
3430 rajveer 10340
    private boolean success; // required
10341
    private UserContextException ucex; // required
48 ashish 10342
 
10343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 10345
      SUCCESS((short)0, "success"),
553 chandransh 10346
      UCEX((short)1, "ucex");
48 ashish 10347
 
10348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10349
 
10350
      static {
10351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10352
          byName.put(field.getFieldName(), field);
10353
        }
10354
      }
10355
 
10356
      /**
10357
       * Find the _Fields constant that matches fieldId, or null if its not found.
10358
       */
10359
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10360
        switch(fieldId) {
10361
          case 0: // SUCCESS
10362
            return SUCCESS;
10363
          case 1: // UCEX
10364
            return UCEX;
10365
          default:
10366
            return null;
10367
        }
48 ashish 10368
      }
10369
 
10370
      /**
10371
       * Find the _Fields constant that matches fieldId, throwing an exception
10372
       * if it is not found.
10373
       */
10374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10375
        _Fields fields = findByThriftId(fieldId);
10376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10377
        return fields;
10378
      }
10379
 
10380
      /**
10381
       * Find the _Fields constant that matches name, or null if its not found.
10382
       */
10383
      public static _Fields findByName(String name) {
10384
        return byName.get(name);
10385
      }
10386
 
10387
      private final short _thriftId;
10388
      private final String _fieldName;
10389
 
10390
      _Fields(short thriftId, String fieldName) {
10391
        _thriftId = thriftId;
10392
        _fieldName = fieldName;
10393
      }
10394
 
10395
      public short getThriftFieldId() {
10396
        return _thriftId;
10397
      }
10398
 
10399
      public String getFieldName() {
10400
        return _fieldName;
10401
      }
10402
    }
10403
 
10404
    // isset id assignments
553 chandransh 10405
    private static final int __SUCCESS_ISSET_ID = 0;
10406
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10407
 
3430 rajveer 10408
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10409
    static {
3430 rajveer 10410
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10411
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10412
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10413
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10414
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10415
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10416
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
48 ashish 10417
    }
10418
 
553 chandransh 10419
    public deleteUser_result() {
48 ashish 10420
    }
10421
 
553 chandransh 10422
    public deleteUser_result(
10423
      boolean success,
10424
      UserContextException ucex)
48 ashish 10425
    {
10426
      this();
10427
      this.success = success;
553 chandransh 10428
      setSuccessIsSet(true);
10429
      this.ucex = ucex;
48 ashish 10430
    }
10431
 
10432
    /**
10433
     * Performs a deep copy on <i>other</i>.
10434
     */
553 chandransh 10435
    public deleteUser_result(deleteUser_result other) {
10436
      __isset_bit_vector.clear();
10437
      __isset_bit_vector.or(other.__isset_bit_vector);
10438
      this.success = other.success;
10439
      if (other.isSetUcex()) {
10440
        this.ucex = new UserContextException(other.ucex);
48 ashish 10441
      }
10442
    }
10443
 
553 chandransh 10444
    public deleteUser_result deepCopy() {
10445
      return new deleteUser_result(this);
48 ashish 10446
    }
10447
 
3430 rajveer 10448
    @Override
10449
    public void clear() {
10450
      setSuccessIsSet(false);
10451
      this.success = false;
10452
      this.ucex = null;
48 ashish 10453
    }
10454
 
553 chandransh 10455
    public boolean isSuccess() {
48 ashish 10456
      return this.success;
10457
    }
10458
 
3430 rajveer 10459
    public void setSuccess(boolean success) {
48 ashish 10460
      this.success = success;
553 chandransh 10461
      setSuccessIsSet(true);
48 ashish 10462
    }
10463
 
10464
    public void unsetSuccess() {
553 chandransh 10465
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48 ashish 10466
    }
10467
 
3430 rajveer 10468
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 10469
    public boolean isSetSuccess() {
553 chandransh 10470
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48 ashish 10471
    }
10472
 
10473
    public void setSuccessIsSet(boolean value) {
553 chandransh 10474
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48 ashish 10475
    }
10476
 
553 chandransh 10477
    public UserContextException getUcex() {
10478
      return this.ucex;
48 ashish 10479
    }
10480
 
3430 rajveer 10481
    public void setUcex(UserContextException ucex) {
553 chandransh 10482
      this.ucex = ucex;
48 ashish 10483
    }
10484
 
553 chandransh 10485
    public void unsetUcex() {
10486
      this.ucex = null;
48 ashish 10487
    }
10488
 
3430 rajveer 10489
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 10490
    public boolean isSetUcex() {
10491
      return this.ucex != null;
48 ashish 10492
    }
10493
 
553 chandransh 10494
    public void setUcexIsSet(boolean value) {
48 ashish 10495
      if (!value) {
553 chandransh 10496
        this.ucex = null;
48 ashish 10497
      }
10498
    }
10499
 
10500
    public void setFieldValue(_Fields field, Object value) {
10501
      switch (field) {
10502
      case SUCCESS:
10503
        if (value == null) {
10504
          unsetSuccess();
10505
        } else {
553 chandransh 10506
          setSuccess((Boolean)value);
48 ashish 10507
        }
10508
        break;
10509
 
553 chandransh 10510
      case UCEX:
48 ashish 10511
        if (value == null) {
553 chandransh 10512
          unsetUcex();
48 ashish 10513
        } else {
553 chandransh 10514
          setUcex((UserContextException)value);
48 ashish 10515
        }
10516
        break;
10517
 
10518
      }
10519
    }
10520
 
10521
    public Object getFieldValue(_Fields field) {
10522
      switch (field) {
10523
      case SUCCESS:
3430 rajveer 10524
        return Boolean.valueOf(isSuccess());
48 ashish 10525
 
553 chandransh 10526
      case UCEX:
10527
        return getUcex();
48 ashish 10528
 
10529
      }
10530
      throw new IllegalStateException();
10531
    }
10532
 
3430 rajveer 10533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10534
    public boolean isSet(_Fields field) {
10535
      if (field == null) {
10536
        throw new IllegalArgumentException();
10537
      }
48 ashish 10538
 
10539
      switch (field) {
10540
      case SUCCESS:
10541
        return isSetSuccess();
553 chandransh 10542
      case UCEX:
10543
        return isSetUcex();
48 ashish 10544
      }
10545
      throw new IllegalStateException();
10546
    }
10547
 
10548
    @Override
10549
    public boolean equals(Object that) {
10550
      if (that == null)
10551
        return false;
553 chandransh 10552
      if (that instanceof deleteUser_result)
10553
        return this.equals((deleteUser_result)that);
48 ashish 10554
      return false;
10555
    }
10556
 
553 chandransh 10557
    public boolean equals(deleteUser_result that) {
48 ashish 10558
      if (that == null)
10559
        return false;
10560
 
553 chandransh 10561
      boolean this_present_success = true;
10562
      boolean that_present_success = true;
48 ashish 10563
      if (this_present_success || that_present_success) {
10564
        if (!(this_present_success && that_present_success))
10565
          return false;
553 chandransh 10566
        if (this.success != that.success)
48 ashish 10567
          return false;
10568
      }
10569
 
553 chandransh 10570
      boolean this_present_ucex = true && this.isSetUcex();
10571
      boolean that_present_ucex = true && that.isSetUcex();
10572
      if (this_present_ucex || that_present_ucex) {
10573
        if (!(this_present_ucex && that_present_ucex))
48 ashish 10574
          return false;
553 chandransh 10575
        if (!this.ucex.equals(that.ucex))
48 ashish 10576
          return false;
10577
      }
10578
 
10579
      return true;
10580
    }
10581
 
10582
    @Override
10583
    public int hashCode() {
10584
      return 0;
10585
    }
10586
 
553 chandransh 10587
    public int compareTo(deleteUser_result other) {
10588
      if (!getClass().equals(other.getClass())) {
10589
        return getClass().getName().compareTo(other.getClass().getName());
10590
      }
10591
 
10592
      int lastComparison = 0;
10593
      deleteUser_result typedOther = (deleteUser_result)other;
10594
 
3430 rajveer 10595
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 10596
      if (lastComparison != 0) {
10597
        return lastComparison;
10598
      }
3430 rajveer 10599
      if (isSetSuccess()) {
10600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10601
        if (lastComparison != 0) {
10602
          return lastComparison;
10603
        }
553 chandransh 10604
      }
3430 rajveer 10605
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
553 chandransh 10606
      if (lastComparison != 0) {
10607
        return lastComparison;
10608
      }
3430 rajveer 10609
      if (isSetUcex()) {
10610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
10611
        if (lastComparison != 0) {
10612
          return lastComparison;
10613
        }
553 chandransh 10614
      }
10615
      return 0;
10616
    }
10617
 
3430 rajveer 10618
    public _Fields fieldForId(int fieldId) {
10619
      return _Fields.findByThriftId(fieldId);
10620
    }
10621
 
10622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10623
      org.apache.thrift.protocol.TField field;
48 ashish 10624
      iprot.readStructBegin();
10625
      while (true)
10626
      {
10627
        field = iprot.readFieldBegin();
3430 rajveer 10628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10629
          break;
10630
        }
3430 rajveer 10631
        switch (field.id) {
10632
          case 0: // SUCCESS
10633
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10634
              this.success = iprot.readBool();
10635
              setSuccessIsSet(true);
10636
            } else { 
10637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10638
            }
10639
            break;
10640
          case 1: // UCEX
10641
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10642
              this.ucex = new UserContextException();
10643
              this.ucex.read(iprot);
10644
            } else { 
10645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10646
            }
10647
            break;
10648
          default:
10649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10650
        }
3430 rajveer 10651
        iprot.readFieldEnd();
48 ashish 10652
      }
10653
      iprot.readStructEnd();
10654
      validate();
10655
    }
10656
 
3430 rajveer 10657
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10658
      oprot.writeStructBegin(STRUCT_DESC);
10659
 
10660
      if (this.isSetSuccess()) {
10661
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 10662
        oprot.writeBool(this.success);
48 ashish 10663
        oprot.writeFieldEnd();
553 chandransh 10664
      } else if (this.isSetUcex()) {
10665
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10666
        this.ucex.write(oprot);
48 ashish 10667
        oprot.writeFieldEnd();
10668
      }
10669
      oprot.writeFieldStop();
10670
      oprot.writeStructEnd();
10671
    }
10672
 
10673
    @Override
10674
    public String toString() {
553 chandransh 10675
      StringBuilder sb = new StringBuilder("deleteUser_result(");
48 ashish 10676
      boolean first = true;
10677
 
10678
      sb.append("success:");
553 chandransh 10679
      sb.append(this.success);
48 ashish 10680
      first = false;
10681
      if (!first) sb.append(", ");
553 chandransh 10682
      sb.append("ucex:");
10683
      if (this.ucex == null) {
48 ashish 10684
        sb.append("null");
10685
      } else {
553 chandransh 10686
        sb.append(this.ucex);
48 ashish 10687
      }
10688
      first = false;
10689
      sb.append(")");
10690
      return sb.toString();
10691
    }
10692
 
3430 rajveer 10693
    public void validate() throws org.apache.thrift.TException {
48 ashish 10694
      // check for required fields
10695
    }
10696
 
3430 rajveer 10697
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10698
      try {
10699
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10700
      } catch (org.apache.thrift.TException te) {
10701
        throw new java.io.IOException(te);
10702
      }
10703
    }
10704
 
10705
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10706
      try {
10707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10708
      } catch (org.apache.thrift.TException te) {
10709
        throw new java.io.IOException(te);
10710
      }
10711
    }
10712
 
48 ashish 10713
  }
10714
 
3430 rajveer 10715
  public static class getUserState_args implements org.apache.thrift.TBase<getUserState_args, getUserState_args._Fields>, java.io.Serializable, Cloneable   {
10716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_args");
48 ashish 10717
 
3430 rajveer 10718
    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 10719
 
3430 rajveer 10720
    private long userId; // required
48 ashish 10721
 
10722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 10724
      USER_ID((short)1, "userId");
48 ashish 10725
 
10726
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10727
 
10728
      static {
10729
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10730
          byName.put(field.getFieldName(), field);
10731
        }
10732
      }
10733
 
10734
      /**
10735
       * Find the _Fields constant that matches fieldId, or null if its not found.
10736
       */
10737
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10738
        switch(fieldId) {
10739
          case 1: // USER_ID
10740
            return USER_ID;
10741
          default:
10742
            return null;
10743
        }
48 ashish 10744
      }
10745
 
10746
      /**
10747
       * Find the _Fields constant that matches fieldId, throwing an exception
10748
       * if it is not found.
10749
       */
10750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10751
        _Fields fields = findByThriftId(fieldId);
10752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10753
        return fields;
10754
      }
10755
 
10756
      /**
10757
       * Find the _Fields constant that matches name, or null if its not found.
10758
       */
10759
      public static _Fields findByName(String name) {
10760
        return byName.get(name);
10761
      }
10762
 
10763
      private final short _thriftId;
10764
      private final String _fieldName;
10765
 
10766
      _Fields(short thriftId, String fieldName) {
10767
        _thriftId = thriftId;
10768
        _fieldName = fieldName;
10769
      }
10770
 
10771
      public short getThriftFieldId() {
10772
        return _thriftId;
10773
      }
10774
 
10775
      public String getFieldName() {
10776
        return _fieldName;
10777
      }
10778
    }
10779
 
10780
    // isset id assignments
10781
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 10782
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10783
 
3430 rajveer 10784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10785
    static {
3430 rajveer 10786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10787
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_args.class, metaDataMap);
48 ashish 10791
    }
10792
 
553 chandransh 10793
    public getUserState_args() {
48 ashish 10794
    }
10795
 
553 chandransh 10796
    public getUserState_args(
10797
      long userId)
48 ashish 10798
    {
10799
      this();
10800
      this.userId = userId;
10801
      setUserIdIsSet(true);
10802
    }
10803
 
10804
    /**
10805
     * Performs a deep copy on <i>other</i>.
10806
     */
553 chandransh 10807
    public getUserState_args(getUserState_args other) {
48 ashish 10808
      __isset_bit_vector.clear();
10809
      __isset_bit_vector.or(other.__isset_bit_vector);
10810
      this.userId = other.userId;
10811
    }
10812
 
553 chandransh 10813
    public getUserState_args deepCopy() {
10814
      return new getUserState_args(this);
48 ashish 10815
    }
10816
 
3430 rajveer 10817
    @Override
10818
    public void clear() {
10819
      setUserIdIsSet(false);
10820
      this.userId = 0;
48 ashish 10821
    }
10822
 
10823
    public long getUserId() {
10824
      return this.userId;
10825
    }
10826
 
3430 rajveer 10827
    public void setUserId(long userId) {
48 ashish 10828
      this.userId = userId;
10829
      setUserIdIsSet(true);
10830
    }
10831
 
10832
    public void unsetUserId() {
10833
      __isset_bit_vector.clear(__USERID_ISSET_ID);
10834
    }
10835
 
3430 rajveer 10836
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 10837
    public boolean isSetUserId() {
10838
      return __isset_bit_vector.get(__USERID_ISSET_ID);
10839
    }
10840
 
10841
    public void setUserIdIsSet(boolean value) {
10842
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
10843
    }
10844
 
10845
    public void setFieldValue(_Fields field, Object value) {
10846
      switch (field) {
10847
      case USER_ID:
10848
        if (value == null) {
10849
          unsetUserId();
10850
        } else {
10851
          setUserId((Long)value);
10852
        }
10853
        break;
10854
 
10855
      }
10856
    }
10857
 
10858
    public Object getFieldValue(_Fields field) {
10859
      switch (field) {
10860
      case USER_ID:
3430 rajveer 10861
        return Long.valueOf(getUserId());
48 ashish 10862
 
10863
      }
10864
      throw new IllegalStateException();
10865
    }
10866
 
3430 rajveer 10867
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10868
    public boolean isSet(_Fields field) {
10869
      if (field == null) {
10870
        throw new IllegalArgumentException();
10871
      }
48 ashish 10872
 
10873
      switch (field) {
10874
      case USER_ID:
10875
        return isSetUserId();
10876
      }
10877
      throw new IllegalStateException();
10878
    }
10879
 
10880
    @Override
10881
    public boolean equals(Object that) {
10882
      if (that == null)
10883
        return false;
553 chandransh 10884
      if (that instanceof getUserState_args)
10885
        return this.equals((getUserState_args)that);
48 ashish 10886
      return false;
10887
    }
10888
 
553 chandransh 10889
    public boolean equals(getUserState_args that) {
48 ashish 10890
      if (that == null)
10891
        return false;
10892
 
10893
      boolean this_present_userId = true;
10894
      boolean that_present_userId = true;
10895
      if (this_present_userId || that_present_userId) {
10896
        if (!(this_present_userId && that_present_userId))
10897
          return false;
10898
        if (this.userId != that.userId)
10899
          return false;
10900
      }
10901
 
10902
      return true;
10903
    }
10904
 
10905
    @Override
10906
    public int hashCode() {
10907
      return 0;
10908
    }
10909
 
553 chandransh 10910
    public int compareTo(getUserState_args other) {
48 ashish 10911
      if (!getClass().equals(other.getClass())) {
10912
        return getClass().getName().compareTo(other.getClass().getName());
10913
      }
10914
 
10915
      int lastComparison = 0;
553 chandransh 10916
      getUserState_args typedOther = (getUserState_args)other;
48 ashish 10917
 
3430 rajveer 10918
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 10919
      if (lastComparison != 0) {
10920
        return lastComparison;
10921
      }
3430 rajveer 10922
      if (isSetUserId()) {
10923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
10924
        if (lastComparison != 0) {
10925
          return lastComparison;
10926
        }
48 ashish 10927
      }
10928
      return 0;
10929
    }
10930
 
3430 rajveer 10931
    public _Fields fieldForId(int fieldId) {
10932
      return _Fields.findByThriftId(fieldId);
10933
    }
10934
 
10935
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10936
      org.apache.thrift.protocol.TField field;
48 ashish 10937
      iprot.readStructBegin();
10938
      while (true)
10939
      {
10940
        field = iprot.readFieldBegin();
3430 rajveer 10941
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10942
          break;
10943
        }
3430 rajveer 10944
        switch (field.id) {
10945
          case 1: // USER_ID
10946
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10947
              this.userId = iprot.readI64();
10948
              setUserIdIsSet(true);
10949
            } else { 
10950
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10951
            }
10952
            break;
10953
          default:
10954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10955
        }
3430 rajveer 10956
        iprot.readFieldEnd();
48 ashish 10957
      }
10958
      iprot.readStructEnd();
10959
      validate();
10960
    }
10961
 
3430 rajveer 10962
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10963
      validate();
10964
 
10965
      oprot.writeStructBegin(STRUCT_DESC);
10966
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
10967
      oprot.writeI64(this.userId);
10968
      oprot.writeFieldEnd();
10969
      oprot.writeFieldStop();
10970
      oprot.writeStructEnd();
10971
    }
10972
 
10973
    @Override
10974
    public String toString() {
553 chandransh 10975
      StringBuilder sb = new StringBuilder("getUserState_args(");
48 ashish 10976
      boolean first = true;
10977
 
10978
      sb.append("userId:");
10979
      sb.append(this.userId);
10980
      first = false;
10981
      sb.append(")");
10982
      return sb.toString();
10983
    }
10984
 
3430 rajveer 10985
    public void validate() throws org.apache.thrift.TException {
48 ashish 10986
      // check for required fields
10987
    }
10988
 
3430 rajveer 10989
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10990
      try {
10991
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10992
      } catch (org.apache.thrift.TException te) {
10993
        throw new java.io.IOException(te);
10994
      }
10995
    }
10996
 
10997
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10998
      try {
10999
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11000
        __isset_bit_vector = new BitSet(1);
11001
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11002
      } catch (org.apache.thrift.TException te) {
11003
        throw new java.io.IOException(te);
11004
      }
11005
    }
11006
 
48 ashish 11007
  }
11008
 
3430 rajveer 11009
  public static class getUserState_result implements org.apache.thrift.TBase<getUserState_result, getUserState_result._Fields>, java.io.Serializable, Cloneable   {
11010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_result");
48 ashish 11011
 
3430 rajveer 11012
    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);
11013
    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 11014
 
3430 rajveer 11015
    private UserState success; // required
11016
    private UserContextException ucex; // required
48 ashish 11017
 
11018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11020
      SUCCESS((short)0, "success"),
553 chandransh 11021
      UCEX((short)1, "ucex");
48 ashish 11022
 
11023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11024
 
11025
      static {
11026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11027
          byName.put(field.getFieldName(), field);
11028
        }
11029
      }
11030
 
11031
      /**
11032
       * Find the _Fields constant that matches fieldId, or null if its not found.
11033
       */
11034
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11035
        switch(fieldId) {
11036
          case 0: // SUCCESS
11037
            return SUCCESS;
11038
          case 1: // UCEX
11039
            return UCEX;
11040
          default:
11041
            return null;
11042
        }
48 ashish 11043
      }
11044
 
11045
      /**
11046
       * Find the _Fields constant that matches fieldId, throwing an exception
11047
       * if it is not found.
11048
       */
11049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11050
        _Fields fields = findByThriftId(fieldId);
11051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11052
        return fields;
11053
      }
11054
 
11055
      /**
11056
       * Find the _Fields constant that matches name, or null if its not found.
11057
       */
11058
      public static _Fields findByName(String name) {
11059
        return byName.get(name);
11060
      }
11061
 
11062
      private final short _thriftId;
11063
      private final String _fieldName;
11064
 
11065
      _Fields(short thriftId, String fieldName) {
11066
        _thriftId = thriftId;
11067
        _fieldName = fieldName;
11068
      }
11069
 
11070
      public short getThriftFieldId() {
11071
        return _thriftId;
11072
      }
11073
 
11074
      public String getFieldName() {
11075
        return _fieldName;
11076
      }
11077
    }
11078
 
11079
    // isset id assignments
11080
 
3430 rajveer 11081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11082
    static {
3430 rajveer 11083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11084
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11085
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserState.class)));
11086
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_result.class, metaDataMap);
48 ashish 11090
    }
11091
 
553 chandransh 11092
    public getUserState_result() {
48 ashish 11093
    }
11094
 
553 chandransh 11095
    public getUserState_result(
11096
      UserState success,
11097
      UserContextException ucex)
48 ashish 11098
    {
11099
      this();
11100
      this.success = success;
553 chandransh 11101
      this.ucex = ucex;
48 ashish 11102
    }
11103
 
11104
    /**
11105
     * Performs a deep copy on <i>other</i>.
11106
     */
553 chandransh 11107
    public getUserState_result(getUserState_result other) {
48 ashish 11108
      if (other.isSetSuccess()) {
553 chandransh 11109
        this.success = new UserState(other.success);
48 ashish 11110
      }
553 chandransh 11111
      if (other.isSetUcex()) {
11112
        this.ucex = new UserContextException(other.ucex);
48 ashish 11113
      }
11114
    }
11115
 
553 chandransh 11116
    public getUserState_result deepCopy() {
11117
      return new getUserState_result(this);
48 ashish 11118
    }
11119
 
3430 rajveer 11120
    @Override
11121
    public void clear() {
11122
      this.success = null;
11123
      this.ucex = null;
48 ashish 11124
    }
11125
 
553 chandransh 11126
    public UserState getSuccess() {
48 ashish 11127
      return this.success;
11128
    }
11129
 
3430 rajveer 11130
    public void setSuccess(UserState success) {
48 ashish 11131
      this.success = success;
11132
    }
11133
 
11134
    public void unsetSuccess() {
11135
      this.success = null;
11136
    }
11137
 
3430 rajveer 11138
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 11139
    public boolean isSetSuccess() {
11140
      return this.success != null;
11141
    }
11142
 
11143
    public void setSuccessIsSet(boolean value) {
11144
      if (!value) {
11145
        this.success = null;
11146
      }
11147
    }
11148
 
553 chandransh 11149
    public UserContextException getUcex() {
11150
      return this.ucex;
48 ashish 11151
    }
11152
 
3430 rajveer 11153
    public void setUcex(UserContextException ucex) {
553 chandransh 11154
      this.ucex = ucex;
48 ashish 11155
    }
11156
 
553 chandransh 11157
    public void unsetUcex() {
11158
      this.ucex = null;
48 ashish 11159
    }
11160
 
3430 rajveer 11161
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 11162
    public boolean isSetUcex() {
11163
      return this.ucex != null;
48 ashish 11164
    }
11165
 
553 chandransh 11166
    public void setUcexIsSet(boolean value) {
48 ashish 11167
      if (!value) {
553 chandransh 11168
        this.ucex = null;
48 ashish 11169
      }
11170
    }
11171
 
11172
    public void setFieldValue(_Fields field, Object value) {
11173
      switch (field) {
11174
      case SUCCESS:
11175
        if (value == null) {
11176
          unsetSuccess();
11177
        } else {
553 chandransh 11178
          setSuccess((UserState)value);
48 ashish 11179
        }
11180
        break;
11181
 
553 chandransh 11182
      case UCEX:
48 ashish 11183
        if (value == null) {
553 chandransh 11184
          unsetUcex();
48 ashish 11185
        } else {
553 chandransh 11186
          setUcex((UserContextException)value);
48 ashish 11187
        }
11188
        break;
11189
 
11190
      }
11191
    }
11192
 
11193
    public Object getFieldValue(_Fields field) {
11194
      switch (field) {
11195
      case SUCCESS:
11196
        return getSuccess();
11197
 
553 chandransh 11198
      case UCEX:
11199
        return getUcex();
48 ashish 11200
 
11201
      }
11202
      throw new IllegalStateException();
11203
    }
11204
 
3430 rajveer 11205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11206
    public boolean isSet(_Fields field) {
11207
      if (field == null) {
11208
        throw new IllegalArgumentException();
11209
      }
48 ashish 11210
 
11211
      switch (field) {
11212
      case SUCCESS:
11213
        return isSetSuccess();
553 chandransh 11214
      case UCEX:
11215
        return isSetUcex();
48 ashish 11216
      }
11217
      throw new IllegalStateException();
11218
    }
11219
 
11220
    @Override
11221
    public boolean equals(Object that) {
11222
      if (that == null)
11223
        return false;
553 chandransh 11224
      if (that instanceof getUserState_result)
11225
        return this.equals((getUserState_result)that);
48 ashish 11226
      return false;
11227
    }
11228
 
553 chandransh 11229
    public boolean equals(getUserState_result that) {
48 ashish 11230
      if (that == null)
11231
        return false;
11232
 
11233
      boolean this_present_success = true && this.isSetSuccess();
11234
      boolean that_present_success = true && that.isSetSuccess();
11235
      if (this_present_success || that_present_success) {
11236
        if (!(this_present_success && that_present_success))
11237
          return false;
11238
        if (!this.success.equals(that.success))
11239
          return false;
11240
      }
11241
 
553 chandransh 11242
      boolean this_present_ucex = true && this.isSetUcex();
11243
      boolean that_present_ucex = true && that.isSetUcex();
11244
      if (this_present_ucex || that_present_ucex) {
11245
        if (!(this_present_ucex && that_present_ucex))
48 ashish 11246
          return false;
553 chandransh 11247
        if (!this.ucex.equals(that.ucex))
48 ashish 11248
          return false;
11249
      }
11250
 
11251
      return true;
11252
    }
11253
 
11254
    @Override
11255
    public int hashCode() {
11256
      return 0;
11257
    }
11258
 
553 chandransh 11259
    public int compareTo(getUserState_result other) {
48 ashish 11260
      if (!getClass().equals(other.getClass())) {
11261
        return getClass().getName().compareTo(other.getClass().getName());
11262
      }
11263
 
11264
      int lastComparison = 0;
553 chandransh 11265
      getUserState_result typedOther = (getUserState_result)other;
48 ashish 11266
 
3430 rajveer 11267
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 11268
      if (lastComparison != 0) {
11269
        return lastComparison;
11270
      }
3430 rajveer 11271
      if (isSetSuccess()) {
11272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11273
        if (lastComparison != 0) {
11274
          return lastComparison;
11275
        }
48 ashish 11276
      }
3430 rajveer 11277
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
48 ashish 11278
      if (lastComparison != 0) {
11279
        return lastComparison;
11280
      }
3430 rajveer 11281
      if (isSetUcex()) {
11282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
11283
        if (lastComparison != 0) {
11284
          return lastComparison;
11285
        }
48 ashish 11286
      }
11287
      return 0;
11288
    }
11289
 
3430 rajveer 11290
    public _Fields fieldForId(int fieldId) {
11291
      return _Fields.findByThriftId(fieldId);
11292
    }
11293
 
11294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11295
      org.apache.thrift.protocol.TField field;
48 ashish 11296
      iprot.readStructBegin();
11297
      while (true)
11298
      {
11299
        field = iprot.readFieldBegin();
3430 rajveer 11300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11301
          break;
11302
        }
3430 rajveer 11303
        switch (field.id) {
11304
          case 0: // SUCCESS
11305
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11306
              this.success = new UserState();
11307
              this.success.read(iprot);
11308
            } else { 
11309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11310
            }
11311
            break;
11312
          case 1: // UCEX
11313
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11314
              this.ucex = new UserContextException();
11315
              this.ucex.read(iprot);
11316
            } else { 
11317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11318
            }
11319
            break;
11320
          default:
11321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11322
        }
3430 rajveer 11323
        iprot.readFieldEnd();
48 ashish 11324
      }
11325
      iprot.readStructEnd();
11326
      validate();
11327
    }
11328
 
3430 rajveer 11329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11330
      oprot.writeStructBegin(STRUCT_DESC);
11331
 
11332
      if (this.isSetSuccess()) {
11333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11334
        this.success.write(oprot);
11335
        oprot.writeFieldEnd();
553 chandransh 11336
      } else if (this.isSetUcex()) {
11337
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
11338
        this.ucex.write(oprot);
48 ashish 11339
        oprot.writeFieldEnd();
11340
      }
11341
      oprot.writeFieldStop();
11342
      oprot.writeStructEnd();
11343
    }
11344
 
11345
    @Override
11346
    public String toString() {
553 chandransh 11347
      StringBuilder sb = new StringBuilder("getUserState_result(");
48 ashish 11348
      boolean first = true;
11349
 
11350
      sb.append("success:");
11351
      if (this.success == null) {
11352
        sb.append("null");
11353
      } else {
11354
        sb.append(this.success);
11355
      }
11356
      first = false;
11357
      if (!first) sb.append(", ");
553 chandransh 11358
      sb.append("ucex:");
11359
      if (this.ucex == null) {
48 ashish 11360
        sb.append("null");
11361
      } else {
553 chandransh 11362
        sb.append(this.ucex);
48 ashish 11363
      }
11364
      first = false;
11365
      sb.append(")");
11366
      return sb.toString();
11367
    }
11368
 
3430 rajveer 11369
    public void validate() throws org.apache.thrift.TException {
48 ashish 11370
      // check for required fields
11371
    }
11372
 
3430 rajveer 11373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11374
      try {
11375
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11376
      } catch (org.apache.thrift.TException te) {
11377
        throw new java.io.IOException(te);
11378
      }
11379
    }
11380
 
11381
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11382
      try {
11383
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11384
      } catch (org.apache.thrift.TException te) {
11385
        throw new java.io.IOException(te);
11386
      }
11387
    }
11388
 
48 ashish 11389
  }
11390
 
3430 rajveer 11391
  public static class authenticateUser_args implements org.apache.thrift.TBase<authenticateUser_args, authenticateUser_args._Fields>, java.io.Serializable, Cloneable   {
11392
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_args");
48 ashish 11393
 
3430 rajveer 11394
    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);
11395
    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 11396
 
3430 rajveer 11397
    private String email; // required
11398
    private String password; // required
48 ashish 11399
 
11400
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11401
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11402
      EMAIL((short)1, "email"),
11403
      PASSWORD((short)2, "password");
11404
 
11405
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11406
 
11407
      static {
11408
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11409
          byName.put(field.getFieldName(), field);
11410
        }
11411
      }
11412
 
11413
      /**
11414
       * Find the _Fields constant that matches fieldId, or null if its not found.
11415
       */
11416
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11417
        switch(fieldId) {
11418
          case 1: // EMAIL
11419
            return EMAIL;
11420
          case 2: // PASSWORD
11421
            return PASSWORD;
11422
          default:
11423
            return null;
11424
        }
48 ashish 11425
      }
11426
 
11427
      /**
11428
       * Find the _Fields constant that matches fieldId, throwing an exception
11429
       * if it is not found.
11430
       */
11431
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11432
        _Fields fields = findByThriftId(fieldId);
11433
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11434
        return fields;
11435
      }
11436
 
11437
      /**
11438
       * Find the _Fields constant that matches name, or null if its not found.
11439
       */
11440
      public static _Fields findByName(String name) {
11441
        return byName.get(name);
11442
      }
11443
 
11444
      private final short _thriftId;
11445
      private final String _fieldName;
11446
 
11447
      _Fields(short thriftId, String fieldName) {
11448
        _thriftId = thriftId;
11449
        _fieldName = fieldName;
11450
      }
11451
 
11452
      public short getThriftFieldId() {
11453
        return _thriftId;
11454
      }
11455
 
11456
      public String getFieldName() {
11457
        return _fieldName;
11458
      }
11459
    }
11460
 
11461
    // isset id assignments
11462
 
3430 rajveer 11463
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11464
    static {
3430 rajveer 11465
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11466
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11467
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11468
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11469
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11470
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11471
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);
48 ashish 11472
    }
11473
 
553 chandransh 11474
    public authenticateUser_args() {
48 ashish 11475
    }
11476
 
553 chandransh 11477
    public authenticateUser_args(
48 ashish 11478
      String email,
11479
      String password)
11480
    {
11481
      this();
11482
      this.email = email;
11483
      this.password = password;
11484
    }
11485
 
11486
    /**
11487
     * Performs a deep copy on <i>other</i>.
11488
     */
553 chandransh 11489
    public authenticateUser_args(authenticateUser_args other) {
48 ashish 11490
      if (other.isSetEmail()) {
11491
        this.email = other.email;
11492
      }
11493
      if (other.isSetPassword()) {
11494
        this.password = other.password;
11495
      }
11496
    }
11497
 
553 chandransh 11498
    public authenticateUser_args deepCopy() {
11499
      return new authenticateUser_args(this);
48 ashish 11500
    }
11501
 
3430 rajveer 11502
    @Override
11503
    public void clear() {
11504
      this.email = null;
11505
      this.password = null;
48 ashish 11506
    }
11507
 
11508
    public String getEmail() {
11509
      return this.email;
11510
    }
11511
 
3430 rajveer 11512
    public void setEmail(String email) {
48 ashish 11513
      this.email = email;
11514
    }
11515
 
11516
    public void unsetEmail() {
11517
      this.email = null;
11518
    }
11519
 
3430 rajveer 11520
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
48 ashish 11521
    public boolean isSetEmail() {
11522
      return this.email != null;
11523
    }
11524
 
11525
    public void setEmailIsSet(boolean value) {
11526
      if (!value) {
11527
        this.email = null;
11528
      }
11529
    }
11530
 
11531
    public String getPassword() {
11532
      return this.password;
11533
    }
11534
 
3430 rajveer 11535
    public void setPassword(String password) {
48 ashish 11536
      this.password = password;
11537
    }
11538
 
11539
    public void unsetPassword() {
11540
      this.password = null;
11541
    }
11542
 
3430 rajveer 11543
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
48 ashish 11544
    public boolean isSetPassword() {
11545
      return this.password != null;
11546
    }
11547
 
11548
    public void setPasswordIsSet(boolean value) {
11549
      if (!value) {
11550
        this.password = null;
11551
      }
11552
    }
11553
 
11554
    public void setFieldValue(_Fields field, Object value) {
11555
      switch (field) {
11556
      case EMAIL:
11557
        if (value == null) {
11558
          unsetEmail();
11559
        } else {
11560
          setEmail((String)value);
11561
        }
11562
        break;
11563
 
11564
      case PASSWORD:
11565
        if (value == null) {
11566
          unsetPassword();
11567
        } else {
11568
          setPassword((String)value);
11569
        }
11570
        break;
11571
 
11572
      }
11573
    }
11574
 
11575
    public Object getFieldValue(_Fields field) {
11576
      switch (field) {
11577
      case EMAIL:
11578
        return getEmail();
11579
 
11580
      case PASSWORD:
11581
        return getPassword();
11582
 
11583
      }
11584
      throw new IllegalStateException();
11585
    }
11586
 
3430 rajveer 11587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11588
    public boolean isSet(_Fields field) {
11589
      if (field == null) {
11590
        throw new IllegalArgumentException();
11591
      }
48 ashish 11592
 
11593
      switch (field) {
11594
      case EMAIL:
11595
        return isSetEmail();
11596
      case PASSWORD:
11597
        return isSetPassword();
11598
      }
11599
      throw new IllegalStateException();
11600
    }
11601
 
11602
    @Override
11603
    public boolean equals(Object that) {
11604
      if (that == null)
11605
        return false;
553 chandransh 11606
      if (that instanceof authenticateUser_args)
11607
        return this.equals((authenticateUser_args)that);
48 ashish 11608
      return false;
11609
    }
11610
 
553 chandransh 11611
    public boolean equals(authenticateUser_args that) {
48 ashish 11612
      if (that == null)
11613
        return false;
11614
 
11615
      boolean this_present_email = true && this.isSetEmail();
11616
      boolean that_present_email = true && that.isSetEmail();
11617
      if (this_present_email || that_present_email) {
11618
        if (!(this_present_email && that_present_email))
11619
          return false;
11620
        if (!this.email.equals(that.email))
11621
          return false;
11622
      }
11623
 
11624
      boolean this_present_password = true && this.isSetPassword();
11625
      boolean that_present_password = true && that.isSetPassword();
11626
      if (this_present_password || that_present_password) {
11627
        if (!(this_present_password && that_present_password))
11628
          return false;
11629
        if (!this.password.equals(that.password))
11630
          return false;
11631
      }
11632
 
11633
      return true;
11634
    }
11635
 
11636
    @Override
11637
    public int hashCode() {
11638
      return 0;
11639
    }
11640
 
553 chandransh 11641
    public int compareTo(authenticateUser_args other) {
48 ashish 11642
      if (!getClass().equals(other.getClass())) {
11643
        return getClass().getName().compareTo(other.getClass().getName());
11644
      }
11645
 
11646
      int lastComparison = 0;
553 chandransh 11647
      authenticateUser_args typedOther = (authenticateUser_args)other;
48 ashish 11648
 
3430 rajveer 11649
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
48 ashish 11650
      if (lastComparison != 0) {
11651
        return lastComparison;
11652
      }
3430 rajveer 11653
      if (isSetEmail()) {
11654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
11655
        if (lastComparison != 0) {
11656
          return lastComparison;
11657
        }
48 ashish 11658
      }
3430 rajveer 11659
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
48 ashish 11660
      if (lastComparison != 0) {
11661
        return lastComparison;
11662
      }
3430 rajveer 11663
      if (isSetPassword()) {
11664
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11665
        if (lastComparison != 0) {
11666
          return lastComparison;
11667
        }
48 ashish 11668
      }
11669
      return 0;
11670
    }
11671
 
3430 rajveer 11672
    public _Fields fieldForId(int fieldId) {
11673
      return _Fields.findByThriftId(fieldId);
11674
    }
11675
 
11676
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11677
      org.apache.thrift.protocol.TField field;
48 ashish 11678
      iprot.readStructBegin();
11679
      while (true)
11680
      {
11681
        field = iprot.readFieldBegin();
3430 rajveer 11682
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11683
          break;
11684
        }
3430 rajveer 11685
        switch (field.id) {
11686
          case 1: // EMAIL
11687
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11688
              this.email = iprot.readString();
11689
            } else { 
11690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11691
            }
11692
            break;
11693
          case 2: // PASSWORD
11694
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11695
              this.password = iprot.readString();
11696
            } else { 
11697
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11698
            }
11699
            break;
11700
          default:
11701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11702
        }
3430 rajveer 11703
        iprot.readFieldEnd();
48 ashish 11704
      }
11705
      iprot.readStructEnd();
11706
      validate();
11707
    }
11708
 
3430 rajveer 11709
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11710
      validate();
11711
 
11712
      oprot.writeStructBegin(STRUCT_DESC);
11713
      if (this.email != null) {
11714
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
11715
        oprot.writeString(this.email);
11716
        oprot.writeFieldEnd();
11717
      }
11718
      if (this.password != null) {
11719
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11720
        oprot.writeString(this.password);
11721
        oprot.writeFieldEnd();
11722
      }
11723
      oprot.writeFieldStop();
11724
      oprot.writeStructEnd();
11725
    }
11726
 
11727
    @Override
11728
    public String toString() {
553 chandransh 11729
      StringBuilder sb = new StringBuilder("authenticateUser_args(");
48 ashish 11730
      boolean first = true;
11731
 
11732
      sb.append("email:");
11733
      if (this.email == null) {
11734
        sb.append("null");
11735
      } else {
11736
        sb.append(this.email);
11737
      }
11738
      first = false;
11739
      if (!first) sb.append(", ");
11740
      sb.append("password:");
11741
      if (this.password == null) {
11742
        sb.append("null");
11743
      } else {
11744
        sb.append(this.password);
11745
      }
11746
      first = false;
11747
      sb.append(")");
11748
      return sb.toString();
11749
    }
11750
 
3430 rajveer 11751
    public void validate() throws org.apache.thrift.TException {
48 ashish 11752
      // check for required fields
11753
    }
11754
 
3430 rajveer 11755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11756
      try {
11757
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11758
      } catch (org.apache.thrift.TException te) {
11759
        throw new java.io.IOException(te);
11760
      }
11761
    }
11762
 
11763
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11764
      try {
11765
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11766
      } catch (org.apache.thrift.TException te) {
11767
        throw new java.io.IOException(te);
11768
      }
11769
    }
11770
 
48 ashish 11771
  }
11772
 
3430 rajveer 11773
  public static class authenticateUser_result implements org.apache.thrift.TBase<authenticateUser_result, authenticateUser_result._Fields>, java.io.Serializable, Cloneable   {
11774
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_result");
48 ashish 11775
 
3430 rajveer 11776
    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);
11777
    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 11778
 
3430 rajveer 11779
    private User success; // required
11780
    private AuthenticationException auex; // required
48 ashish 11781
 
11782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11783
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11784
      SUCCESS((short)0, "success"),
553 chandransh 11785
      AUEX((short)1, "auex");
48 ashish 11786
 
11787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11788
 
11789
      static {
11790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11791
          byName.put(field.getFieldName(), field);
11792
        }
11793
      }
11794
 
11795
      /**
11796
       * Find the _Fields constant that matches fieldId, or null if its not found.
11797
       */
11798
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11799
        switch(fieldId) {
11800
          case 0: // SUCCESS
11801
            return SUCCESS;
11802
          case 1: // AUEX
11803
            return AUEX;
11804
          default:
11805
            return null;
11806
        }
48 ashish 11807
      }
11808
 
11809
      /**
11810
       * Find the _Fields constant that matches fieldId, throwing an exception
11811
       * if it is not found.
11812
       */
11813
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11814
        _Fields fields = findByThriftId(fieldId);
11815
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11816
        return fields;
11817
      }
11818
 
11819
      /**
11820
       * Find the _Fields constant that matches name, or null if its not found.
11821
       */
11822
      public static _Fields findByName(String name) {
11823
        return byName.get(name);
11824
      }
11825
 
11826
      private final short _thriftId;
11827
      private final String _fieldName;
11828
 
11829
      _Fields(short thriftId, String fieldName) {
11830
        _thriftId = thriftId;
11831
        _fieldName = fieldName;
11832
      }
11833
 
11834
      public short getThriftFieldId() {
11835
        return _thriftId;
11836
      }
11837
 
11838
      public String getFieldName() {
11839
        return _fieldName;
11840
      }
11841
    }
11842
 
11843
    // isset id assignments
11844
 
3430 rajveer 11845
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11846
    static {
3430 rajveer 11847
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11848
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11849
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
11850
      tmpMap.put(_Fields.AUEX, new org.apache.thrift.meta_data.FieldMetaData("auex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);
48 ashish 11854
    }
11855
 
553 chandransh 11856
    public authenticateUser_result() {
48 ashish 11857
    }
11858
 
553 chandransh 11859
    public authenticateUser_result(
11860
      User success,
11861
      AuthenticationException auex)
48 ashish 11862
    {
11863
      this();
11864
      this.success = success;
553 chandransh 11865
      this.auex = auex;
48 ashish 11866
    }
11867
 
11868
    /**
11869
     * Performs a deep copy on <i>other</i>.
11870
     */
553 chandransh 11871
    public authenticateUser_result(authenticateUser_result other) {
48 ashish 11872
      if (other.isSetSuccess()) {
553 chandransh 11873
        this.success = new User(other.success);
48 ashish 11874
      }
553 chandransh 11875
      if (other.isSetAuex()) {
11876
        this.auex = new AuthenticationException(other.auex);
48 ashish 11877
      }
11878
    }
11879
 
553 chandransh 11880
    public authenticateUser_result deepCopy() {
11881
      return new authenticateUser_result(this);
48 ashish 11882
    }
11883
 
3430 rajveer 11884
    @Override
11885
    public void clear() {
11886
      this.success = null;
11887
      this.auex = null;
48 ashish 11888
    }
11889
 
553 chandransh 11890
    public User getSuccess() {
48 ashish 11891
      return this.success;
11892
    }
11893
 
3430 rajveer 11894
    public void setSuccess(User success) {
48 ashish 11895
      this.success = success;
11896
    }
11897
 
11898
    public void unsetSuccess() {
11899
      this.success = null;
11900
    }
11901
 
3430 rajveer 11902
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 11903
    public boolean isSetSuccess() {
11904
      return this.success != null;
11905
    }
11906
 
11907
    public void setSuccessIsSet(boolean value) {
11908
      if (!value) {
11909
        this.success = null;
11910
      }
11911
    }
11912
 
553 chandransh 11913
    public AuthenticationException getAuex() {
11914
      return this.auex;
48 ashish 11915
    }
11916
 
3430 rajveer 11917
    public void setAuex(AuthenticationException auex) {
553 chandransh 11918
      this.auex = auex;
48 ashish 11919
    }
11920
 
553 chandransh 11921
    public void unsetAuex() {
11922
      this.auex = null;
48 ashish 11923
    }
11924
 
3430 rajveer 11925
    /** Returns true if field auex is set (has been assigned a value) and false otherwise */
553 chandransh 11926
    public boolean isSetAuex() {
11927
      return this.auex != null;
48 ashish 11928
    }
11929
 
553 chandransh 11930
    public void setAuexIsSet(boolean value) {
48 ashish 11931
      if (!value) {
553 chandransh 11932
        this.auex = null;
48 ashish 11933
      }
11934
    }
11935
 
11936
    public void setFieldValue(_Fields field, Object value) {
11937
      switch (field) {
11938
      case SUCCESS:
11939
        if (value == null) {
11940
          unsetSuccess();
11941
        } else {
553 chandransh 11942
          setSuccess((User)value);
48 ashish 11943
        }
11944
        break;
11945
 
553 chandransh 11946
      case AUEX:
48 ashish 11947
        if (value == null) {
553 chandransh 11948
          unsetAuex();
48 ashish 11949
        } else {
553 chandransh 11950
          setAuex((AuthenticationException)value);
48 ashish 11951
        }
11952
        break;
11953
 
11954
      }
11955
    }
11956
 
11957
    public Object getFieldValue(_Fields field) {
11958
      switch (field) {
11959
      case SUCCESS:
11960
        return getSuccess();
11961
 
553 chandransh 11962
      case AUEX:
11963
        return getAuex();
48 ashish 11964
 
11965
      }
11966
      throw new IllegalStateException();
11967
    }
11968
 
3430 rajveer 11969
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11970
    public boolean isSet(_Fields field) {
11971
      if (field == null) {
11972
        throw new IllegalArgumentException();
11973
      }
48 ashish 11974
 
11975
      switch (field) {
11976
      case SUCCESS:
11977
        return isSetSuccess();
553 chandransh 11978
      case AUEX:
11979
        return isSetAuex();
48 ashish 11980
      }
11981
      throw new IllegalStateException();
11982
    }
11983
 
11984
    @Override
11985
    public boolean equals(Object that) {
11986
      if (that == null)
11987
        return false;
553 chandransh 11988
      if (that instanceof authenticateUser_result)
11989
        return this.equals((authenticateUser_result)that);
48 ashish 11990
      return false;
11991
    }
11992
 
553 chandransh 11993
    public boolean equals(authenticateUser_result that) {
48 ashish 11994
      if (that == null)
11995
        return false;
11996
 
11997
      boolean this_present_success = true && this.isSetSuccess();
11998
      boolean that_present_success = true && that.isSetSuccess();
11999
      if (this_present_success || that_present_success) {
12000
        if (!(this_present_success && that_present_success))
12001
          return false;
12002
        if (!this.success.equals(that.success))
12003
          return false;
12004
      }
12005
 
553 chandransh 12006
      boolean this_present_auex = true && this.isSetAuex();
12007
      boolean that_present_auex = true && that.isSetAuex();
12008
      if (this_present_auex || that_present_auex) {
12009
        if (!(this_present_auex && that_present_auex))
48 ashish 12010
          return false;
553 chandransh 12011
        if (!this.auex.equals(that.auex))
48 ashish 12012
          return false;
12013
      }
12014
 
12015
      return true;
12016
    }
12017
 
12018
    @Override
12019
    public int hashCode() {
12020
      return 0;
12021
    }
12022
 
571 rajveer 12023
    public int compareTo(authenticateUser_result other) {
12024
      if (!getClass().equals(other.getClass())) {
12025
        return getClass().getName().compareTo(other.getClass().getName());
12026
      }
12027
 
12028
      int lastComparison = 0;
12029
      authenticateUser_result typedOther = (authenticateUser_result)other;
12030
 
3430 rajveer 12031
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 12032
      if (lastComparison != 0) {
12033
        return lastComparison;
12034
      }
3430 rajveer 12035
      if (isSetSuccess()) {
12036
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12037
        if (lastComparison != 0) {
12038
          return lastComparison;
12039
        }
571 rajveer 12040
      }
3430 rajveer 12041
      lastComparison = Boolean.valueOf(isSetAuex()).compareTo(typedOther.isSetAuex());
571 rajveer 12042
      if (lastComparison != 0) {
12043
        return lastComparison;
12044
      }
3430 rajveer 12045
      if (isSetAuex()) {
12046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auex, typedOther.auex);
12047
        if (lastComparison != 0) {
12048
          return lastComparison;
12049
        }
571 rajveer 12050
      }
12051
      return 0;
12052
    }
12053
 
3430 rajveer 12054
    public _Fields fieldForId(int fieldId) {
12055
      return _Fields.findByThriftId(fieldId);
12056
    }
12057
 
12058
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12059
      org.apache.thrift.protocol.TField field;
48 ashish 12060
      iprot.readStructBegin();
12061
      while (true)
12062
      {
12063
        field = iprot.readFieldBegin();
3430 rajveer 12064
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 12065
          break;
12066
        }
3430 rajveer 12067
        switch (field.id) {
12068
          case 0: // SUCCESS
12069
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12070
              this.success = new User();
12071
              this.success.read(iprot);
12072
            } else { 
12073
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12074
            }
12075
            break;
12076
          case 1: // AUEX
12077
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12078
              this.auex = new AuthenticationException();
12079
              this.auex.read(iprot);
12080
            } else { 
12081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12082
            }
12083
            break;
12084
          default:
12085
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 12086
        }
3430 rajveer 12087
        iprot.readFieldEnd();
48 ashish 12088
      }
12089
      iprot.readStructEnd();
12090
      validate();
12091
    }
12092
 
3430 rajveer 12093
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 12094
      oprot.writeStructBegin(STRUCT_DESC);
12095
 
12096
      if (this.isSetSuccess()) {
12097
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12098
        this.success.write(oprot);
12099
        oprot.writeFieldEnd();
553 chandransh 12100
      } else if (this.isSetAuex()) {
12101
        oprot.writeFieldBegin(AUEX_FIELD_DESC);
12102
        this.auex.write(oprot);
48 ashish 12103
        oprot.writeFieldEnd();
12104
      }
12105
      oprot.writeFieldStop();
12106
      oprot.writeStructEnd();
12107
    }
12108
 
12109
    @Override
12110
    public String toString() {
553 chandransh 12111
      StringBuilder sb = new StringBuilder("authenticateUser_result(");
48 ashish 12112
      boolean first = true;
12113
 
12114
      sb.append("success:");
12115
      if (this.success == null) {
12116
        sb.append("null");
12117
      } else {
12118
        sb.append(this.success);
12119
      }
12120
      first = false;
12121
      if (!first) sb.append(", ");
553 chandransh 12122
      sb.append("auex:");
12123
      if (this.auex == null) {
48 ashish 12124
        sb.append("null");
12125
      } else {
553 chandransh 12126
        sb.append(this.auex);
48 ashish 12127
      }
12128
      first = false;
12129
      sb.append(")");
12130
      return sb.toString();
12131
    }
12132
 
3430 rajveer 12133
    public void validate() throws org.apache.thrift.TException {
48 ashish 12134
      // check for required fields
12135
    }
12136
 
3430 rajveer 12137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12138
      try {
12139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12140
      } catch (org.apache.thrift.TException te) {
12141
        throw new java.io.IOException(te);
12142
      }
12143
    }
12144
 
12145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12146
      try {
12147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12148
      } catch (org.apache.thrift.TException te) {
12149
        throw new java.io.IOException(te);
12150
      }
12151
    }
12152
 
48 ashish 12153
  }
12154
 
3430 rajveer 12155
  public static class userExists_args implements org.apache.thrift.TBase<userExists_args, userExists_args._Fields>, java.io.Serializable, Cloneable   {
12156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("userExists_args");
123 ashish 12157
 
3430 rajveer 12158
    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 12159
 
3430 rajveer 12160
    private String email; // required
123 ashish 12161
 
12162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12164
      EMAIL((short)1, "email");
123 ashish 12165
 
12166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12167
 
12168
      static {
12169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12170
          byName.put(field.getFieldName(), field);
12171
        }
12172
      }
12173
 
12174
      /**
12175
       * Find the _Fields constant that matches fieldId, or null if its not found.
12176
       */
12177
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12178
        switch(fieldId) {
12179
          case 1: // EMAIL
12180
            return EMAIL;
12181
          default:
12182
            return null;
12183
        }
123 ashish 12184
      }
12185
 
12186
      /**
12187
       * Find the _Fields constant that matches fieldId, throwing an exception
12188
       * if it is not found.
12189
       */
12190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12191
        _Fields fields = findByThriftId(fieldId);
12192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12193
        return fields;
12194
      }
12195
 
12196
      /**
12197
       * Find the _Fields constant that matches name, or null if its not found.
12198
       */
12199
      public static _Fields findByName(String name) {
12200
        return byName.get(name);
12201
      }
12202
 
12203
      private final short _thriftId;
12204
      private final String _fieldName;
12205
 
12206
      _Fields(short thriftId, String fieldName) {
12207
        _thriftId = thriftId;
12208
        _fieldName = fieldName;
12209
      }
12210
 
12211
      public short getThriftFieldId() {
12212
        return _thriftId;
12213
      }
12214
 
12215
      public String getFieldName() {
12216
        return _fieldName;
12217
      }
12218
    }
12219
 
12220
    // isset id assignments
553 chandransh 12221
 
3430 rajveer 12222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 12223
    static {
3430 rajveer 12224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12225
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userExists_args.class, metaDataMap);
553 chandransh 12229
    }
12230
 
12231
    public userExists_args() {
12232
    }
12233
 
12234
    public userExists_args(
12235
      String email)
12236
    {
12237
      this();
12238
      this.email = email;
12239
    }
12240
 
12241
    /**
12242
     * Performs a deep copy on <i>other</i>.
12243
     */
12244
    public userExists_args(userExists_args other) {
12245
      if (other.isSetEmail()) {
12246
        this.email = other.email;
12247
      }
12248
    }
12249
 
12250
    public userExists_args deepCopy() {
12251
      return new userExists_args(this);
12252
    }
12253
 
3430 rajveer 12254
    @Override
12255
    public void clear() {
12256
      this.email = null;
553 chandransh 12257
    }
12258
 
12259
    public String getEmail() {
12260
      return this.email;
12261
    }
12262
 
3430 rajveer 12263
    public void setEmail(String email) {
553 chandransh 12264
      this.email = email;
12265
    }
12266
 
12267
    public void unsetEmail() {
12268
      this.email = null;
12269
    }
12270
 
3430 rajveer 12271
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
553 chandransh 12272
    public boolean isSetEmail() {
12273
      return this.email != null;
12274
    }
12275
 
12276
    public void setEmailIsSet(boolean value) {
12277
      if (!value) {
12278
        this.email = null;
12279
      }
12280
    }
12281
 
12282
    public void setFieldValue(_Fields field, Object value) {
12283
      switch (field) {
12284
      case EMAIL:
12285
        if (value == null) {
12286
          unsetEmail();
12287
        } else {
12288
          setEmail((String)value);
12289
        }
12290
        break;
12291
 
12292
      }
12293
    }
12294
 
12295
    public Object getFieldValue(_Fields field) {
12296
      switch (field) {
12297
      case EMAIL:
12298
        return getEmail();
12299
 
12300
      }
12301
      throw new IllegalStateException();
12302
    }
12303
 
3430 rajveer 12304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12305
    public boolean isSet(_Fields field) {
12306
      if (field == null) {
12307
        throw new IllegalArgumentException();
12308
      }
553 chandransh 12309
 
12310
      switch (field) {
12311
      case EMAIL:
12312
        return isSetEmail();
12313
      }
12314
      throw new IllegalStateException();
12315
    }
12316
 
12317
    @Override
12318
    public boolean equals(Object that) {
12319
      if (that == null)
12320
        return false;
12321
      if (that instanceof userExists_args)
12322
        return this.equals((userExists_args)that);
12323
      return false;
12324
    }
12325
 
12326
    public boolean equals(userExists_args that) {
12327
      if (that == null)
12328
        return false;
12329
 
12330
      boolean this_present_email = true && this.isSetEmail();
12331
      boolean that_present_email = true && that.isSetEmail();
12332
      if (this_present_email || that_present_email) {
12333
        if (!(this_present_email && that_present_email))
12334
          return false;
12335
        if (!this.email.equals(that.email))
12336
          return false;
12337
      }
12338
 
12339
      return true;
12340
    }
12341
 
12342
    @Override
12343
    public int hashCode() {
12344
      return 0;
12345
    }
12346
 
12347
    public int compareTo(userExists_args other) {
12348
      if (!getClass().equals(other.getClass())) {
12349
        return getClass().getName().compareTo(other.getClass().getName());
12350
      }
12351
 
12352
      int lastComparison = 0;
12353
      userExists_args typedOther = (userExists_args)other;
12354
 
3430 rajveer 12355
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
553 chandransh 12356
      if (lastComparison != 0) {
12357
        return lastComparison;
12358
      }
3430 rajveer 12359
      if (isSetEmail()) {
12360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
12361
        if (lastComparison != 0) {
12362
          return lastComparison;
12363
        }
553 chandransh 12364
      }
12365
      return 0;
12366
    }
12367
 
3430 rajveer 12368
    public _Fields fieldForId(int fieldId) {
12369
      return _Fields.findByThriftId(fieldId);
12370
    }
12371
 
12372
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12373
      org.apache.thrift.protocol.TField field;
553 chandransh 12374
      iprot.readStructBegin();
12375
      while (true)
12376
      {
12377
        field = iprot.readFieldBegin();
3430 rajveer 12378
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 12379
          break;
12380
        }
3430 rajveer 12381
        switch (field.id) {
12382
          case 1: // EMAIL
12383
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12384
              this.email = iprot.readString();
12385
            } else { 
12386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12387
            }
12388
            break;
12389
          default:
12390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 12391
        }
3430 rajveer 12392
        iprot.readFieldEnd();
553 chandransh 12393
      }
12394
      iprot.readStructEnd();
12395
      validate();
12396
    }
12397
 
3430 rajveer 12398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 12399
      validate();
12400
 
12401
      oprot.writeStructBegin(STRUCT_DESC);
12402
      if (this.email != null) {
12403
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
12404
        oprot.writeString(this.email);
12405
        oprot.writeFieldEnd();
12406
      }
12407
      oprot.writeFieldStop();
12408
      oprot.writeStructEnd();
12409
    }
12410
 
12411
    @Override
12412
    public String toString() {
12413
      StringBuilder sb = new StringBuilder("userExists_args(");
12414
      boolean first = true;
12415
 
12416
      sb.append("email:");
12417
      if (this.email == null) {
12418
        sb.append("null");
12419
      } else {
12420
        sb.append(this.email);
12421
      }
12422
      first = false;
12423
      sb.append(")");
12424
      return sb.toString();
12425
    }
12426
 
3430 rajveer 12427
    public void validate() throws org.apache.thrift.TException {
553 chandransh 12428
      // check for required fields
12429
    }
12430
 
3430 rajveer 12431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12432
      try {
12433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12434
      } catch (org.apache.thrift.TException te) {
12435
        throw new java.io.IOException(te);
12436
      }
12437
    }
12438
 
12439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12440
      try {
12441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12442
      } catch (org.apache.thrift.TException te) {
12443
        throw new java.io.IOException(te);
12444
      }
12445
    }
12446
 
553 chandransh 12447
  }
12448
 
3430 rajveer 12449
  public static class userExists_result implements org.apache.thrift.TBase<userExists_result, userExists_result._Fields>, java.io.Serializable, Cloneable   {
12450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("userExists_result");
553 chandransh 12451
 
3430 rajveer 12452
    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);
12453
    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 12454
 
3430 rajveer 12455
    private boolean success; // required
12456
    private UserContextException ucx; // required
553 chandransh 12457
 
12458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12460
      SUCCESS((short)0, "success"),
12461
      UCX((short)1, "ucx");
12462
 
12463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12464
 
12465
      static {
12466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12467
          byName.put(field.getFieldName(), field);
12468
        }
12469
      }
12470
 
12471
      /**
12472
       * Find the _Fields constant that matches fieldId, or null if its not found.
12473
       */
12474
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12475
        switch(fieldId) {
12476
          case 0: // SUCCESS
12477
            return SUCCESS;
12478
          case 1: // UCX
12479
            return UCX;
12480
          default:
12481
            return null;
12482
        }
553 chandransh 12483
      }
12484
 
12485
      /**
12486
       * Find the _Fields constant that matches fieldId, throwing an exception
12487
       * if it is not found.
12488
       */
12489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12490
        _Fields fields = findByThriftId(fieldId);
12491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12492
        return fields;
12493
      }
12494
 
12495
      /**
12496
       * Find the _Fields constant that matches name, or null if its not found.
12497
       */
12498
      public static _Fields findByName(String name) {
12499
        return byName.get(name);
12500
      }
12501
 
12502
      private final short _thriftId;
12503
      private final String _fieldName;
12504
 
12505
      _Fields(short thriftId, String fieldName) {
12506
        _thriftId = thriftId;
12507
        _fieldName = fieldName;
12508
      }
12509
 
12510
      public short getThriftFieldId() {
12511
        return _thriftId;
12512
      }
12513
 
12514
      public String getFieldName() {
12515
        return _fieldName;
12516
      }
12517
    }
12518
 
12519
    // isset id assignments
12520
    private static final int __SUCCESS_ISSET_ID = 0;
123 ashish 12521
    private BitSet __isset_bit_vector = new BitSet(1);
12522
 
3430 rajveer 12523
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 12524
    static {
3430 rajveer 12525
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12526
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12528
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12530
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12531
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userExists_result.class, metaDataMap);
123 ashish 12532
    }
12533
 
553 chandransh 12534
    public userExists_result() {
123 ashish 12535
    }
12536
 
553 chandransh 12537
    public userExists_result(
12538
      boolean success,
12539
      UserContextException ucx)
123 ashish 12540
    {
12541
      this();
553 chandransh 12542
      this.success = success;
12543
      setSuccessIsSet(true);
12544
      this.ucx = ucx;
123 ashish 12545
    }
12546
 
12547
    /**
12548
     * Performs a deep copy on <i>other</i>.
12549
     */
553 chandransh 12550
    public userExists_result(userExists_result other) {
123 ashish 12551
      __isset_bit_vector.clear();
12552
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 12553
      this.success = other.success;
12554
      if (other.isSetUcx()) {
12555
        this.ucx = new UserContextException(other.ucx);
123 ashish 12556
      }
12557
    }
12558
 
553 chandransh 12559
    public userExists_result deepCopy() {
12560
      return new userExists_result(this);
123 ashish 12561
    }
12562
 
3430 rajveer 12563
    @Override
12564
    public void clear() {
12565
      setSuccessIsSet(false);
12566
      this.success = false;
12567
      this.ucx = null;
123 ashish 12568
    }
12569
 
553 chandransh 12570
    public boolean isSuccess() {
12571
      return this.success;
123 ashish 12572
    }
12573
 
3430 rajveer 12574
    public void setSuccess(boolean success) {
553 chandransh 12575
      this.success = success;
12576
      setSuccessIsSet(true);
123 ashish 12577
    }
12578
 
553 chandransh 12579
    public void unsetSuccess() {
12580
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 12581
    }
12582
 
3430 rajveer 12583
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 12584
    public boolean isSetSuccess() {
12585
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 12586
    }
12587
 
553 chandransh 12588
    public void setSuccessIsSet(boolean value) {
12589
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12590
    }
12591
 
12592
    public UserContextException getUcx() {
12593
      return this.ucx;
12594
    }
12595
 
3430 rajveer 12596
    public void setUcx(UserContextException ucx) {
553 chandransh 12597
      this.ucx = ucx;
12598
    }
12599
 
12600
    public void unsetUcx() {
12601
      this.ucx = null;
12602
    }
12603
 
3430 rajveer 12604
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
553 chandransh 12605
    public boolean isSetUcx() {
12606
      return this.ucx != null;
12607
    }
12608
 
12609
    public void setUcxIsSet(boolean value) {
123 ashish 12610
      if (!value) {
553 chandransh 12611
        this.ucx = null;
123 ashish 12612
      }
12613
    }
12614
 
553 chandransh 12615
    public void setFieldValue(_Fields field, Object value) {
12616
      switch (field) {
12617
      case SUCCESS:
12618
        if (value == null) {
12619
          unsetSuccess();
12620
        } else {
12621
          setSuccess((Boolean)value);
12622
        }
12623
        break;
12624
 
12625
      case UCX:
12626
        if (value == null) {
12627
          unsetUcx();
12628
        } else {
12629
          setUcx((UserContextException)value);
12630
        }
12631
        break;
12632
 
12633
      }
123 ashish 12634
    }
12635
 
553 chandransh 12636
    public Object getFieldValue(_Fields field) {
12637
      switch (field) {
12638
      case SUCCESS:
3430 rajveer 12639
        return Boolean.valueOf(isSuccess());
553 chandransh 12640
 
12641
      case UCX:
12642
        return getUcx();
12643
 
12644
      }
12645
      throw new IllegalStateException();
12646
    }
12647
 
3430 rajveer 12648
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12649
    public boolean isSet(_Fields field) {
12650
      if (field == null) {
12651
        throw new IllegalArgumentException();
12652
      }
553 chandransh 12653
 
12654
      switch (field) {
12655
      case SUCCESS:
12656
        return isSetSuccess();
12657
      case UCX:
12658
        return isSetUcx();
12659
      }
12660
      throw new IllegalStateException();
12661
    }
12662
 
12663
    @Override
12664
    public boolean equals(Object that) {
12665
      if (that == null)
12666
        return false;
12667
      if (that instanceof userExists_result)
12668
        return this.equals((userExists_result)that);
12669
      return false;
12670
    }
12671
 
12672
    public boolean equals(userExists_result that) {
12673
      if (that == null)
12674
        return false;
12675
 
12676
      boolean this_present_success = true;
12677
      boolean that_present_success = true;
12678
      if (this_present_success || that_present_success) {
12679
        if (!(this_present_success && that_present_success))
12680
          return false;
12681
        if (this.success != that.success)
12682
          return false;
12683
      }
12684
 
12685
      boolean this_present_ucx = true && this.isSetUcx();
12686
      boolean that_present_ucx = true && that.isSetUcx();
12687
      if (this_present_ucx || that_present_ucx) {
12688
        if (!(this_present_ucx && that_present_ucx))
12689
          return false;
12690
        if (!this.ucx.equals(that.ucx))
12691
          return false;
12692
      }
12693
 
12694
      return true;
12695
    }
12696
 
12697
    @Override
12698
    public int hashCode() {
12699
      return 0;
12700
    }
12701
 
12702
    public int compareTo(userExists_result other) {
12703
      if (!getClass().equals(other.getClass())) {
12704
        return getClass().getName().compareTo(other.getClass().getName());
12705
      }
12706
 
12707
      int lastComparison = 0;
12708
      userExists_result typedOther = (userExists_result)other;
12709
 
3430 rajveer 12710
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 12711
      if (lastComparison != 0) {
12712
        return lastComparison;
12713
      }
3430 rajveer 12714
      if (isSetSuccess()) {
12715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12716
        if (lastComparison != 0) {
12717
          return lastComparison;
12718
        }
553 chandransh 12719
      }
3430 rajveer 12720
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
553 chandransh 12721
      if (lastComparison != 0) {
12722
        return lastComparison;
12723
      }
3430 rajveer 12724
      if (isSetUcx()) {
12725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
12726
        if (lastComparison != 0) {
12727
          return lastComparison;
12728
        }
553 chandransh 12729
      }
12730
      return 0;
12731
    }
12732
 
3430 rajveer 12733
    public _Fields fieldForId(int fieldId) {
12734
      return _Fields.findByThriftId(fieldId);
12735
    }
12736
 
12737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12738
      org.apache.thrift.protocol.TField field;
553 chandransh 12739
      iprot.readStructBegin();
12740
      while (true)
12741
      {
12742
        field = iprot.readFieldBegin();
3430 rajveer 12743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 12744
          break;
12745
        }
3430 rajveer 12746
        switch (field.id) {
12747
          case 0: // SUCCESS
12748
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12749
              this.success = iprot.readBool();
12750
              setSuccessIsSet(true);
12751
            } else { 
12752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12753
            }
12754
            break;
12755
          case 1: // UCX
12756
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12757
              this.ucx = new UserContextException();
12758
              this.ucx.read(iprot);
12759
            } else { 
12760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12761
            }
12762
            break;
12763
          default:
12764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 12765
        }
3430 rajveer 12766
        iprot.readFieldEnd();
553 chandransh 12767
      }
12768
      iprot.readStructEnd();
12769
      validate();
12770
    }
12771
 
3430 rajveer 12772
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 12773
      oprot.writeStructBegin(STRUCT_DESC);
12774
 
12775
      if (this.isSetSuccess()) {
12776
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12777
        oprot.writeBool(this.success);
12778
        oprot.writeFieldEnd();
12779
      } else if (this.isSetUcx()) {
12780
        oprot.writeFieldBegin(UCX_FIELD_DESC);
12781
        this.ucx.write(oprot);
12782
        oprot.writeFieldEnd();
12783
      }
12784
      oprot.writeFieldStop();
12785
      oprot.writeStructEnd();
12786
    }
12787
 
12788
    @Override
12789
    public String toString() {
12790
      StringBuilder sb = new StringBuilder("userExists_result(");
12791
      boolean first = true;
12792
 
12793
      sb.append("success:");
12794
      sb.append(this.success);
12795
      first = false;
12796
      if (!first) sb.append(", ");
12797
      sb.append("ucx:");
12798
      if (this.ucx == null) {
12799
        sb.append("null");
12800
      } else {
12801
        sb.append(this.ucx);
12802
      }
12803
      first = false;
12804
      sb.append(")");
12805
      return sb.toString();
12806
    }
12807
 
3430 rajveer 12808
    public void validate() throws org.apache.thrift.TException {
553 chandransh 12809
      // check for required fields
12810
    }
12811
 
3430 rajveer 12812
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12813
      try {
12814
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12815
      } catch (org.apache.thrift.TException te) {
12816
        throw new java.io.IOException(te);
12817
      }
12818
    }
12819
 
12820
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12821
      try {
12822
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12823
      } catch (org.apache.thrift.TException te) {
12824
        throw new java.io.IOException(te);
12825
      }
12826
    }
12827
 
553 chandransh 12828
  }
12829
 
3430 rajveer 12830
  public static class addAddressForUser_args implements org.apache.thrift.TBase<addAddressForUser_args, addAddressForUser_args._Fields>, java.io.Serializable, Cloneable   {
12831
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressForUser_args");
553 chandransh 12832
 
3430 rajveer 12833
    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);
12834
    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);
12835
    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 12836
 
3430 rajveer 12837
    private long userId; // required
12838
    private Address address; // required
12839
    private boolean setDefault; // required
553 chandransh 12840
 
12841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12842
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12843
      USER_ID((short)1, "userId"),
12844
      ADDRESS((short)2, "address"),
571 rajveer 12845
      SET_DEFAULT((short)3, "setDefault");
553 chandransh 12846
 
12847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12848
 
12849
      static {
12850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12851
          byName.put(field.getFieldName(), field);
12852
        }
12853
      }
12854
 
12855
      /**
12856
       * Find the _Fields constant that matches fieldId, or null if its not found.
12857
       */
12858
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12859
        switch(fieldId) {
12860
          case 1: // USER_ID
12861
            return USER_ID;
12862
          case 2: // ADDRESS
12863
            return ADDRESS;
12864
          case 3: // SET_DEFAULT
12865
            return SET_DEFAULT;
12866
          default:
12867
            return null;
12868
        }
553 chandransh 12869
      }
12870
 
12871
      /**
12872
       * Find the _Fields constant that matches fieldId, throwing an exception
12873
       * if it is not found.
12874
       */
12875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12876
        _Fields fields = findByThriftId(fieldId);
12877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12878
        return fields;
12879
      }
12880
 
12881
      /**
12882
       * Find the _Fields constant that matches name, or null if its not found.
12883
       */
12884
      public static _Fields findByName(String name) {
12885
        return byName.get(name);
12886
      }
12887
 
12888
      private final short _thriftId;
12889
      private final String _fieldName;
12890
 
12891
      _Fields(short thriftId, String fieldName) {
12892
        _thriftId = thriftId;
12893
        _fieldName = fieldName;
12894
      }
12895
 
12896
      public short getThriftFieldId() {
12897
        return _thriftId;
12898
      }
12899
 
12900
      public String getFieldName() {
12901
        return _fieldName;
12902
      }
12903
    }
12904
 
12905
    // isset id assignments
12906
    private static final int __USERID_ISSET_ID = 0;
571 rajveer 12907
    private static final int __SETDEFAULT_ISSET_ID = 1;
12908
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 12909
 
3430 rajveer 12910
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 12911
    static {
3430 rajveer 12912
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12913
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12915
      tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12916
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
12917
      tmpMap.put(_Fields.SET_DEFAULT, new org.apache.thrift.meta_data.FieldMetaData("setDefault", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12919
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12920
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressForUser_args.class, metaDataMap);
553 chandransh 12921
    }
12922
 
12923
    public addAddressForUser_args() {
12924
    }
12925
 
12926
    public addAddressForUser_args(
12927
      long userId,
12928
      Address address,
12929
      boolean setDefault)
12930
    {
12931
      this();
12932
      this.userId = userId;
12933
      setUserIdIsSet(true);
12934
      this.address = address;
12935
      this.setDefault = setDefault;
12936
      setSetDefaultIsSet(true);
12937
    }
12938
 
12939
    /**
12940
     * Performs a deep copy on <i>other</i>.
12941
     */
12942
    public addAddressForUser_args(addAddressForUser_args other) {
12943
      __isset_bit_vector.clear();
12944
      __isset_bit_vector.or(other.__isset_bit_vector);
12945
      this.userId = other.userId;
12946
      if (other.isSetAddress()) {
12947
        this.address = new Address(other.address);
12948
      }
12949
      this.setDefault = other.setDefault;
12950
    }
12951
 
12952
    public addAddressForUser_args deepCopy() {
12953
      return new addAddressForUser_args(this);
12954
    }
12955
 
3430 rajveer 12956
    @Override
12957
    public void clear() {
12958
      setUserIdIsSet(false);
12959
      this.userId = 0;
12960
      this.address = null;
12961
      setSetDefaultIsSet(false);
12962
      this.setDefault = false;
553 chandransh 12963
    }
12964
 
12965
    public long getUserId() {
12966
      return this.userId;
12967
    }
12968
 
3430 rajveer 12969
    public void setUserId(long userId) {
553 chandransh 12970
      this.userId = userId;
12971
      setUserIdIsSet(true);
123 ashish 12972
    }
12973
 
553 chandransh 12974
    public void unsetUserId() {
12975
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 12976
    }
12977
 
3430 rajveer 12978
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 12979
    public boolean isSetUserId() {
12980
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 12981
    }
12982
 
553 chandransh 12983
    public void setUserIdIsSet(boolean value) {
12984
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
12985
    }
12986
 
12987
    public Address getAddress() {
12988
      return this.address;
12989
    }
12990
 
3430 rajveer 12991
    public void setAddress(Address address) {
553 chandransh 12992
      this.address = address;
12993
    }
12994
 
12995
    public void unsetAddress() {
12996
      this.address = null;
12997
    }
12998
 
3430 rajveer 12999
    /** Returns true if field address is set (has been assigned a value) and false otherwise */
553 chandransh 13000
    public boolean isSetAddress() {
13001
      return this.address != null;
13002
    }
13003
 
13004
    public void setAddressIsSet(boolean value) {
123 ashish 13005
      if (!value) {
553 chandransh 13006
        this.address = null;
123 ashish 13007
      }
13008
    }
13009
 
553 chandransh 13010
    public boolean isSetDefault() {
13011
      return this.setDefault;
13012
    }
13013
 
3430 rajveer 13014
    public void setSetDefault(boolean setDefault) {
553 chandransh 13015
      this.setDefault = setDefault;
13016
      setSetDefaultIsSet(true);
13017
    }
13018
 
13019
    public void unsetSetDefault() {
13020
      __isset_bit_vector.clear(__SETDEFAULT_ISSET_ID);
13021
    }
13022
 
3430 rajveer 13023
    /** Returns true if field setDefault is set (has been assigned a value) and false otherwise */
553 chandransh 13024
    public boolean isSetSetDefault() {
13025
      return __isset_bit_vector.get(__SETDEFAULT_ISSET_ID);
13026
    }
13027
 
13028
    public void setSetDefaultIsSet(boolean value) {
13029
      __isset_bit_vector.set(__SETDEFAULT_ISSET_ID, value);
13030
    }
13031
 
123 ashish 13032
    public void setFieldValue(_Fields field, Object value) {
13033
      switch (field) {
553 chandransh 13034
      case USER_ID:
123 ashish 13035
        if (value == null) {
553 chandransh 13036
          unsetUserId();
123 ashish 13037
        } else {
553 chandransh 13038
          setUserId((Long)value);
123 ashish 13039
        }
13040
        break;
13041
 
553 chandransh 13042
      case ADDRESS:
123 ashish 13043
        if (value == null) {
553 chandransh 13044
          unsetAddress();
123 ashish 13045
        } else {
553 chandransh 13046
          setAddress((Address)value);
123 ashish 13047
        }
13048
        break;
13049
 
553 chandransh 13050
      case SET_DEFAULT:
13051
        if (value == null) {
13052
          unsetSetDefault();
13053
        } else {
13054
          setSetDefault((Boolean)value);
13055
        }
13056
        break;
13057
 
123 ashish 13058
      }
13059
    }
13060
 
13061
    public Object getFieldValue(_Fields field) {
13062
      switch (field) {
553 chandransh 13063
      case USER_ID:
3430 rajveer 13064
        return Long.valueOf(getUserId());
123 ashish 13065
 
553 chandransh 13066
      case ADDRESS:
13067
        return getAddress();
123 ashish 13068
 
553 chandransh 13069
      case SET_DEFAULT:
3430 rajveer 13070
        return Boolean.valueOf(isSetDefault());
553 chandransh 13071
 
123 ashish 13072
      }
13073
      throw new IllegalStateException();
13074
    }
13075
 
3430 rajveer 13076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13077
    public boolean isSet(_Fields field) {
13078
      if (field == null) {
13079
        throw new IllegalArgumentException();
13080
      }
123 ashish 13081
 
13082
      switch (field) {
553 chandransh 13083
      case USER_ID:
13084
        return isSetUserId();
13085
      case ADDRESS:
13086
        return isSetAddress();
13087
      case SET_DEFAULT:
13088
        return isSetSetDefault();
123 ashish 13089
      }
13090
      throw new IllegalStateException();
13091
    }
13092
 
13093
    @Override
13094
    public boolean equals(Object that) {
13095
      if (that == null)
13096
        return false;
553 chandransh 13097
      if (that instanceof addAddressForUser_args)
13098
        return this.equals((addAddressForUser_args)that);
123 ashish 13099
      return false;
13100
    }
13101
 
553 chandransh 13102
    public boolean equals(addAddressForUser_args that) {
123 ashish 13103
      if (that == null)
13104
        return false;
13105
 
553 chandransh 13106
      boolean this_present_userId = true;
13107
      boolean that_present_userId = true;
13108
      if (this_present_userId || that_present_userId) {
13109
        if (!(this_present_userId && that_present_userId))
123 ashish 13110
          return false;
553 chandransh 13111
        if (this.userId != that.userId)
123 ashish 13112
          return false;
13113
      }
13114
 
553 chandransh 13115
      boolean this_present_address = true && this.isSetAddress();
13116
      boolean that_present_address = true && that.isSetAddress();
13117
      if (this_present_address || that_present_address) {
13118
        if (!(this_present_address && that_present_address))
123 ashish 13119
          return false;
553 chandransh 13120
        if (!this.address.equals(that.address))
123 ashish 13121
          return false;
13122
      }
13123
 
553 chandransh 13124
      boolean this_present_setDefault = true;
13125
      boolean that_present_setDefault = true;
13126
      if (this_present_setDefault || that_present_setDefault) {
13127
        if (!(this_present_setDefault && that_present_setDefault))
13128
          return false;
13129
        if (this.setDefault != that.setDefault)
13130
          return false;
13131
      }
13132
 
123 ashish 13133
      return true;
13134
    }
13135
 
13136
    @Override
13137
    public int hashCode() {
13138
      return 0;
13139
    }
13140
 
553 chandransh 13141
    public int compareTo(addAddressForUser_args other) {
123 ashish 13142
      if (!getClass().equals(other.getClass())) {
13143
        return getClass().getName().compareTo(other.getClass().getName());
13144
      }
13145
 
13146
      int lastComparison = 0;
553 chandransh 13147
      addAddressForUser_args typedOther = (addAddressForUser_args)other;
123 ashish 13148
 
3430 rajveer 13149
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 13150
      if (lastComparison != 0) {
13151
        return lastComparison;
13152
      }
3430 rajveer 13153
      if (isSetUserId()) {
13154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
13155
        if (lastComparison != 0) {
13156
          return lastComparison;
13157
        }
123 ashish 13158
      }
3430 rajveer 13159
      lastComparison = Boolean.valueOf(isSetAddress()).compareTo(typedOther.isSetAddress());
123 ashish 13160
      if (lastComparison != 0) {
13161
        return lastComparison;
13162
      }
3430 rajveer 13163
      if (isSetAddress()) {
13164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, typedOther.address);
13165
        if (lastComparison != 0) {
13166
          return lastComparison;
13167
        }
123 ashish 13168
      }
3430 rajveer 13169
      lastComparison = Boolean.valueOf(isSetSetDefault()).compareTo(typedOther.isSetSetDefault());
553 chandransh 13170
      if (lastComparison != 0) {
13171
        return lastComparison;
13172
      }
3430 rajveer 13173
      if (isSetSetDefault()) {
13174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.setDefault, typedOther.setDefault);
13175
        if (lastComparison != 0) {
13176
          return lastComparison;
13177
        }
553 chandransh 13178
      }
123 ashish 13179
      return 0;
13180
    }
13181
 
3430 rajveer 13182
    public _Fields fieldForId(int fieldId) {
13183
      return _Fields.findByThriftId(fieldId);
13184
    }
13185
 
13186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13187
      org.apache.thrift.protocol.TField field;
123 ashish 13188
      iprot.readStructBegin();
13189
      while (true)
13190
      {
13191
        field = iprot.readFieldBegin();
3430 rajveer 13192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 13193
          break;
13194
        }
3430 rajveer 13195
        switch (field.id) {
13196
          case 1: // USER_ID
13197
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13198
              this.userId = iprot.readI64();
13199
              setUserIdIsSet(true);
13200
            } else { 
13201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13202
            }
13203
            break;
13204
          case 2: // ADDRESS
13205
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13206
              this.address = new Address();
13207
              this.address.read(iprot);
13208
            } else { 
13209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13210
            }
13211
            break;
13212
          case 3: // SET_DEFAULT
13213
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13214
              this.setDefault = iprot.readBool();
13215
              setSetDefaultIsSet(true);
13216
            } else { 
13217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13218
            }
13219
            break;
13220
          default:
13221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 13222
        }
3430 rajveer 13223
        iprot.readFieldEnd();
123 ashish 13224
      }
13225
      iprot.readStructEnd();
13226
      validate();
13227
    }
13228
 
3430 rajveer 13229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 13230
      validate();
13231
 
13232
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 13233
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
13234
      oprot.writeI64(this.userId);
13235
      oprot.writeFieldEnd();
13236
      if (this.address != null) {
13237
        oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
13238
        this.address.write(oprot);
123 ashish 13239
        oprot.writeFieldEnd();
13240
      }
553 chandransh 13241
      oprot.writeFieldBegin(SET_DEFAULT_FIELD_DESC);
13242
      oprot.writeBool(this.setDefault);
13243
      oprot.writeFieldEnd();
123 ashish 13244
      oprot.writeFieldStop();
13245
      oprot.writeStructEnd();
13246
    }
13247
 
13248
    @Override
13249
    public String toString() {
553 chandransh 13250
      StringBuilder sb = new StringBuilder("addAddressForUser_args(");
123 ashish 13251
      boolean first = true;
13252
 
553 chandransh 13253
      sb.append("userId:");
13254
      sb.append(this.userId);
123 ashish 13255
      first = false;
13256
      if (!first) sb.append(", ");
553 chandransh 13257
      sb.append("address:");
13258
      if (this.address == null) {
123 ashish 13259
        sb.append("null");
13260
      } else {
553 chandransh 13261
        sb.append(this.address);
123 ashish 13262
      }
13263
      first = false;
13264
      if (!first) sb.append(", ");
553 chandransh 13265
      sb.append("setDefault:");
13266
      sb.append(this.setDefault);
13267
      first = false;
123 ashish 13268
      sb.append(")");
13269
      return sb.toString();
13270
    }
13271
 
3430 rajveer 13272
    public void validate() throws org.apache.thrift.TException {
123 ashish 13273
      // check for required fields
13274
    }
13275
 
3430 rajveer 13276
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13277
      try {
13278
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13279
      } catch (org.apache.thrift.TException te) {
13280
        throw new java.io.IOException(te);
13281
      }
13282
    }
13283
 
13284
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13285
      try {
13286
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13287
        __isset_bit_vector = new BitSet(1);
13288
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13289
      } catch (org.apache.thrift.TException te) {
13290
        throw new java.io.IOException(te);
13291
      }
13292
    }
13293
 
123 ashish 13294
  }
13295
 
3430 rajveer 13296
  public static class addAddressForUser_result implements org.apache.thrift.TBase<addAddressForUser_result, addAddressForUser_result._Fields>, java.io.Serializable, Cloneable   {
13297
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressForUser_result");
123 ashish 13298
 
3430 rajveer 13299
    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);
13300
    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 13301
 
3430 rajveer 13302
    private long success; // required
13303
    private UserContextException ucx; // required
123 ashish 13304
 
13305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 13307
      SUCCESS((short)0, "success"),
553 chandransh 13308
      UCX((short)1, "ucx");
123 ashish 13309
 
13310
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13311
 
13312
      static {
13313
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13314
          byName.put(field.getFieldName(), field);
13315
        }
13316
      }
13317
 
13318
      /**
13319
       * Find the _Fields constant that matches fieldId, or null if its not found.
13320
       */
13321
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13322
        switch(fieldId) {
13323
          case 0: // SUCCESS
13324
            return SUCCESS;
13325
          case 1: // UCX
13326
            return UCX;
13327
          default:
13328
            return null;
13329
        }
123 ashish 13330
      }
13331
 
13332
      /**
13333
       * Find the _Fields constant that matches fieldId, throwing an exception
13334
       * if it is not found.
13335
       */
13336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13337
        _Fields fields = findByThriftId(fieldId);
13338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13339
        return fields;
13340
      }
13341
 
13342
      /**
13343
       * Find the _Fields constant that matches name, or null if its not found.
13344
       */
13345
      public static _Fields findByName(String name) {
13346
        return byName.get(name);
13347
      }
13348
 
13349
      private final short _thriftId;
13350
      private final String _fieldName;
13351
 
13352
      _Fields(short thriftId, String fieldName) {
13353
        _thriftId = thriftId;
13354
        _fieldName = fieldName;
13355
      }
13356
 
13357
      public short getThriftFieldId() {
13358
        return _thriftId;
13359
      }
13360
 
13361
      public String getFieldName() {
13362
        return _fieldName;
13363
      }
13364
    }
13365
 
13366
    // isset id assignments
13367
    private static final int __SUCCESS_ISSET_ID = 0;
13368
    private BitSet __isset_bit_vector = new BitSet(1);
13369
 
3430 rajveer 13370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 13371
    static {
3430 rajveer 13372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13373
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13375
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressForUser_result.class, metaDataMap);
123 ashish 13379
    }
13380
 
553 chandransh 13381
    public addAddressForUser_result() {
123 ashish 13382
    }
13383
 
553 chandransh 13384
    public addAddressForUser_result(
571 rajveer 13385
      long success,
553 chandransh 13386
      UserContextException ucx)
123 ashish 13387
    {
13388
      this();
13389
      this.success = success;
13390
      setSuccessIsSet(true);
553 chandransh 13391
      this.ucx = ucx;
123 ashish 13392
    }
13393
 
13394
    /**
13395
     * Performs a deep copy on <i>other</i>.
13396
     */
553 chandransh 13397
    public addAddressForUser_result(addAddressForUser_result other) {
123 ashish 13398
      __isset_bit_vector.clear();
13399
      __isset_bit_vector.or(other.__isset_bit_vector);
13400
      this.success = other.success;
553 chandransh 13401
      if (other.isSetUcx()) {
13402
        this.ucx = new UserContextException(other.ucx);
123 ashish 13403
      }
13404
    }
13405
 
553 chandransh 13406
    public addAddressForUser_result deepCopy() {
13407
      return new addAddressForUser_result(this);
123 ashish 13408
    }
13409
 
3430 rajveer 13410
    @Override
13411
    public void clear() {
13412
      setSuccessIsSet(false);
13413
      this.success = 0;
13414
      this.ucx = null;
123 ashish 13415
    }
13416
 
571 rajveer 13417
    public long getSuccess() {
123 ashish 13418
      return this.success;
13419
    }
13420
 
3430 rajveer 13421
    public void setSuccess(long success) {
123 ashish 13422
      this.success = success;
13423
      setSuccessIsSet(true);
13424
    }
13425
 
13426
    public void unsetSuccess() {
13427
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13428
    }
13429
 
3430 rajveer 13430
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 13431
    public boolean isSetSuccess() {
13432
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13433
    }
13434
 
13435
    public void setSuccessIsSet(boolean value) {
13436
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13437
    }
13438
 
553 chandransh 13439
    public UserContextException getUcx() {
13440
      return this.ucx;
123 ashish 13441
    }
13442
 
3430 rajveer 13443
    public void setUcx(UserContextException ucx) {
553 chandransh 13444
      this.ucx = ucx;
123 ashish 13445
    }
13446
 
553 chandransh 13447
    public void unsetUcx() {
13448
      this.ucx = null;
123 ashish 13449
    }
13450
 
3430 rajveer 13451
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
553 chandransh 13452
    public boolean isSetUcx() {
13453
      return this.ucx != null;
123 ashish 13454
    }
13455
 
553 chandransh 13456
    public void setUcxIsSet(boolean value) {
123 ashish 13457
      if (!value) {
553 chandransh 13458
        this.ucx = null;
123 ashish 13459
      }
13460
    }
13461
 
13462
    public void setFieldValue(_Fields field, Object value) {
13463
      switch (field) {
13464
      case SUCCESS:
13465
        if (value == null) {
13466
          unsetSuccess();
13467
        } else {
571 rajveer 13468
          setSuccess((Long)value);
123 ashish 13469
        }
13470
        break;
13471
 
553 chandransh 13472
      case UCX:
123 ashish 13473
        if (value == null) {
553 chandransh 13474
          unsetUcx();
123 ashish 13475
        } else {
553 chandransh 13476
          setUcx((UserContextException)value);
123 ashish 13477
        }
13478
        break;
13479
 
13480
      }
13481
    }
13482
 
13483
    public Object getFieldValue(_Fields field) {
13484
      switch (field) {
13485
      case SUCCESS:
3430 rajveer 13486
        return Long.valueOf(getSuccess());
123 ashish 13487
 
553 chandransh 13488
      case UCX:
13489
        return getUcx();
123 ashish 13490
 
13491
      }
13492
      throw new IllegalStateException();
13493
    }
13494
 
3430 rajveer 13495
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13496
    public boolean isSet(_Fields field) {
13497
      if (field == null) {
13498
        throw new IllegalArgumentException();
13499
      }
123 ashish 13500
 
13501
      switch (field) {
13502
      case SUCCESS:
13503
        return isSetSuccess();
553 chandransh 13504
      case UCX:
13505
        return isSetUcx();
123 ashish 13506
      }
13507
      throw new IllegalStateException();
13508
    }
13509
 
13510
    @Override
13511
    public boolean equals(Object that) {
13512
      if (that == null)
13513
        return false;
553 chandransh 13514
      if (that instanceof addAddressForUser_result)
13515
        return this.equals((addAddressForUser_result)that);
123 ashish 13516
      return false;
13517
    }
13518
 
553 chandransh 13519
    public boolean equals(addAddressForUser_result that) {
123 ashish 13520
      if (that == null)
13521
        return false;
13522
 
13523
      boolean this_present_success = true;
13524
      boolean that_present_success = true;
13525
      if (this_present_success || that_present_success) {
13526
        if (!(this_present_success && that_present_success))
13527
          return false;
13528
        if (this.success != that.success)
13529
          return false;
13530
      }
13531
 
553 chandransh 13532
      boolean this_present_ucx = true && this.isSetUcx();
13533
      boolean that_present_ucx = true && that.isSetUcx();
13534
      if (this_present_ucx || that_present_ucx) {
13535
        if (!(this_present_ucx && that_present_ucx))
123 ashish 13536
          return false;
553 chandransh 13537
        if (!this.ucx.equals(that.ucx))
123 ashish 13538
          return false;
13539
      }
13540
 
13541
      return true;
13542
    }
13543
 
13544
    @Override
13545
    public int hashCode() {
13546
      return 0;
13547
    }
13548
 
553 chandransh 13549
    public int compareTo(addAddressForUser_result other) {
123 ashish 13550
      if (!getClass().equals(other.getClass())) {
13551
        return getClass().getName().compareTo(other.getClass().getName());
13552
      }
13553
 
13554
      int lastComparison = 0;
553 chandransh 13555
      addAddressForUser_result typedOther = (addAddressForUser_result)other;
123 ashish 13556
 
3430 rajveer 13557
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 13558
      if (lastComparison != 0) {
13559
        return lastComparison;
13560
      }
3430 rajveer 13561
      if (isSetSuccess()) {
13562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13563
        if (lastComparison != 0) {
13564
          return lastComparison;
13565
        }
123 ashish 13566
      }
3430 rajveer 13567
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
123 ashish 13568
      if (lastComparison != 0) {
13569
        return lastComparison;
13570
      }
3430 rajveer 13571
      if (isSetUcx()) {
13572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
13573
        if (lastComparison != 0) {
13574
          return lastComparison;
13575
        }
123 ashish 13576
      }
13577
      return 0;
13578
    }
13579
 
3430 rajveer 13580
    public _Fields fieldForId(int fieldId) {
13581
      return _Fields.findByThriftId(fieldId);
13582
    }
13583
 
13584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13585
      org.apache.thrift.protocol.TField field;
123 ashish 13586
      iprot.readStructBegin();
13587
      while (true)
13588
      {
13589
        field = iprot.readFieldBegin();
3430 rajveer 13590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 13591
          break;
13592
        }
3430 rajveer 13593
        switch (field.id) {
13594
          case 0: // SUCCESS
13595
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13596
              this.success = iprot.readI64();
13597
              setSuccessIsSet(true);
13598
            } else { 
13599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13600
            }
13601
            break;
13602
          case 1: // UCX
13603
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13604
              this.ucx = new UserContextException();
13605
              this.ucx.read(iprot);
13606
            } else { 
13607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13608
            }
13609
            break;
13610
          default:
13611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 13612
        }
3430 rajveer 13613
        iprot.readFieldEnd();
123 ashish 13614
      }
13615
      iprot.readStructEnd();
13616
      validate();
13617
    }
13618
 
3430 rajveer 13619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 13620
      oprot.writeStructBegin(STRUCT_DESC);
13621
 
13622
      if (this.isSetSuccess()) {
13623
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
571 rajveer 13624
        oprot.writeI64(this.success);
123 ashish 13625
        oprot.writeFieldEnd();
553 chandransh 13626
      } else if (this.isSetUcx()) {
13627
        oprot.writeFieldBegin(UCX_FIELD_DESC);
13628
        this.ucx.write(oprot);
123 ashish 13629
        oprot.writeFieldEnd();
13630
      }
13631
      oprot.writeFieldStop();
13632
      oprot.writeStructEnd();
13633
    }
13634
 
13635
    @Override
13636
    public String toString() {
553 chandransh 13637
      StringBuilder sb = new StringBuilder("addAddressForUser_result(");
123 ashish 13638
      boolean first = true;
13639
 
13640
      sb.append("success:");
13641
      sb.append(this.success);
13642
      first = false;
13643
      if (!first) sb.append(", ");
553 chandransh 13644
      sb.append("ucx:");
13645
      if (this.ucx == null) {
123 ashish 13646
        sb.append("null");
13647
      } else {
553 chandransh 13648
        sb.append(this.ucx);
123 ashish 13649
      }
13650
      first = false;
13651
      sb.append(")");
13652
      return sb.toString();
13653
    }
13654
 
3430 rajveer 13655
    public void validate() throws org.apache.thrift.TException {
123 ashish 13656
      // check for required fields
13657
    }
13658
 
3430 rajveer 13659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13660
      try {
13661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13662
      } catch (org.apache.thrift.TException te) {
13663
        throw new java.io.IOException(te);
13664
      }
13665
    }
13666
 
13667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13668
      try {
13669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13670
      } catch (org.apache.thrift.TException te) {
13671
        throw new java.io.IOException(te);
13672
      }
13673
    }
13674
 
123 ashish 13675
  }
13676
 
3430 rajveer 13677
  public static class removeAddressForUser_args implements org.apache.thrift.TBase<removeAddressForUser_args, removeAddressForUser_args._Fields>, java.io.Serializable, Cloneable   {
13678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeAddressForUser_args");
48 ashish 13679
 
3430 rajveer 13680
    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);
13681
    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 13682
 
3430 rajveer 13683
    private long userid; // required
13684
    private long addressId; // required
48 ashish 13685
 
13686
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13687
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 13688
      USERID((short)1, "userid"),
13689
      ADDRESS_ID((short)2, "addressId");
48 ashish 13690
 
13691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13692
 
13693
      static {
13694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13695
          byName.put(field.getFieldName(), field);
13696
        }
13697
      }
13698
 
13699
      /**
13700
       * Find the _Fields constant that matches fieldId, or null if its not found.
13701
       */
13702
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13703
        switch(fieldId) {
13704
          case 1: // USERID
13705
            return USERID;
13706
          case 2: // ADDRESS_ID
13707
            return ADDRESS_ID;
13708
          default:
13709
            return null;
13710
        }
48 ashish 13711
      }
13712
 
13713
      /**
13714
       * Find the _Fields constant that matches fieldId, throwing an exception
13715
       * if it is not found.
13716
       */
13717
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13718
        _Fields fields = findByThriftId(fieldId);
13719
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13720
        return fields;
13721
      }
13722
 
13723
      /**
13724
       * Find the _Fields constant that matches name, or null if its not found.
13725
       */
13726
      public static _Fields findByName(String name) {
13727
        return byName.get(name);
13728
      }
13729
 
13730
      private final short _thriftId;
13731
      private final String _fieldName;
13732
 
13733
      _Fields(short thriftId, String fieldName) {
13734
        _thriftId = thriftId;
13735
        _fieldName = fieldName;
13736
      }
13737
 
13738
      public short getThriftFieldId() {
13739
        return _thriftId;
13740
      }
13741
 
13742
      public String getFieldName() {
13743
        return _fieldName;
13744
      }
13745
    }
13746
 
13747
    // isset id assignments
553 chandransh 13748
    private static final int __USERID_ISSET_ID = 0;
13749
    private static final int __ADDRESSID_ISSET_ID = 1;
13750
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 13751
 
3430 rajveer 13752
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 13753
    static {
3430 rajveer 13754
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13755
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13757
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeAddressForUser_args.class, metaDataMap);
48 ashish 13761
    }
13762
 
553 chandransh 13763
    public removeAddressForUser_args() {
48 ashish 13764
    }
13765
 
553 chandransh 13766
    public removeAddressForUser_args(
13767
      long userid,
13768
      long addressId)
48 ashish 13769
    {
13770
      this();
553 chandransh 13771
      this.userid = userid;
13772
      setUseridIsSet(true);
13773
      this.addressId = addressId;
13774
      setAddressIdIsSet(true);
48 ashish 13775
    }
13776
 
13777
    /**
13778
     * Performs a deep copy on <i>other</i>.
13779
     */
553 chandransh 13780
    public removeAddressForUser_args(removeAddressForUser_args other) {
13781
      __isset_bit_vector.clear();
13782
      __isset_bit_vector.or(other.__isset_bit_vector);
13783
      this.userid = other.userid;
13784
      this.addressId = other.addressId;
48 ashish 13785
    }
13786
 
553 chandransh 13787
    public removeAddressForUser_args deepCopy() {
13788
      return new removeAddressForUser_args(this);
48 ashish 13789
    }
13790
 
3430 rajveer 13791
    @Override
13792
    public void clear() {
13793
      setUseridIsSet(false);
13794
      this.userid = 0;
13795
      setAddressIdIsSet(false);
13796
      this.addressId = 0;
48 ashish 13797
    }
13798
 
553 chandransh 13799
    public long getUserid() {
13800
      return this.userid;
48 ashish 13801
    }
13802
 
3430 rajveer 13803
    public void setUserid(long userid) {
553 chandransh 13804
      this.userid = userid;
13805
      setUseridIsSet(true);
48 ashish 13806
    }
13807
 
553 chandransh 13808
    public void unsetUserid() {
13809
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48 ashish 13810
    }
13811
 
3430 rajveer 13812
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
553 chandransh 13813
    public boolean isSetUserid() {
13814
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48 ashish 13815
    }
13816
 
553 chandransh 13817
    public void setUseridIsSet(boolean value) {
13818
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48 ashish 13819
    }
13820
 
553 chandransh 13821
    public long getAddressId() {
13822
      return this.addressId;
13823
    }
13824
 
3430 rajveer 13825
    public void setAddressId(long addressId) {
553 chandransh 13826
      this.addressId = addressId;
13827
      setAddressIdIsSet(true);
13828
    }
13829
 
13830
    public void unsetAddressId() {
13831
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
13832
    }
13833
 
3430 rajveer 13834
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
553 chandransh 13835
    public boolean isSetAddressId() {
13836
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
13837
    }
13838
 
13839
    public void setAddressIdIsSet(boolean value) {
13840
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
13841
    }
13842
 
48 ashish 13843
    public void setFieldValue(_Fields field, Object value) {
13844
      switch (field) {
553 chandransh 13845
      case USERID:
48 ashish 13846
        if (value == null) {
553 chandransh 13847
          unsetUserid();
48 ashish 13848
        } else {
553 chandransh 13849
          setUserid((Long)value);
48 ashish 13850
        }
13851
        break;
13852
 
553 chandransh 13853
      case ADDRESS_ID:
13854
        if (value == null) {
13855
          unsetAddressId();
13856
        } else {
13857
          setAddressId((Long)value);
13858
        }
13859
        break;
13860
 
48 ashish 13861
      }
13862
    }
13863
 
13864
    public Object getFieldValue(_Fields field) {
13865
      switch (field) {
553 chandransh 13866
      case USERID:
3430 rajveer 13867
        return Long.valueOf(getUserid());
48 ashish 13868
 
553 chandransh 13869
      case ADDRESS_ID:
3430 rajveer 13870
        return Long.valueOf(getAddressId());
553 chandransh 13871
 
48 ashish 13872
      }
13873
      throw new IllegalStateException();
13874
    }
13875
 
3430 rajveer 13876
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13877
    public boolean isSet(_Fields field) {
13878
      if (field == null) {
13879
        throw new IllegalArgumentException();
13880
      }
48 ashish 13881
 
13882
      switch (field) {
553 chandransh 13883
      case USERID:
13884
        return isSetUserid();
13885
      case ADDRESS_ID:
13886
        return isSetAddressId();
48 ashish 13887
      }
13888
      throw new IllegalStateException();
13889
    }
13890
 
13891
    @Override
13892
    public boolean equals(Object that) {
13893
      if (that == null)
13894
        return false;
553 chandransh 13895
      if (that instanceof removeAddressForUser_args)
13896
        return this.equals((removeAddressForUser_args)that);
48 ashish 13897
      return false;
13898
    }
13899
 
553 chandransh 13900
    public boolean equals(removeAddressForUser_args that) {
48 ashish 13901
      if (that == null)
13902
        return false;
13903
 
553 chandransh 13904
      boolean this_present_userid = true;
13905
      boolean that_present_userid = true;
13906
      if (this_present_userid || that_present_userid) {
13907
        if (!(this_present_userid && that_present_userid))
48 ashish 13908
          return false;
553 chandransh 13909
        if (this.userid != that.userid)
48 ashish 13910
          return false;
13911
      }
13912
 
553 chandransh 13913
      boolean this_present_addressId = true;
13914
      boolean that_present_addressId = true;
13915
      if (this_present_addressId || that_present_addressId) {
13916
        if (!(this_present_addressId && that_present_addressId))
13917
          return false;
13918
        if (this.addressId != that.addressId)
13919
          return false;
13920
      }
13921
 
48 ashish 13922
      return true;
13923
    }
13924
 
13925
    @Override
13926
    public int hashCode() {
13927
      return 0;
13928
    }
13929
 
553 chandransh 13930
    public int compareTo(removeAddressForUser_args other) {
48 ashish 13931
      if (!getClass().equals(other.getClass())) {
13932
        return getClass().getName().compareTo(other.getClass().getName());
13933
      }
13934
 
13935
      int lastComparison = 0;
553 chandransh 13936
      removeAddressForUser_args typedOther = (removeAddressForUser_args)other;
48 ashish 13937
 
3430 rajveer 13938
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 13939
      if (lastComparison != 0) {
13940
        return lastComparison;
13941
      }
3430 rajveer 13942
      if (isSetUserid()) {
13943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
13944
        if (lastComparison != 0) {
13945
          return lastComparison;
13946
        }
48 ashish 13947
      }
3430 rajveer 13948
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
553 chandransh 13949
      if (lastComparison != 0) {
13950
        return lastComparison;
13951
      }
3430 rajveer 13952
      if (isSetAddressId()) {
13953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
13954
        if (lastComparison != 0) {
13955
          return lastComparison;
13956
        }
553 chandransh 13957
      }
48 ashish 13958
      return 0;
13959
    }
13960
 
3430 rajveer 13961
    public _Fields fieldForId(int fieldId) {
13962
      return _Fields.findByThriftId(fieldId);
13963
    }
13964
 
13965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13966
      org.apache.thrift.protocol.TField field;
48 ashish 13967
      iprot.readStructBegin();
13968
      while (true)
13969
      {
13970
        field = iprot.readFieldBegin();
3430 rajveer 13971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 13972
          break;
13973
        }
3430 rajveer 13974
        switch (field.id) {
13975
          case 1: // USERID
13976
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13977
              this.userid = iprot.readI64();
13978
              setUseridIsSet(true);
13979
            } else { 
13980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13981
            }
13982
            break;
13983
          case 2: // ADDRESS_ID
13984
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13985
              this.addressId = iprot.readI64();
13986
              setAddressIdIsSet(true);
13987
            } else { 
13988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13989
            }
13990
            break;
13991
          default:
13992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 13993
        }
3430 rajveer 13994
        iprot.readFieldEnd();
48 ashish 13995
      }
13996
      iprot.readStructEnd();
13997
      validate();
13998
    }
13999
 
3430 rajveer 14000
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14001
      validate();
14002
 
14003
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 14004
      oprot.writeFieldBegin(USERID_FIELD_DESC);
14005
      oprot.writeI64(this.userid);
14006
      oprot.writeFieldEnd();
14007
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
14008
      oprot.writeI64(this.addressId);
14009
      oprot.writeFieldEnd();
48 ashish 14010
      oprot.writeFieldStop();
14011
      oprot.writeStructEnd();
14012
    }
14013
 
14014
    @Override
14015
    public String toString() {
553 chandransh 14016
      StringBuilder sb = new StringBuilder("removeAddressForUser_args(");
48 ashish 14017
      boolean first = true;
14018
 
553 chandransh 14019
      sb.append("userid:");
14020
      sb.append(this.userid);
48 ashish 14021
      first = false;
553 chandransh 14022
      if (!first) sb.append(", ");
14023
      sb.append("addressId:");
14024
      sb.append(this.addressId);
14025
      first = false;
48 ashish 14026
      sb.append(")");
14027
      return sb.toString();
14028
    }
14029
 
3430 rajveer 14030
    public void validate() throws org.apache.thrift.TException {
48 ashish 14031
      // check for required fields
14032
    }
14033
 
3430 rajveer 14034
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14035
      try {
14036
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14037
      } catch (org.apache.thrift.TException te) {
14038
        throw new java.io.IOException(te);
14039
      }
14040
    }
14041
 
14042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14043
      try {
14044
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14045
        __isset_bit_vector = new BitSet(1);
14046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14047
      } catch (org.apache.thrift.TException te) {
14048
        throw new java.io.IOException(te);
14049
      }
14050
    }
14051
 
48 ashish 14052
  }
14053
 
3430 rajveer 14054
  public static class removeAddressForUser_result implements org.apache.thrift.TBase<removeAddressForUser_result, removeAddressForUser_result._Fields>, java.io.Serializable, Cloneable   {
14055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeAddressForUser_result");
48 ashish 14056
 
3430 rajveer 14057
    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);
14058
    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 14059
 
3430 rajveer 14060
    private boolean success; // required
14061
    private UserContextException ucx; // required
48 ashish 14062
 
14063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 14065
      SUCCESS((short)0, "success"),
14066
      UCX((short)1, "ucx");
14067
 
14068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14069
 
14070
      static {
14071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14072
          byName.put(field.getFieldName(), field);
14073
        }
14074
      }
14075
 
14076
      /**
14077
       * Find the _Fields constant that matches fieldId, or null if its not found.
14078
       */
14079
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14080
        switch(fieldId) {
14081
          case 0: // SUCCESS
14082
            return SUCCESS;
14083
          case 1: // UCX
14084
            return UCX;
14085
          default:
14086
            return null;
14087
        }
48 ashish 14088
      }
14089
 
14090
      /**
14091
       * Find the _Fields constant that matches fieldId, throwing an exception
14092
       * if it is not found.
14093
       */
14094
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14095
        _Fields fields = findByThriftId(fieldId);
14096
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14097
        return fields;
14098
      }
14099
 
14100
      /**
14101
       * Find the _Fields constant that matches name, or null if its not found.
14102
       */
14103
      public static _Fields findByName(String name) {
14104
        return byName.get(name);
14105
      }
14106
 
14107
      private final short _thriftId;
14108
      private final String _fieldName;
14109
 
14110
      _Fields(short thriftId, String fieldName) {
14111
        _thriftId = thriftId;
14112
        _fieldName = fieldName;
14113
      }
14114
 
14115
      public short getThriftFieldId() {
14116
        return _thriftId;
14117
      }
14118
 
14119
      public String getFieldName() {
14120
        return _fieldName;
14121
      }
14122
    }
14123
 
14124
    // isset id assignments
14125
    private static final int __SUCCESS_ISSET_ID = 0;
14126
    private BitSet __isset_bit_vector = new BitSet(1);
14127
 
3430 rajveer 14128
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14129
    static {
3430 rajveer 14130
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14131
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14132
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14133
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14134
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14135
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14136
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeAddressForUser_result.class, metaDataMap);
48 ashish 14137
    }
14138
 
553 chandransh 14139
    public removeAddressForUser_result() {
48 ashish 14140
    }
14141
 
553 chandransh 14142
    public removeAddressForUser_result(
48 ashish 14143
      boolean success,
14144
      UserContextException ucx)
14145
    {
14146
      this();
14147
      this.success = success;
14148
      setSuccessIsSet(true);
14149
      this.ucx = ucx;
14150
    }
14151
 
14152
    /**
14153
     * Performs a deep copy on <i>other</i>.
14154
     */
553 chandransh 14155
    public removeAddressForUser_result(removeAddressForUser_result other) {
48 ashish 14156
      __isset_bit_vector.clear();
14157
      __isset_bit_vector.or(other.__isset_bit_vector);
14158
      this.success = other.success;
14159
      if (other.isSetUcx()) {
14160
        this.ucx = new UserContextException(other.ucx);
14161
      }
14162
    }
14163
 
553 chandransh 14164
    public removeAddressForUser_result deepCopy() {
14165
      return new removeAddressForUser_result(this);
48 ashish 14166
    }
14167
 
3430 rajveer 14168
    @Override
14169
    public void clear() {
14170
      setSuccessIsSet(false);
14171
      this.success = false;
14172
      this.ucx = null;
48 ashish 14173
    }
14174
 
14175
    public boolean isSuccess() {
14176
      return this.success;
14177
    }
14178
 
3430 rajveer 14179
    public void setSuccess(boolean success) {
48 ashish 14180
      this.success = success;
14181
      setSuccessIsSet(true);
14182
    }
14183
 
14184
    public void unsetSuccess() {
14185
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14186
    }
14187
 
3430 rajveer 14188
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 14189
    public boolean isSetSuccess() {
14190
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14191
    }
14192
 
14193
    public void setSuccessIsSet(boolean value) {
14194
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14195
    }
14196
 
14197
    public UserContextException getUcx() {
14198
      return this.ucx;
14199
    }
14200
 
3430 rajveer 14201
    public void setUcx(UserContextException ucx) {
48 ashish 14202
      this.ucx = ucx;
14203
    }
14204
 
14205
    public void unsetUcx() {
14206
      this.ucx = null;
14207
    }
14208
 
3430 rajveer 14209
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 14210
    public boolean isSetUcx() {
14211
      return this.ucx != null;
14212
    }
14213
 
14214
    public void setUcxIsSet(boolean value) {
14215
      if (!value) {
14216
        this.ucx = null;
14217
      }
14218
    }
14219
 
14220
    public void setFieldValue(_Fields field, Object value) {
14221
      switch (field) {
14222
      case SUCCESS:
14223
        if (value == null) {
14224
          unsetSuccess();
14225
        } else {
14226
          setSuccess((Boolean)value);
14227
        }
14228
        break;
14229
 
14230
      case UCX:
14231
        if (value == null) {
14232
          unsetUcx();
14233
        } else {
14234
          setUcx((UserContextException)value);
14235
        }
14236
        break;
14237
 
14238
      }
14239
    }
14240
 
14241
    public Object getFieldValue(_Fields field) {
14242
      switch (field) {
14243
      case SUCCESS:
3430 rajveer 14244
        return Boolean.valueOf(isSuccess());
48 ashish 14245
 
14246
      case UCX:
14247
        return getUcx();
14248
 
14249
      }
14250
      throw new IllegalStateException();
14251
    }
14252
 
3430 rajveer 14253
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14254
    public boolean isSet(_Fields field) {
14255
      if (field == null) {
14256
        throw new IllegalArgumentException();
14257
      }
48 ashish 14258
 
14259
      switch (field) {
14260
      case SUCCESS:
14261
        return isSetSuccess();
14262
      case UCX:
14263
        return isSetUcx();
14264
      }
14265
      throw new IllegalStateException();
14266
    }
14267
 
14268
    @Override
14269
    public boolean equals(Object that) {
14270
      if (that == null)
14271
        return false;
553 chandransh 14272
      if (that instanceof removeAddressForUser_result)
14273
        return this.equals((removeAddressForUser_result)that);
48 ashish 14274
      return false;
14275
    }
14276
 
553 chandransh 14277
    public boolean equals(removeAddressForUser_result that) {
48 ashish 14278
      if (that == null)
14279
        return false;
14280
 
14281
      boolean this_present_success = true;
14282
      boolean that_present_success = true;
14283
      if (this_present_success || that_present_success) {
14284
        if (!(this_present_success && that_present_success))
14285
          return false;
14286
        if (this.success != that.success)
14287
          return false;
14288
      }
14289
 
14290
      boolean this_present_ucx = true && this.isSetUcx();
14291
      boolean that_present_ucx = true && that.isSetUcx();
14292
      if (this_present_ucx || that_present_ucx) {
14293
        if (!(this_present_ucx && that_present_ucx))
14294
          return false;
14295
        if (!this.ucx.equals(that.ucx))
14296
          return false;
14297
      }
14298
 
14299
      return true;
14300
    }
14301
 
14302
    @Override
14303
    public int hashCode() {
14304
      return 0;
14305
    }
14306
 
553 chandransh 14307
    public int compareTo(removeAddressForUser_result other) {
48 ashish 14308
      if (!getClass().equals(other.getClass())) {
14309
        return getClass().getName().compareTo(other.getClass().getName());
14310
      }
14311
 
14312
      int lastComparison = 0;
553 chandransh 14313
      removeAddressForUser_result typedOther = (removeAddressForUser_result)other;
48 ashish 14314
 
3430 rajveer 14315
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 14316
      if (lastComparison != 0) {
14317
        return lastComparison;
14318
      }
3430 rajveer 14319
      if (isSetSuccess()) {
14320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14321
        if (lastComparison != 0) {
14322
          return lastComparison;
14323
        }
48 ashish 14324
      }
3430 rajveer 14325
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 14326
      if (lastComparison != 0) {
14327
        return lastComparison;
14328
      }
3430 rajveer 14329
      if (isSetUcx()) {
14330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
14331
        if (lastComparison != 0) {
14332
          return lastComparison;
14333
        }
48 ashish 14334
      }
14335
      return 0;
14336
    }
14337
 
3430 rajveer 14338
    public _Fields fieldForId(int fieldId) {
14339
      return _Fields.findByThriftId(fieldId);
14340
    }
14341
 
14342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14343
      org.apache.thrift.protocol.TField field;
48 ashish 14344
      iprot.readStructBegin();
14345
      while (true)
14346
      {
14347
        field = iprot.readFieldBegin();
3430 rajveer 14348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14349
          break;
14350
        }
3430 rajveer 14351
        switch (field.id) {
14352
          case 0: // SUCCESS
14353
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14354
              this.success = iprot.readBool();
14355
              setSuccessIsSet(true);
14356
            } else { 
14357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14358
            }
14359
            break;
14360
          case 1: // UCX
14361
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14362
              this.ucx = new UserContextException();
14363
              this.ucx.read(iprot);
14364
            } else { 
14365
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14366
            }
14367
            break;
14368
          default:
14369
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14370
        }
3430 rajveer 14371
        iprot.readFieldEnd();
48 ashish 14372
      }
14373
      iprot.readStructEnd();
14374
      validate();
14375
    }
14376
 
3430 rajveer 14377
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14378
      oprot.writeStructBegin(STRUCT_DESC);
14379
 
14380
      if (this.isSetSuccess()) {
14381
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14382
        oprot.writeBool(this.success);
14383
        oprot.writeFieldEnd();
14384
      } else if (this.isSetUcx()) {
14385
        oprot.writeFieldBegin(UCX_FIELD_DESC);
14386
        this.ucx.write(oprot);
14387
        oprot.writeFieldEnd();
14388
      }
14389
      oprot.writeFieldStop();
14390
      oprot.writeStructEnd();
14391
    }
14392
 
14393
    @Override
14394
    public String toString() {
553 chandransh 14395
      StringBuilder sb = new StringBuilder("removeAddressForUser_result(");
48 ashish 14396
      boolean first = true;
14397
 
14398
      sb.append("success:");
14399
      sb.append(this.success);
14400
      first = false;
14401
      if (!first) sb.append(", ");
14402
      sb.append("ucx:");
14403
      if (this.ucx == null) {
14404
        sb.append("null");
14405
      } else {
14406
        sb.append(this.ucx);
14407
      }
14408
      first = false;
14409
      sb.append(")");
14410
      return sb.toString();
14411
    }
14412
 
3430 rajveer 14413
    public void validate() throws org.apache.thrift.TException {
48 ashish 14414
      // check for required fields
14415
    }
14416
 
3430 rajveer 14417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14418
      try {
14419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14420
      } catch (org.apache.thrift.TException te) {
14421
        throw new java.io.IOException(te);
14422
      }
14423
    }
14424
 
14425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14426
      try {
14427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14428
      } catch (org.apache.thrift.TException te) {
14429
        throw new java.io.IOException(te);
14430
      }
14431
    }
14432
 
48 ashish 14433
  }
14434
 
3430 rajveer 14435
  public static class setUserAsLoggedIn_args implements org.apache.thrift.TBase<setUserAsLoggedIn_args, setUserAsLoggedIn_args._Fields>, java.io.Serializable, Cloneable   {
14436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedIn_args");
48 ashish 14437
 
3430 rajveer 14438
    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);
14439
    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 14440
 
3430 rajveer 14441
    private long userId; // required
14442
    private long timestamp; // required
48 ashish 14443
 
14444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 14446
      USER_ID((short)1, "userId"),
14447
      TIMESTAMP((short)2, "timestamp");
48 ashish 14448
 
14449
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14450
 
14451
      static {
14452
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14453
          byName.put(field.getFieldName(), field);
14454
        }
14455
      }
14456
 
14457
      /**
14458
       * Find the _Fields constant that matches fieldId, or null if its not found.
14459
       */
14460
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14461
        switch(fieldId) {
14462
          case 1: // USER_ID
14463
            return USER_ID;
14464
          case 2: // TIMESTAMP
14465
            return TIMESTAMP;
14466
          default:
14467
            return null;
14468
        }
48 ashish 14469
      }
14470
 
14471
      /**
14472
       * Find the _Fields constant that matches fieldId, throwing an exception
14473
       * if it is not found.
14474
       */
14475
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14476
        _Fields fields = findByThriftId(fieldId);
14477
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14478
        return fields;
14479
      }
14480
 
14481
      /**
14482
       * Find the _Fields constant that matches name, or null if its not found.
14483
       */
14484
      public static _Fields findByName(String name) {
14485
        return byName.get(name);
14486
      }
14487
 
14488
      private final short _thriftId;
14489
      private final String _fieldName;
14490
 
14491
      _Fields(short thriftId, String fieldName) {
14492
        _thriftId = thriftId;
14493
        _fieldName = fieldName;
14494
      }
14495
 
14496
      public short getThriftFieldId() {
14497
        return _thriftId;
14498
      }
14499
 
14500
      public String getFieldName() {
14501
        return _fieldName;
14502
      }
14503
    }
14504
 
14505
    // isset id assignments
553 chandransh 14506
    private static final int __USERID_ISSET_ID = 0;
14507
    private static final int __TIMESTAMP_ISSET_ID = 1;
48 ashish 14508
    private BitSet __isset_bit_vector = new BitSet(2);
14509
 
3430 rajveer 14510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14511
    static {
3430 rajveer 14512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14513
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14515
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14516
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14517
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14518
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedIn_args.class, metaDataMap);
48 ashish 14519
    }
14520
 
553 chandransh 14521
    public setUserAsLoggedIn_args() {
48 ashish 14522
    }
14523
 
553 chandransh 14524
    public setUserAsLoggedIn_args(
14525
      long userId,
14526
      long timestamp)
48 ashish 14527
    {
14528
      this();
553 chandransh 14529
      this.userId = userId;
14530
      setUserIdIsSet(true);
48 ashish 14531
      this.timestamp = timestamp;
14532
      setTimestampIsSet(true);
14533
    }
14534
 
14535
    /**
14536
     * Performs a deep copy on <i>other</i>.
14537
     */
553 chandransh 14538
    public setUserAsLoggedIn_args(setUserAsLoggedIn_args other) {
48 ashish 14539
      __isset_bit_vector.clear();
14540
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 14541
      this.userId = other.userId;
48 ashish 14542
      this.timestamp = other.timestamp;
14543
    }
14544
 
553 chandransh 14545
    public setUserAsLoggedIn_args deepCopy() {
14546
      return new setUserAsLoggedIn_args(this);
48 ashish 14547
    }
14548
 
3430 rajveer 14549
    @Override
14550
    public void clear() {
14551
      setUserIdIsSet(false);
14552
      this.userId = 0;
14553
      setTimestampIsSet(false);
14554
      this.timestamp = 0;
48 ashish 14555
    }
14556
 
553 chandransh 14557
    public long getUserId() {
14558
      return this.userId;
48 ashish 14559
    }
14560
 
3430 rajveer 14561
    public void setUserId(long userId) {
553 chandransh 14562
      this.userId = userId;
14563
      setUserIdIsSet(true);
48 ashish 14564
    }
14565
 
553 chandransh 14566
    public void unsetUserId() {
14567
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48 ashish 14568
    }
14569
 
3430 rajveer 14570
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 14571
    public boolean isSetUserId() {
14572
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48 ashish 14573
    }
14574
 
553 chandransh 14575
    public void setUserIdIsSet(boolean value) {
14576
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48 ashish 14577
    }
14578
 
14579
    public long getTimestamp() {
14580
      return this.timestamp;
14581
    }
14582
 
3430 rajveer 14583
    public void setTimestamp(long timestamp) {
48 ashish 14584
      this.timestamp = timestamp;
14585
      setTimestampIsSet(true);
14586
    }
14587
 
14588
    public void unsetTimestamp() {
14589
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
14590
    }
14591
 
3430 rajveer 14592
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48 ashish 14593
    public boolean isSetTimestamp() {
14594
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
14595
    }
14596
 
14597
    public void setTimestampIsSet(boolean value) {
14598
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
14599
    }
14600
 
14601
    public void setFieldValue(_Fields field, Object value) {
14602
      switch (field) {
553 chandransh 14603
      case USER_ID:
48 ashish 14604
        if (value == null) {
553 chandransh 14605
          unsetUserId();
48 ashish 14606
        } else {
553 chandransh 14607
          setUserId((Long)value);
48 ashish 14608
        }
14609
        break;
14610
 
14611
      case TIMESTAMP:
14612
        if (value == null) {
14613
          unsetTimestamp();
14614
        } else {
14615
          setTimestamp((Long)value);
14616
        }
14617
        break;
14618
 
14619
      }
14620
    }
14621
 
14622
    public Object getFieldValue(_Fields field) {
14623
      switch (field) {
553 chandransh 14624
      case USER_ID:
3430 rajveer 14625
        return Long.valueOf(getUserId());
48 ashish 14626
 
14627
      case TIMESTAMP:
3430 rajveer 14628
        return Long.valueOf(getTimestamp());
48 ashish 14629
 
14630
      }
14631
      throw new IllegalStateException();
14632
    }
14633
 
3430 rajveer 14634
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14635
    public boolean isSet(_Fields field) {
14636
      if (field == null) {
14637
        throw new IllegalArgumentException();
14638
      }
48 ashish 14639
 
14640
      switch (field) {
553 chandransh 14641
      case USER_ID:
14642
        return isSetUserId();
48 ashish 14643
      case TIMESTAMP:
14644
        return isSetTimestamp();
14645
      }
14646
      throw new IllegalStateException();
14647
    }
14648
 
14649
    @Override
14650
    public boolean equals(Object that) {
14651
      if (that == null)
14652
        return false;
553 chandransh 14653
      if (that instanceof setUserAsLoggedIn_args)
14654
        return this.equals((setUserAsLoggedIn_args)that);
48 ashish 14655
      return false;
14656
    }
14657
 
553 chandransh 14658
    public boolean equals(setUserAsLoggedIn_args that) {
48 ashish 14659
      if (that == null)
14660
        return false;
14661
 
553 chandransh 14662
      boolean this_present_userId = true;
14663
      boolean that_present_userId = true;
14664
      if (this_present_userId || that_present_userId) {
14665
        if (!(this_present_userId && that_present_userId))
48 ashish 14666
          return false;
553 chandransh 14667
        if (this.userId != that.userId)
48 ashish 14668
          return false;
14669
      }
14670
 
14671
      boolean this_present_timestamp = true;
14672
      boolean that_present_timestamp = true;
14673
      if (this_present_timestamp || that_present_timestamp) {
14674
        if (!(this_present_timestamp && that_present_timestamp))
14675
          return false;
14676
        if (this.timestamp != that.timestamp)
14677
          return false;
14678
      }
14679
 
14680
      return true;
14681
    }
14682
 
14683
    @Override
14684
    public int hashCode() {
14685
      return 0;
14686
    }
14687
 
553 chandransh 14688
    public int compareTo(setUserAsLoggedIn_args other) {
48 ashish 14689
      if (!getClass().equals(other.getClass())) {
14690
        return getClass().getName().compareTo(other.getClass().getName());
14691
      }
14692
 
14693
      int lastComparison = 0;
553 chandransh 14694
      setUserAsLoggedIn_args typedOther = (setUserAsLoggedIn_args)other;
48 ashish 14695
 
3430 rajveer 14696
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 14697
      if (lastComparison != 0) {
14698
        return lastComparison;
14699
      }
3430 rajveer 14700
      if (isSetUserId()) {
14701
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
14702
        if (lastComparison != 0) {
14703
          return lastComparison;
14704
        }
48 ashish 14705
      }
3430 rajveer 14706
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48 ashish 14707
      if (lastComparison != 0) {
14708
        return lastComparison;
14709
      }
3430 rajveer 14710
      if (isSetTimestamp()) {
14711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
14712
        if (lastComparison != 0) {
14713
          return lastComparison;
14714
        }
48 ashish 14715
      }
14716
      return 0;
14717
    }
14718
 
3430 rajveer 14719
    public _Fields fieldForId(int fieldId) {
14720
      return _Fields.findByThriftId(fieldId);
14721
    }
14722
 
14723
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14724
      org.apache.thrift.protocol.TField field;
48 ashish 14725
      iprot.readStructBegin();
14726
      while (true)
14727
      {
14728
        field = iprot.readFieldBegin();
3430 rajveer 14729
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14730
          break;
14731
        }
3430 rajveer 14732
        switch (field.id) {
14733
          case 1: // USER_ID
14734
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14735
              this.userId = iprot.readI64();
14736
              setUserIdIsSet(true);
14737
            } else { 
14738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14739
            }
14740
            break;
14741
          case 2: // TIMESTAMP
14742
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14743
              this.timestamp = iprot.readI64();
14744
              setTimestampIsSet(true);
14745
            } else { 
14746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14747
            }
14748
            break;
14749
          default:
14750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14751
        }
3430 rajveer 14752
        iprot.readFieldEnd();
48 ashish 14753
      }
14754
      iprot.readStructEnd();
14755
      validate();
14756
    }
14757
 
3430 rajveer 14758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14759
      validate();
14760
 
14761
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 14762
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
14763
      oprot.writeI64(this.userId);
14764
      oprot.writeFieldEnd();
48 ashish 14765
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
14766
      oprot.writeI64(this.timestamp);
14767
      oprot.writeFieldEnd();
14768
      oprot.writeFieldStop();
14769
      oprot.writeStructEnd();
14770
    }
14771
 
14772
    @Override
14773
    public String toString() {
553 chandransh 14774
      StringBuilder sb = new StringBuilder("setUserAsLoggedIn_args(");
48 ashish 14775
      boolean first = true;
14776
 
553 chandransh 14777
      sb.append("userId:");
14778
      sb.append(this.userId);
48 ashish 14779
      first = false;
14780
      if (!first) sb.append(", ");
14781
      sb.append("timestamp:");
14782
      sb.append(this.timestamp);
14783
      first = false;
14784
      sb.append(")");
14785
      return sb.toString();
14786
    }
14787
 
3430 rajveer 14788
    public void validate() throws org.apache.thrift.TException {
48 ashish 14789
      // check for required fields
14790
    }
14791
 
3430 rajveer 14792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14793
      try {
14794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14795
      } catch (org.apache.thrift.TException te) {
14796
        throw new java.io.IOException(te);
14797
      }
14798
    }
14799
 
14800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14801
      try {
14802
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14803
        __isset_bit_vector = new BitSet(1);
14804
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14805
      } catch (org.apache.thrift.TException te) {
14806
        throw new java.io.IOException(te);
14807
      }
14808
    }
14809
 
48 ashish 14810
  }
14811
 
3430 rajveer 14812
  public static class setUserAsLoggedIn_result implements org.apache.thrift.TBase<setUserAsLoggedIn_result, setUserAsLoggedIn_result._Fields>, java.io.Serializable, Cloneable   {
14813
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedIn_result");
48 ashish 14814
 
3430 rajveer 14815
    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);
14816
    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 14817
 
3430 rajveer 14818
    private boolean success; // required
14819
    private UserContextException ucx; // required
48 ashish 14820
 
14821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 14823
      SUCCESS((short)0, "success"),
14824
      UCX((short)1, "ucx");
14825
 
14826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14827
 
14828
      static {
14829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14830
          byName.put(field.getFieldName(), field);
14831
        }
14832
      }
14833
 
14834
      /**
14835
       * Find the _Fields constant that matches fieldId, or null if its not found.
14836
       */
14837
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14838
        switch(fieldId) {
14839
          case 0: // SUCCESS
14840
            return SUCCESS;
14841
          case 1: // UCX
14842
            return UCX;
14843
          default:
14844
            return null;
14845
        }
48 ashish 14846
      }
14847
 
14848
      /**
14849
       * Find the _Fields constant that matches fieldId, throwing an exception
14850
       * if it is not found.
14851
       */
14852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14853
        _Fields fields = findByThriftId(fieldId);
14854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14855
        return fields;
14856
      }
14857
 
14858
      /**
14859
       * Find the _Fields constant that matches name, or null if its not found.
14860
       */
14861
      public static _Fields findByName(String name) {
14862
        return byName.get(name);
14863
      }
14864
 
14865
      private final short _thriftId;
14866
      private final String _fieldName;
14867
 
14868
      _Fields(short thriftId, String fieldName) {
14869
        _thriftId = thriftId;
14870
        _fieldName = fieldName;
14871
      }
14872
 
14873
      public short getThriftFieldId() {
14874
        return _thriftId;
14875
      }
14876
 
14877
      public String getFieldName() {
14878
        return _fieldName;
14879
      }
14880
    }
14881
 
14882
    // isset id assignments
14883
    private static final int __SUCCESS_ISSET_ID = 0;
14884
    private BitSet __isset_bit_vector = new BitSet(1);
14885
 
3430 rajveer 14886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14887
    static {
3430 rajveer 14888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14889
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14891
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14893
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14894
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedIn_result.class, metaDataMap);
48 ashish 14895
    }
14896
 
553 chandransh 14897
    public setUserAsLoggedIn_result() {
48 ashish 14898
    }
14899
 
553 chandransh 14900
    public setUserAsLoggedIn_result(
48 ashish 14901
      boolean success,
14902
      UserContextException ucx)
14903
    {
14904
      this();
14905
      this.success = success;
14906
      setSuccessIsSet(true);
14907
      this.ucx = ucx;
14908
    }
14909
 
14910
    /**
14911
     * Performs a deep copy on <i>other</i>.
14912
     */
553 chandransh 14913
    public setUserAsLoggedIn_result(setUserAsLoggedIn_result other) {
48 ashish 14914
      __isset_bit_vector.clear();
14915
      __isset_bit_vector.or(other.__isset_bit_vector);
14916
      this.success = other.success;
14917
      if (other.isSetUcx()) {
14918
        this.ucx = new UserContextException(other.ucx);
14919
      }
14920
    }
14921
 
553 chandransh 14922
    public setUserAsLoggedIn_result deepCopy() {
14923
      return new setUserAsLoggedIn_result(this);
48 ashish 14924
    }
14925
 
3430 rajveer 14926
    @Override
14927
    public void clear() {
14928
      setSuccessIsSet(false);
14929
      this.success = false;
14930
      this.ucx = null;
48 ashish 14931
    }
14932
 
14933
    public boolean isSuccess() {
14934
      return this.success;
14935
    }
14936
 
3430 rajveer 14937
    public void setSuccess(boolean success) {
48 ashish 14938
      this.success = success;
14939
      setSuccessIsSet(true);
14940
    }
14941
 
14942
    public void unsetSuccess() {
14943
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14944
    }
14945
 
3430 rajveer 14946
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 14947
    public boolean isSetSuccess() {
14948
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14949
    }
14950
 
14951
    public void setSuccessIsSet(boolean value) {
14952
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14953
    }
14954
 
14955
    public UserContextException getUcx() {
14956
      return this.ucx;
14957
    }
14958
 
3430 rajveer 14959
    public void setUcx(UserContextException ucx) {
48 ashish 14960
      this.ucx = ucx;
14961
    }
14962
 
14963
    public void unsetUcx() {
14964
      this.ucx = null;
14965
    }
14966
 
3430 rajveer 14967
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 14968
    public boolean isSetUcx() {
14969
      return this.ucx != null;
14970
    }
14971
 
14972
    public void setUcxIsSet(boolean value) {
14973
      if (!value) {
14974
        this.ucx = null;
14975
      }
14976
    }
14977
 
14978
    public void setFieldValue(_Fields field, Object value) {
14979
      switch (field) {
14980
      case SUCCESS:
14981
        if (value == null) {
14982
          unsetSuccess();
14983
        } else {
14984
          setSuccess((Boolean)value);
14985
        }
14986
        break;
14987
 
14988
      case UCX:
14989
        if (value == null) {
14990
          unsetUcx();
14991
        } else {
14992
          setUcx((UserContextException)value);
14993
        }
14994
        break;
14995
 
14996
      }
14997
    }
14998
 
14999
    public Object getFieldValue(_Fields field) {
15000
      switch (field) {
15001
      case SUCCESS:
3430 rajveer 15002
        return Boolean.valueOf(isSuccess());
48 ashish 15003
 
15004
      case UCX:
15005
        return getUcx();
15006
 
15007
      }
15008
      throw new IllegalStateException();
15009
    }
15010
 
3430 rajveer 15011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15012
    public boolean isSet(_Fields field) {
15013
      if (field == null) {
15014
        throw new IllegalArgumentException();
15015
      }
48 ashish 15016
 
15017
      switch (field) {
15018
      case SUCCESS:
15019
        return isSetSuccess();
15020
      case UCX:
15021
        return isSetUcx();
15022
      }
15023
      throw new IllegalStateException();
15024
    }
15025
 
15026
    @Override
15027
    public boolean equals(Object that) {
15028
      if (that == null)
15029
        return false;
553 chandransh 15030
      if (that instanceof setUserAsLoggedIn_result)
15031
        return this.equals((setUserAsLoggedIn_result)that);
48 ashish 15032
      return false;
15033
    }
15034
 
553 chandransh 15035
    public boolean equals(setUserAsLoggedIn_result that) {
48 ashish 15036
      if (that == null)
15037
        return false;
15038
 
15039
      boolean this_present_success = true;
15040
      boolean that_present_success = true;
15041
      if (this_present_success || that_present_success) {
15042
        if (!(this_present_success && that_present_success))
15043
          return false;
15044
        if (this.success != that.success)
15045
          return false;
15046
      }
15047
 
15048
      boolean this_present_ucx = true && this.isSetUcx();
15049
      boolean that_present_ucx = true && that.isSetUcx();
15050
      if (this_present_ucx || that_present_ucx) {
15051
        if (!(this_present_ucx && that_present_ucx))
15052
          return false;
15053
        if (!this.ucx.equals(that.ucx))
15054
          return false;
15055
      }
15056
 
15057
      return true;
15058
    }
15059
 
15060
    @Override
15061
    public int hashCode() {
15062
      return 0;
15063
    }
15064
 
553 chandransh 15065
    public int compareTo(setUserAsLoggedIn_result other) {
48 ashish 15066
      if (!getClass().equals(other.getClass())) {
15067
        return getClass().getName().compareTo(other.getClass().getName());
15068
      }
15069
 
15070
      int lastComparison = 0;
553 chandransh 15071
      setUserAsLoggedIn_result typedOther = (setUserAsLoggedIn_result)other;
48 ashish 15072
 
3430 rajveer 15073
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 15074
      if (lastComparison != 0) {
15075
        return lastComparison;
15076
      }
3430 rajveer 15077
      if (isSetSuccess()) {
15078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15079
        if (lastComparison != 0) {
15080
          return lastComparison;
15081
        }
48 ashish 15082
      }
3430 rajveer 15083
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 15084
      if (lastComparison != 0) {
15085
        return lastComparison;
15086
      }
3430 rajveer 15087
      if (isSetUcx()) {
15088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
15089
        if (lastComparison != 0) {
15090
          return lastComparison;
15091
        }
48 ashish 15092
      }
15093
      return 0;
15094
    }
15095
 
3430 rajveer 15096
    public _Fields fieldForId(int fieldId) {
15097
      return _Fields.findByThriftId(fieldId);
15098
    }
15099
 
15100
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15101
      org.apache.thrift.protocol.TField field;
48 ashish 15102
      iprot.readStructBegin();
15103
      while (true)
15104
      {
15105
        field = iprot.readFieldBegin();
3430 rajveer 15106
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15107
          break;
15108
        }
3430 rajveer 15109
        switch (field.id) {
15110
          case 0: // SUCCESS
15111
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15112
              this.success = iprot.readBool();
15113
              setSuccessIsSet(true);
15114
            } else { 
15115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15116
            }
15117
            break;
15118
          case 1: // UCX
15119
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15120
              this.ucx = new UserContextException();
15121
              this.ucx.read(iprot);
15122
            } else { 
15123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15124
            }
15125
            break;
15126
          default:
15127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15128
        }
3430 rajveer 15129
        iprot.readFieldEnd();
48 ashish 15130
      }
15131
      iprot.readStructEnd();
15132
      validate();
15133
    }
15134
 
3430 rajveer 15135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15136
      oprot.writeStructBegin(STRUCT_DESC);
15137
 
15138
      if (this.isSetSuccess()) {
15139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15140
        oprot.writeBool(this.success);
15141
        oprot.writeFieldEnd();
15142
      } else if (this.isSetUcx()) {
15143
        oprot.writeFieldBegin(UCX_FIELD_DESC);
15144
        this.ucx.write(oprot);
15145
        oprot.writeFieldEnd();
15146
      }
15147
      oprot.writeFieldStop();
15148
      oprot.writeStructEnd();
15149
    }
15150
 
15151
    @Override
15152
    public String toString() {
553 chandransh 15153
      StringBuilder sb = new StringBuilder("setUserAsLoggedIn_result(");
48 ashish 15154
      boolean first = true;
15155
 
15156
      sb.append("success:");
15157
      sb.append(this.success);
15158
      first = false;
15159
      if (!first) sb.append(", ");
15160
      sb.append("ucx:");
15161
      if (this.ucx == null) {
15162
        sb.append("null");
15163
      } else {
15164
        sb.append(this.ucx);
15165
      }
15166
      first = false;
15167
      sb.append(")");
15168
      return sb.toString();
15169
    }
15170
 
3430 rajveer 15171
    public void validate() throws org.apache.thrift.TException {
48 ashish 15172
      // check for required fields
15173
    }
15174
 
3430 rajveer 15175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15176
      try {
15177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15178
      } catch (org.apache.thrift.TException te) {
15179
        throw new java.io.IOException(te);
15180
      }
15181
    }
15182
 
15183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15184
      try {
15185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15186
      } catch (org.apache.thrift.TException te) {
15187
        throw new java.io.IOException(te);
15188
      }
15189
    }
15190
 
48 ashish 15191
  }
15192
 
3430 rajveer 15193
  public static class setUserAsLoggedOut_args implements org.apache.thrift.TBase<setUserAsLoggedOut_args, setUserAsLoggedOut_args._Fields>, java.io.Serializable, Cloneable   {
15194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedOut_args");
48 ashish 15195
 
3430 rajveer 15196
    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);
15197
    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 15198
 
3430 rajveer 15199
    private long userid; // required
15200
    private long timestamp; // required
48 ashish 15201
 
15202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 15204
      USERID((short)1, "userid"),
15205
      TIMESTAMP((short)2, "timestamp");
48 ashish 15206
 
15207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15208
 
15209
      static {
15210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15211
          byName.put(field.getFieldName(), field);
15212
        }
15213
      }
15214
 
15215
      /**
15216
       * Find the _Fields constant that matches fieldId, or null if its not found.
15217
       */
15218
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15219
        switch(fieldId) {
15220
          case 1: // USERID
15221
            return USERID;
15222
          case 2: // TIMESTAMP
15223
            return TIMESTAMP;
15224
          default:
15225
            return null;
15226
        }
48 ashish 15227
      }
15228
 
15229
      /**
15230
       * Find the _Fields constant that matches fieldId, throwing an exception
15231
       * if it is not found.
15232
       */
15233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15234
        _Fields fields = findByThriftId(fieldId);
15235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15236
        return fields;
15237
      }
15238
 
15239
      /**
15240
       * Find the _Fields constant that matches name, or null if its not found.
15241
       */
15242
      public static _Fields findByName(String name) {
15243
        return byName.get(name);
15244
      }
15245
 
15246
      private final short _thriftId;
15247
      private final String _fieldName;
15248
 
15249
      _Fields(short thriftId, String fieldName) {
15250
        _thriftId = thriftId;
15251
        _fieldName = fieldName;
15252
      }
15253
 
15254
      public short getThriftFieldId() {
15255
        return _thriftId;
15256
      }
15257
 
15258
      public String getFieldName() {
15259
        return _fieldName;
15260
      }
15261
    }
15262
 
15263
    // isset id assignments
15264
    private static final int __USERID_ISSET_ID = 0;
15265
    private static final int __TIMESTAMP_ISSET_ID = 1;
553 chandransh 15266
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 15267
 
3430 rajveer 15268
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15269
    static {
3430 rajveer 15270
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15271
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15273
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15275
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15276
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedOut_args.class, metaDataMap);
48 ashish 15277
    }
15278
 
553 chandransh 15279
    public setUserAsLoggedOut_args() {
48 ashish 15280
    }
15281
 
553 chandransh 15282
    public setUserAsLoggedOut_args(
48 ashish 15283
      long userid,
553 chandransh 15284
      long timestamp)
48 ashish 15285
    {
15286
      this();
15287
      this.userid = userid;
15288
      setUseridIsSet(true);
15289
      this.timestamp = timestamp;
15290
      setTimestampIsSet(true);
15291
    }
15292
 
15293
    /**
15294
     * Performs a deep copy on <i>other</i>.
15295
     */
553 chandransh 15296
    public setUserAsLoggedOut_args(setUserAsLoggedOut_args other) {
48 ashish 15297
      __isset_bit_vector.clear();
15298
      __isset_bit_vector.or(other.__isset_bit_vector);
15299
      this.userid = other.userid;
15300
      this.timestamp = other.timestamp;
15301
    }
15302
 
553 chandransh 15303
    public setUserAsLoggedOut_args deepCopy() {
15304
      return new setUserAsLoggedOut_args(this);
48 ashish 15305
    }
15306
 
3430 rajveer 15307
    @Override
15308
    public void clear() {
15309
      setUseridIsSet(false);
15310
      this.userid = 0;
15311
      setTimestampIsSet(false);
15312
      this.timestamp = 0;
48 ashish 15313
    }
15314
 
15315
    public long getUserid() {
15316
      return this.userid;
15317
    }
15318
 
3430 rajveer 15319
    public void setUserid(long userid) {
48 ashish 15320
      this.userid = userid;
15321
      setUseridIsSet(true);
15322
    }
15323
 
15324
    public void unsetUserid() {
15325
      __isset_bit_vector.clear(__USERID_ISSET_ID);
15326
    }
15327
 
3430 rajveer 15328
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
48 ashish 15329
    public boolean isSetUserid() {
15330
      return __isset_bit_vector.get(__USERID_ISSET_ID);
15331
    }
15332
 
15333
    public void setUseridIsSet(boolean value) {
15334
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
15335
    }
15336
 
15337
    public long getTimestamp() {
15338
      return this.timestamp;
15339
    }
15340
 
3430 rajveer 15341
    public void setTimestamp(long timestamp) {
48 ashish 15342
      this.timestamp = timestamp;
15343
      setTimestampIsSet(true);
15344
    }
15345
 
15346
    public void unsetTimestamp() {
15347
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
15348
    }
15349
 
3430 rajveer 15350
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48 ashish 15351
    public boolean isSetTimestamp() {
15352
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
15353
    }
15354
 
15355
    public void setTimestampIsSet(boolean value) {
15356
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
15357
    }
15358
 
15359
    public void setFieldValue(_Fields field, Object value) {
15360
      switch (field) {
15361
      case USERID:
15362
        if (value == null) {
15363
          unsetUserid();
15364
        } else {
15365
          setUserid((Long)value);
15366
        }
15367
        break;
15368
 
15369
      case TIMESTAMP:
15370
        if (value == null) {
15371
          unsetTimestamp();
15372
        } else {
15373
          setTimestamp((Long)value);
15374
        }
15375
        break;
15376
 
15377
      }
15378
    }
15379
 
15380
    public Object getFieldValue(_Fields field) {
15381
      switch (field) {
15382
      case USERID:
3430 rajveer 15383
        return Long.valueOf(getUserid());
48 ashish 15384
 
15385
      case TIMESTAMP:
3430 rajveer 15386
        return Long.valueOf(getTimestamp());
48 ashish 15387
 
15388
      }
15389
      throw new IllegalStateException();
15390
    }
15391
 
3430 rajveer 15392
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15393
    public boolean isSet(_Fields field) {
15394
      if (field == null) {
15395
        throw new IllegalArgumentException();
15396
      }
48 ashish 15397
 
15398
      switch (field) {
15399
      case USERID:
15400
        return isSetUserid();
15401
      case TIMESTAMP:
15402
        return isSetTimestamp();
15403
      }
15404
      throw new IllegalStateException();
15405
    }
15406
 
15407
    @Override
15408
    public boolean equals(Object that) {
15409
      if (that == null)
15410
        return false;
553 chandransh 15411
      if (that instanceof setUserAsLoggedOut_args)
15412
        return this.equals((setUserAsLoggedOut_args)that);
48 ashish 15413
      return false;
15414
    }
15415
 
553 chandransh 15416
    public boolean equals(setUserAsLoggedOut_args that) {
48 ashish 15417
      if (that == null)
15418
        return false;
15419
 
15420
      boolean this_present_userid = true;
15421
      boolean that_present_userid = true;
15422
      if (this_present_userid || that_present_userid) {
15423
        if (!(this_present_userid && that_present_userid))
15424
          return false;
15425
        if (this.userid != that.userid)
15426
          return false;
15427
      }
15428
 
15429
      boolean this_present_timestamp = true;
15430
      boolean that_present_timestamp = true;
15431
      if (this_present_timestamp || that_present_timestamp) {
15432
        if (!(this_present_timestamp && that_present_timestamp))
15433
          return false;
15434
        if (this.timestamp != that.timestamp)
15435
          return false;
15436
      }
15437
 
15438
      return true;
15439
    }
15440
 
15441
    @Override
15442
    public int hashCode() {
15443
      return 0;
15444
    }
15445
 
553 chandransh 15446
    public int compareTo(setUserAsLoggedOut_args other) {
48 ashish 15447
      if (!getClass().equals(other.getClass())) {
15448
        return getClass().getName().compareTo(other.getClass().getName());
15449
      }
15450
 
15451
      int lastComparison = 0;
553 chandransh 15452
      setUserAsLoggedOut_args typedOther = (setUserAsLoggedOut_args)other;
48 ashish 15453
 
3430 rajveer 15454
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 15455
      if (lastComparison != 0) {
15456
        return lastComparison;
15457
      }
3430 rajveer 15458
      if (isSetUserid()) {
15459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
15460
        if (lastComparison != 0) {
15461
          return lastComparison;
15462
        }
48 ashish 15463
      }
3430 rajveer 15464
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48 ashish 15465
      if (lastComparison != 0) {
15466
        return lastComparison;
15467
      }
3430 rajveer 15468
      if (isSetTimestamp()) {
15469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
15470
        if (lastComparison != 0) {
15471
          return lastComparison;
15472
        }
48 ashish 15473
      }
15474
      return 0;
15475
    }
15476
 
3430 rajveer 15477
    public _Fields fieldForId(int fieldId) {
15478
      return _Fields.findByThriftId(fieldId);
15479
    }
15480
 
15481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15482
      org.apache.thrift.protocol.TField field;
48 ashish 15483
      iprot.readStructBegin();
15484
      while (true)
15485
      {
15486
        field = iprot.readFieldBegin();
3430 rajveer 15487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15488
          break;
15489
        }
3430 rajveer 15490
        switch (field.id) {
15491
          case 1: // USERID
15492
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15493
              this.userid = iprot.readI64();
15494
              setUseridIsSet(true);
15495
            } else { 
15496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15497
            }
15498
            break;
15499
          case 2: // TIMESTAMP
15500
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15501
              this.timestamp = iprot.readI64();
15502
              setTimestampIsSet(true);
15503
            } else { 
15504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15505
            }
15506
            break;
15507
          default:
15508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15509
        }
3430 rajveer 15510
        iprot.readFieldEnd();
48 ashish 15511
      }
15512
      iprot.readStructEnd();
15513
      validate();
15514
    }
15515
 
3430 rajveer 15516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15517
      validate();
15518
 
15519
      oprot.writeStructBegin(STRUCT_DESC);
15520
      oprot.writeFieldBegin(USERID_FIELD_DESC);
15521
      oprot.writeI64(this.userid);
15522
      oprot.writeFieldEnd();
15523
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
15524
      oprot.writeI64(this.timestamp);
15525
      oprot.writeFieldEnd();
15526
      oprot.writeFieldStop();
15527
      oprot.writeStructEnd();
15528
    }
15529
 
15530
    @Override
15531
    public String toString() {
553 chandransh 15532
      StringBuilder sb = new StringBuilder("setUserAsLoggedOut_args(");
48 ashish 15533
      boolean first = true;
15534
 
15535
      sb.append("userid:");
15536
      sb.append(this.userid);
15537
      first = false;
15538
      if (!first) sb.append(", ");
15539
      sb.append("timestamp:");
15540
      sb.append(this.timestamp);
15541
      first = false;
15542
      sb.append(")");
15543
      return sb.toString();
15544
    }
15545
 
3430 rajveer 15546
    public void validate() throws org.apache.thrift.TException {
48 ashish 15547
      // check for required fields
15548
    }
15549
 
3430 rajveer 15550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15551
      try {
15552
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15553
      } catch (org.apache.thrift.TException te) {
15554
        throw new java.io.IOException(te);
15555
      }
15556
    }
15557
 
15558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15559
      try {
15560
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15561
        __isset_bit_vector = new BitSet(1);
15562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15563
      } catch (org.apache.thrift.TException te) {
15564
        throw new java.io.IOException(te);
15565
      }
15566
    }
15567
 
48 ashish 15568
  }
15569
 
3430 rajveer 15570
  public static class setUserAsLoggedOut_result implements org.apache.thrift.TBase<setUserAsLoggedOut_result, setUserAsLoggedOut_result._Fields>, java.io.Serializable, Cloneable   {
15571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedOut_result");
48 ashish 15572
 
3430 rajveer 15573
    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);
15574
    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 15575
 
3430 rajveer 15576
    private boolean success; // required
15577
    private UserContextException ucx; // required
48 ashish 15578
 
15579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 15581
      SUCCESS((short)0, "success"),
15582
      UCX((short)1, "ucx");
15583
 
15584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15585
 
15586
      static {
15587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15588
          byName.put(field.getFieldName(), field);
15589
        }
15590
      }
15591
 
15592
      /**
15593
       * Find the _Fields constant that matches fieldId, or null if its not found.
15594
       */
15595
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15596
        switch(fieldId) {
15597
          case 0: // SUCCESS
15598
            return SUCCESS;
15599
          case 1: // UCX
15600
            return UCX;
15601
          default:
15602
            return null;
15603
        }
48 ashish 15604
      }
15605
 
15606
      /**
15607
       * Find the _Fields constant that matches fieldId, throwing an exception
15608
       * if it is not found.
15609
       */
15610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15611
        _Fields fields = findByThriftId(fieldId);
15612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15613
        return fields;
15614
      }
15615
 
15616
      /**
15617
       * Find the _Fields constant that matches name, or null if its not found.
15618
       */
15619
      public static _Fields findByName(String name) {
15620
        return byName.get(name);
15621
      }
15622
 
15623
      private final short _thriftId;
15624
      private final String _fieldName;
15625
 
15626
      _Fields(short thriftId, String fieldName) {
15627
        _thriftId = thriftId;
15628
        _fieldName = fieldName;
15629
      }
15630
 
15631
      public short getThriftFieldId() {
15632
        return _thriftId;
15633
      }
15634
 
15635
      public String getFieldName() {
15636
        return _fieldName;
15637
      }
15638
    }
15639
 
15640
    // isset id assignments
15641
    private static final int __SUCCESS_ISSET_ID = 0;
15642
    private BitSet __isset_bit_vector = new BitSet(1);
15643
 
3430 rajveer 15644
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15645
    static {
3430 rajveer 15646
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15647
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15649
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedOut_result.class, metaDataMap);
48 ashish 15653
    }
15654
 
553 chandransh 15655
    public setUserAsLoggedOut_result() {
48 ashish 15656
    }
15657
 
553 chandransh 15658
    public setUserAsLoggedOut_result(
48 ashish 15659
      boolean success,
15660
      UserContextException ucx)
15661
    {
15662
      this();
15663
      this.success = success;
15664
      setSuccessIsSet(true);
15665
      this.ucx = ucx;
15666
    }
15667
 
15668
    /**
15669
     * Performs a deep copy on <i>other</i>.
15670
     */
553 chandransh 15671
    public setUserAsLoggedOut_result(setUserAsLoggedOut_result other) {
48 ashish 15672
      __isset_bit_vector.clear();
15673
      __isset_bit_vector.or(other.__isset_bit_vector);
15674
      this.success = other.success;
15675
      if (other.isSetUcx()) {
15676
        this.ucx = new UserContextException(other.ucx);
15677
      }
15678
    }
15679
 
553 chandransh 15680
    public setUserAsLoggedOut_result deepCopy() {
15681
      return new setUserAsLoggedOut_result(this);
48 ashish 15682
    }
15683
 
3430 rajveer 15684
    @Override
15685
    public void clear() {
15686
      setSuccessIsSet(false);
15687
      this.success = false;
15688
      this.ucx = null;
48 ashish 15689
    }
15690
 
15691
    public boolean isSuccess() {
15692
      return this.success;
15693
    }
15694
 
3430 rajveer 15695
    public void setSuccess(boolean success) {
48 ashish 15696
      this.success = success;
15697
      setSuccessIsSet(true);
15698
    }
15699
 
15700
    public void unsetSuccess() {
15701
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15702
    }
15703
 
3430 rajveer 15704
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 15705
    public boolean isSetSuccess() {
15706
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15707
    }
15708
 
15709
    public void setSuccessIsSet(boolean value) {
15710
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15711
    }
15712
 
15713
    public UserContextException getUcx() {
15714
      return this.ucx;
15715
    }
15716
 
3430 rajveer 15717
    public void setUcx(UserContextException ucx) {
48 ashish 15718
      this.ucx = ucx;
15719
    }
15720
 
15721
    public void unsetUcx() {
15722
      this.ucx = null;
15723
    }
15724
 
3430 rajveer 15725
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 15726
    public boolean isSetUcx() {
15727
      return this.ucx != null;
15728
    }
15729
 
15730
    public void setUcxIsSet(boolean value) {
15731
      if (!value) {
15732
        this.ucx = null;
15733
      }
15734
    }
15735
 
15736
    public void setFieldValue(_Fields field, Object value) {
15737
      switch (field) {
15738
      case SUCCESS:
15739
        if (value == null) {
15740
          unsetSuccess();
15741
        } else {
15742
          setSuccess((Boolean)value);
15743
        }
15744
        break;
15745
 
15746
      case UCX:
15747
        if (value == null) {
15748
          unsetUcx();
15749
        } else {
15750
          setUcx((UserContextException)value);
15751
        }
15752
        break;
15753
 
15754
      }
15755
    }
15756
 
15757
    public Object getFieldValue(_Fields field) {
15758
      switch (field) {
15759
      case SUCCESS:
3430 rajveer 15760
        return Boolean.valueOf(isSuccess());
48 ashish 15761
 
15762
      case UCX:
15763
        return getUcx();
15764
 
15765
      }
15766
      throw new IllegalStateException();
15767
    }
15768
 
3430 rajveer 15769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15770
    public boolean isSet(_Fields field) {
15771
      if (field == null) {
15772
        throw new IllegalArgumentException();
15773
      }
48 ashish 15774
 
15775
      switch (field) {
15776
      case SUCCESS:
15777
        return isSetSuccess();
15778
      case UCX:
15779
        return isSetUcx();
15780
      }
15781
      throw new IllegalStateException();
15782
    }
15783
 
15784
    @Override
15785
    public boolean equals(Object that) {
15786
      if (that == null)
15787
        return false;
553 chandransh 15788
      if (that instanceof setUserAsLoggedOut_result)
15789
        return this.equals((setUserAsLoggedOut_result)that);
48 ashish 15790
      return false;
15791
    }
15792
 
553 chandransh 15793
    public boolean equals(setUserAsLoggedOut_result that) {
48 ashish 15794
      if (that == null)
15795
        return false;
15796
 
15797
      boolean this_present_success = true;
15798
      boolean that_present_success = true;
15799
      if (this_present_success || that_present_success) {
15800
        if (!(this_present_success && that_present_success))
15801
          return false;
15802
        if (this.success != that.success)
15803
          return false;
15804
      }
15805
 
15806
      boolean this_present_ucx = true && this.isSetUcx();
15807
      boolean that_present_ucx = true && that.isSetUcx();
15808
      if (this_present_ucx || that_present_ucx) {
15809
        if (!(this_present_ucx && that_present_ucx))
15810
          return false;
15811
        if (!this.ucx.equals(that.ucx))
15812
          return false;
15813
      }
15814
 
15815
      return true;
15816
    }
15817
 
15818
    @Override
15819
    public int hashCode() {
15820
      return 0;
15821
    }
15822
 
553 chandransh 15823
    public int compareTo(setUserAsLoggedOut_result other) {
48 ashish 15824
      if (!getClass().equals(other.getClass())) {
15825
        return getClass().getName().compareTo(other.getClass().getName());
15826
      }
15827
 
15828
      int lastComparison = 0;
553 chandransh 15829
      setUserAsLoggedOut_result typedOther = (setUserAsLoggedOut_result)other;
48 ashish 15830
 
3430 rajveer 15831
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 15832
      if (lastComparison != 0) {
15833
        return lastComparison;
15834
      }
3430 rajveer 15835
      if (isSetSuccess()) {
15836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15837
        if (lastComparison != 0) {
15838
          return lastComparison;
15839
        }
48 ashish 15840
      }
3430 rajveer 15841
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 15842
      if (lastComparison != 0) {
15843
        return lastComparison;
15844
      }
3430 rajveer 15845
      if (isSetUcx()) {
15846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
15847
        if (lastComparison != 0) {
15848
          return lastComparison;
15849
        }
48 ashish 15850
      }
15851
      return 0;
15852
    }
15853
 
3430 rajveer 15854
    public _Fields fieldForId(int fieldId) {
15855
      return _Fields.findByThriftId(fieldId);
15856
    }
15857
 
15858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15859
      org.apache.thrift.protocol.TField field;
48 ashish 15860
      iprot.readStructBegin();
15861
      while (true)
15862
      {
15863
        field = iprot.readFieldBegin();
3430 rajveer 15864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15865
          break;
15866
        }
3430 rajveer 15867
        switch (field.id) {
15868
          case 0: // SUCCESS
15869
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15870
              this.success = iprot.readBool();
15871
              setSuccessIsSet(true);
15872
            } else { 
15873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15874
            }
15875
            break;
15876
          case 1: // UCX
15877
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15878
              this.ucx = new UserContextException();
15879
              this.ucx.read(iprot);
15880
            } else { 
15881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15882
            }
15883
            break;
15884
          default:
15885
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15886
        }
3430 rajveer 15887
        iprot.readFieldEnd();
48 ashish 15888
      }
15889
      iprot.readStructEnd();
15890
      validate();
15891
    }
15892
 
3430 rajveer 15893
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15894
      oprot.writeStructBegin(STRUCT_DESC);
15895
 
15896
      if (this.isSetSuccess()) {
15897
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15898
        oprot.writeBool(this.success);
15899
        oprot.writeFieldEnd();
15900
      } else if (this.isSetUcx()) {
15901
        oprot.writeFieldBegin(UCX_FIELD_DESC);
15902
        this.ucx.write(oprot);
15903
        oprot.writeFieldEnd();
15904
      }
15905
      oprot.writeFieldStop();
15906
      oprot.writeStructEnd();
15907
    }
15908
 
15909
    @Override
15910
    public String toString() {
553 chandransh 15911
      StringBuilder sb = new StringBuilder("setUserAsLoggedOut_result(");
48 ashish 15912
      boolean first = true;
15913
 
15914
      sb.append("success:");
15915
      sb.append(this.success);
15916
      first = false;
15917
      if (!first) sb.append(", ");
15918
      sb.append("ucx:");
15919
      if (this.ucx == null) {
15920
        sb.append("null");
15921
      } else {
15922
        sb.append(this.ucx);
15923
      }
15924
      first = false;
15925
      sb.append(")");
15926
      return sb.toString();
15927
    }
15928
 
3430 rajveer 15929
    public void validate() throws org.apache.thrift.TException {
48 ashish 15930
      // check for required fields
15931
    }
15932
 
3430 rajveer 15933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15934
      try {
15935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15936
      } catch (org.apache.thrift.TException te) {
15937
        throw new java.io.IOException(te);
15938
      }
15939
    }
15940
 
15941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15942
      try {
15943
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15944
      } catch (org.apache.thrift.TException te) {
15945
        throw new java.io.IOException(te);
15946
      }
15947
    }
15948
 
48 ashish 15949
  }
15950
 
3430 rajveer 15951
  public static class setDefaultAddress_args implements org.apache.thrift.TBase<setDefaultAddress_args, setDefaultAddress_args._Fields>, java.io.Serializable, Cloneable   {
15952
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setDefaultAddress_args");
48 ashish 15953
 
3430 rajveer 15954
    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);
15955
    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 15956
 
3430 rajveer 15957
    private long userid; // required
15958
    private long addressId; // required
48 ashish 15959
 
15960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15961
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 15962
      USERID((short)1, "userid"),
15963
      ADDRESS_ID((short)2, "addressId");
15964
 
15965
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15966
 
15967
      static {
15968
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15969
          byName.put(field.getFieldName(), field);
15970
        }
15971
      }
15972
 
15973
      /**
15974
       * Find the _Fields constant that matches fieldId, or null if its not found.
15975
       */
15976
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15977
        switch(fieldId) {
15978
          case 1: // USERID
15979
            return USERID;
15980
          case 2: // ADDRESS_ID
15981
            return ADDRESS_ID;
15982
          default:
15983
            return null;
15984
        }
48 ashish 15985
      }
15986
 
15987
      /**
15988
       * Find the _Fields constant that matches fieldId, throwing an exception
15989
       * if it is not found.
15990
       */
15991
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15992
        _Fields fields = findByThriftId(fieldId);
15993
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15994
        return fields;
15995
      }
15996
 
15997
      /**
15998
       * Find the _Fields constant that matches name, or null if its not found.
15999
       */
16000
      public static _Fields findByName(String name) {
16001
        return byName.get(name);
16002
      }
16003
 
16004
      private final short _thriftId;
16005
      private final String _fieldName;
16006
 
16007
      _Fields(short thriftId, String fieldName) {
16008
        _thriftId = thriftId;
16009
        _fieldName = fieldName;
16010
      }
16011
 
16012
      public short getThriftFieldId() {
16013
        return _thriftId;
16014
      }
16015
 
16016
      public String getFieldName() {
16017
        return _fieldName;
16018
      }
16019
    }
16020
 
16021
    // isset id assignments
16022
    private static final int __USERID_ISSET_ID = 0;
16023
    private static final int __ADDRESSID_ISSET_ID = 1;
16024
    private BitSet __isset_bit_vector = new BitSet(2);
16025
 
3430 rajveer 16026
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16027
    static {
3430 rajveer 16028
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16029
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16031
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setDefaultAddress_args.class, metaDataMap);
48 ashish 16035
    }
16036
 
553 chandransh 16037
    public setDefaultAddress_args() {
48 ashish 16038
    }
16039
 
553 chandransh 16040
    public setDefaultAddress_args(
48 ashish 16041
      long userid,
16042
      long addressId)
16043
    {
16044
      this();
16045
      this.userid = userid;
16046
      setUseridIsSet(true);
16047
      this.addressId = addressId;
16048
      setAddressIdIsSet(true);
16049
    }
16050
 
16051
    /**
16052
     * Performs a deep copy on <i>other</i>.
16053
     */
553 chandransh 16054
    public setDefaultAddress_args(setDefaultAddress_args other) {
48 ashish 16055
      __isset_bit_vector.clear();
16056
      __isset_bit_vector.or(other.__isset_bit_vector);
16057
      this.userid = other.userid;
16058
      this.addressId = other.addressId;
16059
    }
16060
 
553 chandransh 16061
    public setDefaultAddress_args deepCopy() {
16062
      return new setDefaultAddress_args(this);
48 ashish 16063
    }
16064
 
3430 rajveer 16065
    @Override
16066
    public void clear() {
16067
      setUseridIsSet(false);
16068
      this.userid = 0;
16069
      setAddressIdIsSet(false);
16070
      this.addressId = 0;
48 ashish 16071
    }
16072
 
16073
    public long getUserid() {
16074
      return this.userid;
16075
    }
16076
 
3430 rajveer 16077
    public void setUserid(long userid) {
48 ashish 16078
      this.userid = userid;
16079
      setUseridIsSet(true);
16080
    }
16081
 
16082
    public void unsetUserid() {
16083
      __isset_bit_vector.clear(__USERID_ISSET_ID);
16084
    }
16085
 
3430 rajveer 16086
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
48 ashish 16087
    public boolean isSetUserid() {
16088
      return __isset_bit_vector.get(__USERID_ISSET_ID);
16089
    }
16090
 
16091
    public void setUseridIsSet(boolean value) {
16092
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
16093
    }
16094
 
16095
    public long getAddressId() {
16096
      return this.addressId;
16097
    }
16098
 
3430 rajveer 16099
    public void setAddressId(long addressId) {
48 ashish 16100
      this.addressId = addressId;
16101
      setAddressIdIsSet(true);
16102
    }
16103
 
16104
    public void unsetAddressId() {
16105
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
16106
    }
16107
 
3430 rajveer 16108
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
48 ashish 16109
    public boolean isSetAddressId() {
16110
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
16111
    }
16112
 
16113
    public void setAddressIdIsSet(boolean value) {
16114
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
16115
    }
16116
 
16117
    public void setFieldValue(_Fields field, Object value) {
16118
      switch (field) {
16119
      case USERID:
16120
        if (value == null) {
16121
          unsetUserid();
16122
        } else {
16123
          setUserid((Long)value);
16124
        }
16125
        break;
16126
 
16127
      case ADDRESS_ID:
16128
        if (value == null) {
16129
          unsetAddressId();
16130
        } else {
16131
          setAddressId((Long)value);
16132
        }
16133
        break;
16134
 
16135
      }
16136
    }
16137
 
16138
    public Object getFieldValue(_Fields field) {
16139
      switch (field) {
16140
      case USERID:
3430 rajveer 16141
        return Long.valueOf(getUserid());
48 ashish 16142
 
16143
      case ADDRESS_ID:
3430 rajveer 16144
        return Long.valueOf(getAddressId());
48 ashish 16145
 
16146
      }
16147
      throw new IllegalStateException();
16148
    }
16149
 
3430 rajveer 16150
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16151
    public boolean isSet(_Fields field) {
16152
      if (field == null) {
16153
        throw new IllegalArgumentException();
16154
      }
48 ashish 16155
 
16156
      switch (field) {
16157
      case USERID:
16158
        return isSetUserid();
16159
      case ADDRESS_ID:
16160
        return isSetAddressId();
16161
      }
16162
      throw new IllegalStateException();
16163
    }
16164
 
16165
    @Override
16166
    public boolean equals(Object that) {
16167
      if (that == null)
16168
        return false;
553 chandransh 16169
      if (that instanceof setDefaultAddress_args)
16170
        return this.equals((setDefaultAddress_args)that);
48 ashish 16171
      return false;
16172
    }
16173
 
553 chandransh 16174
    public boolean equals(setDefaultAddress_args that) {
48 ashish 16175
      if (that == null)
16176
        return false;
16177
 
16178
      boolean this_present_userid = true;
16179
      boolean that_present_userid = true;
16180
      if (this_present_userid || that_present_userid) {
16181
        if (!(this_present_userid && that_present_userid))
16182
          return false;
16183
        if (this.userid != that.userid)
16184
          return false;
16185
      }
16186
 
16187
      boolean this_present_addressId = true;
16188
      boolean that_present_addressId = true;
16189
      if (this_present_addressId || that_present_addressId) {
16190
        if (!(this_present_addressId && that_present_addressId))
16191
          return false;
16192
        if (this.addressId != that.addressId)
16193
          return false;
16194
      }
16195
 
16196
      return true;
16197
    }
16198
 
16199
    @Override
16200
    public int hashCode() {
16201
      return 0;
16202
    }
16203
 
553 chandransh 16204
    public int compareTo(setDefaultAddress_args other) {
48 ashish 16205
      if (!getClass().equals(other.getClass())) {
16206
        return getClass().getName().compareTo(other.getClass().getName());
16207
      }
16208
 
16209
      int lastComparison = 0;
553 chandransh 16210
      setDefaultAddress_args typedOther = (setDefaultAddress_args)other;
48 ashish 16211
 
3430 rajveer 16212
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 16213
      if (lastComparison != 0) {
16214
        return lastComparison;
16215
      }
3430 rajveer 16216
      if (isSetUserid()) {
16217
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
16218
        if (lastComparison != 0) {
16219
          return lastComparison;
16220
        }
48 ashish 16221
      }
3430 rajveer 16222
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
48 ashish 16223
      if (lastComparison != 0) {
16224
        return lastComparison;
16225
      }
3430 rajveer 16226
      if (isSetAddressId()) {
16227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
16228
        if (lastComparison != 0) {
16229
          return lastComparison;
16230
        }
48 ashish 16231
      }
16232
      return 0;
16233
    }
16234
 
3430 rajveer 16235
    public _Fields fieldForId(int fieldId) {
16236
      return _Fields.findByThriftId(fieldId);
16237
    }
16238
 
16239
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16240
      org.apache.thrift.protocol.TField field;
48 ashish 16241
      iprot.readStructBegin();
16242
      while (true)
16243
      {
16244
        field = iprot.readFieldBegin();
3430 rajveer 16245
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16246
          break;
16247
        }
3430 rajveer 16248
        switch (field.id) {
16249
          case 1: // USERID
16250
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16251
              this.userid = iprot.readI64();
16252
              setUseridIsSet(true);
16253
            } else { 
16254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16255
            }
16256
            break;
16257
          case 2: // ADDRESS_ID
16258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16259
              this.addressId = iprot.readI64();
16260
              setAddressIdIsSet(true);
16261
            } else { 
16262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16263
            }
16264
            break;
16265
          default:
16266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16267
        }
3430 rajveer 16268
        iprot.readFieldEnd();
48 ashish 16269
      }
16270
      iprot.readStructEnd();
16271
      validate();
16272
    }
16273
 
3430 rajveer 16274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16275
      validate();
16276
 
16277
      oprot.writeStructBegin(STRUCT_DESC);
16278
      oprot.writeFieldBegin(USERID_FIELD_DESC);
16279
      oprot.writeI64(this.userid);
16280
      oprot.writeFieldEnd();
16281
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
16282
      oprot.writeI64(this.addressId);
16283
      oprot.writeFieldEnd();
16284
      oprot.writeFieldStop();
16285
      oprot.writeStructEnd();
16286
    }
16287
 
16288
    @Override
16289
    public String toString() {
553 chandransh 16290
      StringBuilder sb = new StringBuilder("setDefaultAddress_args(");
48 ashish 16291
      boolean first = true;
16292
 
16293
      sb.append("userid:");
16294
      sb.append(this.userid);
16295
      first = false;
16296
      if (!first) sb.append(", ");
16297
      sb.append("addressId:");
16298
      sb.append(this.addressId);
16299
      first = false;
16300
      sb.append(")");
16301
      return sb.toString();
16302
    }
16303
 
3430 rajveer 16304
    public void validate() throws org.apache.thrift.TException {
48 ashish 16305
      // check for required fields
16306
    }
16307
 
3430 rajveer 16308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16309
      try {
16310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16311
      } catch (org.apache.thrift.TException te) {
16312
        throw new java.io.IOException(te);
16313
      }
16314
    }
16315
 
16316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16317
      try {
16318
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16319
        __isset_bit_vector = new BitSet(1);
16320
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16321
      } catch (org.apache.thrift.TException te) {
16322
        throw new java.io.IOException(te);
16323
      }
16324
    }
16325
 
48 ashish 16326
  }
16327
 
3430 rajveer 16328
  public static class setDefaultAddress_result implements org.apache.thrift.TBase<setDefaultAddress_result, setDefaultAddress_result._Fields>, java.io.Serializable, Cloneable   {
16329
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setDefaultAddress_result");
48 ashish 16330
 
3430 rajveer 16331
    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);
16332
    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 16333
 
3430 rajveer 16334
    private boolean success; // required
16335
    private UserContextException ucx; // required
48 ashish 16336
 
16337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16338
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 16339
      SUCCESS((short)0, "success"),
16340
      UCX((short)1, "ucx");
16341
 
16342
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16343
 
16344
      static {
16345
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16346
          byName.put(field.getFieldName(), field);
16347
        }
16348
      }
16349
 
16350
      /**
16351
       * Find the _Fields constant that matches fieldId, or null if its not found.
16352
       */
16353
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16354
        switch(fieldId) {
16355
          case 0: // SUCCESS
16356
            return SUCCESS;
16357
          case 1: // UCX
16358
            return UCX;
16359
          default:
16360
            return null;
16361
        }
48 ashish 16362
      }
16363
 
16364
      /**
16365
       * Find the _Fields constant that matches fieldId, throwing an exception
16366
       * if it is not found.
16367
       */
16368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16369
        _Fields fields = findByThriftId(fieldId);
16370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16371
        return fields;
16372
      }
16373
 
16374
      /**
16375
       * Find the _Fields constant that matches name, or null if its not found.
16376
       */
16377
      public static _Fields findByName(String name) {
16378
        return byName.get(name);
16379
      }
16380
 
16381
      private final short _thriftId;
16382
      private final String _fieldName;
16383
 
16384
      _Fields(short thriftId, String fieldName) {
16385
        _thriftId = thriftId;
16386
        _fieldName = fieldName;
16387
      }
16388
 
16389
      public short getThriftFieldId() {
16390
        return _thriftId;
16391
      }
16392
 
16393
      public String getFieldName() {
16394
        return _fieldName;
16395
      }
16396
    }
16397
 
16398
    // isset id assignments
16399
    private static final int __SUCCESS_ISSET_ID = 0;
16400
    private BitSet __isset_bit_vector = new BitSet(1);
16401
 
3430 rajveer 16402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16403
    static {
3430 rajveer 16404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16405
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16406
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16407
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16409
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16410
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setDefaultAddress_result.class, metaDataMap);
48 ashish 16411
    }
16412
 
553 chandransh 16413
    public setDefaultAddress_result() {
48 ashish 16414
    }
16415
 
553 chandransh 16416
    public setDefaultAddress_result(
48 ashish 16417
      boolean success,
16418
      UserContextException ucx)
16419
    {
16420
      this();
16421
      this.success = success;
16422
      setSuccessIsSet(true);
16423
      this.ucx = ucx;
16424
    }
16425
 
16426
    /**
16427
     * Performs a deep copy on <i>other</i>.
16428
     */
553 chandransh 16429
    public setDefaultAddress_result(setDefaultAddress_result other) {
48 ashish 16430
      __isset_bit_vector.clear();
16431
      __isset_bit_vector.or(other.__isset_bit_vector);
16432
      this.success = other.success;
16433
      if (other.isSetUcx()) {
16434
        this.ucx = new UserContextException(other.ucx);
16435
      }
16436
    }
16437
 
553 chandransh 16438
    public setDefaultAddress_result deepCopy() {
16439
      return new setDefaultAddress_result(this);
48 ashish 16440
    }
16441
 
3430 rajveer 16442
    @Override
16443
    public void clear() {
16444
      setSuccessIsSet(false);
16445
      this.success = false;
16446
      this.ucx = null;
48 ashish 16447
    }
16448
 
16449
    public boolean isSuccess() {
16450
      return this.success;
16451
    }
16452
 
3430 rajveer 16453
    public void setSuccess(boolean success) {
48 ashish 16454
      this.success = success;
16455
      setSuccessIsSet(true);
16456
    }
16457
 
16458
    public void unsetSuccess() {
16459
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16460
    }
16461
 
3430 rajveer 16462
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 16463
    public boolean isSetSuccess() {
16464
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16465
    }
16466
 
16467
    public void setSuccessIsSet(boolean value) {
16468
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16469
    }
16470
 
16471
    public UserContextException getUcx() {
16472
      return this.ucx;
16473
    }
16474
 
3430 rajveer 16475
    public void setUcx(UserContextException ucx) {
48 ashish 16476
      this.ucx = ucx;
16477
    }
16478
 
16479
    public void unsetUcx() {
16480
      this.ucx = null;
16481
    }
16482
 
3430 rajveer 16483
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 16484
    public boolean isSetUcx() {
16485
      return this.ucx != null;
16486
    }
16487
 
16488
    public void setUcxIsSet(boolean value) {
16489
      if (!value) {
16490
        this.ucx = null;
16491
      }
16492
    }
16493
 
16494
    public void setFieldValue(_Fields field, Object value) {
16495
      switch (field) {
16496
      case SUCCESS:
16497
        if (value == null) {
16498
          unsetSuccess();
16499
        } else {
16500
          setSuccess((Boolean)value);
16501
        }
16502
        break;
16503
 
16504
      case UCX:
16505
        if (value == null) {
16506
          unsetUcx();
16507
        } else {
16508
          setUcx((UserContextException)value);
16509
        }
16510
        break;
16511
 
16512
      }
16513
    }
16514
 
16515
    public Object getFieldValue(_Fields field) {
16516
      switch (field) {
16517
      case SUCCESS:
3430 rajveer 16518
        return Boolean.valueOf(isSuccess());
48 ashish 16519
 
16520
      case UCX:
16521
        return getUcx();
16522
 
16523
      }
16524
      throw new IllegalStateException();
16525
    }
16526
 
3430 rajveer 16527
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16528
    public boolean isSet(_Fields field) {
16529
      if (field == null) {
16530
        throw new IllegalArgumentException();
16531
      }
48 ashish 16532
 
16533
      switch (field) {
16534
      case SUCCESS:
16535
        return isSetSuccess();
16536
      case UCX:
16537
        return isSetUcx();
16538
      }
16539
      throw new IllegalStateException();
16540
    }
16541
 
16542
    @Override
16543
    public boolean equals(Object that) {
16544
      if (that == null)
16545
        return false;
553 chandransh 16546
      if (that instanceof setDefaultAddress_result)
16547
        return this.equals((setDefaultAddress_result)that);
48 ashish 16548
      return false;
16549
    }
16550
 
553 chandransh 16551
    public boolean equals(setDefaultAddress_result that) {
48 ashish 16552
      if (that == null)
16553
        return false;
16554
 
16555
      boolean this_present_success = true;
16556
      boolean that_present_success = true;
16557
      if (this_present_success || that_present_success) {
16558
        if (!(this_present_success && that_present_success))
16559
          return false;
16560
        if (this.success != that.success)
16561
          return false;
16562
      }
16563
 
16564
      boolean this_present_ucx = true && this.isSetUcx();
16565
      boolean that_present_ucx = true && that.isSetUcx();
16566
      if (this_present_ucx || that_present_ucx) {
16567
        if (!(this_present_ucx && that_present_ucx))
16568
          return false;
16569
        if (!this.ucx.equals(that.ucx))
16570
          return false;
16571
      }
16572
 
16573
      return true;
16574
    }
16575
 
16576
    @Override
16577
    public int hashCode() {
16578
      return 0;
16579
    }
16580
 
553 chandransh 16581
    public int compareTo(setDefaultAddress_result other) {
48 ashish 16582
      if (!getClass().equals(other.getClass())) {
16583
        return getClass().getName().compareTo(other.getClass().getName());
16584
      }
16585
 
16586
      int lastComparison = 0;
553 chandransh 16587
      setDefaultAddress_result typedOther = (setDefaultAddress_result)other;
48 ashish 16588
 
3430 rajveer 16589
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 16590
      if (lastComparison != 0) {
16591
        return lastComparison;
16592
      }
3430 rajveer 16593
      if (isSetSuccess()) {
16594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16595
        if (lastComparison != 0) {
16596
          return lastComparison;
16597
        }
48 ashish 16598
      }
3430 rajveer 16599
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 16600
      if (lastComparison != 0) {
16601
        return lastComparison;
16602
      }
3430 rajveer 16603
      if (isSetUcx()) {
16604
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
16605
        if (lastComparison != 0) {
16606
          return lastComparison;
16607
        }
48 ashish 16608
      }
16609
      return 0;
16610
    }
16611
 
3430 rajveer 16612
    public _Fields fieldForId(int fieldId) {
16613
      return _Fields.findByThriftId(fieldId);
16614
    }
16615
 
16616
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16617
      org.apache.thrift.protocol.TField field;
48 ashish 16618
      iprot.readStructBegin();
16619
      while (true)
16620
      {
16621
        field = iprot.readFieldBegin();
3430 rajveer 16622
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16623
          break;
16624
        }
3430 rajveer 16625
        switch (field.id) {
16626
          case 0: // SUCCESS
16627
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16628
              this.success = iprot.readBool();
16629
              setSuccessIsSet(true);
16630
            } else { 
16631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16632
            }
16633
            break;
16634
          case 1: // UCX
16635
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16636
              this.ucx = new UserContextException();
16637
              this.ucx.read(iprot);
16638
            } else { 
16639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16640
            }
16641
            break;
16642
          default:
16643
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16644
        }
3430 rajveer 16645
        iprot.readFieldEnd();
48 ashish 16646
      }
16647
      iprot.readStructEnd();
16648
      validate();
16649
    }
16650
 
3430 rajveer 16651
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16652
      oprot.writeStructBegin(STRUCT_DESC);
16653
 
16654
      if (this.isSetSuccess()) {
16655
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16656
        oprot.writeBool(this.success);
16657
        oprot.writeFieldEnd();
16658
      } else if (this.isSetUcx()) {
16659
        oprot.writeFieldBegin(UCX_FIELD_DESC);
16660
        this.ucx.write(oprot);
16661
        oprot.writeFieldEnd();
16662
      }
16663
      oprot.writeFieldStop();
16664
      oprot.writeStructEnd();
16665
    }
16666
 
16667
    @Override
16668
    public String toString() {
553 chandransh 16669
      StringBuilder sb = new StringBuilder("setDefaultAddress_result(");
48 ashish 16670
      boolean first = true;
16671
 
16672
      sb.append("success:");
16673
      sb.append(this.success);
16674
      first = false;
16675
      if (!first) sb.append(", ");
16676
      sb.append("ucx:");
16677
      if (this.ucx == null) {
16678
        sb.append("null");
16679
      } else {
16680
        sb.append(this.ucx);
16681
      }
16682
      first = false;
16683
      sb.append(")");
16684
      return sb.toString();
16685
    }
16686
 
3430 rajveer 16687
    public void validate() throws org.apache.thrift.TException {
48 ashish 16688
      // check for required fields
16689
    }
16690
 
3430 rajveer 16691
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16692
      try {
16693
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16694
      } catch (org.apache.thrift.TException te) {
16695
        throw new java.io.IOException(te);
16696
      }
16697
    }
16698
 
16699
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16700
      try {
16701
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16702
      } catch (org.apache.thrift.TException te) {
16703
        throw new java.io.IOException(te);
16704
      }
16705
    }
16706
 
48 ashish 16707
  }
16708
 
3430 rajveer 16709
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
16710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
48 ashish 16711
 
3430 rajveer 16712
    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);
16713
    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);
16714
    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 16715
 
3430 rajveer 16716
    private long userid; // required
16717
    private String oldPassword; // required
16718
    private String newPassword; // required
48 ashish 16719
 
16720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 16722
      USERID((short)1, "userid"),
593 rajveer 16723
      OLD_PASSWORD((short)2, "oldPassword"),
16724
      NEW_PASSWORD((short)3, "newPassword");
48 ashish 16725
 
16726
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16727
 
16728
      static {
16729
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16730
          byName.put(field.getFieldName(), field);
16731
        }
16732
      }
16733
 
16734
      /**
16735
       * Find the _Fields constant that matches fieldId, or null if its not found.
16736
       */
16737
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16738
        switch(fieldId) {
16739
          case 1: // USERID
16740
            return USERID;
16741
          case 2: // OLD_PASSWORD
16742
            return OLD_PASSWORD;
16743
          case 3: // NEW_PASSWORD
16744
            return NEW_PASSWORD;
16745
          default:
16746
            return null;
16747
        }
48 ashish 16748
      }
16749
 
16750
      /**
16751
       * Find the _Fields constant that matches fieldId, throwing an exception
16752
       * if it is not found.
16753
       */
16754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16755
        _Fields fields = findByThriftId(fieldId);
16756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16757
        return fields;
16758
      }
16759
 
16760
      /**
16761
       * Find the _Fields constant that matches name, or null if its not found.
16762
       */
16763
      public static _Fields findByName(String name) {
16764
        return byName.get(name);
16765
      }
16766
 
16767
      private final short _thriftId;
16768
      private final String _fieldName;
16769
 
16770
      _Fields(short thriftId, String fieldName) {
16771
        _thriftId = thriftId;
16772
        _fieldName = fieldName;
16773
      }
16774
 
16775
      public short getThriftFieldId() {
16776
        return _thriftId;
16777
      }
16778
 
16779
      public String getFieldName() {
16780
        return _fieldName;
16781
      }
16782
    }
16783
 
16784
    // isset id assignments
16785
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 16786
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 16787
 
3430 rajveer 16788
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16789
    static {
3430 rajveer 16790
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16791
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16793
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16795
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16796
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
48 ashish 16799
    }
16800
 
553 chandransh 16801
    public updatePassword_args() {
48 ashish 16802
    }
16803
 
553 chandransh 16804
    public updatePassword_args(
16805
      long userid,
593 rajveer 16806
      String oldPassword,
16807
      String newPassword)
48 ashish 16808
    {
16809
      this();
553 chandransh 16810
      this.userid = userid;
16811
      setUseridIsSet(true);
593 rajveer 16812
      this.oldPassword = oldPassword;
16813
      this.newPassword = newPassword;
48 ashish 16814
    }
16815
 
16816
    /**
16817
     * Performs a deep copy on <i>other</i>.
16818
     */
553 chandransh 16819
    public updatePassword_args(updatePassword_args other) {
48 ashish 16820
      __isset_bit_vector.clear();
16821
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 16822
      this.userid = other.userid;
593 rajveer 16823
      if (other.isSetOldPassword()) {
16824
        this.oldPassword = other.oldPassword;
553 chandransh 16825
      }
593 rajveer 16826
      if (other.isSetNewPassword()) {
16827
        this.newPassword = other.newPassword;
16828
      }
48 ashish 16829
    }
16830
 
553 chandransh 16831
    public updatePassword_args deepCopy() {
16832
      return new updatePassword_args(this);
48 ashish 16833
    }
16834
 
3430 rajveer 16835
    @Override
16836
    public void clear() {
16837
      setUseridIsSet(false);
16838
      this.userid = 0;
16839
      this.oldPassword = null;
16840
      this.newPassword = null;
48 ashish 16841
    }
16842
 
553 chandransh 16843
    public long getUserid() {
16844
      return this.userid;
48 ashish 16845
    }
16846
 
3430 rajveer 16847
    public void setUserid(long userid) {
553 chandransh 16848
      this.userid = userid;
16849
      setUseridIsSet(true);
48 ashish 16850
    }
16851
 
553 chandransh 16852
    public void unsetUserid() {
48 ashish 16853
      __isset_bit_vector.clear(__USERID_ISSET_ID);
16854
    }
16855
 
3430 rajveer 16856
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
553 chandransh 16857
    public boolean isSetUserid() {
48 ashish 16858
      return __isset_bit_vector.get(__USERID_ISSET_ID);
16859
    }
16860
 
553 chandransh 16861
    public void setUseridIsSet(boolean value) {
48 ashish 16862
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
16863
    }
16864
 
593 rajveer 16865
    public String getOldPassword() {
16866
      return this.oldPassword;
48 ashish 16867
    }
16868
 
3430 rajveer 16869
    public void setOldPassword(String oldPassword) {
593 rajveer 16870
      this.oldPassword = oldPassword;
48 ashish 16871
    }
16872
 
593 rajveer 16873
    public void unsetOldPassword() {
16874
      this.oldPassword = null;
48 ashish 16875
    }
16876
 
3430 rajveer 16877
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
593 rajveer 16878
    public boolean isSetOldPassword() {
16879
      return this.oldPassword != null;
48 ashish 16880
    }
16881
 
593 rajveer 16882
    public void setOldPasswordIsSet(boolean value) {
553 chandransh 16883
      if (!value) {
593 rajveer 16884
        this.oldPassword = null;
553 chandransh 16885
      }
48 ashish 16886
    }
16887
 
593 rajveer 16888
    public String getNewPassword() {
16889
      return this.newPassword;
16890
    }
16891
 
3430 rajveer 16892
    public void setNewPassword(String newPassword) {
593 rajveer 16893
      this.newPassword = newPassword;
16894
    }
16895
 
16896
    public void unsetNewPassword() {
16897
      this.newPassword = null;
16898
    }
16899
 
3430 rajveer 16900
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
593 rajveer 16901
    public boolean isSetNewPassword() {
16902
      return this.newPassword != null;
16903
    }
16904
 
16905
    public void setNewPasswordIsSet(boolean value) {
16906
      if (!value) {
16907
        this.newPassword = null;
16908
      }
16909
    }
16910
 
48 ashish 16911
    public void setFieldValue(_Fields field, Object value) {
16912
      switch (field) {
553 chandransh 16913
      case USERID:
48 ashish 16914
        if (value == null) {
553 chandransh 16915
          unsetUserid();
48 ashish 16916
        } else {
553 chandransh 16917
          setUserid((Long)value);
48 ashish 16918
        }
16919
        break;
16920
 
593 rajveer 16921
      case OLD_PASSWORD:
48 ashish 16922
        if (value == null) {
593 rajveer 16923
          unsetOldPassword();
48 ashish 16924
        } else {
593 rajveer 16925
          setOldPassword((String)value);
48 ashish 16926
        }
16927
        break;
16928
 
593 rajveer 16929
      case NEW_PASSWORD:
16930
        if (value == null) {
16931
          unsetNewPassword();
16932
        } else {
16933
          setNewPassword((String)value);
16934
        }
16935
        break;
16936
 
48 ashish 16937
      }
16938
    }
16939
 
16940
    public Object getFieldValue(_Fields field) {
16941
      switch (field) {
553 chandransh 16942
      case USERID:
3430 rajveer 16943
        return Long.valueOf(getUserid());
48 ashish 16944
 
593 rajveer 16945
      case OLD_PASSWORD:
16946
        return getOldPassword();
48 ashish 16947
 
593 rajveer 16948
      case NEW_PASSWORD:
16949
        return getNewPassword();
16950
 
48 ashish 16951
      }
16952
      throw new IllegalStateException();
16953
    }
16954
 
3430 rajveer 16955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16956
    public boolean isSet(_Fields field) {
16957
      if (field == null) {
16958
        throw new IllegalArgumentException();
16959
      }
48 ashish 16960
 
16961
      switch (field) {
553 chandransh 16962
      case USERID:
16963
        return isSetUserid();
593 rajveer 16964
      case OLD_PASSWORD:
16965
        return isSetOldPassword();
16966
      case NEW_PASSWORD:
16967
        return isSetNewPassword();
48 ashish 16968
      }
16969
      throw new IllegalStateException();
16970
    }
16971
 
16972
    @Override
16973
    public boolean equals(Object that) {
16974
      if (that == null)
16975
        return false;
553 chandransh 16976
      if (that instanceof updatePassword_args)
16977
        return this.equals((updatePassword_args)that);
48 ashish 16978
      return false;
16979
    }
16980
 
553 chandransh 16981
    public boolean equals(updatePassword_args that) {
48 ashish 16982
      if (that == null)
16983
        return false;
16984
 
553 chandransh 16985
      boolean this_present_userid = true;
16986
      boolean that_present_userid = true;
16987
      if (this_present_userid || that_present_userid) {
16988
        if (!(this_present_userid && that_present_userid))
48 ashish 16989
          return false;
553 chandransh 16990
        if (this.userid != that.userid)
48 ashish 16991
          return false;
16992
      }
16993
 
593 rajveer 16994
      boolean this_present_oldPassword = true && this.isSetOldPassword();
16995
      boolean that_present_oldPassword = true && that.isSetOldPassword();
16996
      if (this_present_oldPassword || that_present_oldPassword) {
16997
        if (!(this_present_oldPassword && that_present_oldPassword))
48 ashish 16998
          return false;
593 rajveer 16999
        if (!this.oldPassword.equals(that.oldPassword))
48 ashish 17000
          return false;
17001
      }
17002
 
593 rajveer 17003
      boolean this_present_newPassword = true && this.isSetNewPassword();
17004
      boolean that_present_newPassword = true && that.isSetNewPassword();
17005
      if (this_present_newPassword || that_present_newPassword) {
17006
        if (!(this_present_newPassword && that_present_newPassword))
17007
          return false;
17008
        if (!this.newPassword.equals(that.newPassword))
17009
          return false;
17010
      }
17011
 
48 ashish 17012
      return true;
17013
    }
17014
 
17015
    @Override
17016
    public int hashCode() {
17017
      return 0;
17018
    }
17019
 
553 chandransh 17020
    public int compareTo(updatePassword_args other) {
48 ashish 17021
      if (!getClass().equals(other.getClass())) {
17022
        return getClass().getName().compareTo(other.getClass().getName());
17023
      }
17024
 
17025
      int lastComparison = 0;
553 chandransh 17026
      updatePassword_args typedOther = (updatePassword_args)other;
48 ashish 17027
 
3430 rajveer 17028
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 17029
      if (lastComparison != 0) {
17030
        return lastComparison;
17031
      }
3430 rajveer 17032
      if (isSetUserid()) {
17033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
17034
        if (lastComparison != 0) {
17035
          return lastComparison;
17036
        }
48 ashish 17037
      }
3430 rajveer 17038
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
48 ashish 17039
      if (lastComparison != 0) {
17040
        return lastComparison;
17041
      }
3430 rajveer 17042
      if (isSetOldPassword()) {
17043
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
17044
        if (lastComparison != 0) {
17045
          return lastComparison;
17046
        }
48 ashish 17047
      }
3430 rajveer 17048
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
593 rajveer 17049
      if (lastComparison != 0) {
17050
        return lastComparison;
17051
      }
3430 rajveer 17052
      if (isSetNewPassword()) {
17053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
17054
        if (lastComparison != 0) {
17055
          return lastComparison;
17056
        }
593 rajveer 17057
      }
48 ashish 17058
      return 0;
17059
    }
17060
 
3430 rajveer 17061
    public _Fields fieldForId(int fieldId) {
17062
      return _Fields.findByThriftId(fieldId);
17063
    }
17064
 
17065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17066
      org.apache.thrift.protocol.TField field;
48 ashish 17067
      iprot.readStructBegin();
17068
      while (true)
17069
      {
17070
        field = iprot.readFieldBegin();
3430 rajveer 17071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 17072
          break;
17073
        }
3430 rajveer 17074
        switch (field.id) {
17075
          case 1: // USERID
17076
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17077
              this.userid = iprot.readI64();
17078
              setUseridIsSet(true);
17079
            } else { 
17080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17081
            }
17082
            break;
17083
          case 2: // OLD_PASSWORD
17084
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17085
              this.oldPassword = iprot.readString();
17086
            } else { 
17087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17088
            }
17089
            break;
17090
          case 3: // NEW_PASSWORD
17091
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17092
              this.newPassword = iprot.readString();
17093
            } else { 
17094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17095
            }
17096
            break;
17097
          default:
17098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 17099
        }
3430 rajveer 17100
        iprot.readFieldEnd();
48 ashish 17101
      }
17102
      iprot.readStructEnd();
17103
      validate();
17104
    }
17105
 
3430 rajveer 17106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 17107
      validate();
17108
 
17109
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 17110
      oprot.writeFieldBegin(USERID_FIELD_DESC);
17111
      oprot.writeI64(this.userid);
48 ashish 17112
      oprot.writeFieldEnd();
593 rajveer 17113
      if (this.oldPassword != null) {
17114
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
17115
        oprot.writeString(this.oldPassword);
553 chandransh 17116
        oprot.writeFieldEnd();
17117
      }
593 rajveer 17118
      if (this.newPassword != null) {
17119
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
17120
        oprot.writeString(this.newPassword);
17121
        oprot.writeFieldEnd();
17122
      }
48 ashish 17123
      oprot.writeFieldStop();
17124
      oprot.writeStructEnd();
17125
    }
17126
 
17127
    @Override
17128
    public String toString() {
553 chandransh 17129
      StringBuilder sb = new StringBuilder("updatePassword_args(");
48 ashish 17130
      boolean first = true;
17131
 
553 chandransh 17132
      sb.append("userid:");
17133
      sb.append(this.userid);
48 ashish 17134
      first = false;
17135
      if (!first) sb.append(", ");
593 rajveer 17136
      sb.append("oldPassword:");
17137
      if (this.oldPassword == null) {
553 chandransh 17138
        sb.append("null");
17139
      } else {
593 rajveer 17140
        sb.append(this.oldPassword);
553 chandransh 17141
      }
48 ashish 17142
      first = false;
593 rajveer 17143
      if (!first) sb.append(", ");
17144
      sb.append("newPassword:");
17145
      if (this.newPassword == null) {
17146
        sb.append("null");
17147
      } else {
17148
        sb.append(this.newPassword);
17149
      }
17150
      first = false;
48 ashish 17151
      sb.append(")");
17152
      return sb.toString();
17153
    }
17154
 
3430 rajveer 17155
    public void validate() throws org.apache.thrift.TException {
48 ashish 17156
      // check for required fields
17157
    }
17158
 
3430 rajveer 17159
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17160
      try {
17161
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17162
      } catch (org.apache.thrift.TException te) {
17163
        throw new java.io.IOException(te);
17164
      }
17165
    }
17166
 
17167
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17168
      try {
17169
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17170
        __isset_bit_vector = new BitSet(1);
17171
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17172
      } catch (org.apache.thrift.TException te) {
17173
        throw new java.io.IOException(te);
17174
      }
17175
    }
17176
 
48 ashish 17177
  }
17178
 
3430 rajveer 17179
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
17180
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
48 ashish 17181
 
3430 rajveer 17182
    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);
17183
    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 17184
 
3430 rajveer 17185
    private boolean success; // required
17186
    private UserContextException ucx; // required
48 ashish 17187
 
17188
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17189
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 17190
      SUCCESS((short)0, "success"),
17191
      UCX((short)1, "ucx");
17192
 
17193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17194
 
17195
      static {
17196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17197
          byName.put(field.getFieldName(), field);
17198
        }
17199
      }
17200
 
17201
      /**
17202
       * Find the _Fields constant that matches fieldId, or null if its not found.
17203
       */
17204
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17205
        switch(fieldId) {
17206
          case 0: // SUCCESS
17207
            return SUCCESS;
17208
          case 1: // UCX
17209
            return UCX;
17210
          default:
17211
            return null;
17212
        }
48 ashish 17213
      }
17214
 
17215
      /**
17216
       * Find the _Fields constant that matches fieldId, throwing an exception
17217
       * if it is not found.
17218
       */
17219
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17220
        _Fields fields = findByThriftId(fieldId);
17221
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17222
        return fields;
17223
      }
17224
 
17225
      /**
17226
       * Find the _Fields constant that matches name, or null if its not found.
17227
       */
17228
      public static _Fields findByName(String name) {
17229
        return byName.get(name);
17230
      }
17231
 
17232
      private final short _thriftId;
17233
      private final String _fieldName;
17234
 
17235
      _Fields(short thriftId, String fieldName) {
17236
        _thriftId = thriftId;
17237
        _fieldName = fieldName;
17238
      }
17239
 
17240
      public short getThriftFieldId() {
17241
        return _thriftId;
17242
      }
17243
 
17244
      public String getFieldName() {
17245
        return _fieldName;
17246
      }
17247
    }
17248
 
17249
    // isset id assignments
17250
    private static final int __SUCCESS_ISSET_ID = 0;
17251
    private BitSet __isset_bit_vector = new BitSet(1);
17252
 
3430 rajveer 17253
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 17254
    static {
3430 rajveer 17255
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17256
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17258
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
48 ashish 17262
    }
17263
 
553 chandransh 17264
    public updatePassword_result() {
48 ashish 17265
    }
17266
 
553 chandransh 17267
    public updatePassword_result(
48 ashish 17268
      boolean success,
17269
      UserContextException ucx)
17270
    {
17271
      this();
17272
      this.success = success;
17273
      setSuccessIsSet(true);
17274
      this.ucx = ucx;
17275
    }
17276
 
17277
    /**
17278
     * Performs a deep copy on <i>other</i>.
17279
     */
553 chandransh 17280
    public updatePassword_result(updatePassword_result other) {
48 ashish 17281
      __isset_bit_vector.clear();
17282
      __isset_bit_vector.or(other.__isset_bit_vector);
17283
      this.success = other.success;
17284
      if (other.isSetUcx()) {
17285
        this.ucx = new UserContextException(other.ucx);
17286
      }
17287
    }
17288
 
553 chandransh 17289
    public updatePassword_result deepCopy() {
17290
      return new updatePassword_result(this);
48 ashish 17291
    }
17292
 
3430 rajveer 17293
    @Override
17294
    public void clear() {
17295
      setSuccessIsSet(false);
17296
      this.success = false;
17297
      this.ucx = null;
48 ashish 17298
    }
17299
 
17300
    public boolean isSuccess() {
17301
      return this.success;
17302
    }
17303
 
3430 rajveer 17304
    public void setSuccess(boolean success) {
48 ashish 17305
      this.success = success;
17306
      setSuccessIsSet(true);
17307
    }
17308
 
17309
    public void unsetSuccess() {
17310
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17311
    }
17312
 
3430 rajveer 17313
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 17314
    public boolean isSetSuccess() {
17315
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17316
    }
17317
 
17318
    public void setSuccessIsSet(boolean value) {
17319
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17320
    }
17321
 
17322
    public UserContextException getUcx() {
17323
      return this.ucx;
17324
    }
17325
 
3430 rajveer 17326
    public void setUcx(UserContextException ucx) {
48 ashish 17327
      this.ucx = ucx;
17328
    }
17329
 
17330
    public void unsetUcx() {
17331
      this.ucx = null;
17332
    }
17333
 
3430 rajveer 17334
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 17335
    public boolean isSetUcx() {
17336
      return this.ucx != null;
17337
    }
17338
 
17339
    public void setUcxIsSet(boolean value) {
17340
      if (!value) {
17341
        this.ucx = null;
17342
      }
17343
    }
17344
 
17345
    public void setFieldValue(_Fields field, Object value) {
17346
      switch (field) {
17347
      case SUCCESS:
17348
        if (value == null) {
17349
          unsetSuccess();
17350
        } else {
17351
          setSuccess((Boolean)value);
17352
        }
17353
        break;
17354
 
17355
      case UCX:
17356
        if (value == null) {
17357
          unsetUcx();
17358
        } else {
17359
          setUcx((UserContextException)value);
17360
        }
17361
        break;
17362
 
17363
      }
17364
    }
17365
 
17366
    public Object getFieldValue(_Fields field) {
17367
      switch (field) {
17368
      case SUCCESS:
3430 rajveer 17369
        return Boolean.valueOf(isSuccess());
48 ashish 17370
 
17371
      case UCX:
17372
        return getUcx();
17373
 
17374
      }
17375
      throw new IllegalStateException();
17376
    }
17377
 
3430 rajveer 17378
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17379
    public boolean isSet(_Fields field) {
17380
      if (field == null) {
17381
        throw new IllegalArgumentException();
17382
      }
48 ashish 17383
 
17384
      switch (field) {
17385
      case SUCCESS:
17386
        return isSetSuccess();
17387
      case UCX:
17388
        return isSetUcx();
17389
      }
17390
      throw new IllegalStateException();
17391
    }
17392
 
17393
    @Override
17394
    public boolean equals(Object that) {
17395
      if (that == null)
17396
        return false;
553 chandransh 17397
      if (that instanceof updatePassword_result)
17398
        return this.equals((updatePassword_result)that);
48 ashish 17399
      return false;
17400
    }
17401
 
553 chandransh 17402
    public boolean equals(updatePassword_result that) {
48 ashish 17403
      if (that == null)
17404
        return false;
17405
 
17406
      boolean this_present_success = true;
17407
      boolean that_present_success = true;
17408
      if (this_present_success || that_present_success) {
17409
        if (!(this_present_success && that_present_success))
17410
          return false;
17411
        if (this.success != that.success)
17412
          return false;
17413
      }
17414
 
17415
      boolean this_present_ucx = true && this.isSetUcx();
17416
      boolean that_present_ucx = true && that.isSetUcx();
17417
      if (this_present_ucx || that_present_ucx) {
17418
        if (!(this_present_ucx && that_present_ucx))
17419
          return false;
17420
        if (!this.ucx.equals(that.ucx))
17421
          return false;
17422
      }
17423
 
17424
      return true;
17425
    }
17426
 
17427
    @Override
17428
    public int hashCode() {
17429
      return 0;
17430
    }
17431
 
553 chandransh 17432
    public int compareTo(updatePassword_result other) {
48 ashish 17433
      if (!getClass().equals(other.getClass())) {
17434
        return getClass().getName().compareTo(other.getClass().getName());
17435
      }
17436
 
17437
      int lastComparison = 0;
553 chandransh 17438
      updatePassword_result typedOther = (updatePassword_result)other;
48 ashish 17439
 
3430 rajveer 17440
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 17441
      if (lastComparison != 0) {
17442
        return lastComparison;
17443
      }
3430 rajveer 17444
      if (isSetSuccess()) {
17445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17446
        if (lastComparison != 0) {
17447
          return lastComparison;
17448
        }
48 ashish 17449
      }
3430 rajveer 17450
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 17451
      if (lastComparison != 0) {
17452
        return lastComparison;
17453
      }
3430 rajveer 17454
      if (isSetUcx()) {
17455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
17456
        if (lastComparison != 0) {
17457
          return lastComparison;
17458
        }
48 ashish 17459
      }
17460
      return 0;
17461
    }
17462
 
3430 rajveer 17463
    public _Fields fieldForId(int fieldId) {
17464
      return _Fields.findByThriftId(fieldId);
17465
    }
17466
 
17467
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17468
      org.apache.thrift.protocol.TField field;
48 ashish 17469
      iprot.readStructBegin();
17470
      while (true)
17471
      {
17472
        field = iprot.readFieldBegin();
3430 rajveer 17473
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 17474
          break;
17475
        }
3430 rajveer 17476
        switch (field.id) {
17477
          case 0: // SUCCESS
17478
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17479
              this.success = iprot.readBool();
17480
              setSuccessIsSet(true);
17481
            } else { 
17482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17483
            }
17484
            break;
17485
          case 1: // UCX
17486
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17487
              this.ucx = new UserContextException();
17488
              this.ucx.read(iprot);
17489
            } else { 
17490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17491
            }
17492
            break;
17493
          default:
17494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 17495
        }
3430 rajveer 17496
        iprot.readFieldEnd();
48 ashish 17497
      }
17498
      iprot.readStructEnd();
17499
      validate();
17500
    }
17501
 
3430 rajveer 17502
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 17503
      oprot.writeStructBegin(STRUCT_DESC);
17504
 
17505
      if (this.isSetSuccess()) {
17506
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17507
        oprot.writeBool(this.success);
17508
        oprot.writeFieldEnd();
17509
      } else if (this.isSetUcx()) {
17510
        oprot.writeFieldBegin(UCX_FIELD_DESC);
17511
        this.ucx.write(oprot);
17512
        oprot.writeFieldEnd();
17513
      }
17514
      oprot.writeFieldStop();
17515
      oprot.writeStructEnd();
17516
    }
17517
 
17518
    @Override
17519
    public String toString() {
553 chandransh 17520
      StringBuilder sb = new StringBuilder("updatePassword_result(");
48 ashish 17521
      boolean first = true;
17522
 
17523
      sb.append("success:");
17524
      sb.append(this.success);
17525
      first = false;
17526
      if (!first) sb.append(", ");
17527
      sb.append("ucx:");
17528
      if (this.ucx == null) {
17529
        sb.append("null");
17530
      } else {
17531
        sb.append(this.ucx);
17532
      }
17533
      first = false;
17534
      sb.append(")");
17535
      return sb.toString();
17536
    }
17537
 
3430 rajveer 17538
    public void validate() throws org.apache.thrift.TException {
48 ashish 17539
      // check for required fields
17540
    }
17541
 
3430 rajveer 17542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17543
      try {
17544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17545
      } catch (org.apache.thrift.TException te) {
17546
        throw new java.io.IOException(te);
17547
      }
17548
    }
17549
 
17550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17551
      try {
17552
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17553
      } catch (org.apache.thrift.TException te) {
17554
        throw new java.io.IOException(te);
17555
      }
17556
    }
17557
 
48 ashish 17558
  }
17559
 
3430 rajveer 17560
  public static class forgotPassword_args implements org.apache.thrift.TBase<forgotPassword_args, forgotPassword_args._Fields>, java.io.Serializable, Cloneable   {
17561
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("forgotPassword_args");
582 rajveer 17562
 
3430 rajveer 17563
    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);
17564
    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 17565
 
3430 rajveer 17566
    private String email; // required
17567
    private String newPassword; // required
582 rajveer 17568
 
17569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 17571
      EMAIL((short)1, "email"),
17572
      NEW_PASSWORD((short)2, "newPassword");
582 rajveer 17573
 
17574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17575
 
17576
      static {
17577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17578
          byName.put(field.getFieldName(), field);
17579
        }
17580
      }
17581
 
17582
      /**
17583
       * Find the _Fields constant that matches fieldId, or null if its not found.
17584
       */
17585
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17586
        switch(fieldId) {
17587
          case 1: // EMAIL
17588
            return EMAIL;
17589
          case 2: // NEW_PASSWORD
17590
            return NEW_PASSWORD;
17591
          default:
17592
            return null;
17593
        }
582 rajveer 17594
      }
17595
 
17596
      /**
17597
       * Find the _Fields constant that matches fieldId, throwing an exception
17598
       * if it is not found.
17599
       */
17600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17601
        _Fields fields = findByThriftId(fieldId);
17602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17603
        return fields;
17604
      }
17605
 
17606
      /**
17607
       * Find the _Fields constant that matches name, or null if its not found.
17608
       */
17609
      public static _Fields findByName(String name) {
17610
        return byName.get(name);
17611
      }
17612
 
17613
      private final short _thriftId;
17614
      private final String _fieldName;
17615
 
17616
      _Fields(short thriftId, String fieldName) {
17617
        _thriftId = thriftId;
17618
        _fieldName = fieldName;
17619
      }
17620
 
17621
      public short getThriftFieldId() {
17622
        return _thriftId;
17623
      }
17624
 
17625
      public String getFieldName() {
17626
        return _fieldName;
17627
      }
17628
    }
17629
 
17630
    // isset id assignments
17631
 
3430 rajveer 17632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
582 rajveer 17633
    static {
3430 rajveer 17634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17635
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17637
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17639
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17640
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(forgotPassword_args.class, metaDataMap);
582 rajveer 17641
    }
17642
 
17643
    public forgotPassword_args() {
17644
    }
17645
 
17646
    public forgotPassword_args(
896 rajveer 17647
      String email,
17648
      String newPassword)
582 rajveer 17649
    {
17650
      this();
17651
      this.email = email;
896 rajveer 17652
      this.newPassword = newPassword;
582 rajveer 17653
    }
17654
 
17655
    /**
17656
     * Performs a deep copy on <i>other</i>.
17657
     */
17658
    public forgotPassword_args(forgotPassword_args other) {
17659
      if (other.isSetEmail()) {
17660
        this.email = other.email;
17661
      }
896 rajveer 17662
      if (other.isSetNewPassword()) {
17663
        this.newPassword = other.newPassword;
17664
      }
582 rajveer 17665
    }
17666
 
17667
    public forgotPassword_args deepCopy() {
17668
      return new forgotPassword_args(this);
17669
    }
17670
 
3430 rajveer 17671
    @Override
17672
    public void clear() {
17673
      this.email = null;
17674
      this.newPassword = null;
582 rajveer 17675
    }
17676
 
17677
    public String getEmail() {
17678
      return this.email;
17679
    }
17680
 
3430 rajveer 17681
    public void setEmail(String email) {
582 rajveer 17682
      this.email = email;
17683
    }
17684
 
17685
    public void unsetEmail() {
17686
      this.email = null;
17687
    }
17688
 
3430 rajveer 17689
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
582 rajveer 17690
    public boolean isSetEmail() {
17691
      return this.email != null;
17692
    }
17693
 
17694
    public void setEmailIsSet(boolean value) {
17695
      if (!value) {
17696
        this.email = null;
17697
      }
17698
    }
17699
 
896 rajveer 17700
    public String getNewPassword() {
17701
      return this.newPassword;
17702
    }
17703
 
3430 rajveer 17704
    public void setNewPassword(String newPassword) {
896 rajveer 17705
      this.newPassword = newPassword;
17706
    }
17707
 
17708
    public void unsetNewPassword() {
17709
      this.newPassword = null;
17710
    }
17711
 
3430 rajveer 17712
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
896 rajveer 17713
    public boolean isSetNewPassword() {
17714
      return this.newPassword != null;
17715
    }
17716
 
17717
    public void setNewPasswordIsSet(boolean value) {
17718
      if (!value) {
17719
        this.newPassword = null;
17720
      }
17721
    }
17722
 
582 rajveer 17723
    public void setFieldValue(_Fields field, Object value) {
17724
      switch (field) {
17725
      case EMAIL:
17726
        if (value == null) {
17727
          unsetEmail();
17728
        } else {
17729
          setEmail((String)value);
17730
        }
17731
        break;
17732
 
896 rajveer 17733
      case NEW_PASSWORD:
17734
        if (value == null) {
17735
          unsetNewPassword();
17736
        } else {
17737
          setNewPassword((String)value);
17738
        }
17739
        break;
17740
 
582 rajveer 17741
      }
17742
    }
17743
 
17744
    public Object getFieldValue(_Fields field) {
17745
      switch (field) {
17746
      case EMAIL:
17747
        return getEmail();
17748
 
896 rajveer 17749
      case NEW_PASSWORD:
17750
        return getNewPassword();
17751
 
582 rajveer 17752
      }
17753
      throw new IllegalStateException();
17754
    }
17755
 
3430 rajveer 17756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17757
    public boolean isSet(_Fields field) {
17758
      if (field == null) {
17759
        throw new IllegalArgumentException();
17760
      }
582 rajveer 17761
 
17762
      switch (field) {
17763
      case EMAIL:
17764
        return isSetEmail();
896 rajveer 17765
      case NEW_PASSWORD:
17766
        return isSetNewPassword();
582 rajveer 17767
      }
17768
      throw new IllegalStateException();
17769
    }
17770
 
17771
    @Override
17772
    public boolean equals(Object that) {
17773
      if (that == null)
17774
        return false;
17775
      if (that instanceof forgotPassword_args)
17776
        return this.equals((forgotPassword_args)that);
17777
      return false;
17778
    }
17779
 
17780
    public boolean equals(forgotPassword_args that) {
17781
      if (that == null)
17782
        return false;
17783
 
17784
      boolean this_present_email = true && this.isSetEmail();
17785
      boolean that_present_email = true && that.isSetEmail();
17786
      if (this_present_email || that_present_email) {
17787
        if (!(this_present_email && that_present_email))
17788
          return false;
17789
        if (!this.email.equals(that.email))
17790
          return false;
17791
      }
17792
 
896 rajveer 17793
      boolean this_present_newPassword = true && this.isSetNewPassword();
17794
      boolean that_present_newPassword = true && that.isSetNewPassword();
17795
      if (this_present_newPassword || that_present_newPassword) {
17796
        if (!(this_present_newPassword && that_present_newPassword))
17797
          return false;
17798
        if (!this.newPassword.equals(that.newPassword))
17799
          return false;
17800
      }
17801
 
582 rajveer 17802
      return true;
17803
    }
17804
 
17805
    @Override
17806
    public int hashCode() {
17807
      return 0;
17808
    }
17809
 
17810
    public int compareTo(forgotPassword_args other) {
17811
      if (!getClass().equals(other.getClass())) {
17812
        return getClass().getName().compareTo(other.getClass().getName());
17813
      }
17814
 
17815
      int lastComparison = 0;
17816
      forgotPassword_args typedOther = (forgotPassword_args)other;
17817
 
3430 rajveer 17818
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
582 rajveer 17819
      if (lastComparison != 0) {
17820
        return lastComparison;
17821
      }
3430 rajveer 17822
      if (isSetEmail()) {
17823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
17824
        if (lastComparison != 0) {
17825
          return lastComparison;
17826
        }
582 rajveer 17827
      }
3430 rajveer 17828
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
896 rajveer 17829
      if (lastComparison != 0) {
17830
        return lastComparison;
17831
      }
3430 rajveer 17832
      if (isSetNewPassword()) {
17833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
17834
        if (lastComparison != 0) {
17835
          return lastComparison;
17836
        }
896 rajveer 17837
      }
582 rajveer 17838
      return 0;
17839
    }
17840
 
3430 rajveer 17841
    public _Fields fieldForId(int fieldId) {
17842
      return _Fields.findByThriftId(fieldId);
17843
    }
17844
 
17845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17846
      org.apache.thrift.protocol.TField field;
582 rajveer 17847
      iprot.readStructBegin();
17848
      while (true)
17849
      {
17850
        field = iprot.readFieldBegin();
3430 rajveer 17851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
582 rajveer 17852
          break;
17853
        }
3430 rajveer 17854
        switch (field.id) {
17855
          case 1: // EMAIL
17856
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17857
              this.email = iprot.readString();
17858
            } else { 
17859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17860
            }
17861
            break;
17862
          case 2: // NEW_PASSWORD
17863
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17864
              this.newPassword = iprot.readString();
17865
            } else { 
17866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17867
            }
17868
            break;
17869
          default:
17870
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
582 rajveer 17871
        }
3430 rajveer 17872
        iprot.readFieldEnd();
582 rajveer 17873
      }
17874
      iprot.readStructEnd();
17875
      validate();
17876
    }
17877
 
3430 rajveer 17878
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
582 rajveer 17879
      validate();
17880
 
17881
      oprot.writeStructBegin(STRUCT_DESC);
17882
      if (this.email != null) {
17883
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
17884
        oprot.writeString(this.email);
17885
        oprot.writeFieldEnd();
17886
      }
896 rajveer 17887
      if (this.newPassword != null) {
17888
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
17889
        oprot.writeString(this.newPassword);
17890
        oprot.writeFieldEnd();
17891
      }
582 rajveer 17892
      oprot.writeFieldStop();
17893
      oprot.writeStructEnd();
17894
    }
17895
 
17896
    @Override
17897
    public String toString() {
17898
      StringBuilder sb = new StringBuilder("forgotPassword_args(");
17899
      boolean first = true;
17900
 
17901
      sb.append("email:");
17902
      if (this.email == null) {
17903
        sb.append("null");
17904
      } else {
17905
        sb.append(this.email);
17906
      }
17907
      first = false;
896 rajveer 17908
      if (!first) sb.append(", ");
17909
      sb.append("newPassword:");
17910
      if (this.newPassword == null) {
17911
        sb.append("null");
17912
      } else {
17913
        sb.append(this.newPassword);
17914
      }
17915
      first = false;
582 rajveer 17916
      sb.append(")");
17917
      return sb.toString();
17918
    }
17919
 
3430 rajveer 17920
    public void validate() throws org.apache.thrift.TException {
582 rajveer 17921
      // check for required fields
17922
    }
17923
 
3430 rajveer 17924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17925
      try {
17926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17927
      } catch (org.apache.thrift.TException te) {
17928
        throw new java.io.IOException(te);
17929
      }
17930
    }
17931
 
17932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17933
      try {
17934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17935
      } catch (org.apache.thrift.TException te) {
17936
        throw new java.io.IOException(te);
17937
      }
17938
    }
17939
 
582 rajveer 17940
  }
17941
 
3430 rajveer 17942
  public static class forgotPassword_result implements org.apache.thrift.TBase<forgotPassword_result, forgotPassword_result._Fields>, java.io.Serializable, Cloneable   {
17943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("forgotPassword_result");
582 rajveer 17944
 
3430 rajveer 17945
    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);
17946
    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 17947
 
3430 rajveer 17948
    private boolean success; // required
17949
    private UserContextException ucx; // required
582 rajveer 17950
 
17951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
582 rajveer 17953
      SUCCESS((short)0, "success"),
17954
      UCX((short)1, "ucx");
17955
 
17956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17957
 
17958
      static {
17959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17960
          byName.put(field.getFieldName(), field);
17961
        }
17962
      }
17963
 
17964
      /**
17965
       * Find the _Fields constant that matches fieldId, or null if its not found.
17966
       */
17967
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17968
        switch(fieldId) {
17969
          case 0: // SUCCESS
17970
            return SUCCESS;
17971
          case 1: // UCX
17972
            return UCX;
17973
          default:
17974
            return null;
17975
        }
582 rajveer 17976
      }
17977
 
17978
      /**
17979
       * Find the _Fields constant that matches fieldId, throwing an exception
17980
       * if it is not found.
17981
       */
17982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17983
        _Fields fields = findByThriftId(fieldId);
17984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17985
        return fields;
17986
      }
17987
 
17988
      /**
17989
       * Find the _Fields constant that matches name, or null if its not found.
17990
       */
17991
      public static _Fields findByName(String name) {
17992
        return byName.get(name);
17993
      }
17994
 
17995
      private final short _thriftId;
17996
      private final String _fieldName;
17997
 
17998
      _Fields(short thriftId, String fieldName) {
17999
        _thriftId = thriftId;
18000
        _fieldName = fieldName;
18001
      }
18002
 
18003
      public short getThriftFieldId() {
18004
        return _thriftId;
18005
      }
18006
 
18007
      public String getFieldName() {
18008
        return _fieldName;
18009
      }
18010
    }
18011
 
18012
    // isset id assignments
18013
    private static final int __SUCCESS_ISSET_ID = 0;
18014
    private BitSet __isset_bit_vector = new BitSet(1);
18015
 
3430 rajveer 18016
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
582 rajveer 18017
    static {
3430 rajveer 18018
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18019
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18021
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(forgotPassword_result.class, metaDataMap);
582 rajveer 18025
    }
18026
 
18027
    public forgotPassword_result() {
18028
    }
18029
 
18030
    public forgotPassword_result(
18031
      boolean success,
18032
      UserContextException ucx)
18033
    {
18034
      this();
18035
      this.success = success;
18036
      setSuccessIsSet(true);
18037
      this.ucx = ucx;
18038
    }
18039
 
18040
    /**
18041
     * Performs a deep copy on <i>other</i>.
18042
     */
18043
    public forgotPassword_result(forgotPassword_result other) {
18044
      __isset_bit_vector.clear();
18045
      __isset_bit_vector.or(other.__isset_bit_vector);
18046
      this.success = other.success;
18047
      if (other.isSetUcx()) {
18048
        this.ucx = new UserContextException(other.ucx);
18049
      }
18050
    }
18051
 
18052
    public forgotPassword_result deepCopy() {
18053
      return new forgotPassword_result(this);
18054
    }
18055
 
3430 rajveer 18056
    @Override
18057
    public void clear() {
18058
      setSuccessIsSet(false);
18059
      this.success = false;
18060
      this.ucx = null;
582 rajveer 18061
    }
18062
 
18063
    public boolean isSuccess() {
18064
      return this.success;
18065
    }
18066
 
3430 rajveer 18067
    public void setSuccess(boolean success) {
582 rajveer 18068
      this.success = success;
18069
      setSuccessIsSet(true);
18070
    }
18071
 
18072
    public void unsetSuccess() {
18073
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18074
    }
18075
 
3430 rajveer 18076
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
582 rajveer 18077
    public boolean isSetSuccess() {
18078
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18079
    }
18080
 
18081
    public void setSuccessIsSet(boolean value) {
18082
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18083
    }
18084
 
18085
    public UserContextException getUcx() {
18086
      return this.ucx;
18087
    }
18088
 
3430 rajveer 18089
    public void setUcx(UserContextException ucx) {
582 rajveer 18090
      this.ucx = ucx;
18091
    }
18092
 
18093
    public void unsetUcx() {
18094
      this.ucx = null;
18095
    }
18096
 
3430 rajveer 18097
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
582 rajveer 18098
    public boolean isSetUcx() {
18099
      return this.ucx != null;
18100
    }
18101
 
18102
    public void setUcxIsSet(boolean value) {
18103
      if (!value) {
18104
        this.ucx = null;
18105
      }
18106
    }
18107
 
18108
    public void setFieldValue(_Fields field, Object value) {
18109
      switch (field) {
18110
      case SUCCESS:
18111
        if (value == null) {
18112
          unsetSuccess();
18113
        } else {
18114
          setSuccess((Boolean)value);
18115
        }
18116
        break;
18117
 
18118
      case UCX:
18119
        if (value == null) {
18120
          unsetUcx();
18121
        } else {
18122
          setUcx((UserContextException)value);
18123
        }
18124
        break;
18125
 
18126
      }
18127
    }
18128
 
18129
    public Object getFieldValue(_Fields field) {
18130
      switch (field) {
18131
      case SUCCESS:
3430 rajveer 18132
        return Boolean.valueOf(isSuccess());
582 rajveer 18133
 
18134
      case UCX:
18135
        return getUcx();
18136
 
18137
      }
18138
      throw new IllegalStateException();
18139
    }
18140
 
3430 rajveer 18141
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18142
    public boolean isSet(_Fields field) {
18143
      if (field == null) {
18144
        throw new IllegalArgumentException();
18145
      }
582 rajveer 18146
 
18147
      switch (field) {
18148
      case SUCCESS:
18149
        return isSetSuccess();
18150
      case UCX:
18151
        return isSetUcx();
18152
      }
18153
      throw new IllegalStateException();
18154
    }
18155
 
18156
    @Override
18157
    public boolean equals(Object that) {
18158
      if (that == null)
18159
        return false;
18160
      if (that instanceof forgotPassword_result)
18161
        return this.equals((forgotPassword_result)that);
18162
      return false;
18163
    }
18164
 
18165
    public boolean equals(forgotPassword_result that) {
18166
      if (that == null)
18167
        return false;
18168
 
18169
      boolean this_present_success = true;
18170
      boolean that_present_success = true;
18171
      if (this_present_success || that_present_success) {
18172
        if (!(this_present_success && that_present_success))
18173
          return false;
18174
        if (this.success != that.success)
18175
          return false;
18176
      }
18177
 
18178
      boolean this_present_ucx = true && this.isSetUcx();
18179
      boolean that_present_ucx = true && that.isSetUcx();
18180
      if (this_present_ucx || that_present_ucx) {
18181
        if (!(this_present_ucx && that_present_ucx))
18182
          return false;
18183
        if (!this.ucx.equals(that.ucx))
18184
          return false;
18185
      }
18186
 
18187
      return true;
18188
    }
18189
 
18190
    @Override
18191
    public int hashCode() {
18192
      return 0;
18193
    }
18194
 
18195
    public int compareTo(forgotPassword_result other) {
18196
      if (!getClass().equals(other.getClass())) {
18197
        return getClass().getName().compareTo(other.getClass().getName());
18198
      }
18199
 
18200
      int lastComparison = 0;
18201
      forgotPassword_result typedOther = (forgotPassword_result)other;
18202
 
3430 rajveer 18203
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
582 rajveer 18204
      if (lastComparison != 0) {
18205
        return lastComparison;
18206
      }
3430 rajveer 18207
      if (isSetSuccess()) {
18208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18209
        if (lastComparison != 0) {
18210
          return lastComparison;
18211
        }
582 rajveer 18212
      }
3430 rajveer 18213
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
582 rajveer 18214
      if (lastComparison != 0) {
18215
        return lastComparison;
18216
      }
3430 rajveer 18217
      if (isSetUcx()) {
18218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
18219
        if (lastComparison != 0) {
18220
          return lastComparison;
18221
        }
582 rajveer 18222
      }
18223
      return 0;
18224
    }
18225
 
3430 rajveer 18226
    public _Fields fieldForId(int fieldId) {
18227
      return _Fields.findByThriftId(fieldId);
18228
    }
18229
 
18230
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18231
      org.apache.thrift.protocol.TField field;
582 rajveer 18232
      iprot.readStructBegin();
18233
      while (true)
18234
      {
18235
        field = iprot.readFieldBegin();
3430 rajveer 18236
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
582 rajveer 18237
          break;
18238
        }
3430 rajveer 18239
        switch (field.id) {
18240
          case 0: // SUCCESS
18241
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18242
              this.success = iprot.readBool();
18243
              setSuccessIsSet(true);
18244
            } else { 
18245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18246
            }
18247
            break;
18248
          case 1: // UCX
18249
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18250
              this.ucx = new UserContextException();
18251
              this.ucx.read(iprot);
18252
            } else { 
18253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18254
            }
18255
            break;
18256
          default:
18257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
582 rajveer 18258
        }
3430 rajveer 18259
        iprot.readFieldEnd();
582 rajveer 18260
      }
18261
      iprot.readStructEnd();
18262
      validate();
18263
    }
18264
 
3430 rajveer 18265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
582 rajveer 18266
      oprot.writeStructBegin(STRUCT_DESC);
18267
 
18268
      if (this.isSetSuccess()) {
18269
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18270
        oprot.writeBool(this.success);
18271
        oprot.writeFieldEnd();
18272
      } else if (this.isSetUcx()) {
18273
        oprot.writeFieldBegin(UCX_FIELD_DESC);
18274
        this.ucx.write(oprot);
18275
        oprot.writeFieldEnd();
18276
      }
18277
      oprot.writeFieldStop();
18278
      oprot.writeStructEnd();
18279
    }
18280
 
18281
    @Override
18282
    public String toString() {
18283
      StringBuilder sb = new StringBuilder("forgotPassword_result(");
18284
      boolean first = true;
18285
 
18286
      sb.append("success:");
18287
      sb.append(this.success);
18288
      first = false;
18289
      if (!first) sb.append(", ");
18290
      sb.append("ucx:");
18291
      if (this.ucx == null) {
18292
        sb.append("null");
18293
      } else {
18294
        sb.append(this.ucx);
18295
      }
18296
      first = false;
18297
      sb.append(")");
18298
      return sb.toString();
18299
    }
18300
 
3430 rajveer 18301
    public void validate() throws org.apache.thrift.TException {
582 rajveer 18302
      // check for required fields
18303
    }
18304
 
3430 rajveer 18305
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18306
      try {
18307
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18308
      } catch (org.apache.thrift.TException te) {
18309
        throw new java.io.IOException(te);
18310
      }
18311
    }
18312
 
18313
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18314
      try {
18315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18316
      } catch (org.apache.thrift.TException te) {
18317
        throw new java.io.IOException(te);
18318
      }
18319
    }
18320
 
582 rajveer 18321
  }
18322
 
3430 rajveer 18323
  public static class getAllAddressesForUser_args implements org.apache.thrift.TBase<getAllAddressesForUser_args, getAllAddressesForUser_args._Fields>, java.io.Serializable, Cloneable   {
18324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAddressesForUser_args");
593 rajveer 18325
 
3430 rajveer 18326
    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 18327
 
3430 rajveer 18328
    private long userId; // required
593 rajveer 18329
 
18330
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18331
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 18332
      USER_ID((short)1, "userId");
18333
 
18334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18335
 
18336
      static {
18337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18338
          byName.put(field.getFieldName(), field);
18339
        }
18340
      }
18341
 
18342
      /**
18343
       * Find the _Fields constant that matches fieldId, or null if its not found.
18344
       */
18345
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18346
        switch(fieldId) {
18347
          case 1: // USER_ID
18348
            return USER_ID;
18349
          default:
18350
            return null;
18351
        }
593 rajveer 18352
      }
18353
 
18354
      /**
18355
       * Find the _Fields constant that matches fieldId, throwing an exception
18356
       * if it is not found.
18357
       */
18358
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18359
        _Fields fields = findByThriftId(fieldId);
18360
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18361
        return fields;
18362
      }
18363
 
18364
      /**
18365
       * Find the _Fields constant that matches name, or null if its not found.
18366
       */
18367
      public static _Fields findByName(String name) {
18368
        return byName.get(name);
18369
      }
18370
 
18371
      private final short _thriftId;
18372
      private final String _fieldName;
18373
 
18374
      _Fields(short thriftId, String fieldName) {
18375
        _thriftId = thriftId;
18376
        _fieldName = fieldName;
18377
      }
18378
 
18379
      public short getThriftFieldId() {
18380
        return _thriftId;
18381
      }
18382
 
18383
      public String getFieldName() {
18384
        return _fieldName;
18385
      }
18386
    }
18387
 
18388
    // isset id assignments
18389
    private static final int __USERID_ISSET_ID = 0;
18390
    private BitSet __isset_bit_vector = new BitSet(1);
18391
 
3430 rajveer 18392
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 18393
    static {
3430 rajveer 18394
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18395
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18396
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18397
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18398
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_args.class, metaDataMap);
593 rajveer 18399
    }
18400
 
18401
    public getAllAddressesForUser_args() {
18402
    }
18403
 
18404
    public getAllAddressesForUser_args(
18405
      long userId)
18406
    {
18407
      this();
18408
      this.userId = userId;
18409
      setUserIdIsSet(true);
18410
    }
18411
 
18412
    /**
18413
     * Performs a deep copy on <i>other</i>.
18414
     */
18415
    public getAllAddressesForUser_args(getAllAddressesForUser_args other) {
18416
      __isset_bit_vector.clear();
18417
      __isset_bit_vector.or(other.__isset_bit_vector);
18418
      this.userId = other.userId;
18419
    }
18420
 
18421
    public getAllAddressesForUser_args deepCopy() {
18422
      return new getAllAddressesForUser_args(this);
18423
    }
18424
 
3430 rajveer 18425
    @Override
18426
    public void clear() {
18427
      setUserIdIsSet(false);
18428
      this.userId = 0;
593 rajveer 18429
    }
18430
 
18431
    public long getUserId() {
18432
      return this.userId;
18433
    }
18434
 
3430 rajveer 18435
    public void setUserId(long userId) {
593 rajveer 18436
      this.userId = userId;
18437
      setUserIdIsSet(true);
18438
    }
18439
 
18440
    public void unsetUserId() {
18441
      __isset_bit_vector.clear(__USERID_ISSET_ID);
18442
    }
18443
 
3430 rajveer 18444
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
593 rajveer 18445
    public boolean isSetUserId() {
18446
      return __isset_bit_vector.get(__USERID_ISSET_ID);
18447
    }
18448
 
18449
    public void setUserIdIsSet(boolean value) {
18450
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
18451
    }
18452
 
18453
    public void setFieldValue(_Fields field, Object value) {
18454
      switch (field) {
18455
      case USER_ID:
18456
        if (value == null) {
18457
          unsetUserId();
18458
        } else {
18459
          setUserId((Long)value);
18460
        }
18461
        break;
18462
 
18463
      }
18464
    }
18465
 
18466
    public Object getFieldValue(_Fields field) {
18467
      switch (field) {
18468
      case USER_ID:
3430 rajveer 18469
        return Long.valueOf(getUserId());
593 rajveer 18470
 
18471
      }
18472
      throw new IllegalStateException();
18473
    }
18474
 
3430 rajveer 18475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18476
    public boolean isSet(_Fields field) {
18477
      if (field == null) {
18478
        throw new IllegalArgumentException();
18479
      }
593 rajveer 18480
 
18481
      switch (field) {
18482
      case USER_ID:
18483
        return isSetUserId();
18484
      }
18485
      throw new IllegalStateException();
18486
    }
18487
 
18488
    @Override
18489
    public boolean equals(Object that) {
18490
      if (that == null)
18491
        return false;
18492
      if (that instanceof getAllAddressesForUser_args)
18493
        return this.equals((getAllAddressesForUser_args)that);
18494
      return false;
18495
    }
18496
 
18497
    public boolean equals(getAllAddressesForUser_args that) {
18498
      if (that == null)
18499
        return false;
18500
 
18501
      boolean this_present_userId = true;
18502
      boolean that_present_userId = true;
18503
      if (this_present_userId || that_present_userId) {
18504
        if (!(this_present_userId && that_present_userId))
18505
          return false;
18506
        if (this.userId != that.userId)
18507
          return false;
18508
      }
18509
 
18510
      return true;
18511
    }
18512
 
18513
    @Override
18514
    public int hashCode() {
18515
      return 0;
18516
    }
18517
 
18518
    public int compareTo(getAllAddressesForUser_args other) {
18519
      if (!getClass().equals(other.getClass())) {
18520
        return getClass().getName().compareTo(other.getClass().getName());
18521
      }
18522
 
18523
      int lastComparison = 0;
18524
      getAllAddressesForUser_args typedOther = (getAllAddressesForUser_args)other;
18525
 
3430 rajveer 18526
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
593 rajveer 18527
      if (lastComparison != 0) {
18528
        return lastComparison;
18529
      }
3430 rajveer 18530
      if (isSetUserId()) {
18531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
18532
        if (lastComparison != 0) {
18533
          return lastComparison;
18534
        }
593 rajveer 18535
      }
18536
      return 0;
18537
    }
18538
 
3430 rajveer 18539
    public _Fields fieldForId(int fieldId) {
18540
      return _Fields.findByThriftId(fieldId);
18541
    }
18542
 
18543
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18544
      org.apache.thrift.protocol.TField field;
593 rajveer 18545
      iprot.readStructBegin();
18546
      while (true)
18547
      {
18548
        field = iprot.readFieldBegin();
3430 rajveer 18549
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 18550
          break;
18551
        }
3430 rajveer 18552
        switch (field.id) {
18553
          case 1: // USER_ID
18554
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18555
              this.userId = iprot.readI64();
18556
              setUserIdIsSet(true);
18557
            } else { 
18558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18559
            }
18560
            break;
18561
          default:
18562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 18563
        }
3430 rajveer 18564
        iprot.readFieldEnd();
593 rajveer 18565
      }
18566
      iprot.readStructEnd();
18567
      validate();
18568
    }
18569
 
3430 rajveer 18570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 18571
      validate();
18572
 
18573
      oprot.writeStructBegin(STRUCT_DESC);
18574
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
18575
      oprot.writeI64(this.userId);
18576
      oprot.writeFieldEnd();
18577
      oprot.writeFieldStop();
18578
      oprot.writeStructEnd();
18579
    }
18580
 
18581
    @Override
18582
    public String toString() {
18583
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_args(");
18584
      boolean first = true;
18585
 
18586
      sb.append("userId:");
18587
      sb.append(this.userId);
18588
      first = false;
18589
      sb.append(")");
18590
      return sb.toString();
18591
    }
18592
 
3430 rajveer 18593
    public void validate() throws org.apache.thrift.TException {
593 rajveer 18594
      // check for required fields
18595
    }
18596
 
3430 rajveer 18597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18598
      try {
18599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18600
      } catch (org.apache.thrift.TException te) {
18601
        throw new java.io.IOException(te);
18602
      }
18603
    }
18604
 
18605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18606
      try {
18607
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18608
        __isset_bit_vector = new BitSet(1);
18609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18610
      } catch (org.apache.thrift.TException te) {
18611
        throw new java.io.IOException(te);
18612
      }
18613
    }
18614
 
593 rajveer 18615
  }
18616
 
3430 rajveer 18617
  public static class getAllAddressesForUser_result implements org.apache.thrift.TBase<getAllAddressesForUser_result, getAllAddressesForUser_result._Fields>, java.io.Serializable, Cloneable   {
18618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAddressesForUser_result");
593 rajveer 18619
 
3430 rajveer 18620
    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);
18621
    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 18622
 
3430 rajveer 18623
    private List<Address> success; // required
18624
    private UserContextException ucx; // required
593 rajveer 18625
 
18626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 18628
      SUCCESS((short)0, "success"),
18629
      UCX((short)1, "ucx");
18630
 
18631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18632
 
18633
      static {
18634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18635
          byName.put(field.getFieldName(), field);
18636
        }
18637
      }
18638
 
18639
      /**
18640
       * Find the _Fields constant that matches fieldId, or null if its not found.
18641
       */
18642
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18643
        switch(fieldId) {
18644
          case 0: // SUCCESS
18645
            return SUCCESS;
18646
          case 1: // UCX
18647
            return UCX;
18648
          default:
18649
            return null;
18650
        }
593 rajveer 18651
      }
18652
 
18653
      /**
18654
       * Find the _Fields constant that matches fieldId, throwing an exception
18655
       * if it is not found.
18656
       */
18657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18658
        _Fields fields = findByThriftId(fieldId);
18659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18660
        return fields;
18661
      }
18662
 
18663
      /**
18664
       * Find the _Fields constant that matches name, or null if its not found.
18665
       */
18666
      public static _Fields findByName(String name) {
18667
        return byName.get(name);
18668
      }
18669
 
18670
      private final short _thriftId;
18671
      private final String _fieldName;
18672
 
18673
      _Fields(short thriftId, String fieldName) {
18674
        _thriftId = thriftId;
18675
        _fieldName = fieldName;
18676
      }
18677
 
18678
      public short getThriftFieldId() {
18679
        return _thriftId;
18680
      }
18681
 
18682
      public String getFieldName() {
18683
        return _fieldName;
18684
      }
18685
    }
18686
 
18687
    // isset id assignments
18688
 
3430 rajveer 18689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 18690
    static {
3430 rajveer 18691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18692
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18693
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18694
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
18695
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18697
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18698
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_result.class, metaDataMap);
593 rajveer 18699
    }
18700
 
18701
    public getAllAddressesForUser_result() {
18702
    }
18703
 
18704
    public getAllAddressesForUser_result(
18705
      List<Address> success,
18706
      UserContextException ucx)
18707
    {
18708
      this();
18709
      this.success = success;
18710
      this.ucx = ucx;
18711
    }
18712
 
18713
    /**
18714
     * Performs a deep copy on <i>other</i>.
18715
     */
18716
    public getAllAddressesForUser_result(getAllAddressesForUser_result other) {
18717
      if (other.isSetSuccess()) {
18718
        List<Address> __this__success = new ArrayList<Address>();
18719
        for (Address other_element : other.success) {
18720
          __this__success.add(new Address(other_element));
18721
        }
18722
        this.success = __this__success;
18723
      }
18724
      if (other.isSetUcx()) {
18725
        this.ucx = new UserContextException(other.ucx);
18726
      }
18727
    }
18728
 
18729
    public getAllAddressesForUser_result deepCopy() {
18730
      return new getAllAddressesForUser_result(this);
18731
    }
18732
 
3430 rajveer 18733
    @Override
18734
    public void clear() {
18735
      this.success = null;
18736
      this.ucx = null;
593 rajveer 18737
    }
18738
 
18739
    public int getSuccessSize() {
18740
      return (this.success == null) ? 0 : this.success.size();
18741
    }
18742
 
18743
    public java.util.Iterator<Address> getSuccessIterator() {
18744
      return (this.success == null) ? null : this.success.iterator();
18745
    }
18746
 
18747
    public void addToSuccess(Address elem) {
18748
      if (this.success == null) {
18749
        this.success = new ArrayList<Address>();
18750
      }
18751
      this.success.add(elem);
18752
    }
18753
 
18754
    public List<Address> getSuccess() {
18755
      return this.success;
18756
    }
18757
 
3430 rajveer 18758
    public void setSuccess(List<Address> success) {
593 rajveer 18759
      this.success = success;
18760
    }
18761
 
18762
    public void unsetSuccess() {
18763
      this.success = null;
18764
    }
18765
 
3430 rajveer 18766
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
593 rajveer 18767
    public boolean isSetSuccess() {
18768
      return this.success != null;
18769
    }
18770
 
18771
    public void setSuccessIsSet(boolean value) {
18772
      if (!value) {
18773
        this.success = null;
18774
      }
18775
    }
18776
 
18777
    public UserContextException getUcx() {
18778
      return this.ucx;
18779
    }
18780
 
3430 rajveer 18781
    public void setUcx(UserContextException ucx) {
593 rajveer 18782
      this.ucx = ucx;
18783
    }
18784
 
18785
    public void unsetUcx() {
18786
      this.ucx = null;
18787
    }
18788
 
3430 rajveer 18789
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
593 rajveer 18790
    public boolean isSetUcx() {
18791
      return this.ucx != null;
18792
    }
18793
 
18794
    public void setUcxIsSet(boolean value) {
18795
      if (!value) {
18796
        this.ucx = null;
18797
      }
18798
    }
18799
 
18800
    public void setFieldValue(_Fields field, Object value) {
18801
      switch (field) {
18802
      case SUCCESS:
18803
        if (value == null) {
18804
          unsetSuccess();
18805
        } else {
18806
          setSuccess((List<Address>)value);
18807
        }
18808
        break;
18809
 
18810
      case UCX:
18811
        if (value == null) {
18812
          unsetUcx();
18813
        } else {
18814
          setUcx((UserContextException)value);
18815
        }
18816
        break;
18817
 
18818
      }
18819
    }
18820
 
18821
    public Object getFieldValue(_Fields field) {
18822
      switch (field) {
18823
      case SUCCESS:
18824
        return getSuccess();
18825
 
18826
      case UCX:
18827
        return getUcx();
18828
 
18829
      }
18830
      throw new IllegalStateException();
18831
    }
18832
 
3430 rajveer 18833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18834
    public boolean isSet(_Fields field) {
18835
      if (field == null) {
18836
        throw new IllegalArgumentException();
18837
      }
593 rajveer 18838
 
18839
      switch (field) {
18840
      case SUCCESS:
18841
        return isSetSuccess();
18842
      case UCX:
18843
        return isSetUcx();
18844
      }
18845
      throw new IllegalStateException();
18846
    }
18847
 
18848
    @Override
18849
    public boolean equals(Object that) {
18850
      if (that == null)
18851
        return false;
18852
      if (that instanceof getAllAddressesForUser_result)
18853
        return this.equals((getAllAddressesForUser_result)that);
18854
      return false;
18855
    }
18856
 
18857
    public boolean equals(getAllAddressesForUser_result that) {
18858
      if (that == null)
18859
        return false;
18860
 
18861
      boolean this_present_success = true && this.isSetSuccess();
18862
      boolean that_present_success = true && that.isSetSuccess();
18863
      if (this_present_success || that_present_success) {
18864
        if (!(this_present_success && that_present_success))
18865
          return false;
18866
        if (!this.success.equals(that.success))
18867
          return false;
18868
      }
18869
 
18870
      boolean this_present_ucx = true && this.isSetUcx();
18871
      boolean that_present_ucx = true && that.isSetUcx();
18872
      if (this_present_ucx || that_present_ucx) {
18873
        if (!(this_present_ucx && that_present_ucx))
18874
          return false;
18875
        if (!this.ucx.equals(that.ucx))
18876
          return false;
18877
      }
18878
 
18879
      return true;
18880
    }
18881
 
18882
    @Override
18883
    public int hashCode() {
18884
      return 0;
18885
    }
18886
 
18887
    public int compareTo(getAllAddressesForUser_result other) {
18888
      if (!getClass().equals(other.getClass())) {
18889
        return getClass().getName().compareTo(other.getClass().getName());
18890
      }
18891
 
18892
      int lastComparison = 0;
18893
      getAllAddressesForUser_result typedOther = (getAllAddressesForUser_result)other;
18894
 
3430 rajveer 18895
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
593 rajveer 18896
      if (lastComparison != 0) {
18897
        return lastComparison;
18898
      }
3430 rajveer 18899
      if (isSetSuccess()) {
18900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18901
        if (lastComparison != 0) {
18902
          return lastComparison;
18903
        }
593 rajveer 18904
      }
3430 rajveer 18905
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
593 rajveer 18906
      if (lastComparison != 0) {
18907
        return lastComparison;
18908
      }
3430 rajveer 18909
      if (isSetUcx()) {
18910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
18911
        if (lastComparison != 0) {
18912
          return lastComparison;
18913
        }
593 rajveer 18914
      }
18915
      return 0;
18916
    }
18917
 
3430 rajveer 18918
    public _Fields fieldForId(int fieldId) {
18919
      return _Fields.findByThriftId(fieldId);
18920
    }
18921
 
18922
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18923
      org.apache.thrift.protocol.TField field;
593 rajveer 18924
      iprot.readStructBegin();
18925
      while (true)
18926
      {
18927
        field = iprot.readFieldBegin();
3430 rajveer 18928
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 18929
          break;
18930
        }
3430 rajveer 18931
        switch (field.id) {
18932
          case 0: // SUCCESS
18933
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18934
              {
18935
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
18936
                this.success = new ArrayList<Address>(_list20.size);
18937
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
593 rajveer 18938
                {
3430 rajveer 18939
                  Address _elem22; // required
18940
                  _elem22 = new Address();
18941
                  _elem22.read(iprot);
18942
                  this.success.add(_elem22);
593 rajveer 18943
                }
3430 rajveer 18944
                iprot.readListEnd();
593 rajveer 18945
              }
3430 rajveer 18946
            } else { 
18947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18948
            }
18949
            break;
18950
          case 1: // UCX
18951
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18952
              this.ucx = new UserContextException();
18953
              this.ucx.read(iprot);
18954
            } else { 
18955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18956
            }
18957
            break;
18958
          default:
18959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 18960
        }
3430 rajveer 18961
        iprot.readFieldEnd();
593 rajveer 18962
      }
18963
      iprot.readStructEnd();
18964
      validate();
18965
    }
18966
 
3430 rajveer 18967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 18968
      oprot.writeStructBegin(STRUCT_DESC);
18969
 
18970
      if (this.isSetSuccess()) {
18971
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18972
        {
3430 rajveer 18973
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 18974
          for (Address _iter23 : this.success)
593 rajveer 18975
          {
3385 varun.gupt 18976
            _iter23.write(oprot);
593 rajveer 18977
          }
18978
          oprot.writeListEnd();
18979
        }
18980
        oprot.writeFieldEnd();
18981
      } else if (this.isSetUcx()) {
18982
        oprot.writeFieldBegin(UCX_FIELD_DESC);
18983
        this.ucx.write(oprot);
18984
        oprot.writeFieldEnd();
18985
      }
18986
      oprot.writeFieldStop();
18987
      oprot.writeStructEnd();
18988
    }
18989
 
18990
    @Override
18991
    public String toString() {
18992
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_result(");
18993
      boolean first = true;
18994
 
18995
      sb.append("success:");
18996
      if (this.success == null) {
18997
        sb.append("null");
18998
      } else {
18999
        sb.append(this.success);
19000
      }
19001
      first = false;
19002
      if (!first) sb.append(", ");
19003
      sb.append("ucx:");
19004
      if (this.ucx == null) {
19005
        sb.append("null");
19006
      } else {
19007
        sb.append(this.ucx);
19008
      }
19009
      first = false;
19010
      sb.append(")");
19011
      return sb.toString();
19012
    }
19013
 
3430 rajveer 19014
    public void validate() throws org.apache.thrift.TException {
593 rajveer 19015
      // check for required fields
19016
    }
19017
 
3430 rajveer 19018
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19019
      try {
19020
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19021
      } catch (org.apache.thrift.TException te) {
19022
        throw new java.io.IOException(te);
19023
      }
19024
    }
19025
 
19026
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19027
      try {
19028
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19029
      } catch (org.apache.thrift.TException te) {
19030
        throw new java.io.IOException(te);
19031
      }
19032
    }
19033
 
593 rajveer 19034
  }
19035
 
3430 rajveer 19036
  public static class getAddressById_args implements org.apache.thrift.TBase<getAddressById_args, getAddressById_args._Fields>, java.io.Serializable, Cloneable   {
19037
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressById_args");
1893 vikas 19038
 
3430 rajveer 19039
    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 19040
 
3430 rajveer 19041
    private long addressId; // required
1893 vikas 19042
 
19043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1893 vikas 19045
      ADDRESS_ID((short)1, "addressId");
19046
 
19047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19048
 
19049
      static {
19050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19051
          byName.put(field.getFieldName(), field);
19052
        }
19053
      }
19054
 
19055
      /**
19056
       * Find the _Fields constant that matches fieldId, or null if its not found.
19057
       */
19058
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19059
        switch(fieldId) {
19060
          case 1: // ADDRESS_ID
19061
            return ADDRESS_ID;
19062
          default:
19063
            return null;
19064
        }
1893 vikas 19065
      }
19066
 
19067
      /**
19068
       * Find the _Fields constant that matches fieldId, throwing an exception
19069
       * if it is not found.
19070
       */
19071
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19072
        _Fields fields = findByThriftId(fieldId);
19073
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19074
        return fields;
19075
      }
19076
 
19077
      /**
19078
       * Find the _Fields constant that matches name, or null if its not found.
19079
       */
19080
      public static _Fields findByName(String name) {
19081
        return byName.get(name);
19082
      }
19083
 
19084
      private final short _thriftId;
19085
      private final String _fieldName;
19086
 
19087
      _Fields(short thriftId, String fieldName) {
19088
        _thriftId = thriftId;
19089
        _fieldName = fieldName;
19090
      }
19091
 
19092
      public short getThriftFieldId() {
19093
        return _thriftId;
19094
      }
19095
 
19096
      public String getFieldName() {
19097
        return _fieldName;
19098
      }
19099
    }
19100
 
19101
    // isset id assignments
19102
    private static final int __ADDRESSID_ISSET_ID = 0;
19103
    private BitSet __isset_bit_vector = new BitSet(1);
19104
 
3430 rajveer 19105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1893 vikas 19106
    static {
3430 rajveer 19107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19108
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19109
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19110
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19111
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressById_args.class, metaDataMap);
1893 vikas 19112
    }
19113
 
19114
    public getAddressById_args() {
19115
    }
19116
 
19117
    public getAddressById_args(
19118
      long addressId)
19119
    {
19120
      this();
19121
      this.addressId = addressId;
19122
      setAddressIdIsSet(true);
19123
    }
19124
 
19125
    /**
19126
     * Performs a deep copy on <i>other</i>.
19127
     */
19128
    public getAddressById_args(getAddressById_args other) {
19129
      __isset_bit_vector.clear();
19130
      __isset_bit_vector.or(other.__isset_bit_vector);
19131
      this.addressId = other.addressId;
19132
    }
19133
 
19134
    public getAddressById_args deepCopy() {
19135
      return new getAddressById_args(this);
19136
    }
19137
 
3430 rajveer 19138
    @Override
19139
    public void clear() {
19140
      setAddressIdIsSet(false);
19141
      this.addressId = 0;
1893 vikas 19142
    }
19143
 
19144
    public long getAddressId() {
19145
      return this.addressId;
19146
    }
19147
 
3430 rajveer 19148
    public void setAddressId(long addressId) {
1893 vikas 19149
      this.addressId = addressId;
19150
      setAddressIdIsSet(true);
19151
    }
19152
 
19153
    public void unsetAddressId() {
19154
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
19155
    }
19156
 
3430 rajveer 19157
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
1893 vikas 19158
    public boolean isSetAddressId() {
19159
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
19160
    }
19161
 
19162
    public void setAddressIdIsSet(boolean value) {
19163
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
19164
    }
19165
 
19166
    public void setFieldValue(_Fields field, Object value) {
19167
      switch (field) {
19168
      case ADDRESS_ID:
19169
        if (value == null) {
19170
          unsetAddressId();
19171
        } else {
19172
          setAddressId((Long)value);
19173
        }
19174
        break;
19175
 
19176
      }
19177
    }
19178
 
19179
    public Object getFieldValue(_Fields field) {
19180
      switch (field) {
19181
      case ADDRESS_ID:
3430 rajveer 19182
        return Long.valueOf(getAddressId());
1893 vikas 19183
 
19184
      }
19185
      throw new IllegalStateException();
19186
    }
19187
 
3430 rajveer 19188
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19189
    public boolean isSet(_Fields field) {
19190
      if (field == null) {
19191
        throw new IllegalArgumentException();
19192
      }
1893 vikas 19193
 
19194
      switch (field) {
19195
      case ADDRESS_ID:
19196
        return isSetAddressId();
19197
      }
19198
      throw new IllegalStateException();
19199
    }
19200
 
19201
    @Override
19202
    public boolean equals(Object that) {
19203
      if (that == null)
19204
        return false;
19205
      if (that instanceof getAddressById_args)
19206
        return this.equals((getAddressById_args)that);
19207
      return false;
19208
    }
19209
 
19210
    public boolean equals(getAddressById_args that) {
19211
      if (that == null)
19212
        return false;
19213
 
19214
      boolean this_present_addressId = true;
19215
      boolean that_present_addressId = true;
19216
      if (this_present_addressId || that_present_addressId) {
19217
        if (!(this_present_addressId && that_present_addressId))
19218
          return false;
19219
        if (this.addressId != that.addressId)
19220
          return false;
19221
      }
19222
 
19223
      return true;
19224
    }
19225
 
19226
    @Override
19227
    public int hashCode() {
19228
      return 0;
19229
    }
19230
 
19231
    public int compareTo(getAddressById_args other) {
19232
      if (!getClass().equals(other.getClass())) {
19233
        return getClass().getName().compareTo(other.getClass().getName());
19234
      }
19235
 
19236
      int lastComparison = 0;
19237
      getAddressById_args typedOther = (getAddressById_args)other;
19238
 
3430 rajveer 19239
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
1893 vikas 19240
      if (lastComparison != 0) {
19241
        return lastComparison;
19242
      }
3430 rajveer 19243
      if (isSetAddressId()) {
19244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
19245
        if (lastComparison != 0) {
19246
          return lastComparison;
19247
        }
1893 vikas 19248
      }
19249
      return 0;
19250
    }
19251
 
3430 rajveer 19252
    public _Fields fieldForId(int fieldId) {
19253
      return _Fields.findByThriftId(fieldId);
19254
    }
19255
 
19256
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19257
      org.apache.thrift.protocol.TField field;
1893 vikas 19258
      iprot.readStructBegin();
19259
      while (true)
19260
      {
19261
        field = iprot.readFieldBegin();
3430 rajveer 19262
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1893 vikas 19263
          break;
19264
        }
3430 rajveer 19265
        switch (field.id) {
19266
          case 1: // ADDRESS_ID
19267
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19268
              this.addressId = iprot.readI64();
19269
              setAddressIdIsSet(true);
19270
            } else { 
19271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19272
            }
19273
            break;
19274
          default:
19275
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1893 vikas 19276
        }
3430 rajveer 19277
        iprot.readFieldEnd();
1893 vikas 19278
      }
19279
      iprot.readStructEnd();
19280
      validate();
19281
    }
19282
 
3430 rajveer 19283
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1893 vikas 19284
      validate();
19285
 
19286
      oprot.writeStructBegin(STRUCT_DESC);
19287
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
19288
      oprot.writeI64(this.addressId);
19289
      oprot.writeFieldEnd();
19290
      oprot.writeFieldStop();
19291
      oprot.writeStructEnd();
19292
    }
19293
 
19294
    @Override
19295
    public String toString() {
19296
      StringBuilder sb = new StringBuilder("getAddressById_args(");
19297
      boolean first = true;
19298
 
19299
      sb.append("addressId:");
19300
      sb.append(this.addressId);
19301
      first = false;
19302
      sb.append(")");
19303
      return sb.toString();
19304
    }
19305
 
3430 rajveer 19306
    public void validate() throws org.apache.thrift.TException {
1893 vikas 19307
      // check for required fields
19308
    }
19309
 
3430 rajveer 19310
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19311
      try {
19312
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19313
      } catch (org.apache.thrift.TException te) {
19314
        throw new java.io.IOException(te);
19315
      }
19316
    }
19317
 
19318
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19319
      try {
19320
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19321
        __isset_bit_vector = new BitSet(1);
19322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19323
      } catch (org.apache.thrift.TException te) {
19324
        throw new java.io.IOException(te);
19325
      }
19326
    }
19327
 
1893 vikas 19328
  }
19329
 
3430 rajveer 19330
  public static class getAddressById_result implements org.apache.thrift.TBase<getAddressById_result, getAddressById_result._Fields>, java.io.Serializable, Cloneable   {
19331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressById_result");
1893 vikas 19332
 
3430 rajveer 19333
    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);
19334
    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 19335
 
3430 rajveer 19336
    private Address success; // required
19337
    private UserContextException ucx; // required
1893 vikas 19338
 
19339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1893 vikas 19341
      SUCCESS((short)0, "success"),
19342
      UCX((short)1, "ucx");
19343
 
19344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19345
 
19346
      static {
19347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19348
          byName.put(field.getFieldName(), field);
19349
        }
19350
      }
19351
 
19352
      /**
19353
       * Find the _Fields constant that matches fieldId, or null if its not found.
19354
       */
19355
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19356
        switch(fieldId) {
19357
          case 0: // SUCCESS
19358
            return SUCCESS;
19359
          case 1: // UCX
19360
            return UCX;
19361
          default:
19362
            return null;
19363
        }
1893 vikas 19364
      }
19365
 
19366
      /**
19367
       * Find the _Fields constant that matches fieldId, throwing an exception
19368
       * if it is not found.
19369
       */
19370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19371
        _Fields fields = findByThriftId(fieldId);
19372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19373
        return fields;
19374
      }
19375
 
19376
      /**
19377
       * Find the _Fields constant that matches name, or null if its not found.
19378
       */
19379
      public static _Fields findByName(String name) {
19380
        return byName.get(name);
19381
      }
19382
 
19383
      private final short _thriftId;
19384
      private final String _fieldName;
19385
 
19386
      _Fields(short thriftId, String fieldName) {
19387
        _thriftId = thriftId;
19388
        _fieldName = fieldName;
19389
      }
19390
 
19391
      public short getThriftFieldId() {
19392
        return _thriftId;
19393
      }
19394
 
19395
      public String getFieldName() {
19396
        return _fieldName;
19397
      }
19398
    }
19399
 
19400
    // isset id assignments
19401
 
3430 rajveer 19402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1893 vikas 19403
    static {
3430 rajveer 19404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19405
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19406
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
19407
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19409
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19410
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressById_result.class, metaDataMap);
1893 vikas 19411
    }
19412
 
19413
    public getAddressById_result() {
19414
    }
19415
 
19416
    public getAddressById_result(
19417
      Address success,
19418
      UserContextException ucx)
19419
    {
19420
      this();
19421
      this.success = success;
19422
      this.ucx = ucx;
19423
    }
19424
 
19425
    /**
19426
     * Performs a deep copy on <i>other</i>.
19427
     */
19428
    public getAddressById_result(getAddressById_result other) {
19429
      if (other.isSetSuccess()) {
19430
        this.success = new Address(other.success);
19431
      }
19432
      if (other.isSetUcx()) {
19433
        this.ucx = new UserContextException(other.ucx);
19434
      }
19435
    }
19436
 
19437
    public getAddressById_result deepCopy() {
19438
      return new getAddressById_result(this);
19439
    }
19440
 
3430 rajveer 19441
    @Override
19442
    public void clear() {
19443
      this.success = null;
19444
      this.ucx = null;
1893 vikas 19445
    }
19446
 
19447
    public Address getSuccess() {
19448
      return this.success;
19449
    }
19450
 
3430 rajveer 19451
    public void setSuccess(Address success) {
1893 vikas 19452
      this.success = success;
19453
    }
19454
 
19455
    public void unsetSuccess() {
19456
      this.success = null;
19457
    }
19458
 
3430 rajveer 19459
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1893 vikas 19460
    public boolean isSetSuccess() {
19461
      return this.success != null;
19462
    }
19463
 
19464
    public void setSuccessIsSet(boolean value) {
19465
      if (!value) {
19466
        this.success = null;
19467
      }
19468
    }
19469
 
19470
    public UserContextException getUcx() {
19471
      return this.ucx;
19472
    }
19473
 
3430 rajveer 19474
    public void setUcx(UserContextException ucx) {
1893 vikas 19475
      this.ucx = ucx;
19476
    }
19477
 
19478
    public void unsetUcx() {
19479
      this.ucx = null;
19480
    }
19481
 
3430 rajveer 19482
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1893 vikas 19483
    public boolean isSetUcx() {
19484
      return this.ucx != null;
19485
    }
19486
 
19487
    public void setUcxIsSet(boolean value) {
19488
      if (!value) {
19489
        this.ucx = null;
19490
      }
19491
    }
19492
 
19493
    public void setFieldValue(_Fields field, Object value) {
19494
      switch (field) {
19495
      case SUCCESS:
19496
        if (value == null) {
19497
          unsetSuccess();
19498
        } else {
19499
          setSuccess((Address)value);
19500
        }
19501
        break;
19502
 
19503
      case UCX:
19504
        if (value == null) {
19505
          unsetUcx();
19506
        } else {
19507
          setUcx((UserContextException)value);
19508
        }
19509
        break;
19510
 
19511
      }
19512
    }
19513
 
19514
    public Object getFieldValue(_Fields field) {
19515
      switch (field) {
19516
      case SUCCESS:
19517
        return getSuccess();
19518
 
19519
      case UCX:
19520
        return getUcx();
19521
 
19522
      }
19523
      throw new IllegalStateException();
19524
    }
19525
 
3430 rajveer 19526
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19527
    public boolean isSet(_Fields field) {
19528
      if (field == null) {
19529
        throw new IllegalArgumentException();
19530
      }
1893 vikas 19531
 
19532
      switch (field) {
19533
      case SUCCESS:
19534
        return isSetSuccess();
19535
      case UCX:
19536
        return isSetUcx();
19537
      }
19538
      throw new IllegalStateException();
19539
    }
19540
 
19541
    @Override
19542
    public boolean equals(Object that) {
19543
      if (that == null)
19544
        return false;
19545
      if (that instanceof getAddressById_result)
19546
        return this.equals((getAddressById_result)that);
19547
      return false;
19548
    }
19549
 
19550
    public boolean equals(getAddressById_result that) {
19551
      if (that == null)
19552
        return false;
19553
 
19554
      boolean this_present_success = true && this.isSetSuccess();
19555
      boolean that_present_success = true && that.isSetSuccess();
19556
      if (this_present_success || that_present_success) {
19557
        if (!(this_present_success && that_present_success))
19558
          return false;
19559
        if (!this.success.equals(that.success))
19560
          return false;
19561
      }
19562
 
19563
      boolean this_present_ucx = true && this.isSetUcx();
19564
      boolean that_present_ucx = true && that.isSetUcx();
19565
      if (this_present_ucx || that_present_ucx) {
19566
        if (!(this_present_ucx && that_present_ucx))
19567
          return false;
19568
        if (!this.ucx.equals(that.ucx))
19569
          return false;
19570
      }
19571
 
19572
      return true;
19573
    }
19574
 
19575
    @Override
19576
    public int hashCode() {
19577
      return 0;
19578
    }
19579
 
19580
    public int compareTo(getAddressById_result other) {
19581
      if (!getClass().equals(other.getClass())) {
19582
        return getClass().getName().compareTo(other.getClass().getName());
19583
      }
19584
 
19585
      int lastComparison = 0;
19586
      getAddressById_result typedOther = (getAddressById_result)other;
19587
 
3430 rajveer 19588
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1893 vikas 19589
      if (lastComparison != 0) {
19590
        return lastComparison;
19591
      }
3430 rajveer 19592
      if (isSetSuccess()) {
19593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19594
        if (lastComparison != 0) {
19595
          return lastComparison;
19596
        }
1893 vikas 19597
      }
3430 rajveer 19598
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1893 vikas 19599
      if (lastComparison != 0) {
19600
        return lastComparison;
19601
      }
3430 rajveer 19602
      if (isSetUcx()) {
19603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
19604
        if (lastComparison != 0) {
19605
          return lastComparison;
19606
        }
1893 vikas 19607
      }
19608
      return 0;
19609
    }
19610
 
3430 rajveer 19611
    public _Fields fieldForId(int fieldId) {
19612
      return _Fields.findByThriftId(fieldId);
19613
    }
19614
 
19615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19616
      org.apache.thrift.protocol.TField field;
1893 vikas 19617
      iprot.readStructBegin();
19618
      while (true)
19619
      {
19620
        field = iprot.readFieldBegin();
3430 rajveer 19621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1893 vikas 19622
          break;
19623
        }
3430 rajveer 19624
        switch (field.id) {
19625
          case 0: // SUCCESS
19626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19627
              this.success = new Address();
19628
              this.success.read(iprot);
19629
            } else { 
19630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19631
            }
19632
            break;
19633
          case 1: // UCX
19634
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19635
              this.ucx = new UserContextException();
19636
              this.ucx.read(iprot);
19637
            } else { 
19638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19639
            }
19640
            break;
19641
          default:
19642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1893 vikas 19643
        }
3430 rajveer 19644
        iprot.readFieldEnd();
1893 vikas 19645
      }
19646
      iprot.readStructEnd();
19647
      validate();
19648
    }
19649
 
3430 rajveer 19650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1893 vikas 19651
      oprot.writeStructBegin(STRUCT_DESC);
19652
 
19653
      if (this.isSetSuccess()) {
19654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19655
        this.success.write(oprot);
19656
        oprot.writeFieldEnd();
19657
      } else if (this.isSetUcx()) {
19658
        oprot.writeFieldBegin(UCX_FIELD_DESC);
19659
        this.ucx.write(oprot);
19660
        oprot.writeFieldEnd();
19661
      }
19662
      oprot.writeFieldStop();
19663
      oprot.writeStructEnd();
19664
    }
19665
 
19666
    @Override
19667
    public String toString() {
19668
      StringBuilder sb = new StringBuilder("getAddressById_result(");
19669
      boolean first = true;
19670
 
19671
      sb.append("success:");
19672
      if (this.success == null) {
19673
        sb.append("null");
19674
      } else {
19675
        sb.append(this.success);
19676
      }
19677
      first = false;
19678
      if (!first) sb.append(", ");
19679
      sb.append("ucx:");
19680
      if (this.ucx == null) {
19681
        sb.append("null");
19682
      } else {
19683
        sb.append(this.ucx);
19684
      }
19685
      first = false;
19686
      sb.append(")");
19687
      return sb.toString();
19688
    }
19689
 
3430 rajveer 19690
    public void validate() throws org.apache.thrift.TException {
1893 vikas 19691
      // check for required fields
19692
    }
19693
 
3430 rajveer 19694
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19695
      try {
19696
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19697
      } catch (org.apache.thrift.TException te) {
19698
        throw new java.io.IOException(te);
19699
      }
19700
    }
19701
 
19702
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19703
      try {
19704
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19705
      } catch (org.apache.thrift.TException te) {
19706
        throw new java.io.IOException(te);
19707
      }
19708
    }
19709
 
1893 vikas 19710
  }
19711
 
3430 rajveer 19712
  public static class getDefaultAddressId_args implements org.apache.thrift.TBase<getDefaultAddressId_args, getDefaultAddressId_args._Fields>, java.io.Serializable, Cloneable   {
19713
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultAddressId_args");
593 rajveer 19714
 
3430 rajveer 19715
    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 19716
 
3430 rajveer 19717
    private long userId; // required
593 rajveer 19718
 
19719
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19720
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 19721
      USER_ID((short)1, "userId");
19722
 
19723
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19724
 
19725
      static {
19726
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19727
          byName.put(field.getFieldName(), field);
19728
        }
19729
      }
19730
 
19731
      /**
19732
       * Find the _Fields constant that matches fieldId, or null if its not found.
19733
       */
19734
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19735
        switch(fieldId) {
19736
          case 1: // USER_ID
19737
            return USER_ID;
19738
          default:
19739
            return null;
19740
        }
593 rajveer 19741
      }
19742
 
19743
      /**
19744
       * Find the _Fields constant that matches fieldId, throwing an exception
19745
       * if it is not found.
19746
       */
19747
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19748
        _Fields fields = findByThriftId(fieldId);
19749
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19750
        return fields;
19751
      }
19752
 
19753
      /**
19754
       * Find the _Fields constant that matches name, or null if its not found.
19755
       */
19756
      public static _Fields findByName(String name) {
19757
        return byName.get(name);
19758
      }
19759
 
19760
      private final short _thriftId;
19761
      private final String _fieldName;
19762
 
19763
      _Fields(short thriftId, String fieldName) {
19764
        _thriftId = thriftId;
19765
        _fieldName = fieldName;
19766
      }
19767
 
19768
      public short getThriftFieldId() {
19769
        return _thriftId;
19770
      }
19771
 
19772
      public String getFieldName() {
19773
        return _fieldName;
19774
      }
19775
    }
19776
 
19777
    // isset id assignments
19778
    private static final int __USERID_ISSET_ID = 0;
19779
    private BitSet __isset_bit_vector = new BitSet(1);
19780
 
3430 rajveer 19781
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 19782
    static {
3430 rajveer 19783
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19784
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultAddressId_args.class, metaDataMap);
593 rajveer 19788
    }
19789
 
19790
    public getDefaultAddressId_args() {
19791
    }
19792
 
19793
    public getDefaultAddressId_args(
19794
      long userId)
19795
    {
19796
      this();
19797
      this.userId = userId;
19798
      setUserIdIsSet(true);
19799
    }
19800
 
19801
    /**
19802
     * Performs a deep copy on <i>other</i>.
19803
     */
19804
    public getDefaultAddressId_args(getDefaultAddressId_args other) {
19805
      __isset_bit_vector.clear();
19806
      __isset_bit_vector.or(other.__isset_bit_vector);
19807
      this.userId = other.userId;
19808
    }
19809
 
19810
    public getDefaultAddressId_args deepCopy() {
19811
      return new getDefaultAddressId_args(this);
19812
    }
19813
 
3430 rajveer 19814
    @Override
19815
    public void clear() {
19816
      setUserIdIsSet(false);
19817
      this.userId = 0;
593 rajveer 19818
    }
19819
 
19820
    public long getUserId() {
19821
      return this.userId;
19822
    }
19823
 
3430 rajveer 19824
    public void setUserId(long userId) {
593 rajveer 19825
      this.userId = userId;
19826
      setUserIdIsSet(true);
19827
    }
19828
 
19829
    public void unsetUserId() {
19830
      __isset_bit_vector.clear(__USERID_ISSET_ID);
19831
    }
19832
 
3430 rajveer 19833
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
593 rajveer 19834
    public boolean isSetUserId() {
19835
      return __isset_bit_vector.get(__USERID_ISSET_ID);
19836
    }
19837
 
19838
    public void setUserIdIsSet(boolean value) {
19839
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
19840
    }
19841
 
19842
    public void setFieldValue(_Fields field, Object value) {
19843
      switch (field) {
19844
      case USER_ID:
19845
        if (value == null) {
19846
          unsetUserId();
19847
        } else {
19848
          setUserId((Long)value);
19849
        }
19850
        break;
19851
 
19852
      }
19853
    }
19854
 
19855
    public Object getFieldValue(_Fields field) {
19856
      switch (field) {
19857
      case USER_ID:
3430 rajveer 19858
        return Long.valueOf(getUserId());
593 rajveer 19859
 
19860
      }
19861
      throw new IllegalStateException();
19862
    }
19863
 
3430 rajveer 19864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19865
    public boolean isSet(_Fields field) {
19866
      if (field == null) {
19867
        throw new IllegalArgumentException();
19868
      }
593 rajveer 19869
 
19870
      switch (field) {
19871
      case USER_ID:
19872
        return isSetUserId();
19873
      }
19874
      throw new IllegalStateException();
19875
    }
19876
 
19877
    @Override
19878
    public boolean equals(Object that) {
19879
      if (that == null)
19880
        return false;
19881
      if (that instanceof getDefaultAddressId_args)
19882
        return this.equals((getDefaultAddressId_args)that);
19883
      return false;
19884
    }
19885
 
19886
    public boolean equals(getDefaultAddressId_args that) {
19887
      if (that == null)
19888
        return false;
19889
 
19890
      boolean this_present_userId = true;
19891
      boolean that_present_userId = true;
19892
      if (this_present_userId || that_present_userId) {
19893
        if (!(this_present_userId && that_present_userId))
19894
          return false;
19895
        if (this.userId != that.userId)
19896
          return false;
19897
      }
19898
 
19899
      return true;
19900
    }
19901
 
19902
    @Override
19903
    public int hashCode() {
19904
      return 0;
19905
    }
19906
 
19907
    public int compareTo(getDefaultAddressId_args other) {
19908
      if (!getClass().equals(other.getClass())) {
19909
        return getClass().getName().compareTo(other.getClass().getName());
19910
      }
19911
 
19912
      int lastComparison = 0;
19913
      getDefaultAddressId_args typedOther = (getDefaultAddressId_args)other;
19914
 
3430 rajveer 19915
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
593 rajveer 19916
      if (lastComparison != 0) {
19917
        return lastComparison;
19918
      }
3430 rajveer 19919
      if (isSetUserId()) {
19920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
19921
        if (lastComparison != 0) {
19922
          return lastComparison;
19923
        }
593 rajveer 19924
      }
19925
      return 0;
19926
    }
19927
 
3430 rajveer 19928
    public _Fields fieldForId(int fieldId) {
19929
      return _Fields.findByThriftId(fieldId);
19930
    }
19931
 
19932
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19933
      org.apache.thrift.protocol.TField field;
593 rajveer 19934
      iprot.readStructBegin();
19935
      while (true)
19936
      {
19937
        field = iprot.readFieldBegin();
3430 rajveer 19938
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 19939
          break;
19940
        }
3430 rajveer 19941
        switch (field.id) {
19942
          case 1: // USER_ID
19943
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19944
              this.userId = iprot.readI64();
19945
              setUserIdIsSet(true);
19946
            } else { 
19947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19948
            }
19949
            break;
19950
          default:
19951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 19952
        }
3430 rajveer 19953
        iprot.readFieldEnd();
593 rajveer 19954
      }
19955
      iprot.readStructEnd();
19956
      validate();
19957
    }
19958
 
3430 rajveer 19959
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 19960
      validate();
19961
 
19962
      oprot.writeStructBegin(STRUCT_DESC);
19963
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
19964
      oprot.writeI64(this.userId);
19965
      oprot.writeFieldEnd();
19966
      oprot.writeFieldStop();
19967
      oprot.writeStructEnd();
19968
    }
19969
 
19970
    @Override
19971
    public String toString() {
19972
      StringBuilder sb = new StringBuilder("getDefaultAddressId_args(");
19973
      boolean first = true;
19974
 
19975
      sb.append("userId:");
19976
      sb.append(this.userId);
19977
      first = false;
19978
      sb.append(")");
19979
      return sb.toString();
19980
    }
19981
 
3430 rajveer 19982
    public void validate() throws org.apache.thrift.TException {
593 rajveer 19983
      // check for required fields
19984
    }
19985
 
3430 rajveer 19986
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19987
      try {
19988
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19989
      } catch (org.apache.thrift.TException te) {
19990
        throw new java.io.IOException(te);
19991
      }
19992
    }
19993
 
19994
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19995
      try {
19996
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19997
        __isset_bit_vector = new BitSet(1);
19998
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19999
      } catch (org.apache.thrift.TException te) {
20000
        throw new java.io.IOException(te);
20001
      }
20002
    }
20003
 
593 rajveer 20004
  }
20005
 
3430 rajveer 20006
  public static class getDefaultAddressId_result implements org.apache.thrift.TBase<getDefaultAddressId_result, getDefaultAddressId_result._Fields>, java.io.Serializable, Cloneable   {
20007
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultAddressId_result");
593 rajveer 20008
 
3430 rajveer 20009
    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);
20010
    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 20011
 
3430 rajveer 20012
    private long success; // required
20013
    private UserContextException ucx; // required
593 rajveer 20014
 
20015
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20016
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 20017
      SUCCESS((short)0, "success"),
20018
      UCX((short)1, "ucx");
20019
 
20020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20021
 
20022
      static {
20023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20024
          byName.put(field.getFieldName(), field);
20025
        }
20026
      }
20027
 
20028
      /**
20029
       * Find the _Fields constant that matches fieldId, or null if its not found.
20030
       */
20031
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20032
        switch(fieldId) {
20033
          case 0: // SUCCESS
20034
            return SUCCESS;
20035
          case 1: // UCX
20036
            return UCX;
20037
          default:
20038
            return null;
20039
        }
593 rajveer 20040
      }
20041
 
20042
      /**
20043
       * Find the _Fields constant that matches fieldId, throwing an exception
20044
       * if it is not found.
20045
       */
20046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20047
        _Fields fields = findByThriftId(fieldId);
20048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20049
        return fields;
20050
      }
20051
 
20052
      /**
20053
       * Find the _Fields constant that matches name, or null if its not found.
20054
       */
20055
      public static _Fields findByName(String name) {
20056
        return byName.get(name);
20057
      }
20058
 
20059
      private final short _thriftId;
20060
      private final String _fieldName;
20061
 
20062
      _Fields(short thriftId, String fieldName) {
20063
        _thriftId = thriftId;
20064
        _fieldName = fieldName;
20065
      }
20066
 
20067
      public short getThriftFieldId() {
20068
        return _thriftId;
20069
      }
20070
 
20071
      public String getFieldName() {
20072
        return _fieldName;
20073
      }
20074
    }
20075
 
20076
    // isset id assignments
20077
    private static final int __SUCCESS_ISSET_ID = 0;
20078
    private BitSet __isset_bit_vector = new BitSet(1);
20079
 
3430 rajveer 20080
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 20081
    static {
3430 rajveer 20082
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20083
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20084
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20085
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultAddressId_result.class, metaDataMap);
593 rajveer 20089
    }
20090
 
20091
    public getDefaultAddressId_result() {
20092
    }
20093
 
20094
    public getDefaultAddressId_result(
20095
      long success,
20096
      UserContextException ucx)
20097
    {
20098
      this();
20099
      this.success = success;
20100
      setSuccessIsSet(true);
20101
      this.ucx = ucx;
20102
    }
20103
 
20104
    /**
20105
     * Performs a deep copy on <i>other</i>.
20106
     */
20107
    public getDefaultAddressId_result(getDefaultAddressId_result other) {
20108
      __isset_bit_vector.clear();
20109
      __isset_bit_vector.or(other.__isset_bit_vector);
20110
      this.success = other.success;
20111
      if (other.isSetUcx()) {
20112
        this.ucx = new UserContextException(other.ucx);
20113
      }
20114
    }
20115
 
20116
    public getDefaultAddressId_result deepCopy() {
20117
      return new getDefaultAddressId_result(this);
20118
    }
20119
 
3430 rajveer 20120
    @Override
20121
    public void clear() {
20122
      setSuccessIsSet(false);
20123
      this.success = 0;
20124
      this.ucx = null;
593 rajveer 20125
    }
20126
 
20127
    public long getSuccess() {
20128
      return this.success;
20129
    }
20130
 
3430 rajveer 20131
    public void setSuccess(long success) {
593 rajveer 20132
      this.success = success;
20133
      setSuccessIsSet(true);
20134
    }
20135
 
20136
    public void unsetSuccess() {
20137
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
20138
    }
20139
 
3430 rajveer 20140
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
593 rajveer 20141
    public boolean isSetSuccess() {
20142
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
20143
    }
20144
 
20145
    public void setSuccessIsSet(boolean value) {
20146
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
20147
    }
20148
 
20149
    public UserContextException getUcx() {
20150
      return this.ucx;
20151
    }
20152
 
3430 rajveer 20153
    public void setUcx(UserContextException ucx) {
593 rajveer 20154
      this.ucx = ucx;
20155
    }
20156
 
20157
    public void unsetUcx() {
20158
      this.ucx = null;
20159
    }
20160
 
3430 rajveer 20161
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
593 rajveer 20162
    public boolean isSetUcx() {
20163
      return this.ucx != null;
20164
    }
20165
 
20166
    public void setUcxIsSet(boolean value) {
20167
      if (!value) {
20168
        this.ucx = null;
20169
      }
20170
    }
20171
 
20172
    public void setFieldValue(_Fields field, Object value) {
20173
      switch (field) {
20174
      case SUCCESS:
20175
        if (value == null) {
20176
          unsetSuccess();
20177
        } else {
20178
          setSuccess((Long)value);
20179
        }
20180
        break;
20181
 
20182
      case UCX:
20183
        if (value == null) {
20184
          unsetUcx();
20185
        } else {
20186
          setUcx((UserContextException)value);
20187
        }
20188
        break;
20189
 
20190
      }
20191
    }
20192
 
20193
    public Object getFieldValue(_Fields field) {
20194
      switch (field) {
20195
      case SUCCESS:
3430 rajveer 20196
        return Long.valueOf(getSuccess());
593 rajveer 20197
 
20198
      case UCX:
20199
        return getUcx();
20200
 
20201
      }
20202
      throw new IllegalStateException();
20203
    }
20204
 
3430 rajveer 20205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20206
    public boolean isSet(_Fields field) {
20207
      if (field == null) {
20208
        throw new IllegalArgumentException();
20209
      }
593 rajveer 20210
 
20211
      switch (field) {
20212
      case SUCCESS:
20213
        return isSetSuccess();
20214
      case UCX:
20215
        return isSetUcx();
20216
      }
20217
      throw new IllegalStateException();
20218
    }
20219
 
20220
    @Override
20221
    public boolean equals(Object that) {
20222
      if (that == null)
20223
        return false;
20224
      if (that instanceof getDefaultAddressId_result)
20225
        return this.equals((getDefaultAddressId_result)that);
20226
      return false;
20227
    }
20228
 
20229
    public boolean equals(getDefaultAddressId_result that) {
20230
      if (that == null)
20231
        return false;
20232
 
20233
      boolean this_present_success = true;
20234
      boolean that_present_success = true;
20235
      if (this_present_success || that_present_success) {
20236
        if (!(this_present_success && that_present_success))
20237
          return false;
20238
        if (this.success != that.success)
20239
          return false;
20240
      }
20241
 
20242
      boolean this_present_ucx = true && this.isSetUcx();
20243
      boolean that_present_ucx = true && that.isSetUcx();
20244
      if (this_present_ucx || that_present_ucx) {
20245
        if (!(this_present_ucx && that_present_ucx))
20246
          return false;
20247
        if (!this.ucx.equals(that.ucx))
20248
          return false;
20249
      }
20250
 
20251
      return true;
20252
    }
20253
 
20254
    @Override
20255
    public int hashCode() {
20256
      return 0;
20257
    }
20258
 
20259
    public int compareTo(getDefaultAddressId_result other) {
20260
      if (!getClass().equals(other.getClass())) {
20261
        return getClass().getName().compareTo(other.getClass().getName());
20262
      }
20263
 
20264
      int lastComparison = 0;
20265
      getDefaultAddressId_result typedOther = (getDefaultAddressId_result)other;
20266
 
3430 rajveer 20267
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
593 rajveer 20268
      if (lastComparison != 0) {
20269
        return lastComparison;
20270
      }
3430 rajveer 20271
      if (isSetSuccess()) {
20272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20273
        if (lastComparison != 0) {
20274
          return lastComparison;
20275
        }
593 rajveer 20276
      }
3430 rajveer 20277
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
593 rajveer 20278
      if (lastComparison != 0) {
20279
        return lastComparison;
20280
      }
3430 rajveer 20281
      if (isSetUcx()) {
20282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
20283
        if (lastComparison != 0) {
20284
          return lastComparison;
20285
        }
593 rajveer 20286
      }
20287
      return 0;
20288
    }
20289
 
3430 rajveer 20290
    public _Fields fieldForId(int fieldId) {
20291
      return _Fields.findByThriftId(fieldId);
20292
    }
20293
 
20294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20295
      org.apache.thrift.protocol.TField field;
593 rajveer 20296
      iprot.readStructBegin();
20297
      while (true)
20298
      {
20299
        field = iprot.readFieldBegin();
3430 rajveer 20300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 20301
          break;
20302
        }
3430 rajveer 20303
        switch (field.id) {
20304
          case 0: // SUCCESS
20305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20306
              this.success = iprot.readI64();
20307
              setSuccessIsSet(true);
20308
            } else { 
20309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20310
            }
20311
            break;
20312
          case 1: // UCX
20313
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20314
              this.ucx = new UserContextException();
20315
              this.ucx.read(iprot);
20316
            } else { 
20317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20318
            }
20319
            break;
20320
          default:
20321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 20322
        }
3430 rajveer 20323
        iprot.readFieldEnd();
593 rajveer 20324
      }
20325
      iprot.readStructEnd();
20326
      validate();
20327
    }
20328
 
3430 rajveer 20329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 20330
      oprot.writeStructBegin(STRUCT_DESC);
20331
 
20332
      if (this.isSetSuccess()) {
20333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20334
        oprot.writeI64(this.success);
20335
        oprot.writeFieldEnd();
20336
      } else if (this.isSetUcx()) {
20337
        oprot.writeFieldBegin(UCX_FIELD_DESC);
20338
        this.ucx.write(oprot);
20339
        oprot.writeFieldEnd();
20340
      }
20341
      oprot.writeFieldStop();
20342
      oprot.writeStructEnd();
20343
    }
20344
 
20345
    @Override
20346
    public String toString() {
20347
      StringBuilder sb = new StringBuilder("getDefaultAddressId_result(");
20348
      boolean first = true;
20349
 
20350
      sb.append("success:");
20351
      sb.append(this.success);
20352
      first = false;
20353
      if (!first) sb.append(", ");
20354
      sb.append("ucx:");
20355
      if (this.ucx == null) {
20356
        sb.append("null");
20357
      } else {
20358
        sb.append(this.ucx);
20359
      }
20360
      first = false;
20361
      sb.append(")");
20362
      return sb.toString();
20363
    }
20364
 
3430 rajveer 20365
    public void validate() throws org.apache.thrift.TException {
593 rajveer 20366
      // check for required fields
20367
    }
20368
 
3430 rajveer 20369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20370
      try {
20371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20372
      } catch (org.apache.thrift.TException te) {
20373
        throw new java.io.IOException(te);
20374
      }
20375
    }
20376
 
20377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20378
      try {
20379
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20380
      } catch (org.apache.thrift.TException te) {
20381
        throw new java.io.IOException(te);
20382
      }
20383
    }
20384
 
593 rajveer 20385
  }
20386
 
3430 rajveer 20387
  public static class getDefaultPincode_args implements org.apache.thrift.TBase<getDefaultPincode_args, getDefaultPincode_args._Fields>, java.io.Serializable, Cloneable   {
20388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultPincode_args");
784 rajveer 20389
 
3430 rajveer 20390
    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 20391
 
3430 rajveer 20392
    private long userId; // required
784 rajveer 20393
 
20394
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20395
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
784 rajveer 20396
      USER_ID((short)1, "userId");
20397
 
20398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20399
 
20400
      static {
20401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20402
          byName.put(field.getFieldName(), field);
20403
        }
20404
      }
20405
 
20406
      /**
20407
       * Find the _Fields constant that matches fieldId, or null if its not found.
20408
       */
20409
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20410
        switch(fieldId) {
20411
          case 1: // USER_ID
20412
            return USER_ID;
20413
          default:
20414
            return null;
20415
        }
784 rajveer 20416
      }
20417
 
20418
      /**
20419
       * Find the _Fields constant that matches fieldId, throwing an exception
20420
       * if it is not found.
20421
       */
20422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20423
        _Fields fields = findByThriftId(fieldId);
20424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20425
        return fields;
20426
      }
20427
 
20428
      /**
20429
       * Find the _Fields constant that matches name, or null if its not found.
20430
       */
20431
      public static _Fields findByName(String name) {
20432
        return byName.get(name);
20433
      }
20434
 
20435
      private final short _thriftId;
20436
      private final String _fieldName;
20437
 
20438
      _Fields(short thriftId, String fieldName) {
20439
        _thriftId = thriftId;
20440
        _fieldName = fieldName;
20441
      }
20442
 
20443
      public short getThriftFieldId() {
20444
        return _thriftId;
20445
      }
20446
 
20447
      public String getFieldName() {
20448
        return _fieldName;
20449
      }
20450
    }
20451
 
20452
    // isset id assignments
20453
    private static final int __USERID_ISSET_ID = 0;
20454
    private BitSet __isset_bit_vector = new BitSet(1);
20455
 
3430 rajveer 20456
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
784 rajveer 20457
    static {
3430 rajveer 20458
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20459
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20460
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20461
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20462
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultPincode_args.class, metaDataMap);
784 rajveer 20463
    }
20464
 
20465
    public getDefaultPincode_args() {
20466
    }
20467
 
20468
    public getDefaultPincode_args(
20469
      long userId)
20470
    {
20471
      this();
20472
      this.userId = userId;
20473
      setUserIdIsSet(true);
20474
    }
20475
 
20476
    /**
20477
     * Performs a deep copy on <i>other</i>.
20478
     */
20479
    public getDefaultPincode_args(getDefaultPincode_args other) {
20480
      __isset_bit_vector.clear();
20481
      __isset_bit_vector.or(other.__isset_bit_vector);
20482
      this.userId = other.userId;
20483
    }
20484
 
20485
    public getDefaultPincode_args deepCopy() {
20486
      return new getDefaultPincode_args(this);
20487
    }
20488
 
3430 rajveer 20489
    @Override
20490
    public void clear() {
20491
      setUserIdIsSet(false);
20492
      this.userId = 0;
784 rajveer 20493
    }
20494
 
20495
    public long getUserId() {
20496
      return this.userId;
20497
    }
20498
 
3430 rajveer 20499
    public void setUserId(long userId) {
784 rajveer 20500
      this.userId = userId;
20501
      setUserIdIsSet(true);
20502
    }
20503
 
20504
    public void unsetUserId() {
20505
      __isset_bit_vector.clear(__USERID_ISSET_ID);
20506
    }
20507
 
3430 rajveer 20508
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
784 rajveer 20509
    public boolean isSetUserId() {
20510
      return __isset_bit_vector.get(__USERID_ISSET_ID);
20511
    }
20512
 
20513
    public void setUserIdIsSet(boolean value) {
20514
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
20515
    }
20516
 
20517
    public void setFieldValue(_Fields field, Object value) {
20518
      switch (field) {
20519
      case USER_ID:
20520
        if (value == null) {
20521
          unsetUserId();
20522
        } else {
20523
          setUserId((Long)value);
20524
        }
20525
        break;
20526
 
20527
      }
20528
    }
20529
 
20530
    public Object getFieldValue(_Fields field) {
20531
      switch (field) {
20532
      case USER_ID:
3430 rajveer 20533
        return Long.valueOf(getUserId());
784 rajveer 20534
 
20535
      }
20536
      throw new IllegalStateException();
20537
    }
20538
 
3430 rajveer 20539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20540
    public boolean isSet(_Fields field) {
20541
      if (field == null) {
20542
        throw new IllegalArgumentException();
20543
      }
784 rajveer 20544
 
20545
      switch (field) {
20546
      case USER_ID:
20547
        return isSetUserId();
20548
      }
20549
      throw new IllegalStateException();
20550
    }
20551
 
20552
    @Override
20553
    public boolean equals(Object that) {
20554
      if (that == null)
20555
        return false;
20556
      if (that instanceof getDefaultPincode_args)
20557
        return this.equals((getDefaultPincode_args)that);
20558
      return false;
20559
    }
20560
 
20561
    public boolean equals(getDefaultPincode_args that) {
20562
      if (that == null)
20563
        return false;
20564
 
20565
      boolean this_present_userId = true;
20566
      boolean that_present_userId = true;
20567
      if (this_present_userId || that_present_userId) {
20568
        if (!(this_present_userId && that_present_userId))
20569
          return false;
20570
        if (this.userId != that.userId)
20571
          return false;
20572
      }
20573
 
20574
      return true;
20575
    }
20576
 
20577
    @Override
20578
    public int hashCode() {
20579
      return 0;
20580
    }
20581
 
20582
    public int compareTo(getDefaultPincode_args other) {
20583
      if (!getClass().equals(other.getClass())) {
20584
        return getClass().getName().compareTo(other.getClass().getName());
20585
      }
20586
 
20587
      int lastComparison = 0;
20588
      getDefaultPincode_args typedOther = (getDefaultPincode_args)other;
20589
 
3430 rajveer 20590
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
784 rajveer 20591
      if (lastComparison != 0) {
20592
        return lastComparison;
20593
      }
3430 rajveer 20594
      if (isSetUserId()) {
20595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
20596
        if (lastComparison != 0) {
20597
          return lastComparison;
20598
        }
784 rajveer 20599
      }
20600
      return 0;
20601
    }
20602
 
3430 rajveer 20603
    public _Fields fieldForId(int fieldId) {
20604
      return _Fields.findByThriftId(fieldId);
20605
    }
20606
 
20607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20608
      org.apache.thrift.protocol.TField field;
784 rajveer 20609
      iprot.readStructBegin();
20610
      while (true)
20611
      {
20612
        field = iprot.readFieldBegin();
3430 rajveer 20613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
784 rajveer 20614
          break;
20615
        }
3430 rajveer 20616
        switch (field.id) {
20617
          case 1: // USER_ID
20618
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20619
              this.userId = iprot.readI64();
20620
              setUserIdIsSet(true);
20621
            } else { 
20622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20623
            }
20624
            break;
20625
          default:
20626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
784 rajveer 20627
        }
3430 rajveer 20628
        iprot.readFieldEnd();
784 rajveer 20629
      }
20630
      iprot.readStructEnd();
20631
      validate();
20632
    }
20633
 
3430 rajveer 20634
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
784 rajveer 20635
      validate();
20636
 
20637
      oprot.writeStructBegin(STRUCT_DESC);
20638
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
20639
      oprot.writeI64(this.userId);
20640
      oprot.writeFieldEnd();
20641
      oprot.writeFieldStop();
20642
      oprot.writeStructEnd();
20643
    }
20644
 
20645
    @Override
20646
    public String toString() {
20647
      StringBuilder sb = new StringBuilder("getDefaultPincode_args(");
20648
      boolean first = true;
20649
 
20650
      sb.append("userId:");
20651
      sb.append(this.userId);
20652
      first = false;
20653
      sb.append(")");
20654
      return sb.toString();
20655
    }
20656
 
3430 rajveer 20657
    public void validate() throws org.apache.thrift.TException {
784 rajveer 20658
      // check for required fields
20659
    }
20660
 
3430 rajveer 20661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20662
      try {
20663
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20664
      } catch (org.apache.thrift.TException te) {
20665
        throw new java.io.IOException(te);
20666
      }
20667
    }
20668
 
20669
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20670
      try {
20671
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20672
        __isset_bit_vector = new BitSet(1);
20673
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20674
      } catch (org.apache.thrift.TException te) {
20675
        throw new java.io.IOException(te);
20676
      }
20677
    }
20678
 
784 rajveer 20679
  }
20680
 
3430 rajveer 20681
  public static class getDefaultPincode_result implements org.apache.thrift.TBase<getDefaultPincode_result, getDefaultPincode_result._Fields>, java.io.Serializable, Cloneable   {
20682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultPincode_result");
784 rajveer 20683
 
3430 rajveer 20684
    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);
20685
    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 20686
 
3430 rajveer 20687
    private String success; // required
20688
    private UserContextException ucx; // required
784 rajveer 20689
 
20690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20691
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
784 rajveer 20692
      SUCCESS((short)0, "success"),
20693
      UCX((short)1, "ucx");
20694
 
20695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20696
 
20697
      static {
20698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20699
          byName.put(field.getFieldName(), field);
20700
        }
20701
      }
20702
 
20703
      /**
20704
       * Find the _Fields constant that matches fieldId, or null if its not found.
20705
       */
20706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20707
        switch(fieldId) {
20708
          case 0: // SUCCESS
20709
            return SUCCESS;
20710
          case 1: // UCX
20711
            return UCX;
20712
          default:
20713
            return null;
20714
        }
784 rajveer 20715
      }
20716
 
20717
      /**
20718
       * Find the _Fields constant that matches fieldId, throwing an exception
20719
       * if it is not found.
20720
       */
20721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20722
        _Fields fields = findByThriftId(fieldId);
20723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20724
        return fields;
20725
      }
20726
 
20727
      /**
20728
       * Find the _Fields constant that matches name, or null if its not found.
20729
       */
20730
      public static _Fields findByName(String name) {
20731
        return byName.get(name);
20732
      }
20733
 
20734
      private final short _thriftId;
20735
      private final String _fieldName;
20736
 
20737
      _Fields(short thriftId, String fieldName) {
20738
        _thriftId = thriftId;
20739
        _fieldName = fieldName;
20740
      }
20741
 
20742
      public short getThriftFieldId() {
20743
        return _thriftId;
20744
      }
20745
 
20746
      public String getFieldName() {
20747
        return _fieldName;
20748
      }
20749
    }
20750
 
20751
    // isset id assignments
20752
 
3430 rajveer 20753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
784 rajveer 20754
    static {
3430 rajveer 20755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20756
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20757
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20758
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20760
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20761
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultPincode_result.class, metaDataMap);
784 rajveer 20762
    }
20763
 
20764
    public getDefaultPincode_result() {
20765
    }
20766
 
20767
    public getDefaultPincode_result(
20768
      String success,
20769
      UserContextException ucx)
20770
    {
20771
      this();
20772
      this.success = success;
20773
      this.ucx = ucx;
20774
    }
20775
 
20776
    /**
20777
     * Performs a deep copy on <i>other</i>.
20778
     */
20779
    public getDefaultPincode_result(getDefaultPincode_result other) {
20780
      if (other.isSetSuccess()) {
20781
        this.success = other.success;
20782
      }
20783
      if (other.isSetUcx()) {
20784
        this.ucx = new UserContextException(other.ucx);
20785
      }
20786
    }
20787
 
20788
    public getDefaultPincode_result deepCopy() {
20789
      return new getDefaultPincode_result(this);
20790
    }
20791
 
3430 rajveer 20792
    @Override
20793
    public void clear() {
20794
      this.success = null;
20795
      this.ucx = null;
784 rajveer 20796
    }
20797
 
20798
    public String getSuccess() {
20799
      return this.success;
20800
    }
20801
 
3430 rajveer 20802
    public void setSuccess(String success) {
784 rajveer 20803
      this.success = success;
20804
    }
20805
 
20806
    public void unsetSuccess() {
20807
      this.success = null;
20808
    }
20809
 
3430 rajveer 20810
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
784 rajveer 20811
    public boolean isSetSuccess() {
20812
      return this.success != null;
20813
    }
20814
 
20815
    public void setSuccessIsSet(boolean value) {
20816
      if (!value) {
20817
        this.success = null;
20818
      }
20819
    }
20820
 
20821
    public UserContextException getUcx() {
20822
      return this.ucx;
20823
    }
20824
 
3430 rajveer 20825
    public void setUcx(UserContextException ucx) {
784 rajveer 20826
      this.ucx = ucx;
20827
    }
20828
 
20829
    public void unsetUcx() {
20830
      this.ucx = null;
20831
    }
20832
 
3430 rajveer 20833
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
784 rajveer 20834
    public boolean isSetUcx() {
20835
      return this.ucx != null;
20836
    }
20837
 
20838
    public void setUcxIsSet(boolean value) {
20839
      if (!value) {
20840
        this.ucx = null;
20841
      }
20842
    }
20843
 
20844
    public void setFieldValue(_Fields field, Object value) {
20845
      switch (field) {
20846
      case SUCCESS:
20847
        if (value == null) {
20848
          unsetSuccess();
20849
        } else {
20850
          setSuccess((String)value);
20851
        }
20852
        break;
20853
 
20854
      case UCX:
20855
        if (value == null) {
20856
          unsetUcx();
20857
        } else {
20858
          setUcx((UserContextException)value);
20859
        }
20860
        break;
20861
 
20862
      }
20863
    }
20864
 
20865
    public Object getFieldValue(_Fields field) {
20866
      switch (field) {
20867
      case SUCCESS:
20868
        return getSuccess();
20869
 
20870
      case UCX:
20871
        return getUcx();
20872
 
20873
      }
20874
      throw new IllegalStateException();
20875
    }
20876
 
3430 rajveer 20877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20878
    public boolean isSet(_Fields field) {
20879
      if (field == null) {
20880
        throw new IllegalArgumentException();
20881
      }
784 rajveer 20882
 
20883
      switch (field) {
20884
      case SUCCESS:
20885
        return isSetSuccess();
20886
      case UCX:
20887
        return isSetUcx();
20888
      }
20889
      throw new IllegalStateException();
20890
    }
20891
 
20892
    @Override
20893
    public boolean equals(Object that) {
20894
      if (that == null)
20895
        return false;
20896
      if (that instanceof getDefaultPincode_result)
20897
        return this.equals((getDefaultPincode_result)that);
20898
      return false;
20899
    }
20900
 
20901
    public boolean equals(getDefaultPincode_result that) {
20902
      if (that == null)
20903
        return false;
20904
 
20905
      boolean this_present_success = true && this.isSetSuccess();
20906
      boolean that_present_success = true && that.isSetSuccess();
20907
      if (this_present_success || that_present_success) {
20908
        if (!(this_present_success && that_present_success))
20909
          return false;
20910
        if (!this.success.equals(that.success))
20911
          return false;
20912
      }
20913
 
20914
      boolean this_present_ucx = true && this.isSetUcx();
20915
      boolean that_present_ucx = true && that.isSetUcx();
20916
      if (this_present_ucx || that_present_ucx) {
20917
        if (!(this_present_ucx && that_present_ucx))
20918
          return false;
20919
        if (!this.ucx.equals(that.ucx))
20920
          return false;
20921
      }
20922
 
20923
      return true;
20924
    }
20925
 
20926
    @Override
20927
    public int hashCode() {
20928
      return 0;
20929
    }
20930
 
20931
    public int compareTo(getDefaultPincode_result other) {
20932
      if (!getClass().equals(other.getClass())) {
20933
        return getClass().getName().compareTo(other.getClass().getName());
20934
      }
20935
 
20936
      int lastComparison = 0;
20937
      getDefaultPincode_result typedOther = (getDefaultPincode_result)other;
20938
 
3430 rajveer 20939
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
784 rajveer 20940
      if (lastComparison != 0) {
20941
        return lastComparison;
20942
      }
3430 rajveer 20943
      if (isSetSuccess()) {
20944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20945
        if (lastComparison != 0) {
20946
          return lastComparison;
20947
        }
784 rajveer 20948
      }
3430 rajveer 20949
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
784 rajveer 20950
      if (lastComparison != 0) {
20951
        return lastComparison;
20952
      }
3430 rajveer 20953
      if (isSetUcx()) {
20954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
20955
        if (lastComparison != 0) {
20956
          return lastComparison;
20957
        }
784 rajveer 20958
      }
20959
      return 0;
20960
    }
20961
 
3430 rajveer 20962
    public _Fields fieldForId(int fieldId) {
20963
      return _Fields.findByThriftId(fieldId);
20964
    }
20965
 
20966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20967
      org.apache.thrift.protocol.TField field;
784 rajveer 20968
      iprot.readStructBegin();
20969
      while (true)
20970
      {
20971
        field = iprot.readFieldBegin();
3430 rajveer 20972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
784 rajveer 20973
          break;
20974
        }
3430 rajveer 20975
        switch (field.id) {
20976
          case 0: // SUCCESS
20977
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20978
              this.success = iprot.readString();
20979
            } else { 
20980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20981
            }
20982
            break;
20983
          case 1: // UCX
20984
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20985
              this.ucx = new UserContextException();
20986
              this.ucx.read(iprot);
20987
            } else { 
20988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20989
            }
20990
            break;
20991
          default:
20992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
784 rajveer 20993
        }
3430 rajveer 20994
        iprot.readFieldEnd();
784 rajveer 20995
      }
20996
      iprot.readStructEnd();
20997
      validate();
20998
    }
20999
 
3430 rajveer 21000
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
784 rajveer 21001
      oprot.writeStructBegin(STRUCT_DESC);
21002
 
21003
      if (this.isSetSuccess()) {
21004
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21005
        oprot.writeString(this.success);
21006
        oprot.writeFieldEnd();
21007
      } else if (this.isSetUcx()) {
21008
        oprot.writeFieldBegin(UCX_FIELD_DESC);
21009
        this.ucx.write(oprot);
21010
        oprot.writeFieldEnd();
21011
      }
21012
      oprot.writeFieldStop();
21013
      oprot.writeStructEnd();
21014
    }
21015
 
21016
    @Override
21017
    public String toString() {
21018
      StringBuilder sb = new StringBuilder("getDefaultPincode_result(");
21019
      boolean first = true;
21020
 
21021
      sb.append("success:");
21022
      if (this.success == null) {
21023
        sb.append("null");
21024
      } else {
21025
        sb.append(this.success);
21026
      }
21027
      first = false;
21028
      if (!first) sb.append(", ");
21029
      sb.append("ucx:");
21030
      if (this.ucx == null) {
21031
        sb.append("null");
21032
      } else {
21033
        sb.append(this.ucx);
21034
      }
21035
      first = false;
21036
      sb.append(")");
21037
      return sb.toString();
21038
    }
21039
 
3430 rajveer 21040
    public void validate() throws org.apache.thrift.TException {
784 rajveer 21041
      // check for required fields
21042
    }
21043
 
3430 rajveer 21044
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21045
      try {
21046
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21047
      } catch (org.apache.thrift.TException te) {
21048
        throw new java.io.IOException(te);
21049
      }
21050
    }
21051
 
21052
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21053
      try {
21054
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21055
      } catch (org.apache.thrift.TException te) {
21056
        throw new java.io.IOException(te);
21057
      }
21058
    }
21059
 
784 rajveer 21060
  }
21061
 
3430 rajveer 21062
  public static class saveUserCommunication_args implements org.apache.thrift.TBase<saveUserCommunication_args, saveUserCommunication_args._Fields>, java.io.Serializable, Cloneable   {
21063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserCommunication_args");
1177 varun.gupt 21064
 
3430 rajveer 21065
    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);
21066
    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);
21067
    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);
21068
    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);
21069
    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);
21070
    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);
21071
    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);
21072
    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 21073
 
3430 rajveer 21074
    private long userId; // required
21075
    private String replyTo; // required
21076
    private long communicationType; // required
21077
    private long orderId; // required
21078
    private String airwaybillNo; // required
21079
    private String productName; // required
21080
    private String subject; // required
21081
    private String message; // required
1177 varun.gupt 21082
 
21083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1177 varun.gupt 21085
      USER_ID((short)1, "userId"),
21086
      REPLY_TO((short)2, "replyTo"),
21087
      COMMUNICATION_TYPE((short)3, "communicationType"),
21088
      ORDER_ID((short)4, "orderId"),
21089
      AIRWAYBILL_NO((short)5, "airwaybillNo"),
21090
      PRODUCT_NAME((short)6, "productName"),
21091
      SUBJECT((short)7, "subject"),
21092
      MESSAGE((short)8, "message");
21093
 
21094
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21095
 
21096
      static {
21097
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21098
          byName.put(field.getFieldName(), field);
21099
        }
21100
      }
21101
 
21102
      /**
21103
       * Find the _Fields constant that matches fieldId, or null if its not found.
21104
       */
21105
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21106
        switch(fieldId) {
21107
          case 1: // USER_ID
21108
            return USER_ID;
21109
          case 2: // REPLY_TO
21110
            return REPLY_TO;
21111
          case 3: // COMMUNICATION_TYPE
21112
            return COMMUNICATION_TYPE;
21113
          case 4: // ORDER_ID
21114
            return ORDER_ID;
21115
          case 5: // AIRWAYBILL_NO
21116
            return AIRWAYBILL_NO;
21117
          case 6: // PRODUCT_NAME
21118
            return PRODUCT_NAME;
21119
          case 7: // SUBJECT
21120
            return SUBJECT;
21121
          case 8: // MESSAGE
21122
            return MESSAGE;
21123
          default:
21124
            return null;
21125
        }
1177 varun.gupt 21126
      }
21127
 
21128
      /**
21129
       * Find the _Fields constant that matches fieldId, throwing an exception
21130
       * if it is not found.
21131
       */
21132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21133
        _Fields fields = findByThriftId(fieldId);
21134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21135
        return fields;
21136
      }
21137
 
21138
      /**
21139
       * Find the _Fields constant that matches name, or null if its not found.
21140
       */
21141
      public static _Fields findByName(String name) {
21142
        return byName.get(name);
21143
      }
21144
 
21145
      private final short _thriftId;
21146
      private final String _fieldName;
21147
 
21148
      _Fields(short thriftId, String fieldName) {
21149
        _thriftId = thriftId;
21150
        _fieldName = fieldName;
21151
      }
21152
 
21153
      public short getThriftFieldId() {
21154
        return _thriftId;
21155
      }
21156
 
21157
      public String getFieldName() {
21158
        return _fieldName;
21159
      }
21160
    }
21161
 
21162
    // isset id assignments
21163
    private static final int __USERID_ISSET_ID = 0;
21164
    private static final int __COMMUNICATIONTYPE_ISSET_ID = 1;
21165
    private static final int __ORDERID_ISSET_ID = 2;
21166
    private BitSet __isset_bit_vector = new BitSet(3);
21167
 
3430 rajveer 21168
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1177 varun.gupt 21169
    static {
3430 rajveer 21170
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21171
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21173
      tmpMap.put(_Fields.REPLY_TO, new org.apache.thrift.meta_data.FieldMetaData("replyTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21175
      tmpMap.put(_Fields.COMMUNICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("communicationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21176
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21177
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21178
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21179
      tmpMap.put(_Fields.AIRWAYBILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwaybillNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21181
      tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21183
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21185
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserCommunication_args.class, metaDataMap);
1177 varun.gupt 21189
    }
21190
 
21191
    public saveUserCommunication_args() {
21192
    }
21193
 
21194
    public saveUserCommunication_args(
21195
      long userId,
21196
      String replyTo,
21197
      long communicationType,
21198
      long orderId,
21199
      String airwaybillNo,
21200
      String productName,
21201
      String subject,
21202
      String message)
21203
    {
21204
      this();
21205
      this.userId = userId;
21206
      setUserIdIsSet(true);
21207
      this.replyTo = replyTo;
21208
      this.communicationType = communicationType;
21209
      setCommunicationTypeIsSet(true);
21210
      this.orderId = orderId;
21211
      setOrderIdIsSet(true);
21212
      this.airwaybillNo = airwaybillNo;
21213
      this.productName = productName;
21214
      this.subject = subject;
21215
      this.message = message;
21216
    }
21217
 
21218
    /**
21219
     * Performs a deep copy on <i>other</i>.
21220
     */
21221
    public saveUserCommunication_args(saveUserCommunication_args other) {
21222
      __isset_bit_vector.clear();
21223
      __isset_bit_vector.or(other.__isset_bit_vector);
21224
      this.userId = other.userId;
21225
      if (other.isSetReplyTo()) {
21226
        this.replyTo = other.replyTo;
21227
      }
21228
      this.communicationType = other.communicationType;
21229
      this.orderId = other.orderId;
21230
      if (other.isSetAirwaybillNo()) {
21231
        this.airwaybillNo = other.airwaybillNo;
21232
      }
21233
      if (other.isSetProductName()) {
21234
        this.productName = other.productName;
21235
      }
21236
      if (other.isSetSubject()) {
21237
        this.subject = other.subject;
21238
      }
21239
      if (other.isSetMessage()) {
21240
        this.message = other.message;
21241
      }
21242
    }
21243
 
21244
    public saveUserCommunication_args deepCopy() {
21245
      return new saveUserCommunication_args(this);
21246
    }
21247
 
3430 rajveer 21248
    @Override
21249
    public void clear() {
21250
      setUserIdIsSet(false);
21251
      this.userId = 0;
21252
      this.replyTo = null;
21253
      setCommunicationTypeIsSet(false);
21254
      this.communicationType = 0;
21255
      setOrderIdIsSet(false);
21256
      this.orderId = 0;
21257
      this.airwaybillNo = null;
21258
      this.productName = null;
21259
      this.subject = null;
21260
      this.message = null;
1177 varun.gupt 21261
    }
21262
 
21263
    public long getUserId() {
21264
      return this.userId;
21265
    }
21266
 
3430 rajveer 21267
    public void setUserId(long userId) {
1177 varun.gupt 21268
      this.userId = userId;
21269
      setUserIdIsSet(true);
21270
    }
21271
 
21272
    public void unsetUserId() {
21273
      __isset_bit_vector.clear(__USERID_ISSET_ID);
21274
    }
21275
 
3430 rajveer 21276
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21277
    public boolean isSetUserId() {
21278
      return __isset_bit_vector.get(__USERID_ISSET_ID);
21279
    }
21280
 
21281
    public void setUserIdIsSet(boolean value) {
21282
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
21283
    }
21284
 
21285
    public String getReplyTo() {
21286
      return this.replyTo;
21287
    }
21288
 
3430 rajveer 21289
    public void setReplyTo(String replyTo) {
1177 varun.gupt 21290
      this.replyTo = replyTo;
21291
    }
21292
 
21293
    public void unsetReplyTo() {
21294
      this.replyTo = null;
21295
    }
21296
 
3430 rajveer 21297
    /** Returns true if field replyTo is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21298
    public boolean isSetReplyTo() {
21299
      return this.replyTo != null;
21300
    }
21301
 
21302
    public void setReplyToIsSet(boolean value) {
21303
      if (!value) {
21304
        this.replyTo = null;
21305
      }
21306
    }
21307
 
21308
    public long getCommunicationType() {
21309
      return this.communicationType;
21310
    }
21311
 
3430 rajveer 21312
    public void setCommunicationType(long communicationType) {
1177 varun.gupt 21313
      this.communicationType = communicationType;
21314
      setCommunicationTypeIsSet(true);
21315
    }
21316
 
21317
    public void unsetCommunicationType() {
21318
      __isset_bit_vector.clear(__COMMUNICATIONTYPE_ISSET_ID);
21319
    }
21320
 
3430 rajveer 21321
    /** Returns true if field communicationType is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21322
    public boolean isSetCommunicationType() {
21323
      return __isset_bit_vector.get(__COMMUNICATIONTYPE_ISSET_ID);
21324
    }
21325
 
21326
    public void setCommunicationTypeIsSet(boolean value) {
21327
      __isset_bit_vector.set(__COMMUNICATIONTYPE_ISSET_ID, value);
21328
    }
21329
 
21330
    public long getOrderId() {
21331
      return this.orderId;
21332
    }
21333
 
3430 rajveer 21334
    public void setOrderId(long orderId) {
1177 varun.gupt 21335
      this.orderId = orderId;
21336
      setOrderIdIsSet(true);
21337
    }
21338
 
21339
    public void unsetOrderId() {
21340
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21341
    }
21342
 
3430 rajveer 21343
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21344
    public boolean isSetOrderId() {
21345
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21346
    }
21347
 
21348
    public void setOrderIdIsSet(boolean value) {
21349
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21350
    }
21351
 
21352
    public String getAirwaybillNo() {
21353
      return this.airwaybillNo;
21354
    }
21355
 
3430 rajveer 21356
    public void setAirwaybillNo(String airwaybillNo) {
1177 varun.gupt 21357
      this.airwaybillNo = airwaybillNo;
21358
    }
21359
 
21360
    public void unsetAirwaybillNo() {
21361
      this.airwaybillNo = null;
21362
    }
21363
 
3430 rajveer 21364
    /** Returns true if field airwaybillNo is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21365
    public boolean isSetAirwaybillNo() {
21366
      return this.airwaybillNo != null;
21367
    }
21368
 
21369
    public void setAirwaybillNoIsSet(boolean value) {
21370
      if (!value) {
21371
        this.airwaybillNo = null;
21372
      }
21373
    }
21374
 
21375
    public String getProductName() {
21376
      return this.productName;
21377
    }
21378
 
3430 rajveer 21379
    public void setProductName(String productName) {
1177 varun.gupt 21380
      this.productName = productName;
21381
    }
21382
 
21383
    public void unsetProductName() {
21384
      this.productName = null;
21385
    }
21386
 
3430 rajveer 21387
    /** Returns true if field productName is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21388
    public boolean isSetProductName() {
21389
      return this.productName != null;
21390
    }
21391
 
21392
    public void setProductNameIsSet(boolean value) {
21393
      if (!value) {
21394
        this.productName = null;
21395
      }
21396
    }
21397
 
21398
    public String getSubject() {
21399
      return this.subject;
21400
    }
21401
 
3430 rajveer 21402
    public void setSubject(String subject) {
1177 varun.gupt 21403
      this.subject = subject;
21404
    }
21405
 
21406
    public void unsetSubject() {
21407
      this.subject = null;
21408
    }
21409
 
3430 rajveer 21410
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21411
    public boolean isSetSubject() {
21412
      return this.subject != null;
21413
    }
21414
 
21415
    public void setSubjectIsSet(boolean value) {
21416
      if (!value) {
21417
        this.subject = null;
21418
      }
21419
    }
21420
 
21421
    public String getMessage() {
21422
      return this.message;
21423
    }
21424
 
3430 rajveer 21425
    public void setMessage(String message) {
1177 varun.gupt 21426
      this.message = message;
21427
    }
21428
 
21429
    public void unsetMessage() {
21430
      this.message = null;
21431
    }
21432
 
3430 rajveer 21433
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21434
    public boolean isSetMessage() {
21435
      return this.message != null;
21436
    }
21437
 
21438
    public void setMessageIsSet(boolean value) {
21439
      if (!value) {
21440
        this.message = null;
21441
      }
21442
    }
21443
 
21444
    public void setFieldValue(_Fields field, Object value) {
21445
      switch (field) {
21446
      case USER_ID:
21447
        if (value == null) {
21448
          unsetUserId();
21449
        } else {
21450
          setUserId((Long)value);
21451
        }
21452
        break;
21453
 
21454
      case REPLY_TO:
21455
        if (value == null) {
21456
          unsetReplyTo();
21457
        } else {
21458
          setReplyTo((String)value);
21459
        }
21460
        break;
21461
 
21462
      case COMMUNICATION_TYPE:
21463
        if (value == null) {
21464
          unsetCommunicationType();
21465
        } else {
21466
          setCommunicationType((Long)value);
21467
        }
21468
        break;
21469
 
21470
      case ORDER_ID:
21471
        if (value == null) {
21472
          unsetOrderId();
21473
        } else {
21474
          setOrderId((Long)value);
21475
        }
21476
        break;
21477
 
21478
      case AIRWAYBILL_NO:
21479
        if (value == null) {
21480
          unsetAirwaybillNo();
21481
        } else {
21482
          setAirwaybillNo((String)value);
21483
        }
21484
        break;
21485
 
21486
      case PRODUCT_NAME:
21487
        if (value == null) {
21488
          unsetProductName();
21489
        } else {
21490
          setProductName((String)value);
21491
        }
21492
        break;
21493
 
21494
      case SUBJECT:
21495
        if (value == null) {
21496
          unsetSubject();
21497
        } else {
21498
          setSubject((String)value);
21499
        }
21500
        break;
21501
 
21502
      case MESSAGE:
21503
        if (value == null) {
21504
          unsetMessage();
21505
        } else {
21506
          setMessage((String)value);
21507
        }
21508
        break;
21509
 
21510
      }
21511
    }
21512
 
21513
    public Object getFieldValue(_Fields field) {
21514
      switch (field) {
21515
      case USER_ID:
3430 rajveer 21516
        return Long.valueOf(getUserId());
1177 varun.gupt 21517
 
21518
      case REPLY_TO:
21519
        return getReplyTo();
21520
 
21521
      case COMMUNICATION_TYPE:
3430 rajveer 21522
        return Long.valueOf(getCommunicationType());
1177 varun.gupt 21523
 
21524
      case ORDER_ID:
3430 rajveer 21525
        return Long.valueOf(getOrderId());
1177 varun.gupt 21526
 
21527
      case AIRWAYBILL_NO:
21528
        return getAirwaybillNo();
21529
 
21530
      case PRODUCT_NAME:
21531
        return getProductName();
21532
 
21533
      case SUBJECT:
21534
        return getSubject();
21535
 
21536
      case MESSAGE:
21537
        return getMessage();
21538
 
21539
      }
21540
      throw new IllegalStateException();
21541
    }
21542
 
3430 rajveer 21543
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21544
    public boolean isSet(_Fields field) {
21545
      if (field == null) {
21546
        throw new IllegalArgumentException();
21547
      }
1177 varun.gupt 21548
 
21549
      switch (field) {
21550
      case USER_ID:
21551
        return isSetUserId();
21552
      case REPLY_TO:
21553
        return isSetReplyTo();
21554
      case COMMUNICATION_TYPE:
21555
        return isSetCommunicationType();
21556
      case ORDER_ID:
21557
        return isSetOrderId();
21558
      case AIRWAYBILL_NO:
21559
        return isSetAirwaybillNo();
21560
      case PRODUCT_NAME:
21561
        return isSetProductName();
21562
      case SUBJECT:
21563
        return isSetSubject();
21564
      case MESSAGE:
21565
        return isSetMessage();
21566
      }
21567
      throw new IllegalStateException();
21568
    }
21569
 
21570
    @Override
21571
    public boolean equals(Object that) {
21572
      if (that == null)
21573
        return false;
21574
      if (that instanceof saveUserCommunication_args)
21575
        return this.equals((saveUserCommunication_args)that);
21576
      return false;
21577
    }
21578
 
21579
    public boolean equals(saveUserCommunication_args that) {
21580
      if (that == null)
21581
        return false;
21582
 
21583
      boolean this_present_userId = true;
21584
      boolean that_present_userId = true;
21585
      if (this_present_userId || that_present_userId) {
21586
        if (!(this_present_userId && that_present_userId))
21587
          return false;
21588
        if (this.userId != that.userId)
21589
          return false;
21590
      }
21591
 
21592
      boolean this_present_replyTo = true && this.isSetReplyTo();
21593
      boolean that_present_replyTo = true && that.isSetReplyTo();
21594
      if (this_present_replyTo || that_present_replyTo) {
21595
        if (!(this_present_replyTo && that_present_replyTo))
21596
          return false;
21597
        if (!this.replyTo.equals(that.replyTo))
21598
          return false;
21599
      }
21600
 
21601
      boolean this_present_communicationType = true;
21602
      boolean that_present_communicationType = true;
21603
      if (this_present_communicationType || that_present_communicationType) {
21604
        if (!(this_present_communicationType && that_present_communicationType))
21605
          return false;
21606
        if (this.communicationType != that.communicationType)
21607
          return false;
21608
      }
21609
 
21610
      boolean this_present_orderId = true;
21611
      boolean that_present_orderId = true;
21612
      if (this_present_orderId || that_present_orderId) {
21613
        if (!(this_present_orderId && that_present_orderId))
21614
          return false;
21615
        if (this.orderId != that.orderId)
21616
          return false;
21617
      }
21618
 
21619
      boolean this_present_airwaybillNo = true && this.isSetAirwaybillNo();
21620
      boolean that_present_airwaybillNo = true && that.isSetAirwaybillNo();
21621
      if (this_present_airwaybillNo || that_present_airwaybillNo) {
21622
        if (!(this_present_airwaybillNo && that_present_airwaybillNo))
21623
          return false;
21624
        if (!this.airwaybillNo.equals(that.airwaybillNo))
21625
          return false;
21626
      }
21627
 
21628
      boolean this_present_productName = true && this.isSetProductName();
21629
      boolean that_present_productName = true && that.isSetProductName();
21630
      if (this_present_productName || that_present_productName) {
21631
        if (!(this_present_productName && that_present_productName))
21632
          return false;
21633
        if (!this.productName.equals(that.productName))
21634
          return false;
21635
      }
21636
 
21637
      boolean this_present_subject = true && this.isSetSubject();
21638
      boolean that_present_subject = true && that.isSetSubject();
21639
      if (this_present_subject || that_present_subject) {
21640
        if (!(this_present_subject && that_present_subject))
21641
          return false;
21642
        if (!this.subject.equals(that.subject))
21643
          return false;
21644
      }
21645
 
21646
      boolean this_present_message = true && this.isSetMessage();
21647
      boolean that_present_message = true && that.isSetMessage();
21648
      if (this_present_message || that_present_message) {
21649
        if (!(this_present_message && that_present_message))
21650
          return false;
21651
        if (!this.message.equals(that.message))
21652
          return false;
21653
      }
21654
 
21655
      return true;
21656
    }
21657
 
21658
    @Override
21659
    public int hashCode() {
21660
      return 0;
21661
    }
21662
 
21663
    public int compareTo(saveUserCommunication_args other) {
21664
      if (!getClass().equals(other.getClass())) {
21665
        return getClass().getName().compareTo(other.getClass().getName());
21666
      }
21667
 
21668
      int lastComparison = 0;
21669
      saveUserCommunication_args typedOther = (saveUserCommunication_args)other;
21670
 
3430 rajveer 21671
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1177 varun.gupt 21672
      if (lastComparison != 0) {
21673
        return lastComparison;
21674
      }
3430 rajveer 21675
      if (isSetUserId()) {
21676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
21677
        if (lastComparison != 0) {
21678
          return lastComparison;
21679
        }
1177 varun.gupt 21680
      }
3430 rajveer 21681
      lastComparison = Boolean.valueOf(isSetReplyTo()).compareTo(typedOther.isSetReplyTo());
1177 varun.gupt 21682
      if (lastComparison != 0) {
21683
        return lastComparison;
21684
      }
3430 rajveer 21685
      if (isSetReplyTo()) {
21686
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replyTo, typedOther.replyTo);
21687
        if (lastComparison != 0) {
21688
          return lastComparison;
21689
        }
1177 varun.gupt 21690
      }
3430 rajveer 21691
      lastComparison = Boolean.valueOf(isSetCommunicationType()).compareTo(typedOther.isSetCommunicationType());
1177 varun.gupt 21692
      if (lastComparison != 0) {
21693
        return lastComparison;
21694
      }
3430 rajveer 21695
      if (isSetCommunicationType()) {
21696
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationType, typedOther.communicationType);
21697
        if (lastComparison != 0) {
21698
          return lastComparison;
21699
        }
1177 varun.gupt 21700
      }
3430 rajveer 21701
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1177 varun.gupt 21702
      if (lastComparison != 0) {
21703
        return lastComparison;
21704
      }
3430 rajveer 21705
      if (isSetOrderId()) {
21706
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21707
        if (lastComparison != 0) {
21708
          return lastComparison;
21709
        }
1177 varun.gupt 21710
      }
3430 rajveer 21711
      lastComparison = Boolean.valueOf(isSetAirwaybillNo()).compareTo(typedOther.isSetAirwaybillNo());
1177 varun.gupt 21712
      if (lastComparison != 0) {
21713
        return lastComparison;
21714
      }
3430 rajveer 21715
      if (isSetAirwaybillNo()) {
21716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwaybillNo, typedOther.airwaybillNo);
21717
        if (lastComparison != 0) {
21718
          return lastComparison;
21719
        }
1177 varun.gupt 21720
      }
3430 rajveer 21721
      lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
1177 varun.gupt 21722
      if (lastComparison != 0) {
21723
        return lastComparison;
21724
      }
3430 rajveer 21725
      if (isSetProductName()) {
21726
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
21727
        if (lastComparison != 0) {
21728
          return lastComparison;
21729
        }
1177 varun.gupt 21730
      }
3430 rajveer 21731
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1177 varun.gupt 21732
      if (lastComparison != 0) {
21733
        return lastComparison;
21734
      }
3430 rajveer 21735
      if (isSetSubject()) {
21736
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
21737
        if (lastComparison != 0) {
21738
          return lastComparison;
21739
        }
1177 varun.gupt 21740
      }
3430 rajveer 21741
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
1177 varun.gupt 21742
      if (lastComparison != 0) {
21743
        return lastComparison;
21744
      }
3430 rajveer 21745
      if (isSetMessage()) {
21746
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
21747
        if (lastComparison != 0) {
21748
          return lastComparison;
21749
        }
1177 varun.gupt 21750
      }
21751
      return 0;
21752
    }
21753
 
3430 rajveer 21754
    public _Fields fieldForId(int fieldId) {
21755
      return _Fields.findByThriftId(fieldId);
21756
    }
21757
 
21758
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21759
      org.apache.thrift.protocol.TField field;
1177 varun.gupt 21760
      iprot.readStructBegin();
21761
      while (true)
21762
      {
21763
        field = iprot.readFieldBegin();
3430 rajveer 21764
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1177 varun.gupt 21765
          break;
21766
        }
3430 rajveer 21767
        switch (field.id) {
21768
          case 1: // USER_ID
21769
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21770
              this.userId = iprot.readI64();
21771
              setUserIdIsSet(true);
21772
            } else { 
21773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21774
            }
21775
            break;
21776
          case 2: // REPLY_TO
21777
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21778
              this.replyTo = iprot.readString();
21779
            } else { 
21780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21781
            }
21782
            break;
21783
          case 3: // COMMUNICATION_TYPE
21784
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21785
              this.communicationType = iprot.readI64();
21786
              setCommunicationTypeIsSet(true);
21787
            } else { 
21788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21789
            }
21790
            break;
21791
          case 4: // ORDER_ID
21792
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21793
              this.orderId = iprot.readI64();
21794
              setOrderIdIsSet(true);
21795
            } else { 
21796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21797
            }
21798
            break;
21799
          case 5: // AIRWAYBILL_NO
21800
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21801
              this.airwaybillNo = iprot.readString();
21802
            } else { 
21803
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21804
            }
21805
            break;
21806
          case 6: // PRODUCT_NAME
21807
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21808
              this.productName = iprot.readString();
21809
            } else { 
21810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21811
            }
21812
            break;
21813
          case 7: // SUBJECT
21814
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21815
              this.subject = iprot.readString();
21816
            } else { 
21817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21818
            }
21819
            break;
21820
          case 8: // MESSAGE
21821
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21822
              this.message = iprot.readString();
21823
            } else { 
21824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21825
            }
21826
            break;
21827
          default:
21828
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177 varun.gupt 21829
        }
3430 rajveer 21830
        iprot.readFieldEnd();
1177 varun.gupt 21831
      }
21832
      iprot.readStructEnd();
21833
      validate();
21834
    }
21835
 
3430 rajveer 21836
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177 varun.gupt 21837
      validate();
21838
 
21839
      oprot.writeStructBegin(STRUCT_DESC);
21840
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
21841
      oprot.writeI64(this.userId);
21842
      oprot.writeFieldEnd();
21843
      if (this.replyTo != null) {
21844
        oprot.writeFieldBegin(REPLY_TO_FIELD_DESC);
21845
        oprot.writeString(this.replyTo);
21846
        oprot.writeFieldEnd();
21847
      }
21848
      oprot.writeFieldBegin(COMMUNICATION_TYPE_FIELD_DESC);
21849
      oprot.writeI64(this.communicationType);
21850
      oprot.writeFieldEnd();
21851
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21852
      oprot.writeI64(this.orderId);
21853
      oprot.writeFieldEnd();
21854
      if (this.airwaybillNo != null) {
21855
        oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
21856
        oprot.writeString(this.airwaybillNo);
21857
        oprot.writeFieldEnd();
21858
      }
21859
      if (this.productName != null) {
21860
        oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
21861
        oprot.writeString(this.productName);
21862
        oprot.writeFieldEnd();
21863
      }
21864
      if (this.subject != null) {
21865
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
21866
        oprot.writeString(this.subject);
21867
        oprot.writeFieldEnd();
21868
      }
21869
      if (this.message != null) {
21870
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
21871
        oprot.writeString(this.message);
21872
        oprot.writeFieldEnd();
21873
      }
21874
      oprot.writeFieldStop();
21875
      oprot.writeStructEnd();
21876
    }
21877
 
21878
    @Override
21879
    public String toString() {
21880
      StringBuilder sb = new StringBuilder("saveUserCommunication_args(");
21881
      boolean first = true;
21882
 
21883
      sb.append("userId:");
21884
      sb.append(this.userId);
21885
      first = false;
21886
      if (!first) sb.append(", ");
21887
      sb.append("replyTo:");
21888
      if (this.replyTo == null) {
21889
        sb.append("null");
21890
      } else {
21891
        sb.append(this.replyTo);
21892
      }
21893
      first = false;
21894
      if (!first) sb.append(", ");
21895
      sb.append("communicationType:");
21896
      sb.append(this.communicationType);
21897
      first = false;
21898
      if (!first) sb.append(", ");
21899
      sb.append("orderId:");
21900
      sb.append(this.orderId);
21901
      first = false;
21902
      if (!first) sb.append(", ");
21903
      sb.append("airwaybillNo:");
21904
      if (this.airwaybillNo == null) {
21905
        sb.append("null");
21906
      } else {
21907
        sb.append(this.airwaybillNo);
21908
      }
21909
      first = false;
21910
      if (!first) sb.append(", ");
21911
      sb.append("productName:");
21912
      if (this.productName == null) {
21913
        sb.append("null");
21914
      } else {
21915
        sb.append(this.productName);
21916
      }
21917
      first = false;
21918
      if (!first) sb.append(", ");
21919
      sb.append("subject:");
21920
      if (this.subject == null) {
21921
        sb.append("null");
21922
      } else {
21923
        sb.append(this.subject);
21924
      }
21925
      first = false;
21926
      if (!first) sb.append(", ");
21927
      sb.append("message:");
21928
      if (this.message == null) {
21929
        sb.append("null");
21930
      } else {
21931
        sb.append(this.message);
21932
      }
21933
      first = false;
21934
      sb.append(")");
21935
      return sb.toString();
21936
    }
21937
 
3430 rajveer 21938
    public void validate() throws org.apache.thrift.TException {
1177 varun.gupt 21939
      // check for required fields
21940
    }
21941
 
3430 rajveer 21942
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21943
      try {
21944
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21945
      } catch (org.apache.thrift.TException te) {
21946
        throw new java.io.IOException(te);
21947
      }
21948
    }
21949
 
21950
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21951
      try {
21952
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21953
        __isset_bit_vector = new BitSet(1);
21954
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21955
      } catch (org.apache.thrift.TException te) {
21956
        throw new java.io.IOException(te);
21957
      }
21958
    }
21959
 
1177 varun.gupt 21960
  }
21961
 
3430 rajveer 21962
  public static class saveUserCommunication_result implements org.apache.thrift.TBase<saveUserCommunication_result, saveUserCommunication_result._Fields>, java.io.Serializable, Cloneable   {
21963
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserCommunication_result");
1177 varun.gupt 21964
 
3430 rajveer 21965
    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);
21966
    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 21967
 
3430 rajveer 21968
    private boolean success; // required
21969
    private UserCommunicationException ucx; // required
1177 varun.gupt 21970
 
21971
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21972
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1177 varun.gupt 21973
      SUCCESS((short)0, "success"),
21974
      UCX((short)1, "ucx");
21975
 
21976
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21977
 
21978
      static {
21979
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21980
          byName.put(field.getFieldName(), field);
21981
        }
21982
      }
21983
 
21984
      /**
21985
       * Find the _Fields constant that matches fieldId, or null if its not found.
21986
       */
21987
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21988
        switch(fieldId) {
21989
          case 0: // SUCCESS
21990
            return SUCCESS;
21991
          case 1: // UCX
21992
            return UCX;
21993
          default:
21994
            return null;
21995
        }
1177 varun.gupt 21996
      }
21997
 
21998
      /**
21999
       * Find the _Fields constant that matches fieldId, throwing an exception
22000
       * if it is not found.
22001
       */
22002
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22003
        _Fields fields = findByThriftId(fieldId);
22004
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22005
        return fields;
22006
      }
22007
 
22008
      /**
22009
       * Find the _Fields constant that matches name, or null if its not found.
22010
       */
22011
      public static _Fields findByName(String name) {
22012
        return byName.get(name);
22013
      }
22014
 
22015
      private final short _thriftId;
22016
      private final String _fieldName;
22017
 
22018
      _Fields(short thriftId, String fieldName) {
22019
        _thriftId = thriftId;
22020
        _fieldName = fieldName;
22021
      }
22022
 
22023
      public short getThriftFieldId() {
22024
        return _thriftId;
22025
      }
22026
 
22027
      public String getFieldName() {
22028
        return _fieldName;
22029
      }
22030
    }
22031
 
22032
    // isset id assignments
22033
    private static final int __SUCCESS_ISSET_ID = 0;
22034
    private BitSet __isset_bit_vector = new BitSet(1);
22035
 
3430 rajveer 22036
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1177 varun.gupt 22037
    static {
3430 rajveer 22038
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22039
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22040
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
22041
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22042
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22043
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22044
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserCommunication_result.class, metaDataMap);
1177 varun.gupt 22045
    }
22046
 
22047
    public saveUserCommunication_result() {
22048
    }
22049
 
22050
    public saveUserCommunication_result(
22051
      boolean success,
22052
      UserCommunicationException ucx)
22053
    {
22054
      this();
22055
      this.success = success;
22056
      setSuccessIsSet(true);
22057
      this.ucx = ucx;
22058
    }
22059
 
22060
    /**
22061
     * Performs a deep copy on <i>other</i>.
22062
     */
22063
    public saveUserCommunication_result(saveUserCommunication_result other) {
22064
      __isset_bit_vector.clear();
22065
      __isset_bit_vector.or(other.__isset_bit_vector);
22066
      this.success = other.success;
22067
      if (other.isSetUcx()) {
22068
        this.ucx = new UserCommunicationException(other.ucx);
22069
      }
22070
    }
22071
 
22072
    public saveUserCommunication_result deepCopy() {
22073
      return new saveUserCommunication_result(this);
22074
    }
22075
 
3430 rajveer 22076
    @Override
22077
    public void clear() {
22078
      setSuccessIsSet(false);
22079
      this.success = false;
22080
      this.ucx = null;
1177 varun.gupt 22081
    }
22082
 
22083
    public boolean isSuccess() {
22084
      return this.success;
22085
    }
22086
 
3430 rajveer 22087
    public void setSuccess(boolean success) {
1177 varun.gupt 22088
      this.success = success;
22089
      setSuccessIsSet(true);
22090
    }
22091
 
22092
    public void unsetSuccess() {
22093
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
22094
    }
22095
 
3430 rajveer 22096
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1177 varun.gupt 22097
    public boolean isSetSuccess() {
22098
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
22099
    }
22100
 
22101
    public void setSuccessIsSet(boolean value) {
22102
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
22103
    }
22104
 
22105
    public UserCommunicationException getUcx() {
22106
      return this.ucx;
22107
    }
22108
 
3430 rajveer 22109
    public void setUcx(UserCommunicationException ucx) {
1177 varun.gupt 22110
      this.ucx = ucx;
22111
    }
22112
 
22113
    public void unsetUcx() {
22114
      this.ucx = null;
22115
    }
22116
 
3430 rajveer 22117
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1177 varun.gupt 22118
    public boolean isSetUcx() {
22119
      return this.ucx != null;
22120
    }
22121
 
22122
    public void setUcxIsSet(boolean value) {
22123
      if (!value) {
22124
        this.ucx = null;
22125
      }
22126
    }
22127
 
22128
    public void setFieldValue(_Fields field, Object value) {
22129
      switch (field) {
22130
      case SUCCESS:
22131
        if (value == null) {
22132
          unsetSuccess();
22133
        } else {
22134
          setSuccess((Boolean)value);
22135
        }
22136
        break;
22137
 
22138
      case UCX:
22139
        if (value == null) {
22140
          unsetUcx();
22141
        } else {
22142
          setUcx((UserCommunicationException)value);
22143
        }
22144
        break;
22145
 
22146
      }
22147
    }
22148
 
22149
    public Object getFieldValue(_Fields field) {
22150
      switch (field) {
22151
      case SUCCESS:
3430 rajveer 22152
        return Boolean.valueOf(isSuccess());
1177 varun.gupt 22153
 
22154
      case UCX:
22155
        return getUcx();
22156
 
22157
      }
22158
      throw new IllegalStateException();
22159
    }
22160
 
3430 rajveer 22161
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22162
    public boolean isSet(_Fields field) {
22163
      if (field == null) {
22164
        throw new IllegalArgumentException();
22165
      }
1177 varun.gupt 22166
 
22167
      switch (field) {
22168
      case SUCCESS:
22169
        return isSetSuccess();
22170
      case UCX:
22171
        return isSetUcx();
22172
      }
22173
      throw new IllegalStateException();
22174
    }
22175
 
22176
    @Override
22177
    public boolean equals(Object that) {
22178
      if (that == null)
22179
        return false;
22180
      if (that instanceof saveUserCommunication_result)
22181
        return this.equals((saveUserCommunication_result)that);
22182
      return false;
22183
    }
22184
 
22185
    public boolean equals(saveUserCommunication_result that) {
22186
      if (that == null)
22187
        return false;
22188
 
22189
      boolean this_present_success = true;
22190
      boolean that_present_success = true;
22191
      if (this_present_success || that_present_success) {
22192
        if (!(this_present_success && that_present_success))
22193
          return false;
22194
        if (this.success != that.success)
22195
          return false;
22196
      }
22197
 
22198
      boolean this_present_ucx = true && this.isSetUcx();
22199
      boolean that_present_ucx = true && that.isSetUcx();
22200
      if (this_present_ucx || that_present_ucx) {
22201
        if (!(this_present_ucx && that_present_ucx))
22202
          return false;
22203
        if (!this.ucx.equals(that.ucx))
22204
          return false;
22205
      }
22206
 
22207
      return true;
22208
    }
22209
 
22210
    @Override
22211
    public int hashCode() {
22212
      return 0;
22213
    }
22214
 
22215
    public int compareTo(saveUserCommunication_result other) {
22216
      if (!getClass().equals(other.getClass())) {
22217
        return getClass().getName().compareTo(other.getClass().getName());
22218
      }
22219
 
22220
      int lastComparison = 0;
22221
      saveUserCommunication_result typedOther = (saveUserCommunication_result)other;
22222
 
3430 rajveer 22223
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1177 varun.gupt 22224
      if (lastComparison != 0) {
22225
        return lastComparison;
22226
      }
3430 rajveer 22227
      if (isSetSuccess()) {
22228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22229
        if (lastComparison != 0) {
22230
          return lastComparison;
22231
        }
1177 varun.gupt 22232
      }
3430 rajveer 22233
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1177 varun.gupt 22234
      if (lastComparison != 0) {
22235
        return lastComparison;
22236
      }
3430 rajveer 22237
      if (isSetUcx()) {
22238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
22239
        if (lastComparison != 0) {
22240
          return lastComparison;
22241
        }
1177 varun.gupt 22242
      }
22243
      return 0;
22244
    }
22245
 
3430 rajveer 22246
    public _Fields fieldForId(int fieldId) {
22247
      return _Fields.findByThriftId(fieldId);
22248
    }
22249
 
22250
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22251
      org.apache.thrift.protocol.TField field;
1177 varun.gupt 22252
      iprot.readStructBegin();
22253
      while (true)
22254
      {
22255
        field = iprot.readFieldBegin();
3430 rajveer 22256
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1177 varun.gupt 22257
          break;
22258
        }
3430 rajveer 22259
        switch (field.id) {
22260
          case 0: // SUCCESS
22261
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
22262
              this.success = iprot.readBool();
22263
              setSuccessIsSet(true);
22264
            } else { 
22265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22266
            }
22267
            break;
22268
          case 1: // UCX
22269
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22270
              this.ucx = new UserCommunicationException();
22271
              this.ucx.read(iprot);
22272
            } else { 
22273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22274
            }
22275
            break;
22276
          default:
22277
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177 varun.gupt 22278
        }
3430 rajveer 22279
        iprot.readFieldEnd();
1177 varun.gupt 22280
      }
22281
      iprot.readStructEnd();
22282
      validate();
22283
    }
22284
 
3430 rajveer 22285
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177 varun.gupt 22286
      oprot.writeStructBegin(STRUCT_DESC);
22287
 
22288
      if (this.isSetSuccess()) {
22289
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22290
        oprot.writeBool(this.success);
22291
        oprot.writeFieldEnd();
22292
      } else if (this.isSetUcx()) {
22293
        oprot.writeFieldBegin(UCX_FIELD_DESC);
22294
        this.ucx.write(oprot);
22295
        oprot.writeFieldEnd();
22296
      }
22297
      oprot.writeFieldStop();
22298
      oprot.writeStructEnd();
22299
    }
22300
 
22301
    @Override
22302
    public String toString() {
22303
      StringBuilder sb = new StringBuilder("saveUserCommunication_result(");
22304
      boolean first = true;
22305
 
22306
      sb.append("success:");
22307
      sb.append(this.success);
22308
      first = false;
22309
      if (!first) sb.append(", ");
22310
      sb.append("ucx:");
22311
      if (this.ucx == null) {
22312
        sb.append("null");
22313
      } else {
22314
        sb.append(this.ucx);
22315
      }
22316
      first = false;
22317
      sb.append(")");
22318
      return sb.toString();
22319
    }
22320
 
3430 rajveer 22321
    public void validate() throws org.apache.thrift.TException {
1177 varun.gupt 22322
      // check for required fields
22323
    }
22324
 
3430 rajveer 22325
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22326
      try {
22327
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22328
      } catch (org.apache.thrift.TException te) {
22329
        throw new java.io.IOException(te);
22330
      }
22331
    }
22332
 
22333
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22334
      try {
22335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22336
      } catch (org.apache.thrift.TException te) {
22337
        throw new java.io.IOException(te);
22338
      }
22339
    }
22340
 
1177 varun.gupt 22341
  }
22342
 
3430 rajveer 22343
  public static class getUserCommunicationById_args implements org.apache.thrift.TBase<getUserCommunicationById_args, getUserCommunicationById_args._Fields>, java.io.Serializable, Cloneable   {
22344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationById_args");
1590 varun.gupt 22345
 
3430 rajveer 22346
    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 22347
 
3430 rajveer 22348
    private long id; // required
1590 varun.gupt 22349
 
22350
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22351
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 22352
      ID((short)1, "id");
22353
 
22354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22355
 
22356
      static {
22357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22358
          byName.put(field.getFieldName(), field);
22359
        }
22360
      }
22361
 
22362
      /**
22363
       * Find the _Fields constant that matches fieldId, or null if its not found.
22364
       */
22365
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22366
        switch(fieldId) {
22367
          case 1: // ID
22368
            return ID;
22369
          default:
22370
            return null;
22371
        }
1590 varun.gupt 22372
      }
22373
 
22374
      /**
22375
       * Find the _Fields constant that matches fieldId, throwing an exception
22376
       * if it is not found.
22377
       */
22378
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22379
        _Fields fields = findByThriftId(fieldId);
22380
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22381
        return fields;
22382
      }
22383
 
22384
      /**
22385
       * Find the _Fields constant that matches name, or null if its not found.
22386
       */
22387
      public static _Fields findByName(String name) {
22388
        return byName.get(name);
22389
      }
22390
 
22391
      private final short _thriftId;
22392
      private final String _fieldName;
22393
 
22394
      _Fields(short thriftId, String fieldName) {
22395
        _thriftId = thriftId;
22396
        _fieldName = fieldName;
22397
      }
22398
 
22399
      public short getThriftFieldId() {
22400
        return _thriftId;
22401
      }
22402
 
22403
      public String getFieldName() {
22404
        return _fieldName;
22405
      }
22406
    }
22407
 
22408
    // isset id assignments
22409
    private static final int __ID_ISSET_ID = 0;
22410
    private BitSet __isset_bit_vector = new BitSet(1);
22411
 
3430 rajveer 22412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 22413
    static {
3430 rajveer 22414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22415
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22416
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22417
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22418
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationById_args.class, metaDataMap);
1590 varun.gupt 22419
    }
22420
 
22421
    public getUserCommunicationById_args() {
22422
    }
22423
 
22424
    public getUserCommunicationById_args(
22425
      long id)
22426
    {
22427
      this();
22428
      this.id = id;
22429
      setIdIsSet(true);
22430
    }
22431
 
22432
    /**
22433
     * Performs a deep copy on <i>other</i>.
22434
     */
22435
    public getUserCommunicationById_args(getUserCommunicationById_args other) {
22436
      __isset_bit_vector.clear();
22437
      __isset_bit_vector.or(other.__isset_bit_vector);
22438
      this.id = other.id;
22439
    }
22440
 
22441
    public getUserCommunicationById_args deepCopy() {
22442
      return new getUserCommunicationById_args(this);
22443
    }
22444
 
3430 rajveer 22445
    @Override
22446
    public void clear() {
22447
      setIdIsSet(false);
22448
      this.id = 0;
1590 varun.gupt 22449
    }
22450
 
22451
    public long getId() {
22452
      return this.id;
22453
    }
22454
 
3430 rajveer 22455
    public void setId(long id) {
1590 varun.gupt 22456
      this.id = id;
22457
      setIdIsSet(true);
22458
    }
22459
 
22460
    public void unsetId() {
22461
      __isset_bit_vector.clear(__ID_ISSET_ID);
22462
    }
22463
 
3430 rajveer 22464
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22465
    public boolean isSetId() {
22466
      return __isset_bit_vector.get(__ID_ISSET_ID);
22467
    }
22468
 
22469
    public void setIdIsSet(boolean value) {
22470
      __isset_bit_vector.set(__ID_ISSET_ID, value);
22471
    }
22472
 
22473
    public void setFieldValue(_Fields field, Object value) {
22474
      switch (field) {
22475
      case ID:
22476
        if (value == null) {
22477
          unsetId();
22478
        } else {
22479
          setId((Long)value);
22480
        }
22481
        break;
22482
 
22483
      }
22484
    }
22485
 
22486
    public Object getFieldValue(_Fields field) {
22487
      switch (field) {
22488
      case ID:
3430 rajveer 22489
        return Long.valueOf(getId());
1590 varun.gupt 22490
 
22491
      }
22492
      throw new IllegalStateException();
22493
    }
22494
 
3430 rajveer 22495
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22496
    public boolean isSet(_Fields field) {
22497
      if (field == null) {
22498
        throw new IllegalArgumentException();
22499
      }
1590 varun.gupt 22500
 
22501
      switch (field) {
22502
      case ID:
22503
        return isSetId();
22504
      }
22505
      throw new IllegalStateException();
22506
    }
22507
 
22508
    @Override
22509
    public boolean equals(Object that) {
22510
      if (that == null)
22511
        return false;
22512
      if (that instanceof getUserCommunicationById_args)
22513
        return this.equals((getUserCommunicationById_args)that);
22514
      return false;
22515
    }
22516
 
22517
    public boolean equals(getUserCommunicationById_args that) {
22518
      if (that == null)
22519
        return false;
22520
 
22521
      boolean this_present_id = true;
22522
      boolean that_present_id = true;
22523
      if (this_present_id || that_present_id) {
22524
        if (!(this_present_id && that_present_id))
22525
          return false;
22526
        if (this.id != that.id)
22527
          return false;
22528
      }
22529
 
22530
      return true;
22531
    }
22532
 
22533
    @Override
22534
    public int hashCode() {
22535
      return 0;
22536
    }
22537
 
22538
    public int compareTo(getUserCommunicationById_args other) {
22539
      if (!getClass().equals(other.getClass())) {
22540
        return getClass().getName().compareTo(other.getClass().getName());
22541
      }
22542
 
22543
      int lastComparison = 0;
22544
      getUserCommunicationById_args typedOther = (getUserCommunicationById_args)other;
22545
 
3430 rajveer 22546
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1590 varun.gupt 22547
      if (lastComparison != 0) {
22548
        return lastComparison;
22549
      }
3430 rajveer 22550
      if (isSetId()) {
22551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
22552
        if (lastComparison != 0) {
22553
          return lastComparison;
22554
        }
1590 varun.gupt 22555
      }
22556
      return 0;
22557
    }
22558
 
3430 rajveer 22559
    public _Fields fieldForId(int fieldId) {
22560
      return _Fields.findByThriftId(fieldId);
22561
    }
22562
 
22563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22564
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 22565
      iprot.readStructBegin();
22566
      while (true)
22567
      {
22568
        field = iprot.readFieldBegin();
3430 rajveer 22569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 22570
          break;
22571
        }
3430 rajveer 22572
        switch (field.id) {
22573
          case 1: // ID
22574
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22575
              this.id = iprot.readI64();
22576
              setIdIsSet(true);
22577
            } else { 
22578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22579
            }
22580
            break;
22581
          default:
22582
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 22583
        }
3430 rajveer 22584
        iprot.readFieldEnd();
1590 varun.gupt 22585
      }
22586
      iprot.readStructEnd();
22587
      validate();
22588
    }
22589
 
3430 rajveer 22590
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 22591
      validate();
22592
 
22593
      oprot.writeStructBegin(STRUCT_DESC);
22594
      oprot.writeFieldBegin(ID_FIELD_DESC);
22595
      oprot.writeI64(this.id);
22596
      oprot.writeFieldEnd();
22597
      oprot.writeFieldStop();
22598
      oprot.writeStructEnd();
22599
    }
22600
 
22601
    @Override
22602
    public String toString() {
22603
      StringBuilder sb = new StringBuilder("getUserCommunicationById_args(");
22604
      boolean first = true;
22605
 
22606
      sb.append("id:");
22607
      sb.append(this.id);
22608
      first = false;
22609
      sb.append(")");
22610
      return sb.toString();
22611
    }
22612
 
3430 rajveer 22613
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 22614
      // check for required fields
22615
    }
22616
 
3430 rajveer 22617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22618
      try {
22619
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22620
      } catch (org.apache.thrift.TException te) {
22621
        throw new java.io.IOException(te);
22622
      }
22623
    }
22624
 
22625
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22626
      try {
22627
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22628
        __isset_bit_vector = new BitSet(1);
22629
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22630
      } catch (org.apache.thrift.TException te) {
22631
        throw new java.io.IOException(te);
22632
      }
22633
    }
22634
 
1590 varun.gupt 22635
  }
22636
 
3430 rajveer 22637
  public static class getUserCommunicationById_result implements org.apache.thrift.TBase<getUserCommunicationById_result, getUserCommunicationById_result._Fields>, java.io.Serializable, Cloneable   {
22638
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationById_result");
1590 varun.gupt 22639
 
3430 rajveer 22640
    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);
22641
    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 22642
 
3430 rajveer 22643
    private UserCommunication success; // required
22644
    private UserCommunicationException ucx; // required
1590 varun.gupt 22645
 
22646
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22647
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 22648
      SUCCESS((short)0, "success"),
22649
      UCX((short)1, "ucx");
22650
 
22651
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22652
 
22653
      static {
22654
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22655
          byName.put(field.getFieldName(), field);
22656
        }
22657
      }
22658
 
22659
      /**
22660
       * Find the _Fields constant that matches fieldId, or null if its not found.
22661
       */
22662
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22663
        switch(fieldId) {
22664
          case 0: // SUCCESS
22665
            return SUCCESS;
22666
          case 1: // UCX
22667
            return UCX;
22668
          default:
22669
            return null;
22670
        }
1590 varun.gupt 22671
      }
22672
 
22673
      /**
22674
       * Find the _Fields constant that matches fieldId, throwing an exception
22675
       * if it is not found.
22676
       */
22677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22678
        _Fields fields = findByThriftId(fieldId);
22679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22680
        return fields;
22681
      }
22682
 
22683
      /**
22684
       * Find the _Fields constant that matches name, or null if its not found.
22685
       */
22686
      public static _Fields findByName(String name) {
22687
        return byName.get(name);
22688
      }
22689
 
22690
      private final short _thriftId;
22691
      private final String _fieldName;
22692
 
22693
      _Fields(short thriftId, String fieldName) {
22694
        _thriftId = thriftId;
22695
        _fieldName = fieldName;
22696
      }
22697
 
22698
      public short getThriftFieldId() {
22699
        return _thriftId;
22700
      }
22701
 
22702
      public String getFieldName() {
22703
        return _fieldName;
22704
      }
22705
    }
22706
 
22707
    // isset id assignments
22708
 
3430 rajveer 22709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 22710
    static {
3430 rajveer 22711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22712
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22713
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class)));
22714
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationById_result.class, metaDataMap);
1590 varun.gupt 22718
    }
22719
 
22720
    public getUserCommunicationById_result() {
22721
    }
22722
 
22723
    public getUserCommunicationById_result(
22724
      UserCommunication success,
22725
      UserCommunicationException ucx)
22726
    {
22727
      this();
22728
      this.success = success;
22729
      this.ucx = ucx;
22730
    }
22731
 
22732
    /**
22733
     * Performs a deep copy on <i>other</i>.
22734
     */
22735
    public getUserCommunicationById_result(getUserCommunicationById_result other) {
22736
      if (other.isSetSuccess()) {
22737
        this.success = new UserCommunication(other.success);
22738
      }
22739
      if (other.isSetUcx()) {
22740
        this.ucx = new UserCommunicationException(other.ucx);
22741
      }
22742
    }
22743
 
22744
    public getUserCommunicationById_result deepCopy() {
22745
      return new getUserCommunicationById_result(this);
22746
    }
22747
 
3430 rajveer 22748
    @Override
22749
    public void clear() {
22750
      this.success = null;
22751
      this.ucx = null;
1590 varun.gupt 22752
    }
22753
 
22754
    public UserCommunication getSuccess() {
22755
      return this.success;
22756
    }
22757
 
3430 rajveer 22758
    public void setSuccess(UserCommunication success) {
1590 varun.gupt 22759
      this.success = success;
22760
    }
22761
 
22762
    public void unsetSuccess() {
22763
      this.success = null;
22764
    }
22765
 
3430 rajveer 22766
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22767
    public boolean isSetSuccess() {
22768
      return this.success != null;
22769
    }
22770
 
22771
    public void setSuccessIsSet(boolean value) {
22772
      if (!value) {
22773
        this.success = null;
22774
      }
22775
    }
22776
 
22777
    public UserCommunicationException getUcx() {
22778
      return this.ucx;
22779
    }
22780
 
3430 rajveer 22781
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 22782
      this.ucx = ucx;
22783
    }
22784
 
22785
    public void unsetUcx() {
22786
      this.ucx = null;
22787
    }
22788
 
3430 rajveer 22789
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22790
    public boolean isSetUcx() {
22791
      return this.ucx != null;
22792
    }
22793
 
22794
    public void setUcxIsSet(boolean value) {
22795
      if (!value) {
22796
        this.ucx = null;
22797
      }
22798
    }
22799
 
22800
    public void setFieldValue(_Fields field, Object value) {
22801
      switch (field) {
22802
      case SUCCESS:
22803
        if (value == null) {
22804
          unsetSuccess();
22805
        } else {
22806
          setSuccess((UserCommunication)value);
22807
        }
22808
        break;
22809
 
22810
      case UCX:
22811
        if (value == null) {
22812
          unsetUcx();
22813
        } else {
22814
          setUcx((UserCommunicationException)value);
22815
        }
22816
        break;
22817
 
22818
      }
22819
    }
22820
 
22821
    public Object getFieldValue(_Fields field) {
22822
      switch (field) {
22823
      case SUCCESS:
22824
        return getSuccess();
22825
 
22826
      case UCX:
22827
        return getUcx();
22828
 
22829
      }
22830
      throw new IllegalStateException();
22831
    }
22832
 
3430 rajveer 22833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22834
    public boolean isSet(_Fields field) {
22835
      if (field == null) {
22836
        throw new IllegalArgumentException();
22837
      }
1590 varun.gupt 22838
 
22839
      switch (field) {
22840
      case SUCCESS:
22841
        return isSetSuccess();
22842
      case UCX:
22843
        return isSetUcx();
22844
      }
22845
      throw new IllegalStateException();
22846
    }
22847
 
22848
    @Override
22849
    public boolean equals(Object that) {
22850
      if (that == null)
22851
        return false;
22852
      if (that instanceof getUserCommunicationById_result)
22853
        return this.equals((getUserCommunicationById_result)that);
22854
      return false;
22855
    }
22856
 
22857
    public boolean equals(getUserCommunicationById_result that) {
22858
      if (that == null)
22859
        return false;
22860
 
22861
      boolean this_present_success = true && this.isSetSuccess();
22862
      boolean that_present_success = true && that.isSetSuccess();
22863
      if (this_present_success || that_present_success) {
22864
        if (!(this_present_success && that_present_success))
22865
          return false;
22866
        if (!this.success.equals(that.success))
22867
          return false;
22868
      }
22869
 
22870
      boolean this_present_ucx = true && this.isSetUcx();
22871
      boolean that_present_ucx = true && that.isSetUcx();
22872
      if (this_present_ucx || that_present_ucx) {
22873
        if (!(this_present_ucx && that_present_ucx))
22874
          return false;
22875
        if (!this.ucx.equals(that.ucx))
22876
          return false;
22877
      }
22878
 
22879
      return true;
22880
    }
22881
 
22882
    @Override
22883
    public int hashCode() {
22884
      return 0;
22885
    }
22886
 
22887
    public int compareTo(getUserCommunicationById_result other) {
22888
      if (!getClass().equals(other.getClass())) {
22889
        return getClass().getName().compareTo(other.getClass().getName());
22890
      }
22891
 
22892
      int lastComparison = 0;
22893
      getUserCommunicationById_result typedOther = (getUserCommunicationById_result)other;
22894
 
3430 rajveer 22895
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 22896
      if (lastComparison != 0) {
22897
        return lastComparison;
22898
      }
3430 rajveer 22899
      if (isSetSuccess()) {
22900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22901
        if (lastComparison != 0) {
22902
          return lastComparison;
22903
        }
1590 varun.gupt 22904
      }
3430 rajveer 22905
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 22906
      if (lastComparison != 0) {
22907
        return lastComparison;
22908
      }
3430 rajveer 22909
      if (isSetUcx()) {
22910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
22911
        if (lastComparison != 0) {
22912
          return lastComparison;
22913
        }
1590 varun.gupt 22914
      }
22915
      return 0;
22916
    }
22917
 
3430 rajveer 22918
    public _Fields fieldForId(int fieldId) {
22919
      return _Fields.findByThriftId(fieldId);
22920
    }
22921
 
22922
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22923
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 22924
      iprot.readStructBegin();
22925
      while (true)
22926
      {
22927
        field = iprot.readFieldBegin();
3430 rajveer 22928
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 22929
          break;
22930
        }
3430 rajveer 22931
        switch (field.id) {
22932
          case 0: // SUCCESS
22933
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22934
              this.success = new UserCommunication();
22935
              this.success.read(iprot);
22936
            } else { 
22937
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22938
            }
22939
            break;
22940
          case 1: // UCX
22941
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22942
              this.ucx = new UserCommunicationException();
22943
              this.ucx.read(iprot);
22944
            } else { 
22945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22946
            }
22947
            break;
22948
          default:
22949
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 22950
        }
3430 rajveer 22951
        iprot.readFieldEnd();
1590 varun.gupt 22952
      }
22953
      iprot.readStructEnd();
22954
      validate();
22955
    }
22956
 
3430 rajveer 22957
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 22958
      oprot.writeStructBegin(STRUCT_DESC);
22959
 
22960
      if (this.isSetSuccess()) {
22961
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22962
        this.success.write(oprot);
22963
        oprot.writeFieldEnd();
22964
      } else if (this.isSetUcx()) {
22965
        oprot.writeFieldBegin(UCX_FIELD_DESC);
22966
        this.ucx.write(oprot);
22967
        oprot.writeFieldEnd();
22968
      }
22969
      oprot.writeFieldStop();
22970
      oprot.writeStructEnd();
22971
    }
22972
 
22973
    @Override
22974
    public String toString() {
22975
      StringBuilder sb = new StringBuilder("getUserCommunicationById_result(");
22976
      boolean first = true;
22977
 
22978
      sb.append("success:");
22979
      if (this.success == null) {
22980
        sb.append("null");
22981
      } else {
22982
        sb.append(this.success);
22983
      }
22984
      first = false;
22985
      if (!first) sb.append(", ");
22986
      sb.append("ucx:");
22987
      if (this.ucx == null) {
22988
        sb.append("null");
22989
      } else {
22990
        sb.append(this.ucx);
22991
      }
22992
      first = false;
22993
      sb.append(")");
22994
      return sb.toString();
22995
    }
22996
 
3430 rajveer 22997
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 22998
      // check for required fields
22999
    }
23000
 
3430 rajveer 23001
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23002
      try {
23003
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23004
      } catch (org.apache.thrift.TException te) {
23005
        throw new java.io.IOException(te);
23006
      }
23007
    }
23008
 
23009
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23010
      try {
23011
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23012
      } catch (org.apache.thrift.TException te) {
23013
        throw new java.io.IOException(te);
23014
      }
23015
    }
23016
 
1590 varun.gupt 23017
  }
23018
 
3430 rajveer 23019
  public static class getUserCommunicationByUser_args implements org.apache.thrift.TBase<getUserCommunicationByUser_args, getUserCommunicationByUser_args._Fields>, java.io.Serializable, Cloneable   {
23020
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationByUser_args");
1590 varun.gupt 23021
 
3430 rajveer 23022
    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 23023
 
3430 rajveer 23024
    private long userId; // required
1590 varun.gupt 23025
 
23026
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23027
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23028
      USER_ID((short)1, "userId");
23029
 
23030
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23031
 
23032
      static {
23033
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23034
          byName.put(field.getFieldName(), field);
23035
        }
23036
      }
23037
 
23038
      /**
23039
       * Find the _Fields constant that matches fieldId, or null if its not found.
23040
       */
23041
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23042
        switch(fieldId) {
23043
          case 1: // USER_ID
23044
            return USER_ID;
23045
          default:
23046
            return null;
23047
        }
1590 varun.gupt 23048
      }
23049
 
23050
      /**
23051
       * Find the _Fields constant that matches fieldId, throwing an exception
23052
       * if it is not found.
23053
       */
23054
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23055
        _Fields fields = findByThriftId(fieldId);
23056
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23057
        return fields;
23058
      }
23059
 
23060
      /**
23061
       * Find the _Fields constant that matches name, or null if its not found.
23062
       */
23063
      public static _Fields findByName(String name) {
23064
        return byName.get(name);
23065
      }
23066
 
23067
      private final short _thriftId;
23068
      private final String _fieldName;
23069
 
23070
      _Fields(short thriftId, String fieldName) {
23071
        _thriftId = thriftId;
23072
        _fieldName = fieldName;
23073
      }
23074
 
23075
      public short getThriftFieldId() {
23076
        return _thriftId;
23077
      }
23078
 
23079
      public String getFieldName() {
23080
        return _fieldName;
23081
      }
23082
    }
23083
 
23084
    // isset id assignments
23085
    private static final int __USERID_ISSET_ID = 0;
23086
    private BitSet __isset_bit_vector = new BitSet(1);
23087
 
3430 rajveer 23088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23089
    static {
3430 rajveer 23090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23091
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23093
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23094
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_args.class, metaDataMap);
1590 varun.gupt 23095
    }
23096
 
23097
    public getUserCommunicationByUser_args() {
23098
    }
23099
 
23100
    public getUserCommunicationByUser_args(
23101
      long userId)
23102
    {
23103
      this();
23104
      this.userId = userId;
23105
      setUserIdIsSet(true);
23106
    }
23107
 
23108
    /**
23109
     * Performs a deep copy on <i>other</i>.
23110
     */
23111
    public getUserCommunicationByUser_args(getUserCommunicationByUser_args other) {
23112
      __isset_bit_vector.clear();
23113
      __isset_bit_vector.or(other.__isset_bit_vector);
23114
      this.userId = other.userId;
23115
    }
23116
 
23117
    public getUserCommunicationByUser_args deepCopy() {
23118
      return new getUserCommunicationByUser_args(this);
23119
    }
23120
 
3430 rajveer 23121
    @Override
23122
    public void clear() {
23123
      setUserIdIsSet(false);
23124
      this.userId = 0;
1590 varun.gupt 23125
    }
23126
 
23127
    public long getUserId() {
23128
      return this.userId;
23129
    }
23130
 
3430 rajveer 23131
    public void setUserId(long userId) {
1590 varun.gupt 23132
      this.userId = userId;
23133
      setUserIdIsSet(true);
23134
    }
23135
 
23136
    public void unsetUserId() {
23137
      __isset_bit_vector.clear(__USERID_ISSET_ID);
23138
    }
23139
 
3430 rajveer 23140
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23141
    public boolean isSetUserId() {
23142
      return __isset_bit_vector.get(__USERID_ISSET_ID);
23143
    }
23144
 
23145
    public void setUserIdIsSet(boolean value) {
23146
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
23147
    }
23148
 
23149
    public void setFieldValue(_Fields field, Object value) {
23150
      switch (field) {
23151
      case USER_ID:
23152
        if (value == null) {
23153
          unsetUserId();
23154
        } else {
23155
          setUserId((Long)value);
23156
        }
23157
        break;
23158
 
23159
      }
23160
    }
23161
 
23162
    public Object getFieldValue(_Fields field) {
23163
      switch (field) {
23164
      case USER_ID:
3430 rajveer 23165
        return Long.valueOf(getUserId());
1590 varun.gupt 23166
 
23167
      }
23168
      throw new IllegalStateException();
23169
    }
23170
 
3430 rajveer 23171
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23172
    public boolean isSet(_Fields field) {
23173
      if (field == null) {
23174
        throw new IllegalArgumentException();
23175
      }
1590 varun.gupt 23176
 
23177
      switch (field) {
23178
      case USER_ID:
23179
        return isSetUserId();
23180
      }
23181
      throw new IllegalStateException();
23182
    }
23183
 
23184
    @Override
23185
    public boolean equals(Object that) {
23186
      if (that == null)
23187
        return false;
23188
      if (that instanceof getUserCommunicationByUser_args)
23189
        return this.equals((getUserCommunicationByUser_args)that);
23190
      return false;
23191
    }
23192
 
23193
    public boolean equals(getUserCommunicationByUser_args that) {
23194
      if (that == null)
23195
        return false;
23196
 
23197
      boolean this_present_userId = true;
23198
      boolean that_present_userId = true;
23199
      if (this_present_userId || that_present_userId) {
23200
        if (!(this_present_userId && that_present_userId))
23201
          return false;
23202
        if (this.userId != that.userId)
23203
          return false;
23204
      }
23205
 
23206
      return true;
23207
    }
23208
 
23209
    @Override
23210
    public int hashCode() {
23211
      return 0;
23212
    }
23213
 
23214
    public int compareTo(getUserCommunicationByUser_args other) {
23215
      if (!getClass().equals(other.getClass())) {
23216
        return getClass().getName().compareTo(other.getClass().getName());
23217
      }
23218
 
23219
      int lastComparison = 0;
23220
      getUserCommunicationByUser_args typedOther = (getUserCommunicationByUser_args)other;
23221
 
3430 rajveer 23222
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1590 varun.gupt 23223
      if (lastComparison != 0) {
23224
        return lastComparison;
23225
      }
3430 rajveer 23226
      if (isSetUserId()) {
23227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
23228
        if (lastComparison != 0) {
23229
          return lastComparison;
23230
        }
1590 varun.gupt 23231
      }
23232
      return 0;
23233
    }
23234
 
3430 rajveer 23235
    public _Fields fieldForId(int fieldId) {
23236
      return _Fields.findByThriftId(fieldId);
23237
    }
23238
 
23239
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23240
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23241
      iprot.readStructBegin();
23242
      while (true)
23243
      {
23244
        field = iprot.readFieldBegin();
3430 rajveer 23245
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23246
          break;
23247
        }
3430 rajveer 23248
        switch (field.id) {
23249
          case 1: // USER_ID
23250
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23251
              this.userId = iprot.readI64();
23252
              setUserIdIsSet(true);
23253
            } else { 
23254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23255
            }
23256
            break;
23257
          default:
23258
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23259
        }
3430 rajveer 23260
        iprot.readFieldEnd();
1590 varun.gupt 23261
      }
23262
      iprot.readStructEnd();
23263
      validate();
23264
    }
23265
 
3430 rajveer 23266
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23267
      validate();
23268
 
23269
      oprot.writeStructBegin(STRUCT_DESC);
23270
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
23271
      oprot.writeI64(this.userId);
23272
      oprot.writeFieldEnd();
23273
      oprot.writeFieldStop();
23274
      oprot.writeStructEnd();
23275
    }
23276
 
23277
    @Override
23278
    public String toString() {
23279
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_args(");
23280
      boolean first = true;
23281
 
23282
      sb.append("userId:");
23283
      sb.append(this.userId);
23284
      first = false;
23285
      sb.append(")");
23286
      return sb.toString();
23287
    }
23288
 
3430 rajveer 23289
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23290
      // check for required fields
23291
    }
23292
 
3430 rajveer 23293
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23294
      try {
23295
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23296
      } catch (org.apache.thrift.TException te) {
23297
        throw new java.io.IOException(te);
23298
      }
23299
    }
23300
 
23301
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23302
      try {
23303
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23304
        __isset_bit_vector = new BitSet(1);
23305
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23306
      } catch (org.apache.thrift.TException te) {
23307
        throw new java.io.IOException(te);
23308
      }
23309
    }
23310
 
1590 varun.gupt 23311
  }
23312
 
3430 rajveer 23313
  public static class getUserCommunicationByUser_result implements org.apache.thrift.TBase<getUserCommunicationByUser_result, getUserCommunicationByUser_result._Fields>, java.io.Serializable, Cloneable   {
23314
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationByUser_result");
1590 varun.gupt 23315
 
3430 rajveer 23316
    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);
23317
    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 23318
 
3430 rajveer 23319
    private List<UserCommunication> success; // required
23320
    private UserCommunicationException ucx; // required
1590 varun.gupt 23321
 
23322
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23323
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23324
      SUCCESS((short)0, "success"),
23325
      UCX((short)1, "ucx");
23326
 
23327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23328
 
23329
      static {
23330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23331
          byName.put(field.getFieldName(), field);
23332
        }
23333
      }
23334
 
23335
      /**
23336
       * Find the _Fields constant that matches fieldId, or null if its not found.
23337
       */
23338
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23339
        switch(fieldId) {
23340
          case 0: // SUCCESS
23341
            return SUCCESS;
23342
          case 1: // UCX
23343
            return UCX;
23344
          default:
23345
            return null;
23346
        }
1590 varun.gupt 23347
      }
23348
 
23349
      /**
23350
       * Find the _Fields constant that matches fieldId, throwing an exception
23351
       * if it is not found.
23352
       */
23353
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23354
        _Fields fields = findByThriftId(fieldId);
23355
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23356
        return fields;
23357
      }
23358
 
23359
      /**
23360
       * Find the _Fields constant that matches name, or null if its not found.
23361
       */
23362
      public static _Fields findByName(String name) {
23363
        return byName.get(name);
23364
      }
23365
 
23366
      private final short _thriftId;
23367
      private final String _fieldName;
23368
 
23369
      _Fields(short thriftId, String fieldName) {
23370
        _thriftId = thriftId;
23371
        _fieldName = fieldName;
23372
      }
23373
 
23374
      public short getThriftFieldId() {
23375
        return _thriftId;
23376
      }
23377
 
23378
      public String getFieldName() {
23379
        return _fieldName;
23380
      }
23381
    }
23382
 
23383
    // isset id assignments
23384
 
3430 rajveer 23385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23386
    static {
3430 rajveer 23387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23388
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23389
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23390
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class))));
23391
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23392
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23393
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23394
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_result.class, metaDataMap);
1590 varun.gupt 23395
    }
23396
 
23397
    public getUserCommunicationByUser_result() {
23398
    }
23399
 
23400
    public getUserCommunicationByUser_result(
23401
      List<UserCommunication> success,
23402
      UserCommunicationException ucx)
23403
    {
23404
      this();
23405
      this.success = success;
23406
      this.ucx = ucx;
23407
    }
23408
 
23409
    /**
23410
     * Performs a deep copy on <i>other</i>.
23411
     */
23412
    public getUserCommunicationByUser_result(getUserCommunicationByUser_result other) {
23413
      if (other.isSetSuccess()) {
23414
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
23415
        for (UserCommunication other_element : other.success) {
23416
          __this__success.add(new UserCommunication(other_element));
23417
        }
23418
        this.success = __this__success;
23419
      }
23420
      if (other.isSetUcx()) {
23421
        this.ucx = new UserCommunicationException(other.ucx);
23422
      }
23423
    }
23424
 
23425
    public getUserCommunicationByUser_result deepCopy() {
23426
      return new getUserCommunicationByUser_result(this);
23427
    }
23428
 
3430 rajveer 23429
    @Override
23430
    public void clear() {
23431
      this.success = null;
23432
      this.ucx = null;
1590 varun.gupt 23433
    }
23434
 
23435
    public int getSuccessSize() {
23436
      return (this.success == null) ? 0 : this.success.size();
23437
    }
23438
 
23439
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
23440
      return (this.success == null) ? null : this.success.iterator();
23441
    }
23442
 
23443
    public void addToSuccess(UserCommunication elem) {
23444
      if (this.success == null) {
23445
        this.success = new ArrayList<UserCommunication>();
23446
      }
23447
      this.success.add(elem);
23448
    }
23449
 
23450
    public List<UserCommunication> getSuccess() {
23451
      return this.success;
23452
    }
23453
 
3430 rajveer 23454
    public void setSuccess(List<UserCommunication> success) {
1590 varun.gupt 23455
      this.success = success;
23456
    }
23457
 
23458
    public void unsetSuccess() {
23459
      this.success = null;
23460
    }
23461
 
3430 rajveer 23462
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23463
    public boolean isSetSuccess() {
23464
      return this.success != null;
23465
    }
23466
 
23467
    public void setSuccessIsSet(boolean value) {
23468
      if (!value) {
23469
        this.success = null;
23470
      }
23471
    }
23472
 
23473
    public UserCommunicationException getUcx() {
23474
      return this.ucx;
23475
    }
23476
 
3430 rajveer 23477
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 23478
      this.ucx = ucx;
23479
    }
23480
 
23481
    public void unsetUcx() {
23482
      this.ucx = null;
23483
    }
23484
 
3430 rajveer 23485
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23486
    public boolean isSetUcx() {
23487
      return this.ucx != null;
23488
    }
23489
 
23490
    public void setUcxIsSet(boolean value) {
23491
      if (!value) {
23492
        this.ucx = null;
23493
      }
23494
    }
23495
 
23496
    public void setFieldValue(_Fields field, Object value) {
23497
      switch (field) {
23498
      case SUCCESS:
23499
        if (value == null) {
23500
          unsetSuccess();
23501
        } else {
23502
          setSuccess((List<UserCommunication>)value);
23503
        }
23504
        break;
23505
 
23506
      case UCX:
23507
        if (value == null) {
23508
          unsetUcx();
23509
        } else {
23510
          setUcx((UserCommunicationException)value);
23511
        }
23512
        break;
23513
 
23514
      }
23515
    }
23516
 
23517
    public Object getFieldValue(_Fields field) {
23518
      switch (field) {
23519
      case SUCCESS:
23520
        return getSuccess();
23521
 
23522
      case UCX:
23523
        return getUcx();
23524
 
23525
      }
23526
      throw new IllegalStateException();
23527
    }
23528
 
3430 rajveer 23529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23530
    public boolean isSet(_Fields field) {
23531
      if (field == null) {
23532
        throw new IllegalArgumentException();
23533
      }
1590 varun.gupt 23534
 
23535
      switch (field) {
23536
      case SUCCESS:
23537
        return isSetSuccess();
23538
      case UCX:
23539
        return isSetUcx();
23540
      }
23541
      throw new IllegalStateException();
23542
    }
23543
 
23544
    @Override
23545
    public boolean equals(Object that) {
23546
      if (that == null)
23547
        return false;
23548
      if (that instanceof getUserCommunicationByUser_result)
23549
        return this.equals((getUserCommunicationByUser_result)that);
23550
      return false;
23551
    }
23552
 
23553
    public boolean equals(getUserCommunicationByUser_result that) {
23554
      if (that == null)
23555
        return false;
23556
 
23557
      boolean this_present_success = true && this.isSetSuccess();
23558
      boolean that_present_success = true && that.isSetSuccess();
23559
      if (this_present_success || that_present_success) {
23560
        if (!(this_present_success && that_present_success))
23561
          return false;
23562
        if (!this.success.equals(that.success))
23563
          return false;
23564
      }
23565
 
23566
      boolean this_present_ucx = true && this.isSetUcx();
23567
      boolean that_present_ucx = true && that.isSetUcx();
23568
      if (this_present_ucx || that_present_ucx) {
23569
        if (!(this_present_ucx && that_present_ucx))
23570
          return false;
23571
        if (!this.ucx.equals(that.ucx))
23572
          return false;
23573
      }
23574
 
23575
      return true;
23576
    }
23577
 
23578
    @Override
23579
    public int hashCode() {
23580
      return 0;
23581
    }
23582
 
23583
    public int compareTo(getUserCommunicationByUser_result other) {
23584
      if (!getClass().equals(other.getClass())) {
23585
        return getClass().getName().compareTo(other.getClass().getName());
23586
      }
23587
 
23588
      int lastComparison = 0;
23589
      getUserCommunicationByUser_result typedOther = (getUserCommunicationByUser_result)other;
23590
 
3430 rajveer 23591
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 23592
      if (lastComparison != 0) {
23593
        return lastComparison;
23594
      }
3430 rajveer 23595
      if (isSetSuccess()) {
23596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23597
        if (lastComparison != 0) {
23598
          return lastComparison;
23599
        }
1590 varun.gupt 23600
      }
3430 rajveer 23601
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 23602
      if (lastComparison != 0) {
23603
        return lastComparison;
23604
      }
3430 rajveer 23605
      if (isSetUcx()) {
23606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
23607
        if (lastComparison != 0) {
23608
          return lastComparison;
23609
        }
1590 varun.gupt 23610
      }
23611
      return 0;
23612
    }
23613
 
3430 rajveer 23614
    public _Fields fieldForId(int fieldId) {
23615
      return _Fields.findByThriftId(fieldId);
23616
    }
23617
 
23618
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23619
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23620
      iprot.readStructBegin();
23621
      while (true)
23622
      {
23623
        field = iprot.readFieldBegin();
3430 rajveer 23624
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23625
          break;
23626
        }
3430 rajveer 23627
        switch (field.id) {
23628
          case 0: // SUCCESS
23629
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23630
              {
23631
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
23632
                this.success = new ArrayList<UserCommunication>(_list24.size);
23633
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
1590 varun.gupt 23634
                {
3430 rajveer 23635
                  UserCommunication _elem26; // required
23636
                  _elem26 = new UserCommunication();
23637
                  _elem26.read(iprot);
23638
                  this.success.add(_elem26);
1590 varun.gupt 23639
                }
3430 rajveer 23640
                iprot.readListEnd();
1590 varun.gupt 23641
              }
3430 rajveer 23642
            } else { 
23643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23644
            }
23645
            break;
23646
          case 1: // UCX
23647
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23648
              this.ucx = new UserCommunicationException();
23649
              this.ucx.read(iprot);
23650
            } else { 
23651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23652
            }
23653
            break;
23654
          default:
23655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23656
        }
3430 rajveer 23657
        iprot.readFieldEnd();
1590 varun.gupt 23658
      }
23659
      iprot.readStructEnd();
23660
      validate();
23661
    }
23662
 
3430 rajveer 23663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23664
      oprot.writeStructBegin(STRUCT_DESC);
23665
 
23666
      if (this.isSetSuccess()) {
23667
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23668
        {
3430 rajveer 23669
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 23670
          for (UserCommunication _iter27 : this.success)
1590 varun.gupt 23671
          {
3385 varun.gupt 23672
            _iter27.write(oprot);
1590 varun.gupt 23673
          }
23674
          oprot.writeListEnd();
23675
        }
23676
        oprot.writeFieldEnd();
23677
      } else if (this.isSetUcx()) {
23678
        oprot.writeFieldBegin(UCX_FIELD_DESC);
23679
        this.ucx.write(oprot);
23680
        oprot.writeFieldEnd();
23681
      }
23682
      oprot.writeFieldStop();
23683
      oprot.writeStructEnd();
23684
    }
23685
 
23686
    @Override
23687
    public String toString() {
23688
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_result(");
23689
      boolean first = true;
23690
 
23691
      sb.append("success:");
23692
      if (this.success == null) {
23693
        sb.append("null");
23694
      } else {
23695
        sb.append(this.success);
23696
      }
23697
      first = false;
23698
      if (!first) sb.append(", ");
23699
      sb.append("ucx:");
23700
      if (this.ucx == null) {
23701
        sb.append("null");
23702
      } else {
23703
        sb.append(this.ucx);
23704
      }
23705
      first = false;
23706
      sb.append(")");
23707
      return sb.toString();
23708
    }
23709
 
3430 rajveer 23710
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23711
      // check for required fields
23712
    }
23713
 
3430 rajveer 23714
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23715
      try {
23716
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23717
      } catch (org.apache.thrift.TException te) {
23718
        throw new java.io.IOException(te);
23719
      }
23720
    }
23721
 
23722
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23723
      try {
23724
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23725
      } catch (org.apache.thrift.TException te) {
23726
        throw new java.io.IOException(te);
23727
      }
23728
    }
23729
 
1590 varun.gupt 23730
  }
23731
 
3430 rajveer 23732
  public static class getAllUserCommunications_args implements org.apache.thrift.TBase<getAllUserCommunications_args, getAllUserCommunications_args._Fields>, java.io.Serializable, Cloneable   {
23733
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserCommunications_args");
1590 varun.gupt 23734
 
23735
 
23736
 
23737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23739
;
23740
 
23741
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23742
 
23743
      static {
23744
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23745
          byName.put(field.getFieldName(), field);
23746
        }
23747
      }
23748
 
23749
      /**
23750
       * Find the _Fields constant that matches fieldId, or null if its not found.
23751
       */
23752
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23753
        switch(fieldId) {
23754
          default:
23755
            return null;
23756
        }
1590 varun.gupt 23757
      }
23758
 
23759
      /**
23760
       * Find the _Fields constant that matches fieldId, throwing an exception
23761
       * if it is not found.
23762
       */
23763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23764
        _Fields fields = findByThriftId(fieldId);
23765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23766
        return fields;
23767
      }
23768
 
23769
      /**
23770
       * Find the _Fields constant that matches name, or null if its not found.
23771
       */
23772
      public static _Fields findByName(String name) {
23773
        return byName.get(name);
23774
      }
23775
 
23776
      private final short _thriftId;
23777
      private final String _fieldName;
23778
 
23779
      _Fields(short thriftId, String fieldName) {
23780
        _thriftId = thriftId;
23781
        _fieldName = fieldName;
23782
      }
23783
 
23784
      public short getThriftFieldId() {
23785
        return _thriftId;
23786
      }
23787
 
23788
      public String getFieldName() {
23789
        return _fieldName;
23790
      }
23791
    }
3430 rajveer 23792
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23793
    static {
3430 rajveer 23794
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserCommunications_args.class, metaDataMap);
1590 varun.gupt 23797
    }
23798
 
23799
    public getAllUserCommunications_args() {
23800
    }
23801
 
23802
    /**
23803
     * Performs a deep copy on <i>other</i>.
23804
     */
23805
    public getAllUserCommunications_args(getAllUserCommunications_args other) {
23806
    }
23807
 
23808
    public getAllUserCommunications_args deepCopy() {
23809
      return new getAllUserCommunications_args(this);
23810
    }
23811
 
3430 rajveer 23812
    @Override
23813
    public void clear() {
1590 varun.gupt 23814
    }
23815
 
23816
    public void setFieldValue(_Fields field, Object value) {
23817
      switch (field) {
23818
      }
23819
    }
23820
 
23821
    public Object getFieldValue(_Fields field) {
23822
      switch (field) {
23823
      }
23824
      throw new IllegalStateException();
23825
    }
23826
 
3430 rajveer 23827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23828
    public boolean isSet(_Fields field) {
23829
      if (field == null) {
23830
        throw new IllegalArgumentException();
23831
      }
1590 varun.gupt 23832
 
23833
      switch (field) {
23834
      }
23835
      throw new IllegalStateException();
23836
    }
23837
 
23838
    @Override
23839
    public boolean equals(Object that) {
23840
      if (that == null)
23841
        return false;
23842
      if (that instanceof getAllUserCommunications_args)
23843
        return this.equals((getAllUserCommunications_args)that);
23844
      return false;
23845
    }
23846
 
23847
    public boolean equals(getAllUserCommunications_args that) {
23848
      if (that == null)
23849
        return false;
23850
 
23851
      return true;
23852
    }
23853
 
23854
    @Override
23855
    public int hashCode() {
23856
      return 0;
23857
    }
23858
 
23859
    public int compareTo(getAllUserCommunications_args other) {
23860
      if (!getClass().equals(other.getClass())) {
23861
        return getClass().getName().compareTo(other.getClass().getName());
23862
      }
23863
 
23864
      int lastComparison = 0;
23865
      getAllUserCommunications_args typedOther = (getAllUserCommunications_args)other;
23866
 
23867
      return 0;
23868
    }
23869
 
3430 rajveer 23870
    public _Fields fieldForId(int fieldId) {
23871
      return _Fields.findByThriftId(fieldId);
23872
    }
23873
 
23874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23875
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23876
      iprot.readStructBegin();
23877
      while (true)
23878
      {
23879
        field = iprot.readFieldBegin();
3430 rajveer 23880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23881
          break;
23882
        }
3430 rajveer 23883
        switch (field.id) {
23884
          default:
23885
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23886
        }
3430 rajveer 23887
        iprot.readFieldEnd();
1590 varun.gupt 23888
      }
23889
      iprot.readStructEnd();
23890
      validate();
23891
    }
23892
 
3430 rajveer 23893
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23894
      validate();
23895
 
23896
      oprot.writeStructBegin(STRUCT_DESC);
23897
      oprot.writeFieldStop();
23898
      oprot.writeStructEnd();
23899
    }
23900
 
23901
    @Override
23902
    public String toString() {
23903
      StringBuilder sb = new StringBuilder("getAllUserCommunications_args(");
23904
      boolean first = true;
23905
 
23906
      sb.append(")");
23907
      return sb.toString();
23908
    }
23909
 
3430 rajveer 23910
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23911
      // check for required fields
23912
    }
23913
 
3430 rajveer 23914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23915
      try {
23916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23917
      } catch (org.apache.thrift.TException te) {
23918
        throw new java.io.IOException(te);
23919
      }
23920
    }
23921
 
23922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23923
      try {
23924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23925
      } catch (org.apache.thrift.TException te) {
23926
        throw new java.io.IOException(te);
23927
      }
23928
    }
23929
 
1590 varun.gupt 23930
  }
23931
 
3430 rajveer 23932
  public static class getAllUserCommunications_result implements org.apache.thrift.TBase<getAllUserCommunications_result, getAllUserCommunications_result._Fields>, java.io.Serializable, Cloneable   {
23933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserCommunications_result");
1590 varun.gupt 23934
 
3430 rajveer 23935
    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);
23936
    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 23937
 
3430 rajveer 23938
    private List<UserCommunication> success; // required
23939
    private UserCommunicationException ucx; // required
1590 varun.gupt 23940
 
23941
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23942
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23943
      SUCCESS((short)0, "success"),
23944
      UCX((short)1, "ucx");
23945
 
23946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23947
 
23948
      static {
23949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23950
          byName.put(field.getFieldName(), field);
23951
        }
23952
      }
23953
 
23954
      /**
23955
       * Find the _Fields constant that matches fieldId, or null if its not found.
23956
       */
23957
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23958
        switch(fieldId) {
23959
          case 0: // SUCCESS
23960
            return SUCCESS;
23961
          case 1: // UCX
23962
            return UCX;
23963
          default:
23964
            return null;
23965
        }
1590 varun.gupt 23966
      }
23967
 
23968
      /**
23969
       * Find the _Fields constant that matches fieldId, throwing an exception
23970
       * if it is not found.
23971
       */
23972
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23973
        _Fields fields = findByThriftId(fieldId);
23974
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23975
        return fields;
23976
      }
23977
 
23978
      /**
23979
       * Find the _Fields constant that matches name, or null if its not found.
23980
       */
23981
      public static _Fields findByName(String name) {
23982
        return byName.get(name);
23983
      }
23984
 
23985
      private final short _thriftId;
23986
      private final String _fieldName;
23987
 
23988
      _Fields(short thriftId, String fieldName) {
23989
        _thriftId = thriftId;
23990
        _fieldName = fieldName;
23991
      }
23992
 
23993
      public short getThriftFieldId() {
23994
        return _thriftId;
23995
      }
23996
 
23997
      public String getFieldName() {
23998
        return _fieldName;
23999
      }
24000
    }
24001
 
24002
    // isset id assignments
24003
 
3430 rajveer 24004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 24005
    static {
3430 rajveer 24006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24007
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24008
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24009
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class))));
24010
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserCommunications_result.class, metaDataMap);
1590 varun.gupt 24014
    }
24015
 
24016
    public getAllUserCommunications_result() {
24017
    }
24018
 
24019
    public getAllUserCommunications_result(
24020
      List<UserCommunication> success,
24021
      UserCommunicationException ucx)
24022
    {
24023
      this();
24024
      this.success = success;
24025
      this.ucx = ucx;
24026
    }
24027
 
24028
    /**
24029
     * Performs a deep copy on <i>other</i>.
24030
     */
24031
    public getAllUserCommunications_result(getAllUserCommunications_result other) {
24032
      if (other.isSetSuccess()) {
24033
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
24034
        for (UserCommunication other_element : other.success) {
24035
          __this__success.add(new UserCommunication(other_element));
24036
        }
24037
        this.success = __this__success;
24038
      }
24039
      if (other.isSetUcx()) {
24040
        this.ucx = new UserCommunicationException(other.ucx);
24041
      }
24042
    }
24043
 
24044
    public getAllUserCommunications_result deepCopy() {
24045
      return new getAllUserCommunications_result(this);
24046
    }
24047
 
3430 rajveer 24048
    @Override
24049
    public void clear() {
24050
      this.success = null;
24051
      this.ucx = null;
1590 varun.gupt 24052
    }
24053
 
24054
    public int getSuccessSize() {
24055
      return (this.success == null) ? 0 : this.success.size();
24056
    }
24057
 
24058
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
24059
      return (this.success == null) ? null : this.success.iterator();
24060
    }
24061
 
24062
    public void addToSuccess(UserCommunication elem) {
24063
      if (this.success == null) {
24064
        this.success = new ArrayList<UserCommunication>();
24065
      }
24066
      this.success.add(elem);
24067
    }
24068
 
24069
    public List<UserCommunication> getSuccess() {
24070
      return this.success;
24071
    }
24072
 
3430 rajveer 24073
    public void setSuccess(List<UserCommunication> success) {
1590 varun.gupt 24074
      this.success = success;
24075
    }
24076
 
24077
    public void unsetSuccess() {
24078
      this.success = null;
24079
    }
24080
 
3430 rajveer 24081
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 24082
    public boolean isSetSuccess() {
24083
      return this.success != null;
24084
    }
24085
 
24086
    public void setSuccessIsSet(boolean value) {
24087
      if (!value) {
24088
        this.success = null;
24089
      }
24090
    }
24091
 
24092
    public UserCommunicationException getUcx() {
24093
      return this.ucx;
24094
    }
24095
 
3430 rajveer 24096
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 24097
      this.ucx = ucx;
24098
    }
24099
 
24100
    public void unsetUcx() {
24101
      this.ucx = null;
24102
    }
24103
 
3430 rajveer 24104
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 24105
    public boolean isSetUcx() {
24106
      return this.ucx != null;
24107
    }
24108
 
24109
    public void setUcxIsSet(boolean value) {
24110
      if (!value) {
24111
        this.ucx = null;
24112
      }
24113
    }
24114
 
24115
    public void setFieldValue(_Fields field, Object value) {
24116
      switch (field) {
24117
      case SUCCESS:
24118
        if (value == null) {
24119
          unsetSuccess();
24120
        } else {
24121
          setSuccess((List<UserCommunication>)value);
24122
        }
24123
        break;
24124
 
24125
      case UCX:
24126
        if (value == null) {
24127
          unsetUcx();
24128
        } else {
24129
          setUcx((UserCommunicationException)value);
24130
        }
24131
        break;
24132
 
24133
      }
24134
    }
24135
 
24136
    public Object getFieldValue(_Fields field) {
24137
      switch (field) {
24138
      case SUCCESS:
24139
        return getSuccess();
24140
 
24141
      case UCX:
24142
        return getUcx();
24143
 
24144
      }
24145
      throw new IllegalStateException();
24146
    }
24147
 
3430 rajveer 24148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24149
    public boolean isSet(_Fields field) {
24150
      if (field == null) {
24151
        throw new IllegalArgumentException();
24152
      }
1590 varun.gupt 24153
 
24154
      switch (field) {
24155
      case SUCCESS:
24156
        return isSetSuccess();
24157
      case UCX:
24158
        return isSetUcx();
24159
      }
24160
      throw new IllegalStateException();
24161
    }
24162
 
24163
    @Override
24164
    public boolean equals(Object that) {
24165
      if (that == null)
24166
        return false;
24167
      if (that instanceof getAllUserCommunications_result)
24168
        return this.equals((getAllUserCommunications_result)that);
24169
      return false;
24170
    }
24171
 
24172
    public boolean equals(getAllUserCommunications_result that) {
24173
      if (that == null)
24174
        return false;
24175
 
24176
      boolean this_present_success = true && this.isSetSuccess();
24177
      boolean that_present_success = true && that.isSetSuccess();
24178
      if (this_present_success || that_present_success) {
24179
        if (!(this_present_success && that_present_success))
24180
          return false;
24181
        if (!this.success.equals(that.success))
24182
          return false;
24183
      }
24184
 
24185
      boolean this_present_ucx = true && this.isSetUcx();
24186
      boolean that_present_ucx = true && that.isSetUcx();
24187
      if (this_present_ucx || that_present_ucx) {
24188
        if (!(this_present_ucx && that_present_ucx))
24189
          return false;
24190
        if (!this.ucx.equals(that.ucx))
24191
          return false;
24192
      }
24193
 
24194
      return true;
24195
    }
24196
 
24197
    @Override
24198
    public int hashCode() {
24199
      return 0;
24200
    }
24201
 
24202
    public int compareTo(getAllUserCommunications_result other) {
24203
      if (!getClass().equals(other.getClass())) {
24204
        return getClass().getName().compareTo(other.getClass().getName());
24205
      }
24206
 
24207
      int lastComparison = 0;
24208
      getAllUserCommunications_result typedOther = (getAllUserCommunications_result)other;
24209
 
3430 rajveer 24210
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 24211
      if (lastComparison != 0) {
24212
        return lastComparison;
24213
      }
3430 rajveer 24214
      if (isSetSuccess()) {
24215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24216
        if (lastComparison != 0) {
24217
          return lastComparison;
24218
        }
1590 varun.gupt 24219
      }
3430 rajveer 24220
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 24221
      if (lastComparison != 0) {
24222
        return lastComparison;
24223
      }
3430 rajveer 24224
      if (isSetUcx()) {
24225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
24226
        if (lastComparison != 0) {
24227
          return lastComparison;
24228
        }
1590 varun.gupt 24229
      }
24230
      return 0;
24231
    }
24232
 
3430 rajveer 24233
    public _Fields fieldForId(int fieldId) {
24234
      return _Fields.findByThriftId(fieldId);
24235
    }
24236
 
24237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24238
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 24239
      iprot.readStructBegin();
24240
      while (true)
24241
      {
24242
        field = iprot.readFieldBegin();
3430 rajveer 24243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 24244
          break;
24245
        }
3430 rajveer 24246
        switch (field.id) {
24247
          case 0: // SUCCESS
24248
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24249
              {
24250
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
24251
                this.success = new ArrayList<UserCommunication>(_list28.size);
24252
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
1590 varun.gupt 24253
                {
3430 rajveer 24254
                  UserCommunication _elem30; // required
24255
                  _elem30 = new UserCommunication();
24256
                  _elem30.read(iprot);
24257
                  this.success.add(_elem30);
1590 varun.gupt 24258
                }
3430 rajveer 24259
                iprot.readListEnd();
1590 varun.gupt 24260
              }
3430 rajveer 24261
            } else { 
24262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24263
            }
24264
            break;
24265
          case 1: // UCX
24266
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24267
              this.ucx = new UserCommunicationException();
24268
              this.ucx.read(iprot);
24269
            } else { 
24270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24271
            }
24272
            break;
24273
          default:
24274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 24275
        }
3430 rajveer 24276
        iprot.readFieldEnd();
1590 varun.gupt 24277
      }
24278
      iprot.readStructEnd();
24279
      validate();
24280
    }
24281
 
3430 rajveer 24282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 24283
      oprot.writeStructBegin(STRUCT_DESC);
24284
 
24285
      if (this.isSetSuccess()) {
24286
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24287
        {
3430 rajveer 24288
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 24289
          for (UserCommunication _iter31 : this.success)
1590 varun.gupt 24290
          {
3385 varun.gupt 24291
            _iter31.write(oprot);
1590 varun.gupt 24292
          }
24293
          oprot.writeListEnd();
24294
        }
24295
        oprot.writeFieldEnd();
24296
      } else if (this.isSetUcx()) {
24297
        oprot.writeFieldBegin(UCX_FIELD_DESC);
24298
        this.ucx.write(oprot);
24299
        oprot.writeFieldEnd();
24300
      }
24301
      oprot.writeFieldStop();
24302
      oprot.writeStructEnd();
24303
    }
24304
 
24305
    @Override
24306
    public String toString() {
24307
      StringBuilder sb = new StringBuilder("getAllUserCommunications_result(");
24308
      boolean first = true;
24309
 
24310
      sb.append("success:");
24311
      if (this.success == null) {
24312
        sb.append("null");
24313
      } else {
24314
        sb.append(this.success);
24315
      }
24316
      first = false;
24317
      if (!first) sb.append(", ");
24318
      sb.append("ucx:");
24319
      if (this.ucx == null) {
24320
        sb.append("null");
24321
      } else {
24322
        sb.append(this.ucx);
24323
      }
24324
      first = false;
24325
      sb.append(")");
24326
      return sb.toString();
24327
    }
24328
 
3430 rajveer 24329
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 24330
      // check for required fields
24331
    }
24332
 
3430 rajveer 24333
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24334
      try {
24335
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24336
      } catch (org.apache.thrift.TException te) {
24337
        throw new java.io.IOException(te);
24338
      }
24339
    }
24340
 
24341
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24342
      try {
24343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24344
      } catch (org.apache.thrift.TException te) {
24345
        throw new java.io.IOException(te);
24346
      }
24347
    }
24348
 
1590 varun.gupt 24349
  }
24350
 
3430 rajveer 24351
  public static class createMasterAffiliate_args implements org.apache.thrift.TBase<createMasterAffiliate_args, createMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
24352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_args");
1846 vikas 24353
 
3430 rajveer 24354
    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);
24355
    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 24356
 
3430 rajveer 24357
    private String name; // required
24358
    private long addedOn; // required
1846 vikas 24359
 
24360
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24361
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1860 vikas 24362
      NAME((short)1, "name"),
24363
      ADDED_ON((short)2, "addedOn");
1846 vikas 24364
 
24365
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24366
 
24367
      static {
24368
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24369
          byName.put(field.getFieldName(), field);
24370
        }
24371
      }
24372
 
24373
      /**
24374
       * Find the _Fields constant that matches fieldId, or null if its not found.
24375
       */
24376
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24377
        switch(fieldId) {
24378
          case 1: // NAME
24379
            return NAME;
24380
          case 2: // ADDED_ON
24381
            return ADDED_ON;
24382
          default:
24383
            return null;
24384
        }
1846 vikas 24385
      }
24386
 
24387
      /**
24388
       * Find the _Fields constant that matches fieldId, throwing an exception
24389
       * if it is not found.
24390
       */
24391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24392
        _Fields fields = findByThriftId(fieldId);
24393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24394
        return fields;
24395
      }
24396
 
24397
      /**
24398
       * Find the _Fields constant that matches name, or null if its not found.
24399
       */
24400
      public static _Fields findByName(String name) {
24401
        return byName.get(name);
24402
      }
24403
 
24404
      private final short _thriftId;
24405
      private final String _fieldName;
24406
 
24407
      _Fields(short thriftId, String fieldName) {
24408
        _thriftId = thriftId;
24409
        _fieldName = fieldName;
24410
      }
24411
 
24412
      public short getThriftFieldId() {
24413
        return _thriftId;
24414
      }
24415
 
24416
      public String getFieldName() {
24417
        return _fieldName;
24418
      }
24419
    }
24420
 
24421
    // isset id assignments
1860 vikas 24422
    private static final int __ADDEDON_ISSET_ID = 0;
24423
    private BitSet __isset_bit_vector = new BitSet(1);
1846 vikas 24424
 
3430 rajveer 24425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 24426
    static {
3430 rajveer 24427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24428
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24430
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24431
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24432
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24433
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createMasterAffiliate_args.class, metaDataMap);
1846 vikas 24434
    }
24435
 
24436
    public createMasterAffiliate_args() {
24437
    }
24438
 
24439
    public createMasterAffiliate_args(
1860 vikas 24440
      String name,
24441
      long addedOn)
1846 vikas 24442
    {
24443
      this();
24444
      this.name = name;
1860 vikas 24445
      this.addedOn = addedOn;
24446
      setAddedOnIsSet(true);
1846 vikas 24447
    }
24448
 
24449
    /**
24450
     * Performs a deep copy on <i>other</i>.
24451
     */
24452
    public createMasterAffiliate_args(createMasterAffiliate_args other) {
1860 vikas 24453
      __isset_bit_vector.clear();
24454
      __isset_bit_vector.or(other.__isset_bit_vector);
1846 vikas 24455
      if (other.isSetName()) {
24456
        this.name = other.name;
24457
      }
1860 vikas 24458
      this.addedOn = other.addedOn;
1846 vikas 24459
    }
24460
 
24461
    public createMasterAffiliate_args deepCopy() {
24462
      return new createMasterAffiliate_args(this);
24463
    }
24464
 
3430 rajveer 24465
    @Override
24466
    public void clear() {
24467
      this.name = null;
24468
      setAddedOnIsSet(false);
24469
      this.addedOn = 0;
1846 vikas 24470
    }
24471
 
24472
    public String getName() {
24473
      return this.name;
24474
    }
24475
 
3430 rajveer 24476
    public void setName(String name) {
1846 vikas 24477
      this.name = name;
24478
    }
24479
 
24480
    public void unsetName() {
24481
      this.name = null;
24482
    }
24483
 
3430 rajveer 24484
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 24485
    public boolean isSetName() {
24486
      return this.name != null;
24487
    }
24488
 
24489
    public void setNameIsSet(boolean value) {
24490
      if (!value) {
24491
        this.name = null;
24492
      }
24493
    }
24494
 
1860 vikas 24495
    public long getAddedOn() {
24496
      return this.addedOn;
24497
    }
24498
 
3430 rajveer 24499
    public void setAddedOn(long addedOn) {
1860 vikas 24500
      this.addedOn = addedOn;
24501
      setAddedOnIsSet(true);
24502
    }
24503
 
24504
    public void unsetAddedOn() {
24505
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
24506
    }
24507
 
3430 rajveer 24508
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 24509
    public boolean isSetAddedOn() {
24510
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
24511
    }
24512
 
24513
    public void setAddedOnIsSet(boolean value) {
24514
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
24515
    }
24516
 
1846 vikas 24517
    public void setFieldValue(_Fields field, Object value) {
24518
      switch (field) {
24519
      case NAME:
24520
        if (value == null) {
24521
          unsetName();
24522
        } else {
24523
          setName((String)value);
24524
        }
24525
        break;
24526
 
1860 vikas 24527
      case ADDED_ON:
24528
        if (value == null) {
24529
          unsetAddedOn();
24530
        } else {
24531
          setAddedOn((Long)value);
24532
        }
24533
        break;
24534
 
1846 vikas 24535
      }
24536
    }
24537
 
24538
    public Object getFieldValue(_Fields field) {
24539
      switch (field) {
24540
      case NAME:
24541
        return getName();
24542
 
1860 vikas 24543
      case ADDED_ON:
3430 rajveer 24544
        return Long.valueOf(getAddedOn());
1860 vikas 24545
 
1846 vikas 24546
      }
24547
      throw new IllegalStateException();
24548
    }
24549
 
3430 rajveer 24550
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24551
    public boolean isSet(_Fields field) {
24552
      if (field == null) {
24553
        throw new IllegalArgumentException();
24554
      }
1846 vikas 24555
 
24556
      switch (field) {
24557
      case NAME:
24558
        return isSetName();
1860 vikas 24559
      case ADDED_ON:
24560
        return isSetAddedOn();
1846 vikas 24561
      }
24562
      throw new IllegalStateException();
24563
    }
24564
 
24565
    @Override
24566
    public boolean equals(Object that) {
24567
      if (that == null)
24568
        return false;
24569
      if (that instanceof createMasterAffiliate_args)
24570
        return this.equals((createMasterAffiliate_args)that);
24571
      return false;
24572
    }
24573
 
24574
    public boolean equals(createMasterAffiliate_args that) {
24575
      if (that == null)
24576
        return false;
24577
 
24578
      boolean this_present_name = true && this.isSetName();
24579
      boolean that_present_name = true && that.isSetName();
24580
      if (this_present_name || that_present_name) {
24581
        if (!(this_present_name && that_present_name))
24582
          return false;
24583
        if (!this.name.equals(that.name))
24584
          return false;
24585
      }
24586
 
1860 vikas 24587
      boolean this_present_addedOn = true;
24588
      boolean that_present_addedOn = true;
24589
      if (this_present_addedOn || that_present_addedOn) {
24590
        if (!(this_present_addedOn && that_present_addedOn))
24591
          return false;
24592
        if (this.addedOn != that.addedOn)
24593
          return false;
24594
      }
24595
 
1846 vikas 24596
      return true;
24597
    }
24598
 
24599
    @Override
24600
    public int hashCode() {
24601
      return 0;
24602
    }
24603
 
24604
    public int compareTo(createMasterAffiliate_args other) {
24605
      if (!getClass().equals(other.getClass())) {
24606
        return getClass().getName().compareTo(other.getClass().getName());
24607
      }
24608
 
24609
      int lastComparison = 0;
24610
      createMasterAffiliate_args typedOther = (createMasterAffiliate_args)other;
24611
 
3430 rajveer 24612
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 24613
      if (lastComparison != 0) {
24614
        return lastComparison;
24615
      }
3430 rajveer 24616
      if (isSetName()) {
24617
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
24618
        if (lastComparison != 0) {
24619
          return lastComparison;
24620
        }
1846 vikas 24621
      }
3430 rajveer 24622
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 24623
      if (lastComparison != 0) {
24624
        return lastComparison;
24625
      }
3430 rajveer 24626
      if (isSetAddedOn()) {
24627
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
24628
        if (lastComparison != 0) {
24629
          return lastComparison;
24630
        }
1860 vikas 24631
      }
1846 vikas 24632
      return 0;
24633
    }
24634
 
3430 rajveer 24635
    public _Fields fieldForId(int fieldId) {
24636
      return _Fields.findByThriftId(fieldId);
24637
    }
24638
 
24639
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24640
      org.apache.thrift.protocol.TField field;
1846 vikas 24641
      iprot.readStructBegin();
24642
      while (true)
24643
      {
24644
        field = iprot.readFieldBegin();
3430 rajveer 24645
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 24646
          break;
24647
        }
3430 rajveer 24648
        switch (field.id) {
24649
          case 1: // NAME
24650
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24651
              this.name = iprot.readString();
24652
            } else { 
24653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24654
            }
24655
            break;
24656
          case 2: // ADDED_ON
24657
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24658
              this.addedOn = iprot.readI64();
24659
              setAddedOnIsSet(true);
24660
            } else { 
24661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24662
            }
24663
            break;
24664
          default:
24665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 24666
        }
3430 rajveer 24667
        iprot.readFieldEnd();
1846 vikas 24668
      }
24669
      iprot.readStructEnd();
24670
      validate();
24671
    }
24672
 
3430 rajveer 24673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 24674
      validate();
24675
 
24676
      oprot.writeStructBegin(STRUCT_DESC);
24677
      if (this.name != null) {
24678
        oprot.writeFieldBegin(NAME_FIELD_DESC);
24679
        oprot.writeString(this.name);
24680
        oprot.writeFieldEnd();
24681
      }
1860 vikas 24682
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
24683
      oprot.writeI64(this.addedOn);
24684
      oprot.writeFieldEnd();
1846 vikas 24685
      oprot.writeFieldStop();
24686
      oprot.writeStructEnd();
24687
    }
24688
 
24689
    @Override
24690
    public String toString() {
24691
      StringBuilder sb = new StringBuilder("createMasterAffiliate_args(");
24692
      boolean first = true;
24693
 
24694
      sb.append("name:");
24695
      if (this.name == null) {
24696
        sb.append("null");
24697
      } else {
24698
        sb.append(this.name);
24699
      }
24700
      first = false;
1860 vikas 24701
      if (!first) sb.append(", ");
24702
      sb.append("addedOn:");
24703
      sb.append(this.addedOn);
24704
      first = false;
1846 vikas 24705
      sb.append(")");
24706
      return sb.toString();
24707
    }
24708
 
3430 rajveer 24709
    public void validate() throws org.apache.thrift.TException {
1846 vikas 24710
      // check for required fields
24711
    }
24712
 
3430 rajveer 24713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24714
      try {
24715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24716
      } catch (org.apache.thrift.TException te) {
24717
        throw new java.io.IOException(te);
24718
      }
24719
    }
24720
 
24721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24722
      try {
24723
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24724
        __isset_bit_vector = new BitSet(1);
24725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24726
      } catch (org.apache.thrift.TException te) {
24727
        throw new java.io.IOException(te);
24728
      }
24729
    }
24730
 
1846 vikas 24731
  }
24732
 
3430 rajveer 24733
  public static class createMasterAffiliate_result implements org.apache.thrift.TBase<createMasterAffiliate_result, createMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
24734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_result");
1846 vikas 24735
 
3430 rajveer 24736
    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);
24737
    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 24738
 
3430 rajveer 24739
    private MasterAffiliate success; // required
24740
    private UserAffiliateException utx; // required
1846 vikas 24741
 
24742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 24744
      SUCCESS((short)0, "success"),
24745
      UTX((short)1, "utx");
24746
 
24747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24748
 
24749
      static {
24750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24751
          byName.put(field.getFieldName(), field);
24752
        }
24753
      }
24754
 
24755
      /**
24756
       * Find the _Fields constant that matches fieldId, or null if its not found.
24757
       */
24758
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24759
        switch(fieldId) {
24760
          case 0: // SUCCESS
24761
            return SUCCESS;
24762
          case 1: // UTX
24763
            return UTX;
24764
          default:
24765
            return null;
24766
        }
1846 vikas 24767
      }
24768
 
24769
      /**
24770
       * Find the _Fields constant that matches fieldId, throwing an exception
24771
       * if it is not found.
24772
       */
24773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24774
        _Fields fields = findByThriftId(fieldId);
24775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24776
        return fields;
24777
      }
24778
 
24779
      /**
24780
       * Find the _Fields constant that matches name, or null if its not found.
24781
       */
24782
      public static _Fields findByName(String name) {
24783
        return byName.get(name);
24784
      }
24785
 
24786
      private final short _thriftId;
24787
      private final String _fieldName;
24788
 
24789
      _Fields(short thriftId, String fieldName) {
24790
        _thriftId = thriftId;
24791
        _fieldName = fieldName;
24792
      }
24793
 
24794
      public short getThriftFieldId() {
24795
        return _thriftId;
24796
      }
24797
 
24798
      public String getFieldName() {
24799
        return _fieldName;
24800
      }
24801
    }
24802
 
24803
    // isset id assignments
24804
 
3430 rajveer 24805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 24806
    static {
3430 rajveer 24807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24808
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24809
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
24810
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createMasterAffiliate_result.class, metaDataMap);
1846 vikas 24814
    }
24815
 
24816
    public createMasterAffiliate_result() {
24817
    }
24818
 
24819
    public createMasterAffiliate_result(
24820
      MasterAffiliate success,
1998 vikas 24821
      UserAffiliateException utx)
1846 vikas 24822
    {
24823
      this();
24824
      this.success = success;
24825
      this.utx = utx;
24826
    }
24827
 
24828
    /**
24829
     * Performs a deep copy on <i>other</i>.
24830
     */
24831
    public createMasterAffiliate_result(createMasterAffiliate_result other) {
24832
      if (other.isSetSuccess()) {
24833
        this.success = new MasterAffiliate(other.success);
24834
      }
24835
      if (other.isSetUtx()) {
1998 vikas 24836
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 24837
      }
24838
    }
24839
 
24840
    public createMasterAffiliate_result deepCopy() {
24841
      return new createMasterAffiliate_result(this);
24842
    }
24843
 
3430 rajveer 24844
    @Override
24845
    public void clear() {
24846
      this.success = null;
24847
      this.utx = null;
1846 vikas 24848
    }
24849
 
24850
    public MasterAffiliate getSuccess() {
24851
      return this.success;
24852
    }
24853
 
3430 rajveer 24854
    public void setSuccess(MasterAffiliate success) {
1846 vikas 24855
      this.success = success;
24856
    }
24857
 
24858
    public void unsetSuccess() {
24859
      this.success = null;
24860
    }
24861
 
3430 rajveer 24862
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 24863
    public boolean isSetSuccess() {
24864
      return this.success != null;
24865
    }
24866
 
24867
    public void setSuccessIsSet(boolean value) {
24868
      if (!value) {
24869
        this.success = null;
24870
      }
24871
    }
24872
 
1998 vikas 24873
    public UserAffiliateException getUtx() {
1846 vikas 24874
      return this.utx;
24875
    }
24876
 
3430 rajveer 24877
    public void setUtx(UserAffiliateException utx) {
1846 vikas 24878
      this.utx = utx;
24879
    }
24880
 
24881
    public void unsetUtx() {
24882
      this.utx = null;
24883
    }
24884
 
3430 rajveer 24885
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 24886
    public boolean isSetUtx() {
24887
      return this.utx != null;
24888
    }
24889
 
24890
    public void setUtxIsSet(boolean value) {
24891
      if (!value) {
24892
        this.utx = null;
24893
      }
24894
    }
24895
 
24896
    public void setFieldValue(_Fields field, Object value) {
24897
      switch (field) {
24898
      case SUCCESS:
24899
        if (value == null) {
24900
          unsetSuccess();
24901
        } else {
24902
          setSuccess((MasterAffiliate)value);
24903
        }
24904
        break;
24905
 
24906
      case UTX:
24907
        if (value == null) {
24908
          unsetUtx();
24909
        } else {
1998 vikas 24910
          setUtx((UserAffiliateException)value);
1846 vikas 24911
        }
24912
        break;
24913
 
24914
      }
24915
    }
24916
 
24917
    public Object getFieldValue(_Fields field) {
24918
      switch (field) {
24919
      case SUCCESS:
24920
        return getSuccess();
24921
 
24922
      case UTX:
24923
        return getUtx();
24924
 
24925
      }
24926
      throw new IllegalStateException();
24927
    }
24928
 
3430 rajveer 24929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24930
    public boolean isSet(_Fields field) {
24931
      if (field == null) {
24932
        throw new IllegalArgumentException();
24933
      }
1846 vikas 24934
 
24935
      switch (field) {
24936
      case SUCCESS:
24937
        return isSetSuccess();
24938
      case UTX:
24939
        return isSetUtx();
24940
      }
24941
      throw new IllegalStateException();
24942
    }
24943
 
24944
    @Override
24945
    public boolean equals(Object that) {
24946
      if (that == null)
24947
        return false;
24948
      if (that instanceof createMasterAffiliate_result)
24949
        return this.equals((createMasterAffiliate_result)that);
24950
      return false;
24951
    }
24952
 
24953
    public boolean equals(createMasterAffiliate_result that) {
24954
      if (that == null)
24955
        return false;
24956
 
24957
      boolean this_present_success = true && this.isSetSuccess();
24958
      boolean that_present_success = true && that.isSetSuccess();
24959
      if (this_present_success || that_present_success) {
24960
        if (!(this_present_success && that_present_success))
24961
          return false;
24962
        if (!this.success.equals(that.success))
24963
          return false;
24964
      }
24965
 
24966
      boolean this_present_utx = true && this.isSetUtx();
24967
      boolean that_present_utx = true && that.isSetUtx();
24968
      if (this_present_utx || that_present_utx) {
24969
        if (!(this_present_utx && that_present_utx))
24970
          return false;
24971
        if (!this.utx.equals(that.utx))
24972
          return false;
24973
      }
24974
 
24975
      return true;
24976
    }
24977
 
24978
    @Override
24979
    public int hashCode() {
24980
      return 0;
24981
    }
24982
 
24983
    public int compareTo(createMasterAffiliate_result other) {
24984
      if (!getClass().equals(other.getClass())) {
24985
        return getClass().getName().compareTo(other.getClass().getName());
24986
      }
24987
 
24988
      int lastComparison = 0;
24989
      createMasterAffiliate_result typedOther = (createMasterAffiliate_result)other;
24990
 
3430 rajveer 24991
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 24992
      if (lastComparison != 0) {
24993
        return lastComparison;
24994
      }
3430 rajveer 24995
      if (isSetSuccess()) {
24996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24997
        if (lastComparison != 0) {
24998
          return lastComparison;
24999
        }
1846 vikas 25000
      }
3430 rajveer 25001
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 25002
      if (lastComparison != 0) {
25003
        return lastComparison;
25004
      }
3430 rajveer 25005
      if (isSetUtx()) {
25006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
25007
        if (lastComparison != 0) {
25008
          return lastComparison;
25009
        }
1846 vikas 25010
      }
25011
      return 0;
25012
    }
25013
 
3430 rajveer 25014
    public _Fields fieldForId(int fieldId) {
25015
      return _Fields.findByThriftId(fieldId);
25016
    }
25017
 
25018
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25019
      org.apache.thrift.protocol.TField field;
1846 vikas 25020
      iprot.readStructBegin();
25021
      while (true)
25022
      {
25023
        field = iprot.readFieldBegin();
3430 rajveer 25024
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 25025
          break;
25026
        }
3430 rajveer 25027
        switch (field.id) {
25028
          case 0: // SUCCESS
25029
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25030
              this.success = new MasterAffiliate();
25031
              this.success.read(iprot);
25032
            } else { 
25033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25034
            }
25035
            break;
25036
          case 1: // UTX
25037
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25038
              this.utx = new UserAffiliateException();
25039
              this.utx.read(iprot);
25040
            } else { 
25041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25042
            }
25043
            break;
25044
          default:
25045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 25046
        }
3430 rajveer 25047
        iprot.readFieldEnd();
1846 vikas 25048
      }
25049
      iprot.readStructEnd();
25050
      validate();
25051
    }
25052
 
3430 rajveer 25053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 25054
      oprot.writeStructBegin(STRUCT_DESC);
25055
 
25056
      if (this.isSetSuccess()) {
25057
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25058
        this.success.write(oprot);
25059
        oprot.writeFieldEnd();
25060
      } else if (this.isSetUtx()) {
25061
        oprot.writeFieldBegin(UTX_FIELD_DESC);
25062
        this.utx.write(oprot);
25063
        oprot.writeFieldEnd();
25064
      }
25065
      oprot.writeFieldStop();
25066
      oprot.writeStructEnd();
25067
    }
25068
 
25069
    @Override
25070
    public String toString() {
25071
      StringBuilder sb = new StringBuilder("createMasterAffiliate_result(");
25072
      boolean first = true;
25073
 
25074
      sb.append("success:");
25075
      if (this.success == null) {
25076
        sb.append("null");
25077
      } else {
25078
        sb.append(this.success);
25079
      }
25080
      first = false;
25081
      if (!first) sb.append(", ");
25082
      sb.append("utx:");
25083
      if (this.utx == null) {
25084
        sb.append("null");
25085
      } else {
25086
        sb.append(this.utx);
25087
      }
25088
      first = false;
25089
      sb.append(")");
25090
      return sb.toString();
25091
    }
25092
 
3430 rajveer 25093
    public void validate() throws org.apache.thrift.TException {
1846 vikas 25094
      // check for required fields
25095
    }
25096
 
3430 rajveer 25097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25098
      try {
25099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25100
      } catch (org.apache.thrift.TException te) {
25101
        throw new java.io.IOException(te);
25102
      }
25103
    }
25104
 
25105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25106
      try {
25107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25108
      } catch (org.apache.thrift.TException te) {
25109
        throw new java.io.IOException(te);
25110
      }
25111
    }
25112
 
1846 vikas 25113
  }
25114
 
3430 rajveer 25115
  public static class getAllMasterAffiliates_args implements org.apache.thrift.TBase<getAllMasterAffiliates_args, getAllMasterAffiliates_args._Fields>, java.io.Serializable, Cloneable   {
25116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllMasterAffiliates_args");
1900 vikas 25117
 
25118
 
25119
 
25120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1900 vikas 25122
;
25123
 
25124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25125
 
25126
      static {
25127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25128
          byName.put(field.getFieldName(), field);
25129
        }
25130
      }
25131
 
25132
      /**
25133
       * Find the _Fields constant that matches fieldId, or null if its not found.
25134
       */
25135
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25136
        switch(fieldId) {
25137
          default:
25138
            return null;
25139
        }
1900 vikas 25140
      }
25141
 
25142
      /**
25143
       * Find the _Fields constant that matches fieldId, throwing an exception
25144
       * if it is not found.
25145
       */
25146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25147
        _Fields fields = findByThriftId(fieldId);
25148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25149
        return fields;
25150
      }
25151
 
25152
      /**
25153
       * Find the _Fields constant that matches name, or null if its not found.
25154
       */
25155
      public static _Fields findByName(String name) {
25156
        return byName.get(name);
25157
      }
25158
 
25159
      private final short _thriftId;
25160
      private final String _fieldName;
25161
 
25162
      _Fields(short thriftId, String fieldName) {
25163
        _thriftId = thriftId;
25164
        _fieldName = fieldName;
25165
      }
25166
 
25167
      public short getThriftFieldId() {
25168
        return _thriftId;
25169
      }
25170
 
25171
      public String getFieldName() {
25172
        return _fieldName;
25173
      }
25174
    }
3430 rajveer 25175
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1900 vikas 25176
    static {
3430 rajveer 25177
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_args.class, metaDataMap);
1900 vikas 25180
    }
25181
 
25182
    public getAllMasterAffiliates_args() {
25183
    }
25184
 
25185
    /**
25186
     * Performs a deep copy on <i>other</i>.
25187
     */
25188
    public getAllMasterAffiliates_args(getAllMasterAffiliates_args other) {
25189
    }
25190
 
25191
    public getAllMasterAffiliates_args deepCopy() {
25192
      return new getAllMasterAffiliates_args(this);
25193
    }
25194
 
3430 rajveer 25195
    @Override
25196
    public void clear() {
1900 vikas 25197
    }
25198
 
25199
    public void setFieldValue(_Fields field, Object value) {
25200
      switch (field) {
25201
      }
25202
    }
25203
 
25204
    public Object getFieldValue(_Fields field) {
25205
      switch (field) {
25206
      }
25207
      throw new IllegalStateException();
25208
    }
25209
 
3430 rajveer 25210
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25211
    public boolean isSet(_Fields field) {
25212
      if (field == null) {
25213
        throw new IllegalArgumentException();
25214
      }
1900 vikas 25215
 
25216
      switch (field) {
25217
      }
25218
      throw new IllegalStateException();
25219
    }
25220
 
25221
    @Override
25222
    public boolean equals(Object that) {
25223
      if (that == null)
25224
        return false;
25225
      if (that instanceof getAllMasterAffiliates_args)
25226
        return this.equals((getAllMasterAffiliates_args)that);
25227
      return false;
25228
    }
25229
 
25230
    public boolean equals(getAllMasterAffiliates_args that) {
25231
      if (that == null)
25232
        return false;
25233
 
25234
      return true;
25235
    }
25236
 
25237
    @Override
25238
    public int hashCode() {
25239
      return 0;
25240
    }
25241
 
25242
    public int compareTo(getAllMasterAffiliates_args other) {
25243
      if (!getClass().equals(other.getClass())) {
25244
        return getClass().getName().compareTo(other.getClass().getName());
25245
      }
25246
 
25247
      int lastComparison = 0;
25248
      getAllMasterAffiliates_args typedOther = (getAllMasterAffiliates_args)other;
25249
 
25250
      return 0;
25251
    }
25252
 
3430 rajveer 25253
    public _Fields fieldForId(int fieldId) {
25254
      return _Fields.findByThriftId(fieldId);
25255
    }
25256
 
25257
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25258
      org.apache.thrift.protocol.TField field;
1900 vikas 25259
      iprot.readStructBegin();
25260
      while (true)
25261
      {
25262
        field = iprot.readFieldBegin();
3430 rajveer 25263
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1900 vikas 25264
          break;
25265
        }
3430 rajveer 25266
        switch (field.id) {
25267
          default:
25268
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1900 vikas 25269
        }
3430 rajveer 25270
        iprot.readFieldEnd();
1900 vikas 25271
      }
25272
      iprot.readStructEnd();
25273
      validate();
25274
    }
25275
 
3430 rajveer 25276
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1900 vikas 25277
      validate();
25278
 
25279
      oprot.writeStructBegin(STRUCT_DESC);
25280
      oprot.writeFieldStop();
25281
      oprot.writeStructEnd();
25282
    }
25283
 
25284
    @Override
25285
    public String toString() {
25286
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_args(");
25287
      boolean first = true;
25288
 
25289
      sb.append(")");
25290
      return sb.toString();
25291
    }
25292
 
3430 rajveer 25293
    public void validate() throws org.apache.thrift.TException {
1900 vikas 25294
      // check for required fields
25295
    }
25296
 
3430 rajveer 25297
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25298
      try {
25299
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25300
      } catch (org.apache.thrift.TException te) {
25301
        throw new java.io.IOException(te);
25302
      }
25303
    }
25304
 
25305
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25306
      try {
25307
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25308
      } catch (org.apache.thrift.TException te) {
25309
        throw new java.io.IOException(te);
25310
      }
25311
    }
25312
 
1900 vikas 25313
  }
25314
 
3430 rajveer 25315
  public static class getAllMasterAffiliates_result implements org.apache.thrift.TBase<getAllMasterAffiliates_result, getAllMasterAffiliates_result._Fields>, java.io.Serializable, Cloneable   {
25316
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllMasterAffiliates_result");
1900 vikas 25317
 
3430 rajveer 25318
    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);
25319
    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 25320
 
3430 rajveer 25321
    private List<MasterAffiliate> success; // required
25322
    private UserAffiliateException utx; // required
1900 vikas 25323
 
25324
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25325
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1900 vikas 25326
      SUCCESS((short)0, "success"),
25327
      UTX((short)1, "utx");
25328
 
25329
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25330
 
25331
      static {
25332
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25333
          byName.put(field.getFieldName(), field);
25334
        }
25335
      }
25336
 
25337
      /**
25338
       * Find the _Fields constant that matches fieldId, or null if its not found.
25339
       */
25340
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25341
        switch(fieldId) {
25342
          case 0: // SUCCESS
25343
            return SUCCESS;
25344
          case 1: // UTX
25345
            return UTX;
25346
          default:
25347
            return null;
25348
        }
1900 vikas 25349
      }
25350
 
25351
      /**
25352
       * Find the _Fields constant that matches fieldId, throwing an exception
25353
       * if it is not found.
25354
       */
25355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25356
        _Fields fields = findByThriftId(fieldId);
25357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25358
        return fields;
25359
      }
25360
 
25361
      /**
25362
       * Find the _Fields constant that matches name, or null if its not found.
25363
       */
25364
      public static _Fields findByName(String name) {
25365
        return byName.get(name);
25366
      }
25367
 
25368
      private final short _thriftId;
25369
      private final String _fieldName;
25370
 
25371
      _Fields(short thriftId, String fieldName) {
25372
        _thriftId = thriftId;
25373
        _fieldName = fieldName;
25374
      }
25375
 
25376
      public short getThriftFieldId() {
25377
        return _thriftId;
25378
      }
25379
 
25380
      public String getFieldName() {
25381
        return _fieldName;
25382
      }
25383
    }
25384
 
25385
    // isset id assignments
25386
 
3430 rajveer 25387
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1900 vikas 25388
    static {
3430 rajveer 25389
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25390
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25391
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25392
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class))));
25393
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25394
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_result.class, metaDataMap);
1900 vikas 25397
    }
25398
 
25399
    public getAllMasterAffiliates_result() {
25400
    }
25401
 
25402
    public getAllMasterAffiliates_result(
25403
      List<MasterAffiliate> success,
1998 vikas 25404
      UserAffiliateException utx)
1900 vikas 25405
    {
25406
      this();
25407
      this.success = success;
25408
      this.utx = utx;
25409
    }
25410
 
25411
    /**
25412
     * Performs a deep copy on <i>other</i>.
25413
     */
25414
    public getAllMasterAffiliates_result(getAllMasterAffiliates_result other) {
25415
      if (other.isSetSuccess()) {
25416
        List<MasterAffiliate> __this__success = new ArrayList<MasterAffiliate>();
25417
        for (MasterAffiliate other_element : other.success) {
25418
          __this__success.add(new MasterAffiliate(other_element));
25419
        }
25420
        this.success = __this__success;
25421
      }
25422
      if (other.isSetUtx()) {
1998 vikas 25423
        this.utx = new UserAffiliateException(other.utx);
1900 vikas 25424
      }
25425
    }
25426
 
25427
    public getAllMasterAffiliates_result deepCopy() {
25428
      return new getAllMasterAffiliates_result(this);
25429
    }
25430
 
3430 rajveer 25431
    @Override
25432
    public void clear() {
25433
      this.success = null;
25434
      this.utx = null;
1900 vikas 25435
    }
25436
 
25437
    public int getSuccessSize() {
25438
      return (this.success == null) ? 0 : this.success.size();
25439
    }
25440
 
25441
    public java.util.Iterator<MasterAffiliate> getSuccessIterator() {
25442
      return (this.success == null) ? null : this.success.iterator();
25443
    }
25444
 
25445
    public void addToSuccess(MasterAffiliate elem) {
25446
      if (this.success == null) {
25447
        this.success = new ArrayList<MasterAffiliate>();
25448
      }
25449
      this.success.add(elem);
25450
    }
25451
 
25452
    public List<MasterAffiliate> getSuccess() {
25453
      return this.success;
25454
    }
25455
 
3430 rajveer 25456
    public void setSuccess(List<MasterAffiliate> success) {
1900 vikas 25457
      this.success = success;
25458
    }
25459
 
25460
    public void unsetSuccess() {
25461
      this.success = null;
25462
    }
25463
 
3430 rajveer 25464
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1900 vikas 25465
    public boolean isSetSuccess() {
25466
      return this.success != null;
25467
    }
25468
 
25469
    public void setSuccessIsSet(boolean value) {
25470
      if (!value) {
25471
        this.success = null;
25472
      }
25473
    }
25474
 
1998 vikas 25475
    public UserAffiliateException getUtx() {
1900 vikas 25476
      return this.utx;
25477
    }
25478
 
3430 rajveer 25479
    public void setUtx(UserAffiliateException utx) {
1900 vikas 25480
      this.utx = utx;
25481
    }
25482
 
25483
    public void unsetUtx() {
25484
      this.utx = null;
25485
    }
25486
 
3430 rajveer 25487
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1900 vikas 25488
    public boolean isSetUtx() {
25489
      return this.utx != null;
25490
    }
25491
 
25492
    public void setUtxIsSet(boolean value) {
25493
      if (!value) {
25494
        this.utx = null;
25495
      }
25496
    }
25497
 
25498
    public void setFieldValue(_Fields field, Object value) {
25499
      switch (field) {
25500
      case SUCCESS:
25501
        if (value == null) {
25502
          unsetSuccess();
25503
        } else {
25504
          setSuccess((List<MasterAffiliate>)value);
25505
        }
25506
        break;
25507
 
25508
      case UTX:
25509
        if (value == null) {
25510
          unsetUtx();
25511
        } else {
1998 vikas 25512
          setUtx((UserAffiliateException)value);
1900 vikas 25513
        }
25514
        break;
25515
 
25516
      }
25517
    }
25518
 
25519
    public Object getFieldValue(_Fields field) {
25520
      switch (field) {
25521
      case SUCCESS:
25522
        return getSuccess();
25523
 
25524
      case UTX:
25525
        return getUtx();
25526
 
25527
      }
25528
      throw new IllegalStateException();
25529
    }
25530
 
3430 rajveer 25531
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25532
    public boolean isSet(_Fields field) {
25533
      if (field == null) {
25534
        throw new IllegalArgumentException();
25535
      }
1900 vikas 25536
 
25537
      switch (field) {
25538
      case SUCCESS:
25539
        return isSetSuccess();
25540
      case UTX:
25541
        return isSetUtx();
25542
      }
25543
      throw new IllegalStateException();
25544
    }
25545
 
25546
    @Override
25547
    public boolean equals(Object that) {
25548
      if (that == null)
25549
        return false;
25550
      if (that instanceof getAllMasterAffiliates_result)
25551
        return this.equals((getAllMasterAffiliates_result)that);
25552
      return false;
25553
    }
25554
 
25555
    public boolean equals(getAllMasterAffiliates_result that) {
25556
      if (that == null)
25557
        return false;
25558
 
25559
      boolean this_present_success = true && this.isSetSuccess();
25560
      boolean that_present_success = true && that.isSetSuccess();
25561
      if (this_present_success || that_present_success) {
25562
        if (!(this_present_success && that_present_success))
25563
          return false;
25564
        if (!this.success.equals(that.success))
25565
          return false;
25566
      }
25567
 
25568
      boolean this_present_utx = true && this.isSetUtx();
25569
      boolean that_present_utx = true && that.isSetUtx();
25570
      if (this_present_utx || that_present_utx) {
25571
        if (!(this_present_utx && that_present_utx))
25572
          return false;
25573
        if (!this.utx.equals(that.utx))
25574
          return false;
25575
      }
25576
 
25577
      return true;
25578
    }
25579
 
25580
    @Override
25581
    public int hashCode() {
25582
      return 0;
25583
    }
25584
 
25585
    public int compareTo(getAllMasterAffiliates_result other) {
25586
      if (!getClass().equals(other.getClass())) {
25587
        return getClass().getName().compareTo(other.getClass().getName());
25588
      }
25589
 
25590
      int lastComparison = 0;
25591
      getAllMasterAffiliates_result typedOther = (getAllMasterAffiliates_result)other;
25592
 
3430 rajveer 25593
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1900 vikas 25594
      if (lastComparison != 0) {
25595
        return lastComparison;
25596
      }
3430 rajveer 25597
      if (isSetSuccess()) {
25598
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25599
        if (lastComparison != 0) {
25600
          return lastComparison;
25601
        }
1900 vikas 25602
      }
3430 rajveer 25603
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1900 vikas 25604
      if (lastComparison != 0) {
25605
        return lastComparison;
25606
      }
3430 rajveer 25607
      if (isSetUtx()) {
25608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
25609
        if (lastComparison != 0) {
25610
          return lastComparison;
25611
        }
1900 vikas 25612
      }
25613
      return 0;
25614
    }
25615
 
3430 rajveer 25616
    public _Fields fieldForId(int fieldId) {
25617
      return _Fields.findByThriftId(fieldId);
25618
    }
25619
 
25620
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25621
      org.apache.thrift.protocol.TField field;
1900 vikas 25622
      iprot.readStructBegin();
25623
      while (true)
25624
      {
25625
        field = iprot.readFieldBegin();
3430 rajveer 25626
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1900 vikas 25627
          break;
25628
        }
3430 rajveer 25629
        switch (field.id) {
25630
          case 0: // SUCCESS
25631
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25632
              {
25633
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
25634
                this.success = new ArrayList<MasterAffiliate>(_list32.size);
25635
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1900 vikas 25636
                {
3430 rajveer 25637
                  MasterAffiliate _elem34; // required
25638
                  _elem34 = new MasterAffiliate();
25639
                  _elem34.read(iprot);
25640
                  this.success.add(_elem34);
1900 vikas 25641
                }
3430 rajveer 25642
                iprot.readListEnd();
1900 vikas 25643
              }
3430 rajveer 25644
            } else { 
25645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25646
            }
25647
            break;
25648
          case 1: // UTX
25649
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25650
              this.utx = new UserAffiliateException();
25651
              this.utx.read(iprot);
25652
            } else { 
25653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25654
            }
25655
            break;
25656
          default:
25657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1900 vikas 25658
        }
3430 rajveer 25659
        iprot.readFieldEnd();
1900 vikas 25660
      }
25661
      iprot.readStructEnd();
25662
      validate();
25663
    }
25664
 
3430 rajveer 25665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1900 vikas 25666
      oprot.writeStructBegin(STRUCT_DESC);
25667
 
25668
      if (this.isSetSuccess()) {
25669
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25670
        {
3430 rajveer 25671
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 25672
          for (MasterAffiliate _iter35 : this.success)
1900 vikas 25673
          {
3385 varun.gupt 25674
            _iter35.write(oprot);
1900 vikas 25675
          }
25676
          oprot.writeListEnd();
25677
        }
25678
        oprot.writeFieldEnd();
25679
      } else if (this.isSetUtx()) {
25680
        oprot.writeFieldBegin(UTX_FIELD_DESC);
25681
        this.utx.write(oprot);
25682
        oprot.writeFieldEnd();
25683
      }
25684
      oprot.writeFieldStop();
25685
      oprot.writeStructEnd();
25686
    }
25687
 
25688
    @Override
25689
    public String toString() {
25690
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_result(");
25691
      boolean first = true;
25692
 
25693
      sb.append("success:");
25694
      if (this.success == null) {
25695
        sb.append("null");
25696
      } else {
25697
        sb.append(this.success);
25698
      }
25699
      first = false;
25700
      if (!first) sb.append(", ");
25701
      sb.append("utx:");
25702
      if (this.utx == null) {
25703
        sb.append("null");
25704
      } else {
25705
        sb.append(this.utx);
25706
      }
25707
      first = false;
25708
      sb.append(")");
25709
      return sb.toString();
25710
    }
25711
 
3430 rajveer 25712
    public void validate() throws org.apache.thrift.TException {
1900 vikas 25713
      // check for required fields
25714
    }
25715
 
3430 rajveer 25716
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25717
      try {
25718
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25719
      } catch (org.apache.thrift.TException te) {
25720
        throw new java.io.IOException(te);
25721
      }
25722
    }
25723
 
25724
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25725
      try {
25726
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25727
      } catch (org.apache.thrift.TException te) {
25728
        throw new java.io.IOException(te);
25729
      }
25730
    }
25731
 
1900 vikas 25732
  }
25733
 
3430 rajveer 25734
  public static class getMasterAffiliateById_args implements org.apache.thrift.TBase<getMasterAffiliateById_args, getMasterAffiliateById_args._Fields>, java.io.Serializable, Cloneable   {
25735
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateById_args");
1846 vikas 25736
 
3430 rajveer 25737
    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 25738
 
3430 rajveer 25739
    private long id; // required
1846 vikas 25740
 
25741
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25742
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 25743
      ID((short)1, "id");
25744
 
25745
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25746
 
25747
      static {
25748
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25749
          byName.put(field.getFieldName(), field);
25750
        }
25751
      }
25752
 
25753
      /**
25754
       * Find the _Fields constant that matches fieldId, or null if its not found.
25755
       */
25756
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25757
        switch(fieldId) {
25758
          case 1: // ID
25759
            return ID;
25760
          default:
25761
            return null;
25762
        }
1846 vikas 25763
      }
25764
 
25765
      /**
25766
       * Find the _Fields constant that matches fieldId, throwing an exception
25767
       * if it is not found.
25768
       */
25769
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25770
        _Fields fields = findByThriftId(fieldId);
25771
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25772
        return fields;
25773
      }
25774
 
25775
      /**
25776
       * Find the _Fields constant that matches name, or null if its not found.
25777
       */
25778
      public static _Fields findByName(String name) {
25779
        return byName.get(name);
25780
      }
25781
 
25782
      private final short _thriftId;
25783
      private final String _fieldName;
25784
 
25785
      _Fields(short thriftId, String fieldName) {
25786
        _thriftId = thriftId;
25787
        _fieldName = fieldName;
25788
      }
25789
 
25790
      public short getThriftFieldId() {
25791
        return _thriftId;
25792
      }
25793
 
25794
      public String getFieldName() {
25795
        return _fieldName;
25796
      }
25797
    }
25798
 
25799
    // isset id assignments
25800
    private static final int __ID_ISSET_ID = 0;
25801
    private BitSet __isset_bit_vector = new BitSet(1);
25802
 
3430 rajveer 25803
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 25804
    static {
3430 rajveer 25805
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25806
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_args.class, metaDataMap);
1846 vikas 25810
    }
25811
 
25812
    public getMasterAffiliateById_args() {
25813
    }
25814
 
25815
    public getMasterAffiliateById_args(
25816
      long id)
25817
    {
25818
      this();
25819
      this.id = id;
25820
      setIdIsSet(true);
25821
    }
25822
 
25823
    /**
25824
     * Performs a deep copy on <i>other</i>.
25825
     */
25826
    public getMasterAffiliateById_args(getMasterAffiliateById_args other) {
25827
      __isset_bit_vector.clear();
25828
      __isset_bit_vector.or(other.__isset_bit_vector);
25829
      this.id = other.id;
25830
    }
25831
 
25832
    public getMasterAffiliateById_args deepCopy() {
25833
      return new getMasterAffiliateById_args(this);
25834
    }
25835
 
3430 rajveer 25836
    @Override
25837
    public void clear() {
25838
      setIdIsSet(false);
25839
      this.id = 0;
1846 vikas 25840
    }
25841
 
25842
    public long getId() {
25843
      return this.id;
25844
    }
25845
 
3430 rajveer 25846
    public void setId(long id) {
1846 vikas 25847
      this.id = id;
25848
      setIdIsSet(true);
25849
    }
25850
 
25851
    public void unsetId() {
25852
      __isset_bit_vector.clear(__ID_ISSET_ID);
25853
    }
25854
 
3430 rajveer 25855
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 25856
    public boolean isSetId() {
25857
      return __isset_bit_vector.get(__ID_ISSET_ID);
25858
    }
25859
 
25860
    public void setIdIsSet(boolean value) {
25861
      __isset_bit_vector.set(__ID_ISSET_ID, value);
25862
    }
25863
 
25864
    public void setFieldValue(_Fields field, Object value) {
25865
      switch (field) {
25866
      case ID:
25867
        if (value == null) {
25868
          unsetId();
25869
        } else {
25870
          setId((Long)value);
25871
        }
25872
        break;
25873
 
25874
      }
25875
    }
25876
 
25877
    public Object getFieldValue(_Fields field) {
25878
      switch (field) {
25879
      case ID:
3430 rajveer 25880
        return Long.valueOf(getId());
1846 vikas 25881
 
25882
      }
25883
      throw new IllegalStateException();
25884
    }
25885
 
3430 rajveer 25886
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25887
    public boolean isSet(_Fields field) {
25888
      if (field == null) {
25889
        throw new IllegalArgumentException();
25890
      }
1846 vikas 25891
 
25892
      switch (field) {
25893
      case ID:
25894
        return isSetId();
25895
      }
25896
      throw new IllegalStateException();
25897
    }
25898
 
25899
    @Override
25900
    public boolean equals(Object that) {
25901
      if (that == null)
25902
        return false;
25903
      if (that instanceof getMasterAffiliateById_args)
25904
        return this.equals((getMasterAffiliateById_args)that);
25905
      return false;
25906
    }
25907
 
25908
    public boolean equals(getMasterAffiliateById_args that) {
25909
      if (that == null)
25910
        return false;
25911
 
25912
      boolean this_present_id = true;
25913
      boolean that_present_id = true;
25914
      if (this_present_id || that_present_id) {
25915
        if (!(this_present_id && that_present_id))
25916
          return false;
25917
        if (this.id != that.id)
25918
          return false;
25919
      }
25920
 
25921
      return true;
25922
    }
25923
 
25924
    @Override
25925
    public int hashCode() {
25926
      return 0;
25927
    }
25928
 
25929
    public int compareTo(getMasterAffiliateById_args other) {
25930
      if (!getClass().equals(other.getClass())) {
25931
        return getClass().getName().compareTo(other.getClass().getName());
25932
      }
25933
 
25934
      int lastComparison = 0;
25935
      getMasterAffiliateById_args typedOther = (getMasterAffiliateById_args)other;
25936
 
3430 rajveer 25937
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 25938
      if (lastComparison != 0) {
25939
        return lastComparison;
25940
      }
3430 rajveer 25941
      if (isSetId()) {
25942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
25943
        if (lastComparison != 0) {
25944
          return lastComparison;
25945
        }
1846 vikas 25946
      }
25947
      return 0;
25948
    }
25949
 
3430 rajveer 25950
    public _Fields fieldForId(int fieldId) {
25951
      return _Fields.findByThriftId(fieldId);
25952
    }
25953
 
25954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25955
      org.apache.thrift.protocol.TField field;
1846 vikas 25956
      iprot.readStructBegin();
25957
      while (true)
25958
      {
25959
        field = iprot.readFieldBegin();
3430 rajveer 25960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 25961
          break;
25962
        }
3430 rajveer 25963
        switch (field.id) {
25964
          case 1: // ID
25965
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25966
              this.id = iprot.readI64();
25967
              setIdIsSet(true);
25968
            } else { 
25969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25970
            }
25971
            break;
25972
          default:
25973
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 25974
        }
3430 rajveer 25975
        iprot.readFieldEnd();
1846 vikas 25976
      }
25977
      iprot.readStructEnd();
25978
      validate();
25979
    }
25980
 
3430 rajveer 25981
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 25982
      validate();
25983
 
25984
      oprot.writeStructBegin(STRUCT_DESC);
25985
      oprot.writeFieldBegin(ID_FIELD_DESC);
25986
      oprot.writeI64(this.id);
25987
      oprot.writeFieldEnd();
25988
      oprot.writeFieldStop();
25989
      oprot.writeStructEnd();
25990
    }
25991
 
25992
    @Override
25993
    public String toString() {
25994
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_args(");
25995
      boolean first = true;
25996
 
25997
      sb.append("id:");
25998
      sb.append(this.id);
25999
      first = false;
26000
      sb.append(")");
26001
      return sb.toString();
26002
    }
26003
 
3430 rajveer 26004
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26005
      // check for required fields
26006
    }
26007
 
3430 rajveer 26008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26009
      try {
26010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26011
      } catch (org.apache.thrift.TException te) {
26012
        throw new java.io.IOException(te);
26013
      }
26014
    }
26015
 
26016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26017
      try {
26018
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26019
        __isset_bit_vector = new BitSet(1);
26020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26021
      } catch (org.apache.thrift.TException te) {
26022
        throw new java.io.IOException(te);
26023
      }
26024
    }
26025
 
1846 vikas 26026
  }
26027
 
3430 rajveer 26028
  public static class getMasterAffiliateById_result implements org.apache.thrift.TBase<getMasterAffiliateById_result, getMasterAffiliateById_result._Fields>, java.io.Serializable, Cloneable   {
26029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateById_result");
1846 vikas 26030
 
3430 rajveer 26031
    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);
26032
    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 26033
 
3430 rajveer 26034
    private MasterAffiliate success; // required
26035
    private UserAffiliateException utx; // required
1846 vikas 26036
 
26037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26039
      SUCCESS((short)0, "success"),
26040
      UTX((short)1, "utx");
26041
 
26042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26043
 
26044
      static {
26045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26046
          byName.put(field.getFieldName(), field);
26047
        }
26048
      }
26049
 
26050
      /**
26051
       * Find the _Fields constant that matches fieldId, or null if its not found.
26052
       */
26053
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26054
        switch(fieldId) {
26055
          case 0: // SUCCESS
26056
            return SUCCESS;
26057
          case 1: // UTX
26058
            return UTX;
26059
          default:
26060
            return null;
26061
        }
1846 vikas 26062
      }
26063
 
26064
      /**
26065
       * Find the _Fields constant that matches fieldId, throwing an exception
26066
       * if it is not found.
26067
       */
26068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26069
        _Fields fields = findByThriftId(fieldId);
26070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26071
        return fields;
26072
      }
26073
 
26074
      /**
26075
       * Find the _Fields constant that matches name, or null if its not found.
26076
       */
26077
      public static _Fields findByName(String name) {
26078
        return byName.get(name);
26079
      }
26080
 
26081
      private final short _thriftId;
26082
      private final String _fieldName;
26083
 
26084
      _Fields(short thriftId, String fieldName) {
26085
        _thriftId = thriftId;
26086
        _fieldName = fieldName;
26087
      }
26088
 
26089
      public short getThriftFieldId() {
26090
        return _thriftId;
26091
      }
26092
 
26093
      public String getFieldName() {
26094
        return _fieldName;
26095
      }
26096
    }
26097
 
26098
    // isset id assignments
26099
 
3430 rajveer 26100
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26101
    static {
3430 rajveer 26102
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26103
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26104
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
26105
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26107
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26108
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_result.class, metaDataMap);
1846 vikas 26109
    }
26110
 
26111
    public getMasterAffiliateById_result() {
26112
    }
26113
 
26114
    public getMasterAffiliateById_result(
26115
      MasterAffiliate success,
1998 vikas 26116
      UserAffiliateException utx)
1846 vikas 26117
    {
26118
      this();
26119
      this.success = success;
26120
      this.utx = utx;
26121
    }
26122
 
26123
    /**
26124
     * Performs a deep copy on <i>other</i>.
26125
     */
26126
    public getMasterAffiliateById_result(getMasterAffiliateById_result other) {
26127
      if (other.isSetSuccess()) {
26128
        this.success = new MasterAffiliate(other.success);
26129
      }
26130
      if (other.isSetUtx()) {
1998 vikas 26131
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 26132
      }
26133
    }
26134
 
26135
    public getMasterAffiliateById_result deepCopy() {
26136
      return new getMasterAffiliateById_result(this);
26137
    }
26138
 
3430 rajveer 26139
    @Override
26140
    public void clear() {
26141
      this.success = null;
26142
      this.utx = null;
1846 vikas 26143
    }
26144
 
26145
    public MasterAffiliate getSuccess() {
26146
      return this.success;
26147
    }
26148
 
3430 rajveer 26149
    public void setSuccess(MasterAffiliate success) {
1846 vikas 26150
      this.success = success;
26151
    }
26152
 
26153
    public void unsetSuccess() {
26154
      this.success = null;
26155
    }
26156
 
3430 rajveer 26157
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 26158
    public boolean isSetSuccess() {
26159
      return this.success != null;
26160
    }
26161
 
26162
    public void setSuccessIsSet(boolean value) {
26163
      if (!value) {
26164
        this.success = null;
26165
      }
26166
    }
26167
 
1998 vikas 26168
    public UserAffiliateException getUtx() {
1846 vikas 26169
      return this.utx;
26170
    }
26171
 
3430 rajveer 26172
    public void setUtx(UserAffiliateException utx) {
1846 vikas 26173
      this.utx = utx;
26174
    }
26175
 
26176
    public void unsetUtx() {
26177
      this.utx = null;
26178
    }
26179
 
3430 rajveer 26180
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 26181
    public boolean isSetUtx() {
26182
      return this.utx != null;
26183
    }
26184
 
26185
    public void setUtxIsSet(boolean value) {
26186
      if (!value) {
26187
        this.utx = null;
26188
      }
26189
    }
26190
 
26191
    public void setFieldValue(_Fields field, Object value) {
26192
      switch (field) {
26193
      case SUCCESS:
26194
        if (value == null) {
26195
          unsetSuccess();
26196
        } else {
26197
          setSuccess((MasterAffiliate)value);
26198
        }
26199
        break;
26200
 
26201
      case UTX:
26202
        if (value == null) {
26203
          unsetUtx();
26204
        } else {
1998 vikas 26205
          setUtx((UserAffiliateException)value);
1846 vikas 26206
        }
26207
        break;
26208
 
26209
      }
26210
    }
26211
 
26212
    public Object getFieldValue(_Fields field) {
26213
      switch (field) {
26214
      case SUCCESS:
26215
        return getSuccess();
26216
 
26217
      case UTX:
26218
        return getUtx();
26219
 
26220
      }
26221
      throw new IllegalStateException();
26222
    }
26223
 
3430 rajveer 26224
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26225
    public boolean isSet(_Fields field) {
26226
      if (field == null) {
26227
        throw new IllegalArgumentException();
26228
      }
1846 vikas 26229
 
26230
      switch (field) {
26231
      case SUCCESS:
26232
        return isSetSuccess();
26233
      case UTX:
26234
        return isSetUtx();
26235
      }
26236
      throw new IllegalStateException();
26237
    }
26238
 
26239
    @Override
26240
    public boolean equals(Object that) {
26241
      if (that == null)
26242
        return false;
26243
      if (that instanceof getMasterAffiliateById_result)
26244
        return this.equals((getMasterAffiliateById_result)that);
26245
      return false;
26246
    }
26247
 
26248
    public boolean equals(getMasterAffiliateById_result that) {
26249
      if (that == null)
26250
        return false;
26251
 
26252
      boolean this_present_success = true && this.isSetSuccess();
26253
      boolean that_present_success = true && that.isSetSuccess();
26254
      if (this_present_success || that_present_success) {
26255
        if (!(this_present_success && that_present_success))
26256
          return false;
26257
        if (!this.success.equals(that.success))
26258
          return false;
26259
      }
26260
 
26261
      boolean this_present_utx = true && this.isSetUtx();
26262
      boolean that_present_utx = true && that.isSetUtx();
26263
      if (this_present_utx || that_present_utx) {
26264
        if (!(this_present_utx && that_present_utx))
26265
          return false;
26266
        if (!this.utx.equals(that.utx))
26267
          return false;
26268
      }
26269
 
26270
      return true;
26271
    }
26272
 
26273
    @Override
26274
    public int hashCode() {
26275
      return 0;
26276
    }
26277
 
26278
    public int compareTo(getMasterAffiliateById_result other) {
26279
      if (!getClass().equals(other.getClass())) {
26280
        return getClass().getName().compareTo(other.getClass().getName());
26281
      }
26282
 
26283
      int lastComparison = 0;
26284
      getMasterAffiliateById_result typedOther = (getMasterAffiliateById_result)other;
26285
 
3430 rajveer 26286
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 26287
      if (lastComparison != 0) {
26288
        return lastComparison;
26289
      }
3430 rajveer 26290
      if (isSetSuccess()) {
26291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26292
        if (lastComparison != 0) {
26293
          return lastComparison;
26294
        }
1846 vikas 26295
      }
3430 rajveer 26296
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 26297
      if (lastComparison != 0) {
26298
        return lastComparison;
26299
      }
3430 rajveer 26300
      if (isSetUtx()) {
26301
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
26302
        if (lastComparison != 0) {
26303
          return lastComparison;
26304
        }
1846 vikas 26305
      }
26306
      return 0;
26307
    }
26308
 
3430 rajveer 26309
    public _Fields fieldForId(int fieldId) {
26310
      return _Fields.findByThriftId(fieldId);
26311
    }
26312
 
26313
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26314
      org.apache.thrift.protocol.TField field;
1846 vikas 26315
      iprot.readStructBegin();
26316
      while (true)
26317
      {
26318
        field = iprot.readFieldBegin();
3430 rajveer 26319
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26320
          break;
26321
        }
3430 rajveer 26322
        switch (field.id) {
26323
          case 0: // SUCCESS
26324
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26325
              this.success = new MasterAffiliate();
26326
              this.success.read(iprot);
26327
            } else { 
26328
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26329
            }
26330
            break;
26331
          case 1: // UTX
26332
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26333
              this.utx = new UserAffiliateException();
26334
              this.utx.read(iprot);
26335
            } else { 
26336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26337
            }
26338
            break;
26339
          default:
26340
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26341
        }
3430 rajveer 26342
        iprot.readFieldEnd();
1846 vikas 26343
      }
26344
      iprot.readStructEnd();
26345
      validate();
26346
    }
26347
 
3430 rajveer 26348
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26349
      oprot.writeStructBegin(STRUCT_DESC);
26350
 
26351
      if (this.isSetSuccess()) {
26352
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26353
        this.success.write(oprot);
26354
        oprot.writeFieldEnd();
26355
      } else if (this.isSetUtx()) {
26356
        oprot.writeFieldBegin(UTX_FIELD_DESC);
26357
        this.utx.write(oprot);
26358
        oprot.writeFieldEnd();
26359
      }
26360
      oprot.writeFieldStop();
26361
      oprot.writeStructEnd();
26362
    }
26363
 
26364
    @Override
26365
    public String toString() {
26366
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_result(");
26367
      boolean first = true;
26368
 
26369
      sb.append("success:");
26370
      if (this.success == null) {
26371
        sb.append("null");
26372
      } else {
26373
        sb.append(this.success);
26374
      }
26375
      first = false;
26376
      if (!first) sb.append(", ");
26377
      sb.append("utx:");
26378
      if (this.utx == null) {
26379
        sb.append("null");
26380
      } else {
26381
        sb.append(this.utx);
26382
      }
26383
      first = false;
26384
      sb.append(")");
26385
      return sb.toString();
26386
    }
26387
 
3430 rajveer 26388
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26389
      // check for required fields
26390
    }
26391
 
3430 rajveer 26392
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26393
      try {
26394
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26395
      } catch (org.apache.thrift.TException te) {
26396
        throw new java.io.IOException(te);
26397
      }
26398
    }
26399
 
26400
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26401
      try {
26402
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26403
      } catch (org.apache.thrift.TException te) {
26404
        throw new java.io.IOException(te);
26405
      }
26406
    }
26407
 
1846 vikas 26408
  }
26409
 
3430 rajveer 26410
  public static class getMasterAffiliateByName_args implements org.apache.thrift.TBase<getMasterAffiliateByName_args, getMasterAffiliateByName_args._Fields>, java.io.Serializable, Cloneable   {
26411
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateByName_args");
1846 vikas 26412
 
3430 rajveer 26413
    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 26414
 
3430 rajveer 26415
    private String name; // required
1846 vikas 26416
 
26417
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26418
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26419
      NAME((short)1, "name");
26420
 
26421
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26422
 
26423
      static {
26424
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26425
          byName.put(field.getFieldName(), field);
26426
        }
26427
      }
26428
 
26429
      /**
26430
       * Find the _Fields constant that matches fieldId, or null if its not found.
26431
       */
26432
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26433
        switch(fieldId) {
26434
          case 1: // NAME
26435
            return NAME;
26436
          default:
26437
            return null;
26438
        }
1846 vikas 26439
      }
26440
 
26441
      /**
26442
       * Find the _Fields constant that matches fieldId, throwing an exception
26443
       * if it is not found.
26444
       */
26445
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26446
        _Fields fields = findByThriftId(fieldId);
26447
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26448
        return fields;
26449
      }
26450
 
26451
      /**
26452
       * Find the _Fields constant that matches name, or null if its not found.
26453
       */
26454
      public static _Fields findByName(String name) {
26455
        return byName.get(name);
26456
      }
26457
 
26458
      private final short _thriftId;
26459
      private final String _fieldName;
26460
 
26461
      _Fields(short thriftId, String fieldName) {
26462
        _thriftId = thriftId;
26463
        _fieldName = fieldName;
26464
      }
26465
 
26466
      public short getThriftFieldId() {
26467
        return _thriftId;
26468
      }
26469
 
26470
      public String getFieldName() {
26471
        return _fieldName;
26472
      }
26473
    }
26474
 
26475
    // isset id assignments
26476
 
3430 rajveer 26477
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26478
    static {
3430 rajveer 26479
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26480
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_args.class, metaDataMap);
1846 vikas 26484
    }
26485
 
26486
    public getMasterAffiliateByName_args() {
26487
    }
26488
 
26489
    public getMasterAffiliateByName_args(
26490
      String name)
26491
    {
26492
      this();
26493
      this.name = name;
26494
    }
26495
 
26496
    /**
26497
     * Performs a deep copy on <i>other</i>.
26498
     */
26499
    public getMasterAffiliateByName_args(getMasterAffiliateByName_args other) {
26500
      if (other.isSetName()) {
26501
        this.name = other.name;
26502
      }
26503
    }
26504
 
26505
    public getMasterAffiliateByName_args deepCopy() {
26506
      return new getMasterAffiliateByName_args(this);
26507
    }
26508
 
3430 rajveer 26509
    @Override
26510
    public void clear() {
26511
      this.name = null;
1846 vikas 26512
    }
26513
 
26514
    public String getName() {
26515
      return this.name;
26516
    }
26517
 
3430 rajveer 26518
    public void setName(String name) {
1846 vikas 26519
      this.name = name;
26520
    }
26521
 
26522
    public void unsetName() {
26523
      this.name = null;
26524
    }
26525
 
3430 rajveer 26526
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 26527
    public boolean isSetName() {
26528
      return this.name != null;
26529
    }
26530
 
26531
    public void setNameIsSet(boolean value) {
26532
      if (!value) {
26533
        this.name = null;
26534
      }
26535
    }
26536
 
26537
    public void setFieldValue(_Fields field, Object value) {
26538
      switch (field) {
26539
      case NAME:
26540
        if (value == null) {
26541
          unsetName();
26542
        } else {
26543
          setName((String)value);
26544
        }
26545
        break;
26546
 
26547
      }
26548
    }
26549
 
26550
    public Object getFieldValue(_Fields field) {
26551
      switch (field) {
26552
      case NAME:
26553
        return getName();
26554
 
26555
      }
26556
      throw new IllegalStateException();
26557
    }
26558
 
3430 rajveer 26559
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26560
    public boolean isSet(_Fields field) {
26561
      if (field == null) {
26562
        throw new IllegalArgumentException();
26563
      }
1846 vikas 26564
 
26565
      switch (field) {
26566
      case NAME:
26567
        return isSetName();
26568
      }
26569
      throw new IllegalStateException();
26570
    }
26571
 
26572
    @Override
26573
    public boolean equals(Object that) {
26574
      if (that == null)
26575
        return false;
26576
      if (that instanceof getMasterAffiliateByName_args)
26577
        return this.equals((getMasterAffiliateByName_args)that);
26578
      return false;
26579
    }
26580
 
26581
    public boolean equals(getMasterAffiliateByName_args that) {
26582
      if (that == null)
26583
        return false;
26584
 
26585
      boolean this_present_name = true && this.isSetName();
26586
      boolean that_present_name = true && that.isSetName();
26587
      if (this_present_name || that_present_name) {
26588
        if (!(this_present_name && that_present_name))
26589
          return false;
26590
        if (!this.name.equals(that.name))
26591
          return false;
26592
      }
26593
 
26594
      return true;
26595
    }
26596
 
26597
    @Override
26598
    public int hashCode() {
26599
      return 0;
26600
    }
26601
 
26602
    public int compareTo(getMasterAffiliateByName_args other) {
26603
      if (!getClass().equals(other.getClass())) {
26604
        return getClass().getName().compareTo(other.getClass().getName());
26605
      }
26606
 
26607
      int lastComparison = 0;
26608
      getMasterAffiliateByName_args typedOther = (getMasterAffiliateByName_args)other;
26609
 
3430 rajveer 26610
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 26611
      if (lastComparison != 0) {
26612
        return lastComparison;
26613
      }
3430 rajveer 26614
      if (isSetName()) {
26615
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
26616
        if (lastComparison != 0) {
26617
          return lastComparison;
26618
        }
1846 vikas 26619
      }
26620
      return 0;
26621
    }
26622
 
3430 rajveer 26623
    public _Fields fieldForId(int fieldId) {
26624
      return _Fields.findByThriftId(fieldId);
26625
    }
26626
 
26627
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26628
      org.apache.thrift.protocol.TField field;
1846 vikas 26629
      iprot.readStructBegin();
26630
      while (true)
26631
      {
26632
        field = iprot.readFieldBegin();
3430 rajveer 26633
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26634
          break;
26635
        }
3430 rajveer 26636
        switch (field.id) {
26637
          case 1: // NAME
26638
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26639
              this.name = iprot.readString();
26640
            } else { 
26641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26642
            }
26643
            break;
26644
          default:
26645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26646
        }
3430 rajveer 26647
        iprot.readFieldEnd();
1846 vikas 26648
      }
26649
      iprot.readStructEnd();
26650
      validate();
26651
    }
26652
 
3430 rajveer 26653
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26654
      validate();
26655
 
26656
      oprot.writeStructBegin(STRUCT_DESC);
26657
      if (this.name != null) {
26658
        oprot.writeFieldBegin(NAME_FIELD_DESC);
26659
        oprot.writeString(this.name);
26660
        oprot.writeFieldEnd();
26661
      }
26662
      oprot.writeFieldStop();
26663
      oprot.writeStructEnd();
26664
    }
26665
 
26666
    @Override
26667
    public String toString() {
26668
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_args(");
26669
      boolean first = true;
26670
 
26671
      sb.append("name:");
26672
      if (this.name == null) {
26673
        sb.append("null");
26674
      } else {
26675
        sb.append(this.name);
26676
      }
26677
      first = false;
26678
      sb.append(")");
26679
      return sb.toString();
26680
    }
26681
 
3430 rajveer 26682
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26683
      // check for required fields
26684
    }
26685
 
3430 rajveer 26686
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26687
      try {
26688
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26689
      } catch (org.apache.thrift.TException te) {
26690
        throw new java.io.IOException(te);
26691
      }
26692
    }
26693
 
26694
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26695
      try {
26696
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26697
      } catch (org.apache.thrift.TException te) {
26698
        throw new java.io.IOException(te);
26699
      }
26700
    }
26701
 
1846 vikas 26702
  }
26703
 
3430 rajveer 26704
  public static class getMasterAffiliateByName_result implements org.apache.thrift.TBase<getMasterAffiliateByName_result, getMasterAffiliateByName_result._Fields>, java.io.Serializable, Cloneable   {
26705
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateByName_result");
1846 vikas 26706
 
3430 rajveer 26707
    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);
26708
    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 26709
 
3430 rajveer 26710
    private MasterAffiliate success; // required
26711
    private UserAffiliateException utx; // required
1846 vikas 26712
 
26713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26715
      SUCCESS((short)0, "success"),
26716
      UTX((short)1, "utx");
26717
 
26718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26719
 
26720
      static {
26721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26722
          byName.put(field.getFieldName(), field);
26723
        }
26724
      }
26725
 
26726
      /**
26727
       * Find the _Fields constant that matches fieldId, or null if its not found.
26728
       */
26729
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26730
        switch(fieldId) {
26731
          case 0: // SUCCESS
26732
            return SUCCESS;
26733
          case 1: // UTX
26734
            return UTX;
26735
          default:
26736
            return null;
26737
        }
1846 vikas 26738
      }
26739
 
26740
      /**
26741
       * Find the _Fields constant that matches fieldId, throwing an exception
26742
       * if it is not found.
26743
       */
26744
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26745
        _Fields fields = findByThriftId(fieldId);
26746
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26747
        return fields;
26748
      }
26749
 
26750
      /**
26751
       * Find the _Fields constant that matches name, or null if its not found.
26752
       */
26753
      public static _Fields findByName(String name) {
26754
        return byName.get(name);
26755
      }
26756
 
26757
      private final short _thriftId;
26758
      private final String _fieldName;
26759
 
26760
      _Fields(short thriftId, String fieldName) {
26761
        _thriftId = thriftId;
26762
        _fieldName = fieldName;
26763
      }
26764
 
26765
      public short getThriftFieldId() {
26766
        return _thriftId;
26767
      }
26768
 
26769
      public String getFieldName() {
26770
        return _fieldName;
26771
      }
26772
    }
26773
 
26774
    // isset id assignments
26775
 
3430 rajveer 26776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26777
    static {
3430 rajveer 26778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26779
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26780
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
26781
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_result.class, metaDataMap);
1846 vikas 26785
    }
26786
 
26787
    public getMasterAffiliateByName_result() {
26788
    }
26789
 
26790
    public getMasterAffiliateByName_result(
26791
      MasterAffiliate success,
1998 vikas 26792
      UserAffiliateException utx)
1846 vikas 26793
    {
26794
      this();
26795
      this.success = success;
26796
      this.utx = utx;
26797
    }
26798
 
26799
    /**
26800
     * Performs a deep copy on <i>other</i>.
26801
     */
26802
    public getMasterAffiliateByName_result(getMasterAffiliateByName_result other) {
26803
      if (other.isSetSuccess()) {
26804
        this.success = new MasterAffiliate(other.success);
26805
      }
26806
      if (other.isSetUtx()) {
1998 vikas 26807
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 26808
      }
26809
    }
26810
 
26811
    public getMasterAffiliateByName_result deepCopy() {
26812
      return new getMasterAffiliateByName_result(this);
26813
    }
26814
 
3430 rajveer 26815
    @Override
26816
    public void clear() {
26817
      this.success = null;
26818
      this.utx = null;
1846 vikas 26819
    }
26820
 
26821
    public MasterAffiliate getSuccess() {
26822
      return this.success;
26823
    }
26824
 
3430 rajveer 26825
    public void setSuccess(MasterAffiliate success) {
1846 vikas 26826
      this.success = success;
26827
    }
26828
 
26829
    public void unsetSuccess() {
26830
      this.success = null;
26831
    }
26832
 
3430 rajveer 26833
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 26834
    public boolean isSetSuccess() {
26835
      return this.success != null;
26836
    }
26837
 
26838
    public void setSuccessIsSet(boolean value) {
26839
      if (!value) {
26840
        this.success = null;
26841
      }
26842
    }
26843
 
1998 vikas 26844
    public UserAffiliateException getUtx() {
1846 vikas 26845
      return this.utx;
26846
    }
26847
 
3430 rajveer 26848
    public void setUtx(UserAffiliateException utx) {
1846 vikas 26849
      this.utx = utx;
26850
    }
26851
 
26852
    public void unsetUtx() {
26853
      this.utx = null;
26854
    }
26855
 
3430 rajveer 26856
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 26857
    public boolean isSetUtx() {
26858
      return this.utx != null;
26859
    }
26860
 
26861
    public void setUtxIsSet(boolean value) {
26862
      if (!value) {
26863
        this.utx = null;
26864
      }
26865
    }
26866
 
26867
    public void setFieldValue(_Fields field, Object value) {
26868
      switch (field) {
26869
      case SUCCESS:
26870
        if (value == null) {
26871
          unsetSuccess();
26872
        } else {
26873
          setSuccess((MasterAffiliate)value);
26874
        }
26875
        break;
26876
 
26877
      case UTX:
26878
        if (value == null) {
26879
          unsetUtx();
26880
        } else {
1998 vikas 26881
          setUtx((UserAffiliateException)value);
1846 vikas 26882
        }
26883
        break;
26884
 
26885
      }
26886
    }
26887
 
26888
    public Object getFieldValue(_Fields field) {
26889
      switch (field) {
26890
      case SUCCESS:
26891
        return getSuccess();
26892
 
26893
      case UTX:
26894
        return getUtx();
26895
 
26896
      }
26897
      throw new IllegalStateException();
26898
    }
26899
 
3430 rajveer 26900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26901
    public boolean isSet(_Fields field) {
26902
      if (field == null) {
26903
        throw new IllegalArgumentException();
26904
      }
1846 vikas 26905
 
26906
      switch (field) {
26907
      case SUCCESS:
26908
        return isSetSuccess();
26909
      case UTX:
26910
        return isSetUtx();
26911
      }
26912
      throw new IllegalStateException();
26913
    }
26914
 
26915
    @Override
26916
    public boolean equals(Object that) {
26917
      if (that == null)
26918
        return false;
26919
      if (that instanceof getMasterAffiliateByName_result)
26920
        return this.equals((getMasterAffiliateByName_result)that);
26921
      return false;
26922
    }
26923
 
26924
    public boolean equals(getMasterAffiliateByName_result that) {
26925
      if (that == null)
26926
        return false;
26927
 
26928
      boolean this_present_success = true && this.isSetSuccess();
26929
      boolean that_present_success = true && that.isSetSuccess();
26930
      if (this_present_success || that_present_success) {
26931
        if (!(this_present_success && that_present_success))
26932
          return false;
26933
        if (!this.success.equals(that.success))
26934
          return false;
26935
      }
26936
 
26937
      boolean this_present_utx = true && this.isSetUtx();
26938
      boolean that_present_utx = true && that.isSetUtx();
26939
      if (this_present_utx || that_present_utx) {
26940
        if (!(this_present_utx && that_present_utx))
26941
          return false;
26942
        if (!this.utx.equals(that.utx))
26943
          return false;
26944
      }
26945
 
26946
      return true;
26947
    }
26948
 
26949
    @Override
26950
    public int hashCode() {
26951
      return 0;
26952
    }
26953
 
26954
    public int compareTo(getMasterAffiliateByName_result other) {
26955
      if (!getClass().equals(other.getClass())) {
26956
        return getClass().getName().compareTo(other.getClass().getName());
26957
      }
26958
 
26959
      int lastComparison = 0;
26960
      getMasterAffiliateByName_result typedOther = (getMasterAffiliateByName_result)other;
26961
 
3430 rajveer 26962
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 26963
      if (lastComparison != 0) {
26964
        return lastComparison;
26965
      }
3430 rajveer 26966
      if (isSetSuccess()) {
26967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26968
        if (lastComparison != 0) {
26969
          return lastComparison;
26970
        }
1846 vikas 26971
      }
3430 rajveer 26972
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 26973
      if (lastComparison != 0) {
26974
        return lastComparison;
26975
      }
3430 rajveer 26976
      if (isSetUtx()) {
26977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
26978
        if (lastComparison != 0) {
26979
          return lastComparison;
26980
        }
1846 vikas 26981
      }
26982
      return 0;
26983
    }
26984
 
3430 rajveer 26985
    public _Fields fieldForId(int fieldId) {
26986
      return _Fields.findByThriftId(fieldId);
26987
    }
26988
 
26989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26990
      org.apache.thrift.protocol.TField field;
1846 vikas 26991
      iprot.readStructBegin();
26992
      while (true)
26993
      {
26994
        field = iprot.readFieldBegin();
3430 rajveer 26995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26996
          break;
26997
        }
3430 rajveer 26998
        switch (field.id) {
26999
          case 0: // SUCCESS
27000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27001
              this.success = new MasterAffiliate();
27002
              this.success.read(iprot);
27003
            } else { 
27004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27005
            }
27006
            break;
27007
          case 1: // UTX
27008
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27009
              this.utx = new UserAffiliateException();
27010
              this.utx.read(iprot);
27011
            } else { 
27012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27013
            }
27014
            break;
27015
          default:
27016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27017
        }
3430 rajveer 27018
        iprot.readFieldEnd();
1846 vikas 27019
      }
27020
      iprot.readStructEnd();
27021
      validate();
27022
    }
27023
 
3430 rajveer 27024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27025
      oprot.writeStructBegin(STRUCT_DESC);
27026
 
27027
      if (this.isSetSuccess()) {
27028
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27029
        this.success.write(oprot);
27030
        oprot.writeFieldEnd();
27031
      } else if (this.isSetUtx()) {
27032
        oprot.writeFieldBegin(UTX_FIELD_DESC);
27033
        this.utx.write(oprot);
27034
        oprot.writeFieldEnd();
27035
      }
27036
      oprot.writeFieldStop();
27037
      oprot.writeStructEnd();
27038
    }
27039
 
27040
    @Override
27041
    public String toString() {
27042
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_result(");
27043
      boolean first = true;
27044
 
27045
      sb.append("success:");
27046
      if (this.success == null) {
27047
        sb.append("null");
27048
      } else {
27049
        sb.append(this.success);
27050
      }
27051
      first = false;
27052
      if (!first) sb.append(", ");
27053
      sb.append("utx:");
27054
      if (this.utx == null) {
27055
        sb.append("null");
27056
      } else {
27057
        sb.append(this.utx);
27058
      }
27059
      first = false;
27060
      sb.append(")");
27061
      return sb.toString();
27062
    }
27063
 
3430 rajveer 27064
    public void validate() throws org.apache.thrift.TException {
1846 vikas 27065
      // check for required fields
27066
    }
27067
 
3430 rajveer 27068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27069
      try {
27070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27071
      } catch (org.apache.thrift.TException te) {
27072
        throw new java.io.IOException(te);
27073
      }
27074
    }
27075
 
27076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27077
      try {
27078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27079
      } catch (org.apache.thrift.TException te) {
27080
        throw new java.io.IOException(te);
27081
      }
27082
    }
27083
 
1846 vikas 27084
  }
27085
 
3430 rajveer 27086
  public static class createAffiliate_args implements org.apache.thrift.TBase<createAffiliate_args, createAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
27087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAffiliate_args");
1846 vikas 27088
 
3430 rajveer 27089
    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);
27090
    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);
27091
    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);
27092
    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 27093
 
3430 rajveer 27094
    private String name; // required
27095
    private String url; // required
27096
    private long masterAffiliateId; // required
27097
    private long addedOn; // required
1846 vikas 27098
 
27099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 27101
      NAME((short)1, "name"),
27102
      URL((short)2, "url"),
1860 vikas 27103
      MASTER_AFFILIATE_ID((short)3, "masterAffiliateId"),
27104
      ADDED_ON((short)4, "addedOn");
1846 vikas 27105
 
27106
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27107
 
27108
      static {
27109
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27110
          byName.put(field.getFieldName(), field);
27111
        }
27112
      }
27113
 
27114
      /**
27115
       * Find the _Fields constant that matches fieldId, or null if its not found.
27116
       */
27117
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27118
        switch(fieldId) {
27119
          case 1: // NAME
27120
            return NAME;
27121
          case 2: // URL
27122
            return URL;
27123
          case 3: // MASTER_AFFILIATE_ID
27124
            return MASTER_AFFILIATE_ID;
27125
          case 4: // ADDED_ON
27126
            return ADDED_ON;
27127
          default:
27128
            return null;
27129
        }
1846 vikas 27130
      }
27131
 
27132
      /**
27133
       * Find the _Fields constant that matches fieldId, throwing an exception
27134
       * if it is not found.
27135
       */
27136
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27137
        _Fields fields = findByThriftId(fieldId);
27138
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27139
        return fields;
27140
      }
27141
 
27142
      /**
27143
       * Find the _Fields constant that matches name, or null if its not found.
27144
       */
27145
      public static _Fields findByName(String name) {
27146
        return byName.get(name);
27147
      }
27148
 
27149
      private final short _thriftId;
27150
      private final String _fieldName;
27151
 
27152
      _Fields(short thriftId, String fieldName) {
27153
        _thriftId = thriftId;
27154
        _fieldName = fieldName;
27155
      }
27156
 
27157
      public short getThriftFieldId() {
27158
        return _thriftId;
27159
      }
27160
 
27161
      public String getFieldName() {
27162
        return _fieldName;
27163
      }
27164
    }
27165
 
27166
    // isset id assignments
27167
    private static final int __MASTERAFFILIATEID_ISSET_ID = 0;
1860 vikas 27168
    private static final int __ADDEDON_ISSET_ID = 1;
27169
    private BitSet __isset_bit_vector = new BitSet(2);
1846 vikas 27170
 
3430 rajveer 27171
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27172
    static {
3430 rajveer 27173
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27174
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27175
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27176
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27177
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27178
      tmpMap.put(_Fields.MASTER_AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("masterAffiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27179
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27180
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27181
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAffiliate_args.class, metaDataMap);
1846 vikas 27184
    }
27185
 
27186
    public createAffiliate_args() {
27187
    }
27188
 
27189
    public createAffiliate_args(
27190
      String name,
27191
      String url,
1860 vikas 27192
      long masterAffiliateId,
27193
      long addedOn)
1846 vikas 27194
    {
27195
      this();
27196
      this.name = name;
27197
      this.url = url;
27198
      this.masterAffiliateId = masterAffiliateId;
27199
      setMasterAffiliateIdIsSet(true);
1860 vikas 27200
      this.addedOn = addedOn;
27201
      setAddedOnIsSet(true);
1846 vikas 27202
    }
27203
 
27204
    /**
27205
     * Performs a deep copy on <i>other</i>.
27206
     */
27207
    public createAffiliate_args(createAffiliate_args other) {
27208
      __isset_bit_vector.clear();
27209
      __isset_bit_vector.or(other.__isset_bit_vector);
27210
      if (other.isSetName()) {
27211
        this.name = other.name;
27212
      }
27213
      if (other.isSetUrl()) {
27214
        this.url = other.url;
27215
      }
27216
      this.masterAffiliateId = other.masterAffiliateId;
1860 vikas 27217
      this.addedOn = other.addedOn;
1846 vikas 27218
    }
27219
 
27220
    public createAffiliate_args deepCopy() {
27221
      return new createAffiliate_args(this);
27222
    }
27223
 
3430 rajveer 27224
    @Override
27225
    public void clear() {
27226
      this.name = null;
27227
      this.url = null;
27228
      setMasterAffiliateIdIsSet(false);
27229
      this.masterAffiliateId = 0;
27230
      setAddedOnIsSet(false);
27231
      this.addedOn = 0;
1846 vikas 27232
    }
27233
 
27234
    public String getName() {
27235
      return this.name;
27236
    }
27237
 
3430 rajveer 27238
    public void setName(String name) {
1846 vikas 27239
      this.name = name;
27240
    }
27241
 
27242
    public void unsetName() {
27243
      this.name = null;
27244
    }
27245
 
3430 rajveer 27246
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 27247
    public boolean isSetName() {
27248
      return this.name != null;
27249
    }
27250
 
27251
    public void setNameIsSet(boolean value) {
27252
      if (!value) {
27253
        this.name = null;
27254
      }
27255
    }
27256
 
27257
    public String getUrl() {
27258
      return this.url;
27259
    }
27260
 
3430 rajveer 27261
    public void setUrl(String url) {
1846 vikas 27262
      this.url = url;
27263
    }
27264
 
27265
    public void unsetUrl() {
27266
      this.url = null;
27267
    }
27268
 
3430 rajveer 27269
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 27270
    public boolean isSetUrl() {
27271
      return this.url != null;
27272
    }
27273
 
27274
    public void setUrlIsSet(boolean value) {
27275
      if (!value) {
27276
        this.url = null;
27277
      }
27278
    }
27279
 
27280
    public long getMasterAffiliateId() {
27281
      return this.masterAffiliateId;
27282
    }
27283
 
3430 rajveer 27284
    public void setMasterAffiliateId(long masterAffiliateId) {
1846 vikas 27285
      this.masterAffiliateId = masterAffiliateId;
27286
      setMasterAffiliateIdIsSet(true);
27287
    }
27288
 
27289
    public void unsetMasterAffiliateId() {
27290
      __isset_bit_vector.clear(__MASTERAFFILIATEID_ISSET_ID);
27291
    }
27292
 
3430 rajveer 27293
    /** Returns true if field masterAffiliateId is set (has been assigned a value) and false otherwise */
1846 vikas 27294
    public boolean isSetMasterAffiliateId() {
27295
      return __isset_bit_vector.get(__MASTERAFFILIATEID_ISSET_ID);
27296
    }
27297
 
27298
    public void setMasterAffiliateIdIsSet(boolean value) {
27299
      __isset_bit_vector.set(__MASTERAFFILIATEID_ISSET_ID, value);
27300
    }
27301
 
1860 vikas 27302
    public long getAddedOn() {
27303
      return this.addedOn;
27304
    }
27305
 
3430 rajveer 27306
    public void setAddedOn(long addedOn) {
1860 vikas 27307
      this.addedOn = addedOn;
27308
      setAddedOnIsSet(true);
27309
    }
27310
 
27311
    public void unsetAddedOn() {
27312
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
27313
    }
27314
 
3430 rajveer 27315
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 27316
    public boolean isSetAddedOn() {
27317
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
27318
    }
27319
 
27320
    public void setAddedOnIsSet(boolean value) {
27321
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
27322
    }
27323
 
1846 vikas 27324
    public void setFieldValue(_Fields field, Object value) {
27325
      switch (field) {
27326
      case NAME:
27327
        if (value == null) {
27328
          unsetName();
27329
        } else {
27330
          setName((String)value);
27331
        }
27332
        break;
27333
 
27334
      case URL:
27335
        if (value == null) {
27336
          unsetUrl();
27337
        } else {
27338
          setUrl((String)value);
27339
        }
27340
        break;
27341
 
27342
      case MASTER_AFFILIATE_ID:
27343
        if (value == null) {
27344
          unsetMasterAffiliateId();
27345
        } else {
27346
          setMasterAffiliateId((Long)value);
27347
        }
27348
        break;
27349
 
1860 vikas 27350
      case ADDED_ON:
27351
        if (value == null) {
27352
          unsetAddedOn();
27353
        } else {
27354
          setAddedOn((Long)value);
27355
        }
27356
        break;
27357
 
1846 vikas 27358
      }
27359
    }
27360
 
27361
    public Object getFieldValue(_Fields field) {
27362
      switch (field) {
27363
      case NAME:
27364
        return getName();
27365
 
27366
      case URL:
27367
        return getUrl();
27368
 
27369
      case MASTER_AFFILIATE_ID:
3430 rajveer 27370
        return Long.valueOf(getMasterAffiliateId());
1846 vikas 27371
 
1860 vikas 27372
      case ADDED_ON:
3430 rajveer 27373
        return Long.valueOf(getAddedOn());
1860 vikas 27374
 
1846 vikas 27375
      }
27376
      throw new IllegalStateException();
27377
    }
27378
 
3430 rajveer 27379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27380
    public boolean isSet(_Fields field) {
27381
      if (field == null) {
27382
        throw new IllegalArgumentException();
27383
      }
1846 vikas 27384
 
27385
      switch (field) {
27386
      case NAME:
27387
        return isSetName();
27388
      case URL:
27389
        return isSetUrl();
27390
      case MASTER_AFFILIATE_ID:
27391
        return isSetMasterAffiliateId();
1860 vikas 27392
      case ADDED_ON:
27393
        return isSetAddedOn();
1846 vikas 27394
      }
27395
      throw new IllegalStateException();
27396
    }
27397
 
27398
    @Override
27399
    public boolean equals(Object that) {
27400
      if (that == null)
27401
        return false;
27402
      if (that instanceof createAffiliate_args)
27403
        return this.equals((createAffiliate_args)that);
27404
      return false;
27405
    }
27406
 
27407
    public boolean equals(createAffiliate_args that) {
27408
      if (that == null)
27409
        return false;
27410
 
27411
      boolean this_present_name = true && this.isSetName();
27412
      boolean that_present_name = true && that.isSetName();
27413
      if (this_present_name || that_present_name) {
27414
        if (!(this_present_name && that_present_name))
27415
          return false;
27416
        if (!this.name.equals(that.name))
27417
          return false;
27418
      }
27419
 
27420
      boolean this_present_url = true && this.isSetUrl();
27421
      boolean that_present_url = true && that.isSetUrl();
27422
      if (this_present_url || that_present_url) {
27423
        if (!(this_present_url && that_present_url))
27424
          return false;
27425
        if (!this.url.equals(that.url))
27426
          return false;
27427
      }
27428
 
27429
      boolean this_present_masterAffiliateId = true;
27430
      boolean that_present_masterAffiliateId = true;
27431
      if (this_present_masterAffiliateId || that_present_masterAffiliateId) {
27432
        if (!(this_present_masterAffiliateId && that_present_masterAffiliateId))
27433
          return false;
27434
        if (this.masterAffiliateId != that.masterAffiliateId)
27435
          return false;
27436
      }
27437
 
1860 vikas 27438
      boolean this_present_addedOn = true;
27439
      boolean that_present_addedOn = true;
27440
      if (this_present_addedOn || that_present_addedOn) {
27441
        if (!(this_present_addedOn && that_present_addedOn))
27442
          return false;
27443
        if (this.addedOn != that.addedOn)
27444
          return false;
27445
      }
27446
 
1846 vikas 27447
      return true;
27448
    }
27449
 
27450
    @Override
27451
    public int hashCode() {
27452
      return 0;
27453
    }
27454
 
27455
    public int compareTo(createAffiliate_args other) {
27456
      if (!getClass().equals(other.getClass())) {
27457
        return getClass().getName().compareTo(other.getClass().getName());
27458
      }
27459
 
27460
      int lastComparison = 0;
27461
      createAffiliate_args typedOther = (createAffiliate_args)other;
27462
 
3430 rajveer 27463
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 27464
      if (lastComparison != 0) {
27465
        return lastComparison;
27466
      }
3430 rajveer 27467
      if (isSetName()) {
27468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
27469
        if (lastComparison != 0) {
27470
          return lastComparison;
27471
        }
1846 vikas 27472
      }
3430 rajveer 27473
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 27474
      if (lastComparison != 0) {
27475
        return lastComparison;
27476
      }
3430 rajveer 27477
      if (isSetUrl()) {
27478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
27479
        if (lastComparison != 0) {
27480
          return lastComparison;
27481
        }
1846 vikas 27482
      }
3430 rajveer 27483
      lastComparison = Boolean.valueOf(isSetMasterAffiliateId()).compareTo(typedOther.isSetMasterAffiliateId());
1846 vikas 27484
      if (lastComparison != 0) {
27485
        return lastComparison;
27486
      }
3430 rajveer 27487
      if (isSetMasterAffiliateId()) {
27488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.masterAffiliateId, typedOther.masterAffiliateId);
27489
        if (lastComparison != 0) {
27490
          return lastComparison;
27491
        }
1846 vikas 27492
      }
3430 rajveer 27493
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 27494
      if (lastComparison != 0) {
27495
        return lastComparison;
27496
      }
3430 rajveer 27497
      if (isSetAddedOn()) {
27498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
27499
        if (lastComparison != 0) {
27500
          return lastComparison;
27501
        }
1860 vikas 27502
      }
1846 vikas 27503
      return 0;
27504
    }
27505
 
3430 rajveer 27506
    public _Fields fieldForId(int fieldId) {
27507
      return _Fields.findByThriftId(fieldId);
27508
    }
27509
 
27510
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27511
      org.apache.thrift.protocol.TField field;
1846 vikas 27512
      iprot.readStructBegin();
27513
      while (true)
27514
      {
27515
        field = iprot.readFieldBegin();
3430 rajveer 27516
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 27517
          break;
27518
        }
3430 rajveer 27519
        switch (field.id) {
27520
          case 1: // NAME
27521
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27522
              this.name = iprot.readString();
27523
            } else { 
27524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27525
            }
27526
            break;
27527
          case 2: // URL
27528
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27529
              this.url = iprot.readString();
27530
            } else { 
27531
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27532
            }
27533
            break;
27534
          case 3: // MASTER_AFFILIATE_ID
27535
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27536
              this.masterAffiliateId = iprot.readI64();
27537
              setMasterAffiliateIdIsSet(true);
27538
            } else { 
27539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27540
            }
27541
            break;
27542
          case 4: // ADDED_ON
27543
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27544
              this.addedOn = iprot.readI64();
27545
              setAddedOnIsSet(true);
27546
            } else { 
27547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27548
            }
27549
            break;
27550
          default:
27551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27552
        }
3430 rajveer 27553
        iprot.readFieldEnd();
1846 vikas 27554
      }
27555
      iprot.readStructEnd();
27556
      validate();
27557
    }
27558
 
3430 rajveer 27559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27560
      validate();
27561
 
27562
      oprot.writeStructBegin(STRUCT_DESC);
27563
      if (this.name != null) {
27564
        oprot.writeFieldBegin(NAME_FIELD_DESC);
27565
        oprot.writeString(this.name);
27566
        oprot.writeFieldEnd();
27567
      }
27568
      if (this.url != null) {
27569
        oprot.writeFieldBegin(URL_FIELD_DESC);
27570
        oprot.writeString(this.url);
27571
        oprot.writeFieldEnd();
27572
      }
27573
      oprot.writeFieldBegin(MASTER_AFFILIATE_ID_FIELD_DESC);
27574
      oprot.writeI64(this.masterAffiliateId);
27575
      oprot.writeFieldEnd();
1860 vikas 27576
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
27577
      oprot.writeI64(this.addedOn);
27578
      oprot.writeFieldEnd();
1846 vikas 27579
      oprot.writeFieldStop();
27580
      oprot.writeStructEnd();
27581
    }
27582
 
27583
    @Override
27584
    public String toString() {
27585
      StringBuilder sb = new StringBuilder("createAffiliate_args(");
27586
      boolean first = true;
27587
 
27588
      sb.append("name:");
27589
      if (this.name == null) {
27590
        sb.append("null");
27591
      } else {
27592
        sb.append(this.name);
27593
      }
27594
      first = false;
27595
      if (!first) sb.append(", ");
27596
      sb.append("url:");
27597
      if (this.url == null) {
27598
        sb.append("null");
27599
      } else {
27600
        sb.append(this.url);
27601
      }
27602
      first = false;
27603
      if (!first) sb.append(", ");
27604
      sb.append("masterAffiliateId:");
27605
      sb.append(this.masterAffiliateId);
27606
      first = false;
1860 vikas 27607
      if (!first) sb.append(", ");
27608
      sb.append("addedOn:");
27609
      sb.append(this.addedOn);
27610
      first = false;
1846 vikas 27611
      sb.append(")");
27612
      return sb.toString();
27613
    }
27614
 
3430 rajveer 27615
    public void validate() throws org.apache.thrift.TException {
1846 vikas 27616
      // check for required fields
27617
    }
27618
 
3430 rajveer 27619
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27620
      try {
27621
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27622
      } catch (org.apache.thrift.TException te) {
27623
        throw new java.io.IOException(te);
27624
      }
27625
    }
27626
 
27627
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27628
      try {
27629
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27630
        __isset_bit_vector = new BitSet(1);
27631
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27632
      } catch (org.apache.thrift.TException te) {
27633
        throw new java.io.IOException(te);
27634
      }
27635
    }
27636
 
1846 vikas 27637
  }
27638
 
3430 rajveer 27639
  public static class createAffiliate_result implements org.apache.thrift.TBase<createAffiliate_result, createAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
27640
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAffiliate_result");
1846 vikas 27641
 
3430 rajveer 27642
    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);
27643
    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 27644
 
3430 rajveer 27645
    private Affiliate success; // required
27646
    private UserAffiliateException utx; // required
1846 vikas 27647
 
27648
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27649
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 27650
      SUCCESS((short)0, "success"),
27651
      UTX((short)1, "utx");
27652
 
27653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27654
 
27655
      static {
27656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27657
          byName.put(field.getFieldName(), field);
27658
        }
27659
      }
27660
 
27661
      /**
27662
       * Find the _Fields constant that matches fieldId, or null if its not found.
27663
       */
27664
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27665
        switch(fieldId) {
27666
          case 0: // SUCCESS
27667
            return SUCCESS;
27668
          case 1: // UTX
27669
            return UTX;
27670
          default:
27671
            return null;
27672
        }
1846 vikas 27673
      }
27674
 
27675
      /**
27676
       * Find the _Fields constant that matches fieldId, throwing an exception
27677
       * if it is not found.
27678
       */
27679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27680
        _Fields fields = findByThriftId(fieldId);
27681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27682
        return fields;
27683
      }
27684
 
27685
      /**
27686
       * Find the _Fields constant that matches name, or null if its not found.
27687
       */
27688
      public static _Fields findByName(String name) {
27689
        return byName.get(name);
27690
      }
27691
 
27692
      private final short _thriftId;
27693
      private final String _fieldName;
27694
 
27695
      _Fields(short thriftId, String fieldName) {
27696
        _thriftId = thriftId;
27697
        _fieldName = fieldName;
27698
      }
27699
 
27700
      public short getThriftFieldId() {
27701
        return _thriftId;
27702
      }
27703
 
27704
      public String getFieldName() {
27705
        return _fieldName;
27706
      }
27707
    }
27708
 
27709
    // isset id assignments
27710
 
3430 rajveer 27711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27712
    static {
3430 rajveer 27713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27714
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27715
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
27716
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAffiliate_result.class, metaDataMap);
1846 vikas 27720
    }
27721
 
27722
    public createAffiliate_result() {
27723
    }
27724
 
27725
    public createAffiliate_result(
27726
      Affiliate success,
1998 vikas 27727
      UserAffiliateException utx)
1846 vikas 27728
    {
27729
      this();
27730
      this.success = success;
27731
      this.utx = utx;
27732
    }
27733
 
27734
    /**
27735
     * Performs a deep copy on <i>other</i>.
27736
     */
27737
    public createAffiliate_result(createAffiliate_result other) {
27738
      if (other.isSetSuccess()) {
27739
        this.success = new Affiliate(other.success);
27740
      }
27741
      if (other.isSetUtx()) {
1998 vikas 27742
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 27743
      }
27744
    }
27745
 
27746
    public createAffiliate_result deepCopy() {
27747
      return new createAffiliate_result(this);
27748
    }
27749
 
3430 rajveer 27750
    @Override
27751
    public void clear() {
27752
      this.success = null;
27753
      this.utx = null;
1846 vikas 27754
    }
27755
 
27756
    public Affiliate getSuccess() {
27757
      return this.success;
27758
    }
27759
 
3430 rajveer 27760
    public void setSuccess(Affiliate success) {
1846 vikas 27761
      this.success = success;
27762
    }
27763
 
27764
    public void unsetSuccess() {
27765
      this.success = null;
27766
    }
27767
 
3430 rajveer 27768
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 27769
    public boolean isSetSuccess() {
27770
      return this.success != null;
27771
    }
27772
 
27773
    public void setSuccessIsSet(boolean value) {
27774
      if (!value) {
27775
        this.success = null;
27776
      }
27777
    }
27778
 
1998 vikas 27779
    public UserAffiliateException getUtx() {
1846 vikas 27780
      return this.utx;
27781
    }
27782
 
3430 rajveer 27783
    public void setUtx(UserAffiliateException utx) {
1846 vikas 27784
      this.utx = utx;
27785
    }
27786
 
27787
    public void unsetUtx() {
27788
      this.utx = null;
27789
    }
27790
 
3430 rajveer 27791
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 27792
    public boolean isSetUtx() {
27793
      return this.utx != null;
27794
    }
27795
 
27796
    public void setUtxIsSet(boolean value) {
27797
      if (!value) {
27798
        this.utx = null;
27799
      }
27800
    }
27801
 
27802
    public void setFieldValue(_Fields field, Object value) {
27803
      switch (field) {
27804
      case SUCCESS:
27805
        if (value == null) {
27806
          unsetSuccess();
27807
        } else {
27808
          setSuccess((Affiliate)value);
27809
        }
27810
        break;
27811
 
27812
      case UTX:
27813
        if (value == null) {
27814
          unsetUtx();
27815
        } else {
1998 vikas 27816
          setUtx((UserAffiliateException)value);
1846 vikas 27817
        }
27818
        break;
27819
 
27820
      }
27821
    }
27822
 
27823
    public Object getFieldValue(_Fields field) {
27824
      switch (field) {
27825
      case SUCCESS:
27826
        return getSuccess();
27827
 
27828
      case UTX:
27829
        return getUtx();
27830
 
27831
      }
27832
      throw new IllegalStateException();
27833
    }
27834
 
3430 rajveer 27835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27836
    public boolean isSet(_Fields field) {
27837
      if (field == null) {
27838
        throw new IllegalArgumentException();
27839
      }
1846 vikas 27840
 
27841
      switch (field) {
27842
      case SUCCESS:
27843
        return isSetSuccess();
27844
      case UTX:
27845
        return isSetUtx();
27846
      }
27847
      throw new IllegalStateException();
27848
    }
27849
 
27850
    @Override
27851
    public boolean equals(Object that) {
27852
      if (that == null)
27853
        return false;
27854
      if (that instanceof createAffiliate_result)
27855
        return this.equals((createAffiliate_result)that);
27856
      return false;
27857
    }
27858
 
27859
    public boolean equals(createAffiliate_result that) {
27860
      if (that == null)
27861
        return false;
27862
 
27863
      boolean this_present_success = true && this.isSetSuccess();
27864
      boolean that_present_success = true && that.isSetSuccess();
27865
      if (this_present_success || that_present_success) {
27866
        if (!(this_present_success && that_present_success))
27867
          return false;
27868
        if (!this.success.equals(that.success))
27869
          return false;
27870
      }
27871
 
27872
      boolean this_present_utx = true && this.isSetUtx();
27873
      boolean that_present_utx = true && that.isSetUtx();
27874
      if (this_present_utx || that_present_utx) {
27875
        if (!(this_present_utx && that_present_utx))
27876
          return false;
27877
        if (!this.utx.equals(that.utx))
27878
          return false;
27879
      }
27880
 
27881
      return true;
27882
    }
27883
 
27884
    @Override
27885
    public int hashCode() {
27886
      return 0;
27887
    }
27888
 
27889
    public int compareTo(createAffiliate_result other) {
27890
      if (!getClass().equals(other.getClass())) {
27891
        return getClass().getName().compareTo(other.getClass().getName());
27892
      }
27893
 
27894
      int lastComparison = 0;
27895
      createAffiliate_result typedOther = (createAffiliate_result)other;
27896
 
3430 rajveer 27897
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 27898
      if (lastComparison != 0) {
27899
        return lastComparison;
27900
      }
3430 rajveer 27901
      if (isSetSuccess()) {
27902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27903
        if (lastComparison != 0) {
27904
          return lastComparison;
27905
        }
1846 vikas 27906
      }
3430 rajveer 27907
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 27908
      if (lastComparison != 0) {
27909
        return lastComparison;
27910
      }
3430 rajveer 27911
      if (isSetUtx()) {
27912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
27913
        if (lastComparison != 0) {
27914
          return lastComparison;
27915
        }
1846 vikas 27916
      }
27917
      return 0;
27918
    }
27919
 
3430 rajveer 27920
    public _Fields fieldForId(int fieldId) {
27921
      return _Fields.findByThriftId(fieldId);
27922
    }
27923
 
27924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27925
      org.apache.thrift.protocol.TField field;
1846 vikas 27926
      iprot.readStructBegin();
27927
      while (true)
27928
      {
27929
        field = iprot.readFieldBegin();
3430 rajveer 27930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 27931
          break;
27932
        }
3430 rajveer 27933
        switch (field.id) {
27934
          case 0: // SUCCESS
27935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27936
              this.success = new Affiliate();
27937
              this.success.read(iprot);
27938
            } else { 
27939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27940
            }
27941
            break;
27942
          case 1: // UTX
27943
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27944
              this.utx = new UserAffiliateException();
27945
              this.utx.read(iprot);
27946
            } else { 
27947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27948
            }
27949
            break;
27950
          default:
27951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27952
        }
3430 rajveer 27953
        iprot.readFieldEnd();
1846 vikas 27954
      }
27955
      iprot.readStructEnd();
27956
      validate();
27957
    }
27958
 
3430 rajveer 27959
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27960
      oprot.writeStructBegin(STRUCT_DESC);
27961
 
27962
      if (this.isSetSuccess()) {
27963
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27964
        this.success.write(oprot);
27965
        oprot.writeFieldEnd();
27966
      } else if (this.isSetUtx()) {
27967
        oprot.writeFieldBegin(UTX_FIELD_DESC);
27968
        this.utx.write(oprot);
27969
        oprot.writeFieldEnd();
27970
      }
27971
      oprot.writeFieldStop();
27972
      oprot.writeStructEnd();
27973
    }
27974
 
27975
    @Override
27976
    public String toString() {
27977
      StringBuilder sb = new StringBuilder("createAffiliate_result(");
27978
      boolean first = true;
27979
 
27980
      sb.append("success:");
27981
      if (this.success == null) {
27982
        sb.append("null");
27983
      } else {
27984
        sb.append(this.success);
27985
      }
27986
      first = false;
27987
      if (!first) sb.append(", ");
27988
      sb.append("utx:");
27989
      if (this.utx == null) {
27990
        sb.append("null");
27991
      } else {
27992
        sb.append(this.utx);
27993
      }
27994
      first = false;
27995
      sb.append(")");
27996
      return sb.toString();
27997
    }
27998
 
3430 rajveer 27999
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28000
      // check for required fields
28001
    }
28002
 
3430 rajveer 28003
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28004
      try {
28005
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28006
      } catch (org.apache.thrift.TException te) {
28007
        throw new java.io.IOException(te);
28008
      }
28009
    }
28010
 
28011
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28012
      try {
28013
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28014
      } catch (org.apache.thrift.TException te) {
28015
        throw new java.io.IOException(te);
28016
      }
28017
    }
28018
 
1846 vikas 28019
  }
28020
 
3430 rajveer 28021
  public static class getAffiliateById_args implements org.apache.thrift.TBase<getAffiliateById_args, getAffiliateById_args._Fields>, java.io.Serializable, Cloneable   {
28022
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateById_args");
1846 vikas 28023
 
3430 rajveer 28024
    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 28025
 
3430 rajveer 28026
    private long id; // required
1846 vikas 28027
 
28028
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28029
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28030
      ID((short)1, "id");
28031
 
28032
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28033
 
28034
      static {
28035
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28036
          byName.put(field.getFieldName(), field);
28037
        }
28038
      }
28039
 
28040
      /**
28041
       * Find the _Fields constant that matches fieldId, or null if its not found.
28042
       */
28043
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28044
        switch(fieldId) {
28045
          case 1: // ID
28046
            return ID;
28047
          default:
28048
            return null;
28049
        }
1846 vikas 28050
      }
28051
 
28052
      /**
28053
       * Find the _Fields constant that matches fieldId, throwing an exception
28054
       * if it is not found.
28055
       */
28056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28057
        _Fields fields = findByThriftId(fieldId);
28058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28059
        return fields;
28060
      }
28061
 
28062
      /**
28063
       * Find the _Fields constant that matches name, or null if its not found.
28064
       */
28065
      public static _Fields findByName(String name) {
28066
        return byName.get(name);
28067
      }
28068
 
28069
      private final short _thriftId;
28070
      private final String _fieldName;
28071
 
28072
      _Fields(short thriftId, String fieldName) {
28073
        _thriftId = thriftId;
28074
        _fieldName = fieldName;
28075
      }
28076
 
28077
      public short getThriftFieldId() {
28078
        return _thriftId;
28079
      }
28080
 
28081
      public String getFieldName() {
28082
        return _fieldName;
28083
      }
28084
    }
28085
 
28086
    // isset id assignments
28087
    private static final int __ID_ISSET_ID = 0;
28088
    private BitSet __isset_bit_vector = new BitSet(1);
28089
 
3430 rajveer 28090
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28091
    static {
3430 rajveer 28092
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28093
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateById_args.class, metaDataMap);
1846 vikas 28097
    }
28098
 
28099
    public getAffiliateById_args() {
28100
    }
28101
 
28102
    public getAffiliateById_args(
28103
      long id)
28104
    {
28105
      this();
28106
      this.id = id;
28107
      setIdIsSet(true);
28108
    }
28109
 
28110
    /**
28111
     * Performs a deep copy on <i>other</i>.
28112
     */
28113
    public getAffiliateById_args(getAffiliateById_args other) {
28114
      __isset_bit_vector.clear();
28115
      __isset_bit_vector.or(other.__isset_bit_vector);
28116
      this.id = other.id;
28117
    }
28118
 
28119
    public getAffiliateById_args deepCopy() {
28120
      return new getAffiliateById_args(this);
28121
    }
28122
 
3430 rajveer 28123
    @Override
28124
    public void clear() {
28125
      setIdIsSet(false);
28126
      this.id = 0;
1846 vikas 28127
    }
28128
 
28129
    public long getId() {
28130
      return this.id;
28131
    }
28132
 
3430 rajveer 28133
    public void setId(long id) {
1846 vikas 28134
      this.id = id;
28135
      setIdIsSet(true);
28136
    }
28137
 
28138
    public void unsetId() {
28139
      __isset_bit_vector.clear(__ID_ISSET_ID);
28140
    }
28141
 
3430 rajveer 28142
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 28143
    public boolean isSetId() {
28144
      return __isset_bit_vector.get(__ID_ISSET_ID);
28145
    }
28146
 
28147
    public void setIdIsSet(boolean value) {
28148
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28149
    }
28150
 
28151
    public void setFieldValue(_Fields field, Object value) {
28152
      switch (field) {
28153
      case ID:
28154
        if (value == null) {
28155
          unsetId();
28156
        } else {
28157
          setId((Long)value);
28158
        }
28159
        break;
28160
 
28161
      }
28162
    }
28163
 
28164
    public Object getFieldValue(_Fields field) {
28165
      switch (field) {
28166
      case ID:
3430 rajveer 28167
        return Long.valueOf(getId());
1846 vikas 28168
 
28169
      }
28170
      throw new IllegalStateException();
28171
    }
28172
 
3430 rajveer 28173
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28174
    public boolean isSet(_Fields field) {
28175
      if (field == null) {
28176
        throw new IllegalArgumentException();
28177
      }
1846 vikas 28178
 
28179
      switch (field) {
28180
      case ID:
28181
        return isSetId();
28182
      }
28183
      throw new IllegalStateException();
28184
    }
28185
 
28186
    @Override
28187
    public boolean equals(Object that) {
28188
      if (that == null)
28189
        return false;
28190
      if (that instanceof getAffiliateById_args)
28191
        return this.equals((getAffiliateById_args)that);
28192
      return false;
28193
    }
28194
 
28195
    public boolean equals(getAffiliateById_args that) {
28196
      if (that == null)
28197
        return false;
28198
 
28199
      boolean this_present_id = true;
28200
      boolean that_present_id = true;
28201
      if (this_present_id || that_present_id) {
28202
        if (!(this_present_id && that_present_id))
28203
          return false;
28204
        if (this.id != that.id)
28205
          return false;
28206
      }
28207
 
28208
      return true;
28209
    }
28210
 
28211
    @Override
28212
    public int hashCode() {
28213
      return 0;
28214
    }
28215
 
28216
    public int compareTo(getAffiliateById_args other) {
28217
      if (!getClass().equals(other.getClass())) {
28218
        return getClass().getName().compareTo(other.getClass().getName());
28219
      }
28220
 
28221
      int lastComparison = 0;
28222
      getAffiliateById_args typedOther = (getAffiliateById_args)other;
28223
 
3430 rajveer 28224
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 28225
      if (lastComparison != 0) {
28226
        return lastComparison;
28227
      }
3430 rajveer 28228
      if (isSetId()) {
28229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
28230
        if (lastComparison != 0) {
28231
          return lastComparison;
28232
        }
1846 vikas 28233
      }
28234
      return 0;
28235
    }
28236
 
3430 rajveer 28237
    public _Fields fieldForId(int fieldId) {
28238
      return _Fields.findByThriftId(fieldId);
28239
    }
28240
 
28241
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28242
      org.apache.thrift.protocol.TField field;
1846 vikas 28243
      iprot.readStructBegin();
28244
      while (true)
28245
      {
28246
        field = iprot.readFieldBegin();
3430 rajveer 28247
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28248
          break;
28249
        }
3430 rajveer 28250
        switch (field.id) {
28251
          case 1: // ID
28252
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28253
              this.id = iprot.readI64();
28254
              setIdIsSet(true);
28255
            } else { 
28256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28257
            }
28258
            break;
28259
          default:
28260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28261
        }
3430 rajveer 28262
        iprot.readFieldEnd();
1846 vikas 28263
      }
28264
      iprot.readStructEnd();
28265
      validate();
28266
    }
28267
 
3430 rajveer 28268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28269
      validate();
28270
 
28271
      oprot.writeStructBegin(STRUCT_DESC);
28272
      oprot.writeFieldBegin(ID_FIELD_DESC);
28273
      oprot.writeI64(this.id);
28274
      oprot.writeFieldEnd();
28275
      oprot.writeFieldStop();
28276
      oprot.writeStructEnd();
28277
    }
28278
 
28279
    @Override
28280
    public String toString() {
28281
      StringBuilder sb = new StringBuilder("getAffiliateById_args(");
28282
      boolean first = true;
28283
 
28284
      sb.append("id:");
28285
      sb.append(this.id);
28286
      first = false;
28287
      sb.append(")");
28288
      return sb.toString();
28289
    }
28290
 
3430 rajveer 28291
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28292
      // check for required fields
28293
    }
28294
 
3430 rajveer 28295
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28296
      try {
28297
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28298
      } catch (org.apache.thrift.TException te) {
28299
        throw new java.io.IOException(te);
28300
      }
28301
    }
28302
 
28303
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28304
      try {
28305
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28306
        __isset_bit_vector = new BitSet(1);
28307
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28308
      } catch (org.apache.thrift.TException te) {
28309
        throw new java.io.IOException(te);
28310
      }
28311
    }
28312
 
1846 vikas 28313
  }
28314
 
3430 rajveer 28315
  public static class getAffiliateById_result implements org.apache.thrift.TBase<getAffiliateById_result, getAffiliateById_result._Fields>, java.io.Serializable, Cloneable   {
28316
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateById_result");
1846 vikas 28317
 
3430 rajveer 28318
    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);
28319
    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 28320
 
3430 rajveer 28321
    private Affiliate success; // required
28322
    private UserAffiliateException utx; // required
1846 vikas 28323
 
28324
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28325
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28326
      SUCCESS((short)0, "success"),
28327
      UTX((short)1, "utx");
28328
 
28329
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28330
 
28331
      static {
28332
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28333
          byName.put(field.getFieldName(), field);
28334
        }
28335
      }
28336
 
28337
      /**
28338
       * Find the _Fields constant that matches fieldId, or null if its not found.
28339
       */
28340
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28341
        switch(fieldId) {
28342
          case 0: // SUCCESS
28343
            return SUCCESS;
28344
          case 1: // UTX
28345
            return UTX;
28346
          default:
28347
            return null;
28348
        }
1846 vikas 28349
      }
28350
 
28351
      /**
28352
       * Find the _Fields constant that matches fieldId, throwing an exception
28353
       * if it is not found.
28354
       */
28355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28356
        _Fields fields = findByThriftId(fieldId);
28357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28358
        return fields;
28359
      }
28360
 
28361
      /**
28362
       * Find the _Fields constant that matches name, or null if its not found.
28363
       */
28364
      public static _Fields findByName(String name) {
28365
        return byName.get(name);
28366
      }
28367
 
28368
      private final short _thriftId;
28369
      private final String _fieldName;
28370
 
28371
      _Fields(short thriftId, String fieldName) {
28372
        _thriftId = thriftId;
28373
        _fieldName = fieldName;
28374
      }
28375
 
28376
      public short getThriftFieldId() {
28377
        return _thriftId;
28378
      }
28379
 
28380
      public String getFieldName() {
28381
        return _fieldName;
28382
      }
28383
    }
28384
 
28385
    // isset id assignments
28386
 
3430 rajveer 28387
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28388
    static {
3430 rajveer 28389
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28390
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28391
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
28392
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28394
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28395
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateById_result.class, metaDataMap);
1846 vikas 28396
    }
28397
 
28398
    public getAffiliateById_result() {
28399
    }
28400
 
28401
    public getAffiliateById_result(
28402
      Affiliate success,
1998 vikas 28403
      UserAffiliateException utx)
1846 vikas 28404
    {
28405
      this();
28406
      this.success = success;
28407
      this.utx = utx;
28408
    }
28409
 
28410
    /**
28411
     * Performs a deep copy on <i>other</i>.
28412
     */
28413
    public getAffiliateById_result(getAffiliateById_result other) {
28414
      if (other.isSetSuccess()) {
28415
        this.success = new Affiliate(other.success);
28416
      }
28417
      if (other.isSetUtx()) {
1998 vikas 28418
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 28419
      }
28420
    }
28421
 
28422
    public getAffiliateById_result deepCopy() {
28423
      return new getAffiliateById_result(this);
28424
    }
28425
 
3430 rajveer 28426
    @Override
28427
    public void clear() {
28428
      this.success = null;
28429
      this.utx = null;
1846 vikas 28430
    }
28431
 
28432
    public Affiliate getSuccess() {
28433
      return this.success;
28434
    }
28435
 
3430 rajveer 28436
    public void setSuccess(Affiliate success) {
1846 vikas 28437
      this.success = success;
28438
    }
28439
 
28440
    public void unsetSuccess() {
28441
      this.success = null;
28442
    }
28443
 
3430 rajveer 28444
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 28445
    public boolean isSetSuccess() {
28446
      return this.success != null;
28447
    }
28448
 
28449
    public void setSuccessIsSet(boolean value) {
28450
      if (!value) {
28451
        this.success = null;
28452
      }
28453
    }
28454
 
1998 vikas 28455
    public UserAffiliateException getUtx() {
1846 vikas 28456
      return this.utx;
28457
    }
28458
 
3430 rajveer 28459
    public void setUtx(UserAffiliateException utx) {
1846 vikas 28460
      this.utx = utx;
28461
    }
28462
 
28463
    public void unsetUtx() {
28464
      this.utx = null;
28465
    }
28466
 
3430 rajveer 28467
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 28468
    public boolean isSetUtx() {
28469
      return this.utx != null;
28470
    }
28471
 
28472
    public void setUtxIsSet(boolean value) {
28473
      if (!value) {
28474
        this.utx = null;
28475
      }
28476
    }
28477
 
28478
    public void setFieldValue(_Fields field, Object value) {
28479
      switch (field) {
28480
      case SUCCESS:
28481
        if (value == null) {
28482
          unsetSuccess();
28483
        } else {
28484
          setSuccess((Affiliate)value);
28485
        }
28486
        break;
28487
 
28488
      case UTX:
28489
        if (value == null) {
28490
          unsetUtx();
28491
        } else {
1998 vikas 28492
          setUtx((UserAffiliateException)value);
1846 vikas 28493
        }
28494
        break;
28495
 
28496
      }
28497
    }
28498
 
28499
    public Object getFieldValue(_Fields field) {
28500
      switch (field) {
28501
      case SUCCESS:
28502
        return getSuccess();
28503
 
28504
      case UTX:
28505
        return getUtx();
28506
 
28507
      }
28508
      throw new IllegalStateException();
28509
    }
28510
 
3430 rajveer 28511
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28512
    public boolean isSet(_Fields field) {
28513
      if (field == null) {
28514
        throw new IllegalArgumentException();
28515
      }
1846 vikas 28516
 
28517
      switch (field) {
28518
      case SUCCESS:
28519
        return isSetSuccess();
28520
      case UTX:
28521
        return isSetUtx();
28522
      }
28523
      throw new IllegalStateException();
28524
    }
28525
 
28526
    @Override
28527
    public boolean equals(Object that) {
28528
      if (that == null)
28529
        return false;
28530
      if (that instanceof getAffiliateById_result)
28531
        return this.equals((getAffiliateById_result)that);
28532
      return false;
28533
    }
28534
 
28535
    public boolean equals(getAffiliateById_result that) {
28536
      if (that == null)
28537
        return false;
28538
 
28539
      boolean this_present_success = true && this.isSetSuccess();
28540
      boolean that_present_success = true && that.isSetSuccess();
28541
      if (this_present_success || that_present_success) {
28542
        if (!(this_present_success && that_present_success))
28543
          return false;
28544
        if (!this.success.equals(that.success))
28545
          return false;
28546
      }
28547
 
28548
      boolean this_present_utx = true && this.isSetUtx();
28549
      boolean that_present_utx = true && that.isSetUtx();
28550
      if (this_present_utx || that_present_utx) {
28551
        if (!(this_present_utx && that_present_utx))
28552
          return false;
28553
        if (!this.utx.equals(that.utx))
28554
          return false;
28555
      }
28556
 
28557
      return true;
28558
    }
28559
 
28560
    @Override
28561
    public int hashCode() {
28562
      return 0;
28563
    }
28564
 
28565
    public int compareTo(getAffiliateById_result other) {
28566
      if (!getClass().equals(other.getClass())) {
28567
        return getClass().getName().compareTo(other.getClass().getName());
28568
      }
28569
 
28570
      int lastComparison = 0;
28571
      getAffiliateById_result typedOther = (getAffiliateById_result)other;
28572
 
3430 rajveer 28573
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 28574
      if (lastComparison != 0) {
28575
        return lastComparison;
28576
      }
3430 rajveer 28577
      if (isSetSuccess()) {
28578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28579
        if (lastComparison != 0) {
28580
          return lastComparison;
28581
        }
1846 vikas 28582
      }
3430 rajveer 28583
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 28584
      if (lastComparison != 0) {
28585
        return lastComparison;
28586
      }
3430 rajveer 28587
      if (isSetUtx()) {
28588
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
28589
        if (lastComparison != 0) {
28590
          return lastComparison;
28591
        }
1846 vikas 28592
      }
28593
      return 0;
28594
    }
28595
 
3430 rajveer 28596
    public _Fields fieldForId(int fieldId) {
28597
      return _Fields.findByThriftId(fieldId);
28598
    }
28599
 
28600
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28601
      org.apache.thrift.protocol.TField field;
1846 vikas 28602
      iprot.readStructBegin();
28603
      while (true)
28604
      {
28605
        field = iprot.readFieldBegin();
3430 rajveer 28606
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28607
          break;
28608
        }
3430 rajveer 28609
        switch (field.id) {
28610
          case 0: // SUCCESS
28611
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28612
              this.success = new Affiliate();
28613
              this.success.read(iprot);
28614
            } else { 
28615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28616
            }
28617
            break;
28618
          case 1: // UTX
28619
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28620
              this.utx = new UserAffiliateException();
28621
              this.utx.read(iprot);
28622
            } else { 
28623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28624
            }
28625
            break;
28626
          default:
28627
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28628
        }
3430 rajveer 28629
        iprot.readFieldEnd();
1846 vikas 28630
      }
28631
      iprot.readStructEnd();
28632
      validate();
28633
    }
28634
 
3430 rajveer 28635
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28636
      oprot.writeStructBegin(STRUCT_DESC);
28637
 
28638
      if (this.isSetSuccess()) {
28639
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28640
        this.success.write(oprot);
28641
        oprot.writeFieldEnd();
28642
      } else if (this.isSetUtx()) {
28643
        oprot.writeFieldBegin(UTX_FIELD_DESC);
28644
        this.utx.write(oprot);
28645
        oprot.writeFieldEnd();
28646
      }
28647
      oprot.writeFieldStop();
28648
      oprot.writeStructEnd();
28649
    }
28650
 
28651
    @Override
28652
    public String toString() {
28653
      StringBuilder sb = new StringBuilder("getAffiliateById_result(");
28654
      boolean first = true;
28655
 
28656
      sb.append("success:");
28657
      if (this.success == null) {
28658
        sb.append("null");
28659
      } else {
28660
        sb.append(this.success);
28661
      }
28662
      first = false;
28663
      if (!first) sb.append(", ");
28664
      sb.append("utx:");
28665
      if (this.utx == null) {
28666
        sb.append("null");
28667
      } else {
28668
        sb.append(this.utx);
28669
      }
28670
      first = false;
28671
      sb.append(")");
28672
      return sb.toString();
28673
    }
28674
 
3430 rajveer 28675
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28676
      // check for required fields
28677
    }
28678
 
3430 rajveer 28679
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28680
      try {
28681
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28682
      } catch (org.apache.thrift.TException te) {
28683
        throw new java.io.IOException(te);
28684
      }
28685
    }
28686
 
28687
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28688
      try {
28689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28690
      } catch (org.apache.thrift.TException te) {
28691
        throw new java.io.IOException(te);
28692
      }
28693
    }
28694
 
1846 vikas 28695
  }
28696
 
3430 rajveer 28697
  public static class getAffiliateByName_args implements org.apache.thrift.TBase<getAffiliateByName_args, getAffiliateByName_args._Fields>, java.io.Serializable, Cloneable   {
28698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateByName_args");
1846 vikas 28699
 
3430 rajveer 28700
    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 28701
 
3430 rajveer 28702
    private String name; // required
1846 vikas 28703
 
28704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28706
      NAME((short)1, "name");
28707
 
28708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28709
 
28710
      static {
28711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28712
          byName.put(field.getFieldName(), field);
28713
        }
28714
      }
28715
 
28716
      /**
28717
       * Find the _Fields constant that matches fieldId, or null if its not found.
28718
       */
28719
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28720
        switch(fieldId) {
28721
          case 1: // NAME
28722
            return NAME;
28723
          default:
28724
            return null;
28725
        }
1846 vikas 28726
      }
28727
 
28728
      /**
28729
       * Find the _Fields constant that matches fieldId, throwing an exception
28730
       * if it is not found.
28731
       */
28732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28733
        _Fields fields = findByThriftId(fieldId);
28734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28735
        return fields;
28736
      }
28737
 
28738
      /**
28739
       * Find the _Fields constant that matches name, or null if its not found.
28740
       */
28741
      public static _Fields findByName(String name) {
28742
        return byName.get(name);
28743
      }
28744
 
28745
      private final short _thriftId;
28746
      private final String _fieldName;
28747
 
28748
      _Fields(short thriftId, String fieldName) {
28749
        _thriftId = thriftId;
28750
        _fieldName = fieldName;
28751
      }
28752
 
28753
      public short getThriftFieldId() {
28754
        return _thriftId;
28755
      }
28756
 
28757
      public String getFieldName() {
28758
        return _fieldName;
28759
      }
28760
    }
28761
 
28762
    // isset id assignments
28763
 
3430 rajveer 28764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28765
    static {
3430 rajveer 28766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28767
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateByName_args.class, metaDataMap);
1846 vikas 28771
    }
28772
 
28773
    public getAffiliateByName_args() {
28774
    }
28775
 
28776
    public getAffiliateByName_args(
28777
      String name)
28778
    {
28779
      this();
28780
      this.name = name;
28781
    }
28782
 
28783
    /**
28784
     * Performs a deep copy on <i>other</i>.
28785
     */
28786
    public getAffiliateByName_args(getAffiliateByName_args other) {
28787
      if (other.isSetName()) {
28788
        this.name = other.name;
28789
      }
28790
    }
28791
 
28792
    public getAffiliateByName_args deepCopy() {
28793
      return new getAffiliateByName_args(this);
28794
    }
28795
 
3430 rajveer 28796
    @Override
28797
    public void clear() {
28798
      this.name = null;
1846 vikas 28799
    }
28800
 
28801
    public String getName() {
28802
      return this.name;
28803
    }
28804
 
3430 rajveer 28805
    public void setName(String name) {
1846 vikas 28806
      this.name = name;
28807
    }
28808
 
28809
    public void unsetName() {
28810
      this.name = null;
28811
    }
28812
 
3430 rajveer 28813
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 28814
    public boolean isSetName() {
28815
      return this.name != null;
28816
    }
28817
 
28818
    public void setNameIsSet(boolean value) {
28819
      if (!value) {
28820
        this.name = null;
28821
      }
28822
    }
28823
 
28824
    public void setFieldValue(_Fields field, Object value) {
28825
      switch (field) {
28826
      case NAME:
28827
        if (value == null) {
28828
          unsetName();
28829
        } else {
28830
          setName((String)value);
28831
        }
28832
        break;
28833
 
28834
      }
28835
    }
28836
 
28837
    public Object getFieldValue(_Fields field) {
28838
      switch (field) {
28839
      case NAME:
28840
        return getName();
28841
 
28842
      }
28843
      throw new IllegalStateException();
28844
    }
28845
 
3430 rajveer 28846
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28847
    public boolean isSet(_Fields field) {
28848
      if (field == null) {
28849
        throw new IllegalArgumentException();
28850
      }
1846 vikas 28851
 
28852
      switch (field) {
28853
      case NAME:
28854
        return isSetName();
28855
      }
28856
      throw new IllegalStateException();
28857
    }
28858
 
28859
    @Override
28860
    public boolean equals(Object that) {
28861
      if (that == null)
28862
        return false;
28863
      if (that instanceof getAffiliateByName_args)
28864
        return this.equals((getAffiliateByName_args)that);
28865
      return false;
28866
    }
28867
 
28868
    public boolean equals(getAffiliateByName_args that) {
28869
      if (that == null)
28870
        return false;
28871
 
28872
      boolean this_present_name = true && this.isSetName();
28873
      boolean that_present_name = true && that.isSetName();
28874
      if (this_present_name || that_present_name) {
28875
        if (!(this_present_name && that_present_name))
28876
          return false;
28877
        if (!this.name.equals(that.name))
28878
          return false;
28879
      }
28880
 
28881
      return true;
28882
    }
28883
 
28884
    @Override
28885
    public int hashCode() {
28886
      return 0;
28887
    }
28888
 
28889
    public int compareTo(getAffiliateByName_args other) {
28890
      if (!getClass().equals(other.getClass())) {
28891
        return getClass().getName().compareTo(other.getClass().getName());
28892
      }
28893
 
28894
      int lastComparison = 0;
28895
      getAffiliateByName_args typedOther = (getAffiliateByName_args)other;
28896
 
3430 rajveer 28897
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 28898
      if (lastComparison != 0) {
28899
        return lastComparison;
28900
      }
3430 rajveer 28901
      if (isSetName()) {
28902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
28903
        if (lastComparison != 0) {
28904
          return lastComparison;
28905
        }
1846 vikas 28906
      }
28907
      return 0;
28908
    }
28909
 
3430 rajveer 28910
    public _Fields fieldForId(int fieldId) {
28911
      return _Fields.findByThriftId(fieldId);
28912
    }
28913
 
28914
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28915
      org.apache.thrift.protocol.TField field;
1846 vikas 28916
      iprot.readStructBegin();
28917
      while (true)
28918
      {
28919
        field = iprot.readFieldBegin();
3430 rajveer 28920
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28921
          break;
28922
        }
3430 rajveer 28923
        switch (field.id) {
28924
          case 1: // NAME
28925
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28926
              this.name = iprot.readString();
28927
            } else { 
28928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28929
            }
28930
            break;
28931
          default:
28932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28933
        }
3430 rajveer 28934
        iprot.readFieldEnd();
1846 vikas 28935
      }
28936
      iprot.readStructEnd();
28937
      validate();
28938
    }
28939
 
3430 rajveer 28940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28941
      validate();
28942
 
28943
      oprot.writeStructBegin(STRUCT_DESC);
28944
      if (this.name != null) {
28945
        oprot.writeFieldBegin(NAME_FIELD_DESC);
28946
        oprot.writeString(this.name);
28947
        oprot.writeFieldEnd();
28948
      }
28949
      oprot.writeFieldStop();
28950
      oprot.writeStructEnd();
28951
    }
28952
 
28953
    @Override
28954
    public String toString() {
28955
      StringBuilder sb = new StringBuilder("getAffiliateByName_args(");
28956
      boolean first = true;
28957
 
28958
      sb.append("name:");
28959
      if (this.name == null) {
28960
        sb.append("null");
28961
      } else {
28962
        sb.append(this.name);
28963
      }
28964
      first = false;
28965
      sb.append(")");
28966
      return sb.toString();
28967
    }
28968
 
3430 rajveer 28969
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28970
      // check for required fields
28971
    }
28972
 
3430 rajveer 28973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28974
      try {
28975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28976
      } catch (org.apache.thrift.TException te) {
28977
        throw new java.io.IOException(te);
28978
      }
28979
    }
28980
 
28981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28982
      try {
28983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28984
      } catch (org.apache.thrift.TException te) {
28985
        throw new java.io.IOException(te);
28986
      }
28987
    }
28988
 
1846 vikas 28989
  }
28990
 
3430 rajveer 28991
  public static class getAffiliateByName_result implements org.apache.thrift.TBase<getAffiliateByName_result, getAffiliateByName_result._Fields>, java.io.Serializable, Cloneable   {
28992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateByName_result");
1846 vikas 28993
 
3430 rajveer 28994
    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);
28995
    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 28996
 
3430 rajveer 28997
    private Affiliate success; // required
28998
    private UserAffiliateException utx; // required
1846 vikas 28999
 
29000
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29001
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29002
      SUCCESS((short)0, "success"),
29003
      UTX((short)1, "utx");
29004
 
29005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29006
 
29007
      static {
29008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29009
          byName.put(field.getFieldName(), field);
29010
        }
29011
      }
29012
 
29013
      /**
29014
       * Find the _Fields constant that matches fieldId, or null if its not found.
29015
       */
29016
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29017
        switch(fieldId) {
29018
          case 0: // SUCCESS
29019
            return SUCCESS;
29020
          case 1: // UTX
29021
            return UTX;
29022
          default:
29023
            return null;
29024
        }
1846 vikas 29025
      }
29026
 
29027
      /**
29028
       * Find the _Fields constant that matches fieldId, throwing an exception
29029
       * if it is not found.
29030
       */
29031
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29032
        _Fields fields = findByThriftId(fieldId);
29033
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29034
        return fields;
29035
      }
29036
 
29037
      /**
29038
       * Find the _Fields constant that matches name, or null if its not found.
29039
       */
29040
      public static _Fields findByName(String name) {
29041
        return byName.get(name);
29042
      }
29043
 
29044
      private final short _thriftId;
29045
      private final String _fieldName;
29046
 
29047
      _Fields(short thriftId, String fieldName) {
29048
        _thriftId = thriftId;
29049
        _fieldName = fieldName;
29050
      }
29051
 
29052
      public short getThriftFieldId() {
29053
        return _thriftId;
29054
      }
29055
 
29056
      public String getFieldName() {
29057
        return _fieldName;
29058
      }
29059
    }
29060
 
29061
    // isset id assignments
29062
 
3430 rajveer 29063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29064
    static {
3430 rajveer 29065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29066
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29067
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
29068
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29069
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29070
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29071
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateByName_result.class, metaDataMap);
1846 vikas 29072
    }
29073
 
29074
    public getAffiliateByName_result() {
29075
    }
29076
 
29077
    public getAffiliateByName_result(
29078
      Affiliate success,
1998 vikas 29079
      UserAffiliateException utx)
1846 vikas 29080
    {
29081
      this();
29082
      this.success = success;
29083
      this.utx = utx;
29084
    }
29085
 
29086
    /**
29087
     * Performs a deep copy on <i>other</i>.
29088
     */
29089
    public getAffiliateByName_result(getAffiliateByName_result other) {
29090
      if (other.isSetSuccess()) {
29091
        this.success = new Affiliate(other.success);
29092
      }
29093
      if (other.isSetUtx()) {
1998 vikas 29094
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 29095
      }
29096
    }
29097
 
29098
    public getAffiliateByName_result deepCopy() {
29099
      return new getAffiliateByName_result(this);
29100
    }
29101
 
3430 rajveer 29102
    @Override
29103
    public void clear() {
29104
      this.success = null;
29105
      this.utx = null;
1846 vikas 29106
    }
29107
 
29108
    public Affiliate getSuccess() {
29109
      return this.success;
29110
    }
29111
 
3430 rajveer 29112
    public void setSuccess(Affiliate success) {
1846 vikas 29113
      this.success = success;
29114
    }
29115
 
29116
    public void unsetSuccess() {
29117
      this.success = null;
29118
    }
29119
 
3430 rajveer 29120
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 29121
    public boolean isSetSuccess() {
29122
      return this.success != null;
29123
    }
29124
 
29125
    public void setSuccessIsSet(boolean value) {
29126
      if (!value) {
29127
        this.success = null;
29128
      }
29129
    }
29130
 
1998 vikas 29131
    public UserAffiliateException getUtx() {
1846 vikas 29132
      return this.utx;
29133
    }
29134
 
3430 rajveer 29135
    public void setUtx(UserAffiliateException utx) {
1846 vikas 29136
      this.utx = utx;
29137
    }
29138
 
29139
    public void unsetUtx() {
29140
      this.utx = null;
29141
    }
29142
 
3430 rajveer 29143
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 29144
    public boolean isSetUtx() {
29145
      return this.utx != null;
29146
    }
29147
 
29148
    public void setUtxIsSet(boolean value) {
29149
      if (!value) {
29150
        this.utx = null;
29151
      }
29152
    }
29153
 
29154
    public void setFieldValue(_Fields field, Object value) {
29155
      switch (field) {
29156
      case SUCCESS:
29157
        if (value == null) {
29158
          unsetSuccess();
29159
        } else {
29160
          setSuccess((Affiliate)value);
29161
        }
29162
        break;
29163
 
29164
      case UTX:
29165
        if (value == null) {
29166
          unsetUtx();
29167
        } else {
1998 vikas 29168
          setUtx((UserAffiliateException)value);
1846 vikas 29169
        }
29170
        break;
29171
 
29172
      }
29173
    }
29174
 
29175
    public Object getFieldValue(_Fields field) {
29176
      switch (field) {
29177
      case SUCCESS:
29178
        return getSuccess();
29179
 
29180
      case UTX:
29181
        return getUtx();
29182
 
29183
      }
29184
      throw new IllegalStateException();
29185
    }
29186
 
3430 rajveer 29187
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29188
    public boolean isSet(_Fields field) {
29189
      if (field == null) {
29190
        throw new IllegalArgumentException();
29191
      }
1846 vikas 29192
 
29193
      switch (field) {
29194
      case SUCCESS:
29195
        return isSetSuccess();
29196
      case UTX:
29197
        return isSetUtx();
29198
      }
29199
      throw new IllegalStateException();
29200
    }
29201
 
29202
    @Override
29203
    public boolean equals(Object that) {
29204
      if (that == null)
29205
        return false;
29206
      if (that instanceof getAffiliateByName_result)
29207
        return this.equals((getAffiliateByName_result)that);
29208
      return false;
29209
    }
29210
 
29211
    public boolean equals(getAffiliateByName_result that) {
29212
      if (that == null)
29213
        return false;
29214
 
29215
      boolean this_present_success = true && this.isSetSuccess();
29216
      boolean that_present_success = true && that.isSetSuccess();
29217
      if (this_present_success || that_present_success) {
29218
        if (!(this_present_success && that_present_success))
29219
          return false;
29220
        if (!this.success.equals(that.success))
29221
          return false;
29222
      }
29223
 
29224
      boolean this_present_utx = true && this.isSetUtx();
29225
      boolean that_present_utx = true && that.isSetUtx();
29226
      if (this_present_utx || that_present_utx) {
29227
        if (!(this_present_utx && that_present_utx))
29228
          return false;
29229
        if (!this.utx.equals(that.utx))
29230
          return false;
29231
      }
29232
 
29233
      return true;
29234
    }
29235
 
29236
    @Override
29237
    public int hashCode() {
29238
      return 0;
29239
    }
29240
 
29241
    public int compareTo(getAffiliateByName_result other) {
29242
      if (!getClass().equals(other.getClass())) {
29243
        return getClass().getName().compareTo(other.getClass().getName());
29244
      }
29245
 
29246
      int lastComparison = 0;
29247
      getAffiliateByName_result typedOther = (getAffiliateByName_result)other;
29248
 
3430 rajveer 29249
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 29250
      if (lastComparison != 0) {
29251
        return lastComparison;
29252
      }
3430 rajveer 29253
      if (isSetSuccess()) {
29254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29255
        if (lastComparison != 0) {
29256
          return lastComparison;
29257
        }
1846 vikas 29258
      }
3430 rajveer 29259
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 29260
      if (lastComparison != 0) {
29261
        return lastComparison;
29262
      }
3430 rajveer 29263
      if (isSetUtx()) {
29264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
29265
        if (lastComparison != 0) {
29266
          return lastComparison;
29267
        }
1846 vikas 29268
      }
29269
      return 0;
29270
    }
29271
 
3430 rajveer 29272
    public _Fields fieldForId(int fieldId) {
29273
      return _Fields.findByThriftId(fieldId);
29274
    }
29275
 
29276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29277
      org.apache.thrift.protocol.TField field;
1846 vikas 29278
      iprot.readStructBegin();
29279
      while (true)
29280
      {
29281
        field = iprot.readFieldBegin();
3430 rajveer 29282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29283
          break;
29284
        }
3430 rajveer 29285
        switch (field.id) {
29286
          case 0: // SUCCESS
29287
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29288
              this.success = new Affiliate();
29289
              this.success.read(iprot);
29290
            } else { 
29291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29292
            }
29293
            break;
29294
          case 1: // UTX
29295
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29296
              this.utx = new UserAffiliateException();
29297
              this.utx.read(iprot);
29298
            } else { 
29299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29300
            }
29301
            break;
29302
          default:
29303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29304
        }
3430 rajveer 29305
        iprot.readFieldEnd();
1846 vikas 29306
      }
29307
      iprot.readStructEnd();
29308
      validate();
29309
    }
29310
 
3430 rajveer 29311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29312
      oprot.writeStructBegin(STRUCT_DESC);
29313
 
29314
      if (this.isSetSuccess()) {
29315
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29316
        this.success.write(oprot);
29317
        oprot.writeFieldEnd();
29318
      } else if (this.isSetUtx()) {
29319
        oprot.writeFieldBegin(UTX_FIELD_DESC);
29320
        this.utx.write(oprot);
29321
        oprot.writeFieldEnd();
29322
      }
29323
      oprot.writeFieldStop();
29324
      oprot.writeStructEnd();
29325
    }
29326
 
29327
    @Override
29328
    public String toString() {
29329
      StringBuilder sb = new StringBuilder("getAffiliateByName_result(");
29330
      boolean first = true;
29331
 
29332
      sb.append("success:");
29333
      if (this.success == null) {
29334
        sb.append("null");
29335
      } else {
29336
        sb.append(this.success);
29337
      }
29338
      first = false;
29339
      if (!first) sb.append(", ");
29340
      sb.append("utx:");
29341
      if (this.utx == null) {
29342
        sb.append("null");
29343
      } else {
29344
        sb.append(this.utx);
29345
      }
29346
      first = false;
29347
      sb.append(")");
29348
      return sb.toString();
29349
    }
29350
 
3430 rajveer 29351
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29352
      // check for required fields
29353
    }
29354
 
3430 rajveer 29355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29356
      try {
29357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29358
      } catch (org.apache.thrift.TException te) {
29359
        throw new java.io.IOException(te);
29360
      }
29361
    }
29362
 
29363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29364
      try {
29365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29366
      } catch (org.apache.thrift.TException te) {
29367
        throw new java.io.IOException(te);
29368
      }
29369
    }
29370
 
1846 vikas 29371
  }
29372
 
3430 rajveer 29373
  public static class getTrackerById_args implements org.apache.thrift.TBase<getTrackerById_args, getTrackerById_args._Fields>, java.io.Serializable, Cloneable   {
29374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackerById_args");
1846 vikas 29375
 
3430 rajveer 29376
    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 29377
 
3430 rajveer 29378
    private long id; // required
1846 vikas 29379
 
29380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29382
      ID((short)1, "id");
29383
 
29384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29385
 
29386
      static {
29387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29388
          byName.put(field.getFieldName(), field);
29389
        }
29390
      }
29391
 
29392
      /**
29393
       * Find the _Fields constant that matches fieldId, or null if its not found.
29394
       */
29395
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29396
        switch(fieldId) {
29397
          case 1: // ID
29398
            return ID;
29399
          default:
29400
            return null;
29401
        }
1846 vikas 29402
      }
29403
 
29404
      /**
29405
       * Find the _Fields constant that matches fieldId, throwing an exception
29406
       * if it is not found.
29407
       */
29408
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29409
        _Fields fields = findByThriftId(fieldId);
29410
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29411
        return fields;
29412
      }
29413
 
29414
      /**
29415
       * Find the _Fields constant that matches name, or null if its not found.
29416
       */
29417
      public static _Fields findByName(String name) {
29418
        return byName.get(name);
29419
      }
29420
 
29421
      private final short _thriftId;
29422
      private final String _fieldName;
29423
 
29424
      _Fields(short thriftId, String fieldName) {
29425
        _thriftId = thriftId;
29426
        _fieldName = fieldName;
29427
      }
29428
 
29429
      public short getThriftFieldId() {
29430
        return _thriftId;
29431
      }
29432
 
29433
      public String getFieldName() {
29434
        return _fieldName;
29435
      }
29436
    }
29437
 
29438
    // isset id assignments
29439
    private static final int __ID_ISSET_ID = 0;
29440
    private BitSet __isset_bit_vector = new BitSet(1);
29441
 
3430 rajveer 29442
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29443
    static {
3430 rajveer 29444
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29445
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29446
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackerById_args.class, metaDataMap);
1846 vikas 29449
    }
29450
 
1998 vikas 29451
    public getTrackerById_args() {
1846 vikas 29452
    }
29453
 
1998 vikas 29454
    public getTrackerById_args(
1846 vikas 29455
      long id)
29456
    {
29457
      this();
29458
      this.id = id;
29459
      setIdIsSet(true);
29460
    }
29461
 
29462
    /**
29463
     * Performs a deep copy on <i>other</i>.
29464
     */
1998 vikas 29465
    public getTrackerById_args(getTrackerById_args other) {
1846 vikas 29466
      __isset_bit_vector.clear();
29467
      __isset_bit_vector.or(other.__isset_bit_vector);
29468
      this.id = other.id;
29469
    }
29470
 
1998 vikas 29471
    public getTrackerById_args deepCopy() {
29472
      return new getTrackerById_args(this);
1846 vikas 29473
    }
29474
 
3430 rajveer 29475
    @Override
29476
    public void clear() {
29477
      setIdIsSet(false);
29478
      this.id = 0;
1846 vikas 29479
    }
29480
 
29481
    public long getId() {
29482
      return this.id;
29483
    }
29484
 
3430 rajveer 29485
    public void setId(long id) {
1846 vikas 29486
      this.id = id;
29487
      setIdIsSet(true);
29488
    }
29489
 
29490
    public void unsetId() {
29491
      __isset_bit_vector.clear(__ID_ISSET_ID);
29492
    }
29493
 
3430 rajveer 29494
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 29495
    public boolean isSetId() {
29496
      return __isset_bit_vector.get(__ID_ISSET_ID);
29497
    }
29498
 
29499
    public void setIdIsSet(boolean value) {
29500
      __isset_bit_vector.set(__ID_ISSET_ID, value);
29501
    }
29502
 
29503
    public void setFieldValue(_Fields field, Object value) {
29504
      switch (field) {
29505
      case ID:
29506
        if (value == null) {
29507
          unsetId();
29508
        } else {
29509
          setId((Long)value);
29510
        }
29511
        break;
29512
 
29513
      }
29514
    }
29515
 
29516
    public Object getFieldValue(_Fields field) {
29517
      switch (field) {
29518
      case ID:
3430 rajveer 29519
        return Long.valueOf(getId());
1846 vikas 29520
 
29521
      }
29522
      throw new IllegalStateException();
29523
    }
29524
 
3430 rajveer 29525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29526
    public boolean isSet(_Fields field) {
29527
      if (field == null) {
29528
        throw new IllegalArgumentException();
29529
      }
1846 vikas 29530
 
29531
      switch (field) {
29532
      case ID:
29533
        return isSetId();
29534
      }
29535
      throw new IllegalStateException();
29536
    }
29537
 
29538
    @Override
29539
    public boolean equals(Object that) {
29540
      if (that == null)
29541
        return false;
1998 vikas 29542
      if (that instanceof getTrackerById_args)
29543
        return this.equals((getTrackerById_args)that);
1846 vikas 29544
      return false;
29545
    }
29546
 
1998 vikas 29547
    public boolean equals(getTrackerById_args that) {
1846 vikas 29548
      if (that == null)
29549
        return false;
29550
 
29551
      boolean this_present_id = true;
29552
      boolean that_present_id = true;
29553
      if (this_present_id || that_present_id) {
29554
        if (!(this_present_id && that_present_id))
29555
          return false;
29556
        if (this.id != that.id)
29557
          return false;
29558
      }
29559
 
29560
      return true;
29561
    }
29562
 
29563
    @Override
29564
    public int hashCode() {
29565
      return 0;
29566
    }
29567
 
1998 vikas 29568
    public int compareTo(getTrackerById_args other) {
1846 vikas 29569
      if (!getClass().equals(other.getClass())) {
29570
        return getClass().getName().compareTo(other.getClass().getName());
29571
      }
29572
 
29573
      int lastComparison = 0;
1998 vikas 29574
      getTrackerById_args typedOther = (getTrackerById_args)other;
1846 vikas 29575
 
3430 rajveer 29576
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 29577
      if (lastComparison != 0) {
29578
        return lastComparison;
29579
      }
3430 rajveer 29580
      if (isSetId()) {
29581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
29582
        if (lastComparison != 0) {
29583
          return lastComparison;
29584
        }
1846 vikas 29585
      }
29586
      return 0;
29587
    }
29588
 
3430 rajveer 29589
    public _Fields fieldForId(int fieldId) {
29590
      return _Fields.findByThriftId(fieldId);
29591
    }
29592
 
29593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29594
      org.apache.thrift.protocol.TField field;
1846 vikas 29595
      iprot.readStructBegin();
29596
      while (true)
29597
      {
29598
        field = iprot.readFieldBegin();
3430 rajveer 29599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29600
          break;
29601
        }
3430 rajveer 29602
        switch (field.id) {
29603
          case 1: // ID
29604
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29605
              this.id = iprot.readI64();
29606
              setIdIsSet(true);
29607
            } else { 
29608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29609
            }
29610
            break;
29611
          default:
29612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29613
        }
3430 rajveer 29614
        iprot.readFieldEnd();
1846 vikas 29615
      }
29616
      iprot.readStructEnd();
29617
      validate();
29618
    }
29619
 
3430 rajveer 29620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29621
      validate();
29622
 
29623
      oprot.writeStructBegin(STRUCT_DESC);
29624
      oprot.writeFieldBegin(ID_FIELD_DESC);
29625
      oprot.writeI64(this.id);
29626
      oprot.writeFieldEnd();
29627
      oprot.writeFieldStop();
29628
      oprot.writeStructEnd();
29629
    }
29630
 
29631
    @Override
29632
    public String toString() {
1998 vikas 29633
      StringBuilder sb = new StringBuilder("getTrackerById_args(");
1846 vikas 29634
      boolean first = true;
29635
 
29636
      sb.append("id:");
29637
      sb.append(this.id);
29638
      first = false;
29639
      sb.append(")");
29640
      return sb.toString();
29641
    }
29642
 
3430 rajveer 29643
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29644
      // check for required fields
29645
    }
29646
 
3430 rajveer 29647
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29648
      try {
29649
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29650
      } catch (org.apache.thrift.TException te) {
29651
        throw new java.io.IOException(te);
29652
      }
29653
    }
29654
 
29655
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29656
      try {
29657
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29658
        __isset_bit_vector = new BitSet(1);
29659
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29660
      } catch (org.apache.thrift.TException te) {
29661
        throw new java.io.IOException(te);
29662
      }
29663
    }
29664
 
1846 vikas 29665
  }
29666
 
3430 rajveer 29667
  public static class getTrackerById_result implements org.apache.thrift.TBase<getTrackerById_result, getTrackerById_result._Fields>, java.io.Serializable, Cloneable   {
29668
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackerById_result");
1846 vikas 29669
 
3430 rajveer 29670
    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);
29671
    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 29672
 
3430 rajveer 29673
    private Tracker success; // required
29674
    private UserAffiliateException utx; // required
1846 vikas 29675
 
29676
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29677
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29678
      SUCCESS((short)0, "success"),
29679
      UTX((short)1, "utx");
29680
 
29681
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29682
 
29683
      static {
29684
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29685
          byName.put(field.getFieldName(), field);
29686
        }
29687
      }
29688
 
29689
      /**
29690
       * Find the _Fields constant that matches fieldId, or null if its not found.
29691
       */
29692
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29693
        switch(fieldId) {
29694
          case 0: // SUCCESS
29695
            return SUCCESS;
29696
          case 1: // UTX
29697
            return UTX;
29698
          default:
29699
            return null;
29700
        }
1846 vikas 29701
      }
29702
 
29703
      /**
29704
       * Find the _Fields constant that matches fieldId, throwing an exception
29705
       * if it is not found.
29706
       */
29707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29708
        _Fields fields = findByThriftId(fieldId);
29709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29710
        return fields;
29711
      }
29712
 
29713
      /**
29714
       * Find the _Fields constant that matches name, or null if its not found.
29715
       */
29716
      public static _Fields findByName(String name) {
29717
        return byName.get(name);
29718
      }
29719
 
29720
      private final short _thriftId;
29721
      private final String _fieldName;
29722
 
29723
      _Fields(short thriftId, String fieldName) {
29724
        _thriftId = thriftId;
29725
        _fieldName = fieldName;
29726
      }
29727
 
29728
      public short getThriftFieldId() {
29729
        return _thriftId;
29730
      }
29731
 
29732
      public String getFieldName() {
29733
        return _fieldName;
29734
      }
29735
    }
29736
 
29737
    // isset id assignments
29738
 
3430 rajveer 29739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29740
    static {
3430 rajveer 29741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29743
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Tracker.class)));
29744
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackerById_result.class, metaDataMap);
1846 vikas 29748
    }
29749
 
29750
    public getTrackerById_result() {
29751
    }
29752
 
29753
    public getTrackerById_result(
29754
      Tracker success,
1998 vikas 29755
      UserAffiliateException utx)
1846 vikas 29756
    {
29757
      this();
29758
      this.success = success;
29759
      this.utx = utx;
29760
    }
29761
 
29762
    /**
29763
     * Performs a deep copy on <i>other</i>.
29764
     */
29765
    public getTrackerById_result(getTrackerById_result other) {
29766
      if (other.isSetSuccess()) {
29767
        this.success = new Tracker(other.success);
29768
      }
29769
      if (other.isSetUtx()) {
1998 vikas 29770
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 29771
      }
29772
    }
29773
 
29774
    public getTrackerById_result deepCopy() {
29775
      return new getTrackerById_result(this);
29776
    }
29777
 
3430 rajveer 29778
    @Override
29779
    public void clear() {
29780
      this.success = null;
29781
      this.utx = null;
1846 vikas 29782
    }
29783
 
29784
    public Tracker getSuccess() {
29785
      return this.success;
29786
    }
29787
 
3430 rajveer 29788
    public void setSuccess(Tracker success) {
1846 vikas 29789
      this.success = success;
29790
    }
29791
 
29792
    public void unsetSuccess() {
29793
      this.success = null;
29794
    }
29795
 
3430 rajveer 29796
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 29797
    public boolean isSetSuccess() {
29798
      return this.success != null;
29799
    }
29800
 
29801
    public void setSuccessIsSet(boolean value) {
29802
      if (!value) {
29803
        this.success = null;
29804
      }
29805
    }
29806
 
1998 vikas 29807
    public UserAffiliateException getUtx() {
1846 vikas 29808
      return this.utx;
29809
    }
29810
 
3430 rajveer 29811
    public void setUtx(UserAffiliateException utx) {
1846 vikas 29812
      this.utx = utx;
29813
    }
29814
 
29815
    public void unsetUtx() {
29816
      this.utx = null;
29817
    }
29818
 
3430 rajveer 29819
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 29820
    public boolean isSetUtx() {
29821
      return this.utx != null;
29822
    }
29823
 
29824
    public void setUtxIsSet(boolean value) {
29825
      if (!value) {
29826
        this.utx = null;
29827
      }
29828
    }
29829
 
29830
    public void setFieldValue(_Fields field, Object value) {
29831
      switch (field) {
29832
      case SUCCESS:
29833
        if (value == null) {
29834
          unsetSuccess();
29835
        } else {
29836
          setSuccess((Tracker)value);
29837
        }
29838
        break;
29839
 
29840
      case UTX:
29841
        if (value == null) {
29842
          unsetUtx();
29843
        } else {
1998 vikas 29844
          setUtx((UserAffiliateException)value);
1846 vikas 29845
        }
29846
        break;
29847
 
29848
      }
29849
    }
29850
 
29851
    public Object getFieldValue(_Fields field) {
29852
      switch (field) {
29853
      case SUCCESS:
29854
        return getSuccess();
29855
 
29856
      case UTX:
29857
        return getUtx();
29858
 
29859
      }
29860
      throw new IllegalStateException();
29861
    }
29862
 
3430 rajveer 29863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29864
    public boolean isSet(_Fields field) {
29865
      if (field == null) {
29866
        throw new IllegalArgumentException();
29867
      }
1846 vikas 29868
 
29869
      switch (field) {
29870
      case SUCCESS:
29871
        return isSetSuccess();
29872
      case UTX:
29873
        return isSetUtx();
29874
      }
29875
      throw new IllegalStateException();
29876
    }
29877
 
29878
    @Override
29879
    public boolean equals(Object that) {
29880
      if (that == null)
29881
        return false;
29882
      if (that instanceof getTrackerById_result)
29883
        return this.equals((getTrackerById_result)that);
29884
      return false;
29885
    }
29886
 
29887
    public boolean equals(getTrackerById_result that) {
29888
      if (that == null)
29889
        return false;
29890
 
29891
      boolean this_present_success = true && this.isSetSuccess();
29892
      boolean that_present_success = true && that.isSetSuccess();
29893
      if (this_present_success || that_present_success) {
29894
        if (!(this_present_success && that_present_success))
29895
          return false;
29896
        if (!this.success.equals(that.success))
29897
          return false;
29898
      }
29899
 
29900
      boolean this_present_utx = true && this.isSetUtx();
29901
      boolean that_present_utx = true && that.isSetUtx();
29902
      if (this_present_utx || that_present_utx) {
29903
        if (!(this_present_utx && that_present_utx))
29904
          return false;
29905
        if (!this.utx.equals(that.utx))
29906
          return false;
29907
      }
29908
 
29909
      return true;
29910
    }
29911
 
29912
    @Override
29913
    public int hashCode() {
29914
      return 0;
29915
    }
29916
 
29917
    public int compareTo(getTrackerById_result other) {
29918
      if (!getClass().equals(other.getClass())) {
29919
        return getClass().getName().compareTo(other.getClass().getName());
29920
      }
29921
 
29922
      int lastComparison = 0;
29923
      getTrackerById_result typedOther = (getTrackerById_result)other;
29924
 
3430 rajveer 29925
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 29926
      if (lastComparison != 0) {
29927
        return lastComparison;
29928
      }
3430 rajveer 29929
      if (isSetSuccess()) {
29930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29931
        if (lastComparison != 0) {
29932
          return lastComparison;
29933
        }
1846 vikas 29934
      }
3430 rajveer 29935
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 29936
      if (lastComparison != 0) {
29937
        return lastComparison;
29938
      }
3430 rajveer 29939
      if (isSetUtx()) {
29940
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
29941
        if (lastComparison != 0) {
29942
          return lastComparison;
29943
        }
1846 vikas 29944
      }
29945
      return 0;
29946
    }
29947
 
3430 rajveer 29948
    public _Fields fieldForId(int fieldId) {
29949
      return _Fields.findByThriftId(fieldId);
29950
    }
29951
 
29952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29953
      org.apache.thrift.protocol.TField field;
1846 vikas 29954
      iprot.readStructBegin();
29955
      while (true)
29956
      {
29957
        field = iprot.readFieldBegin();
3430 rajveer 29958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29959
          break;
29960
        }
3430 rajveer 29961
        switch (field.id) {
29962
          case 0: // SUCCESS
29963
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29964
              this.success = new Tracker();
29965
              this.success.read(iprot);
29966
            } else { 
29967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29968
            }
29969
            break;
29970
          case 1: // UTX
29971
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29972
              this.utx = new UserAffiliateException();
29973
              this.utx.read(iprot);
29974
            } else { 
29975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29976
            }
29977
            break;
29978
          default:
29979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29980
        }
3430 rajveer 29981
        iprot.readFieldEnd();
1846 vikas 29982
      }
29983
      iprot.readStructEnd();
29984
      validate();
29985
    }
29986
 
3430 rajveer 29987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29988
      oprot.writeStructBegin(STRUCT_DESC);
29989
 
29990
      if (this.isSetSuccess()) {
29991
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29992
        this.success.write(oprot);
29993
        oprot.writeFieldEnd();
29994
      } else if (this.isSetUtx()) {
29995
        oprot.writeFieldBegin(UTX_FIELD_DESC);
29996
        this.utx.write(oprot);
29997
        oprot.writeFieldEnd();
29998
      }
29999
      oprot.writeFieldStop();
30000
      oprot.writeStructEnd();
30001
    }
30002
 
30003
    @Override
30004
    public String toString() {
30005
      StringBuilder sb = new StringBuilder("getTrackerById_result(");
30006
      boolean first = true;
30007
 
30008
      sb.append("success:");
30009
      if (this.success == null) {
30010
        sb.append("null");
30011
      } else {
30012
        sb.append(this.success);
30013
      }
30014
      first = false;
30015
      if (!first) sb.append(", ");
30016
      sb.append("utx:");
30017
      if (this.utx == null) {
30018
        sb.append("null");
30019
      } else {
30020
        sb.append(this.utx);
30021
      }
30022
      first = false;
30023
      sb.append(")");
30024
      return sb.toString();
30025
    }
30026
 
3430 rajveer 30027
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30028
      // check for required fields
30029
    }
30030
 
3430 rajveer 30031
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30032
      try {
30033
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30034
      } catch (org.apache.thrift.TException te) {
30035
        throw new java.io.IOException(te);
30036
      }
30037
    }
30038
 
30039
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30040
      try {
30041
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30042
      } catch (org.apache.thrift.TException te) {
30043
        throw new java.io.IOException(te);
30044
      }
30045
    }
30046
 
1846 vikas 30047
  }
30048
 
3430 rajveer 30049
  public static class getAffiliatesByMasterAffiliate_args implements org.apache.thrift.TBase<getAffiliatesByMasterAffiliate_args, getAffiliatesByMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
30050
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliatesByMasterAffiliate_args");
1846 vikas 30051
 
3430 rajveer 30052
    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 30053
 
3430 rajveer 30054
    private long id; // required
1846 vikas 30055
 
30056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 30058
      ID((short)1, "id");
1846 vikas 30059
 
30060
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30061
 
30062
      static {
30063
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30064
          byName.put(field.getFieldName(), field);
30065
        }
30066
      }
30067
 
30068
      /**
30069
       * Find the _Fields constant that matches fieldId, or null if its not found.
30070
       */
30071
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30072
        switch(fieldId) {
30073
          case 1: // ID
30074
            return ID;
30075
          default:
30076
            return null;
30077
        }
1846 vikas 30078
      }
30079
 
30080
      /**
30081
       * Find the _Fields constant that matches fieldId, throwing an exception
30082
       * if it is not found.
30083
       */
30084
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30085
        _Fields fields = findByThriftId(fieldId);
30086
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30087
        return fields;
30088
      }
30089
 
30090
      /**
30091
       * Find the _Fields constant that matches name, or null if its not found.
30092
       */
30093
      public static _Fields findByName(String name) {
30094
        return byName.get(name);
30095
      }
30096
 
30097
      private final short _thriftId;
30098
      private final String _fieldName;
30099
 
30100
      _Fields(short thriftId, String fieldName) {
30101
        _thriftId = thriftId;
30102
        _fieldName = fieldName;
30103
      }
30104
 
30105
      public short getThriftFieldId() {
30106
        return _thriftId;
30107
      }
30108
 
30109
      public String getFieldName() {
30110
        return _fieldName;
30111
      }
30112
    }
30113
 
30114
    // isset id assignments
1998 vikas 30115
    private static final int __ID_ISSET_ID = 0;
1846 vikas 30116
    private BitSet __isset_bit_vector = new BitSet(1);
30117
 
3430 rajveer 30118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30119
    static {
3430 rajveer 30120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30121
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_args.class, metaDataMap);
1846 vikas 30125
    }
30126
 
1998 vikas 30127
    public getAffiliatesByMasterAffiliate_args() {
1846 vikas 30128
    }
30129
 
1998 vikas 30130
    public getAffiliatesByMasterAffiliate_args(
30131
      long id)
1846 vikas 30132
    {
30133
      this();
1998 vikas 30134
      this.id = id;
30135
      setIdIsSet(true);
1846 vikas 30136
    }
30137
 
30138
    /**
30139
     * Performs a deep copy on <i>other</i>.
30140
     */
1998 vikas 30141
    public getAffiliatesByMasterAffiliate_args(getAffiliatesByMasterAffiliate_args other) {
1846 vikas 30142
      __isset_bit_vector.clear();
30143
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 30144
      this.id = other.id;
1846 vikas 30145
    }
30146
 
1998 vikas 30147
    public getAffiliatesByMasterAffiliate_args deepCopy() {
30148
      return new getAffiliatesByMasterAffiliate_args(this);
1846 vikas 30149
    }
30150
 
3430 rajveer 30151
    @Override
30152
    public void clear() {
30153
      setIdIsSet(false);
30154
      this.id = 0;
1846 vikas 30155
    }
30156
 
1998 vikas 30157
    public long getId() {
30158
      return this.id;
1846 vikas 30159
    }
30160
 
3430 rajveer 30161
    public void setId(long id) {
1998 vikas 30162
      this.id = id;
30163
      setIdIsSet(true);
1846 vikas 30164
    }
30165
 
1998 vikas 30166
    public void unsetId() {
30167
      __isset_bit_vector.clear(__ID_ISSET_ID);
1846 vikas 30168
    }
30169
 
3430 rajveer 30170
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1998 vikas 30171
    public boolean isSetId() {
30172
      return __isset_bit_vector.get(__ID_ISSET_ID);
1846 vikas 30173
    }
30174
 
1998 vikas 30175
    public void setIdIsSet(boolean value) {
30176
      __isset_bit_vector.set(__ID_ISSET_ID, value);
1846 vikas 30177
    }
30178
 
30179
    public void setFieldValue(_Fields field, Object value) {
30180
      switch (field) {
1998 vikas 30181
      case ID:
1846 vikas 30182
        if (value == null) {
1998 vikas 30183
          unsetId();
1846 vikas 30184
        } else {
1998 vikas 30185
          setId((Long)value);
1846 vikas 30186
        }
30187
        break;
30188
 
30189
      }
30190
    }
30191
 
30192
    public Object getFieldValue(_Fields field) {
30193
      switch (field) {
1998 vikas 30194
      case ID:
3430 rajveer 30195
        return Long.valueOf(getId());
1846 vikas 30196
 
30197
      }
30198
      throw new IllegalStateException();
30199
    }
30200
 
3430 rajveer 30201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30202
    public boolean isSet(_Fields field) {
30203
      if (field == null) {
30204
        throw new IllegalArgumentException();
30205
      }
1846 vikas 30206
 
30207
      switch (field) {
1998 vikas 30208
      case ID:
30209
        return isSetId();
1846 vikas 30210
      }
30211
      throw new IllegalStateException();
30212
    }
30213
 
30214
    @Override
30215
    public boolean equals(Object that) {
30216
      if (that == null)
30217
        return false;
1998 vikas 30218
      if (that instanceof getAffiliatesByMasterAffiliate_args)
30219
        return this.equals((getAffiliatesByMasterAffiliate_args)that);
1846 vikas 30220
      return false;
30221
    }
30222
 
1998 vikas 30223
    public boolean equals(getAffiliatesByMasterAffiliate_args that) {
1846 vikas 30224
      if (that == null)
30225
        return false;
30226
 
1998 vikas 30227
      boolean this_present_id = true;
30228
      boolean that_present_id = true;
30229
      if (this_present_id || that_present_id) {
30230
        if (!(this_present_id && that_present_id))
1846 vikas 30231
          return false;
1998 vikas 30232
        if (this.id != that.id)
1846 vikas 30233
          return false;
30234
      }
30235
 
30236
      return true;
30237
    }
30238
 
30239
    @Override
30240
    public int hashCode() {
30241
      return 0;
30242
    }
30243
 
1998 vikas 30244
    public int compareTo(getAffiliatesByMasterAffiliate_args other) {
1846 vikas 30245
      if (!getClass().equals(other.getClass())) {
30246
        return getClass().getName().compareTo(other.getClass().getName());
30247
      }
30248
 
30249
      int lastComparison = 0;
1998 vikas 30250
      getAffiliatesByMasterAffiliate_args typedOther = (getAffiliatesByMasterAffiliate_args)other;
1846 vikas 30251
 
3430 rajveer 30252
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 30253
      if (lastComparison != 0) {
30254
        return lastComparison;
30255
      }
3430 rajveer 30256
      if (isSetId()) {
30257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
30258
        if (lastComparison != 0) {
30259
          return lastComparison;
30260
        }
1846 vikas 30261
      }
30262
      return 0;
30263
    }
30264
 
3430 rajveer 30265
    public _Fields fieldForId(int fieldId) {
30266
      return _Fields.findByThriftId(fieldId);
30267
    }
30268
 
30269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30270
      org.apache.thrift.protocol.TField field;
1846 vikas 30271
      iprot.readStructBegin();
30272
      while (true)
30273
      {
30274
        field = iprot.readFieldBegin();
3430 rajveer 30275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30276
          break;
30277
        }
3430 rajveer 30278
        switch (field.id) {
30279
          case 1: // ID
30280
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30281
              this.id = iprot.readI64();
30282
              setIdIsSet(true);
30283
            } else { 
30284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30285
            }
30286
            break;
30287
          default:
30288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30289
        }
3430 rajveer 30290
        iprot.readFieldEnd();
1846 vikas 30291
      }
30292
      iprot.readStructEnd();
30293
      validate();
30294
    }
30295
 
3430 rajveer 30296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30297
      validate();
30298
 
30299
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 30300
      oprot.writeFieldBegin(ID_FIELD_DESC);
30301
      oprot.writeI64(this.id);
1846 vikas 30302
      oprot.writeFieldEnd();
30303
      oprot.writeFieldStop();
30304
      oprot.writeStructEnd();
30305
    }
30306
 
30307
    @Override
30308
    public String toString() {
1998 vikas 30309
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_args(");
1846 vikas 30310
      boolean first = true;
30311
 
1998 vikas 30312
      sb.append("id:");
30313
      sb.append(this.id);
1846 vikas 30314
      first = false;
30315
      sb.append(")");
30316
      return sb.toString();
30317
    }
30318
 
3430 rajveer 30319
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30320
      // check for required fields
30321
    }
30322
 
3430 rajveer 30323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30324
      try {
30325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30326
      } catch (org.apache.thrift.TException te) {
30327
        throw new java.io.IOException(te);
30328
      }
30329
    }
30330
 
30331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30332
      try {
30333
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30334
        __isset_bit_vector = new BitSet(1);
30335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30336
      } catch (org.apache.thrift.TException te) {
30337
        throw new java.io.IOException(te);
30338
      }
30339
    }
30340
 
1846 vikas 30341
  }
30342
 
3430 rajveer 30343
  public static class getAffiliatesByMasterAffiliate_result implements org.apache.thrift.TBase<getAffiliatesByMasterAffiliate_result, getAffiliatesByMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
30344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliatesByMasterAffiliate_result");
1846 vikas 30345
 
3430 rajveer 30346
    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);
30347
    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 30348
 
3430 rajveer 30349
    private List<Affiliate> success; // required
30350
    private UserAffiliateException utx; // required
1846 vikas 30351
 
30352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 30354
      SUCCESS((short)0, "success"),
30355
      UTX((short)1, "utx");
30356
 
30357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30358
 
30359
      static {
30360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30361
          byName.put(field.getFieldName(), field);
30362
        }
30363
      }
30364
 
30365
      /**
30366
       * Find the _Fields constant that matches fieldId, or null if its not found.
30367
       */
30368
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30369
        switch(fieldId) {
30370
          case 0: // SUCCESS
30371
            return SUCCESS;
30372
          case 1: // UTX
30373
            return UTX;
30374
          default:
30375
            return null;
30376
        }
1846 vikas 30377
      }
30378
 
30379
      /**
30380
       * Find the _Fields constant that matches fieldId, throwing an exception
30381
       * if it is not found.
30382
       */
30383
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30384
        _Fields fields = findByThriftId(fieldId);
30385
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30386
        return fields;
30387
      }
30388
 
30389
      /**
30390
       * Find the _Fields constant that matches name, or null if its not found.
30391
       */
30392
      public static _Fields findByName(String name) {
30393
        return byName.get(name);
30394
      }
30395
 
30396
      private final short _thriftId;
30397
      private final String _fieldName;
30398
 
30399
      _Fields(short thriftId, String fieldName) {
30400
        _thriftId = thriftId;
30401
        _fieldName = fieldName;
30402
      }
30403
 
30404
      public short getThriftFieldId() {
30405
        return _thriftId;
30406
      }
30407
 
30408
      public String getFieldName() {
30409
        return _fieldName;
30410
      }
30411
    }
30412
 
30413
    // isset id assignments
30414
 
3430 rajveer 30415
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30416
    static {
3430 rajveer 30417
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30418
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30419
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30420
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class))));
30421
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_result.class, metaDataMap);
1846 vikas 30425
    }
30426
 
1998 vikas 30427
    public getAffiliatesByMasterAffiliate_result() {
1846 vikas 30428
    }
30429
 
1998 vikas 30430
    public getAffiliatesByMasterAffiliate_result(
30431
      List<Affiliate> success,
30432
      UserAffiliateException utx)
1846 vikas 30433
    {
30434
      this();
30435
      this.success = success;
30436
      this.utx = utx;
30437
    }
30438
 
30439
    /**
30440
     * Performs a deep copy on <i>other</i>.
30441
     */
1998 vikas 30442
    public getAffiliatesByMasterAffiliate_result(getAffiliatesByMasterAffiliate_result other) {
1846 vikas 30443
      if (other.isSetSuccess()) {
1998 vikas 30444
        List<Affiliate> __this__success = new ArrayList<Affiliate>();
30445
        for (Affiliate other_element : other.success) {
30446
          __this__success.add(new Affiliate(other_element));
1846 vikas 30447
        }
30448
        this.success = __this__success;
30449
      }
30450
      if (other.isSetUtx()) {
1998 vikas 30451
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 30452
      }
30453
    }
30454
 
1998 vikas 30455
    public getAffiliatesByMasterAffiliate_result deepCopy() {
30456
      return new getAffiliatesByMasterAffiliate_result(this);
1846 vikas 30457
    }
30458
 
3430 rajveer 30459
    @Override
30460
    public void clear() {
30461
      this.success = null;
30462
      this.utx = null;
1846 vikas 30463
    }
30464
 
30465
    public int getSuccessSize() {
30466
      return (this.success == null) ? 0 : this.success.size();
30467
    }
30468
 
1998 vikas 30469
    public java.util.Iterator<Affiliate> getSuccessIterator() {
1846 vikas 30470
      return (this.success == null) ? null : this.success.iterator();
30471
    }
30472
 
1998 vikas 30473
    public void addToSuccess(Affiliate elem) {
1846 vikas 30474
      if (this.success == null) {
1998 vikas 30475
        this.success = new ArrayList<Affiliate>();
1846 vikas 30476
      }
30477
      this.success.add(elem);
30478
    }
30479
 
1998 vikas 30480
    public List<Affiliate> getSuccess() {
1846 vikas 30481
      return this.success;
30482
    }
30483
 
3430 rajveer 30484
    public void setSuccess(List<Affiliate> success) {
1846 vikas 30485
      this.success = success;
30486
    }
30487
 
30488
    public void unsetSuccess() {
30489
      this.success = null;
30490
    }
30491
 
3430 rajveer 30492
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 30493
    public boolean isSetSuccess() {
30494
      return this.success != null;
30495
    }
30496
 
30497
    public void setSuccessIsSet(boolean value) {
30498
      if (!value) {
30499
        this.success = null;
30500
      }
30501
    }
30502
 
1998 vikas 30503
    public UserAffiliateException getUtx() {
1846 vikas 30504
      return this.utx;
30505
    }
30506
 
3430 rajveer 30507
    public void setUtx(UserAffiliateException utx) {
1846 vikas 30508
      this.utx = utx;
30509
    }
30510
 
30511
    public void unsetUtx() {
30512
      this.utx = null;
30513
    }
30514
 
3430 rajveer 30515
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 30516
    public boolean isSetUtx() {
30517
      return this.utx != null;
30518
    }
30519
 
30520
    public void setUtxIsSet(boolean value) {
30521
      if (!value) {
30522
        this.utx = null;
30523
      }
30524
    }
30525
 
30526
    public void setFieldValue(_Fields field, Object value) {
30527
      switch (field) {
30528
      case SUCCESS:
30529
        if (value == null) {
30530
          unsetSuccess();
30531
        } else {
1998 vikas 30532
          setSuccess((List<Affiliate>)value);
1846 vikas 30533
        }
30534
        break;
30535
 
30536
      case UTX:
30537
        if (value == null) {
30538
          unsetUtx();
30539
        } else {
1998 vikas 30540
          setUtx((UserAffiliateException)value);
1846 vikas 30541
        }
30542
        break;
30543
 
30544
      }
30545
    }
30546
 
30547
    public Object getFieldValue(_Fields field) {
30548
      switch (field) {
30549
      case SUCCESS:
30550
        return getSuccess();
30551
 
30552
      case UTX:
30553
        return getUtx();
30554
 
30555
      }
30556
      throw new IllegalStateException();
30557
    }
30558
 
3430 rajveer 30559
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30560
    public boolean isSet(_Fields field) {
30561
      if (field == null) {
30562
        throw new IllegalArgumentException();
30563
      }
1846 vikas 30564
 
30565
      switch (field) {
30566
      case SUCCESS:
30567
        return isSetSuccess();
30568
      case UTX:
30569
        return isSetUtx();
30570
      }
30571
      throw new IllegalStateException();
30572
    }
30573
 
30574
    @Override
30575
    public boolean equals(Object that) {
30576
      if (that == null)
30577
        return false;
1998 vikas 30578
      if (that instanceof getAffiliatesByMasterAffiliate_result)
30579
        return this.equals((getAffiliatesByMasterAffiliate_result)that);
1846 vikas 30580
      return false;
30581
    }
30582
 
1998 vikas 30583
    public boolean equals(getAffiliatesByMasterAffiliate_result that) {
1846 vikas 30584
      if (that == null)
30585
        return false;
30586
 
30587
      boolean this_present_success = true && this.isSetSuccess();
30588
      boolean that_present_success = true && that.isSetSuccess();
30589
      if (this_present_success || that_present_success) {
30590
        if (!(this_present_success && that_present_success))
30591
          return false;
30592
        if (!this.success.equals(that.success))
30593
          return false;
30594
      }
30595
 
30596
      boolean this_present_utx = true && this.isSetUtx();
30597
      boolean that_present_utx = true && that.isSetUtx();
30598
      if (this_present_utx || that_present_utx) {
30599
        if (!(this_present_utx && that_present_utx))
30600
          return false;
30601
        if (!this.utx.equals(that.utx))
30602
          return false;
30603
      }
30604
 
30605
      return true;
30606
    }
30607
 
30608
    @Override
30609
    public int hashCode() {
30610
      return 0;
30611
    }
30612
 
1998 vikas 30613
    public int compareTo(getAffiliatesByMasterAffiliate_result other) {
1846 vikas 30614
      if (!getClass().equals(other.getClass())) {
30615
        return getClass().getName().compareTo(other.getClass().getName());
30616
      }
30617
 
30618
      int lastComparison = 0;
1998 vikas 30619
      getAffiliatesByMasterAffiliate_result typedOther = (getAffiliatesByMasterAffiliate_result)other;
1846 vikas 30620
 
3430 rajveer 30621
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 30622
      if (lastComparison != 0) {
30623
        return lastComparison;
30624
      }
3430 rajveer 30625
      if (isSetSuccess()) {
30626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30627
        if (lastComparison != 0) {
30628
          return lastComparison;
30629
        }
1846 vikas 30630
      }
3430 rajveer 30631
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 30632
      if (lastComparison != 0) {
30633
        return lastComparison;
30634
      }
3430 rajveer 30635
      if (isSetUtx()) {
30636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
30637
        if (lastComparison != 0) {
30638
          return lastComparison;
30639
        }
1846 vikas 30640
      }
30641
      return 0;
30642
    }
30643
 
3430 rajveer 30644
    public _Fields fieldForId(int fieldId) {
30645
      return _Fields.findByThriftId(fieldId);
30646
    }
30647
 
30648
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30649
      org.apache.thrift.protocol.TField field;
1846 vikas 30650
      iprot.readStructBegin();
30651
      while (true)
30652
      {
30653
        field = iprot.readFieldBegin();
3430 rajveer 30654
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30655
          break;
30656
        }
3430 rajveer 30657
        switch (field.id) {
30658
          case 0: // SUCCESS
30659
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30660
              {
30661
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
30662
                this.success = new ArrayList<Affiliate>(_list36.size);
30663
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
1846 vikas 30664
                {
3430 rajveer 30665
                  Affiliate _elem38; // required
30666
                  _elem38 = new Affiliate();
30667
                  _elem38.read(iprot);
30668
                  this.success.add(_elem38);
1846 vikas 30669
                }
3430 rajveer 30670
                iprot.readListEnd();
1846 vikas 30671
              }
3430 rajveer 30672
            } else { 
30673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30674
            }
30675
            break;
30676
          case 1: // UTX
30677
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30678
              this.utx = new UserAffiliateException();
30679
              this.utx.read(iprot);
30680
            } else { 
30681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30682
            }
30683
            break;
30684
          default:
30685
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30686
        }
3430 rajveer 30687
        iprot.readFieldEnd();
1846 vikas 30688
      }
30689
      iprot.readStructEnd();
30690
      validate();
30691
    }
30692
 
3430 rajveer 30693
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30694
      oprot.writeStructBegin(STRUCT_DESC);
30695
 
30696
      if (this.isSetSuccess()) {
30697
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30698
        {
3430 rajveer 30699
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 30700
          for (Affiliate _iter39 : this.success)
1846 vikas 30701
          {
3385 varun.gupt 30702
            _iter39.write(oprot);
1846 vikas 30703
          }
30704
          oprot.writeListEnd();
30705
        }
30706
        oprot.writeFieldEnd();
30707
      } else if (this.isSetUtx()) {
30708
        oprot.writeFieldBegin(UTX_FIELD_DESC);
30709
        this.utx.write(oprot);
30710
        oprot.writeFieldEnd();
30711
      }
30712
      oprot.writeFieldStop();
30713
      oprot.writeStructEnd();
30714
    }
30715
 
30716
    @Override
30717
    public String toString() {
1998 vikas 30718
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_result(");
1846 vikas 30719
      boolean first = true;
30720
 
30721
      sb.append("success:");
30722
      if (this.success == null) {
30723
        sb.append("null");
30724
      } else {
30725
        sb.append(this.success);
30726
      }
30727
      first = false;
30728
      if (!first) sb.append(", ");
30729
      sb.append("utx:");
30730
      if (this.utx == null) {
30731
        sb.append("null");
30732
      } else {
30733
        sb.append(this.utx);
30734
      }
30735
      first = false;
30736
      sb.append(")");
30737
      return sb.toString();
30738
    }
30739
 
3430 rajveer 30740
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30741
      // check for required fields
30742
    }
30743
 
3430 rajveer 30744
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30745
      try {
30746
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30747
      } catch (org.apache.thrift.TException te) {
30748
        throw new java.io.IOException(te);
30749
      }
30750
    }
30751
 
30752
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30753
      try {
30754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30755
      } catch (org.apache.thrift.TException te) {
30756
        throw new java.io.IOException(te);
30757
      }
30758
    }
30759
 
1846 vikas 30760
  }
30761
 
3430 rajveer 30762
  public static class addTrackLog_args implements org.apache.thrift.TBase<addTrackLog_args, addTrackLog_args._Fields>, java.io.Serializable, Cloneable   {
30763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTrackLog_args");
1846 vikas 30764
 
3430 rajveer 30765
    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);
30766
    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);
30767
    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);
30768
    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);
30769
    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);
30770
    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 30771
 
3430 rajveer 30772
    private long affiliateId; // required
30773
    private long userId; // required
30774
    private TrackLogType event; // required
30775
    private String url; // required
30776
    private String data; // required
30777
    private long addedOn; // required
1846 vikas 30778
 
30779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 30781
      AFFILIATE_ID((short)1, "affiliateId"),
1846 vikas 30782
      USER_ID((short)2, "userId"),
3378 vikas 30783
      /**
30784
       * 
30785
       * @see TrackLogType
30786
       */
1846 vikas 30787
      EVENT((short)3, "event"),
30788
      URL((short)4, "url"),
1860 vikas 30789
      DATA((short)5, "data"),
30790
      ADDED_ON((short)6, "addedOn");
1846 vikas 30791
 
30792
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30793
 
30794
      static {
30795
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30796
          byName.put(field.getFieldName(), field);
30797
        }
30798
      }
30799
 
30800
      /**
30801
       * Find the _Fields constant that matches fieldId, or null if its not found.
30802
       */
30803
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30804
        switch(fieldId) {
30805
          case 1: // AFFILIATE_ID
30806
            return AFFILIATE_ID;
30807
          case 2: // USER_ID
30808
            return USER_ID;
30809
          case 3: // EVENT
30810
            return EVENT;
30811
          case 4: // URL
30812
            return URL;
30813
          case 5: // DATA
30814
            return DATA;
30815
          case 6: // ADDED_ON
30816
            return ADDED_ON;
30817
          default:
30818
            return null;
30819
        }
1846 vikas 30820
      }
30821
 
30822
      /**
30823
       * Find the _Fields constant that matches fieldId, throwing an exception
30824
       * if it is not found.
30825
       */
30826
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30827
        _Fields fields = findByThriftId(fieldId);
30828
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30829
        return fields;
30830
      }
30831
 
30832
      /**
30833
       * Find the _Fields constant that matches name, or null if its not found.
30834
       */
30835
      public static _Fields findByName(String name) {
30836
        return byName.get(name);
30837
      }
30838
 
30839
      private final short _thriftId;
30840
      private final String _fieldName;
30841
 
30842
      _Fields(short thriftId, String fieldName) {
30843
        _thriftId = thriftId;
30844
        _fieldName = fieldName;
30845
      }
30846
 
30847
      public short getThriftFieldId() {
30848
        return _thriftId;
30849
      }
30850
 
30851
      public String getFieldName() {
30852
        return _fieldName;
30853
      }
30854
    }
30855
 
30856
    // isset id assignments
1998 vikas 30857
    private static final int __AFFILIATEID_ISSET_ID = 0;
1846 vikas 30858
    private static final int __USERID_ISSET_ID = 1;
1860 vikas 30859
    private static final int __ADDEDON_ISSET_ID = 2;
30860
    private BitSet __isset_bit_vector = new BitSet(3);
1846 vikas 30861
 
3430 rajveer 30862
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30863
    static {
3430 rajveer 30864
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30865
      tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30866
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30867
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30869
      tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30870
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TrackLogType.class)));
30871
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30872
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30873
      tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30874
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30875
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTrackLog_args.class, metaDataMap);
1846 vikas 30879
    }
30880
 
30881
    public addTrackLog_args() {
30882
    }
30883
 
30884
    public addTrackLog_args(
1998 vikas 30885
      long affiliateId,
1846 vikas 30886
      long userId,
3378 vikas 30887
      TrackLogType event,
1846 vikas 30888
      String url,
1860 vikas 30889
      String data,
30890
      long addedOn)
1846 vikas 30891
    {
30892
      this();
1998 vikas 30893
      this.affiliateId = affiliateId;
30894
      setAffiliateIdIsSet(true);
1846 vikas 30895
      this.userId = userId;
30896
      setUserIdIsSet(true);
30897
      this.event = event;
30898
      this.url = url;
30899
      this.data = data;
1860 vikas 30900
      this.addedOn = addedOn;
30901
      setAddedOnIsSet(true);
1846 vikas 30902
    }
30903
 
30904
    /**
30905
     * Performs a deep copy on <i>other</i>.
30906
     */
30907
    public addTrackLog_args(addTrackLog_args other) {
30908
      __isset_bit_vector.clear();
30909
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 30910
      this.affiliateId = other.affiliateId;
1846 vikas 30911
      this.userId = other.userId;
30912
      if (other.isSetEvent()) {
30913
        this.event = other.event;
30914
      }
30915
      if (other.isSetUrl()) {
30916
        this.url = other.url;
30917
      }
30918
      if (other.isSetData()) {
30919
        this.data = other.data;
30920
      }
1860 vikas 30921
      this.addedOn = other.addedOn;
1846 vikas 30922
    }
30923
 
30924
    public addTrackLog_args deepCopy() {
30925
      return new addTrackLog_args(this);
30926
    }
30927
 
3430 rajveer 30928
    @Override
30929
    public void clear() {
30930
      setAffiliateIdIsSet(false);
30931
      this.affiliateId = 0;
30932
      setUserIdIsSet(false);
30933
      this.userId = 0;
30934
      this.event = null;
30935
      this.url = null;
30936
      this.data = null;
30937
      setAddedOnIsSet(false);
30938
      this.addedOn = 0;
1846 vikas 30939
    }
30940
 
1998 vikas 30941
    public long getAffiliateId() {
30942
      return this.affiliateId;
1846 vikas 30943
    }
30944
 
3430 rajveer 30945
    public void setAffiliateId(long affiliateId) {
1998 vikas 30946
      this.affiliateId = affiliateId;
30947
      setAffiliateIdIsSet(true);
1846 vikas 30948
    }
30949
 
1998 vikas 30950
    public void unsetAffiliateId() {
30951
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
1846 vikas 30952
    }
30953
 
3430 rajveer 30954
    /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
1998 vikas 30955
    public boolean isSetAffiliateId() {
30956
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
1846 vikas 30957
    }
30958
 
1998 vikas 30959
    public void setAffiliateIdIsSet(boolean value) {
30960
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
1846 vikas 30961
    }
30962
 
30963
    public long getUserId() {
30964
      return this.userId;
30965
    }
30966
 
3430 rajveer 30967
    public void setUserId(long userId) {
1846 vikas 30968
      this.userId = userId;
30969
      setUserIdIsSet(true);
30970
    }
30971
 
30972
    public void unsetUserId() {
30973
      __isset_bit_vector.clear(__USERID_ISSET_ID);
30974
    }
30975
 
3430 rajveer 30976
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 30977
    public boolean isSetUserId() {
30978
      return __isset_bit_vector.get(__USERID_ISSET_ID);
30979
    }
30980
 
30981
    public void setUserIdIsSet(boolean value) {
30982
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
30983
    }
30984
 
3378 vikas 30985
    /**
30986
     * 
30987
     * @see TrackLogType
30988
     */
30989
    public TrackLogType getEvent() {
1846 vikas 30990
      return this.event;
30991
    }
30992
 
3378 vikas 30993
    /**
30994
     * 
30995
     * @see TrackLogType
30996
     */
3430 rajveer 30997
    public void setEvent(TrackLogType event) {
1846 vikas 30998
      this.event = event;
30999
    }
31000
 
31001
    public void unsetEvent() {
31002
      this.event = null;
31003
    }
31004
 
3430 rajveer 31005
    /** Returns true if field event is set (has been assigned a value) and false otherwise */
1846 vikas 31006
    public boolean isSetEvent() {
31007
      return this.event != null;
31008
    }
31009
 
31010
    public void setEventIsSet(boolean value) {
31011
      if (!value) {
31012
        this.event = null;
31013
      }
31014
    }
31015
 
31016
    public String getUrl() {
31017
      return this.url;
31018
    }
31019
 
3430 rajveer 31020
    public void setUrl(String url) {
1846 vikas 31021
      this.url = url;
31022
    }
31023
 
31024
    public void unsetUrl() {
31025
      this.url = null;
31026
    }
31027
 
3430 rajveer 31028
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 31029
    public boolean isSetUrl() {
31030
      return this.url != null;
31031
    }
31032
 
31033
    public void setUrlIsSet(boolean value) {
31034
      if (!value) {
31035
        this.url = null;
31036
      }
31037
    }
31038
 
31039
    public String getData() {
31040
      return this.data;
31041
    }
31042
 
3430 rajveer 31043
    public void setData(String data) {
1846 vikas 31044
      this.data = data;
31045
    }
31046
 
31047
    public void unsetData() {
31048
      this.data = null;
31049
    }
31050
 
3430 rajveer 31051
    /** Returns true if field data is set (has been assigned a value) and false otherwise */
1846 vikas 31052
    public boolean isSetData() {
31053
      return this.data != null;
31054
    }
31055
 
31056
    public void setDataIsSet(boolean value) {
31057
      if (!value) {
31058
        this.data = null;
31059
      }
31060
    }
31061
 
1860 vikas 31062
    public long getAddedOn() {
31063
      return this.addedOn;
31064
    }
31065
 
3430 rajveer 31066
    public void setAddedOn(long addedOn) {
1860 vikas 31067
      this.addedOn = addedOn;
31068
      setAddedOnIsSet(true);
31069
    }
31070
 
31071
    public void unsetAddedOn() {
31072
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
31073
    }
31074
 
3430 rajveer 31075
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 31076
    public boolean isSetAddedOn() {
31077
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
31078
    }
31079
 
31080
    public void setAddedOnIsSet(boolean value) {
31081
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
31082
    }
31083
 
1846 vikas 31084
    public void setFieldValue(_Fields field, Object value) {
31085
      switch (field) {
1998 vikas 31086
      case AFFILIATE_ID:
1846 vikas 31087
        if (value == null) {
1998 vikas 31088
          unsetAffiliateId();
1846 vikas 31089
        } else {
1998 vikas 31090
          setAffiliateId((Long)value);
1846 vikas 31091
        }
31092
        break;
31093
 
31094
      case USER_ID:
31095
        if (value == null) {
31096
          unsetUserId();
31097
        } else {
31098
          setUserId((Long)value);
31099
        }
31100
        break;
31101
 
31102
      case EVENT:
31103
        if (value == null) {
31104
          unsetEvent();
31105
        } else {
3378 vikas 31106
          setEvent((TrackLogType)value);
1846 vikas 31107
        }
31108
        break;
31109
 
31110
      case URL:
31111
        if (value == null) {
31112
          unsetUrl();
31113
        } else {
31114
          setUrl((String)value);
31115
        }
31116
        break;
31117
 
31118
      case DATA:
31119
        if (value == null) {
31120
          unsetData();
31121
        } else {
31122
          setData((String)value);
31123
        }
31124
        break;
31125
 
1860 vikas 31126
      case ADDED_ON:
31127
        if (value == null) {
31128
          unsetAddedOn();
31129
        } else {
31130
          setAddedOn((Long)value);
31131
        }
31132
        break;
31133
 
1846 vikas 31134
      }
31135
    }
31136
 
31137
    public Object getFieldValue(_Fields field) {
31138
      switch (field) {
1998 vikas 31139
      case AFFILIATE_ID:
3430 rajveer 31140
        return Long.valueOf(getAffiliateId());
1846 vikas 31141
 
31142
      case USER_ID:
3430 rajveer 31143
        return Long.valueOf(getUserId());
1846 vikas 31144
 
31145
      case EVENT:
31146
        return getEvent();
31147
 
31148
      case URL:
31149
        return getUrl();
31150
 
31151
      case DATA:
31152
        return getData();
31153
 
1860 vikas 31154
      case ADDED_ON:
3430 rajveer 31155
        return Long.valueOf(getAddedOn());
1860 vikas 31156
 
1846 vikas 31157
      }
31158
      throw new IllegalStateException();
31159
    }
31160
 
3430 rajveer 31161
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31162
    public boolean isSet(_Fields field) {
31163
      if (field == null) {
31164
        throw new IllegalArgumentException();
31165
      }
1846 vikas 31166
 
31167
      switch (field) {
1998 vikas 31168
      case AFFILIATE_ID:
31169
        return isSetAffiliateId();
1846 vikas 31170
      case USER_ID:
31171
        return isSetUserId();
31172
      case EVENT:
31173
        return isSetEvent();
31174
      case URL:
31175
        return isSetUrl();
31176
      case DATA:
31177
        return isSetData();
1860 vikas 31178
      case ADDED_ON:
31179
        return isSetAddedOn();
1846 vikas 31180
      }
31181
      throw new IllegalStateException();
31182
    }
31183
 
31184
    @Override
31185
    public boolean equals(Object that) {
31186
      if (that == null)
31187
        return false;
31188
      if (that instanceof addTrackLog_args)
31189
        return this.equals((addTrackLog_args)that);
31190
      return false;
31191
    }
31192
 
31193
    public boolean equals(addTrackLog_args that) {
31194
      if (that == null)
31195
        return false;
31196
 
1998 vikas 31197
      boolean this_present_affiliateId = true;
31198
      boolean that_present_affiliateId = true;
31199
      if (this_present_affiliateId || that_present_affiliateId) {
31200
        if (!(this_present_affiliateId && that_present_affiliateId))
1846 vikas 31201
          return false;
1998 vikas 31202
        if (this.affiliateId != that.affiliateId)
1846 vikas 31203
          return false;
31204
      }
31205
 
31206
      boolean this_present_userId = true;
31207
      boolean that_present_userId = true;
31208
      if (this_present_userId || that_present_userId) {
31209
        if (!(this_present_userId && that_present_userId))
31210
          return false;
31211
        if (this.userId != that.userId)
31212
          return false;
31213
      }
31214
 
31215
      boolean this_present_event = true && this.isSetEvent();
31216
      boolean that_present_event = true && that.isSetEvent();
31217
      if (this_present_event || that_present_event) {
31218
        if (!(this_present_event && that_present_event))
31219
          return false;
31220
        if (!this.event.equals(that.event))
31221
          return false;
31222
      }
31223
 
31224
      boolean this_present_url = true && this.isSetUrl();
31225
      boolean that_present_url = true && that.isSetUrl();
31226
      if (this_present_url || that_present_url) {
31227
        if (!(this_present_url && that_present_url))
31228
          return false;
31229
        if (!this.url.equals(that.url))
31230
          return false;
31231
      }
31232
 
31233
      boolean this_present_data = true && this.isSetData();
31234
      boolean that_present_data = true && that.isSetData();
31235
      if (this_present_data || that_present_data) {
31236
        if (!(this_present_data && that_present_data))
31237
          return false;
31238
        if (!this.data.equals(that.data))
31239
          return false;
31240
      }
31241
 
1860 vikas 31242
      boolean this_present_addedOn = true;
31243
      boolean that_present_addedOn = true;
31244
      if (this_present_addedOn || that_present_addedOn) {
31245
        if (!(this_present_addedOn && that_present_addedOn))
31246
          return false;
31247
        if (this.addedOn != that.addedOn)
31248
          return false;
31249
      }
31250
 
1846 vikas 31251
      return true;
31252
    }
31253
 
31254
    @Override
31255
    public int hashCode() {
31256
      return 0;
31257
    }
31258
 
31259
    public int compareTo(addTrackLog_args other) {
31260
      if (!getClass().equals(other.getClass())) {
31261
        return getClass().getName().compareTo(other.getClass().getName());
31262
      }
31263
 
31264
      int lastComparison = 0;
31265
      addTrackLog_args typedOther = (addTrackLog_args)other;
31266
 
3430 rajveer 31267
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
1846 vikas 31268
      if (lastComparison != 0) {
31269
        return lastComparison;
31270
      }
3430 rajveer 31271
      if (isSetAffiliateId()) {
31272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
31273
        if (lastComparison != 0) {
31274
          return lastComparison;
31275
        }
1846 vikas 31276
      }
3430 rajveer 31277
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 31278
      if (lastComparison != 0) {
31279
        return lastComparison;
31280
      }
3430 rajveer 31281
      if (isSetUserId()) {
31282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
31283
        if (lastComparison != 0) {
31284
          return lastComparison;
31285
        }
1846 vikas 31286
      }
3430 rajveer 31287
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(typedOther.isSetEvent());
1846 vikas 31288
      if (lastComparison != 0) {
31289
        return lastComparison;
31290
      }
3430 rajveer 31291
      if (isSetEvent()) {
31292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, typedOther.event);
31293
        if (lastComparison != 0) {
31294
          return lastComparison;
31295
        }
1846 vikas 31296
      }
3430 rajveer 31297
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 31298
      if (lastComparison != 0) {
31299
        return lastComparison;
31300
      }
3430 rajveer 31301
      if (isSetUrl()) {
31302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
31303
        if (lastComparison != 0) {
31304
          return lastComparison;
31305
        }
1846 vikas 31306
      }
3430 rajveer 31307
      lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData());
1846 vikas 31308
      if (lastComparison != 0) {
31309
        return lastComparison;
31310
      }
3430 rajveer 31311
      if (isSetData()) {
31312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data);
31313
        if (lastComparison != 0) {
31314
          return lastComparison;
31315
        }
1846 vikas 31316
      }
3430 rajveer 31317
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 31318
      if (lastComparison != 0) {
31319
        return lastComparison;
31320
      }
3430 rajveer 31321
      if (isSetAddedOn()) {
31322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
31323
        if (lastComparison != 0) {
31324
          return lastComparison;
31325
        }
1860 vikas 31326
      }
1846 vikas 31327
      return 0;
31328
    }
31329
 
3430 rajveer 31330
    public _Fields fieldForId(int fieldId) {
31331
      return _Fields.findByThriftId(fieldId);
31332
    }
31333
 
31334
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31335
      org.apache.thrift.protocol.TField field;
1846 vikas 31336
      iprot.readStructBegin();
31337
      while (true)
31338
      {
31339
        field = iprot.readFieldBegin();
3430 rajveer 31340
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 31341
          break;
31342
        }
3430 rajveer 31343
        switch (field.id) {
31344
          case 1: // AFFILIATE_ID
31345
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31346
              this.affiliateId = iprot.readI64();
31347
              setAffiliateIdIsSet(true);
31348
            } else { 
31349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31350
            }
31351
            break;
31352
          case 2: // USER_ID
31353
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31354
              this.userId = iprot.readI64();
31355
              setUserIdIsSet(true);
31356
            } else { 
31357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31358
            }
31359
            break;
31360
          case 3: // EVENT
31361
            if (field.type == org.apache.thrift.protocol.TType.I32) {
31362
              this.event = TrackLogType.findByValue(iprot.readI32());
31363
            } else { 
31364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31365
            }
31366
            break;
31367
          case 4: // URL
31368
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31369
              this.url = iprot.readString();
31370
            } else { 
31371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31372
            }
31373
            break;
31374
          case 5: // DATA
31375
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31376
              this.data = iprot.readString();
31377
            } else { 
31378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31379
            }
31380
            break;
31381
          case 6: // ADDED_ON
31382
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31383
              this.addedOn = iprot.readI64();
31384
              setAddedOnIsSet(true);
31385
            } else { 
31386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31387
            }
31388
            break;
31389
          default:
31390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 31391
        }
3430 rajveer 31392
        iprot.readFieldEnd();
1846 vikas 31393
      }
31394
      iprot.readStructEnd();
31395
      validate();
31396
    }
31397
 
3430 rajveer 31398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 31399
      validate();
31400
 
31401
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 31402
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
31403
      oprot.writeI64(this.affiliateId);
1846 vikas 31404
      oprot.writeFieldEnd();
31405
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
31406
      oprot.writeI64(this.userId);
31407
      oprot.writeFieldEnd();
31408
      if (this.event != null) {
31409
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
3378 vikas 31410
        oprot.writeI32(this.event.getValue());
1846 vikas 31411
        oprot.writeFieldEnd();
31412
      }
31413
      if (this.url != null) {
31414
        oprot.writeFieldBegin(URL_FIELD_DESC);
31415
        oprot.writeString(this.url);
31416
        oprot.writeFieldEnd();
31417
      }
31418
      if (this.data != null) {
31419
        oprot.writeFieldBegin(DATA_FIELD_DESC);
31420
        oprot.writeString(this.data);
31421
        oprot.writeFieldEnd();
31422
      }
1860 vikas 31423
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
31424
      oprot.writeI64(this.addedOn);
31425
      oprot.writeFieldEnd();
1846 vikas 31426
      oprot.writeFieldStop();
31427
      oprot.writeStructEnd();
31428
    }
31429
 
31430
    @Override
31431
    public String toString() {
31432
      StringBuilder sb = new StringBuilder("addTrackLog_args(");
31433
      boolean first = true;
31434
 
1998 vikas 31435
      sb.append("affiliateId:");
31436
      sb.append(this.affiliateId);
1846 vikas 31437
      first = false;
31438
      if (!first) sb.append(", ");
31439
      sb.append("userId:");
31440
      sb.append(this.userId);
31441
      first = false;
31442
      if (!first) sb.append(", ");
31443
      sb.append("event:");
31444
      if (this.event == null) {
31445
        sb.append("null");
31446
      } else {
31447
        sb.append(this.event);
31448
      }
31449
      first = false;
31450
      if (!first) sb.append(", ");
31451
      sb.append("url:");
31452
      if (this.url == null) {
31453
        sb.append("null");
31454
      } else {
31455
        sb.append(this.url);
31456
      }
31457
      first = false;
31458
      if (!first) sb.append(", ");
31459
      sb.append("data:");
31460
      if (this.data == null) {
31461
        sb.append("null");
31462
      } else {
31463
        sb.append(this.data);
31464
      }
31465
      first = false;
1860 vikas 31466
      if (!first) sb.append(", ");
31467
      sb.append("addedOn:");
31468
      sb.append(this.addedOn);
31469
      first = false;
1846 vikas 31470
      sb.append(")");
31471
      return sb.toString();
31472
    }
31473
 
3430 rajveer 31474
    public void validate() throws org.apache.thrift.TException {
1846 vikas 31475
      // check for required fields
31476
    }
31477
 
3430 rajveer 31478
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31479
      try {
31480
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31481
      } catch (org.apache.thrift.TException te) {
31482
        throw new java.io.IOException(te);
31483
      }
31484
    }
31485
 
31486
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31487
      try {
31488
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31489
        __isset_bit_vector = new BitSet(1);
31490
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31491
      } catch (org.apache.thrift.TException te) {
31492
        throw new java.io.IOException(te);
31493
      }
31494
    }
31495
 
1846 vikas 31496
  }
31497
 
3430 rajveer 31498
  public static class addTrackLog_result implements org.apache.thrift.TBase<addTrackLog_result, addTrackLog_result._Fields>, java.io.Serializable, Cloneable   {
31499
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTrackLog_result");
1846 vikas 31500
 
3430 rajveer 31501
    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);
31502
    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 31503
 
3430 rajveer 31504
    private long success; // required
31505
    private UserAffiliateException utx; // required
1846 vikas 31506
 
31507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 31509
      SUCCESS((short)0, "success"),
31510
      UTX((short)1, "utx");
31511
 
31512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31513
 
31514
      static {
31515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31516
          byName.put(field.getFieldName(), field);
31517
        }
31518
      }
31519
 
31520
      /**
31521
       * Find the _Fields constant that matches fieldId, or null if its not found.
31522
       */
31523
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31524
        switch(fieldId) {
31525
          case 0: // SUCCESS
31526
            return SUCCESS;
31527
          case 1: // UTX
31528
            return UTX;
31529
          default:
31530
            return null;
31531
        }
1846 vikas 31532
      }
31533
 
31534
      /**
31535
       * Find the _Fields constant that matches fieldId, throwing an exception
31536
       * if it is not found.
31537
       */
31538
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31539
        _Fields fields = findByThriftId(fieldId);
31540
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31541
        return fields;
31542
      }
31543
 
31544
      /**
31545
       * Find the _Fields constant that matches name, or null if its not found.
31546
       */
31547
      public static _Fields findByName(String name) {
31548
        return byName.get(name);
31549
      }
31550
 
31551
      private final short _thriftId;
31552
      private final String _fieldName;
31553
 
31554
      _Fields(short thriftId, String fieldName) {
31555
        _thriftId = thriftId;
31556
        _fieldName = fieldName;
31557
      }
31558
 
31559
      public short getThriftFieldId() {
31560
        return _thriftId;
31561
      }
31562
 
31563
      public String getFieldName() {
31564
        return _fieldName;
31565
      }
31566
    }
31567
 
31568
    // isset id assignments
31569
    private static final int __SUCCESS_ISSET_ID = 0;
31570
    private BitSet __isset_bit_vector = new BitSet(1);
31571
 
3430 rajveer 31572
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 31573
    static {
3430 rajveer 31574
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31575
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31577
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTrackLog_result.class, metaDataMap);
1846 vikas 31581
    }
31582
 
31583
    public addTrackLog_result() {
31584
    }
31585
 
31586
    public addTrackLog_result(
31587
      long success,
1998 vikas 31588
      UserAffiliateException utx)
1846 vikas 31589
    {
31590
      this();
31591
      this.success = success;
31592
      setSuccessIsSet(true);
31593
      this.utx = utx;
31594
    }
31595
 
31596
    /**
31597
     * Performs a deep copy on <i>other</i>.
31598
     */
31599
    public addTrackLog_result(addTrackLog_result other) {
31600
      __isset_bit_vector.clear();
31601
      __isset_bit_vector.or(other.__isset_bit_vector);
31602
      this.success = other.success;
31603
      if (other.isSetUtx()) {
1998 vikas 31604
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 31605
      }
31606
    }
31607
 
31608
    public addTrackLog_result deepCopy() {
31609
      return new addTrackLog_result(this);
31610
    }
31611
 
3430 rajveer 31612
    @Override
31613
    public void clear() {
31614
      setSuccessIsSet(false);
31615
      this.success = 0;
31616
      this.utx = null;
1846 vikas 31617
    }
31618
 
31619
    public long getSuccess() {
31620
      return this.success;
31621
    }
31622
 
3430 rajveer 31623
    public void setSuccess(long success) {
1846 vikas 31624
      this.success = success;
31625
      setSuccessIsSet(true);
31626
    }
31627
 
31628
    public void unsetSuccess() {
31629
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31630
    }
31631
 
3430 rajveer 31632
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 31633
    public boolean isSetSuccess() {
31634
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31635
    }
31636
 
31637
    public void setSuccessIsSet(boolean value) {
31638
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31639
    }
31640
 
1998 vikas 31641
    public UserAffiliateException getUtx() {
1846 vikas 31642
      return this.utx;
31643
    }
31644
 
3430 rajveer 31645
    public void setUtx(UserAffiliateException utx) {
1846 vikas 31646
      this.utx = utx;
31647
    }
31648
 
31649
    public void unsetUtx() {
31650
      this.utx = null;
31651
    }
31652
 
3430 rajveer 31653
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 31654
    public boolean isSetUtx() {
31655
      return this.utx != null;
31656
    }
31657
 
31658
    public void setUtxIsSet(boolean value) {
31659
      if (!value) {
31660
        this.utx = null;
31661
      }
31662
    }
31663
 
31664
    public void setFieldValue(_Fields field, Object value) {
31665
      switch (field) {
31666
      case SUCCESS:
31667
        if (value == null) {
31668
          unsetSuccess();
31669
        } else {
31670
          setSuccess((Long)value);
31671
        }
31672
        break;
31673
 
31674
      case UTX:
31675
        if (value == null) {
31676
          unsetUtx();
31677
        } else {
1998 vikas 31678
          setUtx((UserAffiliateException)value);
1846 vikas 31679
        }
31680
        break;
31681
 
31682
      }
31683
    }
31684
 
31685
    public Object getFieldValue(_Fields field) {
31686
      switch (field) {
31687
      case SUCCESS:
3430 rajveer 31688
        return Long.valueOf(getSuccess());
1846 vikas 31689
 
31690
      case UTX:
31691
        return getUtx();
31692
 
31693
      }
31694
      throw new IllegalStateException();
31695
    }
31696
 
3430 rajveer 31697
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31698
    public boolean isSet(_Fields field) {
31699
      if (field == null) {
31700
        throw new IllegalArgumentException();
31701
      }
1846 vikas 31702
 
31703
      switch (field) {
31704
      case SUCCESS:
31705
        return isSetSuccess();
31706
      case UTX:
31707
        return isSetUtx();
31708
      }
31709
      throw new IllegalStateException();
31710
    }
31711
 
31712
    @Override
31713
    public boolean equals(Object that) {
31714
      if (that == null)
31715
        return false;
31716
      if (that instanceof addTrackLog_result)
31717
        return this.equals((addTrackLog_result)that);
31718
      return false;
31719
    }
31720
 
31721
    public boolean equals(addTrackLog_result that) {
31722
      if (that == null)
31723
        return false;
31724
 
31725
      boolean this_present_success = true;
31726
      boolean that_present_success = true;
31727
      if (this_present_success || that_present_success) {
31728
        if (!(this_present_success && that_present_success))
31729
          return false;
31730
        if (this.success != that.success)
31731
          return false;
31732
      }
31733
 
31734
      boolean this_present_utx = true && this.isSetUtx();
31735
      boolean that_present_utx = true && that.isSetUtx();
31736
      if (this_present_utx || that_present_utx) {
31737
        if (!(this_present_utx && that_present_utx))
31738
          return false;
31739
        if (!this.utx.equals(that.utx))
31740
          return false;
31741
      }
31742
 
31743
      return true;
31744
    }
31745
 
31746
    @Override
31747
    public int hashCode() {
31748
      return 0;
31749
    }
31750
 
31751
    public int compareTo(addTrackLog_result other) {
31752
      if (!getClass().equals(other.getClass())) {
31753
        return getClass().getName().compareTo(other.getClass().getName());
31754
      }
31755
 
31756
      int lastComparison = 0;
31757
      addTrackLog_result typedOther = (addTrackLog_result)other;
31758
 
3430 rajveer 31759
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 31760
      if (lastComparison != 0) {
31761
        return lastComparison;
31762
      }
3430 rajveer 31763
      if (isSetSuccess()) {
31764
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31765
        if (lastComparison != 0) {
31766
          return lastComparison;
31767
        }
1846 vikas 31768
      }
3430 rajveer 31769
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 31770
      if (lastComparison != 0) {
31771
        return lastComparison;
31772
      }
3430 rajveer 31773
      if (isSetUtx()) {
31774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
31775
        if (lastComparison != 0) {
31776
          return lastComparison;
31777
        }
1846 vikas 31778
      }
31779
      return 0;
31780
    }
31781
 
3430 rajveer 31782
    public _Fields fieldForId(int fieldId) {
31783
      return _Fields.findByThriftId(fieldId);
31784
    }
31785
 
31786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31787
      org.apache.thrift.protocol.TField field;
1846 vikas 31788
      iprot.readStructBegin();
31789
      while (true)
31790
      {
31791
        field = iprot.readFieldBegin();
3430 rajveer 31792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 31793
          break;
31794
        }
3430 rajveer 31795
        switch (field.id) {
31796
          case 0: // SUCCESS
31797
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31798
              this.success = iprot.readI64();
31799
              setSuccessIsSet(true);
31800
            } else { 
31801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31802
            }
31803
            break;
31804
          case 1: // UTX
31805
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31806
              this.utx = new UserAffiliateException();
31807
              this.utx.read(iprot);
31808
            } else { 
31809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31810
            }
31811
            break;
31812
          default:
31813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 31814
        }
3430 rajveer 31815
        iprot.readFieldEnd();
1846 vikas 31816
      }
31817
      iprot.readStructEnd();
31818
      validate();
31819
    }
31820
 
3430 rajveer 31821
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 31822
      oprot.writeStructBegin(STRUCT_DESC);
31823
 
31824
      if (this.isSetSuccess()) {
31825
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31826
        oprot.writeI64(this.success);
31827
        oprot.writeFieldEnd();
31828
      } else if (this.isSetUtx()) {
31829
        oprot.writeFieldBegin(UTX_FIELD_DESC);
31830
        this.utx.write(oprot);
31831
        oprot.writeFieldEnd();
31832
      }
31833
      oprot.writeFieldStop();
31834
      oprot.writeStructEnd();
31835
    }
31836
 
31837
    @Override
31838
    public String toString() {
31839
      StringBuilder sb = new StringBuilder("addTrackLog_result(");
31840
      boolean first = true;
31841
 
31842
      sb.append("success:");
31843
      sb.append(this.success);
31844
      first = false;
31845
      if (!first) sb.append(", ");
31846
      sb.append("utx:");
31847
      if (this.utx == null) {
31848
        sb.append("null");
31849
      } else {
31850
        sb.append(this.utx);
31851
      }
31852
      first = false;
31853
      sb.append(")");
31854
      return sb.toString();
31855
    }
31856
 
3430 rajveer 31857
    public void validate() throws org.apache.thrift.TException {
1846 vikas 31858
      // check for required fields
31859
    }
31860
 
3430 rajveer 31861
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31862
      try {
31863
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31864
      } catch (org.apache.thrift.TException te) {
31865
        throw new java.io.IOException(te);
31866
      }
31867
    }
31868
 
31869
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31870
      try {
31871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31872
      } catch (org.apache.thrift.TException te) {
31873
        throw new java.io.IOException(te);
31874
      }
31875
    }
31876
 
1846 vikas 31877
  }
31878
 
3430 rajveer 31879
  public static class getTrackLogById_args implements org.apache.thrift.TBase<getTrackLogById_args, getTrackLogById_args._Fields>, java.io.Serializable, Cloneable   {
31880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogById_args");
1846 vikas 31881
 
3430 rajveer 31882
    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 31883
 
3430 rajveer 31884
    private long id; // required
1846 vikas 31885
 
31886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 31888
      ID((short)1, "id");
31889
 
31890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31891
 
31892
      static {
31893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31894
          byName.put(field.getFieldName(), field);
31895
        }
31896
      }
31897
 
31898
      /**
31899
       * Find the _Fields constant that matches fieldId, or null if its not found.
31900
       */
31901
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31902
        switch(fieldId) {
31903
          case 1: // ID
31904
            return ID;
31905
          default:
31906
            return null;
31907
        }
1846 vikas 31908
      }
31909
 
31910
      /**
31911
       * Find the _Fields constant that matches fieldId, throwing an exception
31912
       * if it is not found.
31913
       */
31914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31915
        _Fields fields = findByThriftId(fieldId);
31916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31917
        return fields;
31918
      }
31919
 
31920
      /**
31921
       * Find the _Fields constant that matches name, or null if its not found.
31922
       */
31923
      public static _Fields findByName(String name) {
31924
        return byName.get(name);
31925
      }
31926
 
31927
      private final short _thriftId;
31928
      private final String _fieldName;
31929
 
31930
      _Fields(short thriftId, String fieldName) {
31931
        _thriftId = thriftId;
31932
        _fieldName = fieldName;
31933
      }
31934
 
31935
      public short getThriftFieldId() {
31936
        return _thriftId;
31937
      }
31938
 
31939
      public String getFieldName() {
31940
        return _fieldName;
31941
      }
31942
    }
31943
 
31944
    // isset id assignments
31945
    private static final int __ID_ISSET_ID = 0;
31946
    private BitSet __isset_bit_vector = new BitSet(1);
31947
 
3430 rajveer 31948
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 31949
    static {
3430 rajveer 31950
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31951
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogById_args.class, metaDataMap);
1846 vikas 31955
    }
31956
 
31957
    public getTrackLogById_args() {
31958
    }
31959
 
31960
    public getTrackLogById_args(
31961
      long id)
31962
    {
31963
      this();
31964
      this.id = id;
31965
      setIdIsSet(true);
31966
    }
31967
 
31968
    /**
31969
     * Performs a deep copy on <i>other</i>.
31970
     */
31971
    public getTrackLogById_args(getTrackLogById_args other) {
31972
      __isset_bit_vector.clear();
31973
      __isset_bit_vector.or(other.__isset_bit_vector);
31974
      this.id = other.id;
31975
    }
31976
 
31977
    public getTrackLogById_args deepCopy() {
31978
      return new getTrackLogById_args(this);
31979
    }
31980
 
3430 rajveer 31981
    @Override
31982
    public void clear() {
31983
      setIdIsSet(false);
31984
      this.id = 0;
1846 vikas 31985
    }
31986
 
31987
    public long getId() {
31988
      return this.id;
31989
    }
31990
 
3430 rajveer 31991
    public void setId(long id) {
1846 vikas 31992
      this.id = id;
31993
      setIdIsSet(true);
31994
    }
31995
 
31996
    public void unsetId() {
31997
      __isset_bit_vector.clear(__ID_ISSET_ID);
31998
    }
31999
 
3430 rajveer 32000
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 32001
    public boolean isSetId() {
32002
      return __isset_bit_vector.get(__ID_ISSET_ID);
32003
    }
32004
 
32005
    public void setIdIsSet(boolean value) {
32006
      __isset_bit_vector.set(__ID_ISSET_ID, value);
32007
    }
32008
 
32009
    public void setFieldValue(_Fields field, Object value) {
32010
      switch (field) {
32011
      case ID:
32012
        if (value == null) {
32013
          unsetId();
32014
        } else {
32015
          setId((Long)value);
32016
        }
32017
        break;
32018
 
32019
      }
32020
    }
32021
 
32022
    public Object getFieldValue(_Fields field) {
32023
      switch (field) {
32024
      case ID:
3430 rajveer 32025
        return Long.valueOf(getId());
1846 vikas 32026
 
32027
      }
32028
      throw new IllegalStateException();
32029
    }
32030
 
3430 rajveer 32031
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32032
    public boolean isSet(_Fields field) {
32033
      if (field == null) {
32034
        throw new IllegalArgumentException();
32035
      }
1846 vikas 32036
 
32037
      switch (field) {
32038
      case ID:
32039
        return isSetId();
32040
      }
32041
      throw new IllegalStateException();
32042
    }
32043
 
32044
    @Override
32045
    public boolean equals(Object that) {
32046
      if (that == null)
32047
        return false;
32048
      if (that instanceof getTrackLogById_args)
32049
        return this.equals((getTrackLogById_args)that);
32050
      return false;
32051
    }
32052
 
32053
    public boolean equals(getTrackLogById_args that) {
32054
      if (that == null)
32055
        return false;
32056
 
32057
      boolean this_present_id = true;
32058
      boolean that_present_id = true;
32059
      if (this_present_id || that_present_id) {
32060
        if (!(this_present_id && that_present_id))
32061
          return false;
32062
        if (this.id != that.id)
32063
          return false;
32064
      }
32065
 
32066
      return true;
32067
    }
32068
 
32069
    @Override
32070
    public int hashCode() {
32071
      return 0;
32072
    }
32073
 
32074
    public int compareTo(getTrackLogById_args other) {
32075
      if (!getClass().equals(other.getClass())) {
32076
        return getClass().getName().compareTo(other.getClass().getName());
32077
      }
32078
 
32079
      int lastComparison = 0;
32080
      getTrackLogById_args typedOther = (getTrackLogById_args)other;
32081
 
3430 rajveer 32082
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 32083
      if (lastComparison != 0) {
32084
        return lastComparison;
32085
      }
3430 rajveer 32086
      if (isSetId()) {
32087
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32088
        if (lastComparison != 0) {
32089
          return lastComparison;
32090
        }
1846 vikas 32091
      }
32092
      return 0;
32093
    }
32094
 
3430 rajveer 32095
    public _Fields fieldForId(int fieldId) {
32096
      return _Fields.findByThriftId(fieldId);
32097
    }
32098
 
32099
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32100
      org.apache.thrift.protocol.TField field;
1846 vikas 32101
      iprot.readStructBegin();
32102
      while (true)
32103
      {
32104
        field = iprot.readFieldBegin();
3430 rajveer 32105
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32106
          break;
32107
        }
3430 rajveer 32108
        switch (field.id) {
32109
          case 1: // ID
32110
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32111
              this.id = iprot.readI64();
32112
              setIdIsSet(true);
32113
            } else { 
32114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32115
            }
32116
            break;
32117
          default:
32118
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32119
        }
3430 rajveer 32120
        iprot.readFieldEnd();
1846 vikas 32121
      }
32122
      iprot.readStructEnd();
32123
      validate();
32124
    }
32125
 
3430 rajveer 32126
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32127
      validate();
32128
 
32129
      oprot.writeStructBegin(STRUCT_DESC);
32130
      oprot.writeFieldBegin(ID_FIELD_DESC);
32131
      oprot.writeI64(this.id);
32132
      oprot.writeFieldEnd();
32133
      oprot.writeFieldStop();
32134
      oprot.writeStructEnd();
32135
    }
32136
 
32137
    @Override
32138
    public String toString() {
32139
      StringBuilder sb = new StringBuilder("getTrackLogById_args(");
32140
      boolean first = true;
32141
 
32142
      sb.append("id:");
32143
      sb.append(this.id);
32144
      first = false;
32145
      sb.append(")");
32146
      return sb.toString();
32147
    }
32148
 
3430 rajveer 32149
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32150
      // check for required fields
32151
    }
32152
 
3430 rajveer 32153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32154
      try {
32155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32156
      } catch (org.apache.thrift.TException te) {
32157
        throw new java.io.IOException(te);
32158
      }
32159
    }
32160
 
32161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32162
      try {
32163
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32164
        __isset_bit_vector = new BitSet(1);
32165
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32166
      } catch (org.apache.thrift.TException te) {
32167
        throw new java.io.IOException(te);
32168
      }
32169
    }
32170
 
1846 vikas 32171
  }
32172
 
3430 rajveer 32173
  public static class getTrackLogById_result implements org.apache.thrift.TBase<getTrackLogById_result, getTrackLogById_result._Fields>, java.io.Serializable, Cloneable   {
32174
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogById_result");
1846 vikas 32175
 
3430 rajveer 32176
    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);
32177
    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 32178
 
3430 rajveer 32179
    private TrackLog success; // required
32180
    private UserAffiliateException utx; // required
1846 vikas 32181
 
32182
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32183
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 32184
      SUCCESS((short)0, "success"),
32185
      UTX((short)1, "utx");
32186
 
32187
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32188
 
32189
      static {
32190
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32191
          byName.put(field.getFieldName(), field);
32192
        }
32193
      }
32194
 
32195
      /**
32196
       * Find the _Fields constant that matches fieldId, or null if its not found.
32197
       */
32198
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32199
        switch(fieldId) {
32200
          case 0: // SUCCESS
32201
            return SUCCESS;
32202
          case 1: // UTX
32203
            return UTX;
32204
          default:
32205
            return null;
32206
        }
1846 vikas 32207
      }
32208
 
32209
      /**
32210
       * Find the _Fields constant that matches fieldId, throwing an exception
32211
       * if it is not found.
32212
       */
32213
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32214
        _Fields fields = findByThriftId(fieldId);
32215
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32216
        return fields;
32217
      }
32218
 
32219
      /**
32220
       * Find the _Fields constant that matches name, or null if its not found.
32221
       */
32222
      public static _Fields findByName(String name) {
32223
        return byName.get(name);
32224
      }
32225
 
32226
      private final short _thriftId;
32227
      private final String _fieldName;
32228
 
32229
      _Fields(short thriftId, String fieldName) {
32230
        _thriftId = thriftId;
32231
        _fieldName = fieldName;
32232
      }
32233
 
32234
      public short getThriftFieldId() {
32235
        return _thriftId;
32236
      }
32237
 
32238
      public String getFieldName() {
32239
        return _fieldName;
32240
      }
32241
    }
32242
 
32243
    // isset id assignments
32244
 
3430 rajveer 32245
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32246
    static {
3430 rajveer 32247
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32248
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32249
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class)));
32250
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogById_result.class, metaDataMap);
1846 vikas 32254
    }
32255
 
32256
    public getTrackLogById_result() {
32257
    }
32258
 
32259
    public getTrackLogById_result(
32260
      TrackLog success,
1998 vikas 32261
      UserAffiliateException utx)
1846 vikas 32262
    {
32263
      this();
32264
      this.success = success;
32265
      this.utx = utx;
32266
    }
32267
 
32268
    /**
32269
     * Performs a deep copy on <i>other</i>.
32270
     */
32271
    public getTrackLogById_result(getTrackLogById_result other) {
32272
      if (other.isSetSuccess()) {
32273
        this.success = new TrackLog(other.success);
32274
      }
32275
      if (other.isSetUtx()) {
1998 vikas 32276
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 32277
      }
32278
    }
32279
 
32280
    public getTrackLogById_result deepCopy() {
32281
      return new getTrackLogById_result(this);
32282
    }
32283
 
3430 rajveer 32284
    @Override
32285
    public void clear() {
32286
      this.success = null;
32287
      this.utx = null;
1846 vikas 32288
    }
32289
 
32290
    public TrackLog getSuccess() {
32291
      return this.success;
32292
    }
32293
 
3430 rajveer 32294
    public void setSuccess(TrackLog success) {
1846 vikas 32295
      this.success = success;
32296
    }
32297
 
32298
    public void unsetSuccess() {
32299
      this.success = null;
32300
    }
32301
 
3430 rajveer 32302
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 32303
    public boolean isSetSuccess() {
32304
      return this.success != null;
32305
    }
32306
 
32307
    public void setSuccessIsSet(boolean value) {
32308
      if (!value) {
32309
        this.success = null;
32310
      }
32311
    }
32312
 
1998 vikas 32313
    public UserAffiliateException getUtx() {
1846 vikas 32314
      return this.utx;
32315
    }
32316
 
3430 rajveer 32317
    public void setUtx(UserAffiliateException utx) {
1846 vikas 32318
      this.utx = utx;
32319
    }
32320
 
32321
    public void unsetUtx() {
32322
      this.utx = null;
32323
    }
32324
 
3430 rajveer 32325
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 32326
    public boolean isSetUtx() {
32327
      return this.utx != null;
32328
    }
32329
 
32330
    public void setUtxIsSet(boolean value) {
32331
      if (!value) {
32332
        this.utx = null;
32333
      }
32334
    }
32335
 
32336
    public void setFieldValue(_Fields field, Object value) {
32337
      switch (field) {
32338
      case SUCCESS:
32339
        if (value == null) {
32340
          unsetSuccess();
32341
        } else {
32342
          setSuccess((TrackLog)value);
32343
        }
32344
        break;
32345
 
32346
      case UTX:
32347
        if (value == null) {
32348
          unsetUtx();
32349
        } else {
1998 vikas 32350
          setUtx((UserAffiliateException)value);
1846 vikas 32351
        }
32352
        break;
32353
 
32354
      }
32355
    }
32356
 
32357
    public Object getFieldValue(_Fields field) {
32358
      switch (field) {
32359
      case SUCCESS:
32360
        return getSuccess();
32361
 
32362
      case UTX:
32363
        return getUtx();
32364
 
32365
      }
32366
      throw new IllegalStateException();
32367
    }
32368
 
3430 rajveer 32369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32370
    public boolean isSet(_Fields field) {
32371
      if (field == null) {
32372
        throw new IllegalArgumentException();
32373
      }
1846 vikas 32374
 
32375
      switch (field) {
32376
      case SUCCESS:
32377
        return isSetSuccess();
32378
      case UTX:
32379
        return isSetUtx();
32380
      }
32381
      throw new IllegalStateException();
32382
    }
32383
 
32384
    @Override
32385
    public boolean equals(Object that) {
32386
      if (that == null)
32387
        return false;
32388
      if (that instanceof getTrackLogById_result)
32389
        return this.equals((getTrackLogById_result)that);
32390
      return false;
32391
    }
32392
 
32393
    public boolean equals(getTrackLogById_result that) {
32394
      if (that == null)
32395
        return false;
32396
 
32397
      boolean this_present_success = true && this.isSetSuccess();
32398
      boolean that_present_success = true && that.isSetSuccess();
32399
      if (this_present_success || that_present_success) {
32400
        if (!(this_present_success && that_present_success))
32401
          return false;
32402
        if (!this.success.equals(that.success))
32403
          return false;
32404
      }
32405
 
32406
      boolean this_present_utx = true && this.isSetUtx();
32407
      boolean that_present_utx = true && that.isSetUtx();
32408
      if (this_present_utx || that_present_utx) {
32409
        if (!(this_present_utx && that_present_utx))
32410
          return false;
32411
        if (!this.utx.equals(that.utx))
32412
          return false;
32413
      }
32414
 
32415
      return true;
32416
    }
32417
 
32418
    @Override
32419
    public int hashCode() {
32420
      return 0;
32421
    }
32422
 
32423
    public int compareTo(getTrackLogById_result other) {
32424
      if (!getClass().equals(other.getClass())) {
32425
        return getClass().getName().compareTo(other.getClass().getName());
32426
      }
32427
 
32428
      int lastComparison = 0;
32429
      getTrackLogById_result typedOther = (getTrackLogById_result)other;
32430
 
3430 rajveer 32431
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 32432
      if (lastComparison != 0) {
32433
        return lastComparison;
32434
      }
3430 rajveer 32435
      if (isSetSuccess()) {
32436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32437
        if (lastComparison != 0) {
32438
          return lastComparison;
32439
        }
1846 vikas 32440
      }
3430 rajveer 32441
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 32442
      if (lastComparison != 0) {
32443
        return lastComparison;
32444
      }
3430 rajveer 32445
      if (isSetUtx()) {
32446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
32447
        if (lastComparison != 0) {
32448
          return lastComparison;
32449
        }
1846 vikas 32450
      }
32451
      return 0;
32452
    }
32453
 
3430 rajveer 32454
    public _Fields fieldForId(int fieldId) {
32455
      return _Fields.findByThriftId(fieldId);
32456
    }
32457
 
32458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32459
      org.apache.thrift.protocol.TField field;
1846 vikas 32460
      iprot.readStructBegin();
32461
      while (true)
32462
      {
32463
        field = iprot.readFieldBegin();
3430 rajveer 32464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32465
          break;
32466
        }
3430 rajveer 32467
        switch (field.id) {
32468
          case 0: // SUCCESS
32469
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32470
              this.success = new TrackLog();
32471
              this.success.read(iprot);
32472
            } else { 
32473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32474
            }
32475
            break;
32476
          case 1: // UTX
32477
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32478
              this.utx = new UserAffiliateException();
32479
              this.utx.read(iprot);
32480
            } else { 
32481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32482
            }
32483
            break;
32484
          default:
32485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32486
        }
3430 rajveer 32487
        iprot.readFieldEnd();
1846 vikas 32488
      }
32489
      iprot.readStructEnd();
32490
      validate();
32491
    }
32492
 
3430 rajveer 32493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32494
      oprot.writeStructBegin(STRUCT_DESC);
32495
 
32496
      if (this.isSetSuccess()) {
32497
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32498
        this.success.write(oprot);
32499
        oprot.writeFieldEnd();
32500
      } else if (this.isSetUtx()) {
32501
        oprot.writeFieldBegin(UTX_FIELD_DESC);
32502
        this.utx.write(oprot);
32503
        oprot.writeFieldEnd();
32504
      }
32505
      oprot.writeFieldStop();
32506
      oprot.writeStructEnd();
32507
    }
32508
 
32509
    @Override
32510
    public String toString() {
32511
      StringBuilder sb = new StringBuilder("getTrackLogById_result(");
32512
      boolean first = true;
32513
 
32514
      sb.append("success:");
32515
      if (this.success == null) {
32516
        sb.append("null");
32517
      } else {
32518
        sb.append(this.success);
32519
      }
32520
      first = false;
32521
      if (!first) sb.append(", ");
32522
      sb.append("utx:");
32523
      if (this.utx == null) {
32524
        sb.append("null");
32525
      } else {
32526
        sb.append(this.utx);
32527
      }
32528
      first = false;
32529
      sb.append(")");
32530
      return sb.toString();
32531
    }
32532
 
3430 rajveer 32533
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32534
      // check for required fields
32535
    }
32536
 
3430 rajveer 32537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32538
      try {
32539
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32540
      } catch (org.apache.thrift.TException te) {
32541
        throw new java.io.IOException(te);
32542
      }
32543
    }
32544
 
32545
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32546
      try {
32547
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32548
      } catch (org.apache.thrift.TException te) {
32549
        throw new java.io.IOException(te);
32550
      }
32551
    }
32552
 
1846 vikas 32553
  }
32554
 
3430 rajveer 32555
  public static class getTrackLogsByAffiliate_args implements org.apache.thrift.TBase<getTrackLogsByAffiliate_args, getTrackLogsByAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
32556
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByAffiliate_args");
1846 vikas 32557
 
3430 rajveer 32558
    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);
32559
    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);
32560
    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 32561
 
3430 rajveer 32562
    private long affiliateId; // required
32563
    private long startDate; // required
32564
    private long endDate; // required
1846 vikas 32565
 
32566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3293 vikas 32568
      AFFILIATE_ID((short)1, "affiliateId"),
32569
      START_DATE((short)2, "startDate"),
32570
      END_DATE((short)3, "endDate");
1846 vikas 32571
 
32572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32573
 
32574
      static {
32575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32576
          byName.put(field.getFieldName(), field);
32577
        }
32578
      }
32579
 
32580
      /**
32581
       * Find the _Fields constant that matches fieldId, or null if its not found.
32582
       */
32583
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32584
        switch(fieldId) {
32585
          case 1: // AFFILIATE_ID
32586
            return AFFILIATE_ID;
32587
          case 2: // START_DATE
32588
            return START_DATE;
32589
          case 3: // END_DATE
32590
            return END_DATE;
32591
          default:
32592
            return null;
32593
        }
1846 vikas 32594
      }
32595
 
32596
      /**
32597
       * Find the _Fields constant that matches fieldId, throwing an exception
32598
       * if it is not found.
32599
       */
32600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32601
        _Fields fields = findByThriftId(fieldId);
32602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32603
        return fields;
32604
      }
32605
 
32606
      /**
32607
       * Find the _Fields constant that matches name, or null if its not found.
32608
       */
32609
      public static _Fields findByName(String name) {
32610
        return byName.get(name);
32611
      }
32612
 
32613
      private final short _thriftId;
32614
      private final String _fieldName;
32615
 
32616
      _Fields(short thriftId, String fieldName) {
32617
        _thriftId = thriftId;
32618
        _fieldName = fieldName;
32619
      }
32620
 
32621
      public short getThriftFieldId() {
32622
        return _thriftId;
32623
      }
32624
 
32625
      public String getFieldName() {
32626
        return _fieldName;
32627
      }
32628
    }
32629
 
32630
    // isset id assignments
1998 vikas 32631
    private static final int __AFFILIATEID_ISSET_ID = 0;
3293 vikas 32632
    private static final int __STARTDATE_ISSET_ID = 1;
32633
    private static final int __ENDDATE_ISSET_ID = 2;
32634
    private BitSet __isset_bit_vector = new BitSet(3);
1846 vikas 32635
 
3430 rajveer 32636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32637
    static {
3430 rajveer 32638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32639
      tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32641
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32643
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByAffiliate_args.class, metaDataMap);
1846 vikas 32647
    }
32648
 
1998 vikas 32649
    public getTrackLogsByAffiliate_args() {
1846 vikas 32650
    }
32651
 
1998 vikas 32652
    public getTrackLogsByAffiliate_args(
3293 vikas 32653
      long affiliateId,
32654
      long startDate,
32655
      long endDate)
1846 vikas 32656
    {
32657
      this();
1998 vikas 32658
      this.affiliateId = affiliateId;
32659
      setAffiliateIdIsSet(true);
3293 vikas 32660
      this.startDate = startDate;
32661
      setStartDateIsSet(true);
32662
      this.endDate = endDate;
32663
      setEndDateIsSet(true);
1846 vikas 32664
    }
32665
 
32666
    /**
32667
     * Performs a deep copy on <i>other</i>.
32668
     */
1998 vikas 32669
    public getTrackLogsByAffiliate_args(getTrackLogsByAffiliate_args other) {
1846 vikas 32670
      __isset_bit_vector.clear();
32671
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 32672
      this.affiliateId = other.affiliateId;
3293 vikas 32673
      this.startDate = other.startDate;
32674
      this.endDate = other.endDate;
1846 vikas 32675
    }
32676
 
1998 vikas 32677
    public getTrackLogsByAffiliate_args deepCopy() {
32678
      return new getTrackLogsByAffiliate_args(this);
1846 vikas 32679
    }
32680
 
3430 rajveer 32681
    @Override
32682
    public void clear() {
32683
      setAffiliateIdIsSet(false);
32684
      this.affiliateId = 0;
32685
      setStartDateIsSet(false);
32686
      this.startDate = 0;
32687
      setEndDateIsSet(false);
32688
      this.endDate = 0;
1846 vikas 32689
    }
32690
 
1998 vikas 32691
    public long getAffiliateId() {
32692
      return this.affiliateId;
1846 vikas 32693
    }
32694
 
3430 rajveer 32695
    public void setAffiliateId(long affiliateId) {
1998 vikas 32696
      this.affiliateId = affiliateId;
32697
      setAffiliateIdIsSet(true);
1846 vikas 32698
    }
32699
 
1998 vikas 32700
    public void unsetAffiliateId() {
32701
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
1846 vikas 32702
    }
32703
 
3430 rajveer 32704
    /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
1998 vikas 32705
    public boolean isSetAffiliateId() {
32706
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
1846 vikas 32707
    }
32708
 
1998 vikas 32709
    public void setAffiliateIdIsSet(boolean value) {
32710
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
1846 vikas 32711
    }
32712
 
3293 vikas 32713
    public long getStartDate() {
32714
      return this.startDate;
32715
    }
32716
 
3430 rajveer 32717
    public void setStartDate(long startDate) {
3293 vikas 32718
      this.startDate = startDate;
32719
      setStartDateIsSet(true);
32720
    }
32721
 
32722
    public void unsetStartDate() {
32723
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
32724
    }
32725
 
3430 rajveer 32726
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
3293 vikas 32727
    public boolean isSetStartDate() {
32728
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
32729
    }
32730
 
32731
    public void setStartDateIsSet(boolean value) {
32732
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
32733
    }
32734
 
32735
    public long getEndDate() {
32736
      return this.endDate;
32737
    }
32738
 
3430 rajveer 32739
    public void setEndDate(long endDate) {
3293 vikas 32740
      this.endDate = endDate;
32741
      setEndDateIsSet(true);
32742
    }
32743
 
32744
    public void unsetEndDate() {
32745
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
32746
    }
32747
 
3430 rajveer 32748
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
3293 vikas 32749
    public boolean isSetEndDate() {
32750
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
32751
    }
32752
 
32753
    public void setEndDateIsSet(boolean value) {
32754
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
32755
    }
32756
 
1846 vikas 32757
    public void setFieldValue(_Fields field, Object value) {
32758
      switch (field) {
1998 vikas 32759
      case AFFILIATE_ID:
1846 vikas 32760
        if (value == null) {
1998 vikas 32761
          unsetAffiliateId();
1846 vikas 32762
        } else {
1998 vikas 32763
          setAffiliateId((Long)value);
1846 vikas 32764
        }
32765
        break;
32766
 
3293 vikas 32767
      case START_DATE:
32768
        if (value == null) {
32769
          unsetStartDate();
32770
        } else {
32771
          setStartDate((Long)value);
32772
        }
32773
        break;
32774
 
32775
      case END_DATE:
32776
        if (value == null) {
32777
          unsetEndDate();
32778
        } else {
32779
          setEndDate((Long)value);
32780
        }
32781
        break;
32782
 
1846 vikas 32783
      }
32784
    }
32785
 
32786
    public Object getFieldValue(_Fields field) {
32787
      switch (field) {
1998 vikas 32788
      case AFFILIATE_ID:
3430 rajveer 32789
        return Long.valueOf(getAffiliateId());
1846 vikas 32790
 
3293 vikas 32791
      case START_DATE:
3430 rajveer 32792
        return Long.valueOf(getStartDate());
3293 vikas 32793
 
32794
      case END_DATE:
3430 rajveer 32795
        return Long.valueOf(getEndDate());
3293 vikas 32796
 
1846 vikas 32797
      }
32798
      throw new IllegalStateException();
32799
    }
32800
 
3430 rajveer 32801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32802
    public boolean isSet(_Fields field) {
32803
      if (field == null) {
32804
        throw new IllegalArgumentException();
32805
      }
1846 vikas 32806
 
32807
      switch (field) {
1998 vikas 32808
      case AFFILIATE_ID:
32809
        return isSetAffiliateId();
3293 vikas 32810
      case START_DATE:
32811
        return isSetStartDate();
32812
      case END_DATE:
32813
        return isSetEndDate();
1846 vikas 32814
      }
32815
      throw new IllegalStateException();
32816
    }
32817
 
32818
    @Override
32819
    public boolean equals(Object that) {
32820
      if (that == null)
32821
        return false;
1998 vikas 32822
      if (that instanceof getTrackLogsByAffiliate_args)
32823
        return this.equals((getTrackLogsByAffiliate_args)that);
1846 vikas 32824
      return false;
32825
    }
32826
 
1998 vikas 32827
    public boolean equals(getTrackLogsByAffiliate_args that) {
1846 vikas 32828
      if (that == null)
32829
        return false;
32830
 
1998 vikas 32831
      boolean this_present_affiliateId = true;
32832
      boolean that_present_affiliateId = true;
32833
      if (this_present_affiliateId || that_present_affiliateId) {
32834
        if (!(this_present_affiliateId && that_present_affiliateId))
1846 vikas 32835
          return false;
1998 vikas 32836
        if (this.affiliateId != that.affiliateId)
1846 vikas 32837
          return false;
32838
      }
32839
 
3293 vikas 32840
      boolean this_present_startDate = true;
32841
      boolean that_present_startDate = true;
32842
      if (this_present_startDate || that_present_startDate) {
32843
        if (!(this_present_startDate && that_present_startDate))
32844
          return false;
32845
        if (this.startDate != that.startDate)
32846
          return false;
32847
      }
32848
 
32849
      boolean this_present_endDate = true;
32850
      boolean that_present_endDate = true;
32851
      if (this_present_endDate || that_present_endDate) {
32852
        if (!(this_present_endDate && that_present_endDate))
32853
          return false;
32854
        if (this.endDate != that.endDate)
32855
          return false;
32856
      }
32857
 
1846 vikas 32858
      return true;
32859
    }
32860
 
32861
    @Override
32862
    public int hashCode() {
32863
      return 0;
32864
    }
32865
 
1998 vikas 32866
    public int compareTo(getTrackLogsByAffiliate_args other) {
1846 vikas 32867
      if (!getClass().equals(other.getClass())) {
32868
        return getClass().getName().compareTo(other.getClass().getName());
32869
      }
32870
 
32871
      int lastComparison = 0;
1998 vikas 32872
      getTrackLogsByAffiliate_args typedOther = (getTrackLogsByAffiliate_args)other;
1846 vikas 32873
 
3430 rajveer 32874
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
1846 vikas 32875
      if (lastComparison != 0) {
32876
        return lastComparison;
32877
      }
3430 rajveer 32878
      if (isSetAffiliateId()) {
32879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
32880
        if (lastComparison != 0) {
32881
          return lastComparison;
32882
        }
1846 vikas 32883
      }
3430 rajveer 32884
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
3293 vikas 32885
      if (lastComparison != 0) {
32886
        return lastComparison;
32887
      }
3430 rajveer 32888
      if (isSetStartDate()) {
32889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
32890
        if (lastComparison != 0) {
32891
          return lastComparison;
32892
        }
3293 vikas 32893
      }
3430 rajveer 32894
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
3293 vikas 32895
      if (lastComparison != 0) {
32896
        return lastComparison;
32897
      }
3430 rajveer 32898
      if (isSetEndDate()) {
32899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
32900
        if (lastComparison != 0) {
32901
          return lastComparison;
32902
        }
3293 vikas 32903
      }
1846 vikas 32904
      return 0;
32905
    }
32906
 
3430 rajveer 32907
    public _Fields fieldForId(int fieldId) {
32908
      return _Fields.findByThriftId(fieldId);
32909
    }
32910
 
32911
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32912
      org.apache.thrift.protocol.TField field;
1846 vikas 32913
      iprot.readStructBegin();
32914
      while (true)
32915
      {
32916
        field = iprot.readFieldBegin();
3430 rajveer 32917
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32918
          break;
32919
        }
3430 rajveer 32920
        switch (field.id) {
32921
          case 1: // AFFILIATE_ID
32922
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32923
              this.affiliateId = iprot.readI64();
32924
              setAffiliateIdIsSet(true);
32925
            } else { 
32926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32927
            }
32928
            break;
32929
          case 2: // START_DATE
32930
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32931
              this.startDate = iprot.readI64();
32932
              setStartDateIsSet(true);
32933
            } else { 
32934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32935
            }
32936
            break;
32937
          case 3: // END_DATE
32938
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32939
              this.endDate = iprot.readI64();
32940
              setEndDateIsSet(true);
32941
            } else { 
32942
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32943
            }
32944
            break;
32945
          default:
32946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32947
        }
3430 rajveer 32948
        iprot.readFieldEnd();
1846 vikas 32949
      }
32950
      iprot.readStructEnd();
32951
      validate();
32952
    }
32953
 
3430 rajveer 32954
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32955
      validate();
32956
 
32957
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 32958
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
32959
      oprot.writeI64(this.affiliateId);
1846 vikas 32960
      oprot.writeFieldEnd();
3293 vikas 32961
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
32962
      oprot.writeI64(this.startDate);
32963
      oprot.writeFieldEnd();
32964
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
32965
      oprot.writeI64(this.endDate);
32966
      oprot.writeFieldEnd();
1846 vikas 32967
      oprot.writeFieldStop();
32968
      oprot.writeStructEnd();
32969
    }
32970
 
32971
    @Override
32972
    public String toString() {
1998 vikas 32973
      StringBuilder sb = new StringBuilder("getTrackLogsByAffiliate_args(");
1846 vikas 32974
      boolean first = true;
32975
 
1998 vikas 32976
      sb.append("affiliateId:");
32977
      sb.append(this.affiliateId);
1846 vikas 32978
      first = false;
3293 vikas 32979
      if (!first) sb.append(", ");
32980
      sb.append("startDate:");
32981
      sb.append(this.startDate);
32982
      first = false;
32983
      if (!first) sb.append(", ");
32984
      sb.append("endDate:");
32985
      sb.append(this.endDate);
32986
      first = false;
1846 vikas 32987
      sb.append(")");
32988
      return sb.toString();
32989
    }
32990
 
3430 rajveer 32991
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32992
      // check for required fields
32993
    }
32994
 
3430 rajveer 32995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32996
      try {
32997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32998
      } catch (org.apache.thrift.TException te) {
32999
        throw new java.io.IOException(te);
33000
      }
33001
    }
33002
 
33003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33004
      try {
33005
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33006
        __isset_bit_vector = new BitSet(1);
33007
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33008
      } catch (org.apache.thrift.TException te) {
33009
        throw new java.io.IOException(te);
33010
      }
33011
    }
33012
 
1846 vikas 33013
  }
33014
 
3430 rajveer 33015
  public static class getTrackLogsByAffiliate_result implements org.apache.thrift.TBase<getTrackLogsByAffiliate_result, getTrackLogsByAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
33016
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByAffiliate_result");
1846 vikas 33017
 
3430 rajveer 33018
    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);
33019
    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 33020
 
3430 rajveer 33021
    private List<TrackLog> success; // required
33022
    private UserAffiliateException utx; // required
1846 vikas 33023
 
33024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33026
      SUCCESS((short)0, "success"),
33027
      UTX((short)1, "utx");
33028
 
33029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33030
 
33031
      static {
33032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33033
          byName.put(field.getFieldName(), field);
33034
        }
33035
      }
33036
 
33037
      /**
33038
       * Find the _Fields constant that matches fieldId, or null if its not found.
33039
       */
33040
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33041
        switch(fieldId) {
33042
          case 0: // SUCCESS
33043
            return SUCCESS;
33044
          case 1: // UTX
33045
            return UTX;
33046
          default:
33047
            return null;
33048
        }
1846 vikas 33049
      }
33050
 
33051
      /**
33052
       * Find the _Fields constant that matches fieldId, throwing an exception
33053
       * if it is not found.
33054
       */
33055
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33056
        _Fields fields = findByThriftId(fieldId);
33057
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33058
        return fields;
33059
      }
33060
 
33061
      /**
33062
       * Find the _Fields constant that matches name, or null if its not found.
33063
       */
33064
      public static _Fields findByName(String name) {
33065
        return byName.get(name);
33066
      }
33067
 
33068
      private final short _thriftId;
33069
      private final String _fieldName;
33070
 
33071
      _Fields(short thriftId, String fieldName) {
33072
        _thriftId = thriftId;
33073
        _fieldName = fieldName;
33074
      }
33075
 
33076
      public short getThriftFieldId() {
33077
        return _thriftId;
33078
      }
33079
 
33080
      public String getFieldName() {
33081
        return _fieldName;
33082
      }
33083
    }
33084
 
33085
    // isset id assignments
33086
 
3430 rajveer 33087
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33088
    static {
3430 rajveer 33089
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33090
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33091
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33092
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
33093
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByAffiliate_result.class, metaDataMap);
1846 vikas 33097
    }
33098
 
1998 vikas 33099
    public getTrackLogsByAffiliate_result() {
1846 vikas 33100
    }
33101
 
1998 vikas 33102
    public getTrackLogsByAffiliate_result(
1846 vikas 33103
      List<TrackLog> success,
1998 vikas 33104
      UserAffiliateException utx)
1846 vikas 33105
    {
33106
      this();
33107
      this.success = success;
33108
      this.utx = utx;
33109
    }
33110
 
33111
    /**
33112
     * Performs a deep copy on <i>other</i>.
33113
     */
1998 vikas 33114
    public getTrackLogsByAffiliate_result(getTrackLogsByAffiliate_result other) {
1846 vikas 33115
      if (other.isSetSuccess()) {
33116
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
33117
        for (TrackLog other_element : other.success) {
33118
          __this__success.add(new TrackLog(other_element));
33119
        }
33120
        this.success = __this__success;
33121
      }
33122
      if (other.isSetUtx()) {
1998 vikas 33123
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 33124
      }
33125
    }
33126
 
1998 vikas 33127
    public getTrackLogsByAffiliate_result deepCopy() {
33128
      return new getTrackLogsByAffiliate_result(this);
1846 vikas 33129
    }
33130
 
3430 rajveer 33131
    @Override
33132
    public void clear() {
33133
      this.success = null;
33134
      this.utx = null;
1846 vikas 33135
    }
33136
 
33137
    public int getSuccessSize() {
33138
      return (this.success == null) ? 0 : this.success.size();
33139
    }
33140
 
33141
    public java.util.Iterator<TrackLog> getSuccessIterator() {
33142
      return (this.success == null) ? null : this.success.iterator();
33143
    }
33144
 
33145
    public void addToSuccess(TrackLog elem) {
33146
      if (this.success == null) {
33147
        this.success = new ArrayList<TrackLog>();
33148
      }
33149
      this.success.add(elem);
33150
    }
33151
 
33152
    public List<TrackLog> getSuccess() {
33153
      return this.success;
33154
    }
33155
 
3430 rajveer 33156
    public void setSuccess(List<TrackLog> success) {
1846 vikas 33157
      this.success = success;
33158
    }
33159
 
33160
    public void unsetSuccess() {
33161
      this.success = null;
33162
    }
33163
 
3430 rajveer 33164
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 33165
    public boolean isSetSuccess() {
33166
      return this.success != null;
33167
    }
33168
 
33169
    public void setSuccessIsSet(boolean value) {
33170
      if (!value) {
33171
        this.success = null;
33172
      }
33173
    }
33174
 
1998 vikas 33175
    public UserAffiliateException getUtx() {
1846 vikas 33176
      return this.utx;
33177
    }
33178
 
3430 rajveer 33179
    public void setUtx(UserAffiliateException utx) {
1846 vikas 33180
      this.utx = utx;
33181
    }
33182
 
33183
    public void unsetUtx() {
33184
      this.utx = null;
33185
    }
33186
 
3430 rajveer 33187
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 33188
    public boolean isSetUtx() {
33189
      return this.utx != null;
33190
    }
33191
 
33192
    public void setUtxIsSet(boolean value) {
33193
      if (!value) {
33194
        this.utx = null;
33195
      }
33196
    }
33197
 
33198
    public void setFieldValue(_Fields field, Object value) {
33199
      switch (field) {
33200
      case SUCCESS:
33201
        if (value == null) {
33202
          unsetSuccess();
33203
        } else {
33204
          setSuccess((List<TrackLog>)value);
33205
        }
33206
        break;
33207
 
33208
      case UTX:
33209
        if (value == null) {
33210
          unsetUtx();
33211
        } else {
1998 vikas 33212
          setUtx((UserAffiliateException)value);
1846 vikas 33213
        }
33214
        break;
33215
 
33216
      }
33217
    }
33218
 
33219
    public Object getFieldValue(_Fields field) {
33220
      switch (field) {
33221
      case SUCCESS:
33222
        return getSuccess();
33223
 
33224
      case UTX:
33225
        return getUtx();
33226
 
33227
      }
33228
      throw new IllegalStateException();
33229
    }
33230
 
3430 rajveer 33231
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33232
    public boolean isSet(_Fields field) {
33233
      if (field == null) {
33234
        throw new IllegalArgumentException();
33235
      }
1846 vikas 33236
 
33237
      switch (field) {
33238
      case SUCCESS:
33239
        return isSetSuccess();
33240
      case UTX:
33241
        return isSetUtx();
33242
      }
33243
      throw new IllegalStateException();
33244
    }
33245
 
33246
    @Override
33247
    public boolean equals(Object that) {
33248
      if (that == null)
33249
        return false;
1998 vikas 33250
      if (that instanceof getTrackLogsByAffiliate_result)
33251
        return this.equals((getTrackLogsByAffiliate_result)that);
1846 vikas 33252
      return false;
33253
    }
33254
 
1998 vikas 33255
    public boolean equals(getTrackLogsByAffiliate_result that) {
1846 vikas 33256
      if (that == null)
33257
        return false;
33258
 
33259
      boolean this_present_success = true && this.isSetSuccess();
33260
      boolean that_present_success = true && that.isSetSuccess();
33261
      if (this_present_success || that_present_success) {
33262
        if (!(this_present_success && that_present_success))
33263
          return false;
33264
        if (!this.success.equals(that.success))
33265
          return false;
33266
      }
33267
 
33268
      boolean this_present_utx = true && this.isSetUtx();
33269
      boolean that_present_utx = true && that.isSetUtx();
33270
      if (this_present_utx || that_present_utx) {
33271
        if (!(this_present_utx && that_present_utx))
33272
          return false;
33273
        if (!this.utx.equals(that.utx))
33274
          return false;
33275
      }
33276
 
33277
      return true;
33278
    }
33279
 
33280
    @Override
33281
    public int hashCode() {
33282
      return 0;
33283
    }
33284
 
1998 vikas 33285
    public int compareTo(getTrackLogsByAffiliate_result other) {
1846 vikas 33286
      if (!getClass().equals(other.getClass())) {
33287
        return getClass().getName().compareTo(other.getClass().getName());
33288
      }
33289
 
33290
      int lastComparison = 0;
1998 vikas 33291
      getTrackLogsByAffiliate_result typedOther = (getTrackLogsByAffiliate_result)other;
1846 vikas 33292
 
3430 rajveer 33293
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 33294
      if (lastComparison != 0) {
33295
        return lastComparison;
33296
      }
3430 rajveer 33297
      if (isSetSuccess()) {
33298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33299
        if (lastComparison != 0) {
33300
          return lastComparison;
33301
        }
1846 vikas 33302
      }
3430 rajveer 33303
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 33304
      if (lastComparison != 0) {
33305
        return lastComparison;
33306
      }
3430 rajveer 33307
      if (isSetUtx()) {
33308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
33309
        if (lastComparison != 0) {
33310
          return lastComparison;
33311
        }
1846 vikas 33312
      }
33313
      return 0;
33314
    }
33315
 
3430 rajveer 33316
    public _Fields fieldForId(int fieldId) {
33317
      return _Fields.findByThriftId(fieldId);
33318
    }
33319
 
33320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33321
      org.apache.thrift.protocol.TField field;
1846 vikas 33322
      iprot.readStructBegin();
33323
      while (true)
33324
      {
33325
        field = iprot.readFieldBegin();
3430 rajveer 33326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33327
          break;
33328
        }
3430 rajveer 33329
        switch (field.id) {
33330
          case 0: // SUCCESS
33331
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33332
              {
33333
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
33334
                this.success = new ArrayList<TrackLog>(_list40.size);
33335
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1846 vikas 33336
                {
3430 rajveer 33337
                  TrackLog _elem42; // required
33338
                  _elem42 = new TrackLog();
33339
                  _elem42.read(iprot);
33340
                  this.success.add(_elem42);
1846 vikas 33341
                }
3430 rajveer 33342
                iprot.readListEnd();
1846 vikas 33343
              }
3430 rajveer 33344
            } else { 
33345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33346
            }
33347
            break;
33348
          case 1: // UTX
33349
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33350
              this.utx = new UserAffiliateException();
33351
              this.utx.read(iprot);
33352
            } else { 
33353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33354
            }
33355
            break;
33356
          default:
33357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33358
        }
3430 rajveer 33359
        iprot.readFieldEnd();
1846 vikas 33360
      }
33361
      iprot.readStructEnd();
33362
      validate();
33363
    }
33364
 
3430 rajveer 33365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33366
      oprot.writeStructBegin(STRUCT_DESC);
33367
 
33368
      if (this.isSetSuccess()) {
33369
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33370
        {
3430 rajveer 33371
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 33372
          for (TrackLog _iter43 : this.success)
1846 vikas 33373
          {
3385 varun.gupt 33374
            _iter43.write(oprot);
1846 vikas 33375
          }
33376
          oprot.writeListEnd();
33377
        }
33378
        oprot.writeFieldEnd();
33379
      } else if (this.isSetUtx()) {
33380
        oprot.writeFieldBegin(UTX_FIELD_DESC);
33381
        this.utx.write(oprot);
33382
        oprot.writeFieldEnd();
33383
      }
33384
      oprot.writeFieldStop();
33385
      oprot.writeStructEnd();
33386
    }
33387
 
33388
    @Override
33389
    public String toString() {
1998 vikas 33390
      StringBuilder sb = new StringBuilder("getTrackLogsByAffiliate_result(");
1846 vikas 33391
      boolean first = true;
33392
 
33393
      sb.append("success:");
33394
      if (this.success == null) {
33395
        sb.append("null");
33396
      } else {
33397
        sb.append(this.success);
33398
      }
33399
      first = false;
33400
      if (!first) sb.append(", ");
33401
      sb.append("utx:");
33402
      if (this.utx == null) {
33403
        sb.append("null");
33404
      } else {
33405
        sb.append(this.utx);
33406
      }
33407
      first = false;
33408
      sb.append(")");
33409
      return sb.toString();
33410
    }
33411
 
3430 rajveer 33412
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33413
      // check for required fields
33414
    }
33415
 
3430 rajveer 33416
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33417
      try {
33418
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33419
      } catch (org.apache.thrift.TException te) {
33420
        throw new java.io.IOException(te);
33421
      }
33422
    }
33423
 
33424
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33425
      try {
33426
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33427
      } catch (org.apache.thrift.TException te) {
33428
        throw new java.io.IOException(te);
33429
      }
33430
    }
33431
 
1846 vikas 33432
  }
33433
 
3430 rajveer 33434
  public static class getTrackLogsByUser_args implements org.apache.thrift.TBase<getTrackLogsByUser_args, getTrackLogsByUser_args._Fields>, java.io.Serializable, Cloneable   {
33435
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByUser_args");
1846 vikas 33436
 
3430 rajveer 33437
    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 33438
 
3430 rajveer 33439
    private long userId; // required
1846 vikas 33440
 
33441
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33442
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33443
      USER_ID((short)1, "userId");
33444
 
33445
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33446
 
33447
      static {
33448
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33449
          byName.put(field.getFieldName(), field);
33450
        }
33451
      }
33452
 
33453
      /**
33454
       * Find the _Fields constant that matches fieldId, or null if its not found.
33455
       */
33456
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33457
        switch(fieldId) {
33458
          case 1: // USER_ID
33459
            return USER_ID;
33460
          default:
33461
            return null;
33462
        }
1846 vikas 33463
      }
33464
 
33465
      /**
33466
       * Find the _Fields constant that matches fieldId, throwing an exception
33467
       * if it is not found.
33468
       */
33469
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33470
        _Fields fields = findByThriftId(fieldId);
33471
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33472
        return fields;
33473
      }
33474
 
33475
      /**
33476
       * Find the _Fields constant that matches name, or null if its not found.
33477
       */
33478
      public static _Fields findByName(String name) {
33479
        return byName.get(name);
33480
      }
33481
 
33482
      private final short _thriftId;
33483
      private final String _fieldName;
33484
 
33485
      _Fields(short thriftId, String fieldName) {
33486
        _thriftId = thriftId;
33487
        _fieldName = fieldName;
33488
      }
33489
 
33490
      public short getThriftFieldId() {
33491
        return _thriftId;
33492
      }
33493
 
33494
      public String getFieldName() {
33495
        return _fieldName;
33496
      }
33497
    }
33498
 
33499
    // isset id assignments
33500
    private static final int __USERID_ISSET_ID = 0;
33501
    private BitSet __isset_bit_vector = new BitSet(1);
33502
 
3430 rajveer 33503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33504
    static {
3430 rajveer 33505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33506
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_args.class, metaDataMap);
1846 vikas 33510
    }
33511
 
33512
    public getTrackLogsByUser_args() {
33513
    }
33514
 
33515
    public getTrackLogsByUser_args(
33516
      long userId)
33517
    {
33518
      this();
33519
      this.userId = userId;
33520
      setUserIdIsSet(true);
33521
    }
33522
 
33523
    /**
33524
     * Performs a deep copy on <i>other</i>.
33525
     */
33526
    public getTrackLogsByUser_args(getTrackLogsByUser_args other) {
33527
      __isset_bit_vector.clear();
33528
      __isset_bit_vector.or(other.__isset_bit_vector);
33529
      this.userId = other.userId;
33530
    }
33531
 
33532
    public getTrackLogsByUser_args deepCopy() {
33533
      return new getTrackLogsByUser_args(this);
33534
    }
33535
 
3430 rajveer 33536
    @Override
33537
    public void clear() {
33538
      setUserIdIsSet(false);
33539
      this.userId = 0;
1846 vikas 33540
    }
33541
 
33542
    public long getUserId() {
33543
      return this.userId;
33544
    }
33545
 
3430 rajveer 33546
    public void setUserId(long userId) {
1846 vikas 33547
      this.userId = userId;
33548
      setUserIdIsSet(true);
33549
    }
33550
 
33551
    public void unsetUserId() {
33552
      __isset_bit_vector.clear(__USERID_ISSET_ID);
33553
    }
33554
 
3430 rajveer 33555
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 33556
    public boolean isSetUserId() {
33557
      return __isset_bit_vector.get(__USERID_ISSET_ID);
33558
    }
33559
 
33560
    public void setUserIdIsSet(boolean value) {
33561
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
33562
    }
33563
 
33564
    public void setFieldValue(_Fields field, Object value) {
33565
      switch (field) {
33566
      case USER_ID:
33567
        if (value == null) {
33568
          unsetUserId();
33569
        } else {
33570
          setUserId((Long)value);
33571
        }
33572
        break;
33573
 
33574
      }
33575
    }
33576
 
33577
    public Object getFieldValue(_Fields field) {
33578
      switch (field) {
33579
      case USER_ID:
3430 rajveer 33580
        return Long.valueOf(getUserId());
1846 vikas 33581
 
33582
      }
33583
      throw new IllegalStateException();
33584
    }
33585
 
3430 rajveer 33586
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33587
    public boolean isSet(_Fields field) {
33588
      if (field == null) {
33589
        throw new IllegalArgumentException();
33590
      }
1846 vikas 33591
 
33592
      switch (field) {
33593
      case USER_ID:
33594
        return isSetUserId();
33595
      }
33596
      throw new IllegalStateException();
33597
    }
33598
 
33599
    @Override
33600
    public boolean equals(Object that) {
33601
      if (that == null)
33602
        return false;
33603
      if (that instanceof getTrackLogsByUser_args)
33604
        return this.equals((getTrackLogsByUser_args)that);
33605
      return false;
33606
    }
33607
 
33608
    public boolean equals(getTrackLogsByUser_args that) {
33609
      if (that == null)
33610
        return false;
33611
 
33612
      boolean this_present_userId = true;
33613
      boolean that_present_userId = true;
33614
      if (this_present_userId || that_present_userId) {
33615
        if (!(this_present_userId && that_present_userId))
33616
          return false;
33617
        if (this.userId != that.userId)
33618
          return false;
33619
      }
33620
 
33621
      return true;
33622
    }
33623
 
33624
    @Override
33625
    public int hashCode() {
33626
      return 0;
33627
    }
33628
 
33629
    public int compareTo(getTrackLogsByUser_args other) {
33630
      if (!getClass().equals(other.getClass())) {
33631
        return getClass().getName().compareTo(other.getClass().getName());
33632
      }
33633
 
33634
      int lastComparison = 0;
33635
      getTrackLogsByUser_args typedOther = (getTrackLogsByUser_args)other;
33636
 
3430 rajveer 33637
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 33638
      if (lastComparison != 0) {
33639
        return lastComparison;
33640
      }
3430 rajveer 33641
      if (isSetUserId()) {
33642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
33643
        if (lastComparison != 0) {
33644
          return lastComparison;
33645
        }
1846 vikas 33646
      }
33647
      return 0;
33648
    }
33649
 
3430 rajveer 33650
    public _Fields fieldForId(int fieldId) {
33651
      return _Fields.findByThriftId(fieldId);
33652
    }
33653
 
33654
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33655
      org.apache.thrift.protocol.TField field;
1846 vikas 33656
      iprot.readStructBegin();
33657
      while (true)
33658
      {
33659
        field = iprot.readFieldBegin();
3430 rajveer 33660
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33661
          break;
33662
        }
3430 rajveer 33663
        switch (field.id) {
33664
          case 1: // USER_ID
33665
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33666
              this.userId = iprot.readI64();
33667
              setUserIdIsSet(true);
33668
            } else { 
33669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33670
            }
33671
            break;
33672
          default:
33673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33674
        }
3430 rajveer 33675
        iprot.readFieldEnd();
1846 vikas 33676
      }
33677
      iprot.readStructEnd();
33678
      validate();
33679
    }
33680
 
3430 rajveer 33681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33682
      validate();
33683
 
33684
      oprot.writeStructBegin(STRUCT_DESC);
33685
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
33686
      oprot.writeI64(this.userId);
33687
      oprot.writeFieldEnd();
33688
      oprot.writeFieldStop();
33689
      oprot.writeStructEnd();
33690
    }
33691
 
33692
    @Override
33693
    public String toString() {
33694
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_args(");
33695
      boolean first = true;
33696
 
33697
      sb.append("userId:");
33698
      sb.append(this.userId);
33699
      first = false;
33700
      sb.append(")");
33701
      return sb.toString();
33702
    }
33703
 
3430 rajveer 33704
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33705
      // check for required fields
33706
    }
33707
 
3430 rajveer 33708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33709
      try {
33710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33711
      } catch (org.apache.thrift.TException te) {
33712
        throw new java.io.IOException(te);
33713
      }
33714
    }
33715
 
33716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33717
      try {
33718
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33719
        __isset_bit_vector = new BitSet(1);
33720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33721
      } catch (org.apache.thrift.TException te) {
33722
        throw new java.io.IOException(te);
33723
      }
33724
    }
33725
 
1846 vikas 33726
  }
33727
 
3430 rajveer 33728
  public static class getTrackLogsByUser_result implements org.apache.thrift.TBase<getTrackLogsByUser_result, getTrackLogsByUser_result._Fields>, java.io.Serializable, Cloneable   {
33729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByUser_result");
1846 vikas 33730
 
3430 rajveer 33731
    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);
33732
    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 33733
 
3430 rajveer 33734
    private List<TrackLog> success; // required
33735
    private UserAffiliateException utx; // required
1846 vikas 33736
 
33737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33739
      SUCCESS((short)0, "success"),
33740
      UTX((short)1, "utx");
33741
 
33742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33743
 
33744
      static {
33745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33746
          byName.put(field.getFieldName(), field);
33747
        }
33748
      }
33749
 
33750
      /**
33751
       * Find the _Fields constant that matches fieldId, or null if its not found.
33752
       */
33753
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33754
        switch(fieldId) {
33755
          case 0: // SUCCESS
33756
            return SUCCESS;
33757
          case 1: // UTX
33758
            return UTX;
33759
          default:
33760
            return null;
33761
        }
1846 vikas 33762
      }
33763
 
33764
      /**
33765
       * Find the _Fields constant that matches fieldId, throwing an exception
33766
       * if it is not found.
33767
       */
33768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33769
        _Fields fields = findByThriftId(fieldId);
33770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33771
        return fields;
33772
      }
33773
 
33774
      /**
33775
       * Find the _Fields constant that matches name, or null if its not found.
33776
       */
33777
      public static _Fields findByName(String name) {
33778
        return byName.get(name);
33779
      }
33780
 
33781
      private final short _thriftId;
33782
      private final String _fieldName;
33783
 
33784
      _Fields(short thriftId, String fieldName) {
33785
        _thriftId = thriftId;
33786
        _fieldName = fieldName;
33787
      }
33788
 
33789
      public short getThriftFieldId() {
33790
        return _thriftId;
33791
      }
33792
 
33793
      public String getFieldName() {
33794
        return _fieldName;
33795
      }
33796
    }
33797
 
33798
    // isset id assignments
33799
 
3430 rajveer 33800
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33801
    static {
3430 rajveer 33802
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33803
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33804
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33805
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
33806
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_result.class, metaDataMap);
1846 vikas 33810
    }
33811
 
33812
    public getTrackLogsByUser_result() {
33813
    }
33814
 
33815
    public getTrackLogsByUser_result(
33816
      List<TrackLog> success,
1998 vikas 33817
      UserAffiliateException utx)
1846 vikas 33818
    {
33819
      this();
33820
      this.success = success;
33821
      this.utx = utx;
33822
    }
33823
 
33824
    /**
33825
     * Performs a deep copy on <i>other</i>.
33826
     */
33827
    public getTrackLogsByUser_result(getTrackLogsByUser_result other) {
33828
      if (other.isSetSuccess()) {
33829
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
33830
        for (TrackLog other_element : other.success) {
33831
          __this__success.add(new TrackLog(other_element));
33832
        }
33833
        this.success = __this__success;
33834
      }
33835
      if (other.isSetUtx()) {
1998 vikas 33836
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 33837
      }
33838
    }
33839
 
33840
    public getTrackLogsByUser_result deepCopy() {
33841
      return new getTrackLogsByUser_result(this);
33842
    }
33843
 
3430 rajveer 33844
    @Override
33845
    public void clear() {
33846
      this.success = null;
33847
      this.utx = null;
1846 vikas 33848
    }
33849
 
33850
    public int getSuccessSize() {
33851
      return (this.success == null) ? 0 : this.success.size();
33852
    }
33853
 
33854
    public java.util.Iterator<TrackLog> getSuccessIterator() {
33855
      return (this.success == null) ? null : this.success.iterator();
33856
    }
33857
 
33858
    public void addToSuccess(TrackLog elem) {
33859
      if (this.success == null) {
33860
        this.success = new ArrayList<TrackLog>();
33861
      }
33862
      this.success.add(elem);
33863
    }
33864
 
33865
    public List<TrackLog> getSuccess() {
33866
      return this.success;
33867
    }
33868
 
3430 rajveer 33869
    public void setSuccess(List<TrackLog> success) {
1846 vikas 33870
      this.success = success;
33871
    }
33872
 
33873
    public void unsetSuccess() {
33874
      this.success = null;
33875
    }
33876
 
3430 rajveer 33877
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 33878
    public boolean isSetSuccess() {
33879
      return this.success != null;
33880
    }
33881
 
33882
    public void setSuccessIsSet(boolean value) {
33883
      if (!value) {
33884
        this.success = null;
33885
      }
33886
    }
33887
 
1998 vikas 33888
    public UserAffiliateException getUtx() {
1846 vikas 33889
      return this.utx;
33890
    }
33891
 
3430 rajveer 33892
    public void setUtx(UserAffiliateException utx) {
1846 vikas 33893
      this.utx = utx;
33894
    }
33895
 
33896
    public void unsetUtx() {
33897
      this.utx = null;
33898
    }
33899
 
3430 rajveer 33900
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 33901
    public boolean isSetUtx() {
33902
      return this.utx != null;
33903
    }
33904
 
33905
    public void setUtxIsSet(boolean value) {
33906
      if (!value) {
33907
        this.utx = null;
33908
      }
33909
    }
33910
 
33911
    public void setFieldValue(_Fields field, Object value) {
33912
      switch (field) {
33913
      case SUCCESS:
33914
        if (value == null) {
33915
          unsetSuccess();
33916
        } else {
33917
          setSuccess((List<TrackLog>)value);
33918
        }
33919
        break;
33920
 
33921
      case UTX:
33922
        if (value == null) {
33923
          unsetUtx();
33924
        } else {
1998 vikas 33925
          setUtx((UserAffiliateException)value);
1846 vikas 33926
        }
33927
        break;
33928
 
33929
      }
33930
    }
33931
 
33932
    public Object getFieldValue(_Fields field) {
33933
      switch (field) {
33934
      case SUCCESS:
33935
        return getSuccess();
33936
 
33937
      case UTX:
33938
        return getUtx();
33939
 
33940
      }
33941
      throw new IllegalStateException();
33942
    }
33943
 
3430 rajveer 33944
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33945
    public boolean isSet(_Fields field) {
33946
      if (field == null) {
33947
        throw new IllegalArgumentException();
33948
      }
1846 vikas 33949
 
33950
      switch (field) {
33951
      case SUCCESS:
33952
        return isSetSuccess();
33953
      case UTX:
33954
        return isSetUtx();
33955
      }
33956
      throw new IllegalStateException();
33957
    }
33958
 
33959
    @Override
33960
    public boolean equals(Object that) {
33961
      if (that == null)
33962
        return false;
33963
      if (that instanceof getTrackLogsByUser_result)
33964
        return this.equals((getTrackLogsByUser_result)that);
33965
      return false;
33966
    }
33967
 
33968
    public boolean equals(getTrackLogsByUser_result that) {
33969
      if (that == null)
33970
        return false;
33971
 
33972
      boolean this_present_success = true && this.isSetSuccess();
33973
      boolean that_present_success = true && that.isSetSuccess();
33974
      if (this_present_success || that_present_success) {
33975
        if (!(this_present_success && that_present_success))
33976
          return false;
33977
        if (!this.success.equals(that.success))
33978
          return false;
33979
      }
33980
 
33981
      boolean this_present_utx = true && this.isSetUtx();
33982
      boolean that_present_utx = true && that.isSetUtx();
33983
      if (this_present_utx || that_present_utx) {
33984
        if (!(this_present_utx && that_present_utx))
33985
          return false;
33986
        if (!this.utx.equals(that.utx))
33987
          return false;
33988
      }
33989
 
33990
      return true;
33991
    }
33992
 
33993
    @Override
33994
    public int hashCode() {
33995
      return 0;
33996
    }
33997
 
33998
    public int compareTo(getTrackLogsByUser_result other) {
33999
      if (!getClass().equals(other.getClass())) {
34000
        return getClass().getName().compareTo(other.getClass().getName());
34001
      }
34002
 
34003
      int lastComparison = 0;
34004
      getTrackLogsByUser_result typedOther = (getTrackLogsByUser_result)other;
34005
 
3430 rajveer 34006
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 34007
      if (lastComparison != 0) {
34008
        return lastComparison;
34009
      }
3430 rajveer 34010
      if (isSetSuccess()) {
34011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34012
        if (lastComparison != 0) {
34013
          return lastComparison;
34014
        }
1846 vikas 34015
      }
3430 rajveer 34016
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 34017
      if (lastComparison != 0) {
34018
        return lastComparison;
34019
      }
3430 rajveer 34020
      if (isSetUtx()) {
34021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
34022
        if (lastComparison != 0) {
34023
          return lastComparison;
34024
        }
1846 vikas 34025
      }
34026
      return 0;
34027
    }
34028
 
3430 rajveer 34029
    public _Fields fieldForId(int fieldId) {
34030
      return _Fields.findByThriftId(fieldId);
34031
    }
34032
 
34033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34034
      org.apache.thrift.protocol.TField field;
1846 vikas 34035
      iprot.readStructBegin();
34036
      while (true)
34037
      {
34038
        field = iprot.readFieldBegin();
3430 rajveer 34039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34040
          break;
34041
        }
3430 rajveer 34042
        switch (field.id) {
34043
          case 0: // SUCCESS
34044
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34045
              {
34046
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
34047
                this.success = new ArrayList<TrackLog>(_list44.size);
34048
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
1846 vikas 34049
                {
3430 rajveer 34050
                  TrackLog _elem46; // required
34051
                  _elem46 = new TrackLog();
34052
                  _elem46.read(iprot);
34053
                  this.success.add(_elem46);
1846 vikas 34054
                }
3430 rajveer 34055
                iprot.readListEnd();
1846 vikas 34056
              }
3430 rajveer 34057
            } else { 
34058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34059
            }
34060
            break;
34061
          case 1: // UTX
34062
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34063
              this.utx = new UserAffiliateException();
34064
              this.utx.read(iprot);
34065
            } else { 
34066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34067
            }
34068
            break;
34069
          default:
34070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34071
        }
3430 rajveer 34072
        iprot.readFieldEnd();
1846 vikas 34073
      }
34074
      iprot.readStructEnd();
34075
      validate();
34076
    }
34077
 
3430 rajveer 34078
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34079
      oprot.writeStructBegin(STRUCT_DESC);
34080
 
34081
      if (this.isSetSuccess()) {
34082
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34083
        {
3430 rajveer 34084
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 34085
          for (TrackLog _iter47 : this.success)
1846 vikas 34086
          {
3385 varun.gupt 34087
            _iter47.write(oprot);
1846 vikas 34088
          }
34089
          oprot.writeListEnd();
34090
        }
34091
        oprot.writeFieldEnd();
34092
      } else if (this.isSetUtx()) {
34093
        oprot.writeFieldBegin(UTX_FIELD_DESC);
34094
        this.utx.write(oprot);
34095
        oprot.writeFieldEnd();
34096
      }
34097
      oprot.writeFieldStop();
34098
      oprot.writeStructEnd();
34099
    }
34100
 
34101
    @Override
34102
    public String toString() {
34103
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_result(");
34104
      boolean first = true;
34105
 
34106
      sb.append("success:");
34107
      if (this.success == null) {
34108
        sb.append("null");
34109
      } else {
34110
        sb.append(this.success);
34111
      }
34112
      first = false;
34113
      if (!first) sb.append(", ");
34114
      sb.append("utx:");
34115
      if (this.utx == null) {
34116
        sb.append("null");
34117
      } else {
34118
        sb.append(this.utx);
34119
      }
34120
      first = false;
34121
      sb.append(")");
34122
      return sb.toString();
34123
    }
34124
 
3430 rajveer 34125
    public void validate() throws org.apache.thrift.TException {
1846 vikas 34126
      // check for required fields
34127
    }
34128
 
3430 rajveer 34129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34130
      try {
34131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34132
      } catch (org.apache.thrift.TException te) {
34133
        throw new java.io.IOException(te);
34134
      }
34135
    }
34136
 
34137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34138
      try {
34139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34140
      } catch (org.apache.thrift.TException te) {
34141
        throw new java.io.IOException(te);
34142
      }
34143
    }
34144
 
1846 vikas 34145
  }
34146
 
3430 rajveer 34147
  public static class getTrackLogs_args implements org.apache.thrift.TBase<getTrackLogs_args, getTrackLogs_args._Fields>, java.io.Serializable, Cloneable   {
34148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogs_args");
1846 vikas 34149
 
3430 rajveer 34150
    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);
34151
    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);
34152
    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 34153
 
3430 rajveer 34154
    private long userId; // required
34155
    private String event; // required
34156
    private String url; // required
1846 vikas 34157
 
34158
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34159
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 34160
      USER_ID((short)1, "userId"),
34161
      EVENT((short)2, "event"),
34162
      URL((short)3, "url");
1846 vikas 34163
 
34164
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34165
 
34166
      static {
34167
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34168
          byName.put(field.getFieldName(), field);
34169
        }
34170
      }
34171
 
34172
      /**
34173
       * Find the _Fields constant that matches fieldId, or null if its not found.
34174
       */
34175
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34176
        switch(fieldId) {
34177
          case 1: // USER_ID
34178
            return USER_ID;
34179
          case 2: // EVENT
34180
            return EVENT;
34181
          case 3: // URL
34182
            return URL;
34183
          default:
34184
            return null;
34185
        }
1846 vikas 34186
      }
34187
 
34188
      /**
34189
       * Find the _Fields constant that matches fieldId, throwing an exception
34190
       * if it is not found.
34191
       */
34192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34193
        _Fields fields = findByThriftId(fieldId);
34194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34195
        return fields;
34196
      }
34197
 
34198
      /**
34199
       * Find the _Fields constant that matches name, or null if its not found.
34200
       */
34201
      public static _Fields findByName(String name) {
34202
        return byName.get(name);
34203
      }
34204
 
34205
      private final short _thriftId;
34206
      private final String _fieldName;
34207
 
34208
      _Fields(short thriftId, String fieldName) {
34209
        _thriftId = thriftId;
34210
        _fieldName = fieldName;
34211
      }
34212
 
34213
      public short getThriftFieldId() {
34214
        return _thriftId;
34215
      }
34216
 
34217
      public String getFieldName() {
34218
        return _fieldName;
34219
      }
34220
    }
34221
 
34222
    // isset id assignments
1998 vikas 34223
    private static final int __USERID_ISSET_ID = 0;
34224
    private BitSet __isset_bit_vector = new BitSet(1);
1846 vikas 34225
 
3430 rajveer 34226
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34227
    static {
3430 rajveer 34228
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34229
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34231
      tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34233
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34235
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34236
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogs_args.class, metaDataMap);
1846 vikas 34237
    }
34238
 
34239
    public getTrackLogs_args() {
34240
    }
34241
 
34242
    public getTrackLogs_args(
34243
      long userId,
34244
      String event,
34245
      String url)
34246
    {
34247
      this();
34248
      this.userId = userId;
34249
      setUserIdIsSet(true);
34250
      this.event = event;
34251
      this.url = url;
34252
    }
34253
 
34254
    /**
34255
     * Performs a deep copy on <i>other</i>.
34256
     */
34257
    public getTrackLogs_args(getTrackLogs_args other) {
34258
      __isset_bit_vector.clear();
34259
      __isset_bit_vector.or(other.__isset_bit_vector);
34260
      this.userId = other.userId;
34261
      if (other.isSetEvent()) {
34262
        this.event = other.event;
34263
      }
34264
      if (other.isSetUrl()) {
34265
        this.url = other.url;
34266
      }
34267
    }
34268
 
34269
    public getTrackLogs_args deepCopy() {
34270
      return new getTrackLogs_args(this);
34271
    }
34272
 
3430 rajveer 34273
    @Override
34274
    public void clear() {
34275
      setUserIdIsSet(false);
34276
      this.userId = 0;
34277
      this.event = null;
34278
      this.url = null;
1846 vikas 34279
    }
34280
 
34281
    public long getUserId() {
34282
      return this.userId;
34283
    }
34284
 
3430 rajveer 34285
    public void setUserId(long userId) {
1846 vikas 34286
      this.userId = userId;
34287
      setUserIdIsSet(true);
34288
    }
34289
 
34290
    public void unsetUserId() {
34291
      __isset_bit_vector.clear(__USERID_ISSET_ID);
34292
    }
34293
 
3430 rajveer 34294
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 34295
    public boolean isSetUserId() {
34296
      return __isset_bit_vector.get(__USERID_ISSET_ID);
34297
    }
34298
 
34299
    public void setUserIdIsSet(boolean value) {
34300
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
34301
    }
34302
 
34303
    public String getEvent() {
34304
      return this.event;
34305
    }
34306
 
3430 rajveer 34307
    public void setEvent(String event) {
1846 vikas 34308
      this.event = event;
34309
    }
34310
 
34311
    public void unsetEvent() {
34312
      this.event = null;
34313
    }
34314
 
3430 rajveer 34315
    /** Returns true if field event is set (has been assigned a value) and false otherwise */
1846 vikas 34316
    public boolean isSetEvent() {
34317
      return this.event != null;
34318
    }
34319
 
34320
    public void setEventIsSet(boolean value) {
34321
      if (!value) {
34322
        this.event = null;
34323
      }
34324
    }
34325
 
34326
    public String getUrl() {
34327
      return this.url;
34328
    }
34329
 
3430 rajveer 34330
    public void setUrl(String url) {
1846 vikas 34331
      this.url = url;
34332
    }
34333
 
34334
    public void unsetUrl() {
34335
      this.url = null;
34336
    }
34337
 
3430 rajveer 34338
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 34339
    public boolean isSetUrl() {
34340
      return this.url != null;
34341
    }
34342
 
34343
    public void setUrlIsSet(boolean value) {
34344
      if (!value) {
34345
        this.url = null;
34346
      }
34347
    }
34348
 
34349
    public void setFieldValue(_Fields field, Object value) {
34350
      switch (field) {
34351
      case USER_ID:
34352
        if (value == null) {
34353
          unsetUserId();
34354
        } else {
34355
          setUserId((Long)value);
34356
        }
34357
        break;
34358
 
34359
      case EVENT:
34360
        if (value == null) {
34361
          unsetEvent();
34362
        } else {
34363
          setEvent((String)value);
34364
        }
34365
        break;
34366
 
34367
      case URL:
34368
        if (value == null) {
34369
          unsetUrl();
34370
        } else {
34371
          setUrl((String)value);
34372
        }
34373
        break;
34374
 
34375
      }
34376
    }
34377
 
34378
    public Object getFieldValue(_Fields field) {
34379
      switch (field) {
34380
      case USER_ID:
3430 rajveer 34381
        return Long.valueOf(getUserId());
1846 vikas 34382
 
34383
      case EVENT:
34384
        return getEvent();
34385
 
34386
      case URL:
34387
        return getUrl();
34388
 
34389
      }
34390
      throw new IllegalStateException();
34391
    }
34392
 
3430 rajveer 34393
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34394
    public boolean isSet(_Fields field) {
34395
      if (field == null) {
34396
        throw new IllegalArgumentException();
34397
      }
1846 vikas 34398
 
34399
      switch (field) {
34400
      case USER_ID:
34401
        return isSetUserId();
34402
      case EVENT:
34403
        return isSetEvent();
34404
      case URL:
34405
        return isSetUrl();
34406
      }
34407
      throw new IllegalStateException();
34408
    }
34409
 
34410
    @Override
34411
    public boolean equals(Object that) {
34412
      if (that == null)
34413
        return false;
34414
      if (that instanceof getTrackLogs_args)
34415
        return this.equals((getTrackLogs_args)that);
34416
      return false;
34417
    }
34418
 
34419
    public boolean equals(getTrackLogs_args that) {
34420
      if (that == null)
34421
        return false;
34422
 
34423
      boolean this_present_userId = true;
34424
      boolean that_present_userId = true;
34425
      if (this_present_userId || that_present_userId) {
34426
        if (!(this_present_userId && that_present_userId))
34427
          return false;
34428
        if (this.userId != that.userId)
34429
          return false;
34430
      }
34431
 
34432
      boolean this_present_event = true && this.isSetEvent();
34433
      boolean that_present_event = true && that.isSetEvent();
34434
      if (this_present_event || that_present_event) {
34435
        if (!(this_present_event && that_present_event))
34436
          return false;
34437
        if (!this.event.equals(that.event))
34438
          return false;
34439
      }
34440
 
34441
      boolean this_present_url = true && this.isSetUrl();
34442
      boolean that_present_url = true && that.isSetUrl();
34443
      if (this_present_url || that_present_url) {
34444
        if (!(this_present_url && that_present_url))
34445
          return false;
34446
        if (!this.url.equals(that.url))
34447
          return false;
34448
      }
34449
 
34450
      return true;
34451
    }
34452
 
34453
    @Override
34454
    public int hashCode() {
34455
      return 0;
34456
    }
34457
 
34458
    public int compareTo(getTrackLogs_args other) {
34459
      if (!getClass().equals(other.getClass())) {
34460
        return getClass().getName().compareTo(other.getClass().getName());
34461
      }
34462
 
34463
      int lastComparison = 0;
34464
      getTrackLogs_args typedOther = (getTrackLogs_args)other;
34465
 
3430 rajveer 34466
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 34467
      if (lastComparison != 0) {
34468
        return lastComparison;
34469
      }
3430 rajveer 34470
      if (isSetUserId()) {
34471
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
34472
        if (lastComparison != 0) {
34473
          return lastComparison;
34474
        }
1846 vikas 34475
      }
3430 rajveer 34476
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(typedOther.isSetEvent());
1846 vikas 34477
      if (lastComparison != 0) {
34478
        return lastComparison;
34479
      }
3430 rajveer 34480
      if (isSetEvent()) {
34481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, typedOther.event);
34482
        if (lastComparison != 0) {
34483
          return lastComparison;
34484
        }
1846 vikas 34485
      }
3430 rajveer 34486
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 34487
      if (lastComparison != 0) {
34488
        return lastComparison;
34489
      }
3430 rajveer 34490
      if (isSetUrl()) {
34491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
34492
        if (lastComparison != 0) {
34493
          return lastComparison;
34494
        }
1846 vikas 34495
      }
34496
      return 0;
34497
    }
34498
 
3430 rajveer 34499
    public _Fields fieldForId(int fieldId) {
34500
      return _Fields.findByThriftId(fieldId);
34501
    }
34502
 
34503
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34504
      org.apache.thrift.protocol.TField field;
1846 vikas 34505
      iprot.readStructBegin();
34506
      while (true)
34507
      {
34508
        field = iprot.readFieldBegin();
3430 rajveer 34509
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34510
          break;
34511
        }
3430 rajveer 34512
        switch (field.id) {
34513
          case 1: // USER_ID
34514
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34515
              this.userId = iprot.readI64();
34516
              setUserIdIsSet(true);
34517
            } else { 
34518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34519
            }
34520
            break;
34521
          case 2: // EVENT
34522
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34523
              this.event = iprot.readString();
34524
            } else { 
34525
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34526
            }
34527
            break;
34528
          case 3: // URL
34529
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34530
              this.url = iprot.readString();
34531
            } else { 
34532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34533
            }
34534
            break;
34535
          default:
34536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34537
        }
3430 rajveer 34538
        iprot.readFieldEnd();
1846 vikas 34539
      }
34540
      iprot.readStructEnd();
34541
      validate();
34542
    }
34543
 
3430 rajveer 34544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34545
      validate();
34546
 
34547
      oprot.writeStructBegin(STRUCT_DESC);
34548
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
34549
      oprot.writeI64(this.userId);
34550
      oprot.writeFieldEnd();
34551
      if (this.event != null) {
34552
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
34553
        oprot.writeString(this.event);
34554
        oprot.writeFieldEnd();
34555
      }
34556
      if (this.url != null) {
34557
        oprot.writeFieldBegin(URL_FIELD_DESC);
34558
        oprot.writeString(this.url);
34559
        oprot.writeFieldEnd();
34560
      }
34561
      oprot.writeFieldStop();
34562
      oprot.writeStructEnd();
34563
    }
34564
 
34565
    @Override
34566
    public String toString() {
34567
      StringBuilder sb = new StringBuilder("getTrackLogs_args(");
34568
      boolean first = true;
34569
 
34570
      sb.append("userId:");
34571
      sb.append(this.userId);
34572
      first = false;
34573
      if (!first) sb.append(", ");
34574
      sb.append("event:");
34575
      if (this.event == null) {
34576
        sb.append("null");
34577
      } else {
34578
        sb.append(this.event);
34579
      }
34580
      first = false;
34581
      if (!first) sb.append(", ");
34582
      sb.append("url:");
34583
      if (this.url == null) {
34584
        sb.append("null");
34585
      } else {
34586
        sb.append(this.url);
34587
      }
34588
      first = false;
34589
      sb.append(")");
34590
      return sb.toString();
34591
    }
34592
 
3430 rajveer 34593
    public void validate() throws org.apache.thrift.TException {
1846 vikas 34594
      // check for required fields
34595
    }
34596
 
3430 rajveer 34597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34598
      try {
34599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34600
      } catch (org.apache.thrift.TException te) {
34601
        throw new java.io.IOException(te);
34602
      }
34603
    }
34604
 
34605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34606
      try {
34607
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34608
        __isset_bit_vector = new BitSet(1);
34609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34610
      } catch (org.apache.thrift.TException te) {
34611
        throw new java.io.IOException(te);
34612
      }
34613
    }
34614
 
1846 vikas 34615
  }
34616
 
3430 rajveer 34617
  public static class getTrackLogs_result implements org.apache.thrift.TBase<getTrackLogs_result, getTrackLogs_result._Fields>, java.io.Serializable, Cloneable   {
34618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogs_result");
1846 vikas 34619
 
3430 rajveer 34620
    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);
34621
    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 34622
 
3430 rajveer 34623
    private List<TrackLog> success; // required
34624
    private UserAffiliateException utx; // required
1846 vikas 34625
 
34626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 34628
      SUCCESS((short)0, "success"),
34629
      UTX((short)1, "utx");
34630
 
34631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34632
 
34633
      static {
34634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34635
          byName.put(field.getFieldName(), field);
34636
        }
34637
      }
34638
 
34639
      /**
34640
       * Find the _Fields constant that matches fieldId, or null if its not found.
34641
       */
34642
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34643
        switch(fieldId) {
34644
          case 0: // SUCCESS
34645
            return SUCCESS;
34646
          case 1: // UTX
34647
            return UTX;
34648
          default:
34649
            return null;
34650
        }
1846 vikas 34651
      }
34652
 
34653
      /**
34654
       * Find the _Fields constant that matches fieldId, throwing an exception
34655
       * if it is not found.
34656
       */
34657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34658
        _Fields fields = findByThriftId(fieldId);
34659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34660
        return fields;
34661
      }
34662
 
34663
      /**
34664
       * Find the _Fields constant that matches name, or null if its not found.
34665
       */
34666
      public static _Fields findByName(String name) {
34667
        return byName.get(name);
34668
      }
34669
 
34670
      private final short _thriftId;
34671
      private final String _fieldName;
34672
 
34673
      _Fields(short thriftId, String fieldName) {
34674
        _thriftId = thriftId;
34675
        _fieldName = fieldName;
34676
      }
34677
 
34678
      public short getThriftFieldId() {
34679
        return _thriftId;
34680
      }
34681
 
34682
      public String getFieldName() {
34683
        return _fieldName;
34684
      }
34685
    }
34686
 
34687
    // isset id assignments
34688
 
3430 rajveer 34689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34690
    static {
3430 rajveer 34691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34692
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34693
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34694
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
34695
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34697
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34698
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogs_result.class, metaDataMap);
1846 vikas 34699
    }
34700
 
34701
    public getTrackLogs_result() {
34702
    }
34703
 
34704
    public getTrackLogs_result(
34705
      List<TrackLog> success,
1998 vikas 34706
      UserAffiliateException utx)
1846 vikas 34707
    {
34708
      this();
34709
      this.success = success;
34710
      this.utx = utx;
34711
    }
34712
 
34713
    /**
34714
     * Performs a deep copy on <i>other</i>.
34715
     */
34716
    public getTrackLogs_result(getTrackLogs_result other) {
34717
      if (other.isSetSuccess()) {
34718
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
34719
        for (TrackLog other_element : other.success) {
34720
          __this__success.add(new TrackLog(other_element));
34721
        }
34722
        this.success = __this__success;
34723
      }
34724
      if (other.isSetUtx()) {
1998 vikas 34725
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 34726
      }
34727
    }
34728
 
34729
    public getTrackLogs_result deepCopy() {
34730
      return new getTrackLogs_result(this);
34731
    }
34732
 
3430 rajveer 34733
    @Override
34734
    public void clear() {
34735
      this.success = null;
34736
      this.utx = null;
1846 vikas 34737
    }
34738
 
34739
    public int getSuccessSize() {
34740
      return (this.success == null) ? 0 : this.success.size();
34741
    }
34742
 
34743
    public java.util.Iterator<TrackLog> getSuccessIterator() {
34744
      return (this.success == null) ? null : this.success.iterator();
34745
    }
34746
 
34747
    public void addToSuccess(TrackLog elem) {
34748
      if (this.success == null) {
34749
        this.success = new ArrayList<TrackLog>();
34750
      }
34751
      this.success.add(elem);
34752
    }
34753
 
34754
    public List<TrackLog> getSuccess() {
34755
      return this.success;
34756
    }
34757
 
3430 rajveer 34758
    public void setSuccess(List<TrackLog> success) {
1846 vikas 34759
      this.success = success;
34760
    }
34761
 
34762
    public void unsetSuccess() {
34763
      this.success = null;
34764
    }
34765
 
3430 rajveer 34766
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 34767
    public boolean isSetSuccess() {
34768
      return this.success != null;
34769
    }
34770
 
34771
    public void setSuccessIsSet(boolean value) {
34772
      if (!value) {
34773
        this.success = null;
34774
      }
34775
    }
34776
 
1998 vikas 34777
    public UserAffiliateException getUtx() {
1846 vikas 34778
      return this.utx;
34779
    }
34780
 
3430 rajveer 34781
    public void setUtx(UserAffiliateException utx) {
1846 vikas 34782
      this.utx = utx;
34783
    }
34784
 
34785
    public void unsetUtx() {
34786
      this.utx = null;
34787
    }
34788
 
3430 rajveer 34789
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 34790
    public boolean isSetUtx() {
34791
      return this.utx != null;
34792
    }
34793
 
34794
    public void setUtxIsSet(boolean value) {
34795
      if (!value) {
34796
        this.utx = null;
34797
      }
34798
    }
34799
 
34800
    public void setFieldValue(_Fields field, Object value) {
34801
      switch (field) {
34802
      case SUCCESS:
34803
        if (value == null) {
34804
          unsetSuccess();
34805
        } else {
34806
          setSuccess((List<TrackLog>)value);
34807
        }
34808
        break;
34809
 
34810
      case UTX:
34811
        if (value == null) {
34812
          unsetUtx();
34813
        } else {
1998 vikas 34814
          setUtx((UserAffiliateException)value);
1846 vikas 34815
        }
34816
        break;
34817
 
34818
      }
34819
    }
34820
 
34821
    public Object getFieldValue(_Fields field) {
34822
      switch (field) {
34823
      case SUCCESS:
34824
        return getSuccess();
34825
 
34826
      case UTX:
34827
        return getUtx();
34828
 
34829
      }
34830
      throw new IllegalStateException();
34831
    }
34832
 
3430 rajveer 34833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34834
    public boolean isSet(_Fields field) {
34835
      if (field == null) {
34836
        throw new IllegalArgumentException();
34837
      }
1846 vikas 34838
 
34839
      switch (field) {
34840
      case SUCCESS:
34841
        return isSetSuccess();
34842
      case UTX:
34843
        return isSetUtx();
34844
      }
34845
      throw new IllegalStateException();
34846
    }
34847
 
34848
    @Override
34849
    public boolean equals(Object that) {
34850
      if (that == null)
34851
        return false;
34852
      if (that instanceof getTrackLogs_result)
34853
        return this.equals((getTrackLogs_result)that);
34854
      return false;
34855
    }
34856
 
34857
    public boolean equals(getTrackLogs_result that) {
34858
      if (that == null)
34859
        return false;
34860
 
34861
      boolean this_present_success = true && this.isSetSuccess();
34862
      boolean that_present_success = true && that.isSetSuccess();
34863
      if (this_present_success || that_present_success) {
34864
        if (!(this_present_success && that_present_success))
34865
          return false;
34866
        if (!this.success.equals(that.success))
34867
          return false;
34868
      }
34869
 
34870
      boolean this_present_utx = true && this.isSetUtx();
34871
      boolean that_present_utx = true && that.isSetUtx();
34872
      if (this_present_utx || that_present_utx) {
34873
        if (!(this_present_utx && that_present_utx))
34874
          return false;
34875
        if (!this.utx.equals(that.utx))
34876
          return false;
34877
      }
34878
 
34879
      return true;
34880
    }
34881
 
34882
    @Override
34883
    public int hashCode() {
34884
      return 0;
34885
    }
34886
 
34887
    public int compareTo(getTrackLogs_result other) {
34888
      if (!getClass().equals(other.getClass())) {
34889
        return getClass().getName().compareTo(other.getClass().getName());
34890
      }
34891
 
34892
      int lastComparison = 0;
34893
      getTrackLogs_result typedOther = (getTrackLogs_result)other;
34894
 
3430 rajveer 34895
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 34896
      if (lastComparison != 0) {
34897
        return lastComparison;
34898
      }
3430 rajveer 34899
      if (isSetSuccess()) {
34900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34901
        if (lastComparison != 0) {
34902
          return lastComparison;
34903
        }
1846 vikas 34904
      }
3430 rajveer 34905
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 34906
      if (lastComparison != 0) {
34907
        return lastComparison;
34908
      }
3430 rajveer 34909
      if (isSetUtx()) {
34910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
34911
        if (lastComparison != 0) {
34912
          return lastComparison;
34913
        }
1846 vikas 34914
      }
34915
      return 0;
34916
    }
34917
 
3430 rajveer 34918
    public _Fields fieldForId(int fieldId) {
34919
      return _Fields.findByThriftId(fieldId);
34920
    }
34921
 
34922
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34923
      org.apache.thrift.protocol.TField field;
1846 vikas 34924
      iprot.readStructBegin();
34925
      while (true)
34926
      {
34927
        field = iprot.readFieldBegin();
3430 rajveer 34928
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34929
          break;
34930
        }
3430 rajveer 34931
        switch (field.id) {
34932
          case 0: // SUCCESS
34933
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34934
              {
34935
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
34936
                this.success = new ArrayList<TrackLog>(_list48.size);
34937
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
1846 vikas 34938
                {
3430 rajveer 34939
                  TrackLog _elem50; // required
34940
                  _elem50 = new TrackLog();
34941
                  _elem50.read(iprot);
34942
                  this.success.add(_elem50);
1846 vikas 34943
                }
3430 rajveer 34944
                iprot.readListEnd();
1846 vikas 34945
              }
3430 rajveer 34946
            } else { 
34947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34948
            }
34949
            break;
34950
          case 1: // UTX
34951
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34952
              this.utx = new UserAffiliateException();
34953
              this.utx.read(iprot);
34954
            } else { 
34955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34956
            }
34957
            break;
34958
          default:
34959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34960
        }
3430 rajveer 34961
        iprot.readFieldEnd();
1846 vikas 34962
      }
34963
      iprot.readStructEnd();
34964
      validate();
34965
    }
34966
 
3430 rajveer 34967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34968
      oprot.writeStructBegin(STRUCT_DESC);
34969
 
34970
      if (this.isSetSuccess()) {
34971
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34972
        {
3430 rajveer 34973
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 34974
          for (TrackLog _iter51 : this.success)
1846 vikas 34975
          {
3385 varun.gupt 34976
            _iter51.write(oprot);
1846 vikas 34977
          }
34978
          oprot.writeListEnd();
34979
        }
34980
        oprot.writeFieldEnd();
34981
      } else if (this.isSetUtx()) {
34982
        oprot.writeFieldBegin(UTX_FIELD_DESC);
34983
        this.utx.write(oprot);
34984
        oprot.writeFieldEnd();
34985
      }
34986
      oprot.writeFieldStop();
34987
      oprot.writeStructEnd();
34988
    }
34989
 
34990
    @Override
34991
    public String toString() {
34992
      StringBuilder sb = new StringBuilder("getTrackLogs_result(");
34993
      boolean first = true;
34994
 
34995
      sb.append("success:");
34996
      if (this.success == null) {
34997
        sb.append("null");
34998
      } else {
34999
        sb.append(this.success);
35000
      }
35001
      first = false;
35002
      if (!first) sb.append(", ");
35003
      sb.append("utx:");
35004
      if (this.utx == null) {
35005
        sb.append("null");
35006
      } else {
35007
        sb.append(this.utx);
35008
      }
35009
      first = false;
35010
      sb.append(")");
35011
      return sb.toString();
35012
    }
35013
 
3430 rajveer 35014
    public void validate() throws org.apache.thrift.TException {
1846 vikas 35015
      // check for required fields
35016
    }
35017
 
3430 rajveer 35018
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35019
      try {
35020
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35021
      } catch (org.apache.thrift.TException te) {
35022
        throw new java.io.IOException(te);
35023
      }
35024
    }
35025
 
35026
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35027
      try {
35028
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35029
      } catch (org.apache.thrift.TException te) {
35030
        throw new java.io.IOException(te);
35031
      }
35032
    }
35033
 
1846 vikas 35034
  }
35035
 
3430 rajveer 35036
  public static class createCart_args implements org.apache.thrift.TBase<createCart_args, createCart_args._Fields>, java.io.Serializable, Cloneable   {
35037
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCart_args");
48 ashish 35038
 
3430 rajveer 35039
    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 35040
 
3430 rajveer 35041
    private long userId; // required
48 ashish 35042
 
35043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 35045
      USER_ID((short)1, "userId");
48 ashish 35046
 
35047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35048
 
35049
      static {
35050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35051
          byName.put(field.getFieldName(), field);
35052
        }
35053
      }
35054
 
35055
      /**
35056
       * Find the _Fields constant that matches fieldId, or null if its not found.
35057
       */
35058
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35059
        switch(fieldId) {
35060
          case 1: // USER_ID
35061
            return USER_ID;
35062
          default:
35063
            return null;
35064
        }
48 ashish 35065
      }
35066
 
35067
      /**
35068
       * Find the _Fields constant that matches fieldId, throwing an exception
35069
       * if it is not found.
35070
       */
35071
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35072
        _Fields fields = findByThriftId(fieldId);
35073
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35074
        return fields;
35075
      }
35076
 
35077
      /**
35078
       * Find the _Fields constant that matches name, or null if its not found.
35079
       */
35080
      public static _Fields findByName(String name) {
35081
        return byName.get(name);
35082
      }
35083
 
35084
      private final short _thriftId;
35085
      private final String _fieldName;
35086
 
35087
      _Fields(short thriftId, String fieldName) {
35088
        _thriftId = thriftId;
35089
        _fieldName = fieldName;
35090
      }
35091
 
35092
      public short getThriftFieldId() {
35093
        return _thriftId;
35094
      }
35095
 
35096
      public String getFieldName() {
35097
        return _fieldName;
35098
      }
35099
    }
35100
 
35101
    // isset id assignments
35102
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 35103
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 35104
 
3430 rajveer 35105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 35106
    static {
3430 rajveer 35107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35108
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35109
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35110
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35111
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCart_args.class, metaDataMap);
48 ashish 35112
    }
35113
 
553 chandransh 35114
    public createCart_args() {
48 ashish 35115
    }
35116
 
553 chandransh 35117
    public createCart_args(
35118
      long userId)
48 ashish 35119
    {
35120
      this();
553 chandransh 35121
      this.userId = userId;
35122
      setUserIdIsSet(true);
48 ashish 35123
    }
35124
 
35125
    /**
35126
     * Performs a deep copy on <i>other</i>.
35127
     */
553 chandransh 35128
    public createCart_args(createCart_args other) {
48 ashish 35129
      __isset_bit_vector.clear();
35130
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 35131
      this.userId = other.userId;
48 ashish 35132
    }
35133
 
553 chandransh 35134
    public createCart_args deepCopy() {
35135
      return new createCart_args(this);
48 ashish 35136
    }
35137
 
3430 rajveer 35138
    @Override
35139
    public void clear() {
35140
      setUserIdIsSet(false);
35141
      this.userId = 0;
48 ashish 35142
    }
35143
 
553 chandransh 35144
    public long getUserId() {
35145
      return this.userId;
48 ashish 35146
    }
35147
 
3430 rajveer 35148
    public void setUserId(long userId) {
553 chandransh 35149
      this.userId = userId;
35150
      setUserIdIsSet(true);
48 ashish 35151
    }
35152
 
553 chandransh 35153
    public void unsetUserId() {
48 ashish 35154
      __isset_bit_vector.clear(__USERID_ISSET_ID);
35155
    }
35156
 
3430 rajveer 35157
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 35158
    public boolean isSetUserId() {
48 ashish 35159
      return __isset_bit_vector.get(__USERID_ISSET_ID);
35160
    }
35161
 
553 chandransh 35162
    public void setUserIdIsSet(boolean value) {
48 ashish 35163
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
35164
    }
35165
 
35166
    public void setFieldValue(_Fields field, Object value) {
35167
      switch (field) {
553 chandransh 35168
      case USER_ID:
48 ashish 35169
        if (value == null) {
553 chandransh 35170
          unsetUserId();
48 ashish 35171
        } else {
553 chandransh 35172
          setUserId((Long)value);
48 ashish 35173
        }
35174
        break;
35175
 
35176
      }
35177
    }
35178
 
35179
    public Object getFieldValue(_Fields field) {
35180
      switch (field) {
553 chandransh 35181
      case USER_ID:
3430 rajveer 35182
        return Long.valueOf(getUserId());
48 ashish 35183
 
35184
      }
35185
      throw new IllegalStateException();
35186
    }
35187
 
3430 rajveer 35188
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35189
    public boolean isSet(_Fields field) {
35190
      if (field == null) {
35191
        throw new IllegalArgumentException();
35192
      }
48 ashish 35193
 
35194
      switch (field) {
553 chandransh 35195
      case USER_ID:
35196
        return isSetUserId();
48 ashish 35197
      }
35198
      throw new IllegalStateException();
35199
    }
35200
 
35201
    @Override
35202
    public boolean equals(Object that) {
35203
      if (that == null)
35204
        return false;
553 chandransh 35205
      if (that instanceof createCart_args)
35206
        return this.equals((createCart_args)that);
48 ashish 35207
      return false;
35208
    }
35209
 
553 chandransh 35210
    public boolean equals(createCart_args that) {
48 ashish 35211
      if (that == null)
35212
        return false;
35213
 
553 chandransh 35214
      boolean this_present_userId = true;
35215
      boolean that_present_userId = true;
35216
      if (this_present_userId || that_present_userId) {
35217
        if (!(this_present_userId && that_present_userId))
48 ashish 35218
          return false;
553 chandransh 35219
        if (this.userId != that.userId)
48 ashish 35220
          return false;
35221
      }
35222
 
35223
      return true;
35224
    }
35225
 
35226
    @Override
35227
    public int hashCode() {
35228
      return 0;
35229
    }
35230
 
553 chandransh 35231
    public int compareTo(createCart_args other) {
48 ashish 35232
      if (!getClass().equals(other.getClass())) {
35233
        return getClass().getName().compareTo(other.getClass().getName());
35234
      }
35235
 
35236
      int lastComparison = 0;
553 chandransh 35237
      createCart_args typedOther = (createCart_args)other;
48 ashish 35238
 
3430 rajveer 35239
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 35240
      if (lastComparison != 0) {
35241
        return lastComparison;
35242
      }
3430 rajveer 35243
      if (isSetUserId()) {
35244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
35245
        if (lastComparison != 0) {
35246
          return lastComparison;
35247
        }
48 ashish 35248
      }
35249
      return 0;
35250
    }
35251
 
3430 rajveer 35252
    public _Fields fieldForId(int fieldId) {
35253
      return _Fields.findByThriftId(fieldId);
35254
    }
35255
 
35256
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35257
      org.apache.thrift.protocol.TField field;
48 ashish 35258
      iprot.readStructBegin();
35259
      while (true)
35260
      {
35261
        field = iprot.readFieldBegin();
3430 rajveer 35262
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 35263
          break;
35264
        }
3430 rajveer 35265
        switch (field.id) {
35266
          case 1: // USER_ID
35267
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35268
              this.userId = iprot.readI64();
35269
              setUserIdIsSet(true);
35270
            } else { 
35271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35272
            }
35273
            break;
35274
          default:
35275
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 35276
        }
3430 rajveer 35277
        iprot.readFieldEnd();
48 ashish 35278
      }
35279
      iprot.readStructEnd();
35280
      validate();
35281
    }
35282
 
3430 rajveer 35283
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 35284
      validate();
35285
 
35286
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 35287
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
35288
      oprot.writeI64(this.userId);
48 ashish 35289
      oprot.writeFieldEnd();
35290
      oprot.writeFieldStop();
35291
      oprot.writeStructEnd();
35292
    }
35293
 
35294
    @Override
35295
    public String toString() {
553 chandransh 35296
      StringBuilder sb = new StringBuilder("createCart_args(");
48 ashish 35297
      boolean first = true;
35298
 
553 chandransh 35299
      sb.append("userId:");
35300
      sb.append(this.userId);
48 ashish 35301
      first = false;
35302
      sb.append(")");
35303
      return sb.toString();
35304
    }
35305
 
3430 rajveer 35306
    public void validate() throws org.apache.thrift.TException {
48 ashish 35307
      // check for required fields
35308
    }
35309
 
3430 rajveer 35310
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35311
      try {
35312
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35313
      } catch (org.apache.thrift.TException te) {
35314
        throw new java.io.IOException(te);
35315
      }
35316
    }
35317
 
35318
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35319
      try {
35320
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35321
        __isset_bit_vector = new BitSet(1);
35322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35323
      } catch (org.apache.thrift.TException te) {
35324
        throw new java.io.IOException(te);
35325
      }
35326
    }
35327
 
48 ashish 35328
  }
35329
 
3430 rajveer 35330
  public static class createCart_result implements org.apache.thrift.TBase<createCart_result, createCart_result._Fields>, java.io.Serializable, Cloneable   {
35331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCart_result");
48 ashish 35332
 
3430 rajveer 35333
    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);
35334
    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 35335
 
3430 rajveer 35336
    private long success; // required
35337
    private ShoppingCartException scx; // required
48 ashish 35338
 
35339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 35341
      SUCCESS((short)0, "success"),
553 chandransh 35342
      SCX((short)1, "scx");
48 ashish 35343
 
35344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35345
 
35346
      static {
35347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35348
          byName.put(field.getFieldName(), field);
35349
        }
35350
      }
35351
 
35352
      /**
35353
       * Find the _Fields constant that matches fieldId, or null if its not found.
35354
       */
35355
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35356
        switch(fieldId) {
35357
          case 0: // SUCCESS
35358
            return SUCCESS;
35359
          case 1: // SCX
35360
            return SCX;
35361
          default:
35362
            return null;
35363
        }
48 ashish 35364
      }
35365
 
35366
      /**
35367
       * Find the _Fields constant that matches fieldId, throwing an exception
35368
       * if it is not found.
35369
       */
35370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35371
        _Fields fields = findByThriftId(fieldId);
35372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35373
        return fields;
35374
      }
35375
 
35376
      /**
35377
       * Find the _Fields constant that matches name, or null if its not found.
35378
       */
35379
      public static _Fields findByName(String name) {
35380
        return byName.get(name);
35381
      }
35382
 
35383
      private final short _thriftId;
35384
      private final String _fieldName;
35385
 
35386
      _Fields(short thriftId, String fieldName) {
35387
        _thriftId = thriftId;
35388
        _fieldName = fieldName;
35389
      }
35390
 
35391
      public short getThriftFieldId() {
35392
        return _thriftId;
35393
      }
35394
 
35395
      public String getFieldName() {
35396
        return _fieldName;
35397
      }
35398
    }
35399
 
35400
    // isset id assignments
35401
    private static final int __SUCCESS_ISSET_ID = 0;
35402
    private BitSet __isset_bit_vector = new BitSet(1);
35403
 
3430 rajveer 35404
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 35405
    static {
3430 rajveer 35406
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35407
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35409
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCart_result.class, metaDataMap);
48 ashish 35413
    }
35414
 
553 chandransh 35415
    public createCart_result() {
48 ashish 35416
    }
35417
 
553 chandransh 35418
    public createCart_result(
35419
      long success,
35420
      ShoppingCartException scx)
48 ashish 35421
    {
35422
      this();
35423
      this.success = success;
35424
      setSuccessIsSet(true);
553 chandransh 35425
      this.scx = scx;
48 ashish 35426
    }
35427
 
35428
    /**
35429
     * Performs a deep copy on <i>other</i>.
35430
     */
553 chandransh 35431
    public createCart_result(createCart_result other) {
48 ashish 35432
      __isset_bit_vector.clear();
35433
      __isset_bit_vector.or(other.__isset_bit_vector);
35434
      this.success = other.success;
553 chandransh 35435
      if (other.isSetScx()) {
35436
        this.scx = new ShoppingCartException(other.scx);
48 ashish 35437
      }
35438
    }
35439
 
553 chandransh 35440
    public createCart_result deepCopy() {
35441
      return new createCart_result(this);
48 ashish 35442
    }
35443
 
3430 rajveer 35444
    @Override
35445
    public void clear() {
35446
      setSuccessIsSet(false);
35447
      this.success = 0;
35448
      this.scx = null;
48 ashish 35449
    }
35450
 
553 chandransh 35451
    public long getSuccess() {
48 ashish 35452
      return this.success;
35453
    }
35454
 
3430 rajveer 35455
    public void setSuccess(long success) {
48 ashish 35456
      this.success = success;
35457
      setSuccessIsSet(true);
35458
    }
35459
 
35460
    public void unsetSuccess() {
35461
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35462
    }
35463
 
3430 rajveer 35464
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 35465
    public boolean isSetSuccess() {
35466
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35467
    }
35468
 
35469
    public void setSuccessIsSet(boolean value) {
35470
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35471
    }
35472
 
553 chandransh 35473
    public ShoppingCartException getScx() {
35474
      return this.scx;
48 ashish 35475
    }
35476
 
3430 rajveer 35477
    public void setScx(ShoppingCartException scx) {
553 chandransh 35478
      this.scx = scx;
48 ashish 35479
    }
35480
 
553 chandransh 35481
    public void unsetScx() {
35482
      this.scx = null;
48 ashish 35483
    }
35484
 
3430 rajveer 35485
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 35486
    public boolean isSetScx() {
35487
      return this.scx != null;
48 ashish 35488
    }
35489
 
553 chandransh 35490
    public void setScxIsSet(boolean value) {
48 ashish 35491
      if (!value) {
553 chandransh 35492
        this.scx = null;
48 ashish 35493
      }
35494
    }
35495
 
35496
    public void setFieldValue(_Fields field, Object value) {
35497
      switch (field) {
35498
      case SUCCESS:
35499
        if (value == null) {
35500
          unsetSuccess();
35501
        } else {
553 chandransh 35502
          setSuccess((Long)value);
48 ashish 35503
        }
35504
        break;
35505
 
553 chandransh 35506
      case SCX:
48 ashish 35507
        if (value == null) {
553 chandransh 35508
          unsetScx();
48 ashish 35509
        } else {
553 chandransh 35510
          setScx((ShoppingCartException)value);
48 ashish 35511
        }
35512
        break;
35513
 
35514
      }
35515
    }
35516
 
35517
    public Object getFieldValue(_Fields field) {
35518
      switch (field) {
35519
      case SUCCESS:
3430 rajveer 35520
        return Long.valueOf(getSuccess());
48 ashish 35521
 
553 chandransh 35522
      case SCX:
35523
        return getScx();
48 ashish 35524
 
35525
      }
35526
      throw new IllegalStateException();
35527
    }
35528
 
3430 rajveer 35529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35530
    public boolean isSet(_Fields field) {
35531
      if (field == null) {
35532
        throw new IllegalArgumentException();
35533
      }
48 ashish 35534
 
35535
      switch (field) {
35536
      case SUCCESS:
35537
        return isSetSuccess();
553 chandransh 35538
      case SCX:
35539
        return isSetScx();
48 ashish 35540
      }
35541
      throw new IllegalStateException();
35542
    }
35543
 
35544
    @Override
35545
    public boolean equals(Object that) {
35546
      if (that == null)
35547
        return false;
553 chandransh 35548
      if (that instanceof createCart_result)
35549
        return this.equals((createCart_result)that);
48 ashish 35550
      return false;
35551
    }
35552
 
553 chandransh 35553
    public boolean equals(createCart_result that) {
48 ashish 35554
      if (that == null)
35555
        return false;
35556
 
35557
      boolean this_present_success = true;
35558
      boolean that_present_success = true;
35559
      if (this_present_success || that_present_success) {
35560
        if (!(this_present_success && that_present_success))
35561
          return false;
35562
        if (this.success != that.success)
35563
          return false;
35564
      }
35565
 
553 chandransh 35566
      boolean this_present_scx = true && this.isSetScx();
35567
      boolean that_present_scx = true && that.isSetScx();
35568
      if (this_present_scx || that_present_scx) {
35569
        if (!(this_present_scx && that_present_scx))
48 ashish 35570
          return false;
553 chandransh 35571
        if (!this.scx.equals(that.scx))
48 ashish 35572
          return false;
35573
      }
35574
 
35575
      return true;
35576
    }
35577
 
35578
    @Override
35579
    public int hashCode() {
35580
      return 0;
35581
    }
35582
 
553 chandransh 35583
    public int compareTo(createCart_result other) {
48 ashish 35584
      if (!getClass().equals(other.getClass())) {
35585
        return getClass().getName().compareTo(other.getClass().getName());
35586
      }
35587
 
35588
      int lastComparison = 0;
553 chandransh 35589
      createCart_result typedOther = (createCart_result)other;
48 ashish 35590
 
3430 rajveer 35591
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 35592
      if (lastComparison != 0) {
35593
        return lastComparison;
35594
      }
3430 rajveer 35595
      if (isSetSuccess()) {
35596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35597
        if (lastComparison != 0) {
35598
          return lastComparison;
35599
        }
48 ashish 35600
      }
3430 rajveer 35601
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 35602
      if (lastComparison != 0) {
35603
        return lastComparison;
35604
      }
3430 rajveer 35605
      if (isSetScx()) {
35606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
35607
        if (lastComparison != 0) {
35608
          return lastComparison;
35609
        }
48 ashish 35610
      }
35611
      return 0;
35612
    }
35613
 
3430 rajveer 35614
    public _Fields fieldForId(int fieldId) {
35615
      return _Fields.findByThriftId(fieldId);
35616
    }
35617
 
35618
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35619
      org.apache.thrift.protocol.TField field;
48 ashish 35620
      iprot.readStructBegin();
35621
      while (true)
35622
      {
35623
        field = iprot.readFieldBegin();
3430 rajveer 35624
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 35625
          break;
35626
        }
3430 rajveer 35627
        switch (field.id) {
35628
          case 0: // SUCCESS
35629
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35630
              this.success = iprot.readI64();
35631
              setSuccessIsSet(true);
35632
            } else { 
35633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35634
            }
35635
            break;
35636
          case 1: // SCX
35637
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35638
              this.scx = new ShoppingCartException();
35639
              this.scx.read(iprot);
35640
            } else { 
35641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35642
            }
35643
            break;
35644
          default:
35645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 35646
        }
3430 rajveer 35647
        iprot.readFieldEnd();
48 ashish 35648
      }
35649
      iprot.readStructEnd();
35650
      validate();
35651
    }
35652
 
3430 rajveer 35653
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 35654
      oprot.writeStructBegin(STRUCT_DESC);
35655
 
35656
      if (this.isSetSuccess()) {
35657
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 35658
        oprot.writeI64(this.success);
48 ashish 35659
        oprot.writeFieldEnd();
553 chandransh 35660
      } else if (this.isSetScx()) {
35661
        oprot.writeFieldBegin(SCX_FIELD_DESC);
35662
        this.scx.write(oprot);
48 ashish 35663
        oprot.writeFieldEnd();
35664
      }
35665
      oprot.writeFieldStop();
35666
      oprot.writeStructEnd();
35667
    }
35668
 
35669
    @Override
35670
    public String toString() {
553 chandransh 35671
      StringBuilder sb = new StringBuilder("createCart_result(");
48 ashish 35672
      boolean first = true;
35673
 
35674
      sb.append("success:");
35675
      sb.append(this.success);
35676
      first = false;
35677
      if (!first) sb.append(", ");
553 chandransh 35678
      sb.append("scx:");
35679
      if (this.scx == null) {
48 ashish 35680
        sb.append("null");
35681
      } else {
553 chandransh 35682
        sb.append(this.scx);
48 ashish 35683
      }
35684
      first = false;
35685
      sb.append(")");
35686
      return sb.toString();
35687
    }
35688
 
3430 rajveer 35689
    public void validate() throws org.apache.thrift.TException {
48 ashish 35690
      // check for required fields
35691
    }
35692
 
3430 rajveer 35693
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35694
      try {
35695
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35696
      } catch (org.apache.thrift.TException te) {
35697
        throw new java.io.IOException(te);
35698
      }
35699
    }
35700
 
35701
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35702
      try {
35703
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35704
      } catch (org.apache.thrift.TException te) {
35705
        throw new java.io.IOException(te);
35706
      }
35707
    }
35708
 
48 ashish 35709
  }
35710
 
3430 rajveer 35711
  public static class getCurrentCart_args implements org.apache.thrift.TBase<getCurrentCart_args, getCurrentCart_args._Fields>, java.io.Serializable, Cloneable   {
35712
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentCart_args");
506 rajveer 35713
 
3430 rajveer 35714
    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 35715
 
3430 rajveer 35716
    private long userId; // required
506 rajveer 35717
 
35718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 35720
      USER_ID((short)1, "userId");
506 rajveer 35721
 
35722
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35723
 
35724
      static {
35725
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35726
          byName.put(field.getFieldName(), field);
35727
        }
35728
      }
35729
 
35730
      /**
35731
       * Find the _Fields constant that matches fieldId, or null if its not found.
35732
       */
35733
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35734
        switch(fieldId) {
35735
          case 1: // USER_ID
35736
            return USER_ID;
35737
          default:
35738
            return null;
35739
        }
506 rajveer 35740
      }
35741
 
35742
      /**
35743
       * Find the _Fields constant that matches fieldId, throwing an exception
35744
       * if it is not found.
35745
       */
35746
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35747
        _Fields fields = findByThriftId(fieldId);
35748
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35749
        return fields;
35750
      }
35751
 
35752
      /**
35753
       * Find the _Fields constant that matches name, or null if its not found.
35754
       */
35755
      public static _Fields findByName(String name) {
35756
        return byName.get(name);
35757
      }
35758
 
35759
      private final short _thriftId;
35760
      private final String _fieldName;
35761
 
35762
      _Fields(short thriftId, String fieldName) {
35763
        _thriftId = thriftId;
35764
        _fieldName = fieldName;
35765
      }
35766
 
35767
      public short getThriftFieldId() {
35768
        return _thriftId;
35769
      }
35770
 
35771
      public String getFieldName() {
35772
        return _fieldName;
35773
      }
35774
    }
35775
 
35776
    // isset id assignments
35777
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 35778
    private BitSet __isset_bit_vector = new BitSet(1);
506 rajveer 35779
 
3430 rajveer 35780
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
506 rajveer 35781
    static {
3430 rajveer 35782
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35783
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35785
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35786
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentCart_args.class, metaDataMap);
506 rajveer 35787
    }
35788
 
553 chandransh 35789
    public getCurrentCart_args() {
506 rajveer 35790
    }
35791
 
553 chandransh 35792
    public getCurrentCart_args(
35793
      long userId)
506 rajveer 35794
    {
35795
      this();
553 chandransh 35796
      this.userId = userId;
35797
      setUserIdIsSet(true);
506 rajveer 35798
    }
35799
 
35800
    /**
35801
     * Performs a deep copy on <i>other</i>.
35802
     */
553 chandransh 35803
    public getCurrentCart_args(getCurrentCart_args other) {
506 rajveer 35804
      __isset_bit_vector.clear();
35805
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 35806
      this.userId = other.userId;
506 rajveer 35807
    }
35808
 
553 chandransh 35809
    public getCurrentCart_args deepCopy() {
35810
      return new getCurrentCart_args(this);
506 rajveer 35811
    }
35812
 
3430 rajveer 35813
    @Override
35814
    public void clear() {
35815
      setUserIdIsSet(false);
35816
      this.userId = 0;
506 rajveer 35817
    }
35818
 
553 chandransh 35819
    public long getUserId() {
35820
      return this.userId;
506 rajveer 35821
    }
35822
 
3430 rajveer 35823
    public void setUserId(long userId) {
553 chandransh 35824
      this.userId = userId;
35825
      setUserIdIsSet(true);
506 rajveer 35826
    }
35827
 
553 chandransh 35828
    public void unsetUserId() {
506 rajveer 35829
      __isset_bit_vector.clear(__USERID_ISSET_ID);
35830
    }
35831
 
3430 rajveer 35832
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 35833
    public boolean isSetUserId() {
506 rajveer 35834
      return __isset_bit_vector.get(__USERID_ISSET_ID);
35835
    }
35836
 
553 chandransh 35837
    public void setUserIdIsSet(boolean value) {
506 rajveer 35838
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
35839
    }
35840
 
553 chandransh 35841
    public void setFieldValue(_Fields field, Object value) {
35842
      switch (field) {
35843
      case USER_ID:
35844
        if (value == null) {
35845
          unsetUserId();
35846
        } else {
35847
          setUserId((Long)value);
35848
        }
35849
        break;
35850
 
35851
      }
506 rajveer 35852
    }
35853
 
553 chandransh 35854
    public Object getFieldValue(_Fields field) {
35855
      switch (field) {
35856
      case USER_ID:
3430 rajveer 35857
        return Long.valueOf(getUserId());
553 chandransh 35858
 
35859
      }
35860
      throw new IllegalStateException();
35861
    }
35862
 
3430 rajveer 35863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35864
    public boolean isSet(_Fields field) {
35865
      if (field == null) {
35866
        throw new IllegalArgumentException();
35867
      }
553 chandransh 35868
 
35869
      switch (field) {
35870
      case USER_ID:
35871
        return isSetUserId();
35872
      }
35873
      throw new IllegalStateException();
35874
    }
35875
 
35876
    @Override
35877
    public boolean equals(Object that) {
35878
      if (that == null)
35879
        return false;
35880
      if (that instanceof getCurrentCart_args)
35881
        return this.equals((getCurrentCart_args)that);
35882
      return false;
35883
    }
35884
 
35885
    public boolean equals(getCurrentCart_args that) {
35886
      if (that == null)
35887
        return false;
35888
 
35889
      boolean this_present_userId = true;
35890
      boolean that_present_userId = true;
35891
      if (this_present_userId || that_present_userId) {
35892
        if (!(this_present_userId && that_present_userId))
35893
          return false;
35894
        if (this.userId != that.userId)
35895
          return false;
35896
      }
35897
 
35898
      return true;
35899
    }
35900
 
35901
    @Override
35902
    public int hashCode() {
35903
      return 0;
35904
    }
35905
 
35906
    public int compareTo(getCurrentCart_args other) {
35907
      if (!getClass().equals(other.getClass())) {
35908
        return getClass().getName().compareTo(other.getClass().getName());
35909
      }
35910
 
35911
      int lastComparison = 0;
35912
      getCurrentCart_args typedOther = (getCurrentCart_args)other;
35913
 
3430 rajveer 35914
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 35915
      if (lastComparison != 0) {
35916
        return lastComparison;
35917
      }
3430 rajveer 35918
      if (isSetUserId()) {
35919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
35920
        if (lastComparison != 0) {
35921
          return lastComparison;
35922
        }
553 chandransh 35923
      }
35924
      return 0;
35925
    }
35926
 
3430 rajveer 35927
    public _Fields fieldForId(int fieldId) {
35928
      return _Fields.findByThriftId(fieldId);
35929
    }
35930
 
35931
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35932
      org.apache.thrift.protocol.TField field;
553 chandransh 35933
      iprot.readStructBegin();
35934
      while (true)
35935
      {
35936
        field = iprot.readFieldBegin();
3430 rajveer 35937
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 35938
          break;
35939
        }
3430 rajveer 35940
        switch (field.id) {
35941
          case 1: // USER_ID
35942
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35943
              this.userId = iprot.readI64();
35944
              setUserIdIsSet(true);
35945
            } else { 
35946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35947
            }
35948
            break;
35949
          default:
35950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 35951
        }
3430 rajveer 35952
        iprot.readFieldEnd();
553 chandransh 35953
      }
35954
      iprot.readStructEnd();
35955
      validate();
35956
    }
35957
 
3430 rajveer 35958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 35959
      validate();
35960
 
35961
      oprot.writeStructBegin(STRUCT_DESC);
35962
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
35963
      oprot.writeI64(this.userId);
35964
      oprot.writeFieldEnd();
35965
      oprot.writeFieldStop();
35966
      oprot.writeStructEnd();
35967
    }
35968
 
35969
    @Override
35970
    public String toString() {
35971
      StringBuilder sb = new StringBuilder("getCurrentCart_args(");
35972
      boolean first = true;
35973
 
35974
      sb.append("userId:");
35975
      sb.append(this.userId);
35976
      first = false;
35977
      sb.append(")");
35978
      return sb.toString();
35979
    }
35980
 
3430 rajveer 35981
    public void validate() throws org.apache.thrift.TException {
553 chandransh 35982
      // check for required fields
35983
    }
35984
 
3430 rajveer 35985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35986
      try {
35987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35988
      } catch (org.apache.thrift.TException te) {
35989
        throw new java.io.IOException(te);
35990
      }
35991
    }
35992
 
35993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35994
      try {
35995
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35996
        __isset_bit_vector = new BitSet(1);
35997
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35998
      } catch (org.apache.thrift.TException te) {
35999
        throw new java.io.IOException(te);
36000
      }
36001
    }
36002
 
553 chandransh 36003
  }
36004
 
3430 rajveer 36005
  public static class getCurrentCart_result implements org.apache.thrift.TBase<getCurrentCart_result, getCurrentCart_result._Fields>, java.io.Serializable, Cloneable   {
36006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentCart_result");
553 chandransh 36007
 
3430 rajveer 36008
    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);
36009
    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 36010
 
3430 rajveer 36011
    private Cart success; // required
36012
    private ShoppingCartException scx; // required
553 chandransh 36013
 
36014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 36016
      SUCCESS((short)0, "success"),
36017
      SCX((short)1, "scx");
36018
 
36019
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36020
 
36021
      static {
36022
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36023
          byName.put(field.getFieldName(), field);
36024
        }
36025
      }
36026
 
36027
      /**
36028
       * Find the _Fields constant that matches fieldId, or null if its not found.
36029
       */
36030
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36031
        switch(fieldId) {
36032
          case 0: // SUCCESS
36033
            return SUCCESS;
36034
          case 1: // SCX
36035
            return SCX;
36036
          default:
36037
            return null;
36038
        }
553 chandransh 36039
      }
36040
 
36041
      /**
36042
       * Find the _Fields constant that matches fieldId, throwing an exception
36043
       * if it is not found.
36044
       */
36045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36046
        _Fields fields = findByThriftId(fieldId);
36047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36048
        return fields;
36049
      }
36050
 
36051
      /**
36052
       * Find the _Fields constant that matches name, or null if its not found.
36053
       */
36054
      public static _Fields findByName(String name) {
36055
        return byName.get(name);
36056
      }
36057
 
36058
      private final short _thriftId;
36059
      private final String _fieldName;
36060
 
36061
      _Fields(short thriftId, String fieldName) {
36062
        _thriftId = thriftId;
36063
        _fieldName = fieldName;
36064
      }
36065
 
36066
      public short getThriftFieldId() {
36067
        return _thriftId;
36068
      }
36069
 
36070
      public String getFieldName() {
36071
        return _fieldName;
36072
      }
36073
    }
36074
 
36075
    // isset id assignments
36076
 
3430 rajveer 36077
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 36078
    static {
3430 rajveer 36079
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36080
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36081
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class)));
36082
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36084
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36085
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentCart_result.class, metaDataMap);
553 chandransh 36086
    }
36087
 
36088
    public getCurrentCart_result() {
36089
    }
36090
 
36091
    public getCurrentCart_result(
36092
      Cart success,
36093
      ShoppingCartException scx)
36094
    {
36095
      this();
36096
      this.success = success;
36097
      this.scx = scx;
36098
    }
36099
 
36100
    /**
36101
     * Performs a deep copy on <i>other</i>.
36102
     */
36103
    public getCurrentCart_result(getCurrentCart_result other) {
36104
      if (other.isSetSuccess()) {
36105
        this.success = new Cart(other.success);
36106
      }
36107
      if (other.isSetScx()) {
36108
        this.scx = new ShoppingCartException(other.scx);
36109
      }
36110
    }
36111
 
36112
    public getCurrentCart_result deepCopy() {
36113
      return new getCurrentCart_result(this);
36114
    }
36115
 
3430 rajveer 36116
    @Override
36117
    public void clear() {
36118
      this.success = null;
36119
      this.scx = null;
553 chandransh 36120
    }
36121
 
36122
    public Cart getSuccess() {
36123
      return this.success;
36124
    }
36125
 
3430 rajveer 36126
    public void setSuccess(Cart success) {
553 chandransh 36127
      this.success = success;
506 rajveer 36128
    }
36129
 
553 chandransh 36130
    public void unsetSuccess() {
36131
      this.success = null;
506 rajveer 36132
    }
36133
 
3430 rajveer 36134
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 36135
    public boolean isSetSuccess() {
36136
      return this.success != null;
506 rajveer 36137
    }
36138
 
553 chandransh 36139
    public void setSuccessIsSet(boolean value) {
36140
      if (!value) {
36141
        this.success = null;
36142
      }
506 rajveer 36143
    }
36144
 
553 chandransh 36145
    public ShoppingCartException getScx() {
36146
      return this.scx;
36147
    }
36148
 
3430 rajveer 36149
    public void setScx(ShoppingCartException scx) {
553 chandransh 36150
      this.scx = scx;
36151
    }
36152
 
36153
    public void unsetScx() {
36154
      this.scx = null;
36155
    }
36156
 
3430 rajveer 36157
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 36158
    public boolean isSetScx() {
36159
      return this.scx != null;
36160
    }
36161
 
36162
    public void setScxIsSet(boolean value) {
36163
      if (!value) {
36164
        this.scx = null;
36165
      }
36166
    }
36167
 
506 rajveer 36168
    public void setFieldValue(_Fields field, Object value) {
36169
      switch (field) {
553 chandransh 36170
      case SUCCESS:
506 rajveer 36171
        if (value == null) {
553 chandransh 36172
          unsetSuccess();
506 rajveer 36173
        } else {
553 chandransh 36174
          setSuccess((Cart)value);
506 rajveer 36175
        }
36176
        break;
36177
 
553 chandransh 36178
      case SCX:
506 rajveer 36179
        if (value == null) {
553 chandransh 36180
          unsetScx();
506 rajveer 36181
        } else {
553 chandransh 36182
          setScx((ShoppingCartException)value);
506 rajveer 36183
        }
36184
        break;
36185
 
36186
      }
36187
    }
36188
 
36189
    public Object getFieldValue(_Fields field) {
36190
      switch (field) {
553 chandransh 36191
      case SUCCESS:
36192
        return getSuccess();
506 rajveer 36193
 
553 chandransh 36194
      case SCX:
36195
        return getScx();
506 rajveer 36196
 
36197
      }
36198
      throw new IllegalStateException();
36199
    }
36200
 
3430 rajveer 36201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36202
    public boolean isSet(_Fields field) {
36203
      if (field == null) {
36204
        throw new IllegalArgumentException();
36205
      }
506 rajveer 36206
 
36207
      switch (field) {
553 chandransh 36208
      case SUCCESS:
36209
        return isSetSuccess();
36210
      case SCX:
36211
        return isSetScx();
506 rajveer 36212
      }
36213
      throw new IllegalStateException();
36214
    }
36215
 
36216
    @Override
36217
    public boolean equals(Object that) {
36218
      if (that == null)
36219
        return false;
553 chandransh 36220
      if (that instanceof getCurrentCart_result)
36221
        return this.equals((getCurrentCart_result)that);
506 rajveer 36222
      return false;
36223
    }
36224
 
553 chandransh 36225
    public boolean equals(getCurrentCart_result that) {
506 rajveer 36226
      if (that == null)
36227
        return false;
36228
 
553 chandransh 36229
      boolean this_present_success = true && this.isSetSuccess();
36230
      boolean that_present_success = true && that.isSetSuccess();
36231
      if (this_present_success || that_present_success) {
36232
        if (!(this_present_success && that_present_success))
506 rajveer 36233
          return false;
553 chandransh 36234
        if (!this.success.equals(that.success))
506 rajveer 36235
          return false;
36236
      }
36237
 
553 chandransh 36238
      boolean this_present_scx = true && this.isSetScx();
36239
      boolean that_present_scx = true && that.isSetScx();
36240
      if (this_present_scx || that_present_scx) {
36241
        if (!(this_present_scx && that_present_scx))
506 rajveer 36242
          return false;
553 chandransh 36243
        if (!this.scx.equals(that.scx))
506 rajveer 36244
          return false;
36245
      }
36246
 
36247
      return true;
36248
    }
36249
 
36250
    @Override
36251
    public int hashCode() {
36252
      return 0;
36253
    }
36254
 
553 chandransh 36255
    public int compareTo(getCurrentCart_result other) {
506 rajveer 36256
      if (!getClass().equals(other.getClass())) {
36257
        return getClass().getName().compareTo(other.getClass().getName());
36258
      }
36259
 
36260
      int lastComparison = 0;
553 chandransh 36261
      getCurrentCart_result typedOther = (getCurrentCart_result)other;
506 rajveer 36262
 
3430 rajveer 36263
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
506 rajveer 36264
      if (lastComparison != 0) {
36265
        return lastComparison;
36266
      }
3430 rajveer 36267
      if (isSetSuccess()) {
36268
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36269
        if (lastComparison != 0) {
36270
          return lastComparison;
36271
        }
506 rajveer 36272
      }
3430 rajveer 36273
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
506 rajveer 36274
      if (lastComparison != 0) {
36275
        return lastComparison;
36276
      }
3430 rajveer 36277
      if (isSetScx()) {
36278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
36279
        if (lastComparison != 0) {
36280
          return lastComparison;
36281
        }
506 rajveer 36282
      }
36283
      return 0;
36284
    }
36285
 
3430 rajveer 36286
    public _Fields fieldForId(int fieldId) {
36287
      return _Fields.findByThriftId(fieldId);
36288
    }
36289
 
36290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36291
      org.apache.thrift.protocol.TField field;
506 rajveer 36292
      iprot.readStructBegin();
36293
      while (true)
36294
      {
36295
        field = iprot.readFieldBegin();
3430 rajveer 36296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
506 rajveer 36297
          break;
36298
        }
3430 rajveer 36299
        switch (field.id) {
36300
          case 0: // SUCCESS
36301
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36302
              this.success = new Cart();
36303
              this.success.read(iprot);
36304
            } else { 
36305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36306
            }
36307
            break;
36308
          case 1: // SCX
36309
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36310
              this.scx = new ShoppingCartException();
36311
              this.scx.read(iprot);
36312
            } else { 
36313
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36314
            }
36315
            break;
36316
          default:
36317
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 36318
        }
3430 rajveer 36319
        iprot.readFieldEnd();
553 chandransh 36320
      }
36321
      iprot.readStructEnd();
36322
      validate();
36323
    }
36324
 
3430 rajveer 36325
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 36326
      oprot.writeStructBegin(STRUCT_DESC);
36327
 
36328
      if (this.isSetSuccess()) {
36329
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36330
        this.success.write(oprot);
36331
        oprot.writeFieldEnd();
36332
      } else if (this.isSetScx()) {
36333
        oprot.writeFieldBegin(SCX_FIELD_DESC);
36334
        this.scx.write(oprot);
36335
        oprot.writeFieldEnd();
36336
      }
36337
      oprot.writeFieldStop();
36338
      oprot.writeStructEnd();
36339
    }
36340
 
36341
    @Override
36342
    public String toString() {
36343
      StringBuilder sb = new StringBuilder("getCurrentCart_result(");
36344
      boolean first = true;
36345
 
36346
      sb.append("success:");
36347
      if (this.success == null) {
36348
        sb.append("null");
36349
      } else {
36350
        sb.append(this.success);
36351
      }
36352
      first = false;
36353
      if (!first) sb.append(", ");
36354
      sb.append("scx:");
36355
      if (this.scx == null) {
36356
        sb.append("null");
36357
      } else {
36358
        sb.append(this.scx);
36359
      }
36360
      first = false;
36361
      sb.append(")");
36362
      return sb.toString();
36363
    }
36364
 
3430 rajveer 36365
    public void validate() throws org.apache.thrift.TException {
553 chandransh 36366
      // check for required fields
36367
    }
36368
 
3430 rajveer 36369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36370
      try {
36371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36372
      } catch (org.apache.thrift.TException te) {
36373
        throw new java.io.IOException(te);
36374
      }
36375
    }
36376
 
36377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36378
      try {
36379
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36380
      } catch (org.apache.thrift.TException te) {
36381
        throw new java.io.IOException(te);
36382
      }
36383
    }
36384
 
553 chandransh 36385
  }
36386
 
3430 rajveer 36387
  public static class getCart_args implements org.apache.thrift.TBase<getCart_args, getCart_args._Fields>, java.io.Serializable, Cloneable   {
36388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCart_args");
553 chandransh 36389
 
3430 rajveer 36390
    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 36391
 
3430 rajveer 36392
    private long cartId; // required
553 chandransh 36393
 
36394
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36395
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 36396
      CART_ID((short)1, "cartId");
36397
 
36398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36399
 
36400
      static {
36401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36402
          byName.put(field.getFieldName(), field);
36403
        }
36404
      }
36405
 
36406
      /**
36407
       * Find the _Fields constant that matches fieldId, or null if its not found.
36408
       */
36409
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36410
        switch(fieldId) {
36411
          case 1: // CART_ID
36412
            return CART_ID;
36413
          default:
36414
            return null;
36415
        }
553 chandransh 36416
      }
36417
 
36418
      /**
36419
       * Find the _Fields constant that matches fieldId, throwing an exception
36420
       * if it is not found.
36421
       */
36422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36423
        _Fields fields = findByThriftId(fieldId);
36424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36425
        return fields;
36426
      }
36427
 
36428
      /**
36429
       * Find the _Fields constant that matches name, or null if its not found.
36430
       */
36431
      public static _Fields findByName(String name) {
36432
        return byName.get(name);
36433
      }
36434
 
36435
      private final short _thriftId;
36436
      private final String _fieldName;
36437
 
36438
      _Fields(short thriftId, String fieldName) {
36439
        _thriftId = thriftId;
36440
        _fieldName = fieldName;
36441
      }
36442
 
36443
      public short getThriftFieldId() {
36444
        return _thriftId;
36445
      }
36446
 
36447
      public String getFieldName() {
36448
        return _fieldName;
36449
      }
36450
    }
36451
 
36452
    // isset id assignments
36453
    private static final int __CARTID_ISSET_ID = 0;
36454
    private BitSet __isset_bit_vector = new BitSet(1);
36455
 
3430 rajveer 36456
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 36457
    static {
3430 rajveer 36458
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36459
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36460
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36461
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36462
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCart_args.class, metaDataMap);
553 chandransh 36463
    }
36464
 
36465
    public getCart_args() {
36466
    }
36467
 
36468
    public getCart_args(
36469
      long cartId)
36470
    {
36471
      this();
36472
      this.cartId = cartId;
36473
      setCartIdIsSet(true);
36474
    }
36475
 
36476
    /**
36477
     * Performs a deep copy on <i>other</i>.
36478
     */
36479
    public getCart_args(getCart_args other) {
36480
      __isset_bit_vector.clear();
36481
      __isset_bit_vector.or(other.__isset_bit_vector);
36482
      this.cartId = other.cartId;
36483
    }
36484
 
36485
    public getCart_args deepCopy() {
36486
      return new getCart_args(this);
36487
    }
36488
 
3430 rajveer 36489
    @Override
36490
    public void clear() {
36491
      setCartIdIsSet(false);
36492
      this.cartId = 0;
553 chandransh 36493
    }
36494
 
36495
    public long getCartId() {
36496
      return this.cartId;
36497
    }
36498
 
3430 rajveer 36499
    public void setCartId(long cartId) {
553 chandransh 36500
      this.cartId = cartId;
36501
      setCartIdIsSet(true);
36502
    }
36503
 
36504
    public void unsetCartId() {
36505
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
36506
    }
36507
 
3430 rajveer 36508
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 36509
    public boolean isSetCartId() {
36510
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
36511
    }
36512
 
36513
    public void setCartIdIsSet(boolean value) {
36514
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
36515
    }
36516
 
36517
    public void setFieldValue(_Fields field, Object value) {
36518
      switch (field) {
36519
      case CART_ID:
36520
        if (value == null) {
36521
          unsetCartId();
36522
        } else {
36523
          setCartId((Long)value);
36524
        }
36525
        break;
36526
 
36527
      }
36528
    }
36529
 
36530
    public Object getFieldValue(_Fields field) {
36531
      switch (field) {
36532
      case CART_ID:
3430 rajveer 36533
        return Long.valueOf(getCartId());
553 chandransh 36534
 
36535
      }
36536
      throw new IllegalStateException();
36537
    }
36538
 
3430 rajveer 36539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36540
    public boolean isSet(_Fields field) {
36541
      if (field == null) {
36542
        throw new IllegalArgumentException();
36543
      }
553 chandransh 36544
 
36545
      switch (field) {
36546
      case CART_ID:
36547
        return isSetCartId();
36548
      }
36549
      throw new IllegalStateException();
36550
    }
36551
 
36552
    @Override
36553
    public boolean equals(Object that) {
36554
      if (that == null)
36555
        return false;
36556
      if (that instanceof getCart_args)
36557
        return this.equals((getCart_args)that);
36558
      return false;
36559
    }
36560
 
36561
    public boolean equals(getCart_args that) {
36562
      if (that == null)
36563
        return false;
36564
 
36565
      boolean this_present_cartId = true;
36566
      boolean that_present_cartId = true;
36567
      if (this_present_cartId || that_present_cartId) {
36568
        if (!(this_present_cartId && that_present_cartId))
36569
          return false;
36570
        if (this.cartId != that.cartId)
36571
          return false;
36572
      }
36573
 
36574
      return true;
36575
    }
36576
 
36577
    @Override
36578
    public int hashCode() {
36579
      return 0;
36580
    }
36581
 
36582
    public int compareTo(getCart_args other) {
36583
      if (!getClass().equals(other.getClass())) {
36584
        return getClass().getName().compareTo(other.getClass().getName());
36585
      }
36586
 
36587
      int lastComparison = 0;
36588
      getCart_args typedOther = (getCart_args)other;
36589
 
3430 rajveer 36590
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 36591
      if (lastComparison != 0) {
36592
        return lastComparison;
36593
      }
3430 rajveer 36594
      if (isSetCartId()) {
36595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
36596
        if (lastComparison != 0) {
36597
          return lastComparison;
36598
        }
553 chandransh 36599
      }
36600
      return 0;
36601
    }
36602
 
3430 rajveer 36603
    public _Fields fieldForId(int fieldId) {
36604
      return _Fields.findByThriftId(fieldId);
36605
    }
36606
 
36607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36608
      org.apache.thrift.protocol.TField field;
553 chandransh 36609
      iprot.readStructBegin();
36610
      while (true)
36611
      {
36612
        field = iprot.readFieldBegin();
3430 rajveer 36613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 36614
          break;
36615
        }
3430 rajveer 36616
        switch (field.id) {
36617
          case 1: // CART_ID
36618
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36619
              this.cartId = iprot.readI64();
36620
              setCartIdIsSet(true);
36621
            } else { 
36622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36623
            }
36624
            break;
36625
          default:
36626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
506 rajveer 36627
        }
3430 rajveer 36628
        iprot.readFieldEnd();
506 rajveer 36629
      }
36630
      iprot.readStructEnd();
36631
      validate();
36632
    }
36633
 
3430 rajveer 36634
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
506 rajveer 36635
      validate();
36636
 
36637
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 36638
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
36639
      oprot.writeI64(this.cartId);
506 rajveer 36640
      oprot.writeFieldEnd();
36641
      oprot.writeFieldStop();
36642
      oprot.writeStructEnd();
36643
    }
36644
 
36645
    @Override
36646
    public String toString() {
553 chandransh 36647
      StringBuilder sb = new StringBuilder("getCart_args(");
506 rajveer 36648
      boolean first = true;
36649
 
553 chandransh 36650
      sb.append("cartId:");
36651
      sb.append(this.cartId);
506 rajveer 36652
      first = false;
36653
      sb.append(")");
36654
      return sb.toString();
36655
    }
36656
 
3430 rajveer 36657
    public void validate() throws org.apache.thrift.TException {
506 rajveer 36658
      // check for required fields
36659
    }
36660
 
3430 rajveer 36661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36662
      try {
36663
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36664
      } catch (org.apache.thrift.TException te) {
36665
        throw new java.io.IOException(te);
36666
      }
36667
    }
36668
 
36669
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36670
      try {
36671
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36672
        __isset_bit_vector = new BitSet(1);
36673
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36674
      } catch (org.apache.thrift.TException te) {
36675
        throw new java.io.IOException(te);
36676
      }
36677
    }
36678
 
506 rajveer 36679
  }
36680
 
3430 rajveer 36681
  public static class getCart_result implements org.apache.thrift.TBase<getCart_result, getCart_result._Fields>, java.io.Serializable, Cloneable   {
36682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCart_result");
506 rajveer 36683
 
3430 rajveer 36684
    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);
36685
    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 36686
 
3430 rajveer 36687
    private Cart success; // required
36688
    private ShoppingCartException scx; // required
506 rajveer 36689
 
36690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36691
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
506 rajveer 36692
      SUCCESS((short)0, "success"),
553 chandransh 36693
      SCX((short)1, "scx");
506 rajveer 36694
 
36695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36696
 
36697
      static {
36698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36699
          byName.put(field.getFieldName(), field);
36700
        }
36701
      }
36702
 
36703
      /**
36704
       * Find the _Fields constant that matches fieldId, or null if its not found.
36705
       */
36706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36707
        switch(fieldId) {
36708
          case 0: // SUCCESS
36709
            return SUCCESS;
36710
          case 1: // SCX
36711
            return SCX;
36712
          default:
36713
            return null;
36714
        }
506 rajveer 36715
      }
36716
 
36717
      /**
36718
       * Find the _Fields constant that matches fieldId, throwing an exception
36719
       * if it is not found.
36720
       */
36721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36722
        _Fields fields = findByThriftId(fieldId);
36723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36724
        return fields;
36725
      }
36726
 
36727
      /**
36728
       * Find the _Fields constant that matches name, or null if its not found.
36729
       */
36730
      public static _Fields findByName(String name) {
36731
        return byName.get(name);
36732
      }
36733
 
36734
      private final short _thriftId;
36735
      private final String _fieldName;
36736
 
36737
      _Fields(short thriftId, String fieldName) {
36738
        _thriftId = thriftId;
36739
        _fieldName = fieldName;
36740
      }
36741
 
36742
      public short getThriftFieldId() {
36743
        return _thriftId;
36744
      }
36745
 
36746
      public String getFieldName() {
36747
        return _fieldName;
36748
      }
36749
    }
36750
 
36751
    // isset id assignments
36752
 
3430 rajveer 36753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
506 rajveer 36754
    static {
3430 rajveer 36755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36756
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36757
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class)));
36758
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36760
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36761
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCart_result.class, metaDataMap);
506 rajveer 36762
    }
36763
 
553 chandransh 36764
    public getCart_result() {
506 rajveer 36765
    }
36766
 
553 chandransh 36767
    public getCart_result(
36768
      Cart success,
36769
      ShoppingCartException scx)
506 rajveer 36770
    {
36771
      this();
36772
      this.success = success;
553 chandransh 36773
      this.scx = scx;
506 rajveer 36774
    }
36775
 
36776
    /**
36777
     * Performs a deep copy on <i>other</i>.
36778
     */
553 chandransh 36779
    public getCart_result(getCart_result other) {
36780
      if (other.isSetSuccess()) {
36781
        this.success = new Cart(other.success);
506 rajveer 36782
      }
553 chandransh 36783
      if (other.isSetScx()) {
36784
        this.scx = new ShoppingCartException(other.scx);
36785
      }
506 rajveer 36786
    }
36787
 
553 chandransh 36788
    public getCart_result deepCopy() {
36789
      return new getCart_result(this);
506 rajveer 36790
    }
36791
 
3430 rajveer 36792
    @Override
36793
    public void clear() {
36794
      this.success = null;
36795
      this.scx = null;
506 rajveer 36796
    }
36797
 
553 chandransh 36798
    public Cart getSuccess() {
506 rajveer 36799
      return this.success;
36800
    }
36801
 
3430 rajveer 36802
    public void setSuccess(Cart success) {
506 rajveer 36803
      this.success = success;
36804
    }
36805
 
36806
    public void unsetSuccess() {
553 chandransh 36807
      this.success = null;
506 rajveer 36808
    }
36809
 
3430 rajveer 36810
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
506 rajveer 36811
    public boolean isSetSuccess() {
553 chandransh 36812
      return this.success != null;
506 rajveer 36813
    }
36814
 
36815
    public void setSuccessIsSet(boolean value) {
553 chandransh 36816
      if (!value) {
36817
        this.success = null;
36818
      }
506 rajveer 36819
    }
36820
 
553 chandransh 36821
    public ShoppingCartException getScx() {
36822
      return this.scx;
506 rajveer 36823
    }
36824
 
3430 rajveer 36825
    public void setScx(ShoppingCartException scx) {
553 chandransh 36826
      this.scx = scx;
506 rajveer 36827
    }
36828
 
553 chandransh 36829
    public void unsetScx() {
36830
      this.scx = null;
506 rajveer 36831
    }
36832
 
3430 rajveer 36833
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 36834
    public boolean isSetScx() {
36835
      return this.scx != null;
506 rajveer 36836
    }
36837
 
553 chandransh 36838
    public void setScxIsSet(boolean value) {
506 rajveer 36839
      if (!value) {
553 chandransh 36840
        this.scx = null;
506 rajveer 36841
      }
36842
    }
36843
 
36844
    public void setFieldValue(_Fields field, Object value) {
36845
      switch (field) {
36846
      case SUCCESS:
36847
        if (value == null) {
36848
          unsetSuccess();
36849
        } else {
553 chandransh 36850
          setSuccess((Cart)value);
506 rajveer 36851
        }
36852
        break;
36853
 
553 chandransh 36854
      case SCX:
506 rajveer 36855
        if (value == null) {
553 chandransh 36856
          unsetScx();
506 rajveer 36857
        } else {
553 chandransh 36858
          setScx((ShoppingCartException)value);
506 rajveer 36859
        }
36860
        break;
36861
 
36862
      }
36863
    }
36864
 
36865
    public Object getFieldValue(_Fields field) {
36866
      switch (field) {
36867
      case SUCCESS:
553 chandransh 36868
        return getSuccess();
506 rajveer 36869
 
553 chandransh 36870
      case SCX:
36871
        return getScx();
506 rajveer 36872
 
36873
      }
36874
      throw new IllegalStateException();
36875
    }
36876
 
3430 rajveer 36877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36878
    public boolean isSet(_Fields field) {
36879
      if (field == null) {
36880
        throw new IllegalArgumentException();
36881
      }
506 rajveer 36882
 
36883
      switch (field) {
36884
      case SUCCESS:
36885
        return isSetSuccess();
553 chandransh 36886
      case SCX:
36887
        return isSetScx();
506 rajveer 36888
      }
36889
      throw new IllegalStateException();
36890
    }
36891
 
36892
    @Override
36893
    public boolean equals(Object that) {
36894
      if (that == null)
36895
        return false;
553 chandransh 36896
      if (that instanceof getCart_result)
36897
        return this.equals((getCart_result)that);
506 rajveer 36898
      return false;
36899
    }
36900
 
553 chandransh 36901
    public boolean equals(getCart_result that) {
506 rajveer 36902
      if (that == null)
36903
        return false;
36904
 
553 chandransh 36905
      boolean this_present_success = true && this.isSetSuccess();
36906
      boolean that_present_success = true && that.isSetSuccess();
506 rajveer 36907
      if (this_present_success || that_present_success) {
36908
        if (!(this_present_success && that_present_success))
36909
          return false;
553 chandransh 36910
        if (!this.success.equals(that.success))
506 rajveer 36911
          return false;
36912
      }
36913
 
553 chandransh 36914
      boolean this_present_scx = true && this.isSetScx();
36915
      boolean that_present_scx = true && that.isSetScx();
36916
      if (this_present_scx || that_present_scx) {
36917
        if (!(this_present_scx && that_present_scx))
506 rajveer 36918
          return false;
553 chandransh 36919
        if (!this.scx.equals(that.scx))
506 rajveer 36920
          return false;
36921
      }
36922
 
36923
      return true;
36924
    }
36925
 
36926
    @Override
36927
    public int hashCode() {
36928
      return 0;
36929
    }
36930
 
553 chandransh 36931
    public int compareTo(getCart_result other) {
506 rajveer 36932
      if (!getClass().equals(other.getClass())) {
36933
        return getClass().getName().compareTo(other.getClass().getName());
36934
      }
36935
 
36936
      int lastComparison = 0;
553 chandransh 36937
      getCart_result typedOther = (getCart_result)other;
506 rajveer 36938
 
3430 rajveer 36939
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
506 rajveer 36940
      if (lastComparison != 0) {
36941
        return lastComparison;
36942
      }
3430 rajveer 36943
      if (isSetSuccess()) {
36944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36945
        if (lastComparison != 0) {
36946
          return lastComparison;
36947
        }
506 rajveer 36948
      }
3430 rajveer 36949
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
506 rajveer 36950
      if (lastComparison != 0) {
36951
        return lastComparison;
36952
      }
3430 rajveer 36953
      if (isSetScx()) {
36954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
36955
        if (lastComparison != 0) {
36956
          return lastComparison;
36957
        }
506 rajveer 36958
      }
36959
      return 0;
36960
    }
36961
 
3430 rajveer 36962
    public _Fields fieldForId(int fieldId) {
36963
      return _Fields.findByThriftId(fieldId);
36964
    }
36965
 
36966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36967
      org.apache.thrift.protocol.TField field;
506 rajveer 36968
      iprot.readStructBegin();
36969
      while (true)
36970
      {
36971
        field = iprot.readFieldBegin();
3430 rajveer 36972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
506 rajveer 36973
          break;
36974
        }
3430 rajveer 36975
        switch (field.id) {
36976
          case 0: // SUCCESS
36977
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36978
              this.success = new Cart();
36979
              this.success.read(iprot);
36980
            } else { 
36981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36982
            }
36983
            break;
36984
          case 1: // SCX
36985
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36986
              this.scx = new ShoppingCartException();
36987
              this.scx.read(iprot);
36988
            } else { 
36989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36990
            }
36991
            break;
36992
          default:
36993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
506 rajveer 36994
        }
3430 rajveer 36995
        iprot.readFieldEnd();
506 rajveer 36996
      }
36997
      iprot.readStructEnd();
36998
      validate();
36999
    }
37000
 
3430 rajveer 37001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
506 rajveer 37002
      oprot.writeStructBegin(STRUCT_DESC);
37003
 
37004
      if (this.isSetSuccess()) {
37005
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 37006
        this.success.write(oprot);
506 rajveer 37007
        oprot.writeFieldEnd();
553 chandransh 37008
      } else if (this.isSetScx()) {
37009
        oprot.writeFieldBegin(SCX_FIELD_DESC);
37010
        this.scx.write(oprot);
506 rajveer 37011
        oprot.writeFieldEnd();
37012
      }
37013
      oprot.writeFieldStop();
37014
      oprot.writeStructEnd();
37015
    }
37016
 
37017
    @Override
37018
    public String toString() {
553 chandransh 37019
      StringBuilder sb = new StringBuilder("getCart_result(");
506 rajveer 37020
      boolean first = true;
37021
 
37022
      sb.append("success:");
553 chandransh 37023
      if (this.success == null) {
37024
        sb.append("null");
37025
      } else {
37026
        sb.append(this.success);
37027
      }
506 rajveer 37028
      first = false;
37029
      if (!first) sb.append(", ");
553 chandransh 37030
      sb.append("scx:");
37031
      if (this.scx == null) {
506 rajveer 37032
        sb.append("null");
37033
      } else {
553 chandransh 37034
        sb.append(this.scx);
506 rajveer 37035
      }
37036
      first = false;
37037
      sb.append(")");
37038
      return sb.toString();
37039
    }
37040
 
3430 rajveer 37041
    public void validate() throws org.apache.thrift.TException {
506 rajveer 37042
      // check for required fields
37043
    }
37044
 
3430 rajveer 37045
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37046
      try {
37047
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37048
      } catch (org.apache.thrift.TException te) {
37049
        throw new java.io.IOException(te);
37050
      }
37051
    }
37052
 
37053
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37054
      try {
37055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37056
      } catch (org.apache.thrift.TException te) {
37057
        throw new java.io.IOException(te);
37058
      }
37059
    }
37060
 
506 rajveer 37061
  }
37062
 
3430 rajveer 37063
  public static class getCartsForUser_args implements org.apache.thrift.TBase<getCartsForUser_args, getCartsForUser_args._Fields>, java.io.Serializable, Cloneable   {
37064
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_args");
48 ashish 37065
 
3430 rajveer 37066
    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);
37067
    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 37068
 
3430 rajveer 37069
    private long userId; // required
37070
    private CartStatus status; // required
48 ashish 37071
 
37072
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37073
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 37074
      USER_ID((short)1, "userId"),
37075
      /**
37076
       * 
37077
       * @see CartStatus
37078
       */
37079
      STATUS((short)2, "status");
48 ashish 37080
 
37081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37082
 
37083
      static {
37084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37085
          byName.put(field.getFieldName(), field);
37086
        }
37087
      }
37088
 
37089
      /**
37090
       * Find the _Fields constant that matches fieldId, or null if its not found.
37091
       */
37092
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37093
        switch(fieldId) {
37094
          case 1: // USER_ID
37095
            return USER_ID;
37096
          case 2: // STATUS
37097
            return STATUS;
37098
          default:
37099
            return null;
37100
        }
48 ashish 37101
      }
37102
 
37103
      /**
37104
       * Find the _Fields constant that matches fieldId, throwing an exception
37105
       * if it is not found.
37106
       */
37107
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37108
        _Fields fields = findByThriftId(fieldId);
37109
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37110
        return fields;
37111
      }
37112
 
37113
      /**
37114
       * Find the _Fields constant that matches name, or null if its not found.
37115
       */
37116
      public static _Fields findByName(String name) {
37117
        return byName.get(name);
37118
      }
37119
 
37120
      private final short _thriftId;
37121
      private final String _fieldName;
37122
 
37123
      _Fields(short thriftId, String fieldName) {
37124
        _thriftId = thriftId;
37125
        _fieldName = fieldName;
37126
      }
37127
 
37128
      public short getThriftFieldId() {
37129
        return _thriftId;
37130
      }
37131
 
37132
      public String getFieldName() {
37133
        return _fieldName;
37134
      }
37135
    }
37136
 
37137
    // isset id assignments
37138
    private static final int __USERID_ISSET_ID = 0;
37139
    private BitSet __isset_bit_vector = new BitSet(1);
37140
 
3430 rajveer 37141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 37142
    static {
3430 rajveer 37143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37144
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37146
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37147
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
37148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_args.class, metaDataMap);
48 ashish 37150
    }
37151
 
553 chandransh 37152
    public getCartsForUser_args() {
48 ashish 37153
    }
37154
 
553 chandransh 37155
    public getCartsForUser_args(
37156
      long userId,
37157
      CartStatus status)
48 ashish 37158
    {
37159
      this();
553 chandransh 37160
      this.userId = userId;
37161
      setUserIdIsSet(true);
37162
      this.status = status;
48 ashish 37163
    }
37164
 
37165
    /**
37166
     * Performs a deep copy on <i>other</i>.
37167
     */
553 chandransh 37168
    public getCartsForUser_args(getCartsForUser_args other) {
48 ashish 37169
      __isset_bit_vector.clear();
37170
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 37171
      this.userId = other.userId;
37172
      if (other.isSetStatus()) {
37173
        this.status = other.status;
48 ashish 37174
      }
37175
    }
37176
 
553 chandransh 37177
    public getCartsForUser_args deepCopy() {
37178
      return new getCartsForUser_args(this);
48 ashish 37179
    }
37180
 
3430 rajveer 37181
    @Override
37182
    public void clear() {
37183
      setUserIdIsSet(false);
37184
      this.userId = 0;
37185
      this.status = null;
48 ashish 37186
    }
37187
 
553 chandransh 37188
    public long getUserId() {
37189
      return this.userId;
48 ashish 37190
    }
37191
 
3430 rajveer 37192
    public void setUserId(long userId) {
553 chandransh 37193
      this.userId = userId;
37194
      setUserIdIsSet(true);
48 ashish 37195
    }
37196
 
553 chandransh 37197
    public void unsetUserId() {
48 ashish 37198
      __isset_bit_vector.clear(__USERID_ISSET_ID);
37199
    }
37200
 
3430 rajveer 37201
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 37202
    public boolean isSetUserId() {
48 ashish 37203
      return __isset_bit_vector.get(__USERID_ISSET_ID);
37204
    }
37205
 
553 chandransh 37206
    public void setUserIdIsSet(boolean value) {
48 ashish 37207
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
37208
    }
37209
 
553 chandransh 37210
    /**
37211
     * 
37212
     * @see CartStatus
37213
     */
37214
    public CartStatus getStatus() {
37215
      return this.status;
48 ashish 37216
    }
37217
 
553 chandransh 37218
    /**
37219
     * 
37220
     * @see CartStatus
37221
     */
3430 rajveer 37222
    public void setStatus(CartStatus status) {
553 chandransh 37223
      this.status = status;
48 ashish 37224
    }
37225
 
553 chandransh 37226
    public void unsetStatus() {
37227
      this.status = null;
48 ashish 37228
    }
37229
 
3430 rajveer 37230
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 37231
    public boolean isSetStatus() {
37232
      return this.status != null;
48 ashish 37233
    }
37234
 
553 chandransh 37235
    public void setStatusIsSet(boolean value) {
48 ashish 37236
      if (!value) {
553 chandransh 37237
        this.status = null;
48 ashish 37238
      }
37239
    }
37240
 
37241
    public void setFieldValue(_Fields field, Object value) {
37242
      switch (field) {
553 chandransh 37243
      case USER_ID:
48 ashish 37244
        if (value == null) {
553 chandransh 37245
          unsetUserId();
48 ashish 37246
        } else {
553 chandransh 37247
          setUserId((Long)value);
48 ashish 37248
        }
37249
        break;
37250
 
553 chandransh 37251
      case STATUS:
48 ashish 37252
        if (value == null) {
553 chandransh 37253
          unsetStatus();
48 ashish 37254
        } else {
553 chandransh 37255
          setStatus((CartStatus)value);
48 ashish 37256
        }
37257
        break;
37258
 
37259
      }
37260
    }
37261
 
37262
    public Object getFieldValue(_Fields field) {
37263
      switch (field) {
553 chandransh 37264
      case USER_ID:
3430 rajveer 37265
        return Long.valueOf(getUserId());
48 ashish 37266
 
553 chandransh 37267
      case STATUS:
37268
        return getStatus();
48 ashish 37269
 
37270
      }
37271
      throw new IllegalStateException();
37272
    }
37273
 
3430 rajveer 37274
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37275
    public boolean isSet(_Fields field) {
37276
      if (field == null) {
37277
        throw new IllegalArgumentException();
37278
      }
48 ashish 37279
 
37280
      switch (field) {
553 chandransh 37281
      case USER_ID:
37282
        return isSetUserId();
37283
      case STATUS:
37284
        return isSetStatus();
48 ashish 37285
      }
37286
      throw new IllegalStateException();
37287
    }
37288
 
37289
    @Override
37290
    public boolean equals(Object that) {
37291
      if (that == null)
37292
        return false;
553 chandransh 37293
      if (that instanceof getCartsForUser_args)
37294
        return this.equals((getCartsForUser_args)that);
48 ashish 37295
      return false;
37296
    }
37297
 
553 chandransh 37298
    public boolean equals(getCartsForUser_args that) {
48 ashish 37299
      if (that == null)
37300
        return false;
37301
 
553 chandransh 37302
      boolean this_present_userId = true;
37303
      boolean that_present_userId = true;
37304
      if (this_present_userId || that_present_userId) {
37305
        if (!(this_present_userId && that_present_userId))
48 ashish 37306
          return false;
553 chandransh 37307
        if (this.userId != that.userId)
48 ashish 37308
          return false;
37309
      }
37310
 
553 chandransh 37311
      boolean this_present_status = true && this.isSetStatus();
37312
      boolean that_present_status = true && that.isSetStatus();
37313
      if (this_present_status || that_present_status) {
37314
        if (!(this_present_status && that_present_status))
48 ashish 37315
          return false;
553 chandransh 37316
        if (!this.status.equals(that.status))
48 ashish 37317
          return false;
37318
      }
37319
 
37320
      return true;
37321
    }
37322
 
37323
    @Override
37324
    public int hashCode() {
37325
      return 0;
37326
    }
37327
 
553 chandransh 37328
    public int compareTo(getCartsForUser_args other) {
48 ashish 37329
      if (!getClass().equals(other.getClass())) {
37330
        return getClass().getName().compareTo(other.getClass().getName());
37331
      }
37332
 
37333
      int lastComparison = 0;
553 chandransh 37334
      getCartsForUser_args typedOther = (getCartsForUser_args)other;
48 ashish 37335
 
3430 rajveer 37336
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 37337
      if (lastComparison != 0) {
37338
        return lastComparison;
37339
      }
3430 rajveer 37340
      if (isSetUserId()) {
37341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
37342
        if (lastComparison != 0) {
37343
          return lastComparison;
37344
        }
48 ashish 37345
      }
3430 rajveer 37346
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
48 ashish 37347
      if (lastComparison != 0) {
37348
        return lastComparison;
37349
      }
3430 rajveer 37350
      if (isSetStatus()) {
37351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
37352
        if (lastComparison != 0) {
37353
          return lastComparison;
37354
        }
48 ashish 37355
      }
37356
      return 0;
37357
    }
37358
 
3430 rajveer 37359
    public _Fields fieldForId(int fieldId) {
37360
      return _Fields.findByThriftId(fieldId);
37361
    }
37362
 
37363
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37364
      org.apache.thrift.protocol.TField field;
48 ashish 37365
      iprot.readStructBegin();
37366
      while (true)
37367
      {
37368
        field = iprot.readFieldBegin();
3430 rajveer 37369
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 37370
          break;
37371
        }
3430 rajveer 37372
        switch (field.id) {
37373
          case 1: // USER_ID
37374
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37375
              this.userId = iprot.readI64();
37376
              setUserIdIsSet(true);
37377
            } else { 
37378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37379
            }
37380
            break;
37381
          case 2: // STATUS
37382
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37383
              this.status = CartStatus.findByValue(iprot.readI32());
37384
            } else { 
37385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37386
            }
37387
            break;
37388
          default:
37389
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 37390
        }
3430 rajveer 37391
        iprot.readFieldEnd();
48 ashish 37392
      }
37393
      iprot.readStructEnd();
37394
      validate();
37395
    }
37396
 
3430 rajveer 37397
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 37398
      validate();
37399
 
37400
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 37401
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
37402
      oprot.writeI64(this.userId);
48 ashish 37403
      oprot.writeFieldEnd();
553 chandransh 37404
      if (this.status != null) {
37405
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
37406
        oprot.writeI32(this.status.getValue());
48 ashish 37407
        oprot.writeFieldEnd();
37408
      }
37409
      oprot.writeFieldStop();
37410
      oprot.writeStructEnd();
37411
    }
37412
 
37413
    @Override
37414
    public String toString() {
553 chandransh 37415
      StringBuilder sb = new StringBuilder("getCartsForUser_args(");
48 ashish 37416
      boolean first = true;
37417
 
553 chandransh 37418
      sb.append("userId:");
37419
      sb.append(this.userId);
48 ashish 37420
      first = false;
37421
      if (!first) sb.append(", ");
553 chandransh 37422
      sb.append("status:");
37423
      if (this.status == null) {
48 ashish 37424
        sb.append("null");
37425
      } else {
553 chandransh 37426
        sb.append(this.status);
48 ashish 37427
      }
37428
      first = false;
37429
      sb.append(")");
37430
      return sb.toString();
37431
    }
37432
 
3430 rajveer 37433
    public void validate() throws org.apache.thrift.TException {
48 ashish 37434
      // check for required fields
37435
    }
37436
 
3430 rajveer 37437
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37438
      try {
37439
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37440
      } catch (org.apache.thrift.TException te) {
37441
        throw new java.io.IOException(te);
37442
      }
37443
    }
37444
 
37445
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37446
      try {
37447
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37448
        __isset_bit_vector = new BitSet(1);
37449
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37450
      } catch (org.apache.thrift.TException te) {
37451
        throw new java.io.IOException(te);
37452
      }
37453
    }
37454
 
48 ashish 37455
  }
37456
 
3430 rajveer 37457
  public static class getCartsForUser_result implements org.apache.thrift.TBase<getCartsForUser_result, getCartsForUser_result._Fields>, java.io.Serializable, Cloneable   {
37458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_result");
48 ashish 37459
 
3430 rajveer 37460
    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);
37461
    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 37462
 
3430 rajveer 37463
    private List<Cart> success; // required
37464
    private ShoppingCartException scx; // required
48 ashish 37465
 
37466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 37468
      SUCCESS((short)0, "success"),
553 chandransh 37469
      SCX((short)1, "scx");
48 ashish 37470
 
37471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37472
 
37473
      static {
37474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37475
          byName.put(field.getFieldName(), field);
37476
        }
37477
      }
37478
 
37479
      /**
37480
       * Find the _Fields constant that matches fieldId, or null if its not found.
37481
       */
37482
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37483
        switch(fieldId) {
37484
          case 0: // SUCCESS
37485
            return SUCCESS;
37486
          case 1: // SCX
37487
            return SCX;
37488
          default:
37489
            return null;
37490
        }
48 ashish 37491
      }
37492
 
37493
      /**
37494
       * Find the _Fields constant that matches fieldId, throwing an exception
37495
       * if it is not found.
37496
       */
37497
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37498
        _Fields fields = findByThriftId(fieldId);
37499
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37500
        return fields;
37501
      }
37502
 
37503
      /**
37504
       * Find the _Fields constant that matches name, or null if its not found.
37505
       */
37506
      public static _Fields findByName(String name) {
37507
        return byName.get(name);
37508
      }
37509
 
37510
      private final short _thriftId;
37511
      private final String _fieldName;
37512
 
37513
      _Fields(short thriftId, String fieldName) {
37514
        _thriftId = thriftId;
37515
        _fieldName = fieldName;
37516
      }
37517
 
37518
      public short getThriftFieldId() {
37519
        return _thriftId;
37520
      }
37521
 
37522
      public String getFieldName() {
37523
        return _fieldName;
37524
      }
37525
    }
37526
 
37527
    // isset id assignments
37528
 
3430 rajveer 37529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 37530
    static {
3430 rajveer 37531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37532
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37533
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37534
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
37535
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37537
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37538
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_result.class, metaDataMap);
48 ashish 37539
    }
37540
 
553 chandransh 37541
    public getCartsForUser_result() {
48 ashish 37542
    }
37543
 
553 chandransh 37544
    public getCartsForUser_result(
37545
      List<Cart> success,
37546
      ShoppingCartException scx)
48 ashish 37547
    {
37548
      this();
37549
      this.success = success;
553 chandransh 37550
      this.scx = scx;
48 ashish 37551
    }
37552
 
37553
    /**
37554
     * Performs a deep copy on <i>other</i>.
37555
     */
553 chandransh 37556
    public getCartsForUser_result(getCartsForUser_result other) {
37557
      if (other.isSetSuccess()) {
37558
        List<Cart> __this__success = new ArrayList<Cart>();
37559
        for (Cart other_element : other.success) {
37560
          __this__success.add(new Cart(other_element));
37561
        }
37562
        this.success = __this__success;
48 ashish 37563
      }
553 chandransh 37564
      if (other.isSetScx()) {
37565
        this.scx = new ShoppingCartException(other.scx);
37566
      }
48 ashish 37567
    }
37568
 
553 chandransh 37569
    public getCartsForUser_result deepCopy() {
37570
      return new getCartsForUser_result(this);
48 ashish 37571
    }
37572
 
3430 rajveer 37573
    @Override
37574
    public void clear() {
37575
      this.success = null;
37576
      this.scx = null;
48 ashish 37577
    }
37578
 
553 chandransh 37579
    public int getSuccessSize() {
37580
      return (this.success == null) ? 0 : this.success.size();
37581
    }
37582
 
37583
    public java.util.Iterator<Cart> getSuccessIterator() {
37584
      return (this.success == null) ? null : this.success.iterator();
37585
    }
37586
 
37587
    public void addToSuccess(Cart elem) {
37588
      if (this.success == null) {
37589
        this.success = new ArrayList<Cart>();
37590
      }
37591
      this.success.add(elem);
37592
    }
37593
 
37594
    public List<Cart> getSuccess() {
48 ashish 37595
      return this.success;
37596
    }
37597
 
3430 rajveer 37598
    public void setSuccess(List<Cart> success) {
48 ashish 37599
      this.success = success;
37600
    }
37601
 
37602
    public void unsetSuccess() {
553 chandransh 37603
      this.success = null;
48 ashish 37604
    }
37605
 
3430 rajveer 37606
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 37607
    public boolean isSetSuccess() {
553 chandransh 37608
      return this.success != null;
48 ashish 37609
    }
37610
 
37611
    public void setSuccessIsSet(boolean value) {
553 chandransh 37612
      if (!value) {
37613
        this.success = null;
37614
      }
48 ashish 37615
    }
37616
 
553 chandransh 37617
    public ShoppingCartException getScx() {
37618
      return this.scx;
48 ashish 37619
    }
37620
 
3430 rajveer 37621
    public void setScx(ShoppingCartException scx) {
553 chandransh 37622
      this.scx = scx;
48 ashish 37623
    }
37624
 
553 chandransh 37625
    public void unsetScx() {
37626
      this.scx = null;
48 ashish 37627
    }
37628
 
3430 rajveer 37629
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 37630
    public boolean isSetScx() {
37631
      return this.scx != null;
48 ashish 37632
    }
37633
 
553 chandransh 37634
    public void setScxIsSet(boolean value) {
48 ashish 37635
      if (!value) {
553 chandransh 37636
        this.scx = null;
48 ashish 37637
      }
37638
    }
37639
 
37640
    public void setFieldValue(_Fields field, Object value) {
37641
      switch (field) {
37642
      case SUCCESS:
37643
        if (value == null) {
37644
          unsetSuccess();
37645
        } else {
553 chandransh 37646
          setSuccess((List<Cart>)value);
48 ashish 37647
        }
37648
        break;
37649
 
553 chandransh 37650
      case SCX:
48 ashish 37651
        if (value == null) {
553 chandransh 37652
          unsetScx();
48 ashish 37653
        } else {
553 chandransh 37654
          setScx((ShoppingCartException)value);
48 ashish 37655
        }
37656
        break;
37657
 
37658
      }
37659
    }
37660
 
37661
    public Object getFieldValue(_Fields field) {
37662
      switch (field) {
37663
      case SUCCESS:
553 chandransh 37664
        return getSuccess();
48 ashish 37665
 
553 chandransh 37666
      case SCX:
37667
        return getScx();
48 ashish 37668
 
37669
      }
37670
      throw new IllegalStateException();
37671
    }
37672
 
3430 rajveer 37673
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37674
    public boolean isSet(_Fields field) {
37675
      if (field == null) {
37676
        throw new IllegalArgumentException();
37677
      }
48 ashish 37678
 
37679
      switch (field) {
37680
      case SUCCESS:
37681
        return isSetSuccess();
553 chandransh 37682
      case SCX:
37683
        return isSetScx();
48 ashish 37684
      }
37685
      throw new IllegalStateException();
37686
    }
37687
 
37688
    @Override
37689
    public boolean equals(Object that) {
37690
      if (that == null)
37691
        return false;
553 chandransh 37692
      if (that instanceof getCartsForUser_result)
37693
        return this.equals((getCartsForUser_result)that);
48 ashish 37694
      return false;
37695
    }
37696
 
553 chandransh 37697
    public boolean equals(getCartsForUser_result that) {
48 ashish 37698
      if (that == null)
37699
        return false;
37700
 
553 chandransh 37701
      boolean this_present_success = true && this.isSetSuccess();
37702
      boolean that_present_success = true && that.isSetSuccess();
48 ashish 37703
      if (this_present_success || that_present_success) {
37704
        if (!(this_present_success && that_present_success))
37705
          return false;
553 chandransh 37706
        if (!this.success.equals(that.success))
48 ashish 37707
          return false;
37708
      }
37709
 
553 chandransh 37710
      boolean this_present_scx = true && this.isSetScx();
37711
      boolean that_present_scx = true && that.isSetScx();
37712
      if (this_present_scx || that_present_scx) {
37713
        if (!(this_present_scx && that_present_scx))
48 ashish 37714
          return false;
553 chandransh 37715
        if (!this.scx.equals(that.scx))
48 ashish 37716
          return false;
37717
      }
37718
 
37719
      return true;
37720
    }
37721
 
37722
    @Override
37723
    public int hashCode() {
37724
      return 0;
37725
    }
37726
 
553 chandransh 37727
    public int compareTo(getCartsForUser_result other) {
48 ashish 37728
      if (!getClass().equals(other.getClass())) {
37729
        return getClass().getName().compareTo(other.getClass().getName());
37730
      }
37731
 
37732
      int lastComparison = 0;
553 chandransh 37733
      getCartsForUser_result typedOther = (getCartsForUser_result)other;
48 ashish 37734
 
3430 rajveer 37735
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 37736
      if (lastComparison != 0) {
37737
        return lastComparison;
37738
      }
3430 rajveer 37739
      if (isSetSuccess()) {
37740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37741
        if (lastComparison != 0) {
37742
          return lastComparison;
37743
        }
48 ashish 37744
      }
3430 rajveer 37745
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 37746
      if (lastComparison != 0) {
37747
        return lastComparison;
37748
      }
3430 rajveer 37749
      if (isSetScx()) {
37750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
37751
        if (lastComparison != 0) {
37752
          return lastComparison;
37753
        }
48 ashish 37754
      }
37755
      return 0;
37756
    }
37757
 
3430 rajveer 37758
    public _Fields fieldForId(int fieldId) {
37759
      return _Fields.findByThriftId(fieldId);
37760
    }
37761
 
37762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37763
      org.apache.thrift.protocol.TField field;
48 ashish 37764
      iprot.readStructBegin();
37765
      while (true)
37766
      {
37767
        field = iprot.readFieldBegin();
3430 rajveer 37768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 37769
          break;
37770
        }
3430 rajveer 37771
        switch (field.id) {
37772
          case 0: // SUCCESS
37773
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37774
              {
37775
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
37776
                this.success = new ArrayList<Cart>(_list52.size);
37777
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
553 chandransh 37778
                {
3430 rajveer 37779
                  Cart _elem54; // required
37780
                  _elem54 = new Cart();
37781
                  _elem54.read(iprot);
37782
                  this.success.add(_elem54);
553 chandransh 37783
                }
3430 rajveer 37784
                iprot.readListEnd();
48 ashish 37785
              }
3430 rajveer 37786
            } else { 
37787
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37788
            }
37789
            break;
37790
          case 1: // SCX
37791
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37792
              this.scx = new ShoppingCartException();
37793
              this.scx.read(iprot);
37794
            } else { 
37795
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37796
            }
37797
            break;
37798
          default:
37799
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 37800
        }
3430 rajveer 37801
        iprot.readFieldEnd();
48 ashish 37802
      }
37803
      iprot.readStructEnd();
37804
      validate();
37805
    }
37806
 
3430 rajveer 37807
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 37808
      oprot.writeStructBegin(STRUCT_DESC);
37809
 
37810
      if (this.isSetSuccess()) {
37811
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 37812
        {
3430 rajveer 37813
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 37814
          for (Cart _iter55 : this.success)
553 chandransh 37815
          {
3385 varun.gupt 37816
            _iter55.write(oprot);
553 chandransh 37817
          }
37818
          oprot.writeListEnd();
37819
        }
48 ashish 37820
        oprot.writeFieldEnd();
553 chandransh 37821
      } else if (this.isSetScx()) {
37822
        oprot.writeFieldBegin(SCX_FIELD_DESC);
37823
        this.scx.write(oprot);
48 ashish 37824
        oprot.writeFieldEnd();
37825
      }
37826
      oprot.writeFieldStop();
37827
      oprot.writeStructEnd();
37828
    }
37829
 
37830
    @Override
37831
    public String toString() {
553 chandransh 37832
      StringBuilder sb = new StringBuilder("getCartsForUser_result(");
48 ashish 37833
      boolean first = true;
37834
 
37835
      sb.append("success:");
553 chandransh 37836
      if (this.success == null) {
37837
        sb.append("null");
37838
      } else {
37839
        sb.append(this.success);
37840
      }
48 ashish 37841
      first = false;
37842
      if (!first) sb.append(", ");
553 chandransh 37843
      sb.append("scx:");
37844
      if (this.scx == null) {
48 ashish 37845
        sb.append("null");
37846
      } else {
553 chandransh 37847
        sb.append(this.scx);
48 ashish 37848
      }
37849
      first = false;
37850
      sb.append(")");
37851
      return sb.toString();
37852
    }
37853
 
3430 rajveer 37854
    public void validate() throws org.apache.thrift.TException {
48 ashish 37855
      // check for required fields
37856
    }
37857
 
3430 rajveer 37858
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37859
      try {
37860
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37861
      } catch (org.apache.thrift.TException te) {
37862
        throw new java.io.IOException(te);
37863
      }
37864
    }
37865
 
37866
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37867
      try {
37868
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37869
      } catch (org.apache.thrift.TException te) {
37870
        throw new java.io.IOException(te);
37871
      }
37872
    }
37873
 
48 ashish 37874
  }
37875
 
3430 rajveer 37876
  public static class getCartsByStatus_args implements org.apache.thrift.TBase<getCartsByStatus_args, getCartsByStatus_args._Fields>, java.io.Serializable, Cloneable   {
37877
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_args");
48 ashish 37878
 
3430 rajveer 37879
    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 37880
 
3430 rajveer 37881
    private CartStatus status; // required
48 ashish 37882
 
37883
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37884
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 37885
      /**
37886
       * 
37887
       * @see CartStatus
37888
       */
37889
      STATUS((short)1, "status");
48 ashish 37890
 
37891
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37892
 
37893
      static {
37894
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37895
          byName.put(field.getFieldName(), field);
37896
        }
37897
      }
37898
 
37899
      /**
37900
       * Find the _Fields constant that matches fieldId, or null if its not found.
37901
       */
37902
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37903
        switch(fieldId) {
37904
          case 1: // STATUS
37905
            return STATUS;
37906
          default:
37907
            return null;
37908
        }
48 ashish 37909
      }
37910
 
37911
      /**
37912
       * Find the _Fields constant that matches fieldId, throwing an exception
37913
       * if it is not found.
37914
       */
37915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37916
        _Fields fields = findByThriftId(fieldId);
37917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37918
        return fields;
37919
      }
37920
 
37921
      /**
37922
       * Find the _Fields constant that matches name, or null if its not found.
37923
       */
37924
      public static _Fields findByName(String name) {
37925
        return byName.get(name);
37926
      }
37927
 
37928
      private final short _thriftId;
37929
      private final String _fieldName;
37930
 
37931
      _Fields(short thriftId, String fieldName) {
37932
        _thriftId = thriftId;
37933
        _fieldName = fieldName;
37934
      }
37935
 
37936
      public short getThriftFieldId() {
37937
        return _thriftId;
37938
      }
37939
 
37940
      public String getFieldName() {
37941
        return _fieldName;
37942
      }
37943
    }
37944
 
37945
    // isset id assignments
553 chandransh 37946
 
3430 rajveer 37947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 37948
    static {
3430 rajveer 37949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37950
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37951
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
37952
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37953
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_args.class, metaDataMap);
553 chandransh 37954
    }
37955
 
37956
    public getCartsByStatus_args() {
37957
    }
37958
 
37959
    public getCartsByStatus_args(
37960
      CartStatus status)
37961
    {
37962
      this();
37963
      this.status = status;
37964
    }
37965
 
37966
    /**
37967
     * Performs a deep copy on <i>other</i>.
37968
     */
37969
    public getCartsByStatus_args(getCartsByStatus_args other) {
37970
      if (other.isSetStatus()) {
37971
        this.status = other.status;
37972
      }
37973
    }
37974
 
37975
    public getCartsByStatus_args deepCopy() {
37976
      return new getCartsByStatus_args(this);
37977
    }
37978
 
3430 rajveer 37979
    @Override
37980
    public void clear() {
37981
      this.status = null;
553 chandransh 37982
    }
37983
 
37984
    /**
37985
     * 
37986
     * @see CartStatus
37987
     */
37988
    public CartStatus getStatus() {
37989
      return this.status;
37990
    }
37991
 
37992
    /**
37993
     * 
37994
     * @see CartStatus
37995
     */
3430 rajveer 37996
    public void setStatus(CartStatus status) {
553 chandransh 37997
      this.status = status;
37998
    }
37999
 
38000
    public void unsetStatus() {
38001
      this.status = null;
38002
    }
38003
 
3430 rajveer 38004
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 38005
    public boolean isSetStatus() {
38006
      return this.status != null;
38007
    }
38008
 
38009
    public void setStatusIsSet(boolean value) {
38010
      if (!value) {
38011
        this.status = null;
38012
      }
38013
    }
38014
 
38015
    public void setFieldValue(_Fields field, Object value) {
38016
      switch (field) {
38017
      case STATUS:
38018
        if (value == null) {
38019
          unsetStatus();
38020
        } else {
38021
          setStatus((CartStatus)value);
38022
        }
38023
        break;
38024
 
38025
      }
38026
    }
38027
 
38028
    public Object getFieldValue(_Fields field) {
38029
      switch (field) {
38030
      case STATUS:
38031
        return getStatus();
38032
 
38033
      }
38034
      throw new IllegalStateException();
38035
    }
38036
 
3430 rajveer 38037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38038
    public boolean isSet(_Fields field) {
38039
      if (field == null) {
38040
        throw new IllegalArgumentException();
38041
      }
553 chandransh 38042
 
38043
      switch (field) {
38044
      case STATUS:
38045
        return isSetStatus();
38046
      }
38047
      throw new IllegalStateException();
38048
    }
38049
 
38050
    @Override
38051
    public boolean equals(Object that) {
38052
      if (that == null)
38053
        return false;
38054
      if (that instanceof getCartsByStatus_args)
38055
        return this.equals((getCartsByStatus_args)that);
38056
      return false;
38057
    }
38058
 
38059
    public boolean equals(getCartsByStatus_args that) {
38060
      if (that == null)
38061
        return false;
38062
 
38063
      boolean this_present_status = true && this.isSetStatus();
38064
      boolean that_present_status = true && that.isSetStatus();
38065
      if (this_present_status || that_present_status) {
38066
        if (!(this_present_status && that_present_status))
38067
          return false;
38068
        if (!this.status.equals(that.status))
38069
          return false;
38070
      }
38071
 
38072
      return true;
38073
    }
38074
 
38075
    @Override
38076
    public int hashCode() {
38077
      return 0;
38078
    }
38079
 
38080
    public int compareTo(getCartsByStatus_args other) {
38081
      if (!getClass().equals(other.getClass())) {
38082
        return getClass().getName().compareTo(other.getClass().getName());
38083
      }
38084
 
38085
      int lastComparison = 0;
38086
      getCartsByStatus_args typedOther = (getCartsByStatus_args)other;
38087
 
3430 rajveer 38088
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 38089
      if (lastComparison != 0) {
38090
        return lastComparison;
38091
      }
3430 rajveer 38092
      if (isSetStatus()) {
38093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
38094
        if (lastComparison != 0) {
38095
          return lastComparison;
38096
        }
553 chandransh 38097
      }
38098
      return 0;
38099
    }
38100
 
3430 rajveer 38101
    public _Fields fieldForId(int fieldId) {
38102
      return _Fields.findByThriftId(fieldId);
38103
    }
38104
 
38105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38106
      org.apache.thrift.protocol.TField field;
553 chandransh 38107
      iprot.readStructBegin();
38108
      while (true)
38109
      {
38110
        field = iprot.readFieldBegin();
3430 rajveer 38111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 38112
          break;
38113
        }
3430 rajveer 38114
        switch (field.id) {
38115
          case 1: // STATUS
38116
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38117
              this.status = CartStatus.findByValue(iprot.readI32());
38118
            } else { 
38119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38120
            }
38121
            break;
38122
          default:
38123
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 38124
        }
3430 rajveer 38125
        iprot.readFieldEnd();
553 chandransh 38126
      }
38127
      iprot.readStructEnd();
38128
      validate();
38129
    }
38130
 
3430 rajveer 38131
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 38132
      validate();
38133
 
38134
      oprot.writeStructBegin(STRUCT_DESC);
38135
      if (this.status != null) {
38136
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
38137
        oprot.writeI32(this.status.getValue());
38138
        oprot.writeFieldEnd();
38139
      }
38140
      oprot.writeFieldStop();
38141
      oprot.writeStructEnd();
38142
    }
38143
 
38144
    @Override
38145
    public String toString() {
38146
      StringBuilder sb = new StringBuilder("getCartsByStatus_args(");
38147
      boolean first = true;
38148
 
38149
      sb.append("status:");
38150
      if (this.status == null) {
38151
        sb.append("null");
38152
      } else {
38153
        sb.append(this.status);
38154
      }
38155
      first = false;
38156
      sb.append(")");
38157
      return sb.toString();
38158
    }
38159
 
3430 rajveer 38160
    public void validate() throws org.apache.thrift.TException {
553 chandransh 38161
      // check for required fields
38162
    }
38163
 
3430 rajveer 38164
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38165
      try {
38166
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38167
      } catch (org.apache.thrift.TException te) {
38168
        throw new java.io.IOException(te);
38169
      }
38170
    }
38171
 
38172
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38173
      try {
38174
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38175
      } catch (org.apache.thrift.TException te) {
38176
        throw new java.io.IOException(te);
38177
      }
38178
    }
38179
 
553 chandransh 38180
  }
38181
 
3430 rajveer 38182
  public static class getCartsByStatus_result implements org.apache.thrift.TBase<getCartsByStatus_result, getCartsByStatus_result._Fields>, java.io.Serializable, Cloneable   {
38183
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_result");
553 chandransh 38184
 
3430 rajveer 38185
    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);
38186
    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 38187
 
3430 rajveer 38188
    private List<Cart> success; // required
38189
    private ShoppingCartException scx; // required
553 chandransh 38190
 
38191
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38192
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38193
      SUCCESS((short)0, "success"),
38194
      SCX((short)1, "scx");
38195
 
38196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38197
 
38198
      static {
38199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38200
          byName.put(field.getFieldName(), field);
38201
        }
38202
      }
38203
 
38204
      /**
38205
       * Find the _Fields constant that matches fieldId, or null if its not found.
38206
       */
38207
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38208
        switch(fieldId) {
38209
          case 0: // SUCCESS
38210
            return SUCCESS;
38211
          case 1: // SCX
38212
            return SCX;
38213
          default:
38214
            return null;
38215
        }
553 chandransh 38216
      }
38217
 
38218
      /**
38219
       * Find the _Fields constant that matches fieldId, throwing an exception
38220
       * if it is not found.
38221
       */
38222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38223
        _Fields fields = findByThriftId(fieldId);
38224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38225
        return fields;
38226
      }
38227
 
38228
      /**
38229
       * Find the _Fields constant that matches name, or null if its not found.
38230
       */
38231
      public static _Fields findByName(String name) {
38232
        return byName.get(name);
38233
      }
38234
 
38235
      private final short _thriftId;
38236
      private final String _fieldName;
38237
 
38238
      _Fields(short thriftId, String fieldName) {
38239
        _thriftId = thriftId;
38240
        _fieldName = fieldName;
38241
      }
38242
 
38243
      public short getThriftFieldId() {
38244
        return _thriftId;
38245
      }
38246
 
38247
      public String getFieldName() {
38248
        return _fieldName;
38249
      }
38250
    }
38251
 
38252
    // isset id assignments
38253
 
3430 rajveer 38254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 38255
    static {
3430 rajveer 38256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38257
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38258
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
38259
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
38260
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38261
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_result.class, metaDataMap);
553 chandransh 38264
    }
38265
 
38266
    public getCartsByStatus_result() {
38267
    }
38268
 
38269
    public getCartsByStatus_result(
38270
      List<Cart> success,
38271
      ShoppingCartException scx)
38272
    {
38273
      this();
38274
      this.success = success;
38275
      this.scx = scx;
38276
    }
38277
 
38278
    /**
38279
     * Performs a deep copy on <i>other</i>.
38280
     */
38281
    public getCartsByStatus_result(getCartsByStatus_result other) {
38282
      if (other.isSetSuccess()) {
38283
        List<Cart> __this__success = new ArrayList<Cart>();
38284
        for (Cart other_element : other.success) {
38285
          __this__success.add(new Cart(other_element));
38286
        }
38287
        this.success = __this__success;
38288
      }
38289
      if (other.isSetScx()) {
38290
        this.scx = new ShoppingCartException(other.scx);
38291
      }
38292
    }
38293
 
38294
    public getCartsByStatus_result deepCopy() {
38295
      return new getCartsByStatus_result(this);
38296
    }
38297
 
3430 rajveer 38298
    @Override
38299
    public void clear() {
38300
      this.success = null;
38301
      this.scx = null;
553 chandransh 38302
    }
38303
 
38304
    public int getSuccessSize() {
38305
      return (this.success == null) ? 0 : this.success.size();
38306
    }
38307
 
38308
    public java.util.Iterator<Cart> getSuccessIterator() {
38309
      return (this.success == null) ? null : this.success.iterator();
38310
    }
38311
 
38312
    public void addToSuccess(Cart elem) {
38313
      if (this.success == null) {
38314
        this.success = new ArrayList<Cart>();
38315
      }
38316
      this.success.add(elem);
38317
    }
38318
 
38319
    public List<Cart> getSuccess() {
38320
      return this.success;
38321
    }
38322
 
3430 rajveer 38323
    public void setSuccess(List<Cart> success) {
553 chandransh 38324
      this.success = success;
38325
    }
38326
 
38327
    public void unsetSuccess() {
38328
      this.success = null;
38329
    }
38330
 
3430 rajveer 38331
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 38332
    public boolean isSetSuccess() {
38333
      return this.success != null;
38334
    }
38335
 
38336
    public void setSuccessIsSet(boolean value) {
38337
      if (!value) {
38338
        this.success = null;
38339
      }
38340
    }
38341
 
38342
    public ShoppingCartException getScx() {
38343
      return this.scx;
38344
    }
38345
 
3430 rajveer 38346
    public void setScx(ShoppingCartException scx) {
553 chandransh 38347
      this.scx = scx;
38348
    }
38349
 
38350
    public void unsetScx() {
38351
      this.scx = null;
38352
    }
38353
 
3430 rajveer 38354
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 38355
    public boolean isSetScx() {
38356
      return this.scx != null;
38357
    }
38358
 
38359
    public void setScxIsSet(boolean value) {
38360
      if (!value) {
38361
        this.scx = null;
38362
      }
38363
    }
38364
 
38365
    public void setFieldValue(_Fields field, Object value) {
38366
      switch (field) {
38367
      case SUCCESS:
38368
        if (value == null) {
38369
          unsetSuccess();
38370
        } else {
38371
          setSuccess((List<Cart>)value);
38372
        }
38373
        break;
38374
 
38375
      case SCX:
38376
        if (value == null) {
38377
          unsetScx();
38378
        } else {
38379
          setScx((ShoppingCartException)value);
38380
        }
38381
        break;
38382
 
38383
      }
38384
    }
38385
 
38386
    public Object getFieldValue(_Fields field) {
38387
      switch (field) {
38388
      case SUCCESS:
38389
        return getSuccess();
38390
 
38391
      case SCX:
38392
        return getScx();
38393
 
38394
      }
38395
      throw new IllegalStateException();
38396
    }
38397
 
3430 rajveer 38398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38399
    public boolean isSet(_Fields field) {
38400
      if (field == null) {
38401
        throw new IllegalArgumentException();
38402
      }
553 chandransh 38403
 
38404
      switch (field) {
38405
      case SUCCESS:
38406
        return isSetSuccess();
38407
      case SCX:
38408
        return isSetScx();
38409
      }
38410
      throw new IllegalStateException();
38411
    }
38412
 
38413
    @Override
38414
    public boolean equals(Object that) {
38415
      if (that == null)
38416
        return false;
38417
      if (that instanceof getCartsByStatus_result)
38418
        return this.equals((getCartsByStatus_result)that);
38419
      return false;
38420
    }
38421
 
38422
    public boolean equals(getCartsByStatus_result that) {
38423
      if (that == null)
38424
        return false;
38425
 
38426
      boolean this_present_success = true && this.isSetSuccess();
38427
      boolean that_present_success = true && that.isSetSuccess();
38428
      if (this_present_success || that_present_success) {
38429
        if (!(this_present_success && that_present_success))
38430
          return false;
38431
        if (!this.success.equals(that.success))
38432
          return false;
38433
      }
38434
 
38435
      boolean this_present_scx = true && this.isSetScx();
38436
      boolean that_present_scx = true && that.isSetScx();
38437
      if (this_present_scx || that_present_scx) {
38438
        if (!(this_present_scx && that_present_scx))
38439
          return false;
38440
        if (!this.scx.equals(that.scx))
38441
          return false;
38442
      }
38443
 
38444
      return true;
38445
    }
38446
 
38447
    @Override
38448
    public int hashCode() {
38449
      return 0;
38450
    }
38451
 
38452
    public int compareTo(getCartsByStatus_result other) {
38453
      if (!getClass().equals(other.getClass())) {
38454
        return getClass().getName().compareTo(other.getClass().getName());
38455
      }
38456
 
38457
      int lastComparison = 0;
38458
      getCartsByStatus_result typedOther = (getCartsByStatus_result)other;
38459
 
3430 rajveer 38460
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 38461
      if (lastComparison != 0) {
38462
        return lastComparison;
38463
      }
3430 rajveer 38464
      if (isSetSuccess()) {
38465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38466
        if (lastComparison != 0) {
38467
          return lastComparison;
38468
        }
553 chandransh 38469
      }
3430 rajveer 38470
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 38471
      if (lastComparison != 0) {
38472
        return lastComparison;
38473
      }
3430 rajveer 38474
      if (isSetScx()) {
38475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
38476
        if (lastComparison != 0) {
38477
          return lastComparison;
38478
        }
553 chandransh 38479
      }
38480
      return 0;
38481
    }
38482
 
3430 rajveer 38483
    public _Fields fieldForId(int fieldId) {
38484
      return _Fields.findByThriftId(fieldId);
38485
    }
38486
 
38487
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38488
      org.apache.thrift.protocol.TField field;
553 chandransh 38489
      iprot.readStructBegin();
38490
      while (true)
38491
      {
38492
        field = iprot.readFieldBegin();
3430 rajveer 38493
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 38494
          break;
38495
        }
3430 rajveer 38496
        switch (field.id) {
38497
          case 0: // SUCCESS
38498
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38499
              {
38500
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
38501
                this.success = new ArrayList<Cart>(_list56.size);
38502
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
553 chandransh 38503
                {
3430 rajveer 38504
                  Cart _elem58; // required
38505
                  _elem58 = new Cart();
38506
                  _elem58.read(iprot);
38507
                  this.success.add(_elem58);
553 chandransh 38508
                }
3430 rajveer 38509
                iprot.readListEnd();
553 chandransh 38510
              }
3430 rajveer 38511
            } else { 
38512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38513
            }
38514
            break;
38515
          case 1: // SCX
38516
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38517
              this.scx = new ShoppingCartException();
38518
              this.scx.read(iprot);
38519
            } else { 
38520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38521
            }
38522
            break;
38523
          default:
38524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 38525
        }
3430 rajveer 38526
        iprot.readFieldEnd();
553 chandransh 38527
      }
38528
      iprot.readStructEnd();
38529
      validate();
38530
    }
38531
 
3430 rajveer 38532
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 38533
      oprot.writeStructBegin(STRUCT_DESC);
38534
 
38535
      if (this.isSetSuccess()) {
38536
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38537
        {
3430 rajveer 38538
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 38539
          for (Cart _iter59 : this.success)
553 chandransh 38540
          {
3385 varun.gupt 38541
            _iter59.write(oprot);
553 chandransh 38542
          }
38543
          oprot.writeListEnd();
38544
        }
38545
        oprot.writeFieldEnd();
38546
      } else if (this.isSetScx()) {
38547
        oprot.writeFieldBegin(SCX_FIELD_DESC);
38548
        this.scx.write(oprot);
38549
        oprot.writeFieldEnd();
38550
      }
38551
      oprot.writeFieldStop();
38552
      oprot.writeStructEnd();
38553
    }
38554
 
38555
    @Override
38556
    public String toString() {
38557
      StringBuilder sb = new StringBuilder("getCartsByStatus_result(");
38558
      boolean first = true;
38559
 
38560
      sb.append("success:");
38561
      if (this.success == null) {
38562
        sb.append("null");
38563
      } else {
38564
        sb.append(this.success);
38565
      }
38566
      first = false;
38567
      if (!first) sb.append(", ");
38568
      sb.append("scx:");
38569
      if (this.scx == null) {
38570
        sb.append("null");
38571
      } else {
38572
        sb.append(this.scx);
38573
      }
38574
      first = false;
38575
      sb.append(")");
38576
      return sb.toString();
38577
    }
38578
 
3430 rajveer 38579
    public void validate() throws org.apache.thrift.TException {
553 chandransh 38580
      // check for required fields
38581
    }
38582
 
3430 rajveer 38583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38584
      try {
38585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38586
      } catch (org.apache.thrift.TException te) {
38587
        throw new java.io.IOException(te);
38588
      }
38589
    }
38590
 
38591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38592
      try {
38593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38594
      } catch (org.apache.thrift.TException te) {
38595
        throw new java.io.IOException(te);
38596
      }
38597
    }
38598
 
553 chandransh 38599
  }
38600
 
3430 rajveer 38601
  public static class getCartsByTime_args implements org.apache.thrift.TBase<getCartsByTime_args, getCartsByTime_args._Fields>, java.io.Serializable, Cloneable   {
38602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_args");
553 chandransh 38603
 
3430 rajveer 38604
    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);
38605
    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);
38606
    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 38607
 
3430 rajveer 38608
    private long from_time; // required
38609
    private long to_time; // required
38610
    private CartStatus status; // required
553 chandransh 38611
 
38612
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38613
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38614
      FROM_TIME((short)1, "from_time"),
38615
      TO_TIME((short)2, "to_time"),
38616
      /**
38617
       * 
38618
       * @see CartStatus
38619
       */
38620
      STATUS((short)3, "status");
38621
 
38622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38623
 
38624
      static {
38625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38626
          byName.put(field.getFieldName(), field);
38627
        }
38628
      }
38629
 
38630
      /**
38631
       * Find the _Fields constant that matches fieldId, or null if its not found.
38632
       */
38633
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38634
        switch(fieldId) {
38635
          case 1: // FROM_TIME
38636
            return FROM_TIME;
38637
          case 2: // TO_TIME
38638
            return TO_TIME;
38639
          case 3: // STATUS
38640
            return STATUS;
38641
          default:
38642
            return null;
38643
        }
553 chandransh 38644
      }
38645
 
38646
      /**
38647
       * Find the _Fields constant that matches fieldId, throwing an exception
38648
       * if it is not found.
38649
       */
38650
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38651
        _Fields fields = findByThriftId(fieldId);
38652
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38653
        return fields;
38654
      }
38655
 
38656
      /**
38657
       * Find the _Fields constant that matches name, or null if its not found.
38658
       */
38659
      public static _Fields findByName(String name) {
38660
        return byName.get(name);
38661
      }
38662
 
38663
      private final short _thriftId;
38664
      private final String _fieldName;
38665
 
38666
      _Fields(short thriftId, String fieldName) {
38667
        _thriftId = thriftId;
38668
        _fieldName = fieldName;
38669
      }
38670
 
38671
      public short getThriftFieldId() {
38672
        return _thriftId;
38673
      }
38674
 
38675
      public String getFieldName() {
38676
        return _fieldName;
38677
      }
38678
    }
38679
 
38680
    // isset id assignments
38681
    private static final int __FROM_TIME_ISSET_ID = 0;
38682
    private static final int __TO_TIME_ISSET_ID = 1;
123 ashish 38683
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 38684
 
3430 rajveer 38685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 38686
    static {
3430 rajveer 38687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38688
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("from_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38690
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("to_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38692
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38693
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
38694
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38695
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByTime_args.class, metaDataMap);
48 ashish 38696
    }
38697
 
553 chandransh 38698
    public getCartsByTime_args() {
48 ashish 38699
    }
38700
 
553 chandransh 38701
    public getCartsByTime_args(
38702
      long from_time,
38703
      long to_time,
38704
      CartStatus status)
48 ashish 38705
    {
38706
      this();
553 chandransh 38707
      this.from_time = from_time;
38708
      setFrom_timeIsSet(true);
38709
      this.to_time = to_time;
38710
      setTo_timeIsSet(true);
38711
      this.status = status;
48 ashish 38712
    }
38713
 
38714
    /**
38715
     * Performs a deep copy on <i>other</i>.
38716
     */
553 chandransh 38717
    public getCartsByTime_args(getCartsByTime_args other) {
48 ashish 38718
      __isset_bit_vector.clear();
38719
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 38720
      this.from_time = other.from_time;
38721
      this.to_time = other.to_time;
38722
      if (other.isSetStatus()) {
38723
        this.status = other.status;
38724
      }
48 ashish 38725
    }
38726
 
553 chandransh 38727
    public getCartsByTime_args deepCopy() {
38728
      return new getCartsByTime_args(this);
48 ashish 38729
    }
38730
 
3430 rajveer 38731
    @Override
38732
    public void clear() {
38733
      setFrom_timeIsSet(false);
38734
      this.from_time = 0;
38735
      setTo_timeIsSet(false);
38736
      this.to_time = 0;
38737
      this.status = null;
48 ashish 38738
    }
38739
 
553 chandransh 38740
    public long getFrom_time() {
38741
      return this.from_time;
48 ashish 38742
    }
38743
 
3430 rajveer 38744
    public void setFrom_time(long from_time) {
553 chandransh 38745
      this.from_time = from_time;
38746
      setFrom_timeIsSet(true);
48 ashish 38747
    }
38748
 
553 chandransh 38749
    public void unsetFrom_time() {
38750
      __isset_bit_vector.clear(__FROM_TIME_ISSET_ID);
48 ashish 38751
    }
38752
 
3430 rajveer 38753
    /** Returns true if field from_time is set (has been assigned a value) and false otherwise */
553 chandransh 38754
    public boolean isSetFrom_time() {
38755
      return __isset_bit_vector.get(__FROM_TIME_ISSET_ID);
48 ashish 38756
    }
38757
 
553 chandransh 38758
    public void setFrom_timeIsSet(boolean value) {
38759
      __isset_bit_vector.set(__FROM_TIME_ISSET_ID, value);
48 ashish 38760
    }
38761
 
553 chandransh 38762
    public long getTo_time() {
38763
      return this.to_time;
123 ashish 38764
    }
38765
 
3430 rajveer 38766
    public void setTo_time(long to_time) {
553 chandransh 38767
      this.to_time = to_time;
38768
      setTo_timeIsSet(true);
123 ashish 38769
    }
38770
 
553 chandransh 38771
    public void unsetTo_time() {
38772
      __isset_bit_vector.clear(__TO_TIME_ISSET_ID);
123 ashish 38773
    }
38774
 
3430 rajveer 38775
    /** Returns true if field to_time is set (has been assigned a value) and false otherwise */
553 chandransh 38776
    public boolean isSetTo_time() {
38777
      return __isset_bit_vector.get(__TO_TIME_ISSET_ID);
123 ashish 38778
    }
38779
 
553 chandransh 38780
    public void setTo_timeIsSet(boolean value) {
38781
      __isset_bit_vector.set(__TO_TIME_ISSET_ID, value);
123 ashish 38782
    }
38783
 
553 chandransh 38784
    /**
38785
     * 
38786
     * @see CartStatus
38787
     */
38788
    public CartStatus getStatus() {
38789
      return this.status;
38790
    }
38791
 
38792
    /**
38793
     * 
38794
     * @see CartStatus
38795
     */
3430 rajveer 38796
    public void setStatus(CartStatus status) {
553 chandransh 38797
      this.status = status;
38798
    }
38799
 
38800
    public void unsetStatus() {
38801
      this.status = null;
38802
    }
38803
 
3430 rajveer 38804
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 38805
    public boolean isSetStatus() {
38806
      return this.status != null;
38807
    }
38808
 
38809
    public void setStatusIsSet(boolean value) {
38810
      if (!value) {
38811
        this.status = null;
38812
      }
38813
    }
38814
 
48 ashish 38815
    public void setFieldValue(_Fields field, Object value) {
38816
      switch (field) {
553 chandransh 38817
      case FROM_TIME:
48 ashish 38818
        if (value == null) {
553 chandransh 38819
          unsetFrom_time();
48 ashish 38820
        } else {
553 chandransh 38821
          setFrom_time((Long)value);
48 ashish 38822
        }
38823
        break;
38824
 
553 chandransh 38825
      case TO_TIME:
123 ashish 38826
        if (value == null) {
553 chandransh 38827
          unsetTo_time();
123 ashish 38828
        } else {
553 chandransh 38829
          setTo_time((Long)value);
123 ashish 38830
        }
38831
        break;
38832
 
553 chandransh 38833
      case STATUS:
38834
        if (value == null) {
38835
          unsetStatus();
38836
        } else {
38837
          setStatus((CartStatus)value);
38838
        }
38839
        break;
38840
 
48 ashish 38841
      }
38842
    }
38843
 
38844
    public Object getFieldValue(_Fields field) {
38845
      switch (field) {
553 chandransh 38846
      case FROM_TIME:
3430 rajveer 38847
        return Long.valueOf(getFrom_time());
48 ashish 38848
 
553 chandransh 38849
      case TO_TIME:
3430 rajveer 38850
        return Long.valueOf(getTo_time());
123 ashish 38851
 
553 chandransh 38852
      case STATUS:
38853
        return getStatus();
38854
 
48 ashish 38855
      }
38856
      throw new IllegalStateException();
38857
    }
38858
 
3430 rajveer 38859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38860
    public boolean isSet(_Fields field) {
38861
      if (field == null) {
38862
        throw new IllegalArgumentException();
38863
      }
48 ashish 38864
 
38865
      switch (field) {
553 chandransh 38866
      case FROM_TIME:
38867
        return isSetFrom_time();
38868
      case TO_TIME:
38869
        return isSetTo_time();
38870
      case STATUS:
38871
        return isSetStatus();
48 ashish 38872
      }
38873
      throw new IllegalStateException();
38874
    }
38875
 
38876
    @Override
38877
    public boolean equals(Object that) {
38878
      if (that == null)
38879
        return false;
553 chandransh 38880
      if (that instanceof getCartsByTime_args)
38881
        return this.equals((getCartsByTime_args)that);
48 ashish 38882
      return false;
38883
    }
38884
 
553 chandransh 38885
    public boolean equals(getCartsByTime_args that) {
48 ashish 38886
      if (that == null)
38887
        return false;
38888
 
553 chandransh 38889
      boolean this_present_from_time = true;
38890
      boolean that_present_from_time = true;
38891
      if (this_present_from_time || that_present_from_time) {
38892
        if (!(this_present_from_time && that_present_from_time))
48 ashish 38893
          return false;
553 chandransh 38894
        if (this.from_time != that.from_time)
48 ashish 38895
          return false;
38896
      }
38897
 
553 chandransh 38898
      boolean this_present_to_time = true;
38899
      boolean that_present_to_time = true;
38900
      if (this_present_to_time || that_present_to_time) {
38901
        if (!(this_present_to_time && that_present_to_time))
123 ashish 38902
          return false;
553 chandransh 38903
        if (this.to_time != that.to_time)
123 ashish 38904
          return false;
38905
      }
38906
 
553 chandransh 38907
      boolean this_present_status = true && this.isSetStatus();
38908
      boolean that_present_status = true && that.isSetStatus();
38909
      if (this_present_status || that_present_status) {
38910
        if (!(this_present_status && that_present_status))
38911
          return false;
38912
        if (!this.status.equals(that.status))
38913
          return false;
38914
      }
38915
 
48 ashish 38916
      return true;
38917
    }
38918
 
38919
    @Override
38920
    public int hashCode() {
38921
      return 0;
38922
    }
38923
 
553 chandransh 38924
    public int compareTo(getCartsByTime_args other) {
48 ashish 38925
      if (!getClass().equals(other.getClass())) {
38926
        return getClass().getName().compareTo(other.getClass().getName());
38927
      }
38928
 
38929
      int lastComparison = 0;
553 chandransh 38930
      getCartsByTime_args typedOther = (getCartsByTime_args)other;
48 ashish 38931
 
3430 rajveer 38932
      lastComparison = Boolean.valueOf(isSetFrom_time()).compareTo(typedOther.isSetFrom_time());
48 ashish 38933
      if (lastComparison != 0) {
38934
        return lastComparison;
38935
      }
3430 rajveer 38936
      if (isSetFrom_time()) {
38937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_time, typedOther.from_time);
38938
        if (lastComparison != 0) {
38939
          return lastComparison;
38940
        }
48 ashish 38941
      }
3430 rajveer 38942
      lastComparison = Boolean.valueOf(isSetTo_time()).compareTo(typedOther.isSetTo_time());
123 ashish 38943
      if (lastComparison != 0) {
38944
        return lastComparison;
38945
      }
3430 rajveer 38946
      if (isSetTo_time()) {
38947
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_time, typedOther.to_time);
38948
        if (lastComparison != 0) {
38949
          return lastComparison;
38950
        }
123 ashish 38951
      }
3430 rajveer 38952
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 38953
      if (lastComparison != 0) {
38954
        return lastComparison;
38955
      }
3430 rajveer 38956
      if (isSetStatus()) {
38957
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
38958
        if (lastComparison != 0) {
38959
          return lastComparison;
38960
        }
553 chandransh 38961
      }
48 ashish 38962
      return 0;
38963
    }
38964
 
3430 rajveer 38965
    public _Fields fieldForId(int fieldId) {
38966
      return _Fields.findByThriftId(fieldId);
38967
    }
38968
 
38969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38970
      org.apache.thrift.protocol.TField field;
48 ashish 38971
      iprot.readStructBegin();
38972
      while (true)
38973
      {
38974
        field = iprot.readFieldBegin();
3430 rajveer 38975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 38976
          break;
38977
        }
3430 rajveer 38978
        switch (field.id) {
38979
          case 1: // FROM_TIME
38980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38981
              this.from_time = iprot.readI64();
38982
              setFrom_timeIsSet(true);
38983
            } else { 
38984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38985
            }
38986
            break;
38987
          case 2: // TO_TIME
38988
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38989
              this.to_time = iprot.readI64();
38990
              setTo_timeIsSet(true);
38991
            } else { 
38992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38993
            }
38994
            break;
38995
          case 3: // STATUS
38996
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38997
              this.status = CartStatus.findByValue(iprot.readI32());
38998
            } else { 
38999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39000
            }
39001
            break;
39002
          default:
39003
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39004
        }
3430 rajveer 39005
        iprot.readFieldEnd();
48 ashish 39006
      }
39007
      iprot.readStructEnd();
39008
      validate();
39009
    }
39010
 
3430 rajveer 39011
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39012
      validate();
39013
 
39014
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 39015
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
39016
      oprot.writeI64(this.from_time);
48 ashish 39017
      oprot.writeFieldEnd();
553 chandransh 39018
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
39019
      oprot.writeI64(this.to_time);
123 ashish 39020
      oprot.writeFieldEnd();
553 chandransh 39021
      if (this.status != null) {
39022
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
39023
        oprot.writeI32(this.status.getValue());
39024
        oprot.writeFieldEnd();
39025
      }
48 ashish 39026
      oprot.writeFieldStop();
39027
      oprot.writeStructEnd();
39028
    }
39029
 
39030
    @Override
39031
    public String toString() {
553 chandransh 39032
      StringBuilder sb = new StringBuilder("getCartsByTime_args(");
48 ashish 39033
      boolean first = true;
39034
 
553 chandransh 39035
      sb.append("from_time:");
39036
      sb.append(this.from_time);
48 ashish 39037
      first = false;
123 ashish 39038
      if (!first) sb.append(", ");
553 chandransh 39039
      sb.append("to_time:");
39040
      sb.append(this.to_time);
123 ashish 39041
      first = false;
553 chandransh 39042
      if (!first) sb.append(", ");
39043
      sb.append("status:");
39044
      if (this.status == null) {
39045
        sb.append("null");
39046
      } else {
39047
        sb.append(this.status);
39048
      }
39049
      first = false;
48 ashish 39050
      sb.append(")");
39051
      return sb.toString();
39052
    }
39053
 
3430 rajveer 39054
    public void validate() throws org.apache.thrift.TException {
48 ashish 39055
      // check for required fields
39056
    }
39057
 
3430 rajveer 39058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39059
      try {
39060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39061
      } catch (org.apache.thrift.TException te) {
39062
        throw new java.io.IOException(te);
39063
      }
39064
    }
39065
 
39066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39067
      try {
39068
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39069
        __isset_bit_vector = new BitSet(1);
39070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39071
      } catch (org.apache.thrift.TException te) {
39072
        throw new java.io.IOException(te);
39073
      }
39074
    }
39075
 
48 ashish 39076
  }
39077
 
3430 rajveer 39078
  public static class getCartsByTime_result implements org.apache.thrift.TBase<getCartsByTime_result, getCartsByTime_result._Fields>, java.io.Serializable, Cloneable   {
39079
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_result");
48 ashish 39080
 
3430 rajveer 39081
    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);
39082
    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 39083
 
3430 rajveer 39084
    private List<Cart> success; // required
39085
    private ShoppingCartException scx; // required
48 ashish 39086
 
39087
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39088
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 39089
      SUCCESS((short)0, "success"),
553 chandransh 39090
      SCX((short)1, "scx");
48 ashish 39091
 
39092
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39093
 
39094
      static {
39095
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39096
          byName.put(field.getFieldName(), field);
39097
        }
39098
      }
39099
 
39100
      /**
39101
       * Find the _Fields constant that matches fieldId, or null if its not found.
39102
       */
39103
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39104
        switch(fieldId) {
39105
          case 0: // SUCCESS
39106
            return SUCCESS;
39107
          case 1: // SCX
39108
            return SCX;
39109
          default:
39110
            return null;
39111
        }
48 ashish 39112
      }
39113
 
39114
      /**
39115
       * Find the _Fields constant that matches fieldId, throwing an exception
39116
       * if it is not found.
39117
       */
39118
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39119
        _Fields fields = findByThriftId(fieldId);
39120
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39121
        return fields;
39122
      }
39123
 
39124
      /**
39125
       * Find the _Fields constant that matches name, or null if its not found.
39126
       */
39127
      public static _Fields findByName(String name) {
39128
        return byName.get(name);
39129
      }
39130
 
39131
      private final short _thriftId;
39132
      private final String _fieldName;
39133
 
39134
      _Fields(short thriftId, String fieldName) {
39135
        _thriftId = thriftId;
39136
        _fieldName = fieldName;
39137
      }
39138
 
39139
      public short getThriftFieldId() {
39140
        return _thriftId;
39141
      }
39142
 
39143
      public String getFieldName() {
39144
        return _fieldName;
39145
      }
39146
    }
39147
 
39148
    // isset id assignments
39149
 
3430 rajveer 39150
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39151
    static {
3430 rajveer 39152
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39153
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39154
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39155
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
39156
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39158
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39159
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByTime_result.class, metaDataMap);
48 ashish 39160
    }
39161
 
553 chandransh 39162
    public getCartsByTime_result() {
48 ashish 39163
    }
39164
 
553 chandransh 39165
    public getCartsByTime_result(
39166
      List<Cart> success,
39167
      ShoppingCartException scx)
48 ashish 39168
    {
39169
      this();
39170
      this.success = success;
553 chandransh 39171
      this.scx = scx;
48 ashish 39172
    }
39173
 
39174
    /**
39175
     * Performs a deep copy on <i>other</i>.
39176
     */
553 chandransh 39177
    public getCartsByTime_result(getCartsByTime_result other) {
39178
      if (other.isSetSuccess()) {
39179
        List<Cart> __this__success = new ArrayList<Cart>();
39180
        for (Cart other_element : other.success) {
39181
          __this__success.add(new Cart(other_element));
39182
        }
39183
        this.success = __this__success;
48 ashish 39184
      }
553 chandransh 39185
      if (other.isSetScx()) {
39186
        this.scx = new ShoppingCartException(other.scx);
39187
      }
48 ashish 39188
    }
39189
 
553 chandransh 39190
    public getCartsByTime_result deepCopy() {
39191
      return new getCartsByTime_result(this);
48 ashish 39192
    }
39193
 
3430 rajveer 39194
    @Override
39195
    public void clear() {
39196
      this.success = null;
39197
      this.scx = null;
48 ashish 39198
    }
39199
 
553 chandransh 39200
    public int getSuccessSize() {
39201
      return (this.success == null) ? 0 : this.success.size();
39202
    }
39203
 
39204
    public java.util.Iterator<Cart> getSuccessIterator() {
39205
      return (this.success == null) ? null : this.success.iterator();
39206
    }
39207
 
39208
    public void addToSuccess(Cart elem) {
39209
      if (this.success == null) {
39210
        this.success = new ArrayList<Cart>();
39211
      }
39212
      this.success.add(elem);
39213
    }
39214
 
39215
    public List<Cart> getSuccess() {
48 ashish 39216
      return this.success;
39217
    }
39218
 
3430 rajveer 39219
    public void setSuccess(List<Cart> success) {
48 ashish 39220
      this.success = success;
39221
    }
39222
 
39223
    public void unsetSuccess() {
553 chandransh 39224
      this.success = null;
48 ashish 39225
    }
39226
 
3430 rajveer 39227
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 39228
    public boolean isSetSuccess() {
553 chandransh 39229
      return this.success != null;
48 ashish 39230
    }
39231
 
39232
    public void setSuccessIsSet(boolean value) {
553 chandransh 39233
      if (!value) {
39234
        this.success = null;
39235
      }
48 ashish 39236
    }
39237
 
553 chandransh 39238
    public ShoppingCartException getScx() {
39239
      return this.scx;
48 ashish 39240
    }
39241
 
3430 rajveer 39242
    public void setScx(ShoppingCartException scx) {
553 chandransh 39243
      this.scx = scx;
48 ashish 39244
    }
39245
 
553 chandransh 39246
    public void unsetScx() {
39247
      this.scx = null;
48 ashish 39248
    }
39249
 
3430 rajveer 39250
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 39251
    public boolean isSetScx() {
39252
      return this.scx != null;
48 ashish 39253
    }
39254
 
553 chandransh 39255
    public void setScxIsSet(boolean value) {
48 ashish 39256
      if (!value) {
553 chandransh 39257
        this.scx = null;
48 ashish 39258
      }
39259
    }
39260
 
39261
    public void setFieldValue(_Fields field, Object value) {
39262
      switch (field) {
39263
      case SUCCESS:
39264
        if (value == null) {
39265
          unsetSuccess();
39266
        } else {
553 chandransh 39267
          setSuccess((List<Cart>)value);
48 ashish 39268
        }
39269
        break;
39270
 
553 chandransh 39271
      case SCX:
48 ashish 39272
        if (value == null) {
553 chandransh 39273
          unsetScx();
48 ashish 39274
        } else {
553 chandransh 39275
          setScx((ShoppingCartException)value);
48 ashish 39276
        }
39277
        break;
39278
 
39279
      }
39280
    }
39281
 
39282
    public Object getFieldValue(_Fields field) {
39283
      switch (field) {
39284
      case SUCCESS:
553 chandransh 39285
        return getSuccess();
48 ashish 39286
 
553 chandransh 39287
      case SCX:
39288
        return getScx();
48 ashish 39289
 
39290
      }
39291
      throw new IllegalStateException();
39292
    }
39293
 
3430 rajveer 39294
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39295
    public boolean isSet(_Fields field) {
39296
      if (field == null) {
39297
        throw new IllegalArgumentException();
39298
      }
48 ashish 39299
 
39300
      switch (field) {
39301
      case SUCCESS:
39302
        return isSetSuccess();
553 chandransh 39303
      case SCX:
39304
        return isSetScx();
48 ashish 39305
      }
39306
      throw new IllegalStateException();
39307
    }
39308
 
39309
    @Override
39310
    public boolean equals(Object that) {
39311
      if (that == null)
39312
        return false;
553 chandransh 39313
      if (that instanceof getCartsByTime_result)
39314
        return this.equals((getCartsByTime_result)that);
48 ashish 39315
      return false;
39316
    }
39317
 
553 chandransh 39318
    public boolean equals(getCartsByTime_result that) {
48 ashish 39319
      if (that == null)
39320
        return false;
39321
 
553 chandransh 39322
      boolean this_present_success = true && this.isSetSuccess();
39323
      boolean that_present_success = true && that.isSetSuccess();
48 ashish 39324
      if (this_present_success || that_present_success) {
39325
        if (!(this_present_success && that_present_success))
39326
          return false;
553 chandransh 39327
        if (!this.success.equals(that.success))
48 ashish 39328
          return false;
39329
      }
39330
 
553 chandransh 39331
      boolean this_present_scx = true && this.isSetScx();
39332
      boolean that_present_scx = true && that.isSetScx();
39333
      if (this_present_scx || that_present_scx) {
39334
        if (!(this_present_scx && that_present_scx))
48 ashish 39335
          return false;
553 chandransh 39336
        if (!this.scx.equals(that.scx))
48 ashish 39337
          return false;
39338
      }
39339
 
39340
      return true;
39341
    }
39342
 
39343
    @Override
39344
    public int hashCode() {
39345
      return 0;
39346
    }
39347
 
553 chandransh 39348
    public int compareTo(getCartsByTime_result other) {
48 ashish 39349
      if (!getClass().equals(other.getClass())) {
39350
        return getClass().getName().compareTo(other.getClass().getName());
39351
      }
39352
 
39353
      int lastComparison = 0;
553 chandransh 39354
      getCartsByTime_result typedOther = (getCartsByTime_result)other;
48 ashish 39355
 
3430 rajveer 39356
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 39357
      if (lastComparison != 0) {
39358
        return lastComparison;
39359
      }
3430 rajveer 39360
      if (isSetSuccess()) {
39361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39362
        if (lastComparison != 0) {
39363
          return lastComparison;
39364
        }
48 ashish 39365
      }
3430 rajveer 39366
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 39367
      if (lastComparison != 0) {
39368
        return lastComparison;
39369
      }
3430 rajveer 39370
      if (isSetScx()) {
39371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
39372
        if (lastComparison != 0) {
39373
          return lastComparison;
39374
        }
48 ashish 39375
      }
39376
      return 0;
39377
    }
39378
 
3430 rajveer 39379
    public _Fields fieldForId(int fieldId) {
39380
      return _Fields.findByThriftId(fieldId);
39381
    }
39382
 
39383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39384
      org.apache.thrift.protocol.TField field;
48 ashish 39385
      iprot.readStructBegin();
39386
      while (true)
39387
      {
39388
        field = iprot.readFieldBegin();
3430 rajveer 39389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39390
          break;
39391
        }
3430 rajveer 39392
        switch (field.id) {
39393
          case 0: // SUCCESS
39394
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39395
              {
39396
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
39397
                this.success = new ArrayList<Cart>(_list60.size);
39398
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
553 chandransh 39399
                {
3430 rajveer 39400
                  Cart _elem62; // required
39401
                  _elem62 = new Cart();
39402
                  _elem62.read(iprot);
39403
                  this.success.add(_elem62);
553 chandransh 39404
                }
3430 rajveer 39405
                iprot.readListEnd();
48 ashish 39406
              }
3430 rajveer 39407
            } else { 
39408
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39409
            }
39410
            break;
39411
          case 1: // SCX
39412
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39413
              this.scx = new ShoppingCartException();
39414
              this.scx.read(iprot);
39415
            } else { 
39416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39417
            }
39418
            break;
39419
          default:
39420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39421
        }
3430 rajveer 39422
        iprot.readFieldEnd();
48 ashish 39423
      }
39424
      iprot.readStructEnd();
39425
      validate();
39426
    }
39427
 
3430 rajveer 39428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39429
      oprot.writeStructBegin(STRUCT_DESC);
39430
 
39431
      if (this.isSetSuccess()) {
39432
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 39433
        {
3430 rajveer 39434
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 39435
          for (Cart _iter63 : this.success)
553 chandransh 39436
          {
3385 varun.gupt 39437
            _iter63.write(oprot);
553 chandransh 39438
          }
39439
          oprot.writeListEnd();
39440
        }
48 ashish 39441
        oprot.writeFieldEnd();
553 chandransh 39442
      } else if (this.isSetScx()) {
39443
        oprot.writeFieldBegin(SCX_FIELD_DESC);
39444
        this.scx.write(oprot);
48 ashish 39445
        oprot.writeFieldEnd();
39446
      }
39447
      oprot.writeFieldStop();
39448
      oprot.writeStructEnd();
39449
    }
39450
 
39451
    @Override
39452
    public String toString() {
553 chandransh 39453
      StringBuilder sb = new StringBuilder("getCartsByTime_result(");
48 ashish 39454
      boolean first = true;
39455
 
39456
      sb.append("success:");
553 chandransh 39457
      if (this.success == null) {
39458
        sb.append("null");
39459
      } else {
39460
        sb.append(this.success);
39461
      }
48 ashish 39462
      first = false;
39463
      if (!first) sb.append(", ");
553 chandransh 39464
      sb.append("scx:");
39465
      if (this.scx == null) {
48 ashish 39466
        sb.append("null");
39467
      } else {
553 chandransh 39468
        sb.append(this.scx);
48 ashish 39469
      }
39470
      first = false;
39471
      sb.append(")");
39472
      return sb.toString();
39473
    }
39474
 
3430 rajveer 39475
    public void validate() throws org.apache.thrift.TException {
48 ashish 39476
      // check for required fields
39477
    }
39478
 
3430 rajveer 39479
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39480
      try {
39481
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39482
      } catch (org.apache.thrift.TException te) {
39483
        throw new java.io.IOException(te);
39484
      }
39485
    }
39486
 
39487
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39488
      try {
39489
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39490
      } catch (org.apache.thrift.TException te) {
39491
        throw new java.io.IOException(te);
39492
      }
39493
    }
39494
 
48 ashish 39495
  }
39496
 
3430 rajveer 39497
  public static class changeCartStatus_args implements org.apache.thrift.TBase<changeCartStatus_args, changeCartStatus_args._Fields>, java.io.Serializable, Cloneable   {
39498
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_args");
48 ashish 39499
 
3430 rajveer 39500
    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);
39501
    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 39502
 
3430 rajveer 39503
    private long cartId; // required
39504
    private CartStatus status; // required
48 ashish 39505
 
39506
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39507
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 39508
      CART_ID((short)1, "cartId"),
39509
      /**
39510
       * 
39511
       * @see CartStatus
39512
       */
39513
      STATUS((short)2, "status");
48 ashish 39514
 
39515
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39516
 
39517
      static {
39518
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39519
          byName.put(field.getFieldName(), field);
39520
        }
39521
      }
39522
 
39523
      /**
39524
       * Find the _Fields constant that matches fieldId, or null if its not found.
39525
       */
39526
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39527
        switch(fieldId) {
39528
          case 1: // CART_ID
39529
            return CART_ID;
39530
          case 2: // STATUS
39531
            return STATUS;
39532
          default:
39533
            return null;
39534
        }
48 ashish 39535
      }
39536
 
39537
      /**
39538
       * Find the _Fields constant that matches fieldId, throwing an exception
39539
       * if it is not found.
39540
       */
39541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39542
        _Fields fields = findByThriftId(fieldId);
39543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39544
        return fields;
39545
      }
39546
 
39547
      /**
39548
       * Find the _Fields constant that matches name, or null if its not found.
39549
       */
39550
      public static _Fields findByName(String name) {
39551
        return byName.get(name);
39552
      }
39553
 
39554
      private final short _thriftId;
39555
      private final String _fieldName;
39556
 
39557
      _Fields(short thriftId, String fieldName) {
39558
        _thriftId = thriftId;
39559
        _fieldName = fieldName;
39560
      }
39561
 
39562
      public short getThriftFieldId() {
39563
        return _thriftId;
39564
      }
39565
 
39566
      public String getFieldName() {
39567
        return _fieldName;
39568
      }
39569
    }
39570
 
39571
    // isset id assignments
553 chandransh 39572
    private static final int __CARTID_ISSET_ID = 0;
48 ashish 39573
    private BitSet __isset_bit_vector = new BitSet(1);
39574
 
3430 rajveer 39575
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39576
    static {
3430 rajveer 39577
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39578
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39579
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39580
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39581
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
39582
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39583
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_args.class, metaDataMap);
48 ashish 39584
    }
39585
 
553 chandransh 39586
    public changeCartStatus_args() {
48 ashish 39587
    }
39588
 
553 chandransh 39589
    public changeCartStatus_args(
39590
      long cartId,
39591
      CartStatus status)
48 ashish 39592
    {
39593
      this();
553 chandransh 39594
      this.cartId = cartId;
39595
      setCartIdIsSet(true);
39596
      this.status = status;
48 ashish 39597
    }
39598
 
39599
    /**
39600
     * Performs a deep copy on <i>other</i>.
39601
     */
553 chandransh 39602
    public changeCartStatus_args(changeCartStatus_args other) {
48 ashish 39603
      __isset_bit_vector.clear();
39604
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 39605
      this.cartId = other.cartId;
39606
      if (other.isSetStatus()) {
39607
        this.status = other.status;
39608
      }
48 ashish 39609
    }
39610
 
553 chandransh 39611
    public changeCartStatus_args deepCopy() {
39612
      return new changeCartStatus_args(this);
48 ashish 39613
    }
39614
 
3430 rajveer 39615
    @Override
39616
    public void clear() {
39617
      setCartIdIsSet(false);
39618
      this.cartId = 0;
39619
      this.status = null;
48 ashish 39620
    }
39621
 
553 chandransh 39622
    public long getCartId() {
39623
      return this.cartId;
48 ashish 39624
    }
39625
 
3430 rajveer 39626
    public void setCartId(long cartId) {
553 chandransh 39627
      this.cartId = cartId;
39628
      setCartIdIsSet(true);
48 ashish 39629
    }
39630
 
553 chandransh 39631
    public void unsetCartId() {
39632
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 39633
    }
39634
 
3430 rajveer 39635
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 39636
    public boolean isSetCartId() {
39637
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 39638
    }
39639
 
553 chandransh 39640
    public void setCartIdIsSet(boolean value) {
39641
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 39642
    }
39643
 
553 chandransh 39644
    /**
39645
     * 
39646
     * @see CartStatus
39647
     */
39648
    public CartStatus getStatus() {
39649
      return this.status;
39650
    }
39651
 
39652
    /**
39653
     * 
39654
     * @see CartStatus
39655
     */
3430 rajveer 39656
    public void setStatus(CartStatus status) {
553 chandransh 39657
      this.status = status;
39658
    }
39659
 
39660
    public void unsetStatus() {
39661
      this.status = null;
39662
    }
39663
 
3430 rajveer 39664
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 39665
    public boolean isSetStatus() {
39666
      return this.status != null;
39667
    }
39668
 
39669
    public void setStatusIsSet(boolean value) {
39670
      if (!value) {
39671
        this.status = null;
39672
      }
39673
    }
39674
 
48 ashish 39675
    public void setFieldValue(_Fields field, Object value) {
39676
      switch (field) {
553 chandransh 39677
      case CART_ID:
48 ashish 39678
        if (value == null) {
553 chandransh 39679
          unsetCartId();
48 ashish 39680
        } else {
553 chandransh 39681
          setCartId((Long)value);
48 ashish 39682
        }
39683
        break;
39684
 
553 chandransh 39685
      case STATUS:
39686
        if (value == null) {
39687
          unsetStatus();
39688
        } else {
39689
          setStatus((CartStatus)value);
39690
        }
39691
        break;
39692
 
48 ashish 39693
      }
39694
    }
39695
 
39696
    public Object getFieldValue(_Fields field) {
39697
      switch (field) {
553 chandransh 39698
      case CART_ID:
3430 rajveer 39699
        return Long.valueOf(getCartId());
48 ashish 39700
 
553 chandransh 39701
      case STATUS:
39702
        return getStatus();
39703
 
48 ashish 39704
      }
39705
      throw new IllegalStateException();
39706
    }
39707
 
3430 rajveer 39708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39709
    public boolean isSet(_Fields field) {
39710
      if (field == null) {
39711
        throw new IllegalArgumentException();
39712
      }
48 ashish 39713
 
39714
      switch (field) {
553 chandransh 39715
      case CART_ID:
39716
        return isSetCartId();
39717
      case STATUS:
39718
        return isSetStatus();
48 ashish 39719
      }
39720
      throw new IllegalStateException();
39721
    }
39722
 
39723
    @Override
39724
    public boolean equals(Object that) {
39725
      if (that == null)
39726
        return false;
553 chandransh 39727
      if (that instanceof changeCartStatus_args)
39728
        return this.equals((changeCartStatus_args)that);
48 ashish 39729
      return false;
39730
    }
39731
 
553 chandransh 39732
    public boolean equals(changeCartStatus_args that) {
48 ashish 39733
      if (that == null)
39734
        return false;
39735
 
553 chandransh 39736
      boolean this_present_cartId = true;
39737
      boolean that_present_cartId = true;
39738
      if (this_present_cartId || that_present_cartId) {
39739
        if (!(this_present_cartId && that_present_cartId))
48 ashish 39740
          return false;
553 chandransh 39741
        if (this.cartId != that.cartId)
48 ashish 39742
          return false;
39743
      }
39744
 
553 chandransh 39745
      boolean this_present_status = true && this.isSetStatus();
39746
      boolean that_present_status = true && that.isSetStatus();
39747
      if (this_present_status || that_present_status) {
39748
        if (!(this_present_status && that_present_status))
39749
          return false;
39750
        if (!this.status.equals(that.status))
39751
          return false;
39752
      }
39753
 
48 ashish 39754
      return true;
39755
    }
39756
 
39757
    @Override
39758
    public int hashCode() {
39759
      return 0;
39760
    }
39761
 
553 chandransh 39762
    public int compareTo(changeCartStatus_args other) {
48 ashish 39763
      if (!getClass().equals(other.getClass())) {
39764
        return getClass().getName().compareTo(other.getClass().getName());
39765
      }
39766
 
39767
      int lastComparison = 0;
553 chandransh 39768
      changeCartStatus_args typedOther = (changeCartStatus_args)other;
48 ashish 39769
 
3430 rajveer 39770
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 39771
      if (lastComparison != 0) {
39772
        return lastComparison;
39773
      }
3430 rajveer 39774
      if (isSetCartId()) {
39775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
39776
        if (lastComparison != 0) {
39777
          return lastComparison;
39778
        }
48 ashish 39779
      }
3430 rajveer 39780
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 39781
      if (lastComparison != 0) {
39782
        return lastComparison;
39783
      }
3430 rajveer 39784
      if (isSetStatus()) {
39785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
39786
        if (lastComparison != 0) {
39787
          return lastComparison;
39788
        }
553 chandransh 39789
      }
48 ashish 39790
      return 0;
39791
    }
39792
 
3430 rajveer 39793
    public _Fields fieldForId(int fieldId) {
39794
      return _Fields.findByThriftId(fieldId);
39795
    }
39796
 
39797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39798
      org.apache.thrift.protocol.TField field;
48 ashish 39799
      iprot.readStructBegin();
39800
      while (true)
39801
      {
39802
        field = iprot.readFieldBegin();
3430 rajveer 39803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39804
          break;
39805
        }
3430 rajveer 39806
        switch (field.id) {
39807
          case 1: // CART_ID
39808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39809
              this.cartId = iprot.readI64();
39810
              setCartIdIsSet(true);
39811
            } else { 
39812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39813
            }
39814
            break;
39815
          case 2: // STATUS
39816
            if (field.type == org.apache.thrift.protocol.TType.I32) {
39817
              this.status = CartStatus.findByValue(iprot.readI32());
39818
            } else { 
39819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39820
            }
39821
            break;
39822
          default:
39823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39824
        }
3430 rajveer 39825
        iprot.readFieldEnd();
48 ashish 39826
      }
39827
      iprot.readStructEnd();
39828
      validate();
39829
    }
39830
 
3430 rajveer 39831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39832
      validate();
39833
 
39834
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 39835
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
39836
      oprot.writeI64(this.cartId);
48 ashish 39837
      oprot.writeFieldEnd();
553 chandransh 39838
      if (this.status != null) {
39839
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
39840
        oprot.writeI32(this.status.getValue());
39841
        oprot.writeFieldEnd();
39842
      }
48 ashish 39843
      oprot.writeFieldStop();
39844
      oprot.writeStructEnd();
39845
    }
39846
 
39847
    @Override
39848
    public String toString() {
553 chandransh 39849
      StringBuilder sb = new StringBuilder("changeCartStatus_args(");
48 ashish 39850
      boolean first = true;
39851
 
553 chandransh 39852
      sb.append("cartId:");
39853
      sb.append(this.cartId);
48 ashish 39854
      first = false;
553 chandransh 39855
      if (!first) sb.append(", ");
39856
      sb.append("status:");
39857
      if (this.status == null) {
39858
        sb.append("null");
39859
      } else {
39860
        sb.append(this.status);
39861
      }
39862
      first = false;
48 ashish 39863
      sb.append(")");
39864
      return sb.toString();
39865
    }
39866
 
3430 rajveer 39867
    public void validate() throws org.apache.thrift.TException {
48 ashish 39868
      // check for required fields
39869
    }
39870
 
3430 rajveer 39871
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39872
      try {
39873
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39874
      } catch (org.apache.thrift.TException te) {
39875
        throw new java.io.IOException(te);
39876
      }
39877
    }
39878
 
39879
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39880
      try {
39881
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39882
        __isset_bit_vector = new BitSet(1);
39883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39884
      } catch (org.apache.thrift.TException te) {
39885
        throw new java.io.IOException(te);
39886
      }
39887
    }
39888
 
48 ashish 39889
  }
39890
 
3430 rajveer 39891
  public static class changeCartStatus_result implements org.apache.thrift.TBase<changeCartStatus_result, changeCartStatus_result._Fields>, java.io.Serializable, Cloneable   {
39892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_result");
48 ashish 39893
 
3430 rajveer 39894
    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 39895
 
3430 rajveer 39896
    private ShoppingCartException scx; // required
48 ashish 39897
 
39898
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39899
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 39900
      SCX((short)1, "scx");
48 ashish 39901
 
39902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39903
 
39904
      static {
39905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39906
          byName.put(field.getFieldName(), field);
39907
        }
39908
      }
39909
 
39910
      /**
39911
       * Find the _Fields constant that matches fieldId, or null if its not found.
39912
       */
39913
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39914
        switch(fieldId) {
39915
          case 1: // SCX
39916
            return SCX;
39917
          default:
39918
            return null;
39919
        }
48 ashish 39920
      }
39921
 
39922
      /**
39923
       * Find the _Fields constant that matches fieldId, throwing an exception
39924
       * if it is not found.
39925
       */
39926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39927
        _Fields fields = findByThriftId(fieldId);
39928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39929
        return fields;
39930
      }
39931
 
39932
      /**
39933
       * Find the _Fields constant that matches name, or null if its not found.
39934
       */
39935
      public static _Fields findByName(String name) {
39936
        return byName.get(name);
39937
      }
39938
 
39939
      private final short _thriftId;
39940
      private final String _fieldName;
39941
 
39942
      _Fields(short thriftId, String fieldName) {
39943
        _thriftId = thriftId;
39944
        _fieldName = fieldName;
39945
      }
39946
 
39947
      public short getThriftFieldId() {
39948
        return _thriftId;
39949
      }
39950
 
39951
      public String getFieldName() {
39952
        return _fieldName;
39953
      }
39954
    }
39955
 
39956
    // isset id assignments
39957
 
3430 rajveer 39958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39959
    static {
3430 rajveer 39960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39961
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_result.class, metaDataMap);
48 ashish 39965
    }
39966
 
553 chandransh 39967
    public changeCartStatus_result() {
48 ashish 39968
    }
39969
 
553 chandransh 39970
    public changeCartStatus_result(
39971
      ShoppingCartException scx)
48 ashish 39972
    {
39973
      this();
553 chandransh 39974
      this.scx = scx;
48 ashish 39975
    }
39976
 
39977
    /**
39978
     * Performs a deep copy on <i>other</i>.
39979
     */
553 chandransh 39980
    public changeCartStatus_result(changeCartStatus_result other) {
39981
      if (other.isSetScx()) {
39982
        this.scx = new ShoppingCartException(other.scx);
39983
      }
39984
    }
39985
 
39986
    public changeCartStatus_result deepCopy() {
39987
      return new changeCartStatus_result(this);
39988
    }
39989
 
3430 rajveer 39990
    @Override
39991
    public void clear() {
39992
      this.scx = null;
553 chandransh 39993
    }
39994
 
39995
    public ShoppingCartException getScx() {
39996
      return this.scx;
39997
    }
39998
 
3430 rajveer 39999
    public void setScx(ShoppingCartException scx) {
553 chandransh 40000
      this.scx = scx;
40001
    }
40002
 
40003
    public void unsetScx() {
40004
      this.scx = null;
40005
    }
40006
 
3430 rajveer 40007
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 40008
    public boolean isSetScx() {
40009
      return this.scx != null;
40010
    }
40011
 
40012
    public void setScxIsSet(boolean value) {
40013
      if (!value) {
40014
        this.scx = null;
40015
      }
40016
    }
40017
 
40018
    public void setFieldValue(_Fields field, Object value) {
40019
      switch (field) {
40020
      case SCX:
40021
        if (value == null) {
40022
          unsetScx();
40023
        } else {
40024
          setScx((ShoppingCartException)value);
40025
        }
40026
        break;
40027
 
40028
      }
40029
    }
40030
 
40031
    public Object getFieldValue(_Fields field) {
40032
      switch (field) {
40033
      case SCX:
40034
        return getScx();
40035
 
40036
      }
40037
      throw new IllegalStateException();
40038
    }
40039
 
3430 rajveer 40040
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40041
    public boolean isSet(_Fields field) {
40042
      if (field == null) {
40043
        throw new IllegalArgumentException();
40044
      }
553 chandransh 40045
 
40046
      switch (field) {
40047
      case SCX:
40048
        return isSetScx();
40049
      }
40050
      throw new IllegalStateException();
40051
    }
40052
 
40053
    @Override
40054
    public boolean equals(Object that) {
40055
      if (that == null)
40056
        return false;
40057
      if (that instanceof changeCartStatus_result)
40058
        return this.equals((changeCartStatus_result)that);
40059
      return false;
40060
    }
40061
 
40062
    public boolean equals(changeCartStatus_result that) {
40063
      if (that == null)
40064
        return false;
40065
 
40066
      boolean this_present_scx = true && this.isSetScx();
40067
      boolean that_present_scx = true && that.isSetScx();
40068
      if (this_present_scx || that_present_scx) {
40069
        if (!(this_present_scx && that_present_scx))
40070
          return false;
40071
        if (!this.scx.equals(that.scx))
40072
          return false;
40073
      }
40074
 
40075
      return true;
40076
    }
40077
 
40078
    @Override
40079
    public int hashCode() {
40080
      return 0;
40081
    }
40082
 
40083
    public int compareTo(changeCartStatus_result other) {
40084
      if (!getClass().equals(other.getClass())) {
40085
        return getClass().getName().compareTo(other.getClass().getName());
40086
      }
40087
 
40088
      int lastComparison = 0;
40089
      changeCartStatus_result typedOther = (changeCartStatus_result)other;
40090
 
3430 rajveer 40091
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 40092
      if (lastComparison != 0) {
40093
        return lastComparison;
40094
      }
3430 rajveer 40095
      if (isSetScx()) {
40096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
40097
        if (lastComparison != 0) {
40098
          return lastComparison;
40099
        }
553 chandransh 40100
      }
40101
      return 0;
40102
    }
40103
 
3430 rajveer 40104
    public _Fields fieldForId(int fieldId) {
40105
      return _Fields.findByThriftId(fieldId);
40106
    }
40107
 
40108
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40109
      org.apache.thrift.protocol.TField field;
553 chandransh 40110
      iprot.readStructBegin();
40111
      while (true)
40112
      {
40113
        field = iprot.readFieldBegin();
3430 rajveer 40114
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40115
          break;
40116
        }
3430 rajveer 40117
        switch (field.id) {
40118
          case 1: // SCX
40119
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40120
              this.scx = new ShoppingCartException();
40121
              this.scx.read(iprot);
40122
            } else { 
40123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40124
            }
40125
            break;
40126
          default:
40127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40128
        }
3430 rajveer 40129
        iprot.readFieldEnd();
553 chandransh 40130
      }
40131
      iprot.readStructEnd();
40132
      validate();
40133
    }
40134
 
3430 rajveer 40135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40136
      oprot.writeStructBegin(STRUCT_DESC);
40137
 
40138
      if (this.isSetScx()) {
40139
        oprot.writeFieldBegin(SCX_FIELD_DESC);
40140
        this.scx.write(oprot);
40141
        oprot.writeFieldEnd();
40142
      }
40143
      oprot.writeFieldStop();
40144
      oprot.writeStructEnd();
40145
    }
40146
 
40147
    @Override
40148
    public String toString() {
40149
      StringBuilder sb = new StringBuilder("changeCartStatus_result(");
40150
      boolean first = true;
40151
 
40152
      sb.append("scx:");
40153
      if (this.scx == null) {
40154
        sb.append("null");
40155
      } else {
40156
        sb.append(this.scx);
40157
      }
40158
      first = false;
40159
      sb.append(")");
40160
      return sb.toString();
40161
    }
40162
 
3430 rajveer 40163
    public void validate() throws org.apache.thrift.TException {
553 chandransh 40164
      // check for required fields
40165
    }
40166
 
3430 rajveer 40167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40168
      try {
40169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40170
      } catch (org.apache.thrift.TException te) {
40171
        throw new java.io.IOException(te);
40172
      }
40173
    }
40174
 
40175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40176
      try {
40177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40178
      } catch (org.apache.thrift.TException te) {
40179
        throw new java.io.IOException(te);
40180
      }
40181
    }
40182
 
553 chandransh 40183
  }
40184
 
3430 rajveer 40185
  public static class addItemToCart_args implements org.apache.thrift.TBase<addItemToCart_args, addItemToCart_args._Fields>, java.io.Serializable, Cloneable   {
40186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_args");
553 chandransh 40187
 
3430 rajveer 40188
    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);
40189
    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);
40190
    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 40191
 
3430 rajveer 40192
    private long cartId; // required
40193
    private long itemId; // required
40194
    private long quantity; // required
553 chandransh 40195
 
40196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 40198
      CART_ID((short)1, "cartId"),
40199
      ITEM_ID((short)2, "itemId"),
40200
      QUANTITY((short)3, "quantity");
40201
 
40202
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40203
 
40204
      static {
40205
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40206
          byName.put(field.getFieldName(), field);
40207
        }
40208
      }
40209
 
40210
      /**
40211
       * Find the _Fields constant that matches fieldId, or null if its not found.
40212
       */
40213
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40214
        switch(fieldId) {
40215
          case 1: // CART_ID
40216
            return CART_ID;
40217
          case 2: // ITEM_ID
40218
            return ITEM_ID;
40219
          case 3: // QUANTITY
40220
            return QUANTITY;
40221
          default:
40222
            return null;
40223
        }
553 chandransh 40224
      }
40225
 
40226
      /**
40227
       * Find the _Fields constant that matches fieldId, throwing an exception
40228
       * if it is not found.
40229
       */
40230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40231
        _Fields fields = findByThriftId(fieldId);
40232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40233
        return fields;
40234
      }
40235
 
40236
      /**
40237
       * Find the _Fields constant that matches name, or null if its not found.
40238
       */
40239
      public static _Fields findByName(String name) {
40240
        return byName.get(name);
40241
      }
40242
 
40243
      private final short _thriftId;
40244
      private final String _fieldName;
40245
 
40246
      _Fields(short thriftId, String fieldName) {
40247
        _thriftId = thriftId;
40248
        _fieldName = fieldName;
40249
      }
40250
 
40251
      public short getThriftFieldId() {
40252
        return _thriftId;
40253
      }
40254
 
40255
      public String getFieldName() {
40256
        return _fieldName;
40257
      }
40258
    }
40259
 
40260
    // isset id assignments
40261
    private static final int __CARTID_ISSET_ID = 0;
40262
    private static final int __ITEMID_ISSET_ID = 1;
40263
    private static final int __QUANTITY_ISSET_ID = 2;
40264
    private BitSet __isset_bit_vector = new BitSet(3);
40265
 
3430 rajveer 40266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 40267
    static {
3430 rajveer 40268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40269
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40270
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40271
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40273
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40275
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40276
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemToCart_args.class, metaDataMap);
553 chandransh 40277
    }
40278
 
40279
    public addItemToCart_args() {
40280
    }
40281
 
40282
    public addItemToCart_args(
40283
      long cartId,
40284
      long itemId,
40285
      long quantity)
40286
    {
40287
      this();
40288
      this.cartId = cartId;
40289
      setCartIdIsSet(true);
40290
      this.itemId = itemId;
40291
      setItemIdIsSet(true);
40292
      this.quantity = quantity;
40293
      setQuantityIsSet(true);
40294
    }
40295
 
40296
    /**
40297
     * Performs a deep copy on <i>other</i>.
40298
     */
40299
    public addItemToCart_args(addItemToCart_args other) {
48 ashish 40300
      __isset_bit_vector.clear();
40301
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 40302
      this.cartId = other.cartId;
40303
      this.itemId = other.itemId;
40304
      this.quantity = other.quantity;
48 ashish 40305
    }
40306
 
553 chandransh 40307
    public addItemToCart_args deepCopy() {
40308
      return new addItemToCart_args(this);
48 ashish 40309
    }
40310
 
3430 rajveer 40311
    @Override
40312
    public void clear() {
40313
      setCartIdIsSet(false);
40314
      this.cartId = 0;
40315
      setItemIdIsSet(false);
40316
      this.itemId = 0;
40317
      setQuantityIsSet(false);
40318
      this.quantity = 0;
48 ashish 40319
    }
40320
 
553 chandransh 40321
    public long getCartId() {
40322
      return this.cartId;
48 ashish 40323
    }
40324
 
3430 rajveer 40325
    public void setCartId(long cartId) {
553 chandransh 40326
      this.cartId = cartId;
40327
      setCartIdIsSet(true);
48 ashish 40328
    }
40329
 
553 chandransh 40330
    public void unsetCartId() {
40331
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 40332
    }
40333
 
3430 rajveer 40334
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 40335
    public boolean isSetCartId() {
40336
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 40337
    }
40338
 
553 chandransh 40339
    public void setCartIdIsSet(boolean value) {
40340
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 40341
    }
40342
 
553 chandransh 40343
    public long getItemId() {
40344
      return this.itemId;
48 ashish 40345
    }
40346
 
3430 rajveer 40347
    public void setItemId(long itemId) {
553 chandransh 40348
      this.itemId = itemId;
40349
      setItemIdIsSet(true);
48 ashish 40350
    }
40351
 
553 chandransh 40352
    public void unsetItemId() {
40353
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48 ashish 40354
    }
40355
 
3430 rajveer 40356
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 40357
    public boolean isSetItemId() {
40358
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48 ashish 40359
    }
40360
 
553 chandransh 40361
    public void setItemIdIsSet(boolean value) {
40362
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
40363
    }
40364
 
40365
    public long getQuantity() {
40366
      return this.quantity;
40367
    }
40368
 
3430 rajveer 40369
    public void setQuantity(long quantity) {
553 chandransh 40370
      this.quantity = quantity;
40371
      setQuantityIsSet(true);
40372
    }
40373
 
40374
    public void unsetQuantity() {
40375
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
40376
    }
40377
 
3430 rajveer 40378
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
553 chandransh 40379
    public boolean isSetQuantity() {
40380
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
40381
    }
40382
 
40383
    public void setQuantityIsSet(boolean value) {
40384
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
40385
    }
40386
 
40387
    public void setFieldValue(_Fields field, Object value) {
40388
      switch (field) {
40389
      case CART_ID:
40390
        if (value == null) {
40391
          unsetCartId();
40392
        } else {
40393
          setCartId((Long)value);
40394
        }
40395
        break;
40396
 
40397
      case ITEM_ID:
40398
        if (value == null) {
40399
          unsetItemId();
40400
        } else {
40401
          setItemId((Long)value);
40402
        }
40403
        break;
40404
 
40405
      case QUANTITY:
40406
        if (value == null) {
40407
          unsetQuantity();
40408
        } else {
40409
          setQuantity((Long)value);
40410
        }
40411
        break;
40412
 
40413
      }
40414
    }
40415
 
40416
    public Object getFieldValue(_Fields field) {
40417
      switch (field) {
40418
      case CART_ID:
3430 rajveer 40419
        return Long.valueOf(getCartId());
553 chandransh 40420
 
40421
      case ITEM_ID:
3430 rajveer 40422
        return Long.valueOf(getItemId());
553 chandransh 40423
 
40424
      case QUANTITY:
3430 rajveer 40425
        return Long.valueOf(getQuantity());
553 chandransh 40426
 
40427
      }
40428
      throw new IllegalStateException();
40429
    }
40430
 
3430 rajveer 40431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40432
    public boolean isSet(_Fields field) {
40433
      if (field == null) {
40434
        throw new IllegalArgumentException();
40435
      }
553 chandransh 40436
 
40437
      switch (field) {
40438
      case CART_ID:
40439
        return isSetCartId();
40440
      case ITEM_ID:
40441
        return isSetItemId();
40442
      case QUANTITY:
40443
        return isSetQuantity();
40444
      }
40445
      throw new IllegalStateException();
40446
    }
40447
 
40448
    @Override
40449
    public boolean equals(Object that) {
40450
      if (that == null)
40451
        return false;
40452
      if (that instanceof addItemToCart_args)
40453
        return this.equals((addItemToCart_args)that);
40454
      return false;
40455
    }
40456
 
40457
    public boolean equals(addItemToCart_args that) {
40458
      if (that == null)
40459
        return false;
40460
 
40461
      boolean this_present_cartId = true;
40462
      boolean that_present_cartId = true;
40463
      if (this_present_cartId || that_present_cartId) {
40464
        if (!(this_present_cartId && that_present_cartId))
40465
          return false;
40466
        if (this.cartId != that.cartId)
40467
          return false;
40468
      }
40469
 
40470
      boolean this_present_itemId = true;
40471
      boolean that_present_itemId = true;
40472
      if (this_present_itemId || that_present_itemId) {
40473
        if (!(this_present_itemId && that_present_itemId))
40474
          return false;
40475
        if (this.itemId != that.itemId)
40476
          return false;
40477
      }
40478
 
40479
      boolean this_present_quantity = true;
40480
      boolean that_present_quantity = true;
40481
      if (this_present_quantity || that_present_quantity) {
40482
        if (!(this_present_quantity && that_present_quantity))
40483
          return false;
40484
        if (this.quantity != that.quantity)
40485
          return false;
40486
      }
40487
 
40488
      return true;
40489
    }
40490
 
40491
    @Override
40492
    public int hashCode() {
40493
      return 0;
40494
    }
40495
 
40496
    public int compareTo(addItemToCart_args other) {
40497
      if (!getClass().equals(other.getClass())) {
40498
        return getClass().getName().compareTo(other.getClass().getName());
40499
      }
40500
 
40501
      int lastComparison = 0;
40502
      addItemToCart_args typedOther = (addItemToCart_args)other;
40503
 
3430 rajveer 40504
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 40505
      if (lastComparison != 0) {
40506
        return lastComparison;
40507
      }
3430 rajveer 40508
      if (isSetCartId()) {
40509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
40510
        if (lastComparison != 0) {
40511
          return lastComparison;
40512
        }
553 chandransh 40513
      }
3430 rajveer 40514
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 40515
      if (lastComparison != 0) {
40516
        return lastComparison;
40517
      }
3430 rajveer 40518
      if (isSetItemId()) {
40519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
40520
        if (lastComparison != 0) {
40521
          return lastComparison;
40522
        }
553 chandransh 40523
      }
3430 rajveer 40524
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
553 chandransh 40525
      if (lastComparison != 0) {
40526
        return lastComparison;
40527
      }
3430 rajveer 40528
      if (isSetQuantity()) {
40529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
40530
        if (lastComparison != 0) {
40531
          return lastComparison;
40532
        }
553 chandransh 40533
      }
40534
      return 0;
40535
    }
40536
 
3430 rajveer 40537
    public _Fields fieldForId(int fieldId) {
40538
      return _Fields.findByThriftId(fieldId);
40539
    }
40540
 
40541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40542
      org.apache.thrift.protocol.TField field;
553 chandransh 40543
      iprot.readStructBegin();
40544
      while (true)
40545
      {
40546
        field = iprot.readFieldBegin();
3430 rajveer 40547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40548
          break;
40549
        }
3430 rajveer 40550
        switch (field.id) {
40551
          case 1: // CART_ID
40552
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40553
              this.cartId = iprot.readI64();
40554
              setCartIdIsSet(true);
40555
            } else { 
40556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40557
            }
40558
            break;
40559
          case 2: // ITEM_ID
40560
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40561
              this.itemId = iprot.readI64();
40562
              setItemIdIsSet(true);
40563
            } else { 
40564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40565
            }
40566
            break;
40567
          case 3: // QUANTITY
40568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40569
              this.quantity = iprot.readI64();
40570
              setQuantityIsSet(true);
40571
            } else { 
40572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40573
            }
40574
            break;
40575
          default:
40576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40577
        }
3430 rajveer 40578
        iprot.readFieldEnd();
553 chandransh 40579
      }
40580
      iprot.readStructEnd();
40581
      validate();
40582
    }
40583
 
3430 rajveer 40584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40585
      validate();
40586
 
40587
      oprot.writeStructBegin(STRUCT_DESC);
40588
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
40589
      oprot.writeI64(this.cartId);
40590
      oprot.writeFieldEnd();
40591
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
40592
      oprot.writeI64(this.itemId);
40593
      oprot.writeFieldEnd();
40594
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
40595
      oprot.writeI64(this.quantity);
40596
      oprot.writeFieldEnd();
40597
      oprot.writeFieldStop();
40598
      oprot.writeStructEnd();
40599
    }
40600
 
40601
    @Override
40602
    public String toString() {
40603
      StringBuilder sb = new StringBuilder("addItemToCart_args(");
40604
      boolean first = true;
40605
 
40606
      sb.append("cartId:");
40607
      sb.append(this.cartId);
40608
      first = false;
40609
      if (!first) sb.append(", ");
40610
      sb.append("itemId:");
40611
      sb.append(this.itemId);
40612
      first = false;
40613
      if (!first) sb.append(", ");
40614
      sb.append("quantity:");
40615
      sb.append(this.quantity);
40616
      first = false;
40617
      sb.append(")");
40618
      return sb.toString();
40619
    }
40620
 
3430 rajveer 40621
    public void validate() throws org.apache.thrift.TException {
553 chandransh 40622
      // check for required fields
40623
    }
40624
 
3430 rajveer 40625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40626
      try {
40627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40628
      } catch (org.apache.thrift.TException te) {
40629
        throw new java.io.IOException(te);
40630
      }
40631
    }
40632
 
40633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40634
      try {
40635
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40636
        __isset_bit_vector = new BitSet(1);
40637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40638
      } catch (org.apache.thrift.TException te) {
40639
        throw new java.io.IOException(te);
40640
      }
40641
    }
40642
 
553 chandransh 40643
  }
40644
 
3430 rajveer 40645
  public static class addItemToCart_result implements org.apache.thrift.TBase<addItemToCart_result, addItemToCart_result._Fields>, java.io.Serializable, Cloneable   {
40646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_result");
553 chandransh 40647
 
3430 rajveer 40648
    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);
40649
    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 40650
 
3430 rajveer 40651
    private String success; // required
40652
    private ShoppingCartException scx; // required
553 chandransh 40653
 
40654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2034 rajveer 40656
      SUCCESS((short)0, "success"),
553 chandransh 40657
      SCX((short)1, "scx");
40658
 
40659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40660
 
40661
      static {
40662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40663
          byName.put(field.getFieldName(), field);
40664
        }
40665
      }
40666
 
40667
      /**
40668
       * Find the _Fields constant that matches fieldId, or null if its not found.
40669
       */
40670
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40671
        switch(fieldId) {
40672
          case 0: // SUCCESS
40673
            return SUCCESS;
40674
          case 1: // SCX
40675
            return SCX;
40676
          default:
40677
            return null;
40678
        }
553 chandransh 40679
      }
40680
 
40681
      /**
40682
       * Find the _Fields constant that matches fieldId, throwing an exception
40683
       * if it is not found.
40684
       */
40685
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40686
        _Fields fields = findByThriftId(fieldId);
40687
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40688
        return fields;
40689
      }
40690
 
40691
      /**
40692
       * Find the _Fields constant that matches name, or null if its not found.
40693
       */
40694
      public static _Fields findByName(String name) {
40695
        return byName.get(name);
40696
      }
40697
 
40698
      private final short _thriftId;
40699
      private final String _fieldName;
40700
 
40701
      _Fields(short thriftId, String fieldName) {
40702
        _thriftId = thriftId;
40703
        _fieldName = fieldName;
40704
      }
40705
 
40706
      public short getThriftFieldId() {
40707
        return _thriftId;
40708
      }
40709
 
40710
      public String getFieldName() {
40711
        return _fieldName;
40712
      }
40713
    }
40714
 
40715
    // isset id assignments
40716
 
3430 rajveer 40717
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 40718
    static {
3430 rajveer 40719
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40720
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40722
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40724
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40725
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemToCart_result.class, metaDataMap);
553 chandransh 40726
    }
40727
 
40728
    public addItemToCart_result() {
40729
    }
40730
 
40731
    public addItemToCart_result(
2034 rajveer 40732
      String success,
553 chandransh 40733
      ShoppingCartException scx)
40734
    {
40735
      this();
2034 rajveer 40736
      this.success = success;
553 chandransh 40737
      this.scx = scx;
40738
    }
40739
 
40740
    /**
40741
     * Performs a deep copy on <i>other</i>.
40742
     */
40743
    public addItemToCart_result(addItemToCart_result other) {
2034 rajveer 40744
      if (other.isSetSuccess()) {
40745
        this.success = other.success;
40746
      }
553 chandransh 40747
      if (other.isSetScx()) {
40748
        this.scx = new ShoppingCartException(other.scx);
40749
      }
40750
    }
40751
 
40752
    public addItemToCart_result deepCopy() {
40753
      return new addItemToCart_result(this);
40754
    }
40755
 
3430 rajveer 40756
    @Override
40757
    public void clear() {
40758
      this.success = null;
40759
      this.scx = null;
553 chandransh 40760
    }
40761
 
2034 rajveer 40762
    public String getSuccess() {
40763
      return this.success;
40764
    }
40765
 
3430 rajveer 40766
    public void setSuccess(String success) {
2034 rajveer 40767
      this.success = success;
40768
    }
40769
 
40770
    public void unsetSuccess() {
40771
      this.success = null;
40772
    }
40773
 
3430 rajveer 40774
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2034 rajveer 40775
    public boolean isSetSuccess() {
40776
      return this.success != null;
40777
    }
40778
 
40779
    public void setSuccessIsSet(boolean value) {
40780
      if (!value) {
40781
        this.success = null;
40782
      }
40783
    }
40784
 
553 chandransh 40785
    public ShoppingCartException getScx() {
40786
      return this.scx;
40787
    }
40788
 
3430 rajveer 40789
    public void setScx(ShoppingCartException scx) {
553 chandransh 40790
      this.scx = scx;
40791
    }
40792
 
40793
    public void unsetScx() {
40794
      this.scx = null;
40795
    }
40796
 
3430 rajveer 40797
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 40798
    public boolean isSetScx() {
40799
      return this.scx != null;
40800
    }
40801
 
40802
    public void setScxIsSet(boolean value) {
48 ashish 40803
      if (!value) {
553 chandransh 40804
        this.scx = null;
48 ashish 40805
      }
40806
    }
40807
 
40808
    public void setFieldValue(_Fields field, Object value) {
40809
      switch (field) {
2034 rajveer 40810
      case SUCCESS:
40811
        if (value == null) {
40812
          unsetSuccess();
40813
        } else {
40814
          setSuccess((String)value);
40815
        }
40816
        break;
40817
 
553 chandransh 40818
      case SCX:
48 ashish 40819
        if (value == null) {
553 chandransh 40820
          unsetScx();
48 ashish 40821
        } else {
553 chandransh 40822
          setScx((ShoppingCartException)value);
48 ashish 40823
        }
40824
        break;
40825
 
553 chandransh 40826
      }
40827
    }
40828
 
40829
    public Object getFieldValue(_Fields field) {
40830
      switch (field) {
2034 rajveer 40831
      case SUCCESS:
40832
        return getSuccess();
40833
 
553 chandransh 40834
      case SCX:
40835
        return getScx();
40836
 
40837
      }
40838
      throw new IllegalStateException();
40839
    }
40840
 
3430 rajveer 40841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40842
    public boolean isSet(_Fields field) {
40843
      if (field == null) {
40844
        throw new IllegalArgumentException();
40845
      }
553 chandransh 40846
 
40847
      switch (field) {
2034 rajveer 40848
      case SUCCESS:
40849
        return isSetSuccess();
553 chandransh 40850
      case SCX:
40851
        return isSetScx();
40852
      }
40853
      throw new IllegalStateException();
40854
    }
40855
 
40856
    @Override
40857
    public boolean equals(Object that) {
40858
      if (that == null)
40859
        return false;
40860
      if (that instanceof addItemToCart_result)
40861
        return this.equals((addItemToCart_result)that);
40862
      return false;
40863
    }
40864
 
40865
    public boolean equals(addItemToCart_result that) {
40866
      if (that == null)
40867
        return false;
40868
 
2034 rajveer 40869
      boolean this_present_success = true && this.isSetSuccess();
40870
      boolean that_present_success = true && that.isSetSuccess();
40871
      if (this_present_success || that_present_success) {
40872
        if (!(this_present_success && that_present_success))
40873
          return false;
40874
        if (!this.success.equals(that.success))
40875
          return false;
40876
      }
40877
 
553 chandransh 40878
      boolean this_present_scx = true && this.isSetScx();
40879
      boolean that_present_scx = true && that.isSetScx();
40880
      if (this_present_scx || that_present_scx) {
40881
        if (!(this_present_scx && that_present_scx))
40882
          return false;
40883
        if (!this.scx.equals(that.scx))
40884
          return false;
40885
      }
40886
 
40887
      return true;
40888
    }
40889
 
40890
    @Override
40891
    public int hashCode() {
40892
      return 0;
40893
    }
40894
 
40895
    public int compareTo(addItemToCart_result other) {
40896
      if (!getClass().equals(other.getClass())) {
40897
        return getClass().getName().compareTo(other.getClass().getName());
40898
      }
40899
 
40900
      int lastComparison = 0;
40901
      addItemToCart_result typedOther = (addItemToCart_result)other;
40902
 
3430 rajveer 40903
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2034 rajveer 40904
      if (lastComparison != 0) {
40905
        return lastComparison;
40906
      }
3430 rajveer 40907
      if (isSetSuccess()) {
40908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40909
        if (lastComparison != 0) {
40910
          return lastComparison;
40911
        }
2034 rajveer 40912
      }
3430 rajveer 40913
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 40914
      if (lastComparison != 0) {
40915
        return lastComparison;
40916
      }
3430 rajveer 40917
      if (isSetScx()) {
40918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
40919
        if (lastComparison != 0) {
40920
          return lastComparison;
40921
        }
553 chandransh 40922
      }
40923
      return 0;
40924
    }
40925
 
3430 rajveer 40926
    public _Fields fieldForId(int fieldId) {
40927
      return _Fields.findByThriftId(fieldId);
40928
    }
40929
 
40930
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40931
      org.apache.thrift.protocol.TField field;
553 chandransh 40932
      iprot.readStructBegin();
40933
      while (true)
40934
      {
40935
        field = iprot.readFieldBegin();
3430 rajveer 40936
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40937
          break;
40938
        }
3430 rajveer 40939
        switch (field.id) {
40940
          case 0: // SUCCESS
40941
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
40942
              this.success = iprot.readString();
40943
            } else { 
40944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40945
            }
40946
            break;
40947
          case 1: // SCX
40948
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40949
              this.scx = new ShoppingCartException();
40950
              this.scx.read(iprot);
40951
            } else { 
40952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40953
            }
40954
            break;
40955
          default:
40956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40957
        }
3430 rajveer 40958
        iprot.readFieldEnd();
553 chandransh 40959
      }
40960
      iprot.readStructEnd();
40961
      validate();
40962
    }
40963
 
3430 rajveer 40964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40965
      oprot.writeStructBegin(STRUCT_DESC);
40966
 
2034 rajveer 40967
      if (this.isSetSuccess()) {
40968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40969
        oprot.writeString(this.success);
40970
        oprot.writeFieldEnd();
40971
      } else if (this.isSetScx()) {
553 chandransh 40972
        oprot.writeFieldBegin(SCX_FIELD_DESC);
40973
        this.scx.write(oprot);
40974
        oprot.writeFieldEnd();
40975
      }
40976
      oprot.writeFieldStop();
40977
      oprot.writeStructEnd();
40978
    }
40979
 
40980
    @Override
40981
    public String toString() {
40982
      StringBuilder sb = new StringBuilder("addItemToCart_result(");
40983
      boolean first = true;
40984
 
2034 rajveer 40985
      sb.append("success:");
40986
      if (this.success == null) {
40987
        sb.append("null");
40988
      } else {
40989
        sb.append(this.success);
40990
      }
40991
      first = false;
40992
      if (!first) sb.append(", ");
553 chandransh 40993
      sb.append("scx:");
40994
      if (this.scx == null) {
40995
        sb.append("null");
40996
      } else {
40997
        sb.append(this.scx);
40998
      }
40999
      first = false;
41000
      sb.append(")");
41001
      return sb.toString();
41002
    }
41003
 
3430 rajveer 41004
    public void validate() throws org.apache.thrift.TException {
553 chandransh 41005
      // check for required fields
41006
    }
41007
 
3430 rajveer 41008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41009
      try {
41010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41011
      } catch (org.apache.thrift.TException te) {
41012
        throw new java.io.IOException(te);
41013
      }
41014
    }
41015
 
41016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41017
      try {
41018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41019
      } catch (org.apache.thrift.TException te) {
41020
        throw new java.io.IOException(te);
41021
      }
41022
    }
41023
 
553 chandransh 41024
  }
41025
 
3430 rajveer 41026
  public static class deleteItemFromCart_args implements org.apache.thrift.TBase<deleteItemFromCart_args, deleteItemFromCart_args._Fields>, java.io.Serializable, Cloneable   {
41027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromCart_args");
553 chandransh 41028
 
3430 rajveer 41029
    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);
41030
    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 41031
 
3430 rajveer 41032
    private long cartId; // required
41033
    private long itemId; // required
553 chandransh 41034
 
41035
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41036
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41037
      CART_ID((short)1, "cartId"),
41038
      ITEM_ID((short)2, "itemId");
41039
 
41040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41041
 
41042
      static {
41043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41044
          byName.put(field.getFieldName(), field);
41045
        }
41046
      }
41047
 
41048
      /**
41049
       * Find the _Fields constant that matches fieldId, or null if its not found.
41050
       */
41051
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41052
        switch(fieldId) {
41053
          case 1: // CART_ID
41054
            return CART_ID;
41055
          case 2: // ITEM_ID
41056
            return ITEM_ID;
41057
          default:
41058
            return null;
41059
        }
553 chandransh 41060
      }
41061
 
41062
      /**
41063
       * Find the _Fields constant that matches fieldId, throwing an exception
41064
       * if it is not found.
41065
       */
41066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41067
        _Fields fields = findByThriftId(fieldId);
41068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41069
        return fields;
41070
      }
41071
 
41072
      /**
41073
       * Find the _Fields constant that matches name, or null if its not found.
41074
       */
41075
      public static _Fields findByName(String name) {
41076
        return byName.get(name);
41077
      }
41078
 
41079
      private final short _thriftId;
41080
      private final String _fieldName;
41081
 
41082
      _Fields(short thriftId, String fieldName) {
41083
        _thriftId = thriftId;
41084
        _fieldName = fieldName;
41085
      }
41086
 
41087
      public short getThriftFieldId() {
41088
        return _thriftId;
41089
      }
41090
 
41091
      public String getFieldName() {
41092
        return _fieldName;
41093
      }
41094
    }
41095
 
41096
    // isset id assignments
41097
    private static final int __CARTID_ISSET_ID = 0;
41098
    private static final int __ITEMID_ISSET_ID = 1;
41099
    private BitSet __isset_bit_vector = new BitSet(2);
41100
 
3430 rajveer 41101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 41102
    static {
3430 rajveer 41103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41104
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41106
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromCart_args.class, metaDataMap);
553 chandransh 41110
    }
41111
 
41112
    public deleteItemFromCart_args() {
41113
    }
41114
 
41115
    public deleteItemFromCart_args(
41116
      long cartId,
41117
      long itemId)
41118
    {
41119
      this();
41120
      this.cartId = cartId;
41121
      setCartIdIsSet(true);
41122
      this.itemId = itemId;
41123
      setItemIdIsSet(true);
41124
    }
41125
 
41126
    /**
41127
     * Performs a deep copy on <i>other</i>.
41128
     */
41129
    public deleteItemFromCart_args(deleteItemFromCart_args other) {
41130
      __isset_bit_vector.clear();
41131
      __isset_bit_vector.or(other.__isset_bit_vector);
41132
      this.cartId = other.cartId;
41133
      this.itemId = other.itemId;
41134
    }
41135
 
41136
    public deleteItemFromCart_args deepCopy() {
41137
      return new deleteItemFromCart_args(this);
41138
    }
41139
 
3430 rajveer 41140
    @Override
41141
    public void clear() {
41142
      setCartIdIsSet(false);
41143
      this.cartId = 0;
41144
      setItemIdIsSet(false);
41145
      this.itemId = 0;
553 chandransh 41146
    }
41147
 
41148
    public long getCartId() {
41149
      return this.cartId;
41150
    }
41151
 
3430 rajveer 41152
    public void setCartId(long cartId) {
553 chandransh 41153
      this.cartId = cartId;
41154
      setCartIdIsSet(true);
41155
    }
41156
 
41157
    public void unsetCartId() {
41158
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
41159
    }
41160
 
3430 rajveer 41161
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 41162
    public boolean isSetCartId() {
41163
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
41164
    }
41165
 
41166
    public void setCartIdIsSet(boolean value) {
41167
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
41168
    }
41169
 
41170
    public long getItemId() {
41171
      return this.itemId;
41172
    }
41173
 
3430 rajveer 41174
    public void setItemId(long itemId) {
553 chandransh 41175
      this.itemId = itemId;
41176
      setItemIdIsSet(true);
41177
    }
41178
 
41179
    public void unsetItemId() {
41180
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41181
    }
41182
 
3430 rajveer 41183
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 41184
    public boolean isSetItemId() {
41185
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41186
    }
41187
 
41188
    public void setItemIdIsSet(boolean value) {
41189
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41190
    }
41191
 
41192
    public void setFieldValue(_Fields field, Object value) {
41193
      switch (field) {
41194
      case CART_ID:
48 ashish 41195
        if (value == null) {
553 chandransh 41196
          unsetCartId();
48 ashish 41197
        } else {
553 chandransh 41198
          setCartId((Long)value);
48 ashish 41199
        }
41200
        break;
41201
 
553 chandransh 41202
      case ITEM_ID:
41203
        if (value == null) {
41204
          unsetItemId();
41205
        } else {
41206
          setItemId((Long)value);
41207
        }
41208
        break;
41209
 
48 ashish 41210
      }
41211
    }
41212
 
41213
    public Object getFieldValue(_Fields field) {
41214
      switch (field) {
553 chandransh 41215
      case CART_ID:
3430 rajveer 41216
        return Long.valueOf(getCartId());
48 ashish 41217
 
553 chandransh 41218
      case ITEM_ID:
3430 rajveer 41219
        return Long.valueOf(getItemId());
48 ashish 41220
 
41221
      }
41222
      throw new IllegalStateException();
41223
    }
41224
 
3430 rajveer 41225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41226
    public boolean isSet(_Fields field) {
41227
      if (field == null) {
41228
        throw new IllegalArgumentException();
41229
      }
48 ashish 41230
 
41231
      switch (field) {
553 chandransh 41232
      case CART_ID:
41233
        return isSetCartId();
41234
      case ITEM_ID:
41235
        return isSetItemId();
48 ashish 41236
      }
41237
      throw new IllegalStateException();
41238
    }
41239
 
41240
    @Override
41241
    public boolean equals(Object that) {
41242
      if (that == null)
41243
        return false;
553 chandransh 41244
      if (that instanceof deleteItemFromCart_args)
41245
        return this.equals((deleteItemFromCart_args)that);
48 ashish 41246
      return false;
41247
    }
41248
 
553 chandransh 41249
    public boolean equals(deleteItemFromCart_args that) {
48 ashish 41250
      if (that == null)
41251
        return false;
41252
 
553 chandransh 41253
      boolean this_present_cartId = true;
41254
      boolean that_present_cartId = true;
41255
      if (this_present_cartId || that_present_cartId) {
41256
        if (!(this_present_cartId && that_present_cartId))
48 ashish 41257
          return false;
553 chandransh 41258
        if (this.cartId != that.cartId)
48 ashish 41259
          return false;
41260
      }
41261
 
553 chandransh 41262
      boolean this_present_itemId = true;
41263
      boolean that_present_itemId = true;
41264
      if (this_present_itemId || that_present_itemId) {
41265
        if (!(this_present_itemId && that_present_itemId))
48 ashish 41266
          return false;
553 chandransh 41267
        if (this.itemId != that.itemId)
48 ashish 41268
          return false;
41269
      }
41270
 
41271
      return true;
41272
    }
41273
 
41274
    @Override
41275
    public int hashCode() {
41276
      return 0;
41277
    }
41278
 
553 chandransh 41279
    public int compareTo(deleteItemFromCart_args other) {
48 ashish 41280
      if (!getClass().equals(other.getClass())) {
41281
        return getClass().getName().compareTo(other.getClass().getName());
41282
      }
41283
 
41284
      int lastComparison = 0;
553 chandransh 41285
      deleteItemFromCart_args typedOther = (deleteItemFromCart_args)other;
48 ashish 41286
 
3430 rajveer 41287
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 41288
      if (lastComparison != 0) {
41289
        return lastComparison;
41290
      }
3430 rajveer 41291
      if (isSetCartId()) {
41292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
41293
        if (lastComparison != 0) {
41294
          return lastComparison;
41295
        }
48 ashish 41296
      }
3430 rajveer 41297
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48 ashish 41298
      if (lastComparison != 0) {
41299
        return lastComparison;
41300
      }
3430 rajveer 41301
      if (isSetItemId()) {
41302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
41303
        if (lastComparison != 0) {
41304
          return lastComparison;
41305
        }
48 ashish 41306
      }
41307
      return 0;
41308
    }
41309
 
3430 rajveer 41310
    public _Fields fieldForId(int fieldId) {
41311
      return _Fields.findByThriftId(fieldId);
41312
    }
41313
 
41314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41315
      org.apache.thrift.protocol.TField field;
48 ashish 41316
      iprot.readStructBegin();
41317
      while (true)
41318
      {
41319
        field = iprot.readFieldBegin();
3430 rajveer 41320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 41321
          break;
41322
        }
3430 rajveer 41323
        switch (field.id) {
41324
          case 1: // CART_ID
41325
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41326
              this.cartId = iprot.readI64();
41327
              setCartIdIsSet(true);
41328
            } else { 
41329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41330
            }
41331
            break;
41332
          case 2: // ITEM_ID
41333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41334
              this.itemId = iprot.readI64();
41335
              setItemIdIsSet(true);
41336
            } else { 
41337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41338
            }
41339
            break;
41340
          default:
41341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 41342
        }
3430 rajveer 41343
        iprot.readFieldEnd();
553 chandransh 41344
      }
41345
      iprot.readStructEnd();
41346
      validate();
41347
    }
41348
 
3430 rajveer 41349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 41350
      validate();
41351
 
41352
      oprot.writeStructBegin(STRUCT_DESC);
41353
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
41354
      oprot.writeI64(this.cartId);
41355
      oprot.writeFieldEnd();
41356
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
41357
      oprot.writeI64(this.itemId);
41358
      oprot.writeFieldEnd();
41359
      oprot.writeFieldStop();
41360
      oprot.writeStructEnd();
41361
    }
41362
 
41363
    @Override
41364
    public String toString() {
41365
      StringBuilder sb = new StringBuilder("deleteItemFromCart_args(");
41366
      boolean first = true;
41367
 
41368
      sb.append("cartId:");
41369
      sb.append(this.cartId);
41370
      first = false;
41371
      if (!first) sb.append(", ");
41372
      sb.append("itemId:");
41373
      sb.append(this.itemId);
41374
      first = false;
41375
      sb.append(")");
41376
      return sb.toString();
41377
    }
41378
 
3430 rajveer 41379
    public void validate() throws org.apache.thrift.TException {
553 chandransh 41380
      // check for required fields
41381
    }
41382
 
3430 rajveer 41383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41384
      try {
41385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41386
      } catch (org.apache.thrift.TException te) {
41387
        throw new java.io.IOException(te);
41388
      }
41389
    }
41390
 
41391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41392
      try {
41393
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41394
        __isset_bit_vector = new BitSet(1);
41395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41396
      } catch (org.apache.thrift.TException te) {
41397
        throw new java.io.IOException(te);
41398
      }
41399
    }
41400
 
553 chandransh 41401
  }
41402
 
3430 rajveer 41403
  public static class deleteItemFromCart_result implements org.apache.thrift.TBase<deleteItemFromCart_result, deleteItemFromCart_result._Fields>, java.io.Serializable, Cloneable   {
41404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromCart_result");
553 chandransh 41405
 
3430 rajveer 41406
    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 41407
 
3430 rajveer 41408
    private ShoppingCartException scx; // required
553 chandransh 41409
 
41410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41412
      SCX((short)1, "scx");
41413
 
41414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41415
 
41416
      static {
41417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41418
          byName.put(field.getFieldName(), field);
41419
        }
41420
      }
41421
 
41422
      /**
41423
       * Find the _Fields constant that matches fieldId, or null if its not found.
41424
       */
41425
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41426
        switch(fieldId) {
41427
          case 1: // SCX
41428
            return SCX;
41429
          default:
41430
            return null;
41431
        }
553 chandransh 41432
      }
41433
 
41434
      /**
41435
       * Find the _Fields constant that matches fieldId, throwing an exception
41436
       * if it is not found.
41437
       */
41438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41439
        _Fields fields = findByThriftId(fieldId);
41440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41441
        return fields;
41442
      }
41443
 
41444
      /**
41445
       * Find the _Fields constant that matches name, or null if its not found.
41446
       */
41447
      public static _Fields findByName(String name) {
41448
        return byName.get(name);
41449
      }
41450
 
41451
      private final short _thriftId;
41452
      private final String _fieldName;
41453
 
41454
      _Fields(short thriftId, String fieldName) {
41455
        _thriftId = thriftId;
41456
        _fieldName = fieldName;
41457
      }
41458
 
41459
      public short getThriftFieldId() {
41460
        return _thriftId;
41461
      }
41462
 
41463
      public String getFieldName() {
41464
        return _fieldName;
41465
      }
41466
    }
41467
 
41468
    // isset id assignments
41469
 
3430 rajveer 41470
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 41471
    static {
3430 rajveer 41472
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41473
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41474
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41475
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41476
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromCart_result.class, metaDataMap);
553 chandransh 41477
    }
41478
 
41479
    public deleteItemFromCart_result() {
41480
    }
41481
 
41482
    public deleteItemFromCart_result(
41483
      ShoppingCartException scx)
41484
    {
41485
      this();
41486
      this.scx = scx;
41487
    }
41488
 
41489
    /**
41490
     * Performs a deep copy on <i>other</i>.
41491
     */
41492
    public deleteItemFromCart_result(deleteItemFromCart_result other) {
41493
      if (other.isSetScx()) {
41494
        this.scx = new ShoppingCartException(other.scx);
41495
      }
41496
    }
41497
 
41498
    public deleteItemFromCart_result deepCopy() {
41499
      return new deleteItemFromCart_result(this);
41500
    }
41501
 
3430 rajveer 41502
    @Override
41503
    public void clear() {
41504
      this.scx = null;
553 chandransh 41505
    }
41506
 
41507
    public ShoppingCartException getScx() {
41508
      return this.scx;
41509
    }
41510
 
3430 rajveer 41511
    public void setScx(ShoppingCartException scx) {
553 chandransh 41512
      this.scx = scx;
41513
    }
41514
 
41515
    public void unsetScx() {
41516
      this.scx = null;
41517
    }
41518
 
3430 rajveer 41519
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 41520
    public boolean isSetScx() {
41521
      return this.scx != null;
41522
    }
41523
 
41524
    public void setScxIsSet(boolean value) {
41525
      if (!value) {
41526
        this.scx = null;
41527
      }
41528
    }
41529
 
41530
    public void setFieldValue(_Fields field, Object value) {
41531
      switch (field) {
41532
      case SCX:
41533
        if (value == null) {
41534
          unsetScx();
41535
        } else {
41536
          setScx((ShoppingCartException)value);
41537
        }
41538
        break;
41539
 
41540
      }
41541
    }
41542
 
41543
    public Object getFieldValue(_Fields field) {
41544
      switch (field) {
41545
      case SCX:
41546
        return getScx();
41547
 
41548
      }
41549
      throw new IllegalStateException();
41550
    }
41551
 
3430 rajveer 41552
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41553
    public boolean isSet(_Fields field) {
41554
      if (field == null) {
41555
        throw new IllegalArgumentException();
41556
      }
553 chandransh 41557
 
41558
      switch (field) {
41559
      case SCX:
41560
        return isSetScx();
41561
      }
41562
      throw new IllegalStateException();
41563
    }
41564
 
41565
    @Override
41566
    public boolean equals(Object that) {
41567
      if (that == null)
41568
        return false;
41569
      if (that instanceof deleteItemFromCart_result)
41570
        return this.equals((deleteItemFromCart_result)that);
41571
      return false;
41572
    }
41573
 
41574
    public boolean equals(deleteItemFromCart_result that) {
41575
      if (that == null)
41576
        return false;
41577
 
41578
      boolean this_present_scx = true && this.isSetScx();
41579
      boolean that_present_scx = true && that.isSetScx();
41580
      if (this_present_scx || that_present_scx) {
41581
        if (!(this_present_scx && that_present_scx))
41582
          return false;
41583
        if (!this.scx.equals(that.scx))
41584
          return false;
41585
      }
41586
 
41587
      return true;
41588
    }
41589
 
41590
    @Override
41591
    public int hashCode() {
41592
      return 0;
41593
    }
41594
 
41595
    public int compareTo(deleteItemFromCart_result other) {
41596
      if (!getClass().equals(other.getClass())) {
41597
        return getClass().getName().compareTo(other.getClass().getName());
41598
      }
41599
 
41600
      int lastComparison = 0;
41601
      deleteItemFromCart_result typedOther = (deleteItemFromCart_result)other;
41602
 
3430 rajveer 41603
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 41604
      if (lastComparison != 0) {
41605
        return lastComparison;
41606
      }
3430 rajveer 41607
      if (isSetScx()) {
41608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
41609
        if (lastComparison != 0) {
41610
          return lastComparison;
41611
        }
553 chandransh 41612
      }
41613
      return 0;
41614
    }
41615
 
3430 rajveer 41616
    public _Fields fieldForId(int fieldId) {
41617
      return _Fields.findByThriftId(fieldId);
41618
    }
41619
 
41620
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41621
      org.apache.thrift.protocol.TField field;
553 chandransh 41622
      iprot.readStructBegin();
41623
      while (true)
41624
      {
41625
        field = iprot.readFieldBegin();
3430 rajveer 41626
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 41627
          break;
41628
        }
3430 rajveer 41629
        switch (field.id) {
41630
          case 1: // SCX
41631
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41632
              this.scx = new ShoppingCartException();
41633
              this.scx.read(iprot);
41634
            } else { 
41635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41636
            }
41637
            break;
41638
          default:
41639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 41640
        }
3430 rajveer 41641
        iprot.readFieldEnd();
48 ashish 41642
      }
41643
      iprot.readStructEnd();
41644
      validate();
41645
    }
41646
 
3430 rajveer 41647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 41648
      oprot.writeStructBegin(STRUCT_DESC);
41649
 
553 chandransh 41650
      if (this.isSetScx()) {
41651
        oprot.writeFieldBegin(SCX_FIELD_DESC);
41652
        this.scx.write(oprot);
48 ashish 41653
        oprot.writeFieldEnd();
41654
      }
41655
      oprot.writeFieldStop();
41656
      oprot.writeStructEnd();
41657
    }
41658
 
41659
    @Override
41660
    public String toString() {
553 chandransh 41661
      StringBuilder sb = new StringBuilder("deleteItemFromCart_result(");
48 ashish 41662
      boolean first = true;
41663
 
553 chandransh 41664
      sb.append("scx:");
41665
      if (this.scx == null) {
48 ashish 41666
        sb.append("null");
41667
      } else {
553 chandransh 41668
        sb.append(this.scx);
48 ashish 41669
      }
41670
      first = false;
41671
      sb.append(")");
41672
      return sb.toString();
41673
    }
41674
 
3430 rajveer 41675
    public void validate() throws org.apache.thrift.TException {
48 ashish 41676
      // check for required fields
41677
    }
41678
 
3430 rajveer 41679
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41680
      try {
41681
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41682
      } catch (org.apache.thrift.TException te) {
41683
        throw new java.io.IOException(te);
41684
      }
41685
    }
41686
 
41687
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41688
      try {
41689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41690
      } catch (org.apache.thrift.TException te) {
41691
        throw new java.io.IOException(te);
41692
      }
41693
    }
41694
 
48 ashish 41695
  }
41696
 
3430 rajveer 41697
  public static class changeQuantity_args implements org.apache.thrift.TBase<changeQuantity_args, changeQuantity_args._Fields>, java.io.Serializable, Cloneable   {
41698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_args");
48 ashish 41699
 
3430 rajveer 41700
    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);
41701
    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);
41702
    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 41703
 
3430 rajveer 41704
    private long cartId; // required
41705
    private long itemId; // required
41706
    private long quantity; // required
48 ashish 41707
 
41708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41710
      CART_ID((short)1, "cartId"),
41711
      ITEM_ID((short)2, "itemId"),
41712
      QUANTITY((short)3, "quantity");
48 ashish 41713
 
41714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41715
 
41716
      static {
41717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41718
          byName.put(field.getFieldName(), field);
41719
        }
41720
      }
41721
 
41722
      /**
41723
       * Find the _Fields constant that matches fieldId, or null if its not found.
41724
       */
41725
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41726
        switch(fieldId) {
41727
          case 1: // CART_ID
41728
            return CART_ID;
41729
          case 2: // ITEM_ID
41730
            return ITEM_ID;
41731
          case 3: // QUANTITY
41732
            return QUANTITY;
41733
          default:
41734
            return null;
41735
        }
48 ashish 41736
      }
41737
 
41738
      /**
41739
       * Find the _Fields constant that matches fieldId, throwing an exception
41740
       * if it is not found.
41741
       */
41742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41743
        _Fields fields = findByThriftId(fieldId);
41744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41745
        return fields;
41746
      }
41747
 
41748
      /**
41749
       * Find the _Fields constant that matches name, or null if its not found.
41750
       */
41751
      public static _Fields findByName(String name) {
41752
        return byName.get(name);
41753
      }
41754
 
41755
      private final short _thriftId;
41756
      private final String _fieldName;
41757
 
41758
      _Fields(short thriftId, String fieldName) {
41759
        _thriftId = thriftId;
41760
        _fieldName = fieldName;
41761
      }
41762
 
41763
      public short getThriftFieldId() {
41764
        return _thriftId;
41765
      }
41766
 
41767
      public String getFieldName() {
41768
        return _fieldName;
41769
      }
41770
    }
41771
 
41772
    // isset id assignments
553 chandransh 41773
    private static final int __CARTID_ISSET_ID = 0;
41774
    private static final int __ITEMID_ISSET_ID = 1;
41775
    private static final int __QUANTITY_ISSET_ID = 2;
41776
    private BitSet __isset_bit_vector = new BitSet(3);
48 ashish 41777
 
3430 rajveer 41778
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 41779
    static {
3430 rajveer 41780
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41781
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41783
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41785
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_args.class, metaDataMap);
48 ashish 41789
    }
41790
 
553 chandransh 41791
    public changeQuantity_args() {
48 ashish 41792
    }
41793
 
553 chandransh 41794
    public changeQuantity_args(
41795
      long cartId,
41796
      long itemId,
41797
      long quantity)
48 ashish 41798
    {
41799
      this();
553 chandransh 41800
      this.cartId = cartId;
41801
      setCartIdIsSet(true);
41802
      this.itemId = itemId;
41803
      setItemIdIsSet(true);
41804
      this.quantity = quantity;
41805
      setQuantityIsSet(true);
48 ashish 41806
    }
41807
 
41808
    /**
41809
     * Performs a deep copy on <i>other</i>.
41810
     */
553 chandransh 41811
    public changeQuantity_args(changeQuantity_args other) {
48 ashish 41812
      __isset_bit_vector.clear();
41813
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 41814
      this.cartId = other.cartId;
41815
      this.itemId = other.itemId;
41816
      this.quantity = other.quantity;
48 ashish 41817
    }
41818
 
553 chandransh 41819
    public changeQuantity_args deepCopy() {
41820
      return new changeQuantity_args(this);
48 ashish 41821
    }
41822
 
3430 rajveer 41823
    @Override
41824
    public void clear() {
41825
      setCartIdIsSet(false);
41826
      this.cartId = 0;
41827
      setItemIdIsSet(false);
41828
      this.itemId = 0;
41829
      setQuantityIsSet(false);
41830
      this.quantity = 0;
48 ashish 41831
    }
41832
 
553 chandransh 41833
    public long getCartId() {
41834
      return this.cartId;
48 ashish 41835
    }
41836
 
3430 rajveer 41837
    public void setCartId(long cartId) {
553 chandransh 41838
      this.cartId = cartId;
41839
      setCartIdIsSet(true);
48 ashish 41840
    }
41841
 
553 chandransh 41842
    public void unsetCartId() {
41843
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 41844
    }
41845
 
3430 rajveer 41846
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 41847
    public boolean isSetCartId() {
41848
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 41849
    }
41850
 
553 chandransh 41851
    public void setCartIdIsSet(boolean value) {
41852
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 41853
    }
41854
 
553 chandransh 41855
    public long getItemId() {
41856
      return this.itemId;
41857
    }
41858
 
3430 rajveer 41859
    public void setItemId(long itemId) {
553 chandransh 41860
      this.itemId = itemId;
41861
      setItemIdIsSet(true);
41862
    }
41863
 
41864
    public void unsetItemId() {
41865
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41866
    }
41867
 
3430 rajveer 41868
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 41869
    public boolean isSetItemId() {
41870
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41871
    }
41872
 
41873
    public void setItemIdIsSet(boolean value) {
41874
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41875
    }
41876
 
41877
    public long getQuantity() {
41878
      return this.quantity;
41879
    }
41880
 
3430 rajveer 41881
    public void setQuantity(long quantity) {
553 chandransh 41882
      this.quantity = quantity;
41883
      setQuantityIsSet(true);
41884
    }
41885
 
41886
    public void unsetQuantity() {
41887
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
41888
    }
41889
 
3430 rajveer 41890
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
553 chandransh 41891
    public boolean isSetQuantity() {
41892
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
41893
    }
41894
 
41895
    public void setQuantityIsSet(boolean value) {
41896
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
41897
    }
41898
 
48 ashish 41899
    public void setFieldValue(_Fields field, Object value) {
41900
      switch (field) {
553 chandransh 41901
      case CART_ID:
48 ashish 41902
        if (value == null) {
553 chandransh 41903
          unsetCartId();
48 ashish 41904
        } else {
553 chandransh 41905
          setCartId((Long)value);
48 ashish 41906
        }
41907
        break;
41908
 
553 chandransh 41909
      case ITEM_ID:
41910
        if (value == null) {
41911
          unsetItemId();
41912
        } else {
41913
          setItemId((Long)value);
41914
        }
41915
        break;
41916
 
41917
      case QUANTITY:
41918
        if (value == null) {
41919
          unsetQuantity();
41920
        } else {
41921
          setQuantity((Long)value);
41922
        }
41923
        break;
41924
 
48 ashish 41925
      }
41926
    }
41927
 
41928
    public Object getFieldValue(_Fields field) {
41929
      switch (field) {
553 chandransh 41930
      case CART_ID:
3430 rajveer 41931
        return Long.valueOf(getCartId());
48 ashish 41932
 
553 chandransh 41933
      case ITEM_ID:
3430 rajveer 41934
        return Long.valueOf(getItemId());
553 chandransh 41935
 
41936
      case QUANTITY:
3430 rajveer 41937
        return Long.valueOf(getQuantity());
553 chandransh 41938
 
48 ashish 41939
      }
41940
      throw new IllegalStateException();
41941
    }
41942
 
3430 rajveer 41943
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41944
    public boolean isSet(_Fields field) {
41945
      if (field == null) {
41946
        throw new IllegalArgumentException();
41947
      }
48 ashish 41948
 
41949
      switch (field) {
553 chandransh 41950
      case CART_ID:
41951
        return isSetCartId();
41952
      case ITEM_ID:
41953
        return isSetItemId();
41954
      case QUANTITY:
41955
        return isSetQuantity();
48 ashish 41956
      }
41957
      throw new IllegalStateException();
41958
    }
41959
 
41960
    @Override
41961
    public boolean equals(Object that) {
41962
      if (that == null)
41963
        return false;
553 chandransh 41964
      if (that instanceof changeQuantity_args)
41965
        return this.equals((changeQuantity_args)that);
48 ashish 41966
      return false;
41967
    }
41968
 
553 chandransh 41969
    public boolean equals(changeQuantity_args that) {
48 ashish 41970
      if (that == null)
41971
        return false;
41972
 
553 chandransh 41973
      boolean this_present_cartId = true;
41974
      boolean that_present_cartId = true;
41975
      if (this_present_cartId || that_present_cartId) {
41976
        if (!(this_present_cartId && that_present_cartId))
48 ashish 41977
          return false;
553 chandransh 41978
        if (this.cartId != that.cartId)
48 ashish 41979
          return false;
41980
      }
41981
 
553 chandransh 41982
      boolean this_present_itemId = true;
41983
      boolean that_present_itemId = true;
41984
      if (this_present_itemId || that_present_itemId) {
41985
        if (!(this_present_itemId && that_present_itemId))
41986
          return false;
41987
        if (this.itemId != that.itemId)
41988
          return false;
41989
      }
41990
 
41991
      boolean this_present_quantity = true;
41992
      boolean that_present_quantity = true;
41993
      if (this_present_quantity || that_present_quantity) {
41994
        if (!(this_present_quantity && that_present_quantity))
41995
          return false;
41996
        if (this.quantity != that.quantity)
41997
          return false;
41998
      }
41999
 
48 ashish 42000
      return true;
42001
    }
42002
 
42003
    @Override
42004
    public int hashCode() {
42005
      return 0;
42006
    }
42007
 
553 chandransh 42008
    public int compareTo(changeQuantity_args other) {
48 ashish 42009
      if (!getClass().equals(other.getClass())) {
42010
        return getClass().getName().compareTo(other.getClass().getName());
42011
      }
42012
 
42013
      int lastComparison = 0;
553 chandransh 42014
      changeQuantity_args typedOther = (changeQuantity_args)other;
48 ashish 42015
 
3430 rajveer 42016
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 42017
      if (lastComparison != 0) {
42018
        return lastComparison;
42019
      }
3430 rajveer 42020
      if (isSetCartId()) {
42021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
42022
        if (lastComparison != 0) {
42023
          return lastComparison;
42024
        }
48 ashish 42025
      }
3430 rajveer 42026
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 42027
      if (lastComparison != 0) {
42028
        return lastComparison;
42029
      }
3430 rajveer 42030
      if (isSetItemId()) {
42031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42032
        if (lastComparison != 0) {
42033
          return lastComparison;
42034
        }
553 chandransh 42035
      }
3430 rajveer 42036
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
553 chandransh 42037
      if (lastComparison != 0) {
42038
        return lastComparison;
42039
      }
3430 rajveer 42040
      if (isSetQuantity()) {
42041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
42042
        if (lastComparison != 0) {
42043
          return lastComparison;
42044
        }
553 chandransh 42045
      }
48 ashish 42046
      return 0;
42047
    }
42048
 
3430 rajveer 42049
    public _Fields fieldForId(int fieldId) {
42050
      return _Fields.findByThriftId(fieldId);
42051
    }
42052
 
42053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42054
      org.apache.thrift.protocol.TField field;
48 ashish 42055
      iprot.readStructBegin();
42056
      while (true)
42057
      {
42058
        field = iprot.readFieldBegin();
3430 rajveer 42059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 42060
          break;
42061
        }
3430 rajveer 42062
        switch (field.id) {
42063
          case 1: // CART_ID
42064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42065
              this.cartId = iprot.readI64();
42066
              setCartIdIsSet(true);
42067
            } else { 
42068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42069
            }
42070
            break;
42071
          case 2: // ITEM_ID
42072
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42073
              this.itemId = iprot.readI64();
42074
              setItemIdIsSet(true);
42075
            } else { 
42076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42077
            }
42078
            break;
42079
          case 3: // QUANTITY
42080
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42081
              this.quantity = iprot.readI64();
42082
              setQuantityIsSet(true);
42083
            } else { 
42084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42085
            }
42086
            break;
42087
          default:
42088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 42089
        }
3430 rajveer 42090
        iprot.readFieldEnd();
48 ashish 42091
      }
42092
      iprot.readStructEnd();
42093
      validate();
42094
    }
42095
 
3430 rajveer 42096
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 42097
      validate();
42098
 
42099
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 42100
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
42101
      oprot.writeI64(this.cartId);
48 ashish 42102
      oprot.writeFieldEnd();
553 chandransh 42103
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42104
      oprot.writeI64(this.itemId);
42105
      oprot.writeFieldEnd();
42106
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
42107
      oprot.writeI64(this.quantity);
42108
      oprot.writeFieldEnd();
48 ashish 42109
      oprot.writeFieldStop();
42110
      oprot.writeStructEnd();
42111
    }
42112
 
42113
    @Override
42114
    public String toString() {
553 chandransh 42115
      StringBuilder sb = new StringBuilder("changeQuantity_args(");
48 ashish 42116
      boolean first = true;
42117
 
553 chandransh 42118
      sb.append("cartId:");
42119
      sb.append(this.cartId);
48 ashish 42120
      first = false;
553 chandransh 42121
      if (!first) sb.append(", ");
42122
      sb.append("itemId:");
42123
      sb.append(this.itemId);
42124
      first = false;
42125
      if (!first) sb.append(", ");
42126
      sb.append("quantity:");
42127
      sb.append(this.quantity);
42128
      first = false;
48 ashish 42129
      sb.append(")");
42130
      return sb.toString();
42131
    }
42132
 
3430 rajveer 42133
    public void validate() throws org.apache.thrift.TException {
48 ashish 42134
      // check for required fields
42135
    }
42136
 
3430 rajveer 42137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42138
      try {
42139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42140
      } catch (org.apache.thrift.TException te) {
42141
        throw new java.io.IOException(te);
42142
      }
42143
    }
42144
 
42145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42146
      try {
42147
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42148
        __isset_bit_vector = new BitSet(1);
42149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42150
      } catch (org.apache.thrift.TException te) {
42151
        throw new java.io.IOException(te);
42152
      }
42153
    }
42154
 
48 ashish 42155
  }
42156
 
3430 rajveer 42157
  public static class changeQuantity_result implements org.apache.thrift.TBase<changeQuantity_result, changeQuantity_result._Fields>, java.io.Serializable, Cloneable   {
42158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_result");
48 ashish 42159
 
3430 rajveer 42160
    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 42161
 
3430 rajveer 42162
    private ShoppingCartException scx; // required
48 ashish 42163
 
42164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42166
      SCX((short)1, "scx");
48 ashish 42167
 
42168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42169
 
42170
      static {
42171
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42172
          byName.put(field.getFieldName(), field);
42173
        }
42174
      }
42175
 
42176
      /**
42177
       * Find the _Fields constant that matches fieldId, or null if its not found.
42178
       */
42179
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42180
        switch(fieldId) {
42181
          case 1: // SCX
42182
            return SCX;
42183
          default:
42184
            return null;
42185
        }
48 ashish 42186
      }
42187
 
42188
      /**
42189
       * Find the _Fields constant that matches fieldId, throwing an exception
42190
       * if it is not found.
42191
       */
42192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42193
        _Fields fields = findByThriftId(fieldId);
42194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42195
        return fields;
42196
      }
42197
 
42198
      /**
42199
       * Find the _Fields constant that matches name, or null if its not found.
42200
       */
42201
      public static _Fields findByName(String name) {
42202
        return byName.get(name);
42203
      }
42204
 
42205
      private final short _thriftId;
42206
      private final String _fieldName;
42207
 
42208
      _Fields(short thriftId, String fieldName) {
42209
        _thriftId = thriftId;
42210
        _fieldName = fieldName;
42211
      }
42212
 
42213
      public short getThriftFieldId() {
42214
        return _thriftId;
42215
      }
42216
 
42217
      public String getFieldName() {
42218
        return _fieldName;
42219
      }
42220
    }
42221
 
42222
    // isset id assignments
42223
 
3430 rajveer 42224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 42225
    static {
3430 rajveer 42226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42227
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_result.class, metaDataMap);
48 ashish 42231
    }
42232
 
553 chandransh 42233
    public changeQuantity_result() {
48 ashish 42234
    }
42235
 
553 chandransh 42236
    public changeQuantity_result(
42237
      ShoppingCartException scx)
48 ashish 42238
    {
42239
      this();
553 chandransh 42240
      this.scx = scx;
48 ashish 42241
    }
42242
 
42243
    /**
42244
     * Performs a deep copy on <i>other</i>.
42245
     */
553 chandransh 42246
    public changeQuantity_result(changeQuantity_result other) {
42247
      if (other.isSetScx()) {
42248
        this.scx = new ShoppingCartException(other.scx);
42249
      }
42250
    }
42251
 
42252
    public changeQuantity_result deepCopy() {
42253
      return new changeQuantity_result(this);
42254
    }
42255
 
3430 rajveer 42256
    @Override
42257
    public void clear() {
42258
      this.scx = null;
553 chandransh 42259
    }
42260
 
42261
    public ShoppingCartException getScx() {
42262
      return this.scx;
42263
    }
42264
 
3430 rajveer 42265
    public void setScx(ShoppingCartException scx) {
553 chandransh 42266
      this.scx = scx;
42267
    }
42268
 
42269
    public void unsetScx() {
42270
      this.scx = null;
42271
    }
42272
 
3430 rajveer 42273
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 42274
    public boolean isSetScx() {
42275
      return this.scx != null;
42276
    }
42277
 
42278
    public void setScxIsSet(boolean value) {
42279
      if (!value) {
42280
        this.scx = null;
42281
      }
42282
    }
42283
 
42284
    public void setFieldValue(_Fields field, Object value) {
42285
      switch (field) {
42286
      case SCX:
42287
        if (value == null) {
42288
          unsetScx();
42289
        } else {
42290
          setScx((ShoppingCartException)value);
42291
        }
42292
        break;
42293
 
42294
      }
42295
    }
42296
 
42297
    public Object getFieldValue(_Fields field) {
42298
      switch (field) {
42299
      case SCX:
42300
        return getScx();
42301
 
42302
      }
42303
      throw new IllegalStateException();
42304
    }
42305
 
3430 rajveer 42306
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42307
    public boolean isSet(_Fields field) {
42308
      if (field == null) {
42309
        throw new IllegalArgumentException();
42310
      }
553 chandransh 42311
 
42312
      switch (field) {
42313
      case SCX:
42314
        return isSetScx();
42315
      }
42316
      throw new IllegalStateException();
42317
    }
42318
 
42319
    @Override
42320
    public boolean equals(Object that) {
42321
      if (that == null)
42322
        return false;
42323
      if (that instanceof changeQuantity_result)
42324
        return this.equals((changeQuantity_result)that);
42325
      return false;
42326
    }
42327
 
42328
    public boolean equals(changeQuantity_result that) {
42329
      if (that == null)
42330
        return false;
42331
 
42332
      boolean this_present_scx = true && this.isSetScx();
42333
      boolean that_present_scx = true && that.isSetScx();
42334
      if (this_present_scx || that_present_scx) {
42335
        if (!(this_present_scx && that_present_scx))
42336
          return false;
42337
        if (!this.scx.equals(that.scx))
42338
          return false;
42339
      }
42340
 
42341
      return true;
42342
    }
42343
 
42344
    @Override
42345
    public int hashCode() {
42346
      return 0;
42347
    }
42348
 
42349
    public int compareTo(changeQuantity_result other) {
42350
      if (!getClass().equals(other.getClass())) {
42351
        return getClass().getName().compareTo(other.getClass().getName());
42352
      }
42353
 
42354
      int lastComparison = 0;
42355
      changeQuantity_result typedOther = (changeQuantity_result)other;
42356
 
3430 rajveer 42357
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 42358
      if (lastComparison != 0) {
42359
        return lastComparison;
42360
      }
3430 rajveer 42361
      if (isSetScx()) {
42362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
42363
        if (lastComparison != 0) {
42364
          return lastComparison;
42365
        }
553 chandransh 42366
      }
42367
      return 0;
42368
    }
42369
 
3430 rajveer 42370
    public _Fields fieldForId(int fieldId) {
42371
      return _Fields.findByThriftId(fieldId);
42372
    }
42373
 
42374
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42375
      org.apache.thrift.protocol.TField field;
553 chandransh 42376
      iprot.readStructBegin();
42377
      while (true)
42378
      {
42379
        field = iprot.readFieldBegin();
3430 rajveer 42380
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 42381
          break;
42382
        }
3430 rajveer 42383
        switch (field.id) {
42384
          case 1: // SCX
42385
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42386
              this.scx = new ShoppingCartException();
42387
              this.scx.read(iprot);
42388
            } else { 
42389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42390
            }
42391
            break;
42392
          default:
42393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 42394
        }
3430 rajveer 42395
        iprot.readFieldEnd();
553 chandransh 42396
      }
42397
      iprot.readStructEnd();
42398
      validate();
42399
    }
42400
 
3430 rajveer 42401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 42402
      oprot.writeStructBegin(STRUCT_DESC);
42403
 
42404
      if (this.isSetScx()) {
42405
        oprot.writeFieldBegin(SCX_FIELD_DESC);
42406
        this.scx.write(oprot);
42407
        oprot.writeFieldEnd();
42408
      }
42409
      oprot.writeFieldStop();
42410
      oprot.writeStructEnd();
42411
    }
42412
 
42413
    @Override
42414
    public String toString() {
42415
      StringBuilder sb = new StringBuilder("changeQuantity_result(");
42416
      boolean first = true;
42417
 
42418
      sb.append("scx:");
42419
      if (this.scx == null) {
42420
        sb.append("null");
42421
      } else {
42422
        sb.append(this.scx);
42423
      }
42424
      first = false;
42425
      sb.append(")");
42426
      return sb.toString();
42427
    }
42428
 
3430 rajveer 42429
    public void validate() throws org.apache.thrift.TException {
553 chandransh 42430
      // check for required fields
42431
    }
42432
 
3430 rajveer 42433
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42434
      try {
42435
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42436
      } catch (org.apache.thrift.TException te) {
42437
        throw new java.io.IOException(te);
42438
      }
42439
    }
42440
 
42441
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42442
      try {
42443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42444
      } catch (org.apache.thrift.TException te) {
42445
        throw new java.io.IOException(te);
42446
      }
42447
    }
42448
 
553 chandransh 42449
  }
42450
 
3430 rajveer 42451
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
42452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
553 chandransh 42453
 
3430 rajveer 42454
    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);
42455
    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);
42456
    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 42457
 
3430 rajveer 42458
    private long cartId; // required
42459
    private long itemId; // required
42460
    private LineStatus status; // required
553 chandransh 42461
 
42462
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42463
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42464
      CART_ID((short)1, "cartId"),
42465
      ITEM_ID((short)2, "itemId"),
42466
      /**
42467
       * 
42468
       * @see LineStatus
42469
       */
42470
      STATUS((short)3, "status");
42471
 
42472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42473
 
42474
      static {
42475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42476
          byName.put(field.getFieldName(), field);
42477
        }
42478
      }
42479
 
42480
      /**
42481
       * Find the _Fields constant that matches fieldId, or null if its not found.
42482
       */
42483
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42484
        switch(fieldId) {
42485
          case 1: // CART_ID
42486
            return CART_ID;
42487
          case 2: // ITEM_ID
42488
            return ITEM_ID;
42489
          case 3: // STATUS
42490
            return STATUS;
42491
          default:
42492
            return null;
42493
        }
553 chandransh 42494
      }
42495
 
42496
      /**
42497
       * Find the _Fields constant that matches fieldId, throwing an exception
42498
       * if it is not found.
42499
       */
42500
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42501
        _Fields fields = findByThriftId(fieldId);
42502
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42503
        return fields;
42504
      }
42505
 
42506
      /**
42507
       * Find the _Fields constant that matches name, or null if its not found.
42508
       */
42509
      public static _Fields findByName(String name) {
42510
        return byName.get(name);
42511
      }
42512
 
42513
      private final short _thriftId;
42514
      private final String _fieldName;
42515
 
42516
      _Fields(short thriftId, String fieldName) {
42517
        _thriftId = thriftId;
42518
        _fieldName = fieldName;
42519
      }
42520
 
42521
      public short getThriftFieldId() {
42522
        return _thriftId;
42523
      }
42524
 
42525
      public String getFieldName() {
42526
        return _fieldName;
42527
      }
42528
    }
42529
 
42530
    // isset id assignments
42531
    private static final int __CARTID_ISSET_ID = 0;
42532
    private static final int __ITEMID_ISSET_ID = 1;
42533
    private BitSet __isset_bit_vector = new BitSet(2);
42534
 
3430 rajveer 42535
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 42536
    static {
3430 rajveer 42537
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42538
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42539
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42540
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42542
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42543
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, LineStatus.class)));
42544
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42545
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);
553 chandransh 42546
    }
42547
 
42548
    public changeItemStatus_args() {
42549
    }
42550
 
42551
    public changeItemStatus_args(
42552
      long cartId,
42553
      long itemId,
42554
      LineStatus status)
42555
    {
42556
      this();
42557
      this.cartId = cartId;
42558
      setCartIdIsSet(true);
42559
      this.itemId = itemId;
42560
      setItemIdIsSet(true);
42561
      this.status = status;
42562
    }
42563
 
42564
    /**
42565
     * Performs a deep copy on <i>other</i>.
42566
     */
42567
    public changeItemStatus_args(changeItemStatus_args other) {
48 ashish 42568
      __isset_bit_vector.clear();
42569
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 42570
      this.cartId = other.cartId;
42571
      this.itemId = other.itemId;
42572
      if (other.isSetStatus()) {
42573
        this.status = other.status;
48 ashish 42574
      }
42575
    }
42576
 
553 chandransh 42577
    public changeItemStatus_args deepCopy() {
42578
      return new changeItemStatus_args(this);
48 ashish 42579
    }
42580
 
3430 rajveer 42581
    @Override
42582
    public void clear() {
42583
      setCartIdIsSet(false);
42584
      this.cartId = 0;
42585
      setItemIdIsSet(false);
42586
      this.itemId = 0;
42587
      this.status = null;
48 ashish 42588
    }
42589
 
553 chandransh 42590
    public long getCartId() {
42591
      return this.cartId;
48 ashish 42592
    }
42593
 
3430 rajveer 42594
    public void setCartId(long cartId) {
553 chandransh 42595
      this.cartId = cartId;
42596
      setCartIdIsSet(true);
48 ashish 42597
    }
42598
 
553 chandransh 42599
    public void unsetCartId() {
42600
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 42601
    }
42602
 
3430 rajveer 42603
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 42604
    public boolean isSetCartId() {
42605
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 42606
    }
42607
 
553 chandransh 42608
    public void setCartIdIsSet(boolean value) {
42609
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 42610
    }
42611
 
553 chandransh 42612
    public long getItemId() {
42613
      return this.itemId;
48 ashish 42614
    }
42615
 
3430 rajveer 42616
    public void setItemId(long itemId) {
553 chandransh 42617
      this.itemId = itemId;
42618
      setItemIdIsSet(true);
48 ashish 42619
    }
42620
 
553 chandransh 42621
    public void unsetItemId() {
42622
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48 ashish 42623
    }
42624
 
3430 rajveer 42625
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 42626
    public boolean isSetItemId() {
42627
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48 ashish 42628
    }
42629
 
553 chandransh 42630
    public void setItemIdIsSet(boolean value) {
42631
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42632
    }
42633
 
42634
    /**
42635
     * 
42636
     * @see LineStatus
42637
     */
42638
    public LineStatus getStatus() {
42639
      return this.status;
42640
    }
42641
 
42642
    /**
42643
     * 
42644
     * @see LineStatus
42645
     */
3430 rajveer 42646
    public void setStatus(LineStatus status) {
553 chandransh 42647
      this.status = status;
42648
    }
42649
 
42650
    public void unsetStatus() {
42651
      this.status = null;
42652
    }
42653
 
3430 rajveer 42654
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 42655
    public boolean isSetStatus() {
42656
      return this.status != null;
42657
    }
42658
 
42659
    public void setStatusIsSet(boolean value) {
48 ashish 42660
      if (!value) {
553 chandransh 42661
        this.status = null;
48 ashish 42662
      }
42663
    }
42664
 
42665
    public void setFieldValue(_Fields field, Object value) {
42666
      switch (field) {
553 chandransh 42667
      case CART_ID:
48 ashish 42668
        if (value == null) {
553 chandransh 42669
          unsetCartId();
48 ashish 42670
        } else {
553 chandransh 42671
          setCartId((Long)value);
48 ashish 42672
        }
42673
        break;
42674
 
553 chandransh 42675
      case ITEM_ID:
48 ashish 42676
        if (value == null) {
553 chandransh 42677
          unsetItemId();
48 ashish 42678
        } else {
553 chandransh 42679
          setItemId((Long)value);
48 ashish 42680
        }
42681
        break;
42682
 
553 chandransh 42683
      case STATUS:
42684
        if (value == null) {
42685
          unsetStatus();
42686
        } else {
42687
          setStatus((LineStatus)value);
42688
        }
42689
        break;
42690
 
48 ashish 42691
      }
42692
    }
42693
 
42694
    public Object getFieldValue(_Fields field) {
42695
      switch (field) {
553 chandransh 42696
      case CART_ID:
3430 rajveer 42697
        return Long.valueOf(getCartId());
48 ashish 42698
 
553 chandransh 42699
      case ITEM_ID:
3430 rajveer 42700
        return Long.valueOf(getItemId());
48 ashish 42701
 
553 chandransh 42702
      case STATUS:
42703
        return getStatus();
42704
 
48 ashish 42705
      }
42706
      throw new IllegalStateException();
42707
    }
42708
 
3430 rajveer 42709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42710
    public boolean isSet(_Fields field) {
42711
      if (field == null) {
42712
        throw new IllegalArgumentException();
42713
      }
48 ashish 42714
 
42715
      switch (field) {
553 chandransh 42716
      case CART_ID:
42717
        return isSetCartId();
42718
      case ITEM_ID:
42719
        return isSetItemId();
42720
      case STATUS:
42721
        return isSetStatus();
48 ashish 42722
      }
42723
      throw new IllegalStateException();
42724
    }
42725
 
42726
    @Override
42727
    public boolean equals(Object that) {
42728
      if (that == null)
42729
        return false;
553 chandransh 42730
      if (that instanceof changeItemStatus_args)
42731
        return this.equals((changeItemStatus_args)that);
48 ashish 42732
      return false;
42733
    }
42734
 
553 chandransh 42735
    public boolean equals(changeItemStatus_args that) {
48 ashish 42736
      if (that == null)
42737
        return false;
42738
 
553 chandransh 42739
      boolean this_present_cartId = true;
42740
      boolean that_present_cartId = true;
42741
      if (this_present_cartId || that_present_cartId) {
42742
        if (!(this_present_cartId && that_present_cartId))
48 ashish 42743
          return false;
553 chandransh 42744
        if (this.cartId != that.cartId)
48 ashish 42745
          return false;
42746
      }
42747
 
553 chandransh 42748
      boolean this_present_itemId = true;
42749
      boolean that_present_itemId = true;
42750
      if (this_present_itemId || that_present_itemId) {
42751
        if (!(this_present_itemId && that_present_itemId))
48 ashish 42752
          return false;
553 chandransh 42753
        if (this.itemId != that.itemId)
48 ashish 42754
          return false;
42755
      }
42756
 
553 chandransh 42757
      boolean this_present_status = true && this.isSetStatus();
42758
      boolean that_present_status = true && that.isSetStatus();
42759
      if (this_present_status || that_present_status) {
42760
        if (!(this_present_status && that_present_status))
42761
          return false;
42762
        if (!this.status.equals(that.status))
42763
          return false;
42764
      }
42765
 
48 ashish 42766
      return true;
42767
    }
42768
 
42769
    @Override
42770
    public int hashCode() {
42771
      return 0;
42772
    }
42773
 
553 chandransh 42774
    public int compareTo(changeItemStatus_args other) {
48 ashish 42775
      if (!getClass().equals(other.getClass())) {
42776
        return getClass().getName().compareTo(other.getClass().getName());
42777
      }
42778
 
42779
      int lastComparison = 0;
553 chandransh 42780
      changeItemStatus_args typedOther = (changeItemStatus_args)other;
48 ashish 42781
 
3430 rajveer 42782
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 42783
      if (lastComparison != 0) {
42784
        return lastComparison;
42785
      }
3430 rajveer 42786
      if (isSetCartId()) {
42787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
42788
        if (lastComparison != 0) {
42789
          return lastComparison;
42790
        }
48 ashish 42791
      }
3430 rajveer 42792
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48 ashish 42793
      if (lastComparison != 0) {
42794
        return lastComparison;
42795
      }
3430 rajveer 42796
      if (isSetItemId()) {
42797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42798
        if (lastComparison != 0) {
42799
          return lastComparison;
42800
        }
48 ashish 42801
      }
3430 rajveer 42802
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 42803
      if (lastComparison != 0) {
42804
        return lastComparison;
42805
      }
3430 rajveer 42806
      if (isSetStatus()) {
42807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
42808
        if (lastComparison != 0) {
42809
          return lastComparison;
42810
        }
553 chandransh 42811
      }
48 ashish 42812
      return 0;
42813
    }
42814
 
3430 rajveer 42815
    public _Fields fieldForId(int fieldId) {
42816
      return _Fields.findByThriftId(fieldId);
42817
    }
42818
 
42819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42820
      org.apache.thrift.protocol.TField field;
48 ashish 42821
      iprot.readStructBegin();
42822
      while (true)
42823
      {
42824
        field = iprot.readFieldBegin();
3430 rajveer 42825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 42826
          break;
42827
        }
3430 rajveer 42828
        switch (field.id) {
42829
          case 1: // CART_ID
42830
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42831
              this.cartId = iprot.readI64();
42832
              setCartIdIsSet(true);
42833
            } else { 
42834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42835
            }
42836
            break;
42837
          case 2: // ITEM_ID
42838
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42839
              this.itemId = iprot.readI64();
42840
              setItemIdIsSet(true);
42841
            } else { 
42842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42843
            }
42844
            break;
42845
          case 3: // STATUS
42846
            if (field.type == org.apache.thrift.protocol.TType.I32) {
42847
              this.status = LineStatus.findByValue(iprot.readI32());
42848
            } else { 
42849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42850
            }
42851
            break;
42852
          default:
42853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 42854
        }
3430 rajveer 42855
        iprot.readFieldEnd();
48 ashish 42856
      }
42857
      iprot.readStructEnd();
42858
      validate();
42859
    }
42860
 
3430 rajveer 42861
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 42862
      validate();
42863
 
48 ashish 42864
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 42865
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
42866
      oprot.writeI64(this.cartId);
42867
      oprot.writeFieldEnd();
42868
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42869
      oprot.writeI64(this.itemId);
42870
      oprot.writeFieldEnd();
42871
      if (this.status != null) {
42872
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
42873
        oprot.writeI32(this.status.getValue());
48 ashish 42874
        oprot.writeFieldEnd();
42875
      }
42876
      oprot.writeFieldStop();
42877
      oprot.writeStructEnd();
42878
    }
42879
 
42880
    @Override
42881
    public String toString() {
553 chandransh 42882
      StringBuilder sb = new StringBuilder("changeItemStatus_args(");
48 ashish 42883
      boolean first = true;
42884
 
553 chandransh 42885
      sb.append("cartId:");
42886
      sb.append(this.cartId);
48 ashish 42887
      first = false;
42888
      if (!first) sb.append(", ");
553 chandransh 42889
      sb.append("itemId:");
42890
      sb.append(this.itemId);
42891
      first = false;
42892
      if (!first) sb.append(", ");
42893
      sb.append("status:");
42894
      if (this.status == null) {
48 ashish 42895
        sb.append("null");
42896
      } else {
553 chandransh 42897
        sb.append(this.status);
48 ashish 42898
      }
42899
      first = false;
42900
      sb.append(")");
42901
      return sb.toString();
42902
    }
42903
 
3430 rajveer 42904
    public void validate() throws org.apache.thrift.TException {
48 ashish 42905
      // check for required fields
42906
    }
42907
 
3430 rajveer 42908
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42909
      try {
42910
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42911
      } catch (org.apache.thrift.TException te) {
42912
        throw new java.io.IOException(te);
42913
      }
42914
    }
42915
 
42916
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42917
      try {
42918
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42919
        __isset_bit_vector = new BitSet(1);
42920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42921
      } catch (org.apache.thrift.TException te) {
42922
        throw new java.io.IOException(te);
42923
      }
42924
    }
42925
 
48 ashish 42926
  }
42927
 
3430 rajveer 42928
  public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable   {
42929
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");
48 ashish 42930
 
3430 rajveer 42931
    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 42932
 
3430 rajveer 42933
    private ShoppingCartException scx; // required
48 ashish 42934
 
42935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42937
      SCX((short)1, "scx");
48 ashish 42938
 
42939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42940
 
42941
      static {
42942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42943
          byName.put(field.getFieldName(), field);
42944
        }
42945
      }
42946
 
42947
      /**
42948
       * Find the _Fields constant that matches fieldId, or null if its not found.
42949
       */
42950
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42951
        switch(fieldId) {
42952
          case 1: // SCX
42953
            return SCX;
42954
          default:
42955
            return null;
42956
        }
48 ashish 42957
      }
42958
 
42959
      /**
42960
       * Find the _Fields constant that matches fieldId, throwing an exception
42961
       * if it is not found.
42962
       */
42963
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42964
        _Fields fields = findByThriftId(fieldId);
42965
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42966
        return fields;
42967
      }
42968
 
42969
      /**
42970
       * Find the _Fields constant that matches name, or null if its not found.
42971
       */
42972
      public static _Fields findByName(String name) {
42973
        return byName.get(name);
42974
      }
42975
 
42976
      private final short _thriftId;
42977
      private final String _fieldName;
42978
 
42979
      _Fields(short thriftId, String fieldName) {
42980
        _thriftId = thriftId;
42981
        _fieldName = fieldName;
42982
      }
42983
 
42984
      public short getThriftFieldId() {
42985
        return _thriftId;
42986
      }
42987
 
42988
      public String getFieldName() {
42989
        return _fieldName;
42990
      }
42991
    }
42992
 
42993
    // isset id assignments
553 chandransh 42994
 
3430 rajveer 42995
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 42996
    static {
3430 rajveer 42997
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42998
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42999
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43000
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43001
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);
553 chandransh 43002
    }
43003
 
43004
    public changeItemStatus_result() {
43005
    }
43006
 
43007
    public changeItemStatus_result(
43008
      ShoppingCartException scx)
43009
    {
43010
      this();
43011
      this.scx = scx;
43012
    }
43013
 
43014
    /**
43015
     * Performs a deep copy on <i>other</i>.
43016
     */
43017
    public changeItemStatus_result(changeItemStatus_result other) {
43018
      if (other.isSetScx()) {
43019
        this.scx = new ShoppingCartException(other.scx);
43020
      }
43021
    }
43022
 
43023
    public changeItemStatus_result deepCopy() {
43024
      return new changeItemStatus_result(this);
43025
    }
43026
 
3430 rajveer 43027
    @Override
43028
    public void clear() {
43029
      this.scx = null;
553 chandransh 43030
    }
43031
 
43032
    public ShoppingCartException getScx() {
43033
      return this.scx;
43034
    }
43035
 
3430 rajveer 43036
    public void setScx(ShoppingCartException scx) {
553 chandransh 43037
      this.scx = scx;
43038
    }
43039
 
43040
    public void unsetScx() {
43041
      this.scx = null;
43042
    }
43043
 
3430 rajveer 43044
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 43045
    public boolean isSetScx() {
43046
      return this.scx != null;
43047
    }
43048
 
43049
    public void setScxIsSet(boolean value) {
43050
      if (!value) {
43051
        this.scx = null;
43052
      }
43053
    }
43054
 
43055
    public void setFieldValue(_Fields field, Object value) {
43056
      switch (field) {
43057
      case SCX:
43058
        if (value == null) {
43059
          unsetScx();
43060
        } else {
43061
          setScx((ShoppingCartException)value);
43062
        }
43063
        break;
43064
 
43065
      }
43066
    }
43067
 
43068
    public Object getFieldValue(_Fields field) {
43069
      switch (field) {
43070
      case SCX:
43071
        return getScx();
43072
 
43073
      }
43074
      throw new IllegalStateException();
43075
    }
43076
 
3430 rajveer 43077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43078
    public boolean isSet(_Fields field) {
43079
      if (field == null) {
43080
        throw new IllegalArgumentException();
43081
      }
553 chandransh 43082
 
43083
      switch (field) {
43084
      case SCX:
43085
        return isSetScx();
43086
      }
43087
      throw new IllegalStateException();
43088
    }
43089
 
43090
    @Override
43091
    public boolean equals(Object that) {
43092
      if (that == null)
43093
        return false;
43094
      if (that instanceof changeItemStatus_result)
43095
        return this.equals((changeItemStatus_result)that);
43096
      return false;
43097
    }
43098
 
43099
    public boolean equals(changeItemStatus_result that) {
43100
      if (that == null)
43101
        return false;
43102
 
43103
      boolean this_present_scx = true && this.isSetScx();
43104
      boolean that_present_scx = true && that.isSetScx();
43105
      if (this_present_scx || that_present_scx) {
43106
        if (!(this_present_scx && that_present_scx))
43107
          return false;
43108
        if (!this.scx.equals(that.scx))
43109
          return false;
43110
      }
43111
 
43112
      return true;
43113
    }
43114
 
43115
    @Override
43116
    public int hashCode() {
43117
      return 0;
43118
    }
43119
 
43120
    public int compareTo(changeItemStatus_result other) {
43121
      if (!getClass().equals(other.getClass())) {
43122
        return getClass().getName().compareTo(other.getClass().getName());
43123
      }
43124
 
43125
      int lastComparison = 0;
43126
      changeItemStatus_result typedOther = (changeItemStatus_result)other;
43127
 
3430 rajveer 43128
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 43129
      if (lastComparison != 0) {
43130
        return lastComparison;
43131
      }
3430 rajveer 43132
      if (isSetScx()) {
43133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
43134
        if (lastComparison != 0) {
43135
          return lastComparison;
43136
        }
553 chandransh 43137
      }
43138
      return 0;
43139
    }
43140
 
3430 rajveer 43141
    public _Fields fieldForId(int fieldId) {
43142
      return _Fields.findByThriftId(fieldId);
43143
    }
43144
 
43145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43146
      org.apache.thrift.protocol.TField field;
553 chandransh 43147
      iprot.readStructBegin();
43148
      while (true)
43149
      {
43150
        field = iprot.readFieldBegin();
3430 rajveer 43151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43152
          break;
43153
        }
3430 rajveer 43154
        switch (field.id) {
43155
          case 1: // SCX
43156
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43157
              this.scx = new ShoppingCartException();
43158
              this.scx.read(iprot);
43159
            } else { 
43160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43161
            }
43162
            break;
43163
          default:
43164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43165
        }
3430 rajveer 43166
        iprot.readFieldEnd();
553 chandransh 43167
      }
43168
      iprot.readStructEnd();
43169
      validate();
43170
    }
43171
 
3430 rajveer 43172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43173
      oprot.writeStructBegin(STRUCT_DESC);
43174
 
43175
      if (this.isSetScx()) {
43176
        oprot.writeFieldBegin(SCX_FIELD_DESC);
43177
        this.scx.write(oprot);
43178
        oprot.writeFieldEnd();
43179
      }
43180
      oprot.writeFieldStop();
43181
      oprot.writeStructEnd();
43182
    }
43183
 
43184
    @Override
43185
    public String toString() {
43186
      StringBuilder sb = new StringBuilder("changeItemStatus_result(");
43187
      boolean first = true;
43188
 
43189
      sb.append("scx:");
43190
      if (this.scx == null) {
43191
        sb.append("null");
43192
      } else {
43193
        sb.append(this.scx);
43194
      }
43195
      first = false;
43196
      sb.append(")");
43197
      return sb.toString();
43198
    }
43199
 
3430 rajveer 43200
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43201
      // check for required fields
43202
    }
43203
 
3430 rajveer 43204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43205
      try {
43206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43207
      } catch (org.apache.thrift.TException te) {
43208
        throw new java.io.IOException(te);
43209
      }
43210
    }
43211
 
43212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43213
      try {
43214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43215
      } catch (org.apache.thrift.TException te) {
43216
        throw new java.io.IOException(te);
43217
      }
43218
    }
43219
 
553 chandransh 43220
  }
43221
 
3430 rajveer 43222
  public static class addAddressToCart_args implements org.apache.thrift.TBase<addAddressToCart_args, addAddressToCart_args._Fields>, java.io.Serializable, Cloneable   {
43223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressToCart_args");
553 chandransh 43224
 
3430 rajveer 43225
    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);
43226
    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 43227
 
3430 rajveer 43228
    private long cartId; // required
43229
    private long addressId; // required
553 chandransh 43230
 
43231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 43233
      CART_ID((short)1, "cartId"),
43234
      ADDRESS_ID((short)2, "addressId");
43235
 
43236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43237
 
43238
      static {
43239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43240
          byName.put(field.getFieldName(), field);
43241
        }
43242
      }
43243
 
43244
      /**
43245
       * Find the _Fields constant that matches fieldId, or null if its not found.
43246
       */
43247
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43248
        switch(fieldId) {
43249
          case 1: // CART_ID
43250
            return CART_ID;
43251
          case 2: // ADDRESS_ID
43252
            return ADDRESS_ID;
43253
          default:
43254
            return null;
43255
        }
553 chandransh 43256
      }
43257
 
43258
      /**
43259
       * Find the _Fields constant that matches fieldId, throwing an exception
43260
       * if it is not found.
43261
       */
43262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43263
        _Fields fields = findByThriftId(fieldId);
43264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43265
        return fields;
43266
      }
43267
 
43268
      /**
43269
       * Find the _Fields constant that matches name, or null if its not found.
43270
       */
43271
      public static _Fields findByName(String name) {
43272
        return byName.get(name);
43273
      }
43274
 
43275
      private final short _thriftId;
43276
      private final String _fieldName;
43277
 
43278
      _Fields(short thriftId, String fieldName) {
43279
        _thriftId = thriftId;
43280
        _fieldName = fieldName;
43281
      }
43282
 
43283
      public short getThriftFieldId() {
43284
        return _thriftId;
43285
      }
43286
 
43287
      public String getFieldName() {
43288
        return _fieldName;
43289
      }
43290
    }
43291
 
43292
    // isset id assignments
43293
    private static final int __CARTID_ISSET_ID = 0;
43294
    private static final int __ADDRESSID_ISSET_ID = 1;
43295
    private BitSet __isset_bit_vector = new BitSet(2);
43296
 
3430 rajveer 43297
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43298
    static {
3430 rajveer 43299
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43300
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43302
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43303
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43304
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43305
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressToCart_args.class, metaDataMap);
553 chandransh 43306
    }
43307
 
43308
    public addAddressToCart_args() {
43309
    }
43310
 
43311
    public addAddressToCart_args(
43312
      long cartId,
43313
      long addressId)
43314
    {
43315
      this();
43316
      this.cartId = cartId;
43317
      setCartIdIsSet(true);
43318
      this.addressId = addressId;
43319
      setAddressIdIsSet(true);
43320
    }
43321
 
43322
    /**
43323
     * Performs a deep copy on <i>other</i>.
43324
     */
43325
    public addAddressToCart_args(addAddressToCart_args other) {
43326
      __isset_bit_vector.clear();
43327
      __isset_bit_vector.or(other.__isset_bit_vector);
43328
      this.cartId = other.cartId;
43329
      this.addressId = other.addressId;
43330
    }
43331
 
43332
    public addAddressToCart_args deepCopy() {
43333
      return new addAddressToCart_args(this);
43334
    }
43335
 
3430 rajveer 43336
    @Override
43337
    public void clear() {
43338
      setCartIdIsSet(false);
43339
      this.cartId = 0;
43340
      setAddressIdIsSet(false);
43341
      this.addressId = 0;
553 chandransh 43342
    }
43343
 
43344
    public long getCartId() {
43345
      return this.cartId;
43346
    }
43347
 
3430 rajveer 43348
    public void setCartId(long cartId) {
553 chandransh 43349
      this.cartId = cartId;
43350
      setCartIdIsSet(true);
43351
    }
43352
 
43353
    public void unsetCartId() {
43354
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
43355
    }
43356
 
3430 rajveer 43357
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 43358
    public boolean isSetCartId() {
43359
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
43360
    }
43361
 
43362
    public void setCartIdIsSet(boolean value) {
43363
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
43364
    }
43365
 
43366
    public long getAddressId() {
43367
      return this.addressId;
43368
    }
43369
 
3430 rajveer 43370
    public void setAddressId(long addressId) {
553 chandransh 43371
      this.addressId = addressId;
43372
      setAddressIdIsSet(true);
43373
    }
43374
 
43375
    public void unsetAddressId() {
43376
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
43377
    }
43378
 
3430 rajveer 43379
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
553 chandransh 43380
    public boolean isSetAddressId() {
43381
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
43382
    }
43383
 
43384
    public void setAddressIdIsSet(boolean value) {
43385
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
43386
    }
43387
 
43388
    public void setFieldValue(_Fields field, Object value) {
43389
      switch (field) {
43390
      case CART_ID:
43391
        if (value == null) {
43392
          unsetCartId();
43393
        } else {
43394
          setCartId((Long)value);
43395
        }
43396
        break;
43397
 
43398
      case ADDRESS_ID:
43399
        if (value == null) {
43400
          unsetAddressId();
43401
        } else {
43402
          setAddressId((Long)value);
43403
        }
43404
        break;
43405
 
43406
      }
43407
    }
43408
 
43409
    public Object getFieldValue(_Fields field) {
43410
      switch (field) {
43411
      case CART_ID:
3430 rajveer 43412
        return Long.valueOf(getCartId());
553 chandransh 43413
 
43414
      case ADDRESS_ID:
3430 rajveer 43415
        return Long.valueOf(getAddressId());
553 chandransh 43416
 
43417
      }
43418
      throw new IllegalStateException();
43419
    }
43420
 
3430 rajveer 43421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43422
    public boolean isSet(_Fields field) {
43423
      if (field == null) {
43424
        throw new IllegalArgumentException();
43425
      }
553 chandransh 43426
 
43427
      switch (field) {
43428
      case CART_ID:
43429
        return isSetCartId();
43430
      case ADDRESS_ID:
43431
        return isSetAddressId();
43432
      }
43433
      throw new IllegalStateException();
43434
    }
43435
 
43436
    @Override
43437
    public boolean equals(Object that) {
43438
      if (that == null)
43439
        return false;
43440
      if (that instanceof addAddressToCart_args)
43441
        return this.equals((addAddressToCart_args)that);
43442
      return false;
43443
    }
43444
 
43445
    public boolean equals(addAddressToCart_args that) {
43446
      if (that == null)
43447
        return false;
43448
 
43449
      boolean this_present_cartId = true;
43450
      boolean that_present_cartId = true;
43451
      if (this_present_cartId || that_present_cartId) {
43452
        if (!(this_present_cartId && that_present_cartId))
43453
          return false;
43454
        if (this.cartId != that.cartId)
43455
          return false;
43456
      }
43457
 
43458
      boolean this_present_addressId = true;
43459
      boolean that_present_addressId = true;
43460
      if (this_present_addressId || that_present_addressId) {
43461
        if (!(this_present_addressId && that_present_addressId))
43462
          return false;
43463
        if (this.addressId != that.addressId)
43464
          return false;
43465
      }
43466
 
43467
      return true;
43468
    }
43469
 
43470
    @Override
43471
    public int hashCode() {
43472
      return 0;
43473
    }
43474
 
43475
    public int compareTo(addAddressToCart_args other) {
43476
      if (!getClass().equals(other.getClass())) {
43477
        return getClass().getName().compareTo(other.getClass().getName());
43478
      }
43479
 
43480
      int lastComparison = 0;
43481
      addAddressToCart_args typedOther = (addAddressToCart_args)other;
43482
 
3430 rajveer 43483
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 43484
      if (lastComparison != 0) {
43485
        return lastComparison;
43486
      }
3430 rajveer 43487
      if (isSetCartId()) {
43488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
43489
        if (lastComparison != 0) {
43490
          return lastComparison;
43491
        }
553 chandransh 43492
      }
3430 rajveer 43493
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
553 chandransh 43494
      if (lastComparison != 0) {
43495
        return lastComparison;
43496
      }
3430 rajveer 43497
      if (isSetAddressId()) {
43498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
43499
        if (lastComparison != 0) {
43500
          return lastComparison;
43501
        }
553 chandransh 43502
      }
43503
      return 0;
43504
    }
43505
 
3430 rajveer 43506
    public _Fields fieldForId(int fieldId) {
43507
      return _Fields.findByThriftId(fieldId);
43508
    }
43509
 
43510
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43511
      org.apache.thrift.protocol.TField field;
553 chandransh 43512
      iprot.readStructBegin();
43513
      while (true)
43514
      {
43515
        field = iprot.readFieldBegin();
3430 rajveer 43516
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43517
          break;
43518
        }
3430 rajveer 43519
        switch (field.id) {
43520
          case 1: // CART_ID
43521
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43522
              this.cartId = iprot.readI64();
43523
              setCartIdIsSet(true);
43524
            } else { 
43525
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43526
            }
43527
            break;
43528
          case 2: // ADDRESS_ID
43529
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43530
              this.addressId = iprot.readI64();
43531
              setAddressIdIsSet(true);
43532
            } else { 
43533
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43534
            }
43535
            break;
43536
          default:
43537
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43538
        }
3430 rajveer 43539
        iprot.readFieldEnd();
553 chandransh 43540
      }
43541
      iprot.readStructEnd();
43542
      validate();
43543
    }
43544
 
3430 rajveer 43545
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43546
      validate();
43547
 
43548
      oprot.writeStructBegin(STRUCT_DESC);
43549
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
43550
      oprot.writeI64(this.cartId);
43551
      oprot.writeFieldEnd();
43552
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
43553
      oprot.writeI64(this.addressId);
43554
      oprot.writeFieldEnd();
43555
      oprot.writeFieldStop();
43556
      oprot.writeStructEnd();
43557
    }
43558
 
43559
    @Override
43560
    public String toString() {
43561
      StringBuilder sb = new StringBuilder("addAddressToCart_args(");
43562
      boolean first = true;
43563
 
43564
      sb.append("cartId:");
43565
      sb.append(this.cartId);
43566
      first = false;
43567
      if (!first) sb.append(", ");
43568
      sb.append("addressId:");
43569
      sb.append(this.addressId);
43570
      first = false;
43571
      sb.append(")");
43572
      return sb.toString();
43573
    }
43574
 
3430 rajveer 43575
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43576
      // check for required fields
43577
    }
43578
 
3430 rajveer 43579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43580
      try {
43581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43582
      } catch (org.apache.thrift.TException te) {
43583
        throw new java.io.IOException(te);
43584
      }
43585
    }
43586
 
43587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43588
      try {
43589
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43590
        __isset_bit_vector = new BitSet(1);
43591
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43592
      } catch (org.apache.thrift.TException te) {
43593
        throw new java.io.IOException(te);
43594
      }
43595
    }
43596
 
553 chandransh 43597
  }
43598
 
3430 rajveer 43599
  public static class addAddressToCart_result implements org.apache.thrift.TBase<addAddressToCart_result, addAddressToCart_result._Fields>, java.io.Serializable, Cloneable   {
43600
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressToCart_result");
553 chandransh 43601
 
3430 rajveer 43602
    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 43603
 
3430 rajveer 43604
    private ShoppingCartException scx; // required
553 chandransh 43605
 
43606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 43608
      SCX((short)1, "scx");
553 chandransh 43609
 
43610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43611
 
43612
      static {
43613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43614
          byName.put(field.getFieldName(), field);
43615
        }
43616
      }
43617
 
43618
      /**
43619
       * Find the _Fields constant that matches fieldId, or null if its not found.
43620
       */
43621
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43622
        switch(fieldId) {
43623
          case 1: // SCX
43624
            return SCX;
43625
          default:
43626
            return null;
43627
        }
553 chandransh 43628
      }
43629
 
43630
      /**
43631
       * Find the _Fields constant that matches fieldId, throwing an exception
43632
       * if it is not found.
43633
       */
43634
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43635
        _Fields fields = findByThriftId(fieldId);
43636
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43637
        return fields;
43638
      }
43639
 
43640
      /**
43641
       * Find the _Fields constant that matches name, or null if its not found.
43642
       */
43643
      public static _Fields findByName(String name) {
43644
        return byName.get(name);
43645
      }
43646
 
43647
      private final short _thriftId;
43648
      private final String _fieldName;
43649
 
43650
      _Fields(short thriftId, String fieldName) {
43651
        _thriftId = thriftId;
43652
        _fieldName = fieldName;
43653
      }
43654
 
43655
      public short getThriftFieldId() {
43656
        return _thriftId;
43657
      }
43658
 
43659
      public String getFieldName() {
43660
        return _fieldName;
43661
      }
43662
    }
578 chandransh 43663
 
43664
    // isset id assignments
43665
 
3430 rajveer 43666
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43667
    static {
3430 rajveer 43668
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43669
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43670
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43671
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43672
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressToCart_result.class, metaDataMap);
553 chandransh 43673
    }
43674
 
43675
    public addAddressToCart_result() {
43676
    }
43677
 
578 chandransh 43678
    public addAddressToCart_result(
43679
      ShoppingCartException scx)
43680
    {
43681
      this();
43682
      this.scx = scx;
43683
    }
43684
 
553 chandransh 43685
    /**
43686
     * Performs a deep copy on <i>other</i>.
43687
     */
43688
    public addAddressToCart_result(addAddressToCart_result other) {
578 chandransh 43689
      if (other.isSetScx()) {
43690
        this.scx = new ShoppingCartException(other.scx);
43691
      }
553 chandransh 43692
    }
43693
 
43694
    public addAddressToCart_result deepCopy() {
43695
      return new addAddressToCart_result(this);
43696
    }
43697
 
3430 rajveer 43698
    @Override
43699
    public void clear() {
43700
      this.scx = null;
553 chandransh 43701
    }
43702
 
578 chandransh 43703
    public ShoppingCartException getScx() {
43704
      return this.scx;
43705
    }
43706
 
3430 rajveer 43707
    public void setScx(ShoppingCartException scx) {
578 chandransh 43708
      this.scx = scx;
43709
    }
43710
 
43711
    public void unsetScx() {
43712
      this.scx = null;
43713
    }
43714
 
3430 rajveer 43715
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
578 chandransh 43716
    public boolean isSetScx() {
43717
      return this.scx != null;
43718
    }
43719
 
43720
    public void setScxIsSet(boolean value) {
43721
      if (!value) {
43722
        this.scx = null;
43723
      }
43724
    }
43725
 
553 chandransh 43726
    public void setFieldValue(_Fields field, Object value) {
43727
      switch (field) {
578 chandransh 43728
      case SCX:
43729
        if (value == null) {
43730
          unsetScx();
43731
        } else {
43732
          setScx((ShoppingCartException)value);
43733
        }
43734
        break;
43735
 
553 chandransh 43736
      }
43737
    }
43738
 
43739
    public Object getFieldValue(_Fields field) {
43740
      switch (field) {
578 chandransh 43741
      case SCX:
43742
        return getScx();
43743
 
553 chandransh 43744
      }
43745
      throw new IllegalStateException();
43746
    }
43747
 
3430 rajveer 43748
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43749
    public boolean isSet(_Fields field) {
43750
      if (field == null) {
43751
        throw new IllegalArgumentException();
43752
      }
553 chandransh 43753
 
43754
      switch (field) {
578 chandransh 43755
      case SCX:
43756
        return isSetScx();
553 chandransh 43757
      }
43758
      throw new IllegalStateException();
43759
    }
43760
 
43761
    @Override
43762
    public boolean equals(Object that) {
43763
      if (that == null)
43764
        return false;
43765
      if (that instanceof addAddressToCart_result)
43766
        return this.equals((addAddressToCart_result)that);
43767
      return false;
43768
    }
43769
 
43770
    public boolean equals(addAddressToCart_result that) {
43771
      if (that == null)
43772
        return false;
43773
 
578 chandransh 43774
      boolean this_present_scx = true && this.isSetScx();
43775
      boolean that_present_scx = true && that.isSetScx();
43776
      if (this_present_scx || that_present_scx) {
43777
        if (!(this_present_scx && that_present_scx))
43778
          return false;
43779
        if (!this.scx.equals(that.scx))
43780
          return false;
43781
      }
43782
 
553 chandransh 43783
      return true;
43784
    }
43785
 
43786
    @Override
43787
    public int hashCode() {
43788
      return 0;
43789
    }
43790
 
43791
    public int compareTo(addAddressToCart_result other) {
43792
      if (!getClass().equals(other.getClass())) {
43793
        return getClass().getName().compareTo(other.getClass().getName());
43794
      }
43795
 
43796
      int lastComparison = 0;
43797
      addAddressToCart_result typedOther = (addAddressToCart_result)other;
43798
 
3430 rajveer 43799
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
578 chandransh 43800
      if (lastComparison != 0) {
43801
        return lastComparison;
43802
      }
3430 rajveer 43803
      if (isSetScx()) {
43804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
43805
        if (lastComparison != 0) {
43806
          return lastComparison;
43807
        }
578 chandransh 43808
      }
553 chandransh 43809
      return 0;
43810
    }
43811
 
3430 rajveer 43812
    public _Fields fieldForId(int fieldId) {
43813
      return _Fields.findByThriftId(fieldId);
43814
    }
43815
 
43816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43817
      org.apache.thrift.protocol.TField field;
553 chandransh 43818
      iprot.readStructBegin();
43819
      while (true)
43820
      {
43821
        field = iprot.readFieldBegin();
3430 rajveer 43822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43823
          break;
43824
        }
3430 rajveer 43825
        switch (field.id) {
43826
          case 1: // SCX
43827
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43828
              this.scx = new ShoppingCartException();
43829
              this.scx.read(iprot);
43830
            } else { 
43831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43832
            }
43833
            break;
43834
          default:
43835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43836
        }
3430 rajveer 43837
        iprot.readFieldEnd();
553 chandransh 43838
      }
43839
      iprot.readStructEnd();
43840
      validate();
43841
    }
43842
 
3430 rajveer 43843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43844
      oprot.writeStructBegin(STRUCT_DESC);
43845
 
578 chandransh 43846
      if (this.isSetScx()) {
43847
        oprot.writeFieldBegin(SCX_FIELD_DESC);
43848
        this.scx.write(oprot);
43849
        oprot.writeFieldEnd();
43850
      }
553 chandransh 43851
      oprot.writeFieldStop();
43852
      oprot.writeStructEnd();
43853
    }
43854
 
43855
    @Override
43856
    public String toString() {
43857
      StringBuilder sb = new StringBuilder("addAddressToCart_result(");
43858
      boolean first = true;
43859
 
578 chandransh 43860
      sb.append("scx:");
43861
      if (this.scx == null) {
43862
        sb.append("null");
43863
      } else {
43864
        sb.append(this.scx);
43865
      }
43866
      first = false;
553 chandransh 43867
      sb.append(")");
43868
      return sb.toString();
43869
    }
43870
 
3430 rajveer 43871
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43872
      // check for required fields
43873
    }
43874
 
3430 rajveer 43875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43876
      try {
43877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43878
      } catch (org.apache.thrift.TException te) {
43879
        throw new java.io.IOException(te);
43880
      }
43881
    }
43882
 
43883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43884
      try {
43885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43886
      } catch (org.apache.thrift.TException te) {
43887
        throw new java.io.IOException(te);
43888
      }
43889
    }
43890
 
553 chandransh 43891
  }
43892
 
3430 rajveer 43893
  public static class applyCouponToCart_args implements org.apache.thrift.TBase<applyCouponToCart_args, applyCouponToCart_args._Fields>, java.io.Serializable, Cloneable   {
43894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("applyCouponToCart_args");
1982 varun.gupt 43895
 
3430 rajveer 43896
    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);
43897
    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);
43898
    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);
43899
    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 43900
 
3430 rajveer 43901
    private long cartId; // required
43902
    private String couponCode; // required
43903
    private double totalPrice; // required
43904
    private double discountedPrice; // required
1982 varun.gupt 43905
 
43906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 43908
      CART_ID((short)1, "cartId"),
43909
      COUPON_CODE((short)2, "couponCode"),
43910
      TOTAL_PRICE((short)3, "totalPrice"),
43911
      DISCOUNTED_PRICE((short)4, "discountedPrice");
43912
 
43913
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43914
 
43915
      static {
43916
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43917
          byName.put(field.getFieldName(), field);
43918
        }
43919
      }
43920
 
43921
      /**
43922
       * Find the _Fields constant that matches fieldId, or null if its not found.
43923
       */
43924
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43925
        switch(fieldId) {
43926
          case 1: // CART_ID
43927
            return CART_ID;
43928
          case 2: // COUPON_CODE
43929
            return COUPON_CODE;
43930
          case 3: // TOTAL_PRICE
43931
            return TOTAL_PRICE;
43932
          case 4: // DISCOUNTED_PRICE
43933
            return DISCOUNTED_PRICE;
43934
          default:
43935
            return null;
43936
        }
1982 varun.gupt 43937
      }
43938
 
43939
      /**
43940
       * Find the _Fields constant that matches fieldId, throwing an exception
43941
       * if it is not found.
43942
       */
43943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43944
        _Fields fields = findByThriftId(fieldId);
43945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43946
        return fields;
43947
      }
43948
 
43949
      /**
43950
       * Find the _Fields constant that matches name, or null if its not found.
43951
       */
43952
      public static _Fields findByName(String name) {
43953
        return byName.get(name);
43954
      }
43955
 
43956
      private final short _thriftId;
43957
      private final String _fieldName;
43958
 
43959
      _Fields(short thriftId, String fieldName) {
43960
        _thriftId = thriftId;
43961
        _fieldName = fieldName;
43962
      }
43963
 
43964
      public short getThriftFieldId() {
43965
        return _thriftId;
43966
      }
43967
 
43968
      public String getFieldName() {
43969
        return _fieldName;
43970
      }
43971
    }
43972
 
43973
    // isset id assignments
43974
    private static final int __CARTID_ISSET_ID = 0;
43975
    private static final int __TOTALPRICE_ISSET_ID = 1;
43976
    private static final int __DISCOUNTEDPRICE_ISSET_ID = 2;
43977
    private BitSet __isset_bit_vector = new BitSet(3);
43978
 
3430 rajveer 43979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 43980
    static {
3430 rajveer 43981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43982
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43984
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43985
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
43986
      tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
43988
      tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
43990
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43991
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(applyCouponToCart_args.class, metaDataMap);
1982 varun.gupt 43992
    }
43993
 
43994
    public applyCouponToCart_args() {
43995
    }
43996
 
43997
    public applyCouponToCart_args(
43998
      long cartId,
43999
      String couponCode,
44000
      double totalPrice,
44001
      double discountedPrice)
44002
    {
44003
      this();
44004
      this.cartId = cartId;
44005
      setCartIdIsSet(true);
44006
      this.couponCode = couponCode;
44007
      this.totalPrice = totalPrice;
44008
      setTotalPriceIsSet(true);
44009
      this.discountedPrice = discountedPrice;
44010
      setDiscountedPriceIsSet(true);
44011
    }
44012
 
44013
    /**
44014
     * Performs a deep copy on <i>other</i>.
44015
     */
44016
    public applyCouponToCart_args(applyCouponToCart_args other) {
44017
      __isset_bit_vector.clear();
44018
      __isset_bit_vector.or(other.__isset_bit_vector);
44019
      this.cartId = other.cartId;
44020
      if (other.isSetCouponCode()) {
44021
        this.couponCode = other.couponCode;
44022
      }
44023
      this.totalPrice = other.totalPrice;
44024
      this.discountedPrice = other.discountedPrice;
44025
    }
44026
 
44027
    public applyCouponToCart_args deepCopy() {
44028
      return new applyCouponToCart_args(this);
44029
    }
44030
 
3430 rajveer 44031
    @Override
44032
    public void clear() {
44033
      setCartIdIsSet(false);
44034
      this.cartId = 0;
44035
      this.couponCode = null;
44036
      setTotalPriceIsSet(false);
44037
      this.totalPrice = 0.0;
44038
      setDiscountedPriceIsSet(false);
44039
      this.discountedPrice = 0.0;
1982 varun.gupt 44040
    }
44041
 
44042
    public long getCartId() {
44043
      return this.cartId;
44044
    }
44045
 
3430 rajveer 44046
    public void setCartId(long cartId) {
1982 varun.gupt 44047
      this.cartId = cartId;
44048
      setCartIdIsSet(true);
44049
    }
44050
 
44051
    public void unsetCartId() {
44052
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
44053
    }
44054
 
3430 rajveer 44055
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44056
    public boolean isSetCartId() {
44057
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
44058
    }
44059
 
44060
    public void setCartIdIsSet(boolean value) {
44061
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
44062
    }
44063
 
44064
    public String getCouponCode() {
44065
      return this.couponCode;
44066
    }
44067
 
3430 rajveer 44068
    public void setCouponCode(String couponCode) {
1982 varun.gupt 44069
      this.couponCode = couponCode;
44070
    }
44071
 
44072
    public void unsetCouponCode() {
44073
      this.couponCode = null;
44074
    }
44075
 
3430 rajveer 44076
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44077
    public boolean isSetCouponCode() {
44078
      return this.couponCode != null;
44079
    }
44080
 
44081
    public void setCouponCodeIsSet(boolean value) {
44082
      if (!value) {
44083
        this.couponCode = null;
44084
      }
44085
    }
44086
 
44087
    public double getTotalPrice() {
44088
      return this.totalPrice;
44089
    }
44090
 
3430 rajveer 44091
    public void setTotalPrice(double totalPrice) {
1982 varun.gupt 44092
      this.totalPrice = totalPrice;
44093
      setTotalPriceIsSet(true);
44094
    }
44095
 
44096
    public void unsetTotalPrice() {
44097
      __isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
44098
    }
44099
 
3430 rajveer 44100
    /** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44101
    public boolean isSetTotalPrice() {
44102
      return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
44103
    }
44104
 
44105
    public void setTotalPriceIsSet(boolean value) {
44106
      __isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);
44107
    }
44108
 
44109
    public double getDiscountedPrice() {
44110
      return this.discountedPrice;
44111
    }
44112
 
3430 rajveer 44113
    public void setDiscountedPrice(double discountedPrice) {
1982 varun.gupt 44114
      this.discountedPrice = discountedPrice;
44115
      setDiscountedPriceIsSet(true);
44116
    }
44117
 
44118
    public void unsetDiscountedPrice() {
44119
      __isset_bit_vector.clear(__DISCOUNTEDPRICE_ISSET_ID);
44120
    }
44121
 
3430 rajveer 44122
    /** Returns true if field discountedPrice is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44123
    public boolean isSetDiscountedPrice() {
44124
      return __isset_bit_vector.get(__DISCOUNTEDPRICE_ISSET_ID);
44125
    }
44126
 
44127
    public void setDiscountedPriceIsSet(boolean value) {
44128
      __isset_bit_vector.set(__DISCOUNTEDPRICE_ISSET_ID, value);
44129
    }
44130
 
44131
    public void setFieldValue(_Fields field, Object value) {
44132
      switch (field) {
44133
      case CART_ID:
44134
        if (value == null) {
44135
          unsetCartId();
44136
        } else {
44137
          setCartId((Long)value);
44138
        }
44139
        break;
44140
 
44141
      case COUPON_CODE:
44142
        if (value == null) {
44143
          unsetCouponCode();
44144
        } else {
44145
          setCouponCode((String)value);
44146
        }
44147
        break;
44148
 
44149
      case TOTAL_PRICE:
44150
        if (value == null) {
44151
          unsetTotalPrice();
44152
        } else {
44153
          setTotalPrice((Double)value);
44154
        }
44155
        break;
44156
 
44157
      case DISCOUNTED_PRICE:
44158
        if (value == null) {
44159
          unsetDiscountedPrice();
44160
        } else {
44161
          setDiscountedPrice((Double)value);
44162
        }
44163
        break;
44164
 
44165
      }
44166
    }
44167
 
44168
    public Object getFieldValue(_Fields field) {
44169
      switch (field) {
44170
      case CART_ID:
3430 rajveer 44171
        return Long.valueOf(getCartId());
1982 varun.gupt 44172
 
44173
      case COUPON_CODE:
44174
        return getCouponCode();
44175
 
44176
      case TOTAL_PRICE:
3430 rajveer 44177
        return Double.valueOf(getTotalPrice());
1982 varun.gupt 44178
 
44179
      case DISCOUNTED_PRICE:
3430 rajveer 44180
        return Double.valueOf(getDiscountedPrice());
1982 varun.gupt 44181
 
44182
      }
44183
      throw new IllegalStateException();
44184
    }
44185
 
3430 rajveer 44186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44187
    public boolean isSet(_Fields field) {
44188
      if (field == null) {
44189
        throw new IllegalArgumentException();
44190
      }
1982 varun.gupt 44191
 
44192
      switch (field) {
44193
      case CART_ID:
44194
        return isSetCartId();
44195
      case COUPON_CODE:
44196
        return isSetCouponCode();
44197
      case TOTAL_PRICE:
44198
        return isSetTotalPrice();
44199
      case DISCOUNTED_PRICE:
44200
        return isSetDiscountedPrice();
44201
      }
44202
      throw new IllegalStateException();
44203
    }
44204
 
44205
    @Override
44206
    public boolean equals(Object that) {
44207
      if (that == null)
44208
        return false;
44209
      if (that instanceof applyCouponToCart_args)
44210
        return this.equals((applyCouponToCart_args)that);
44211
      return false;
44212
    }
44213
 
44214
    public boolean equals(applyCouponToCart_args that) {
44215
      if (that == null)
44216
        return false;
44217
 
44218
      boolean this_present_cartId = true;
44219
      boolean that_present_cartId = true;
44220
      if (this_present_cartId || that_present_cartId) {
44221
        if (!(this_present_cartId && that_present_cartId))
44222
          return false;
44223
        if (this.cartId != that.cartId)
44224
          return false;
44225
      }
44226
 
44227
      boolean this_present_couponCode = true && this.isSetCouponCode();
44228
      boolean that_present_couponCode = true && that.isSetCouponCode();
44229
      if (this_present_couponCode || that_present_couponCode) {
44230
        if (!(this_present_couponCode && that_present_couponCode))
44231
          return false;
44232
        if (!this.couponCode.equals(that.couponCode))
44233
          return false;
44234
      }
44235
 
44236
      boolean this_present_totalPrice = true;
44237
      boolean that_present_totalPrice = true;
44238
      if (this_present_totalPrice || that_present_totalPrice) {
44239
        if (!(this_present_totalPrice && that_present_totalPrice))
44240
          return false;
44241
        if (this.totalPrice != that.totalPrice)
44242
          return false;
44243
      }
44244
 
44245
      boolean this_present_discountedPrice = true;
44246
      boolean that_present_discountedPrice = true;
44247
      if (this_present_discountedPrice || that_present_discountedPrice) {
44248
        if (!(this_present_discountedPrice && that_present_discountedPrice))
44249
          return false;
44250
        if (this.discountedPrice != that.discountedPrice)
44251
          return false;
44252
      }
44253
 
44254
      return true;
44255
    }
44256
 
44257
    @Override
44258
    public int hashCode() {
44259
      return 0;
44260
    }
44261
 
44262
    public int compareTo(applyCouponToCart_args other) {
44263
      if (!getClass().equals(other.getClass())) {
44264
        return getClass().getName().compareTo(other.getClass().getName());
44265
      }
44266
 
44267
      int lastComparison = 0;
44268
      applyCouponToCart_args typedOther = (applyCouponToCart_args)other;
44269
 
3430 rajveer 44270
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
1982 varun.gupt 44271
      if (lastComparison != 0) {
44272
        return lastComparison;
44273
      }
3430 rajveer 44274
      if (isSetCartId()) {
44275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
44276
        if (lastComparison != 0) {
44277
          return lastComparison;
44278
        }
1982 varun.gupt 44279
      }
3430 rajveer 44280
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
1982 varun.gupt 44281
      if (lastComparison != 0) {
44282
        return lastComparison;
44283
      }
3430 rajveer 44284
      if (isSetCouponCode()) {
44285
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
44286
        if (lastComparison != 0) {
44287
          return lastComparison;
44288
        }
1982 varun.gupt 44289
      }
3430 rajveer 44290
      lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());
1982 varun.gupt 44291
      if (lastComparison != 0) {
44292
        return lastComparison;
44293
      }
3430 rajveer 44294
      if (isSetTotalPrice()) {
44295
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);
44296
        if (lastComparison != 0) {
44297
          return lastComparison;
44298
        }
1982 varun.gupt 44299
      }
3430 rajveer 44300
      lastComparison = Boolean.valueOf(isSetDiscountedPrice()).compareTo(typedOther.isSetDiscountedPrice());
1982 varun.gupt 44301
      if (lastComparison != 0) {
44302
        return lastComparison;
44303
      }
3430 rajveer 44304
      if (isSetDiscountedPrice()) {
44305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discountedPrice, typedOther.discountedPrice);
44306
        if (lastComparison != 0) {
44307
          return lastComparison;
44308
        }
1982 varun.gupt 44309
      }
44310
      return 0;
44311
    }
44312
 
3430 rajveer 44313
    public _Fields fieldForId(int fieldId) {
44314
      return _Fields.findByThriftId(fieldId);
44315
    }
44316
 
44317
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44318
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44319
      iprot.readStructBegin();
44320
      while (true)
44321
      {
44322
        field = iprot.readFieldBegin();
3430 rajveer 44323
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44324
          break;
44325
        }
3430 rajveer 44326
        switch (field.id) {
44327
          case 1: // CART_ID
44328
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44329
              this.cartId = iprot.readI64();
44330
              setCartIdIsSet(true);
44331
            } else { 
44332
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44333
            }
44334
            break;
44335
          case 2: // COUPON_CODE
44336
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
44337
              this.couponCode = iprot.readString();
44338
            } else { 
44339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44340
            }
44341
            break;
44342
          case 3: // TOTAL_PRICE
44343
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44344
              this.totalPrice = iprot.readDouble();
44345
              setTotalPriceIsSet(true);
44346
            } else { 
44347
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44348
            }
44349
            break;
44350
          case 4: // DISCOUNTED_PRICE
44351
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44352
              this.discountedPrice = iprot.readDouble();
44353
              setDiscountedPriceIsSet(true);
44354
            } else { 
44355
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44356
            }
44357
            break;
44358
          default:
44359
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44360
        }
3430 rajveer 44361
        iprot.readFieldEnd();
1982 varun.gupt 44362
      }
44363
      iprot.readStructEnd();
44364
      validate();
44365
    }
44366
 
3430 rajveer 44367
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44368
      validate();
44369
 
44370
      oprot.writeStructBegin(STRUCT_DESC);
44371
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
44372
      oprot.writeI64(this.cartId);
44373
      oprot.writeFieldEnd();
44374
      if (this.couponCode != null) {
44375
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
44376
        oprot.writeString(this.couponCode);
44377
        oprot.writeFieldEnd();
44378
      }
44379
      oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
44380
      oprot.writeDouble(this.totalPrice);
44381
      oprot.writeFieldEnd();
44382
      oprot.writeFieldBegin(DISCOUNTED_PRICE_FIELD_DESC);
44383
      oprot.writeDouble(this.discountedPrice);
44384
      oprot.writeFieldEnd();
44385
      oprot.writeFieldStop();
44386
      oprot.writeStructEnd();
44387
    }
44388
 
44389
    @Override
44390
    public String toString() {
44391
      StringBuilder sb = new StringBuilder("applyCouponToCart_args(");
44392
      boolean first = true;
44393
 
44394
      sb.append("cartId:");
44395
      sb.append(this.cartId);
44396
      first = false;
44397
      if (!first) sb.append(", ");
44398
      sb.append("couponCode:");
44399
      if (this.couponCode == null) {
44400
        sb.append("null");
44401
      } else {
44402
        sb.append(this.couponCode);
44403
      }
44404
      first = false;
44405
      if (!first) sb.append(", ");
44406
      sb.append("totalPrice:");
44407
      sb.append(this.totalPrice);
44408
      first = false;
44409
      if (!first) sb.append(", ");
44410
      sb.append("discountedPrice:");
44411
      sb.append(this.discountedPrice);
44412
      first = false;
44413
      sb.append(")");
44414
      return sb.toString();
44415
    }
44416
 
3430 rajveer 44417
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 44418
      // check for required fields
44419
    }
44420
 
3430 rajveer 44421
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44422
      try {
44423
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44424
      } catch (org.apache.thrift.TException te) {
44425
        throw new java.io.IOException(te);
44426
      }
44427
    }
44428
 
44429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44430
      try {
44431
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
44432
        __isset_bit_vector = new BitSet(1);
44433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44434
      } catch (org.apache.thrift.TException te) {
44435
        throw new java.io.IOException(te);
44436
      }
44437
    }
44438
 
1982 varun.gupt 44439
  }
44440
 
3430 rajveer 44441
  public static class applyCouponToCart_result implements org.apache.thrift.TBase<applyCouponToCart_result, applyCouponToCart_result._Fields>, java.io.Serializable, Cloneable   {
44442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("applyCouponToCart_result");
1982 varun.gupt 44443
 
3430 rajveer 44444
    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 44445
 
3430 rajveer 44446
    private ShoppingCartException scx; // required
1982 varun.gupt 44447
 
44448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44450
      SCX((short)1, "scx");
44451
 
44452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44453
 
44454
      static {
44455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44456
          byName.put(field.getFieldName(), field);
44457
        }
44458
      }
44459
 
44460
      /**
44461
       * Find the _Fields constant that matches fieldId, or null if its not found.
44462
       */
44463
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44464
        switch(fieldId) {
44465
          case 1: // SCX
44466
            return SCX;
44467
          default:
44468
            return null;
44469
        }
1982 varun.gupt 44470
      }
44471
 
44472
      /**
44473
       * Find the _Fields constant that matches fieldId, throwing an exception
44474
       * if it is not found.
44475
       */
44476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44477
        _Fields fields = findByThriftId(fieldId);
44478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44479
        return fields;
44480
      }
44481
 
44482
      /**
44483
       * Find the _Fields constant that matches name, or null if its not found.
44484
       */
44485
      public static _Fields findByName(String name) {
44486
        return byName.get(name);
44487
      }
44488
 
44489
      private final short _thriftId;
44490
      private final String _fieldName;
44491
 
44492
      _Fields(short thriftId, String fieldName) {
44493
        _thriftId = thriftId;
44494
        _fieldName = fieldName;
44495
      }
44496
 
44497
      public short getThriftFieldId() {
44498
        return _thriftId;
44499
      }
44500
 
44501
      public String getFieldName() {
44502
        return _fieldName;
44503
      }
44504
    }
44505
 
44506
    // isset id assignments
44507
 
3430 rajveer 44508
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44509
    static {
3430 rajveer 44510
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44511
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44512
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44513
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44514
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(applyCouponToCart_result.class, metaDataMap);
1982 varun.gupt 44515
    }
44516
 
44517
    public applyCouponToCart_result() {
44518
    }
44519
 
44520
    public applyCouponToCart_result(
44521
      ShoppingCartException scx)
44522
    {
44523
      this();
44524
      this.scx = scx;
44525
    }
44526
 
44527
    /**
44528
     * Performs a deep copy on <i>other</i>.
44529
     */
44530
    public applyCouponToCart_result(applyCouponToCart_result other) {
44531
      if (other.isSetScx()) {
44532
        this.scx = new ShoppingCartException(other.scx);
44533
      }
44534
    }
44535
 
44536
    public applyCouponToCart_result deepCopy() {
44537
      return new applyCouponToCart_result(this);
44538
    }
44539
 
3430 rajveer 44540
    @Override
44541
    public void clear() {
44542
      this.scx = null;
1982 varun.gupt 44543
    }
44544
 
44545
    public ShoppingCartException getScx() {
44546
      return this.scx;
44547
    }
44548
 
3430 rajveer 44549
    public void setScx(ShoppingCartException scx) {
1982 varun.gupt 44550
      this.scx = scx;
44551
    }
44552
 
44553
    public void unsetScx() {
44554
      this.scx = null;
44555
    }
44556
 
3430 rajveer 44557
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44558
    public boolean isSetScx() {
44559
      return this.scx != null;
44560
    }
44561
 
44562
    public void setScxIsSet(boolean value) {
44563
      if (!value) {
44564
        this.scx = null;
44565
      }
44566
    }
44567
 
44568
    public void setFieldValue(_Fields field, Object value) {
44569
      switch (field) {
44570
      case SCX:
44571
        if (value == null) {
44572
          unsetScx();
44573
        } else {
44574
          setScx((ShoppingCartException)value);
44575
        }
44576
        break;
44577
 
44578
      }
44579
    }
44580
 
44581
    public Object getFieldValue(_Fields field) {
44582
      switch (field) {
44583
      case SCX:
44584
        return getScx();
44585
 
44586
      }
44587
      throw new IllegalStateException();
44588
    }
44589
 
3430 rajveer 44590
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44591
    public boolean isSet(_Fields field) {
44592
      if (field == null) {
44593
        throw new IllegalArgumentException();
44594
      }
1982 varun.gupt 44595
 
44596
      switch (field) {
44597
      case SCX:
44598
        return isSetScx();
44599
      }
44600
      throw new IllegalStateException();
44601
    }
44602
 
44603
    @Override
44604
    public boolean equals(Object that) {
44605
      if (that == null)
44606
        return false;
44607
      if (that instanceof applyCouponToCart_result)
44608
        return this.equals((applyCouponToCart_result)that);
44609
      return false;
44610
    }
44611
 
44612
    public boolean equals(applyCouponToCart_result that) {
44613
      if (that == null)
44614
        return false;
44615
 
44616
      boolean this_present_scx = true && this.isSetScx();
44617
      boolean that_present_scx = true && that.isSetScx();
44618
      if (this_present_scx || that_present_scx) {
44619
        if (!(this_present_scx && that_present_scx))
44620
          return false;
44621
        if (!this.scx.equals(that.scx))
44622
          return false;
44623
      }
44624
 
44625
      return true;
44626
    }
44627
 
44628
    @Override
44629
    public int hashCode() {
44630
      return 0;
44631
    }
44632
 
44633
    public int compareTo(applyCouponToCart_result other) {
44634
      if (!getClass().equals(other.getClass())) {
44635
        return getClass().getName().compareTo(other.getClass().getName());
44636
      }
44637
 
44638
      int lastComparison = 0;
44639
      applyCouponToCart_result typedOther = (applyCouponToCart_result)other;
44640
 
3430 rajveer 44641
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1982 varun.gupt 44642
      if (lastComparison != 0) {
44643
        return lastComparison;
44644
      }
3430 rajveer 44645
      if (isSetScx()) {
44646
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
44647
        if (lastComparison != 0) {
44648
          return lastComparison;
44649
        }
1982 varun.gupt 44650
      }
44651
      return 0;
44652
    }
44653
 
3430 rajveer 44654
    public _Fields fieldForId(int fieldId) {
44655
      return _Fields.findByThriftId(fieldId);
44656
    }
44657
 
44658
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44659
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44660
      iprot.readStructBegin();
44661
      while (true)
44662
      {
44663
        field = iprot.readFieldBegin();
3430 rajveer 44664
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44665
          break;
44666
        }
3430 rajveer 44667
        switch (field.id) {
44668
          case 1: // SCX
44669
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44670
              this.scx = new ShoppingCartException();
44671
              this.scx.read(iprot);
44672
            } else { 
44673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44674
            }
44675
            break;
44676
          default:
44677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44678
        }
3430 rajveer 44679
        iprot.readFieldEnd();
1982 varun.gupt 44680
      }
44681
      iprot.readStructEnd();
44682
      validate();
44683
    }
44684
 
3430 rajveer 44685
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44686
      oprot.writeStructBegin(STRUCT_DESC);
44687
 
44688
      if (this.isSetScx()) {
44689
        oprot.writeFieldBegin(SCX_FIELD_DESC);
44690
        this.scx.write(oprot);
44691
        oprot.writeFieldEnd();
44692
      }
44693
      oprot.writeFieldStop();
44694
      oprot.writeStructEnd();
44695
    }
44696
 
44697
    @Override
44698
    public String toString() {
44699
      StringBuilder sb = new StringBuilder("applyCouponToCart_result(");
44700
      boolean first = true;
44701
 
44702
      sb.append("scx:");
44703
      if (this.scx == null) {
44704
        sb.append("null");
44705
      } else {
44706
        sb.append(this.scx);
44707
      }
44708
      first = false;
44709
      sb.append(")");
44710
      return sb.toString();
44711
    }
44712
 
3430 rajveer 44713
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 44714
      // check for required fields
44715
    }
44716
 
3430 rajveer 44717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44718
      try {
44719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44720
      } catch (org.apache.thrift.TException te) {
44721
        throw new java.io.IOException(te);
44722
      }
44723
    }
44724
 
44725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44726
      try {
44727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44728
      } catch (org.apache.thrift.TException te) {
44729
        throw new java.io.IOException(te);
44730
      }
44731
    }
44732
 
1982 varun.gupt 44733
  }
44734
 
3430 rajveer 44735
  public static class removeCoupon_args implements org.apache.thrift.TBase<removeCoupon_args, removeCoupon_args._Fields>, java.io.Serializable, Cloneable   {
44736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeCoupon_args");
1982 varun.gupt 44737
 
3430 rajveer 44738
    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 44739
 
3430 rajveer 44740
    private long cartId; // required
1982 varun.gupt 44741
 
44742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44744
      CART_ID((short)1, "cartId");
44745
 
44746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44747
 
44748
      static {
44749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44750
          byName.put(field.getFieldName(), field);
44751
        }
44752
      }
44753
 
44754
      /**
44755
       * Find the _Fields constant that matches fieldId, or null if its not found.
44756
       */
44757
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44758
        switch(fieldId) {
44759
          case 1: // CART_ID
44760
            return CART_ID;
44761
          default:
44762
            return null;
44763
        }
1982 varun.gupt 44764
      }
44765
 
44766
      /**
44767
       * Find the _Fields constant that matches fieldId, throwing an exception
44768
       * if it is not found.
44769
       */
44770
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44771
        _Fields fields = findByThriftId(fieldId);
44772
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44773
        return fields;
44774
      }
44775
 
44776
      /**
44777
       * Find the _Fields constant that matches name, or null if its not found.
44778
       */
44779
      public static _Fields findByName(String name) {
44780
        return byName.get(name);
44781
      }
44782
 
44783
      private final short _thriftId;
44784
      private final String _fieldName;
44785
 
44786
      _Fields(short thriftId, String fieldName) {
44787
        _thriftId = thriftId;
44788
        _fieldName = fieldName;
44789
      }
44790
 
44791
      public short getThriftFieldId() {
44792
        return _thriftId;
44793
      }
44794
 
44795
      public String getFieldName() {
44796
        return _fieldName;
44797
      }
44798
    }
44799
 
44800
    // isset id assignments
44801
    private static final int __CARTID_ISSET_ID = 0;
44802
    private BitSet __isset_bit_vector = new BitSet(1);
44803
 
3430 rajveer 44804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44805
    static {
3430 rajveer 44806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44807
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44809
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44810
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeCoupon_args.class, metaDataMap);
1982 varun.gupt 44811
    }
44812
 
44813
    public removeCoupon_args() {
44814
    }
44815
 
44816
    public removeCoupon_args(
44817
      long cartId)
44818
    {
44819
      this();
44820
      this.cartId = cartId;
44821
      setCartIdIsSet(true);
44822
    }
44823
 
44824
    /**
44825
     * Performs a deep copy on <i>other</i>.
44826
     */
44827
    public removeCoupon_args(removeCoupon_args other) {
44828
      __isset_bit_vector.clear();
44829
      __isset_bit_vector.or(other.__isset_bit_vector);
44830
      this.cartId = other.cartId;
44831
    }
44832
 
44833
    public removeCoupon_args deepCopy() {
44834
      return new removeCoupon_args(this);
44835
    }
44836
 
3430 rajveer 44837
    @Override
44838
    public void clear() {
44839
      setCartIdIsSet(false);
44840
      this.cartId = 0;
1982 varun.gupt 44841
    }
44842
 
44843
    public long getCartId() {
44844
      return this.cartId;
44845
    }
44846
 
3430 rajveer 44847
    public void setCartId(long cartId) {
1982 varun.gupt 44848
      this.cartId = cartId;
44849
      setCartIdIsSet(true);
44850
    }
44851
 
44852
    public void unsetCartId() {
44853
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
44854
    }
44855
 
3430 rajveer 44856
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44857
    public boolean isSetCartId() {
44858
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
44859
    }
44860
 
44861
    public void setCartIdIsSet(boolean value) {
44862
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
44863
    }
44864
 
44865
    public void setFieldValue(_Fields field, Object value) {
44866
      switch (field) {
44867
      case CART_ID:
44868
        if (value == null) {
44869
          unsetCartId();
44870
        } else {
44871
          setCartId((Long)value);
44872
        }
44873
        break;
44874
 
44875
      }
44876
    }
44877
 
44878
    public Object getFieldValue(_Fields field) {
44879
      switch (field) {
44880
      case CART_ID:
3430 rajveer 44881
        return Long.valueOf(getCartId());
1982 varun.gupt 44882
 
44883
      }
44884
      throw new IllegalStateException();
44885
    }
44886
 
3430 rajveer 44887
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44888
    public boolean isSet(_Fields field) {
44889
      if (field == null) {
44890
        throw new IllegalArgumentException();
44891
      }
1982 varun.gupt 44892
 
44893
      switch (field) {
44894
      case CART_ID:
44895
        return isSetCartId();
44896
      }
44897
      throw new IllegalStateException();
44898
    }
44899
 
44900
    @Override
44901
    public boolean equals(Object that) {
44902
      if (that == null)
44903
        return false;
44904
      if (that instanceof removeCoupon_args)
44905
        return this.equals((removeCoupon_args)that);
44906
      return false;
44907
    }
44908
 
44909
    public boolean equals(removeCoupon_args that) {
44910
      if (that == null)
44911
        return false;
44912
 
44913
      boolean this_present_cartId = true;
44914
      boolean that_present_cartId = true;
44915
      if (this_present_cartId || that_present_cartId) {
44916
        if (!(this_present_cartId && that_present_cartId))
44917
          return false;
44918
        if (this.cartId != that.cartId)
44919
          return false;
44920
      }
44921
 
44922
      return true;
44923
    }
44924
 
44925
    @Override
44926
    public int hashCode() {
44927
      return 0;
44928
    }
44929
 
44930
    public int compareTo(removeCoupon_args other) {
44931
      if (!getClass().equals(other.getClass())) {
44932
        return getClass().getName().compareTo(other.getClass().getName());
44933
      }
44934
 
44935
      int lastComparison = 0;
44936
      removeCoupon_args typedOther = (removeCoupon_args)other;
44937
 
3430 rajveer 44938
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
1982 varun.gupt 44939
      if (lastComparison != 0) {
44940
        return lastComparison;
44941
      }
3430 rajveer 44942
      if (isSetCartId()) {
44943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
44944
        if (lastComparison != 0) {
44945
          return lastComparison;
44946
        }
1982 varun.gupt 44947
      }
44948
      return 0;
44949
    }
44950
 
3430 rajveer 44951
    public _Fields fieldForId(int fieldId) {
44952
      return _Fields.findByThriftId(fieldId);
44953
    }
44954
 
44955
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44956
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44957
      iprot.readStructBegin();
44958
      while (true)
44959
      {
44960
        field = iprot.readFieldBegin();
3430 rajveer 44961
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44962
          break;
44963
        }
3430 rajveer 44964
        switch (field.id) {
44965
          case 1: // CART_ID
44966
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44967
              this.cartId = iprot.readI64();
44968
              setCartIdIsSet(true);
44969
            } else { 
44970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44971
            }
44972
            break;
44973
          default:
44974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44975
        }
3430 rajveer 44976
        iprot.readFieldEnd();
1982 varun.gupt 44977
      }
44978
      iprot.readStructEnd();
44979
      validate();
44980
    }
44981
 
3430 rajveer 44982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44983
      validate();
44984
 
44985
      oprot.writeStructBegin(STRUCT_DESC);
44986
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
44987
      oprot.writeI64(this.cartId);
44988
      oprot.writeFieldEnd();
44989
      oprot.writeFieldStop();
44990
      oprot.writeStructEnd();
44991
    }
44992
 
44993
    @Override
44994
    public String toString() {
44995
      StringBuilder sb = new StringBuilder("removeCoupon_args(");
44996
      boolean first = true;
44997
 
44998
      sb.append("cartId:");
44999
      sb.append(this.cartId);
45000
      first = false;
45001
      sb.append(")");
45002
      return sb.toString();
45003
    }
45004
 
3430 rajveer 45005
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 45006
      // check for required fields
45007
    }
45008
 
3430 rajveer 45009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45010
      try {
45011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45012
      } catch (org.apache.thrift.TException te) {
45013
        throw new java.io.IOException(te);
45014
      }
45015
    }
45016
 
45017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45018
      try {
45019
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45020
        __isset_bit_vector = new BitSet(1);
45021
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45022
      } catch (org.apache.thrift.TException te) {
45023
        throw new java.io.IOException(te);
45024
      }
45025
    }
45026
 
1982 varun.gupt 45027
  }
45028
 
3430 rajveer 45029
  public static class removeCoupon_result implements org.apache.thrift.TBase<removeCoupon_result, removeCoupon_result._Fields>, java.io.Serializable, Cloneable   {
45030
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeCoupon_result");
1982 varun.gupt 45031
 
3430 rajveer 45032
    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 45033
 
3430 rajveer 45034
    private ShoppingCartException scx; // required
1982 varun.gupt 45035
 
45036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45037
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 45038
      SCX((short)1, "scx");
45039
 
45040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45041
 
45042
      static {
45043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45044
          byName.put(field.getFieldName(), field);
45045
        }
45046
      }
45047
 
45048
      /**
45049
       * Find the _Fields constant that matches fieldId, or null if its not found.
45050
       */
45051
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45052
        switch(fieldId) {
45053
          case 1: // SCX
45054
            return SCX;
45055
          default:
45056
            return null;
45057
        }
1982 varun.gupt 45058
      }
45059
 
45060
      /**
45061
       * Find the _Fields constant that matches fieldId, throwing an exception
45062
       * if it is not found.
45063
       */
45064
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45065
        _Fields fields = findByThriftId(fieldId);
45066
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45067
        return fields;
45068
      }
45069
 
45070
      /**
45071
       * Find the _Fields constant that matches name, or null if its not found.
45072
       */
45073
      public static _Fields findByName(String name) {
45074
        return byName.get(name);
45075
      }
45076
 
45077
      private final short _thriftId;
45078
      private final String _fieldName;
45079
 
45080
      _Fields(short thriftId, String fieldName) {
45081
        _thriftId = thriftId;
45082
        _fieldName = fieldName;
45083
      }
45084
 
45085
      public short getThriftFieldId() {
45086
        return _thriftId;
45087
      }
45088
 
45089
      public String getFieldName() {
45090
        return _fieldName;
45091
      }
45092
    }
45093
 
45094
    // isset id assignments
45095
 
3430 rajveer 45096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 45097
    static {
3430 rajveer 45098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45099
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45100
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeCoupon_result.class, metaDataMap);
1982 varun.gupt 45103
    }
45104
 
45105
    public removeCoupon_result() {
45106
    }
45107
 
45108
    public removeCoupon_result(
45109
      ShoppingCartException scx)
45110
    {
45111
      this();
45112
      this.scx = scx;
45113
    }
45114
 
45115
    /**
45116
     * Performs a deep copy on <i>other</i>.
45117
     */
45118
    public removeCoupon_result(removeCoupon_result other) {
45119
      if (other.isSetScx()) {
45120
        this.scx = new ShoppingCartException(other.scx);
45121
      }
45122
    }
45123
 
45124
    public removeCoupon_result deepCopy() {
45125
      return new removeCoupon_result(this);
45126
    }
45127
 
3430 rajveer 45128
    @Override
45129
    public void clear() {
45130
      this.scx = null;
1982 varun.gupt 45131
    }
45132
 
45133
    public ShoppingCartException getScx() {
45134
      return this.scx;
45135
    }
45136
 
3430 rajveer 45137
    public void setScx(ShoppingCartException scx) {
1982 varun.gupt 45138
      this.scx = scx;
45139
    }
45140
 
45141
    public void unsetScx() {
45142
      this.scx = null;
45143
    }
45144
 
3430 rajveer 45145
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
1982 varun.gupt 45146
    public boolean isSetScx() {
45147
      return this.scx != null;
45148
    }
45149
 
45150
    public void setScxIsSet(boolean value) {
45151
      if (!value) {
45152
        this.scx = null;
45153
      }
45154
    }
45155
 
45156
    public void setFieldValue(_Fields field, Object value) {
45157
      switch (field) {
45158
      case SCX:
45159
        if (value == null) {
45160
          unsetScx();
45161
        } else {
45162
          setScx((ShoppingCartException)value);
45163
        }
45164
        break;
45165
 
45166
      }
45167
    }
45168
 
45169
    public Object getFieldValue(_Fields field) {
45170
      switch (field) {
45171
      case SCX:
45172
        return getScx();
45173
 
45174
      }
45175
      throw new IllegalStateException();
45176
    }
45177
 
3430 rajveer 45178
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45179
    public boolean isSet(_Fields field) {
45180
      if (field == null) {
45181
        throw new IllegalArgumentException();
45182
      }
1982 varun.gupt 45183
 
45184
      switch (field) {
45185
      case SCX:
45186
        return isSetScx();
45187
      }
45188
      throw new IllegalStateException();
45189
    }
45190
 
45191
    @Override
45192
    public boolean equals(Object that) {
45193
      if (that == null)
45194
        return false;
45195
      if (that instanceof removeCoupon_result)
45196
        return this.equals((removeCoupon_result)that);
45197
      return false;
45198
    }
45199
 
45200
    public boolean equals(removeCoupon_result that) {
45201
      if (that == null)
45202
        return false;
45203
 
45204
      boolean this_present_scx = true && this.isSetScx();
45205
      boolean that_present_scx = true && that.isSetScx();
45206
      if (this_present_scx || that_present_scx) {
45207
        if (!(this_present_scx && that_present_scx))
45208
          return false;
45209
        if (!this.scx.equals(that.scx))
45210
          return false;
45211
      }
45212
 
45213
      return true;
45214
    }
45215
 
45216
    @Override
45217
    public int hashCode() {
45218
      return 0;
45219
    }
45220
 
45221
    public int compareTo(removeCoupon_result other) {
45222
      if (!getClass().equals(other.getClass())) {
45223
        return getClass().getName().compareTo(other.getClass().getName());
45224
      }
45225
 
45226
      int lastComparison = 0;
45227
      removeCoupon_result typedOther = (removeCoupon_result)other;
45228
 
3430 rajveer 45229
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1982 varun.gupt 45230
      if (lastComparison != 0) {
45231
        return lastComparison;
45232
      }
3430 rajveer 45233
      if (isSetScx()) {
45234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
45235
        if (lastComparison != 0) {
45236
          return lastComparison;
45237
        }
1982 varun.gupt 45238
      }
45239
      return 0;
45240
    }
45241
 
3430 rajveer 45242
    public _Fields fieldForId(int fieldId) {
45243
      return _Fields.findByThriftId(fieldId);
45244
    }
45245
 
45246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45247
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 45248
      iprot.readStructBegin();
45249
      while (true)
45250
      {
45251
        field = iprot.readFieldBegin();
3430 rajveer 45252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 45253
          break;
45254
        }
3430 rajveer 45255
        switch (field.id) {
45256
          case 1: // SCX
45257
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45258
              this.scx = new ShoppingCartException();
45259
              this.scx.read(iprot);
45260
            } else { 
45261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45262
            }
45263
            break;
45264
          default:
45265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 45266
        }
3430 rajveer 45267
        iprot.readFieldEnd();
1982 varun.gupt 45268
      }
45269
      iprot.readStructEnd();
45270
      validate();
45271
    }
45272
 
3430 rajveer 45273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 45274
      oprot.writeStructBegin(STRUCT_DESC);
45275
 
45276
      if (this.isSetScx()) {
45277
        oprot.writeFieldBegin(SCX_FIELD_DESC);
45278
        this.scx.write(oprot);
45279
        oprot.writeFieldEnd();
45280
      }
45281
      oprot.writeFieldStop();
45282
      oprot.writeStructEnd();
45283
    }
45284
 
45285
    @Override
45286
    public String toString() {
45287
      StringBuilder sb = new StringBuilder("removeCoupon_result(");
45288
      boolean first = true;
45289
 
45290
      sb.append("scx:");
45291
      if (this.scx == null) {
45292
        sb.append("null");
45293
      } else {
45294
        sb.append(this.scx);
45295
      }
45296
      first = false;
45297
      sb.append(")");
45298
      return sb.toString();
45299
    }
45300
 
3430 rajveer 45301
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 45302
      // check for required fields
45303
    }
45304
 
3430 rajveer 45305
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45306
      try {
45307
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45308
      } catch (org.apache.thrift.TException te) {
45309
        throw new java.io.IOException(te);
45310
      }
45311
    }
45312
 
45313
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45314
      try {
45315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45316
      } catch (org.apache.thrift.TException te) {
45317
        throw new java.io.IOException(te);
45318
      }
45319
    }
45320
 
1982 varun.gupt 45321
  }
45322
 
3430 rajveer 45323
  public static class createOrders_args implements org.apache.thrift.TBase<createOrders_args, createOrders_args._Fields>, java.io.Serializable, Cloneable   {
45324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
553 chandransh 45325
 
3430 rajveer 45326
    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);
45327
    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);
45328
    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 45329
 
3430 rajveer 45330
    private long cartId; // required
45331
    private String sessionSource; // required
45332
    private long sessionStartTime; // required
553 chandransh 45333
 
45334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2816 vikas 45336
      CART_ID((short)1, "cartId"),
45337
      SESSION_SOURCE((short)2, "sessionSource"),
45338
      SESSION_START_TIME((short)3, "sessionStartTime");
553 chandransh 45339
 
45340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45341
 
45342
      static {
45343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45344
          byName.put(field.getFieldName(), field);
45345
        }
45346
      }
45347
 
45348
      /**
45349
       * Find the _Fields constant that matches fieldId, or null if its not found.
45350
       */
45351
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45352
        switch(fieldId) {
45353
          case 1: // CART_ID
45354
            return CART_ID;
45355
          case 2: // SESSION_SOURCE
45356
            return SESSION_SOURCE;
45357
          case 3: // SESSION_START_TIME
45358
            return SESSION_START_TIME;
45359
          default:
45360
            return null;
45361
        }
553 chandransh 45362
      }
45363
 
45364
      /**
45365
       * Find the _Fields constant that matches fieldId, throwing an exception
45366
       * if it is not found.
45367
       */
45368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45369
        _Fields fields = findByThriftId(fieldId);
45370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45371
        return fields;
45372
      }
45373
 
45374
      /**
45375
       * Find the _Fields constant that matches name, or null if its not found.
45376
       */
45377
      public static _Fields findByName(String name) {
45378
        return byName.get(name);
45379
      }
45380
 
45381
      private final short _thriftId;
45382
      private final String _fieldName;
45383
 
45384
      _Fields(short thriftId, String fieldName) {
45385
        _thriftId = thriftId;
45386
        _fieldName = fieldName;
45387
      }
45388
 
45389
      public short getThriftFieldId() {
45390
        return _thriftId;
45391
      }
45392
 
45393
      public String getFieldName() {
45394
        return _fieldName;
45395
      }
45396
    }
45397
 
45398
    // isset id assignments
45399
    private static final int __CARTID_ISSET_ID = 0;
2816 vikas 45400
    private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
45401
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 45402
 
3430 rajveer 45403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 45404
    static {
3430 rajveer 45405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45406
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45408
      tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
45410
      tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45412
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45413
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
48 ashish 45414
    }
45415
 
688 chandransh 45416
    public createOrders_args() {
48 ashish 45417
    }
45418
 
688 chandransh 45419
    public createOrders_args(
2816 vikas 45420
      long cartId,
45421
      String sessionSource,
45422
      long sessionStartTime)
48 ashish 45423
    {
45424
      this();
553 chandransh 45425
      this.cartId = cartId;
45426
      setCartIdIsSet(true);
2816 vikas 45427
      this.sessionSource = sessionSource;
45428
      this.sessionStartTime = sessionStartTime;
45429
      setSessionStartTimeIsSet(true);
48 ashish 45430
    }
45431
 
45432
    /**
45433
     * Performs a deep copy on <i>other</i>.
45434
     */
688 chandransh 45435
    public createOrders_args(createOrders_args other) {
48 ashish 45436
      __isset_bit_vector.clear();
45437
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 45438
      this.cartId = other.cartId;
2816 vikas 45439
      if (other.isSetSessionSource()) {
45440
        this.sessionSource = other.sessionSource;
45441
      }
45442
      this.sessionStartTime = other.sessionStartTime;
48 ashish 45443
    }
45444
 
688 chandransh 45445
    public createOrders_args deepCopy() {
45446
      return new createOrders_args(this);
48 ashish 45447
    }
45448
 
3430 rajveer 45449
    @Override
45450
    public void clear() {
45451
      setCartIdIsSet(false);
45452
      this.cartId = 0;
45453
      this.sessionSource = null;
45454
      setSessionStartTimeIsSet(false);
45455
      this.sessionStartTime = 0;
48 ashish 45456
    }
45457
 
553 chandransh 45458
    public long getCartId() {
45459
      return this.cartId;
48 ashish 45460
    }
45461
 
3430 rajveer 45462
    public void setCartId(long cartId) {
553 chandransh 45463
      this.cartId = cartId;
45464
      setCartIdIsSet(true);
48 ashish 45465
    }
45466
 
553 chandransh 45467
    public void unsetCartId() {
45468
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 45469
    }
45470
 
3430 rajveer 45471
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 45472
    public boolean isSetCartId() {
45473
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 45474
    }
45475
 
553 chandransh 45476
    public void setCartIdIsSet(boolean value) {
45477
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 45478
    }
45479
 
2816 vikas 45480
    public String getSessionSource() {
45481
      return this.sessionSource;
45482
    }
45483
 
3430 rajveer 45484
    public void setSessionSource(String sessionSource) {
2816 vikas 45485
      this.sessionSource = sessionSource;
45486
    }
45487
 
45488
    public void unsetSessionSource() {
45489
      this.sessionSource = null;
45490
    }
45491
 
3430 rajveer 45492
    /** Returns true if field sessionSource is set (has been assigned a value) and false otherwise */
2816 vikas 45493
    public boolean isSetSessionSource() {
45494
      return this.sessionSource != null;
45495
    }
45496
 
45497
    public void setSessionSourceIsSet(boolean value) {
45498
      if (!value) {
45499
        this.sessionSource = null;
45500
      }
45501
    }
45502
 
45503
    public long getSessionStartTime() {
45504
      return this.sessionStartTime;
45505
    }
45506
 
3430 rajveer 45507
    public void setSessionStartTime(long sessionStartTime) {
2816 vikas 45508
      this.sessionStartTime = sessionStartTime;
45509
      setSessionStartTimeIsSet(true);
45510
    }
45511
 
45512
    public void unsetSessionStartTime() {
45513
      __isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
45514
    }
45515
 
3430 rajveer 45516
    /** Returns true if field sessionStartTime is set (has been assigned a value) and false otherwise */
2816 vikas 45517
    public boolean isSetSessionStartTime() {
45518
      return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
45519
    }
45520
 
45521
    public void setSessionStartTimeIsSet(boolean value) {
45522
      __isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
45523
    }
45524
 
48 ashish 45525
    public void setFieldValue(_Fields field, Object value) {
45526
      switch (field) {
553 chandransh 45527
      case CART_ID:
48 ashish 45528
        if (value == null) {
553 chandransh 45529
          unsetCartId();
48 ashish 45530
        } else {
553 chandransh 45531
          setCartId((Long)value);
48 ashish 45532
        }
45533
        break;
45534
 
2816 vikas 45535
      case SESSION_SOURCE:
45536
        if (value == null) {
45537
          unsetSessionSource();
45538
        } else {
45539
          setSessionSource((String)value);
45540
        }
45541
        break;
45542
 
45543
      case SESSION_START_TIME:
45544
        if (value == null) {
45545
          unsetSessionStartTime();
45546
        } else {
45547
          setSessionStartTime((Long)value);
45548
        }
45549
        break;
45550
 
48 ashish 45551
      }
45552
    }
45553
 
45554
    public Object getFieldValue(_Fields field) {
45555
      switch (field) {
553 chandransh 45556
      case CART_ID:
3430 rajveer 45557
        return Long.valueOf(getCartId());
48 ashish 45558
 
2816 vikas 45559
      case SESSION_SOURCE:
45560
        return getSessionSource();
45561
 
45562
      case SESSION_START_TIME:
3430 rajveer 45563
        return Long.valueOf(getSessionStartTime());
2816 vikas 45564
 
48 ashish 45565
      }
45566
      throw new IllegalStateException();
45567
    }
45568
 
3430 rajveer 45569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45570
    public boolean isSet(_Fields field) {
45571
      if (field == null) {
45572
        throw new IllegalArgumentException();
45573
      }
48 ashish 45574
 
45575
      switch (field) {
553 chandransh 45576
      case CART_ID:
45577
        return isSetCartId();
2816 vikas 45578
      case SESSION_SOURCE:
45579
        return isSetSessionSource();
45580
      case SESSION_START_TIME:
45581
        return isSetSessionStartTime();
48 ashish 45582
      }
45583
      throw new IllegalStateException();
45584
    }
45585
 
45586
    @Override
45587
    public boolean equals(Object that) {
45588
      if (that == null)
45589
        return false;
688 chandransh 45590
      if (that instanceof createOrders_args)
45591
        return this.equals((createOrders_args)that);
48 ashish 45592
      return false;
45593
    }
45594
 
688 chandransh 45595
    public boolean equals(createOrders_args that) {
48 ashish 45596
      if (that == null)
45597
        return false;
45598
 
553 chandransh 45599
      boolean this_present_cartId = true;
45600
      boolean that_present_cartId = true;
45601
      if (this_present_cartId || that_present_cartId) {
45602
        if (!(this_present_cartId && that_present_cartId))
48 ashish 45603
          return false;
553 chandransh 45604
        if (this.cartId != that.cartId)
48 ashish 45605
          return false;
45606
      }
45607
 
2816 vikas 45608
      boolean this_present_sessionSource = true && this.isSetSessionSource();
45609
      boolean that_present_sessionSource = true && that.isSetSessionSource();
45610
      if (this_present_sessionSource || that_present_sessionSource) {
45611
        if (!(this_present_sessionSource && that_present_sessionSource))
45612
          return false;
45613
        if (!this.sessionSource.equals(that.sessionSource))
45614
          return false;
45615
      }
45616
 
45617
      boolean this_present_sessionStartTime = true;
45618
      boolean that_present_sessionStartTime = true;
45619
      if (this_present_sessionStartTime || that_present_sessionStartTime) {
45620
        if (!(this_present_sessionStartTime && that_present_sessionStartTime))
45621
          return false;
45622
        if (this.sessionStartTime != that.sessionStartTime)
45623
          return false;
45624
      }
45625
 
48 ashish 45626
      return true;
45627
    }
45628
 
45629
    @Override
45630
    public int hashCode() {
45631
      return 0;
45632
    }
45633
 
688 chandransh 45634
    public int compareTo(createOrders_args other) {
48 ashish 45635
      if (!getClass().equals(other.getClass())) {
45636
        return getClass().getName().compareTo(other.getClass().getName());
45637
      }
45638
 
45639
      int lastComparison = 0;
688 chandransh 45640
      createOrders_args typedOther = (createOrders_args)other;
48 ashish 45641
 
3430 rajveer 45642
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 45643
      if (lastComparison != 0) {
45644
        return lastComparison;
45645
      }
3430 rajveer 45646
      if (isSetCartId()) {
45647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
45648
        if (lastComparison != 0) {
45649
          return lastComparison;
45650
        }
48 ashish 45651
      }
3430 rajveer 45652
      lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(typedOther.isSetSessionSource());
2816 vikas 45653
      if (lastComparison != 0) {
45654
        return lastComparison;
45655
      }
3430 rajveer 45656
      if (isSetSessionSource()) {
45657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionSource, typedOther.sessionSource);
45658
        if (lastComparison != 0) {
45659
          return lastComparison;
45660
        }
2816 vikas 45661
      }
3430 rajveer 45662
      lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(typedOther.isSetSessionStartTime());
2816 vikas 45663
      if (lastComparison != 0) {
45664
        return lastComparison;
45665
      }
3430 rajveer 45666
      if (isSetSessionStartTime()) {
45667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
45668
        if (lastComparison != 0) {
45669
          return lastComparison;
45670
        }
2816 vikas 45671
      }
48 ashish 45672
      return 0;
45673
    }
45674
 
3430 rajveer 45675
    public _Fields fieldForId(int fieldId) {
45676
      return _Fields.findByThriftId(fieldId);
45677
    }
45678
 
45679
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45680
      org.apache.thrift.protocol.TField field;
48 ashish 45681
      iprot.readStructBegin();
45682
      while (true)
45683
      {
45684
        field = iprot.readFieldBegin();
3430 rajveer 45685
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 45686
          break;
45687
        }
3430 rajveer 45688
        switch (field.id) {
45689
          case 1: // CART_ID
45690
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45691
              this.cartId = iprot.readI64();
45692
              setCartIdIsSet(true);
45693
            } else { 
45694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45695
            }
45696
            break;
45697
          case 2: // SESSION_SOURCE
45698
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
45699
              this.sessionSource = iprot.readString();
45700
            } else { 
45701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45702
            }
45703
            break;
45704
          case 3: // SESSION_START_TIME
45705
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45706
              this.sessionStartTime = iprot.readI64();
45707
              setSessionStartTimeIsSet(true);
45708
            } else { 
45709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45710
            }
45711
            break;
45712
          default:
45713
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 45714
        }
3430 rajveer 45715
        iprot.readFieldEnd();
48 ashish 45716
      }
45717
      iprot.readStructEnd();
45718
      validate();
45719
    }
45720
 
3430 rajveer 45721
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 45722
      validate();
45723
 
45724
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 45725
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
45726
      oprot.writeI64(this.cartId);
48 ashish 45727
      oprot.writeFieldEnd();
2816 vikas 45728
      if (this.sessionSource != null) {
45729
        oprot.writeFieldBegin(SESSION_SOURCE_FIELD_DESC);
45730
        oprot.writeString(this.sessionSource);
45731
        oprot.writeFieldEnd();
45732
      }
45733
      oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
45734
      oprot.writeI64(this.sessionStartTime);
45735
      oprot.writeFieldEnd();
48 ashish 45736
      oprot.writeFieldStop();
45737
      oprot.writeStructEnd();
45738
    }
45739
 
45740
    @Override
45741
    public String toString() {
688 chandransh 45742
      StringBuilder sb = new StringBuilder("createOrders_args(");
48 ashish 45743
      boolean first = true;
45744
 
553 chandransh 45745
      sb.append("cartId:");
45746
      sb.append(this.cartId);
48 ashish 45747
      first = false;
2816 vikas 45748
      if (!first) sb.append(", ");
45749
      sb.append("sessionSource:");
45750
      if (this.sessionSource == null) {
45751
        sb.append("null");
45752
      } else {
45753
        sb.append(this.sessionSource);
45754
      }
45755
      first = false;
45756
      if (!first) sb.append(", ");
45757
      sb.append("sessionStartTime:");
45758
      sb.append(this.sessionStartTime);
45759
      first = false;
48 ashish 45760
      sb.append(")");
45761
      return sb.toString();
45762
    }
45763
 
3430 rajveer 45764
    public void validate() throws org.apache.thrift.TException {
48 ashish 45765
      // check for required fields
45766
    }
45767
 
3430 rajveer 45768
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45769
      try {
45770
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45771
      } catch (org.apache.thrift.TException te) {
45772
        throw new java.io.IOException(te);
45773
      }
45774
    }
45775
 
45776
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45777
      try {
45778
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45779
        __isset_bit_vector = new BitSet(1);
45780
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45781
      } catch (org.apache.thrift.TException te) {
45782
        throw new java.io.IOException(te);
45783
      }
45784
    }
45785
 
48 ashish 45786
  }
45787
 
3430 rajveer 45788
  public static class createOrders_result implements org.apache.thrift.TBase<createOrders_result, createOrders_result._Fields>, java.io.Serializable, Cloneable   {
45789
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_result");
48 ashish 45790
 
3430 rajveer 45791
    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);
45792
    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 45793
 
3430 rajveer 45794
    private long success; // required
45795
    private ShoppingCartException scx; // required
48 ashish 45796
 
45797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 45799
      SUCCESS((short)0, "success"),
553 chandransh 45800
      SCX((short)1, "scx");
48 ashish 45801
 
45802
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45803
 
45804
      static {
45805
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45806
          byName.put(field.getFieldName(), field);
45807
        }
45808
      }
45809
 
45810
      /**
45811
       * Find the _Fields constant that matches fieldId, or null if its not found.
45812
       */
45813
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45814
        switch(fieldId) {
45815
          case 0: // SUCCESS
45816
            return SUCCESS;
45817
          case 1: // SCX
45818
            return SCX;
45819
          default:
45820
            return null;
45821
        }
48 ashish 45822
      }
45823
 
45824
      /**
45825
       * Find the _Fields constant that matches fieldId, throwing an exception
45826
       * if it is not found.
45827
       */
45828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45829
        _Fields fields = findByThriftId(fieldId);
45830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45831
        return fields;
45832
      }
45833
 
45834
      /**
45835
       * Find the _Fields constant that matches name, or null if its not found.
45836
       */
45837
      public static _Fields findByName(String name) {
45838
        return byName.get(name);
45839
      }
45840
 
45841
      private final short _thriftId;
45842
      private final String _fieldName;
45843
 
45844
      _Fields(short thriftId, String fieldName) {
45845
        _thriftId = thriftId;
45846
        _fieldName = fieldName;
45847
      }
45848
 
45849
      public short getThriftFieldId() {
45850
        return _thriftId;
45851
      }
45852
 
45853
      public String getFieldName() {
45854
        return _fieldName;
45855
      }
45856
    }
45857
 
45858
    // isset id assignments
45859
    private static final int __SUCCESS_ISSET_ID = 0;
45860
    private BitSet __isset_bit_vector = new BitSet(1);
45861
 
3430 rajveer 45862
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 45863
    static {
3430 rajveer 45864
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45865
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45866
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45867
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_result.class, metaDataMap);
48 ashish 45871
    }
45872
 
688 chandransh 45873
    public createOrders_result() {
48 ashish 45874
    }
45875
 
688 chandransh 45876
    public createOrders_result(
578 chandransh 45877
      long success,
553 chandransh 45878
      ShoppingCartException scx)
48 ashish 45879
    {
45880
      this();
45881
      this.success = success;
45882
      setSuccessIsSet(true);
553 chandransh 45883
      this.scx = scx;
48 ashish 45884
    }
45885
 
45886
    /**
45887
     * Performs a deep copy on <i>other</i>.
45888
     */
688 chandransh 45889
    public createOrders_result(createOrders_result other) {
48 ashish 45890
      __isset_bit_vector.clear();
45891
      __isset_bit_vector.or(other.__isset_bit_vector);
45892
      this.success = other.success;
553 chandransh 45893
      if (other.isSetScx()) {
45894
        this.scx = new ShoppingCartException(other.scx);
48 ashish 45895
      }
45896
    }
45897
 
688 chandransh 45898
    public createOrders_result deepCopy() {
45899
      return new createOrders_result(this);
48 ashish 45900
    }
45901
 
3430 rajveer 45902
    @Override
45903
    public void clear() {
45904
      setSuccessIsSet(false);
45905
      this.success = 0;
45906
      this.scx = null;
48 ashish 45907
    }
45908
 
578 chandransh 45909
    public long getSuccess() {
48 ashish 45910
      return this.success;
45911
    }
45912
 
3430 rajveer 45913
    public void setSuccess(long success) {
48 ashish 45914
      this.success = success;
45915
      setSuccessIsSet(true);
45916
    }
45917
 
45918
    public void unsetSuccess() {
45919
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
45920
    }
45921
 
3430 rajveer 45922
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 45923
    public boolean isSetSuccess() {
45924
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
45925
    }
45926
 
45927
    public void setSuccessIsSet(boolean value) {
45928
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
45929
    }
45930
 
553 chandransh 45931
    public ShoppingCartException getScx() {
45932
      return this.scx;
48 ashish 45933
    }
45934
 
3430 rajveer 45935
    public void setScx(ShoppingCartException scx) {
553 chandransh 45936
      this.scx = scx;
48 ashish 45937
    }
45938
 
553 chandransh 45939
    public void unsetScx() {
45940
      this.scx = null;
48 ashish 45941
    }
45942
 
3430 rajveer 45943
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 45944
    public boolean isSetScx() {
45945
      return this.scx != null;
48 ashish 45946
    }
45947
 
553 chandransh 45948
    public void setScxIsSet(boolean value) {
48 ashish 45949
      if (!value) {
553 chandransh 45950
        this.scx = null;
48 ashish 45951
      }
45952
    }
45953
 
45954
    public void setFieldValue(_Fields field, Object value) {
45955
      switch (field) {
45956
      case SUCCESS:
45957
        if (value == null) {
45958
          unsetSuccess();
45959
        } else {
578 chandransh 45960
          setSuccess((Long)value);
48 ashish 45961
        }
45962
        break;
45963
 
553 chandransh 45964
      case SCX:
48 ashish 45965
        if (value == null) {
553 chandransh 45966
          unsetScx();
48 ashish 45967
        } else {
553 chandransh 45968
          setScx((ShoppingCartException)value);
48 ashish 45969
        }
45970
        break;
45971
 
45972
      }
45973
    }
45974
 
45975
    public Object getFieldValue(_Fields field) {
45976
      switch (field) {
45977
      case SUCCESS:
3430 rajveer 45978
        return Long.valueOf(getSuccess());
48 ashish 45979
 
553 chandransh 45980
      case SCX:
45981
        return getScx();
48 ashish 45982
 
45983
      }
45984
      throw new IllegalStateException();
45985
    }
45986
 
3430 rajveer 45987
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45988
    public boolean isSet(_Fields field) {
45989
      if (field == null) {
45990
        throw new IllegalArgumentException();
45991
      }
48 ashish 45992
 
45993
      switch (field) {
45994
      case SUCCESS:
45995
        return isSetSuccess();
553 chandransh 45996
      case SCX:
45997
        return isSetScx();
48 ashish 45998
      }
45999
      throw new IllegalStateException();
46000
    }
46001
 
46002
    @Override
46003
    public boolean equals(Object that) {
46004
      if (that == null)
46005
        return false;
688 chandransh 46006
      if (that instanceof createOrders_result)
46007
        return this.equals((createOrders_result)that);
48 ashish 46008
      return false;
46009
    }
46010
 
688 chandransh 46011
    public boolean equals(createOrders_result that) {
48 ashish 46012
      if (that == null)
46013
        return false;
46014
 
46015
      boolean this_present_success = true;
46016
      boolean that_present_success = true;
46017
      if (this_present_success || that_present_success) {
46018
        if (!(this_present_success && that_present_success))
46019
          return false;
46020
        if (this.success != that.success)
46021
          return false;
46022
      }
46023
 
553 chandransh 46024
      boolean this_present_scx = true && this.isSetScx();
46025
      boolean that_present_scx = true && that.isSetScx();
46026
      if (this_present_scx || that_present_scx) {
46027
        if (!(this_present_scx && that_present_scx))
48 ashish 46028
          return false;
553 chandransh 46029
        if (!this.scx.equals(that.scx))
48 ashish 46030
          return false;
46031
      }
46032
 
46033
      return true;
46034
    }
46035
 
46036
    @Override
46037
    public int hashCode() {
46038
      return 0;
46039
    }
46040
 
688 chandransh 46041
    public int compareTo(createOrders_result other) {
48 ashish 46042
      if (!getClass().equals(other.getClass())) {
46043
        return getClass().getName().compareTo(other.getClass().getName());
46044
      }
46045
 
46046
      int lastComparison = 0;
688 chandransh 46047
      createOrders_result typedOther = (createOrders_result)other;
48 ashish 46048
 
3430 rajveer 46049
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 46050
      if (lastComparison != 0) {
46051
        return lastComparison;
46052
      }
3430 rajveer 46053
      if (isSetSuccess()) {
46054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46055
        if (lastComparison != 0) {
46056
          return lastComparison;
46057
        }
48 ashish 46058
      }
3430 rajveer 46059
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 46060
      if (lastComparison != 0) {
46061
        return lastComparison;
46062
      }
3430 rajveer 46063
      if (isSetScx()) {
46064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
46065
        if (lastComparison != 0) {
46066
          return lastComparison;
46067
        }
48 ashish 46068
      }
46069
      return 0;
46070
    }
46071
 
3430 rajveer 46072
    public _Fields fieldForId(int fieldId) {
46073
      return _Fields.findByThriftId(fieldId);
46074
    }
46075
 
46076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46077
      org.apache.thrift.protocol.TField field;
48 ashish 46078
      iprot.readStructBegin();
46079
      while (true)
46080
      {
46081
        field = iprot.readFieldBegin();
3430 rajveer 46082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 46083
          break;
46084
        }
3430 rajveer 46085
        switch (field.id) {
46086
          case 0: // SUCCESS
46087
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46088
              this.success = iprot.readI64();
46089
              setSuccessIsSet(true);
46090
            } else { 
46091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46092
            }
46093
            break;
46094
          case 1: // SCX
46095
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46096
              this.scx = new ShoppingCartException();
46097
              this.scx.read(iprot);
46098
            } else { 
46099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46100
            }
46101
            break;
46102
          default:
46103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 46104
        }
3430 rajveer 46105
        iprot.readFieldEnd();
48 ashish 46106
      }
46107
      iprot.readStructEnd();
46108
      validate();
46109
    }
46110
 
3430 rajveer 46111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 46112
      oprot.writeStructBegin(STRUCT_DESC);
46113
 
46114
      if (this.isSetSuccess()) {
46115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
578 chandransh 46116
        oprot.writeI64(this.success);
48 ashish 46117
        oprot.writeFieldEnd();
553 chandransh 46118
      } else if (this.isSetScx()) {
46119
        oprot.writeFieldBegin(SCX_FIELD_DESC);
46120
        this.scx.write(oprot);
48 ashish 46121
        oprot.writeFieldEnd();
46122
      }
46123
      oprot.writeFieldStop();
46124
      oprot.writeStructEnd();
46125
    }
46126
 
46127
    @Override
46128
    public String toString() {
688 chandransh 46129
      StringBuilder sb = new StringBuilder("createOrders_result(");
48 ashish 46130
      boolean first = true;
46131
 
46132
      sb.append("success:");
46133
      sb.append(this.success);
46134
      first = false;
46135
      if (!first) sb.append(", ");
553 chandransh 46136
      sb.append("scx:");
46137
      if (this.scx == null) {
48 ashish 46138
        sb.append("null");
46139
      } else {
553 chandransh 46140
        sb.append(this.scx);
48 ashish 46141
      }
46142
      first = false;
46143
      sb.append(")");
46144
      return sb.toString();
46145
    }
46146
 
3430 rajveer 46147
    public void validate() throws org.apache.thrift.TException {
48 ashish 46148
      // check for required fields
46149
    }
46150
 
3430 rajveer 46151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46152
      try {
46153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46154
      } catch (org.apache.thrift.TException te) {
46155
        throw new java.io.IOException(te);
46156
      }
46157
    }
46158
 
46159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46160
      try {
46161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46162
      } catch (org.apache.thrift.TException te) {
46163
        throw new java.io.IOException(te);
46164
      }
46165
    }
46166
 
48 ashish 46167
  }
46168
 
3430 rajveer 46169
  public static class validateCart_args implements org.apache.thrift.TBase<validateCart_args, validateCart_args._Fields>, java.io.Serializable, Cloneable   {
46170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCart_args");
48 ashish 46171
 
3430 rajveer 46172
    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 46173
 
3430 rajveer 46174
    private long cartId; // required
48 ashish 46175
 
46176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 46178
      CART_ID((short)1, "cartId");
48 ashish 46179
 
46180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46181
 
46182
      static {
46183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46184
          byName.put(field.getFieldName(), field);
46185
        }
46186
      }
46187
 
46188
      /**
46189
       * Find the _Fields constant that matches fieldId, or null if its not found.
46190
       */
46191
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46192
        switch(fieldId) {
46193
          case 1: // CART_ID
46194
            return CART_ID;
46195
          default:
46196
            return null;
46197
        }
48 ashish 46198
      }
46199
 
46200
      /**
46201
       * Find the _Fields constant that matches fieldId, throwing an exception
46202
       * if it is not found.
46203
       */
46204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46205
        _Fields fields = findByThriftId(fieldId);
46206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46207
        return fields;
46208
      }
46209
 
46210
      /**
46211
       * Find the _Fields constant that matches name, or null if its not found.
46212
       */
46213
      public static _Fields findByName(String name) {
46214
        return byName.get(name);
46215
      }
46216
 
46217
      private final short _thriftId;
46218
      private final String _fieldName;
46219
 
46220
      _Fields(short thriftId, String fieldName) {
46221
        _thriftId = thriftId;
46222
        _fieldName = fieldName;
46223
      }
46224
 
46225
      public short getThriftFieldId() {
46226
        return _thriftId;
46227
      }
46228
 
46229
      public String getFieldName() {
46230
        return _fieldName;
46231
      }
46232
    }
46233
 
46234
    // isset id assignments
553 chandransh 46235
    private static final int __CARTID_ISSET_ID = 0;
48 ashish 46236
    private BitSet __isset_bit_vector = new BitSet(1);
46237
 
3430 rajveer 46238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 46239
    static {
3430 rajveer 46240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46241
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCart_args.class, metaDataMap);
48 ashish 46245
    }
46246
 
553 chandransh 46247
    public validateCart_args() {
48 ashish 46248
    }
46249
 
553 chandransh 46250
    public validateCart_args(
46251
      long cartId)
48 ashish 46252
    {
46253
      this();
553 chandransh 46254
      this.cartId = cartId;
46255
      setCartIdIsSet(true);
48 ashish 46256
    }
46257
 
46258
    /**
46259
     * Performs a deep copy on <i>other</i>.
46260
     */
553 chandransh 46261
    public validateCart_args(validateCart_args other) {
48 ashish 46262
      __isset_bit_vector.clear();
46263
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 46264
      this.cartId = other.cartId;
48 ashish 46265
    }
46266
 
553 chandransh 46267
    public validateCart_args deepCopy() {
46268
      return new validateCart_args(this);
48 ashish 46269
    }
46270
 
3430 rajveer 46271
    @Override
46272
    public void clear() {
46273
      setCartIdIsSet(false);
46274
      this.cartId = 0;
48 ashish 46275
    }
46276
 
553 chandransh 46277
    public long getCartId() {
46278
      return this.cartId;
48 ashish 46279
    }
46280
 
3430 rajveer 46281
    public void setCartId(long cartId) {
553 chandransh 46282
      this.cartId = cartId;
46283
      setCartIdIsSet(true);
48 ashish 46284
    }
46285
 
553 chandransh 46286
    public void unsetCartId() {
46287
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 46288
    }
46289
 
3430 rajveer 46290
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 46291
    public boolean isSetCartId() {
46292
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 46293
    }
46294
 
553 chandransh 46295
    public void setCartIdIsSet(boolean value) {
46296
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 46297
    }
46298
 
46299
    public void setFieldValue(_Fields field, Object value) {
46300
      switch (field) {
553 chandransh 46301
      case CART_ID:
48 ashish 46302
        if (value == null) {
553 chandransh 46303
          unsetCartId();
48 ashish 46304
        } else {
553 chandransh 46305
          setCartId((Long)value);
48 ashish 46306
        }
46307
        break;
46308
 
46309
      }
46310
    }
46311
 
46312
    public Object getFieldValue(_Fields field) {
46313
      switch (field) {
553 chandransh 46314
      case CART_ID:
3430 rajveer 46315
        return Long.valueOf(getCartId());
48 ashish 46316
 
46317
      }
46318
      throw new IllegalStateException();
46319
    }
46320
 
3430 rajveer 46321
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46322
    public boolean isSet(_Fields field) {
46323
      if (field == null) {
46324
        throw new IllegalArgumentException();
46325
      }
48 ashish 46326
 
46327
      switch (field) {
553 chandransh 46328
      case CART_ID:
46329
        return isSetCartId();
48 ashish 46330
      }
46331
      throw new IllegalStateException();
46332
    }
46333
 
46334
    @Override
46335
    public boolean equals(Object that) {
46336
      if (that == null)
46337
        return false;
553 chandransh 46338
      if (that instanceof validateCart_args)
46339
        return this.equals((validateCart_args)that);
48 ashish 46340
      return false;
46341
    }
46342
 
553 chandransh 46343
    public boolean equals(validateCart_args that) {
48 ashish 46344
      if (that == null)
46345
        return false;
46346
 
553 chandransh 46347
      boolean this_present_cartId = true;
46348
      boolean that_present_cartId = true;
46349
      if (this_present_cartId || that_present_cartId) {
46350
        if (!(this_present_cartId && that_present_cartId))
48 ashish 46351
          return false;
553 chandransh 46352
        if (this.cartId != that.cartId)
48 ashish 46353
          return false;
46354
      }
46355
 
46356
      return true;
46357
    }
46358
 
46359
    @Override
46360
    public int hashCode() {
46361
      return 0;
46362
    }
46363
 
553 chandransh 46364
    public int compareTo(validateCart_args other) {
48 ashish 46365
      if (!getClass().equals(other.getClass())) {
46366
        return getClass().getName().compareTo(other.getClass().getName());
46367
      }
46368
 
46369
      int lastComparison = 0;
553 chandransh 46370
      validateCart_args typedOther = (validateCart_args)other;
48 ashish 46371
 
3430 rajveer 46372
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 46373
      if (lastComparison != 0) {
46374
        return lastComparison;
46375
      }
3430 rajveer 46376
      if (isSetCartId()) {
46377
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
46378
        if (lastComparison != 0) {
46379
          return lastComparison;
46380
        }
48 ashish 46381
      }
46382
      return 0;
46383
    }
46384
 
3430 rajveer 46385
    public _Fields fieldForId(int fieldId) {
46386
      return _Fields.findByThriftId(fieldId);
46387
    }
46388
 
46389
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46390
      org.apache.thrift.protocol.TField field;
48 ashish 46391
      iprot.readStructBegin();
46392
      while (true)
46393
      {
46394
        field = iprot.readFieldBegin();
3430 rajveer 46395
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 46396
          break;
46397
        }
3430 rajveer 46398
        switch (field.id) {
46399
          case 1: // CART_ID
46400
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46401
              this.cartId = iprot.readI64();
46402
              setCartIdIsSet(true);
46403
            } else { 
46404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46405
            }
46406
            break;
46407
          default:
46408
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 46409
        }
3430 rajveer 46410
        iprot.readFieldEnd();
48 ashish 46411
      }
46412
      iprot.readStructEnd();
46413
      validate();
46414
    }
46415
 
3430 rajveer 46416
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 46417
      validate();
46418
 
46419
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 46420
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
46421
      oprot.writeI64(this.cartId);
48 ashish 46422
      oprot.writeFieldEnd();
46423
      oprot.writeFieldStop();
46424
      oprot.writeStructEnd();
46425
    }
46426
 
46427
    @Override
46428
    public String toString() {
553 chandransh 46429
      StringBuilder sb = new StringBuilder("validateCart_args(");
48 ashish 46430
      boolean first = true;
46431
 
553 chandransh 46432
      sb.append("cartId:");
46433
      sb.append(this.cartId);
48 ashish 46434
      first = false;
46435
      sb.append(")");
46436
      return sb.toString();
46437
    }
46438
 
3430 rajveer 46439
    public void validate() throws org.apache.thrift.TException {
48 ashish 46440
      // check for required fields
46441
    }
46442
 
3430 rajveer 46443
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46444
      try {
46445
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46446
      } catch (org.apache.thrift.TException te) {
46447
        throw new java.io.IOException(te);
46448
      }
46449
    }
46450
 
46451
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46452
      try {
46453
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46454
      } catch (org.apache.thrift.TException te) {
46455
        throw new java.io.IOException(te);
46456
      }
46457
    }
46458
 
48 ashish 46459
  }
46460
 
3430 rajveer 46461
  public static class validateCart_result implements org.apache.thrift.TBase<validateCart_result, validateCart_result._Fields>, java.io.Serializable, Cloneable   {
46462
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCart_result");
48 ashish 46463
 
3430 rajveer 46464
    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);
46465
    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 46466
 
3430 rajveer 46467
    private String success; // required
46468
    private ShoppingCartException scex; // required
48 ashish 46469
 
46470
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46471
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 46472
      SUCCESS((short)0, "success"),
46473
      SCEX((short)1, "scex");
48 ashish 46474
 
46475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46476
 
46477
      static {
46478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46479
          byName.put(field.getFieldName(), field);
46480
        }
46481
      }
46482
 
46483
      /**
46484
       * Find the _Fields constant that matches fieldId, or null if its not found.
46485
       */
46486
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46487
        switch(fieldId) {
46488
          case 0: // SUCCESS
46489
            return SUCCESS;
46490
          case 1: // SCEX
46491
            return SCEX;
46492
          default:
46493
            return null;
46494
        }
48 ashish 46495
      }
46496
 
46497
      /**
46498
       * Find the _Fields constant that matches fieldId, throwing an exception
46499
       * if it is not found.
46500
       */
46501
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46502
        _Fields fields = findByThriftId(fieldId);
46503
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46504
        return fields;
46505
      }
46506
 
46507
      /**
46508
       * Find the _Fields constant that matches name, or null if its not found.
46509
       */
46510
      public static _Fields findByName(String name) {
46511
        return byName.get(name);
46512
      }
46513
 
46514
      private final short _thriftId;
46515
      private final String _fieldName;
46516
 
46517
      _Fields(short thriftId, String fieldName) {
46518
        _thriftId = thriftId;
46519
        _fieldName = fieldName;
46520
      }
46521
 
46522
      public short getThriftFieldId() {
46523
        return _thriftId;
46524
      }
46525
 
46526
      public String getFieldName() {
46527
        return _fieldName;
46528
      }
46529
    }
46530
 
46531
    // isset id assignments
46532
 
3430 rajveer 46533
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 46534
    static {
3430 rajveer 46535
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46536
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
46538
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46539
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46540
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46541
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCart_result.class, metaDataMap);
48 ashish 46542
    }
46543
 
553 chandransh 46544
    public validateCart_result() {
48 ashish 46545
    }
46546
 
553 chandransh 46547
    public validateCart_result(
1466 ankur.sing 46548
      String success,
578 chandransh 46549
      ShoppingCartException scex)
48 ashish 46550
    {
46551
      this();
46552
      this.success = success;
578 chandransh 46553
      this.scex = scex;
48 ashish 46554
    }
46555
 
46556
    /**
46557
     * Performs a deep copy on <i>other</i>.
46558
     */
553 chandransh 46559
    public validateCart_result(validateCart_result other) {
1466 ankur.sing 46560
      if (other.isSetSuccess()) {
46561
        this.success = other.success;
46562
      }
578 chandransh 46563
      if (other.isSetScex()) {
46564
        this.scex = new ShoppingCartException(other.scex);
46565
      }
48 ashish 46566
    }
46567
 
553 chandransh 46568
    public validateCart_result deepCopy() {
46569
      return new validateCart_result(this);
48 ashish 46570
    }
46571
 
3430 rajveer 46572
    @Override
46573
    public void clear() {
46574
      this.success = null;
46575
      this.scex = null;
48 ashish 46576
    }
46577
 
1466 ankur.sing 46578
    public String getSuccess() {
48 ashish 46579
      return this.success;
46580
    }
46581
 
3430 rajveer 46582
    public void setSuccess(String success) {
48 ashish 46583
      this.success = success;
46584
    }
46585
 
46586
    public void unsetSuccess() {
1466 ankur.sing 46587
      this.success = null;
48 ashish 46588
    }
46589
 
3430 rajveer 46590
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 46591
    public boolean isSetSuccess() {
1466 ankur.sing 46592
      return this.success != null;
48 ashish 46593
    }
46594
 
46595
    public void setSuccessIsSet(boolean value) {
1466 ankur.sing 46596
      if (!value) {
46597
        this.success = null;
46598
      }
48 ashish 46599
    }
46600
 
578 chandransh 46601
    public ShoppingCartException getScex() {
46602
      return this.scex;
46603
    }
46604
 
3430 rajveer 46605
    public void setScex(ShoppingCartException scex) {
578 chandransh 46606
      this.scex = scex;
46607
    }
46608
 
46609
    public void unsetScex() {
46610
      this.scex = null;
46611
    }
46612
 
3430 rajveer 46613
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
578 chandransh 46614
    public boolean isSetScex() {
46615
      return this.scex != null;
46616
    }
46617
 
46618
    public void setScexIsSet(boolean value) {
46619
      if (!value) {
46620
        this.scex = null;
46621
      }
46622
    }
46623
 
553 chandransh 46624
    public void setFieldValue(_Fields field, Object value) {
46625
      switch (field) {
46626
      case SUCCESS:
46627
        if (value == null) {
46628
          unsetSuccess();
46629
        } else {
1466 ankur.sing 46630
          setSuccess((String)value);
553 chandransh 46631
        }
46632
        break;
46633
 
578 chandransh 46634
      case SCEX:
46635
        if (value == null) {
46636
          unsetScex();
46637
        } else {
46638
          setScex((ShoppingCartException)value);
46639
        }
46640
        break;
46641
 
553 chandransh 46642
      }
48 ashish 46643
    }
46644
 
553 chandransh 46645
    public Object getFieldValue(_Fields field) {
46646
      switch (field) {
46647
      case SUCCESS:
1466 ankur.sing 46648
        return getSuccess();
553 chandransh 46649
 
578 chandransh 46650
      case SCEX:
46651
        return getScex();
46652
 
553 chandransh 46653
      }
46654
      throw new IllegalStateException();
46655
    }
46656
 
3430 rajveer 46657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46658
    public boolean isSet(_Fields field) {
46659
      if (field == null) {
46660
        throw new IllegalArgumentException();
46661
      }
553 chandransh 46662
 
46663
      switch (field) {
46664
      case SUCCESS:
46665
        return isSetSuccess();
578 chandransh 46666
      case SCEX:
46667
        return isSetScex();
553 chandransh 46668
      }
46669
      throw new IllegalStateException();
46670
    }
46671
 
46672
    @Override
46673
    public boolean equals(Object that) {
46674
      if (that == null)
46675
        return false;
46676
      if (that instanceof validateCart_result)
46677
        return this.equals((validateCart_result)that);
46678
      return false;
46679
    }
46680
 
46681
    public boolean equals(validateCart_result that) {
46682
      if (that == null)
46683
        return false;
46684
 
1466 ankur.sing 46685
      boolean this_present_success = true && this.isSetSuccess();
46686
      boolean that_present_success = true && that.isSetSuccess();
553 chandransh 46687
      if (this_present_success || that_present_success) {
46688
        if (!(this_present_success && that_present_success))
46689
          return false;
1466 ankur.sing 46690
        if (!this.success.equals(that.success))
553 chandransh 46691
          return false;
46692
      }
46693
 
578 chandransh 46694
      boolean this_present_scex = true && this.isSetScex();
46695
      boolean that_present_scex = true && that.isSetScex();
46696
      if (this_present_scex || that_present_scex) {
46697
        if (!(this_present_scex && that_present_scex))
46698
          return false;
46699
        if (!this.scex.equals(that.scex))
46700
          return false;
46701
      }
46702
 
553 chandransh 46703
      return true;
46704
    }
46705
 
46706
    @Override
46707
    public int hashCode() {
46708
      return 0;
46709
    }
46710
 
46711
    public int compareTo(validateCart_result other) {
46712
      if (!getClass().equals(other.getClass())) {
46713
        return getClass().getName().compareTo(other.getClass().getName());
46714
      }
46715
 
46716
      int lastComparison = 0;
46717
      validateCart_result typedOther = (validateCart_result)other;
46718
 
3430 rajveer 46719
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 46720
      if (lastComparison != 0) {
46721
        return lastComparison;
46722
      }
3430 rajveer 46723
      if (isSetSuccess()) {
46724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46725
        if (lastComparison != 0) {
46726
          return lastComparison;
46727
        }
553 chandransh 46728
      }
3430 rajveer 46729
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
578 chandransh 46730
      if (lastComparison != 0) {
46731
        return lastComparison;
46732
      }
3430 rajveer 46733
      if (isSetScex()) {
46734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
46735
        if (lastComparison != 0) {
46736
          return lastComparison;
46737
        }
578 chandransh 46738
      }
553 chandransh 46739
      return 0;
46740
    }
46741
 
3430 rajveer 46742
    public _Fields fieldForId(int fieldId) {
46743
      return _Fields.findByThriftId(fieldId);
46744
    }
46745
 
46746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46747
      org.apache.thrift.protocol.TField field;
553 chandransh 46748
      iprot.readStructBegin();
46749
      while (true)
46750
      {
46751
        field = iprot.readFieldBegin();
3430 rajveer 46752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 46753
          break;
46754
        }
3430 rajveer 46755
        switch (field.id) {
46756
          case 0: // SUCCESS
46757
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
46758
              this.success = iprot.readString();
46759
            } else { 
46760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46761
            }
46762
            break;
46763
          case 1: // SCEX
46764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46765
              this.scex = new ShoppingCartException();
46766
              this.scex.read(iprot);
46767
            } else { 
46768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46769
            }
46770
            break;
46771
          default:
46772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 46773
        }
3430 rajveer 46774
        iprot.readFieldEnd();
553 chandransh 46775
      }
46776
      iprot.readStructEnd();
46777
      validate();
46778
    }
46779
 
3430 rajveer 46780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 46781
      oprot.writeStructBegin(STRUCT_DESC);
46782
 
46783
      if (this.isSetSuccess()) {
46784
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1466 ankur.sing 46785
        oprot.writeString(this.success);
553 chandransh 46786
        oprot.writeFieldEnd();
578 chandransh 46787
      } else if (this.isSetScex()) {
46788
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
46789
        this.scex.write(oprot);
46790
        oprot.writeFieldEnd();
553 chandransh 46791
      }
46792
      oprot.writeFieldStop();
46793
      oprot.writeStructEnd();
46794
    }
46795
 
46796
    @Override
46797
    public String toString() {
46798
      StringBuilder sb = new StringBuilder("validateCart_result(");
46799
      boolean first = true;
46800
 
46801
      sb.append("success:");
1466 ankur.sing 46802
      if (this.success == null) {
46803
        sb.append("null");
46804
      } else {
46805
        sb.append(this.success);
46806
      }
553 chandransh 46807
      first = false;
578 chandransh 46808
      if (!first) sb.append(", ");
46809
      sb.append("scex:");
46810
      if (this.scex == null) {
46811
        sb.append("null");
46812
      } else {
46813
        sb.append(this.scex);
46814
      }
46815
      first = false;
553 chandransh 46816
      sb.append(")");
46817
      return sb.toString();
46818
    }
46819
 
3430 rajveer 46820
    public void validate() throws org.apache.thrift.TException {
553 chandransh 46821
      // check for required fields
46822
    }
46823
 
3430 rajveer 46824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46825
      try {
46826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46827
      } catch (org.apache.thrift.TException te) {
46828
        throw new java.io.IOException(te);
46829
      }
46830
    }
46831
 
46832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46833
      try {
46834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46835
      } catch (org.apache.thrift.TException te) {
46836
        throw new java.io.IOException(te);
46837
      }
46838
    }
46839
 
553 chandransh 46840
  }
46841
 
3430 rajveer 46842
  public static class mergeCart_args implements org.apache.thrift.TBase<mergeCart_args, mergeCart_args._Fields>, java.io.Serializable, Cloneable   {
46843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_args");
578 chandransh 46844
 
3430 rajveer 46845
    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);
46846
    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 46847
 
3430 rajveer 46848
    private long fromCartId; // required
46849
    private long toCartId; // required
688 chandransh 46850
 
46851
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46852
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 46853
      FROM_CART_ID((short)1, "fromCartId"),
46854
      TO_CART_ID((short)2, "toCartId");
46855
 
46856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46857
 
46858
      static {
46859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46860
          byName.put(field.getFieldName(), field);
46861
        }
46862
      }
46863
 
46864
      /**
46865
       * Find the _Fields constant that matches fieldId, or null if its not found.
46866
       */
46867
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46868
        switch(fieldId) {
46869
          case 1: // FROM_CART_ID
46870
            return FROM_CART_ID;
46871
          case 2: // TO_CART_ID
46872
            return TO_CART_ID;
46873
          default:
46874
            return null;
46875
        }
688 chandransh 46876
      }
46877
 
46878
      /**
46879
       * Find the _Fields constant that matches fieldId, throwing an exception
46880
       * if it is not found.
46881
       */
46882
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46883
        _Fields fields = findByThriftId(fieldId);
46884
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46885
        return fields;
46886
      }
46887
 
46888
      /**
46889
       * Find the _Fields constant that matches name, or null if its not found.
46890
       */
46891
      public static _Fields findByName(String name) {
46892
        return byName.get(name);
46893
      }
46894
 
46895
      private final short _thriftId;
46896
      private final String _fieldName;
46897
 
46898
      _Fields(short thriftId, String fieldName) {
46899
        _thriftId = thriftId;
46900
        _fieldName = fieldName;
46901
      }
46902
 
46903
      public short getThriftFieldId() {
46904
        return _thriftId;
46905
      }
46906
 
46907
      public String getFieldName() {
46908
        return _fieldName;
46909
      }
46910
    }
46911
 
46912
    // isset id assignments
46913
    private static final int __FROMCARTID_ISSET_ID = 0;
46914
    private static final int __TOCARTID_ISSET_ID = 1;
46915
    private BitSet __isset_bit_vector = new BitSet(2);
46916
 
3430 rajveer 46917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
688 chandransh 46918
    static {
3430 rajveer 46919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46920
      tmpMap.put(_Fields.FROM_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("fromCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46922
      tmpMap.put(_Fields.TO_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("toCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeCart_args.class, metaDataMap);
688 chandransh 46926
    }
46927
 
46928
    public mergeCart_args() {
46929
    }
46930
 
46931
    public mergeCart_args(
46932
      long fromCartId,
46933
      long toCartId)
46934
    {
46935
      this();
46936
      this.fromCartId = fromCartId;
46937
      setFromCartIdIsSet(true);
46938
      this.toCartId = toCartId;
46939
      setToCartIdIsSet(true);
46940
    }
46941
 
46942
    /**
46943
     * Performs a deep copy on <i>other</i>.
46944
     */
46945
    public mergeCart_args(mergeCart_args other) {
46946
      __isset_bit_vector.clear();
46947
      __isset_bit_vector.or(other.__isset_bit_vector);
46948
      this.fromCartId = other.fromCartId;
46949
      this.toCartId = other.toCartId;
46950
    }
46951
 
46952
    public mergeCart_args deepCopy() {
46953
      return new mergeCart_args(this);
46954
    }
46955
 
3430 rajveer 46956
    @Override
46957
    public void clear() {
46958
      setFromCartIdIsSet(false);
46959
      this.fromCartId = 0;
46960
      setToCartIdIsSet(false);
46961
      this.toCartId = 0;
688 chandransh 46962
    }
46963
 
46964
    public long getFromCartId() {
46965
      return this.fromCartId;
46966
    }
46967
 
3430 rajveer 46968
    public void setFromCartId(long fromCartId) {
688 chandransh 46969
      this.fromCartId = fromCartId;
46970
      setFromCartIdIsSet(true);
46971
    }
46972
 
46973
    public void unsetFromCartId() {
46974
      __isset_bit_vector.clear(__FROMCARTID_ISSET_ID);
46975
    }
46976
 
3430 rajveer 46977
    /** Returns true if field fromCartId is set (has been assigned a value) and false otherwise */
688 chandransh 46978
    public boolean isSetFromCartId() {
46979
      return __isset_bit_vector.get(__FROMCARTID_ISSET_ID);
46980
    }
46981
 
46982
    public void setFromCartIdIsSet(boolean value) {
46983
      __isset_bit_vector.set(__FROMCARTID_ISSET_ID, value);
46984
    }
46985
 
46986
    public long getToCartId() {
46987
      return this.toCartId;
46988
    }
46989
 
3430 rajveer 46990
    public void setToCartId(long toCartId) {
688 chandransh 46991
      this.toCartId = toCartId;
46992
      setToCartIdIsSet(true);
46993
    }
46994
 
46995
    public void unsetToCartId() {
46996
      __isset_bit_vector.clear(__TOCARTID_ISSET_ID);
46997
    }
46998
 
3430 rajveer 46999
    /** Returns true if field toCartId is set (has been assigned a value) and false otherwise */
688 chandransh 47000
    public boolean isSetToCartId() {
47001
      return __isset_bit_vector.get(__TOCARTID_ISSET_ID);
47002
    }
47003
 
47004
    public void setToCartIdIsSet(boolean value) {
47005
      __isset_bit_vector.set(__TOCARTID_ISSET_ID, value);
47006
    }
47007
 
47008
    public void setFieldValue(_Fields field, Object value) {
47009
      switch (field) {
47010
      case FROM_CART_ID:
47011
        if (value == null) {
47012
          unsetFromCartId();
47013
        } else {
47014
          setFromCartId((Long)value);
47015
        }
47016
        break;
47017
 
47018
      case TO_CART_ID:
47019
        if (value == null) {
47020
          unsetToCartId();
47021
        } else {
47022
          setToCartId((Long)value);
47023
        }
47024
        break;
47025
 
47026
      }
47027
    }
47028
 
47029
    public Object getFieldValue(_Fields field) {
47030
      switch (field) {
47031
      case FROM_CART_ID:
3430 rajveer 47032
        return Long.valueOf(getFromCartId());
688 chandransh 47033
 
47034
      case TO_CART_ID:
3430 rajveer 47035
        return Long.valueOf(getToCartId());
688 chandransh 47036
 
47037
      }
47038
      throw new IllegalStateException();
47039
    }
47040
 
3430 rajveer 47041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47042
    public boolean isSet(_Fields field) {
47043
      if (field == null) {
47044
        throw new IllegalArgumentException();
47045
      }
688 chandransh 47046
 
47047
      switch (field) {
47048
      case FROM_CART_ID:
47049
        return isSetFromCartId();
47050
      case TO_CART_ID:
47051
        return isSetToCartId();
47052
      }
47053
      throw new IllegalStateException();
47054
    }
47055
 
47056
    @Override
47057
    public boolean equals(Object that) {
47058
      if (that == null)
47059
        return false;
47060
      if (that instanceof mergeCart_args)
47061
        return this.equals((mergeCart_args)that);
47062
      return false;
47063
    }
47064
 
47065
    public boolean equals(mergeCart_args that) {
47066
      if (that == null)
47067
        return false;
47068
 
47069
      boolean this_present_fromCartId = true;
47070
      boolean that_present_fromCartId = true;
47071
      if (this_present_fromCartId || that_present_fromCartId) {
47072
        if (!(this_present_fromCartId && that_present_fromCartId))
47073
          return false;
47074
        if (this.fromCartId != that.fromCartId)
47075
          return false;
47076
      }
47077
 
47078
      boolean this_present_toCartId = true;
47079
      boolean that_present_toCartId = true;
47080
      if (this_present_toCartId || that_present_toCartId) {
47081
        if (!(this_present_toCartId && that_present_toCartId))
47082
          return false;
47083
        if (this.toCartId != that.toCartId)
47084
          return false;
47085
      }
47086
 
47087
      return true;
47088
    }
47089
 
47090
    @Override
47091
    public int hashCode() {
47092
      return 0;
47093
    }
47094
 
47095
    public int compareTo(mergeCart_args other) {
47096
      if (!getClass().equals(other.getClass())) {
47097
        return getClass().getName().compareTo(other.getClass().getName());
47098
      }
47099
 
47100
      int lastComparison = 0;
47101
      mergeCart_args typedOther = (mergeCart_args)other;
47102
 
3430 rajveer 47103
      lastComparison = Boolean.valueOf(isSetFromCartId()).compareTo(typedOther.isSetFromCartId());
688 chandransh 47104
      if (lastComparison != 0) {
47105
        return lastComparison;
47106
      }
3430 rajveer 47107
      if (isSetFromCartId()) {
47108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromCartId, typedOther.fromCartId);
47109
        if (lastComparison != 0) {
47110
          return lastComparison;
47111
        }
688 chandransh 47112
      }
3430 rajveer 47113
      lastComparison = Boolean.valueOf(isSetToCartId()).compareTo(typedOther.isSetToCartId());
688 chandransh 47114
      if (lastComparison != 0) {
47115
        return lastComparison;
47116
      }
3430 rajveer 47117
      if (isSetToCartId()) {
47118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toCartId, typedOther.toCartId);
47119
        if (lastComparison != 0) {
47120
          return lastComparison;
47121
        }
688 chandransh 47122
      }
47123
      return 0;
47124
    }
47125
 
3430 rajveer 47126
    public _Fields fieldForId(int fieldId) {
47127
      return _Fields.findByThriftId(fieldId);
47128
    }
47129
 
47130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47131
      org.apache.thrift.protocol.TField field;
688 chandransh 47132
      iprot.readStructBegin();
47133
      while (true)
47134
      {
47135
        field = iprot.readFieldBegin();
3430 rajveer 47136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
688 chandransh 47137
          break;
47138
        }
3430 rajveer 47139
        switch (field.id) {
47140
          case 1: // FROM_CART_ID
47141
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47142
              this.fromCartId = iprot.readI64();
47143
              setFromCartIdIsSet(true);
47144
            } else { 
47145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47146
            }
47147
            break;
47148
          case 2: // TO_CART_ID
47149
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47150
              this.toCartId = iprot.readI64();
47151
              setToCartIdIsSet(true);
47152
            } else { 
47153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47154
            }
47155
            break;
47156
          default:
47157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
688 chandransh 47158
        }
3430 rajveer 47159
        iprot.readFieldEnd();
688 chandransh 47160
      }
47161
      iprot.readStructEnd();
47162
      validate();
47163
    }
47164
 
3430 rajveer 47165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
688 chandransh 47166
      validate();
47167
 
47168
      oprot.writeStructBegin(STRUCT_DESC);
47169
      oprot.writeFieldBegin(FROM_CART_ID_FIELD_DESC);
47170
      oprot.writeI64(this.fromCartId);
47171
      oprot.writeFieldEnd();
47172
      oprot.writeFieldBegin(TO_CART_ID_FIELD_DESC);
47173
      oprot.writeI64(this.toCartId);
47174
      oprot.writeFieldEnd();
47175
      oprot.writeFieldStop();
47176
      oprot.writeStructEnd();
47177
    }
47178
 
47179
    @Override
47180
    public String toString() {
47181
      StringBuilder sb = new StringBuilder("mergeCart_args(");
47182
      boolean first = true;
47183
 
47184
      sb.append("fromCartId:");
47185
      sb.append(this.fromCartId);
47186
      first = false;
47187
      if (!first) sb.append(", ");
47188
      sb.append("toCartId:");
47189
      sb.append(this.toCartId);
47190
      first = false;
47191
      sb.append(")");
47192
      return sb.toString();
47193
    }
47194
 
3430 rajveer 47195
    public void validate() throws org.apache.thrift.TException {
688 chandransh 47196
      // check for required fields
47197
    }
47198
 
3430 rajveer 47199
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47200
      try {
47201
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47202
      } catch (org.apache.thrift.TException te) {
47203
        throw new java.io.IOException(te);
47204
      }
47205
    }
47206
 
47207
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47208
      try {
47209
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47210
      } catch (org.apache.thrift.TException te) {
47211
        throw new java.io.IOException(te);
47212
      }
47213
    }
47214
 
688 chandransh 47215
  }
47216
 
3430 rajveer 47217
  public static class mergeCart_result implements org.apache.thrift.TBase<mergeCart_result, mergeCart_result._Fields>, java.io.Serializable, Cloneable   {
47218
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_result");
688 chandransh 47219
 
47220
 
47221
 
47222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47223
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 47224
;
47225
 
47226
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47227
 
47228
      static {
47229
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47230
          byName.put(field.getFieldName(), field);
47231
        }
47232
      }
47233
 
47234
      /**
47235
       * Find the _Fields constant that matches fieldId, or null if its not found.
47236
       */
47237
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47238
        switch(fieldId) {
47239
          default:
47240
            return null;
47241
        }
688 chandransh 47242
      }
47243
 
47244
      /**
47245
       * Find the _Fields constant that matches fieldId, throwing an exception
47246
       * if it is not found.
47247
       */
47248
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47249
        _Fields fields = findByThriftId(fieldId);
47250
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47251
        return fields;
47252
      }
47253
 
47254
      /**
47255
       * Find the _Fields constant that matches name, or null if its not found.
47256
       */
47257
      public static _Fields findByName(String name) {
47258
        return byName.get(name);
47259
      }
47260
 
47261
      private final short _thriftId;
47262
      private final String _fieldName;
47263
 
47264
      _Fields(short thriftId, String fieldName) {
47265
        _thriftId = thriftId;
47266
        _fieldName = fieldName;
47267
      }
47268
 
47269
      public short getThriftFieldId() {
47270
        return _thriftId;
47271
      }
47272
 
47273
      public String getFieldName() {
47274
        return _fieldName;
47275
      }
47276
    }
3430 rajveer 47277
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
688 chandransh 47278
    static {
3430 rajveer 47279
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeCart_result.class, metaDataMap);
688 chandransh 47282
    }
47283
 
47284
    public mergeCart_result() {
47285
    }
47286
 
47287
    /**
47288
     * Performs a deep copy on <i>other</i>.
47289
     */
47290
    public mergeCart_result(mergeCart_result other) {
47291
    }
47292
 
47293
    public mergeCart_result deepCopy() {
47294
      return new mergeCart_result(this);
47295
    }
47296
 
3430 rajveer 47297
    @Override
47298
    public void clear() {
688 chandransh 47299
    }
47300
 
47301
    public void setFieldValue(_Fields field, Object value) {
47302
      switch (field) {
47303
      }
47304
    }
47305
 
47306
    public Object getFieldValue(_Fields field) {
47307
      switch (field) {
47308
      }
47309
      throw new IllegalStateException();
47310
    }
47311
 
3430 rajveer 47312
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47313
    public boolean isSet(_Fields field) {
47314
      if (field == null) {
47315
        throw new IllegalArgumentException();
47316
      }
688 chandransh 47317
 
47318
      switch (field) {
47319
      }
47320
      throw new IllegalStateException();
47321
    }
47322
 
47323
    @Override
47324
    public boolean equals(Object that) {
47325
      if (that == null)
47326
        return false;
47327
      if (that instanceof mergeCart_result)
47328
        return this.equals((mergeCart_result)that);
47329
      return false;
47330
    }
47331
 
47332
    public boolean equals(mergeCart_result that) {
47333
      if (that == null)
47334
        return false;
47335
 
47336
      return true;
47337
    }
47338
 
47339
    @Override
47340
    public int hashCode() {
47341
      return 0;
47342
    }
47343
 
47344
    public int compareTo(mergeCart_result other) {
47345
      if (!getClass().equals(other.getClass())) {
47346
        return getClass().getName().compareTo(other.getClass().getName());
47347
      }
47348
 
47349
      int lastComparison = 0;
47350
      mergeCart_result typedOther = (mergeCart_result)other;
47351
 
47352
      return 0;
47353
    }
47354
 
3430 rajveer 47355
    public _Fields fieldForId(int fieldId) {
47356
      return _Fields.findByThriftId(fieldId);
47357
    }
47358
 
47359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47360
      org.apache.thrift.protocol.TField field;
688 chandransh 47361
      iprot.readStructBegin();
47362
      while (true)
47363
      {
47364
        field = iprot.readFieldBegin();
3430 rajveer 47365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
688 chandransh 47366
          break;
47367
        }
3430 rajveer 47368
        switch (field.id) {
47369
          default:
47370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
688 chandransh 47371
        }
3430 rajveer 47372
        iprot.readFieldEnd();
688 chandransh 47373
      }
47374
      iprot.readStructEnd();
47375
      validate();
47376
    }
47377
 
3430 rajveer 47378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
688 chandransh 47379
      oprot.writeStructBegin(STRUCT_DESC);
47380
 
47381
      oprot.writeFieldStop();
47382
      oprot.writeStructEnd();
47383
    }
47384
 
47385
    @Override
47386
    public String toString() {
47387
      StringBuilder sb = new StringBuilder("mergeCart_result(");
47388
      boolean first = true;
47389
 
47390
      sb.append(")");
47391
      return sb.toString();
47392
    }
47393
 
3430 rajveer 47394
    public void validate() throws org.apache.thrift.TException {
688 chandransh 47395
      // check for required fields
47396
    }
47397
 
3430 rajveer 47398
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47399
      try {
47400
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47401
      } catch (org.apache.thrift.TException te) {
47402
        throw new java.io.IOException(te);
47403
      }
47404
    }
47405
 
47406
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47407
      try {
47408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47409
      } catch (org.apache.thrift.TException te) {
47410
        throw new java.io.IOException(te);
47411
      }
47412
    }
47413
 
688 chandransh 47414
  }
47415
 
3430 rajveer 47416
  public static class checkOut_args implements org.apache.thrift.TBase<checkOut_args, checkOut_args._Fields>, java.io.Serializable, Cloneable   {
47417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkOut_args");
688 chandransh 47418
 
3430 rajveer 47419
    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 47420
 
3430 rajveer 47421
    private long cartId; // required
578 chandransh 47422
 
47423
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47424
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 47425
      CART_ID((short)1, "cartId");
47426
 
47427
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47428
 
47429
      static {
47430
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47431
          byName.put(field.getFieldName(), field);
47432
        }
47433
      }
47434
 
47435
      /**
47436
       * Find the _Fields constant that matches fieldId, or null if its not found.
47437
       */
47438
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47439
        switch(fieldId) {
47440
          case 1: // CART_ID
47441
            return CART_ID;
47442
          default:
47443
            return null;
47444
        }
578 chandransh 47445
      }
47446
 
47447
      /**
47448
       * Find the _Fields constant that matches fieldId, throwing an exception
47449
       * if it is not found.
47450
       */
47451
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47452
        _Fields fields = findByThriftId(fieldId);
47453
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47454
        return fields;
47455
      }
47456
 
47457
      /**
47458
       * Find the _Fields constant that matches name, or null if its not found.
47459
       */
47460
      public static _Fields findByName(String name) {
47461
        return byName.get(name);
47462
      }
47463
 
47464
      private final short _thriftId;
47465
      private final String _fieldName;
47466
 
47467
      _Fields(short thriftId, String fieldName) {
47468
        _thriftId = thriftId;
47469
        _fieldName = fieldName;
47470
      }
47471
 
47472
      public short getThriftFieldId() {
47473
        return _thriftId;
47474
      }
47475
 
47476
      public String getFieldName() {
47477
        return _fieldName;
47478
      }
47479
    }
47480
 
47481
    // isset id assignments
47482
    private static final int __CARTID_ISSET_ID = 0;
47483
    private BitSet __isset_bit_vector = new BitSet(1);
47484
 
3430 rajveer 47485
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
578 chandransh 47486
    static {
3430 rajveer 47487
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47488
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47489
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47490
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47491
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkOut_args.class, metaDataMap);
578 chandransh 47492
    }
47493
 
688 chandransh 47494
    public checkOut_args() {
578 chandransh 47495
    }
47496
 
688 chandransh 47497
    public checkOut_args(
578 chandransh 47498
      long cartId)
47499
    {
47500
      this();
47501
      this.cartId = cartId;
47502
      setCartIdIsSet(true);
47503
    }
47504
 
47505
    /**
47506
     * Performs a deep copy on <i>other</i>.
47507
     */
688 chandransh 47508
    public checkOut_args(checkOut_args other) {
578 chandransh 47509
      __isset_bit_vector.clear();
47510
      __isset_bit_vector.or(other.__isset_bit_vector);
47511
      this.cartId = other.cartId;
47512
    }
47513
 
688 chandransh 47514
    public checkOut_args deepCopy() {
47515
      return new checkOut_args(this);
578 chandransh 47516
    }
47517
 
3430 rajveer 47518
    @Override
47519
    public void clear() {
47520
      setCartIdIsSet(false);
47521
      this.cartId = 0;
578 chandransh 47522
    }
47523
 
47524
    public long getCartId() {
47525
      return this.cartId;
47526
    }
47527
 
3430 rajveer 47528
    public void setCartId(long cartId) {
578 chandransh 47529
      this.cartId = cartId;
47530
      setCartIdIsSet(true);
47531
    }
47532
 
47533
    public void unsetCartId() {
47534
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
47535
    }
47536
 
3430 rajveer 47537
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
578 chandransh 47538
    public boolean isSetCartId() {
47539
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
47540
    }
47541
 
47542
    public void setCartIdIsSet(boolean value) {
47543
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
47544
    }
47545
 
47546
    public void setFieldValue(_Fields field, Object value) {
47547
      switch (field) {
47548
      case CART_ID:
47549
        if (value == null) {
47550
          unsetCartId();
47551
        } else {
47552
          setCartId((Long)value);
47553
        }
47554
        break;
47555
 
47556
      }
47557
    }
47558
 
47559
    public Object getFieldValue(_Fields field) {
47560
      switch (field) {
47561
      case CART_ID:
3430 rajveer 47562
        return Long.valueOf(getCartId());
578 chandransh 47563
 
47564
      }
47565
      throw new IllegalStateException();
47566
    }
47567
 
3430 rajveer 47568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47569
    public boolean isSet(_Fields field) {
47570
      if (field == null) {
47571
        throw new IllegalArgumentException();
47572
      }
578 chandransh 47573
 
47574
      switch (field) {
47575
      case CART_ID:
47576
        return isSetCartId();
47577
      }
47578
      throw new IllegalStateException();
47579
    }
47580
 
47581
    @Override
47582
    public boolean equals(Object that) {
47583
      if (that == null)
47584
        return false;
688 chandransh 47585
      if (that instanceof checkOut_args)
47586
        return this.equals((checkOut_args)that);
578 chandransh 47587
      return false;
47588
    }
47589
 
688 chandransh 47590
    public boolean equals(checkOut_args that) {
578 chandransh 47591
      if (that == null)
47592
        return false;
47593
 
47594
      boolean this_present_cartId = true;
47595
      boolean that_present_cartId = true;
47596
      if (this_present_cartId || that_present_cartId) {
47597
        if (!(this_present_cartId && that_present_cartId))
47598
          return false;
47599
        if (this.cartId != that.cartId)
47600
          return false;
47601
      }
47602
 
47603
      return true;
47604
    }
47605
 
47606
    @Override
47607
    public int hashCode() {
47608
      return 0;
47609
    }
47610
 
688 chandransh 47611
    public int compareTo(checkOut_args other) {
578 chandransh 47612
      if (!getClass().equals(other.getClass())) {
47613
        return getClass().getName().compareTo(other.getClass().getName());
47614
      }
47615
 
47616
      int lastComparison = 0;
688 chandransh 47617
      checkOut_args typedOther = (checkOut_args)other;
578 chandransh 47618
 
3430 rajveer 47619
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
578 chandransh 47620
      if (lastComparison != 0) {
47621
        return lastComparison;
47622
      }
3430 rajveer 47623
      if (isSetCartId()) {
47624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
47625
        if (lastComparison != 0) {
47626
          return lastComparison;
47627
        }
578 chandransh 47628
      }
47629
      return 0;
47630
    }
47631
 
3430 rajveer 47632
    public _Fields fieldForId(int fieldId) {
47633
      return _Fields.findByThriftId(fieldId);
47634
    }
47635
 
47636
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47637
      org.apache.thrift.protocol.TField field;
578 chandransh 47638
      iprot.readStructBegin();
47639
      while (true)
47640
      {
47641
        field = iprot.readFieldBegin();
3430 rajveer 47642
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
578 chandransh 47643
          break;
47644
        }
3430 rajveer 47645
        switch (field.id) {
47646
          case 1: // CART_ID
47647
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47648
              this.cartId = iprot.readI64();
47649
              setCartIdIsSet(true);
47650
            } else { 
47651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47652
            }
47653
            break;
47654
          default:
47655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
578 chandransh 47656
        }
3430 rajveer 47657
        iprot.readFieldEnd();
578 chandransh 47658
      }
47659
      iprot.readStructEnd();
47660
      validate();
47661
    }
47662
 
3430 rajveer 47663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
578 chandransh 47664
      validate();
47665
 
47666
      oprot.writeStructBegin(STRUCT_DESC);
47667
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
47668
      oprot.writeI64(this.cartId);
47669
      oprot.writeFieldEnd();
47670
      oprot.writeFieldStop();
47671
      oprot.writeStructEnd();
47672
    }
47673
 
47674
    @Override
47675
    public String toString() {
688 chandransh 47676
      StringBuilder sb = new StringBuilder("checkOut_args(");
578 chandransh 47677
      boolean first = true;
47678
 
47679
      sb.append("cartId:");
47680
      sb.append(this.cartId);
47681
      first = false;
47682
      sb.append(")");
47683
      return sb.toString();
47684
    }
47685
 
3430 rajveer 47686
    public void validate() throws org.apache.thrift.TException {
578 chandransh 47687
      // check for required fields
47688
    }
47689
 
3430 rajveer 47690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47691
      try {
47692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47693
      } catch (org.apache.thrift.TException te) {
47694
        throw new java.io.IOException(te);
47695
      }
47696
    }
47697
 
47698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47699
      try {
47700
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47701
      } catch (org.apache.thrift.TException te) {
47702
        throw new java.io.IOException(te);
47703
      }
47704
    }
47705
 
578 chandransh 47706
  }
47707
 
3430 rajveer 47708
  public static class checkOut_result implements org.apache.thrift.TBase<checkOut_result, checkOut_result._Fields>, java.io.Serializable, Cloneable   {
47709
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkOut_result");
578 chandransh 47710
 
3430 rajveer 47711
    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);
47712
    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 47713
 
3430 rajveer 47714
    private boolean success; // required
47715
    private ShoppingCartException scex; // required
578 chandransh 47716
 
47717
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47718
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 47719
      SUCCESS((short)0, "success"),
47720
      SCEX((short)1, "scex");
47721
 
47722
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47723
 
47724
      static {
47725
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47726
          byName.put(field.getFieldName(), field);
47727
        }
47728
      }
47729
 
47730
      /**
47731
       * Find the _Fields constant that matches fieldId, or null if its not found.
47732
       */
47733
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47734
        switch(fieldId) {
47735
          case 0: // SUCCESS
47736
            return SUCCESS;
47737
          case 1: // SCEX
47738
            return SCEX;
47739
          default:
47740
            return null;
47741
        }
578 chandransh 47742
      }
47743
 
47744
      /**
47745
       * Find the _Fields constant that matches fieldId, throwing an exception
47746
       * if it is not found.
47747
       */
47748
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47749
        _Fields fields = findByThriftId(fieldId);
47750
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47751
        return fields;
47752
      }
47753
 
47754
      /**
47755
       * Find the _Fields constant that matches name, or null if its not found.
47756
       */
47757
      public static _Fields findByName(String name) {
47758
        return byName.get(name);
47759
      }
47760
 
47761
      private final short _thriftId;
47762
      private final String _fieldName;
47763
 
47764
      _Fields(short thriftId, String fieldName) {
47765
        _thriftId = thriftId;
47766
        _fieldName = fieldName;
47767
      }
47768
 
47769
      public short getThriftFieldId() {
47770
        return _thriftId;
47771
      }
47772
 
47773
      public String getFieldName() {
47774
        return _fieldName;
47775
      }
47776
    }
47777
 
47778
    // isset id assignments
47779
    private static final int __SUCCESS_ISSET_ID = 0;
47780
    private BitSet __isset_bit_vector = new BitSet(1);
47781
 
3430 rajveer 47782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
578 chandransh 47783
    static {
3430 rajveer 47784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47785
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
47787
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkOut_result.class, metaDataMap);
578 chandransh 47791
    }
47792
 
688 chandransh 47793
    public checkOut_result() {
578 chandransh 47794
    }
47795
 
688 chandransh 47796
    public checkOut_result(
578 chandransh 47797
      boolean success,
47798
      ShoppingCartException scex)
47799
    {
47800
      this();
47801
      this.success = success;
47802
      setSuccessIsSet(true);
47803
      this.scex = scex;
47804
    }
47805
 
47806
    /**
47807
     * Performs a deep copy on <i>other</i>.
47808
     */
688 chandransh 47809
    public checkOut_result(checkOut_result other) {
578 chandransh 47810
      __isset_bit_vector.clear();
47811
      __isset_bit_vector.or(other.__isset_bit_vector);
47812
      this.success = other.success;
47813
      if (other.isSetScex()) {
47814
        this.scex = new ShoppingCartException(other.scex);
47815
      }
47816
    }
47817
 
688 chandransh 47818
    public checkOut_result deepCopy() {
47819
      return new checkOut_result(this);
578 chandransh 47820
    }
47821
 
3430 rajveer 47822
    @Override
47823
    public void clear() {
47824
      setSuccessIsSet(false);
47825
      this.success = false;
47826
      this.scex = null;
578 chandransh 47827
    }
47828
 
47829
    public boolean isSuccess() {
47830
      return this.success;
47831
    }
47832
 
3430 rajveer 47833
    public void setSuccess(boolean success) {
578 chandransh 47834
      this.success = success;
47835
      setSuccessIsSet(true);
47836
    }
47837
 
47838
    public void unsetSuccess() {
47839
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
47840
    }
47841
 
3430 rajveer 47842
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
578 chandransh 47843
    public boolean isSetSuccess() {
47844
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
47845
    }
47846
 
47847
    public void setSuccessIsSet(boolean value) {
47848
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
47849
    }
47850
 
47851
    public ShoppingCartException getScex() {
47852
      return this.scex;
47853
    }
47854
 
3430 rajveer 47855
    public void setScex(ShoppingCartException scex) {
578 chandransh 47856
      this.scex = scex;
47857
    }
47858
 
47859
    public void unsetScex() {
47860
      this.scex = null;
47861
    }
47862
 
3430 rajveer 47863
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
578 chandransh 47864
    public boolean isSetScex() {
47865
      return this.scex != null;
47866
    }
47867
 
47868
    public void setScexIsSet(boolean value) {
47869
      if (!value) {
47870
        this.scex = null;
47871
      }
47872
    }
47873
 
47874
    public void setFieldValue(_Fields field, Object value) {
47875
      switch (field) {
47876
      case SUCCESS:
47877
        if (value == null) {
47878
          unsetSuccess();
47879
        } else {
47880
          setSuccess((Boolean)value);
47881
        }
47882
        break;
47883
 
47884
      case SCEX:
47885
        if (value == null) {
47886
          unsetScex();
47887
        } else {
47888
          setScex((ShoppingCartException)value);
47889
        }
47890
        break;
47891
 
47892
      }
47893
    }
47894
 
47895
    public Object getFieldValue(_Fields field) {
47896
      switch (field) {
47897
      case SUCCESS:
3430 rajveer 47898
        return Boolean.valueOf(isSuccess());
578 chandransh 47899
 
47900
      case SCEX:
47901
        return getScex();
47902
 
47903
      }
47904
      throw new IllegalStateException();
47905
    }
47906
 
3430 rajveer 47907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47908
    public boolean isSet(_Fields field) {
47909
      if (field == null) {
47910
        throw new IllegalArgumentException();
47911
      }
578 chandransh 47912
 
47913
      switch (field) {
47914
      case SUCCESS:
47915
        return isSetSuccess();
47916
      case SCEX:
47917
        return isSetScex();
47918
      }
47919
      throw new IllegalStateException();
47920
    }
47921
 
47922
    @Override
47923
    public boolean equals(Object that) {
47924
      if (that == null)
47925
        return false;
688 chandransh 47926
      if (that instanceof checkOut_result)
47927
        return this.equals((checkOut_result)that);
578 chandransh 47928
      return false;
47929
    }
47930
 
688 chandransh 47931
    public boolean equals(checkOut_result that) {
578 chandransh 47932
      if (that == null)
47933
        return false;
47934
 
47935
      boolean this_present_success = true;
47936
      boolean that_present_success = true;
47937
      if (this_present_success || that_present_success) {
47938
        if (!(this_present_success && that_present_success))
47939
          return false;
47940
        if (this.success != that.success)
47941
          return false;
47942
      }
47943
 
47944
      boolean this_present_scex = true && this.isSetScex();
47945
      boolean that_present_scex = true && that.isSetScex();
47946
      if (this_present_scex || that_present_scex) {
47947
        if (!(this_present_scex && that_present_scex))
47948
          return false;
47949
        if (!this.scex.equals(that.scex))
47950
          return false;
47951
      }
47952
 
47953
      return true;
47954
    }
47955
 
47956
    @Override
47957
    public int hashCode() {
47958
      return 0;
47959
    }
47960
 
688 chandransh 47961
    public int compareTo(checkOut_result other) {
578 chandransh 47962
      if (!getClass().equals(other.getClass())) {
47963
        return getClass().getName().compareTo(other.getClass().getName());
47964
      }
47965
 
47966
      int lastComparison = 0;
688 chandransh 47967
      checkOut_result typedOther = (checkOut_result)other;
578 chandransh 47968
 
3430 rajveer 47969
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
578 chandransh 47970
      if (lastComparison != 0) {
47971
        return lastComparison;
47972
      }
3430 rajveer 47973
      if (isSetSuccess()) {
47974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47975
        if (lastComparison != 0) {
47976
          return lastComparison;
47977
        }
578 chandransh 47978
      }
3430 rajveer 47979
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
578 chandransh 47980
      if (lastComparison != 0) {
47981
        return lastComparison;
47982
      }
3430 rajveer 47983
      if (isSetScex()) {
47984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
47985
        if (lastComparison != 0) {
47986
          return lastComparison;
47987
        }
578 chandransh 47988
      }
47989
      return 0;
47990
    }
47991
 
3430 rajveer 47992
    public _Fields fieldForId(int fieldId) {
47993
      return _Fields.findByThriftId(fieldId);
47994
    }
47995
 
47996
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47997
      org.apache.thrift.protocol.TField field;
578 chandransh 47998
      iprot.readStructBegin();
47999
      while (true)
48000
      {
48001
        field = iprot.readFieldBegin();
3430 rajveer 48002
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
578 chandransh 48003
          break;
48004
        }
3430 rajveer 48005
        switch (field.id) {
48006
          case 0: // SUCCESS
48007
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
48008
              this.success = iprot.readBool();
48009
              setSuccessIsSet(true);
48010
            } else { 
48011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48012
            }
48013
            break;
48014
          case 1: // SCEX
48015
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48016
              this.scex = new ShoppingCartException();
48017
              this.scex.read(iprot);
48018
            } else { 
48019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48020
            }
48021
            break;
48022
          default:
48023
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
578 chandransh 48024
        }
3430 rajveer 48025
        iprot.readFieldEnd();
578 chandransh 48026
      }
48027
      iprot.readStructEnd();
48028
      validate();
48029
    }
48030
 
3430 rajveer 48031
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
578 chandransh 48032
      oprot.writeStructBegin(STRUCT_DESC);
48033
 
48034
      if (this.isSetSuccess()) {
48035
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48036
        oprot.writeBool(this.success);
48037
        oprot.writeFieldEnd();
48038
      } else if (this.isSetScex()) {
48039
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
48040
        this.scex.write(oprot);
48041
        oprot.writeFieldEnd();
48042
      }
48043
      oprot.writeFieldStop();
48044
      oprot.writeStructEnd();
48045
    }
48046
 
48047
    @Override
48048
    public String toString() {
688 chandransh 48049
      StringBuilder sb = new StringBuilder("checkOut_result(");
578 chandransh 48050
      boolean first = true;
48051
 
48052
      sb.append("success:");
48053
      sb.append(this.success);
48054
      first = false;
48055
      if (!first) sb.append(", ");
48056
      sb.append("scex:");
48057
      if (this.scex == null) {
48058
        sb.append("null");
48059
      } else {
48060
        sb.append(this.scex);
48061
      }
48062
      first = false;
48063
      sb.append(")");
48064
      return sb.toString();
48065
    }
48066
 
3430 rajveer 48067
    public void validate() throws org.apache.thrift.TException {
578 chandransh 48068
      // check for required fields
48069
    }
48070
 
3430 rajveer 48071
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48072
      try {
48073
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48074
      } catch (org.apache.thrift.TException te) {
48075
        throw new java.io.IOException(te);
48076
      }
48077
    }
48078
 
48079
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48080
      try {
48081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48082
      } catch (org.apache.thrift.TException te) {
48083
        throw new java.io.IOException(te);
48084
      }
48085
    }
48086
 
578 chandransh 48087
  }
48088
 
3430 rajveer 48089
  public static class resetCart_args implements org.apache.thrift.TBase<resetCart_args, resetCart_args._Fields>, java.io.Serializable, Cloneable   {
48090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetCart_args");
553 chandransh 48091
 
3430 rajveer 48092
    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);
48093
    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 48094
 
3430 rajveer 48095
    private long cartId; // required
48096
    private Map<Long,Double> items; // required
553 chandransh 48097
 
48098
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48099
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 48100
      CART_ID((short)1, "cartId"),
48101
      ITEMS((short)2, "items");
553 chandransh 48102
 
48103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48104
 
48105
      static {
48106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48107
          byName.put(field.getFieldName(), field);
48108
        }
48109
      }
48110
 
48111
      /**
48112
       * Find the _Fields constant that matches fieldId, or null if its not found.
48113
       */
48114
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48115
        switch(fieldId) {
48116
          case 1: // CART_ID
48117
            return CART_ID;
48118
          case 2: // ITEMS
48119
            return ITEMS;
48120
          default:
48121
            return null;
48122
        }
553 chandransh 48123
      }
48124
 
48125
      /**
48126
       * Find the _Fields constant that matches fieldId, throwing an exception
48127
       * if it is not found.
48128
       */
48129
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48130
        _Fields fields = findByThriftId(fieldId);
48131
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48132
        return fields;
48133
      }
48134
 
48135
      /**
48136
       * Find the _Fields constant that matches name, or null if its not found.
48137
       */
48138
      public static _Fields findByName(String name) {
48139
        return byName.get(name);
48140
      }
48141
 
48142
      private final short _thriftId;
48143
      private final String _fieldName;
48144
 
48145
      _Fields(short thriftId, String fieldName) {
48146
        _thriftId = thriftId;
48147
        _fieldName = fieldName;
48148
      }
48149
 
48150
      public short getThriftFieldId() {
48151
        return _thriftId;
48152
      }
48153
 
48154
      public String getFieldName() {
48155
        return _fieldName;
48156
      }
48157
    }
48158
 
48159
    // isset id assignments
688 chandransh 48160
    private static final int __CARTID_ISSET_ID = 0;
48161
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 48162
 
3430 rajveer 48163
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 48164
    static {
3430 rajveer 48165
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48166
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48168
      tmpMap.put(_Fields.ITEMS, new org.apache.thrift.meta_data.FieldMetaData("items", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48169
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
48170
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
48171
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
48172
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48173
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetCart_args.class, metaDataMap);
553 chandransh 48174
    }
48175
 
688 chandransh 48176
    public resetCart_args() {
553 chandransh 48177
    }
48178
 
688 chandransh 48179
    public resetCart_args(
48180
      long cartId,
708 rajveer 48181
      Map<Long,Double> items)
553 chandransh 48182
    {
48183
      this();
688 chandransh 48184
      this.cartId = cartId;
48185
      setCartIdIsSet(true);
48186
      this.items = items;
553 chandransh 48187
    }
48188
 
48189
    /**
48190
     * Performs a deep copy on <i>other</i>.
48191
     */
688 chandransh 48192
    public resetCart_args(resetCart_args other) {
553 chandransh 48193
      __isset_bit_vector.clear();
48194
      __isset_bit_vector.or(other.__isset_bit_vector);
688 chandransh 48195
      this.cartId = other.cartId;
48196
      if (other.isSetItems()) {
708 rajveer 48197
        Map<Long,Double> __this__items = new HashMap<Long,Double>();
48198
        for (Map.Entry<Long, Double> other_element : other.items.entrySet()) {
688 chandransh 48199
 
48200
          Long other_element_key = other_element.getKey();
708 rajveer 48201
          Double other_element_value = other_element.getValue();
688 chandransh 48202
 
48203
          Long __this__items_copy_key = other_element_key;
48204
 
708 rajveer 48205
          Double __this__items_copy_value = other_element_value;
688 chandransh 48206
 
48207
          __this__items.put(__this__items_copy_key, __this__items_copy_value);
48208
        }
48209
        this.items = __this__items;
48210
      }
553 chandransh 48211
    }
48212
 
688 chandransh 48213
    public resetCart_args deepCopy() {
48214
      return new resetCart_args(this);
553 chandransh 48215
    }
48216
 
3430 rajveer 48217
    @Override
48218
    public void clear() {
48219
      setCartIdIsSet(false);
48220
      this.cartId = 0;
48221
      this.items = null;
553 chandransh 48222
    }
48223
 
688 chandransh 48224
    public long getCartId() {
48225
      return this.cartId;
553 chandransh 48226
    }
48227
 
3430 rajveer 48228
    public void setCartId(long cartId) {
688 chandransh 48229
      this.cartId = cartId;
48230
      setCartIdIsSet(true);
48 ashish 48231
    }
48232
 
688 chandransh 48233
    public void unsetCartId() {
48234
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 48235
    }
48236
 
3430 rajveer 48237
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
688 chandransh 48238
    public boolean isSetCartId() {
48239
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 48240
    }
48241
 
688 chandransh 48242
    public void setCartIdIsSet(boolean value) {
48243
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
553 chandransh 48244
    }
48245
 
688 chandransh 48246
    public int getItemsSize() {
48247
      return (this.items == null) ? 0 : this.items.size();
553 chandransh 48248
    }
48249
 
708 rajveer 48250
    public void putToItems(long key, double val) {
688 chandransh 48251
      if (this.items == null) {
708 rajveer 48252
        this.items = new HashMap<Long,Double>();
688 chandransh 48253
      }
48254
      this.items.put(key, val);
48255
    }
48256
 
708 rajveer 48257
    public Map<Long,Double> getItems() {
688 chandransh 48258
      return this.items;
48259
    }
48260
 
3430 rajveer 48261
    public void setItems(Map<Long,Double> items) {
688 chandransh 48262
      this.items = items;
553 chandransh 48263
    }
48264
 
688 chandransh 48265
    public void unsetItems() {
48266
      this.items = null;
553 chandransh 48267
    }
48268
 
3430 rajveer 48269
    /** Returns true if field items is set (has been assigned a value) and false otherwise */
688 chandransh 48270
    public boolean isSetItems() {
48271
      return this.items != null;
553 chandransh 48272
    }
48273
 
688 chandransh 48274
    public void setItemsIsSet(boolean value) {
48275
      if (!value) {
48276
        this.items = null;
48277
      }
553 chandransh 48278
    }
48279
 
48280
    public void setFieldValue(_Fields field, Object value) {
48281
      switch (field) {
688 chandransh 48282
      case CART_ID:
553 chandransh 48283
        if (value == null) {
688 chandransh 48284
          unsetCartId();
553 chandransh 48285
        } else {
688 chandransh 48286
          setCartId((Long)value);
553 chandransh 48287
        }
48288
        break;
48289
 
688 chandransh 48290
      case ITEMS:
553 chandransh 48291
        if (value == null) {
688 chandransh 48292
          unsetItems();
553 chandransh 48293
        } else {
708 rajveer 48294
          setItems((Map<Long,Double>)value);
553 chandransh 48295
        }
48296
        break;
48297
 
48298
      }
48299
    }
48300
 
48301
    public Object getFieldValue(_Fields field) {
48302
      switch (field) {
688 chandransh 48303
      case CART_ID:
3430 rajveer 48304
        return Long.valueOf(getCartId());
553 chandransh 48305
 
688 chandransh 48306
      case ITEMS:
48307
        return getItems();
553 chandransh 48308
 
48309
      }
48310
      throw new IllegalStateException();
48311
    }
48312
 
3430 rajveer 48313
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48314
    public boolean isSet(_Fields field) {
48315
      if (field == null) {
48316
        throw new IllegalArgumentException();
48317
      }
553 chandransh 48318
 
48319
      switch (field) {
688 chandransh 48320
      case CART_ID:
48321
        return isSetCartId();
48322
      case ITEMS:
48323
        return isSetItems();
553 chandransh 48324
      }
48325
      throw new IllegalStateException();
48326
    }
48327
 
48328
    @Override
48329
    public boolean equals(Object that) {
48330
      if (that == null)
48331
        return false;
688 chandransh 48332
      if (that instanceof resetCart_args)
48333
        return this.equals((resetCart_args)that);
553 chandransh 48334
      return false;
48335
    }
48336
 
688 chandransh 48337
    public boolean equals(resetCart_args that) {
553 chandransh 48338
      if (that == null)
48339
        return false;
48340
 
688 chandransh 48341
      boolean this_present_cartId = true;
48342
      boolean that_present_cartId = true;
48343
      if (this_present_cartId || that_present_cartId) {
48344
        if (!(this_present_cartId && that_present_cartId))
553 chandransh 48345
          return false;
688 chandransh 48346
        if (this.cartId != that.cartId)
553 chandransh 48347
          return false;
48348
      }
48349
 
688 chandransh 48350
      boolean this_present_items = true && this.isSetItems();
48351
      boolean that_present_items = true && that.isSetItems();
48352
      if (this_present_items || that_present_items) {
48353
        if (!(this_present_items && that_present_items))
553 chandransh 48354
          return false;
688 chandransh 48355
        if (!this.items.equals(that.items))
553 chandransh 48356
          return false;
48357
      }
48358
 
48359
      return true;
48360
    }
48361
 
48362
    @Override
48363
    public int hashCode() {
48364
      return 0;
48365
    }
48366
 
3430 rajveer 48367
    public int compareTo(resetCart_args other) {
48368
      if (!getClass().equals(other.getClass())) {
48369
        return getClass().getName().compareTo(other.getClass().getName());
48370
      }
48371
 
48372
      int lastComparison = 0;
48373
      resetCart_args typedOther = (resetCart_args)other;
48374
 
48375
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48376
      if (lastComparison != 0) {
48377
        return lastComparison;
48378
      }
48379
      if (isSetCartId()) {
48380
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
48381
        if (lastComparison != 0) {
48382
          return lastComparison;
48383
        }
48384
      }
48385
      lastComparison = Boolean.valueOf(isSetItems()).compareTo(typedOther.isSetItems());
48386
      if (lastComparison != 0) {
48387
        return lastComparison;
48388
      }
48389
      if (isSetItems()) {
48390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.items, typedOther.items);
48391
        if (lastComparison != 0) {
48392
          return lastComparison;
48393
        }
48394
      }
48395
      return 0;
48396
    }
48397
 
48398
    public _Fields fieldForId(int fieldId) {
48399
      return _Fields.findByThriftId(fieldId);
48400
    }
48401
 
48402
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48403
      org.apache.thrift.protocol.TField field;
553 chandransh 48404
      iprot.readStructBegin();
48405
      while (true)
48406
      {
48407
        field = iprot.readFieldBegin();
3430 rajveer 48408
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 48409
          break;
48410
        }
3430 rajveer 48411
        switch (field.id) {
48412
          case 1: // CART_ID
48413
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48414
              this.cartId = iprot.readI64();
48415
              setCartIdIsSet(true);
48416
            } else { 
48417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48418
            }
48419
            break;
48420
          case 2: // ITEMS
48421
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48422
              {
48423
                org.apache.thrift.protocol.TMap _map64 = iprot.readMapBegin();
48424
                this.items = new HashMap<Long,Double>(2*_map64.size);
48425
                for (int _i65 = 0; _i65 < _map64.size; ++_i65)
688 chandransh 48426
                {
3430 rajveer 48427
                  long _key66; // required
48428
                  double _val67; // required
48429
                  _key66 = iprot.readI64();
48430
                  _val67 = iprot.readDouble();
48431
                  this.items.put(_key66, _val67);
688 chandransh 48432
                }
3430 rajveer 48433
                iprot.readMapEnd();
553 chandransh 48434
              }
3430 rajveer 48435
            } else { 
48436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48437
            }
48438
            break;
48439
          default:
48440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 48441
        }
3430 rajveer 48442
        iprot.readFieldEnd();
553 chandransh 48443
      }
48444
      iprot.readStructEnd();
48445
      validate();
48446
    }
48447
 
3430 rajveer 48448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 48449
      validate();
48450
 
48451
      oprot.writeStructBegin(STRUCT_DESC);
688 chandransh 48452
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
48453
      oprot.writeI64(this.cartId);
553 chandransh 48454
      oprot.writeFieldEnd();
688 chandransh 48455
      if (this.items != null) {
48456
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
48457
        {
3430 rajveer 48458
          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 48459
          for (Map.Entry<Long, Double> _iter68 : this.items.entrySet())
688 chandransh 48460
          {
3385 varun.gupt 48461
            oprot.writeI64(_iter68.getKey());
48462
            oprot.writeDouble(_iter68.getValue());
688 chandransh 48463
          }
48464
          oprot.writeMapEnd();
48465
        }
48466
        oprot.writeFieldEnd();
48467
      }
553 chandransh 48468
      oprot.writeFieldStop();
48469
      oprot.writeStructEnd();
48470
    }
48471
 
48472
    @Override
48473
    public String toString() {
688 chandransh 48474
      StringBuilder sb = new StringBuilder("resetCart_args(");
553 chandransh 48475
      boolean first = true;
48476
 
688 chandransh 48477
      sb.append("cartId:");
48478
      sb.append(this.cartId);
553 chandransh 48479
      first = false;
48480
      if (!first) sb.append(", ");
688 chandransh 48481
      sb.append("items:");
48482
      if (this.items == null) {
48483
        sb.append("null");
48484
      } else {
48485
        sb.append(this.items);
48486
      }
553 chandransh 48487
      first = false;
48488
      sb.append(")");
48489
      return sb.toString();
48490
    }
48491
 
3430 rajveer 48492
    public void validate() throws org.apache.thrift.TException {
553 chandransh 48493
      // check for required fields
48494
    }
48495
 
3430 rajveer 48496
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48497
      try {
48498
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48499
      } catch (org.apache.thrift.TException te) {
48500
        throw new java.io.IOException(te);
48501
      }
48502
    }
48503
 
48504
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48505
      try {
48506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48507
      } catch (org.apache.thrift.TException te) {
48508
        throw new java.io.IOException(te);
48509
      }
48510
    }
48511
 
553 chandransh 48512
  }
48513
 
3430 rajveer 48514
  public static class resetCart_result implements org.apache.thrift.TBase<resetCart_result, resetCart_result._Fields>, java.io.Serializable, Cloneable   {
48515
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetCart_result");
553 chandransh 48516
 
3430 rajveer 48517
    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);
48518
    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 48519
 
3430 rajveer 48520
    private boolean success; // required
48521
    private ShoppingCartException scex; // required
553 chandransh 48522
 
48523
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48524
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 48525
      SUCCESS((short)0, "success"),
48526
      SCEX((short)1, "scex");
553 chandransh 48527
 
48528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48529
 
48530
      static {
48531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48532
          byName.put(field.getFieldName(), field);
48533
        }
48534
      }
48535
 
48536
      /**
48537
       * Find the _Fields constant that matches fieldId, or null if its not found.
48538
       */
48539
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48540
        switch(fieldId) {
48541
          case 0: // SUCCESS
48542
            return SUCCESS;
48543
          case 1: // SCEX
48544
            return SCEX;
48545
          default:
48546
            return null;
48547
        }
553 chandransh 48548
      }
48549
 
48550
      /**
48551
       * Find the _Fields constant that matches fieldId, throwing an exception
48552
       * if it is not found.
48553
       */
48554
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48555
        _Fields fields = findByThriftId(fieldId);
48556
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48557
        return fields;
48558
      }
48559
 
48560
      /**
48561
       * Find the _Fields constant that matches name, or null if its not found.
48562
       */
48563
      public static _Fields findByName(String name) {
48564
        return byName.get(name);
48565
      }
48566
 
48567
      private final short _thriftId;
48568
      private final String _fieldName;
48569
 
48570
      _Fields(short thriftId, String fieldName) {
48571
        _thriftId = thriftId;
48572
        _fieldName = fieldName;
48573
      }
48574
 
48575
      public short getThriftFieldId() {
48576
        return _thriftId;
48577
      }
48578
 
48579
      public String getFieldName() {
48580
        return _fieldName;
48581
      }
48582
    }
688 chandransh 48583
 
48584
    // isset id assignments
48585
    private static final int __SUCCESS_ISSET_ID = 0;
48586
    private BitSet __isset_bit_vector = new BitSet(1);
48587
 
3430 rajveer 48588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 48589
    static {
3430 rajveer 48590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48591
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
48593
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
48595
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48596
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetCart_result.class, metaDataMap);
553 chandransh 48597
    }
48598
 
688 chandransh 48599
    public resetCart_result() {
553 chandransh 48600
    }
48601
 
688 chandransh 48602
    public resetCart_result(
48603
      boolean success,
48604
      ShoppingCartException scex)
48605
    {
48606
      this();
48607
      this.success = success;
48608
      setSuccessIsSet(true);
48609
      this.scex = scex;
48610
    }
48611
 
553 chandransh 48612
    /**
48613
     * Performs a deep copy on <i>other</i>.
48614
     */
688 chandransh 48615
    public resetCart_result(resetCart_result other) {
48616
      __isset_bit_vector.clear();
48617
      __isset_bit_vector.or(other.__isset_bit_vector);
48618
      this.success = other.success;
48619
      if (other.isSetScex()) {
48620
        this.scex = new ShoppingCartException(other.scex);
48621
      }
553 chandransh 48622
    }
48623
 
688 chandransh 48624
    public resetCart_result deepCopy() {
48625
      return new resetCart_result(this);
553 chandransh 48626
    }
48627
 
3430 rajveer 48628
    @Override
48629
    public void clear() {
48630
      setSuccessIsSet(false);
48631
      this.success = false;
48632
      this.scex = null;
553 chandransh 48633
    }
48634
 
688 chandransh 48635
    public boolean isSuccess() {
48636
      return this.success;
48637
    }
48638
 
3430 rajveer 48639
    public void setSuccess(boolean success) {
688 chandransh 48640
      this.success = success;
48641
      setSuccessIsSet(true);
48642
    }
48643
 
48644
    public void unsetSuccess() {
48645
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48646
    }
48647
 
3430 rajveer 48648
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
688 chandransh 48649
    public boolean isSetSuccess() {
48650
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48651
    }
48652
 
48653
    public void setSuccessIsSet(boolean value) {
48654
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48655
    }
48656
 
48657
    public ShoppingCartException getScex() {
48658
      return this.scex;
48659
    }
48660
 
3430 rajveer 48661
    public void setScex(ShoppingCartException scex) {
688 chandransh 48662
      this.scex = scex;
48663
    }
48664
 
48665
    public void unsetScex() {
48666
      this.scex = null;
48667
    }
48668
 
3430 rajveer 48669
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
688 chandransh 48670
    public boolean isSetScex() {
48671
      return this.scex != null;
48672
    }
48673
 
48674
    public void setScexIsSet(boolean value) {
48675
      if (!value) {
48676
        this.scex = null;
48677
      }
48678
    }
48679
 
553 chandransh 48680
    public void setFieldValue(_Fields field, Object value) {
48681
      switch (field) {
688 chandransh 48682
      case SUCCESS:
48683
        if (value == null) {
48684
          unsetSuccess();
48685
        } else {
48686
          setSuccess((Boolean)value);
48687
        }
48688
        break;
48689
 
48690
      case SCEX:
48691
        if (value == null) {
48692
          unsetScex();
48693
        } else {
48694
          setScex((ShoppingCartException)value);
48695
        }
48696
        break;
48697
 
553 chandransh 48698
      }
48699
    }
48700
 
48701
    public Object getFieldValue(_Fields field) {
48702
      switch (field) {
688 chandransh 48703
      case SUCCESS:
3430 rajveer 48704
        return Boolean.valueOf(isSuccess());
688 chandransh 48705
 
48706
      case SCEX:
48707
        return getScex();
48708
 
553 chandransh 48709
      }
48710
      throw new IllegalStateException();
48711
    }
48712
 
3430 rajveer 48713
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48714
    public boolean isSet(_Fields field) {
48715
      if (field == null) {
48716
        throw new IllegalArgumentException();
48717
      }
553 chandransh 48718
 
48719
      switch (field) {
688 chandransh 48720
      case SUCCESS:
48721
        return isSetSuccess();
48722
      case SCEX:
48723
        return isSetScex();
553 chandransh 48724
      }
48725
      throw new IllegalStateException();
48726
    }
48727
 
48728
    @Override
48729
    public boolean equals(Object that) {
48730
      if (that == null)
48731
        return false;
688 chandransh 48732
      if (that instanceof resetCart_result)
48733
        return this.equals((resetCart_result)that);
553 chandransh 48734
      return false;
48735
    }
48736
 
688 chandransh 48737
    public boolean equals(resetCart_result that) {
553 chandransh 48738
      if (that == null)
48739
        return false;
48740
 
688 chandransh 48741
      boolean this_present_success = true;
48742
      boolean that_present_success = true;
48743
      if (this_present_success || that_present_success) {
48744
        if (!(this_present_success && that_present_success))
48745
          return false;
48746
        if (this.success != that.success)
48747
          return false;
48748
      }
48749
 
48750
      boolean this_present_scex = true && this.isSetScex();
48751
      boolean that_present_scex = true && that.isSetScex();
48752
      if (this_present_scex || that_present_scex) {
48753
        if (!(this_present_scex && that_present_scex))
48754
          return false;
48755
        if (!this.scex.equals(that.scex))
48756
          return false;
48757
      }
48758
 
553 chandransh 48759
      return true;
48760
    }
48761
 
48762
    @Override
48763
    public int hashCode() {
48764
      return 0;
48765
    }
48766
 
688 chandransh 48767
    public int compareTo(resetCart_result other) {
553 chandransh 48768
      if (!getClass().equals(other.getClass())) {
48769
        return getClass().getName().compareTo(other.getClass().getName());
48770
      }
48771
 
48772
      int lastComparison = 0;
688 chandransh 48773
      resetCart_result typedOther = (resetCart_result)other;
553 chandransh 48774
 
3430 rajveer 48775
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
688 chandransh 48776
      if (lastComparison != 0) {
48777
        return lastComparison;
48778
      }
3430 rajveer 48779
      if (isSetSuccess()) {
48780
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48781
        if (lastComparison != 0) {
48782
          return lastComparison;
48783
        }
688 chandransh 48784
      }
3430 rajveer 48785
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
688 chandransh 48786
      if (lastComparison != 0) {
48787
        return lastComparison;
48788
      }
3430 rajveer 48789
      if (isSetScex()) {
48790
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
48791
        if (lastComparison != 0) {
48792
          return lastComparison;
48793
        }
688 chandransh 48794
      }
553 chandransh 48795
      return 0;
48796
    }
48797
 
3430 rajveer 48798
    public _Fields fieldForId(int fieldId) {
48799
      return _Fields.findByThriftId(fieldId);
48800
    }
48801
 
48802
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48803
      org.apache.thrift.protocol.TField field;
553 chandransh 48804
      iprot.readStructBegin();
48805
      while (true)
48806
      {
48807
        field = iprot.readFieldBegin();
3430 rajveer 48808
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 48809
          break;
48810
        }
3430 rajveer 48811
        switch (field.id) {
48812
          case 0: // SUCCESS
48813
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
48814
              this.success = iprot.readBool();
48815
              setSuccessIsSet(true);
48816
            } else { 
48817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48818
            }
48819
            break;
48820
          case 1: // SCEX
48821
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48822
              this.scex = new ShoppingCartException();
48823
              this.scex.read(iprot);
48824
            } else { 
48825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48826
            }
48827
            break;
48828
          default:
48829
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 48830
        }
3430 rajveer 48831
        iprot.readFieldEnd();
553 chandransh 48832
      }
48833
      iprot.readStructEnd();
48834
      validate();
48835
    }
48836
 
3430 rajveer 48837
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 48838
      oprot.writeStructBegin(STRUCT_DESC);
48839
 
688 chandransh 48840
      if (this.isSetSuccess()) {
48841
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48842
        oprot.writeBool(this.success);
48843
        oprot.writeFieldEnd();
48844
      } else if (this.isSetScex()) {
48845
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
48846
        this.scex.write(oprot);
48847
        oprot.writeFieldEnd();
48848
      }
553 chandransh 48849
      oprot.writeFieldStop();
48850
      oprot.writeStructEnd();
48851
    }
48852
 
48853
    @Override
48854
    public String toString() {
688 chandransh 48855
      StringBuilder sb = new StringBuilder("resetCart_result(");
553 chandransh 48856
      boolean first = true;
48857
 
688 chandransh 48858
      sb.append("success:");
48859
      sb.append(this.success);
48860
      first = false;
48861
      if (!first) sb.append(", ");
48862
      sb.append("scex:");
48863
      if (this.scex == null) {
48864
        sb.append("null");
48865
      } else {
48866
        sb.append(this.scex);
48867
      }
48868
      first = false;
553 chandransh 48869
      sb.append(")");
48870
      return sb.toString();
48871
    }
48872
 
3430 rajveer 48873
    public void validate() throws org.apache.thrift.TException {
553 chandransh 48874
      // check for required fields
48875
    }
48876
 
3430 rajveer 48877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48878
      try {
48879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48880
      } catch (org.apache.thrift.TException te) {
48881
        throw new java.io.IOException(te);
48882
      }
48883
    }
48884
 
48885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48886
      try {
48887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48888
      } catch (org.apache.thrift.TException te) {
48889
        throw new java.io.IOException(te);
48890
      }
48891
    }
48892
 
553 chandransh 48893
  }
48894
 
3430 rajveer 48895
  public static class getUserCount_args implements org.apache.thrift.TBase<getUserCount_args, getUserCount_args._Fields>, java.io.Serializable, Cloneable   {
48896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCount_args");
553 chandransh 48897
 
3430 rajveer 48898
    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 48899
 
3430 rajveer 48900
    private UserType userType; // required
553 chandransh 48901
 
48902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 48904
      /**
48905
       * 
48906
       * @see UserType
48907
       */
48908
      USER_TYPE((short)1, "userType");
553 chandransh 48909
 
48910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48911
 
48912
      static {
48913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48914
          byName.put(field.getFieldName(), field);
48915
        }
48916
      }
48917
 
48918
      /**
48919
       * Find the _Fields constant that matches fieldId, or null if its not found.
48920
       */
48921
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48922
        switch(fieldId) {
48923
          case 1: // USER_TYPE
48924
            return USER_TYPE;
48925
          default:
48926
            return null;
48927
        }
553 chandransh 48928
      }
48929
 
48930
      /**
48931
       * Find the _Fields constant that matches fieldId, throwing an exception
48932
       * if it is not found.
48933
       */
48934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48935
        _Fields fields = findByThriftId(fieldId);
48936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48937
        return fields;
48938
      }
48939
 
48940
      /**
48941
       * Find the _Fields constant that matches name, or null if its not found.
48942
       */
48943
      public static _Fields findByName(String name) {
48944
        return byName.get(name);
48945
      }
48946
 
48947
      private final short _thriftId;
48948
      private final String _fieldName;
48949
 
48950
      _Fields(short thriftId, String fieldName) {
48951
        _thriftId = thriftId;
48952
        _fieldName = fieldName;
48953
      }
48954
 
48955
      public short getThriftFieldId() {
48956
        return _thriftId;
48957
      }
48958
 
48959
      public String getFieldName() {
48960
        return _fieldName;
48961
      }
48962
    }
48963
 
48964
    // isset id assignments
48965
 
3430 rajveer 48966
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 48967
    static {
3430 rajveer 48968
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48969
      tmpMap.put(_Fields.USER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("userType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48970
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, UserType.class)));
48971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCount_args.class, metaDataMap);
553 chandransh 48973
    }
48974
 
2981 rajveer 48975
    public getUserCount_args() {
553 chandransh 48976
    }
48977
 
2981 rajveer 48978
    public getUserCount_args(
48979
      UserType userType)
553 chandransh 48980
    {
48981
      this();
2981 rajveer 48982
      this.userType = userType;
553 chandransh 48983
    }
48984
 
48985
    /**
48986
     * Performs a deep copy on <i>other</i>.
48987
     */
2981 rajveer 48988
    public getUserCount_args(getUserCount_args other) {
48989
      if (other.isSetUserType()) {
48990
        this.userType = other.userType;
48991
      }
553 chandransh 48992
    }
48993
 
2981 rajveer 48994
    public getUserCount_args deepCopy() {
48995
      return new getUserCount_args(this);
553 chandransh 48996
    }
48997
 
3430 rajveer 48998
    @Override
48999
    public void clear() {
49000
      this.userType = null;
553 chandransh 49001
    }
49002
 
2981 rajveer 49003
    /**
49004
     * 
49005
     * @see UserType
49006
     */
49007
    public UserType getUserType() {
49008
      return this.userType;
553 chandransh 49009
    }
49010
 
2981 rajveer 49011
    /**
49012
     * 
49013
     * @see UserType
49014
     */
3430 rajveer 49015
    public void setUserType(UserType userType) {
2981 rajveer 49016
      this.userType = userType;
553 chandransh 49017
    }
49018
 
2981 rajveer 49019
    public void unsetUserType() {
49020
      this.userType = null;
553 chandransh 49021
    }
49022
 
3430 rajveer 49023
    /** Returns true if field userType is set (has been assigned a value) and false otherwise */
2981 rajveer 49024
    public boolean isSetUserType() {
49025
      return this.userType != null;
553 chandransh 49026
    }
49027
 
2981 rajveer 49028
    public void setUserTypeIsSet(boolean value) {
49029
      if (!value) {
49030
        this.userType = null;
49031
      }
553 chandransh 49032
    }
49033
 
48 ashish 49034
    public void setFieldValue(_Fields field, Object value) {
49035
      switch (field) {
2981 rajveer 49036
      case USER_TYPE:
48 ashish 49037
        if (value == null) {
2981 rajveer 49038
          unsetUserType();
48 ashish 49039
        } else {
2981 rajveer 49040
          setUserType((UserType)value);
48 ashish 49041
        }
49042
        break;
49043
 
49044
      }
49045
    }
49046
 
49047
    public Object getFieldValue(_Fields field) {
49048
      switch (field) {
2981 rajveer 49049
      case USER_TYPE:
49050
        return getUserType();
48 ashish 49051
 
49052
      }
49053
      throw new IllegalStateException();
49054
    }
49055
 
3430 rajveer 49056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49057
    public boolean isSet(_Fields field) {
49058
      if (field == null) {
49059
        throw new IllegalArgumentException();
49060
      }
48 ashish 49061
 
49062
      switch (field) {
2981 rajveer 49063
      case USER_TYPE:
49064
        return isSetUserType();
48 ashish 49065
      }
49066
      throw new IllegalStateException();
49067
    }
49068
 
49069
    @Override
49070
    public boolean equals(Object that) {
49071
      if (that == null)
49072
        return false;
2981 rajveer 49073
      if (that instanceof getUserCount_args)
49074
        return this.equals((getUserCount_args)that);
48 ashish 49075
      return false;
49076
    }
49077
 
2981 rajveer 49078
    public boolean equals(getUserCount_args that) {
48 ashish 49079
      if (that == null)
49080
        return false;
49081
 
2981 rajveer 49082
      boolean this_present_userType = true && this.isSetUserType();
49083
      boolean that_present_userType = true && that.isSetUserType();
49084
      if (this_present_userType || that_present_userType) {
49085
        if (!(this_present_userType && that_present_userType))
48 ashish 49086
          return false;
2981 rajveer 49087
        if (!this.userType.equals(that.userType))
48 ashish 49088
          return false;
49089
      }
49090
 
49091
      return true;
49092
    }
49093
 
49094
    @Override
49095
    public int hashCode() {
49096
      return 0;
49097
    }
49098
 
2981 rajveer 49099
    public int compareTo(getUserCount_args other) {
48 ashish 49100
      if (!getClass().equals(other.getClass())) {
49101
        return getClass().getName().compareTo(other.getClass().getName());
49102
      }
49103
 
49104
      int lastComparison = 0;
2981 rajveer 49105
      getUserCount_args typedOther = (getUserCount_args)other;
48 ashish 49106
 
3430 rajveer 49107
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(typedOther.isSetUserType());
48 ashish 49108
      if (lastComparison != 0) {
49109
        return lastComparison;
49110
      }
3430 rajveer 49111
      if (isSetUserType()) {
49112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userType, typedOther.userType);
49113
        if (lastComparison != 0) {
49114
          return lastComparison;
49115
        }
48 ashish 49116
      }
49117
      return 0;
49118
    }
49119
 
3430 rajveer 49120
    public _Fields fieldForId(int fieldId) {
49121
      return _Fields.findByThriftId(fieldId);
49122
    }
49123
 
49124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49125
      org.apache.thrift.protocol.TField field;
48 ashish 49126
      iprot.readStructBegin();
49127
      while (true)
49128
      {
49129
        field = iprot.readFieldBegin();
3430 rajveer 49130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 49131
          break;
49132
        }
3430 rajveer 49133
        switch (field.id) {
49134
          case 1: // USER_TYPE
49135
            if (field.type == org.apache.thrift.protocol.TType.I32) {
49136
              this.userType = UserType.findByValue(iprot.readI32());
49137
            } else { 
49138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49139
            }
49140
            break;
49141
          default:
49142
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 49143
        }
3430 rajveer 49144
        iprot.readFieldEnd();
48 ashish 49145
      }
49146
      iprot.readStructEnd();
49147
      validate();
49148
    }
49149
 
3430 rajveer 49150
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 49151
      validate();
49152
 
49153
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 49154
      if (this.userType != null) {
49155
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
49156
        oprot.writeI32(this.userType.getValue());
49157
        oprot.writeFieldEnd();
49158
      }
553 chandransh 49159
      oprot.writeFieldStop();
49160
      oprot.writeStructEnd();
49161
    }
49162
 
49163
    @Override
49164
    public String toString() {
2981 rajveer 49165
      StringBuilder sb = new StringBuilder("getUserCount_args(");
553 chandransh 49166
      boolean first = true;
49167
 
2981 rajveer 49168
      sb.append("userType:");
49169
      if (this.userType == null) {
49170
        sb.append("null");
49171
      } else {
49172
        sb.append(this.userType);
49173
      }
553 chandransh 49174
      first = false;
49175
      sb.append(")");
49176
      return sb.toString();
49177
    }
49178
 
3430 rajveer 49179
    public void validate() throws org.apache.thrift.TException {
553 chandransh 49180
      // check for required fields
49181
    }
49182
 
3430 rajveer 49183
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49184
      try {
49185
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49186
      } catch (org.apache.thrift.TException te) {
49187
        throw new java.io.IOException(te);
49188
      }
49189
    }
49190
 
49191
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49192
      try {
49193
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49194
      } catch (org.apache.thrift.TException te) {
49195
        throw new java.io.IOException(te);
49196
      }
49197
    }
49198
 
553 chandransh 49199
  }
49200
 
3430 rajveer 49201
  public static class getUserCount_result implements org.apache.thrift.TBase<getUserCount_result, getUserCount_result._Fields>, java.io.Serializable, Cloneable   {
49202
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCount_result");
553 chandransh 49203
 
3430 rajveer 49204
    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 49205
 
3430 rajveer 49206
    private long success; // required
553 chandransh 49207
 
49208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49209
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 49210
      SUCCESS((short)0, "success");
553 chandransh 49211
 
49212
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49213
 
49214
      static {
49215
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49216
          byName.put(field.getFieldName(), field);
49217
        }
49218
      }
49219
 
49220
      /**
49221
       * Find the _Fields constant that matches fieldId, or null if its not found.
49222
       */
49223
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49224
        switch(fieldId) {
49225
          case 0: // SUCCESS
49226
            return SUCCESS;
49227
          default:
49228
            return null;
49229
        }
553 chandransh 49230
      }
49231
 
49232
      /**
49233
       * Find the _Fields constant that matches fieldId, throwing an exception
49234
       * if it is not found.
49235
       */
49236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49237
        _Fields fields = findByThriftId(fieldId);
49238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49239
        return fields;
49240
      }
49241
 
49242
      /**
49243
       * Find the _Fields constant that matches name, or null if its not found.
49244
       */
49245
      public static _Fields findByName(String name) {
49246
        return byName.get(name);
49247
      }
49248
 
49249
      private final short _thriftId;
49250
      private final String _fieldName;
49251
 
49252
      _Fields(short thriftId, String fieldName) {
49253
        _thriftId = thriftId;
49254
        _fieldName = fieldName;
49255
      }
49256
 
49257
      public short getThriftFieldId() {
49258
        return _thriftId;
49259
      }
49260
 
49261
      public String getFieldName() {
49262
        return _fieldName;
49263
      }
49264
    }
49265
 
49266
    // isset id assignments
2981 rajveer 49267
    private static final int __SUCCESS_ISSET_ID = 0;
49268
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 49269
 
3430 rajveer 49270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 49271
    static {
3430 rajveer 49272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49273
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49275
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49276
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCount_result.class, metaDataMap);
48 ashish 49277
    }
49278
 
2981 rajveer 49279
    public getUserCount_result() {
48 ashish 49280
    }
49281
 
2981 rajveer 49282
    public getUserCount_result(
49283
      long success)
48 ashish 49284
    {
49285
      this();
49286
      this.success = success;
2981 rajveer 49287
      setSuccessIsSet(true);
48 ashish 49288
    }
49289
 
49290
    /**
49291
     * Performs a deep copy on <i>other</i>.
49292
     */
2981 rajveer 49293
    public getUserCount_result(getUserCount_result other) {
49294
      __isset_bit_vector.clear();
49295
      __isset_bit_vector.or(other.__isset_bit_vector);
49296
      this.success = other.success;
48 ashish 49297
    }
49298
 
2981 rajveer 49299
    public getUserCount_result deepCopy() {
49300
      return new getUserCount_result(this);
48 ashish 49301
    }
49302
 
3430 rajveer 49303
    @Override
49304
    public void clear() {
49305
      setSuccessIsSet(false);
49306
      this.success = 0;
48 ashish 49307
    }
49308
 
2981 rajveer 49309
    public long getSuccess() {
48 ashish 49310
      return this.success;
49311
    }
49312
 
3430 rajveer 49313
    public void setSuccess(long success) {
48 ashish 49314
      this.success = success;
2981 rajveer 49315
      setSuccessIsSet(true);
48 ashish 49316
    }
49317
 
49318
    public void unsetSuccess() {
2981 rajveer 49319
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48 ashish 49320
    }
49321
 
3430 rajveer 49322
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 49323
    public boolean isSetSuccess() {
2981 rajveer 49324
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48 ashish 49325
    }
49326
 
49327
    public void setSuccessIsSet(boolean value) {
2981 rajveer 49328
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48 ashish 49329
    }
49330
 
49331
    public void setFieldValue(_Fields field, Object value) {
49332
      switch (field) {
49333
      case SUCCESS:
49334
        if (value == null) {
49335
          unsetSuccess();
49336
        } else {
2981 rajveer 49337
          setSuccess((Long)value);
48 ashish 49338
        }
49339
        break;
49340
 
49341
      }
49342
    }
49343
 
49344
    public Object getFieldValue(_Fields field) {
49345
      switch (field) {
49346
      case SUCCESS:
3430 rajveer 49347
        return Long.valueOf(getSuccess());
48 ashish 49348
 
49349
      }
49350
      throw new IllegalStateException();
49351
    }
49352
 
3430 rajveer 49353
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49354
    public boolean isSet(_Fields field) {
49355
      if (field == null) {
49356
        throw new IllegalArgumentException();
49357
      }
48 ashish 49358
 
49359
      switch (field) {
49360
      case SUCCESS:
49361
        return isSetSuccess();
49362
      }
49363
      throw new IllegalStateException();
49364
    }
49365
 
49366
    @Override
49367
    public boolean equals(Object that) {
49368
      if (that == null)
49369
        return false;
2981 rajveer 49370
      if (that instanceof getUserCount_result)
49371
        return this.equals((getUserCount_result)that);
48 ashish 49372
      return false;
49373
    }
49374
 
2981 rajveer 49375
    public boolean equals(getUserCount_result that) {
48 ashish 49376
      if (that == null)
49377
        return false;
49378
 
2981 rajveer 49379
      boolean this_present_success = true;
49380
      boolean that_present_success = true;
48 ashish 49381
      if (this_present_success || that_present_success) {
49382
        if (!(this_present_success && that_present_success))
49383
          return false;
2981 rajveer 49384
        if (this.success != that.success)
48 ashish 49385
          return false;
49386
      }
49387
 
49388
      return true;
49389
    }
49390
 
49391
    @Override
49392
    public int hashCode() {
49393
      return 0;
49394
    }
49395
 
2981 rajveer 49396
    public int compareTo(getUserCount_result other) {
48 ashish 49397
      if (!getClass().equals(other.getClass())) {
49398
        return getClass().getName().compareTo(other.getClass().getName());
49399
      }
49400
 
49401
      int lastComparison = 0;
2981 rajveer 49402
      getUserCount_result typedOther = (getUserCount_result)other;
48 ashish 49403
 
3430 rajveer 49404
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 49405
      if (lastComparison != 0) {
49406
        return lastComparison;
49407
      }
3430 rajveer 49408
      if (isSetSuccess()) {
49409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49410
        if (lastComparison != 0) {
49411
          return lastComparison;
49412
        }
48 ashish 49413
      }
49414
      return 0;
49415
    }
49416
 
3430 rajveer 49417
    public _Fields fieldForId(int fieldId) {
49418
      return _Fields.findByThriftId(fieldId);
49419
    }
49420
 
49421
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49422
      org.apache.thrift.protocol.TField field;
48 ashish 49423
      iprot.readStructBegin();
49424
      while (true)
49425
      {
49426
        field = iprot.readFieldBegin();
3430 rajveer 49427
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 49428
          break;
49429
        }
3430 rajveer 49430
        switch (field.id) {
49431
          case 0: // SUCCESS
49432
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49433
              this.success = iprot.readI64();
49434
              setSuccessIsSet(true);
49435
            } else { 
49436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49437
            }
49438
            break;
49439
          default:
49440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 49441
        }
3430 rajveer 49442
        iprot.readFieldEnd();
48 ashish 49443
      }
49444
      iprot.readStructEnd();
49445
      validate();
49446
    }
49447
 
3430 rajveer 49448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 49449
      oprot.writeStructBegin(STRUCT_DESC);
49450
 
49451
      if (this.isSetSuccess()) {
49452
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 49453
        oprot.writeI64(this.success);
48 ashish 49454
        oprot.writeFieldEnd();
49455
      }
49456
      oprot.writeFieldStop();
49457
      oprot.writeStructEnd();
49458
    }
49459
 
49460
    @Override
49461
    public String toString() {
2981 rajveer 49462
      StringBuilder sb = new StringBuilder("getUserCount_result(");
48 ashish 49463
      boolean first = true;
49464
 
49465
      sb.append("success:");
2981 rajveer 49466
      sb.append(this.success);
48 ashish 49467
      first = false;
49468
      sb.append(")");
49469
      return sb.toString();
49470
    }
49471
 
3430 rajveer 49472
    public void validate() throws org.apache.thrift.TException {
48 ashish 49473
      // check for required fields
49474
    }
49475
 
3430 rajveer 49476
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49477
      try {
49478
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49479
      } catch (org.apache.thrift.TException te) {
49480
        throw new java.io.IOException(te);
49481
      }
49482
    }
49483
 
49484
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49485
      try {
49486
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49487
      } catch (org.apache.thrift.TException te) {
49488
        throw new java.io.IOException(te);
49489
      }
49490
    }
49491
 
48 ashish 49492
  }
49493
 
3430 rajveer 49494
  public static class getAllUsers_args implements org.apache.thrift.TBase<getAllUsers_args, getAllUsers_args._Fields>, java.io.Serializable, Cloneable   {
49495
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsers_args");
130 ashish 49496
 
3430 rajveer 49497
    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);
49498
    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);
49499
    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 49500
 
3430 rajveer 49501
    private UserType userType; // required
49502
    private long startDate; // required
49503
    private long endDate; // required
130 ashish 49504
 
49505
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49506
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 49507
      /**
49508
       * 
49509
       * @see UserType
49510
       */
49511
      USER_TYPE((short)1, "userType"),
49512
      START_DATE((short)2, "startDate"),
49513
      END_DATE((short)3, "endDate");
130 ashish 49514
 
49515
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49516
 
49517
      static {
49518
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49519
          byName.put(field.getFieldName(), field);
49520
        }
49521
      }
49522
 
49523
      /**
49524
       * Find the _Fields constant that matches fieldId, or null if its not found.
49525
       */
49526
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49527
        switch(fieldId) {
49528
          case 1: // USER_TYPE
49529
            return USER_TYPE;
49530
          case 2: // START_DATE
49531
            return START_DATE;
49532
          case 3: // END_DATE
49533
            return END_DATE;
49534
          default:
49535
            return null;
49536
        }
130 ashish 49537
      }
49538
 
49539
      /**
49540
       * Find the _Fields constant that matches fieldId, throwing an exception
49541
       * if it is not found.
49542
       */
49543
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49544
        _Fields fields = findByThriftId(fieldId);
49545
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49546
        return fields;
49547
      }
49548
 
49549
      /**
49550
       * Find the _Fields constant that matches name, or null if its not found.
49551
       */
49552
      public static _Fields findByName(String name) {
49553
        return byName.get(name);
49554
      }
49555
 
49556
      private final short _thriftId;
49557
      private final String _fieldName;
49558
 
49559
      _Fields(short thriftId, String fieldName) {
49560
        _thriftId = thriftId;
49561
        _fieldName = fieldName;
49562
      }
49563
 
49564
      public short getThriftFieldId() {
49565
        return _thriftId;
49566
      }
49567
 
49568
      public String getFieldName() {
49569
        return _fieldName;
49570
      }
49571
    }
49572
 
49573
    // isset id assignments
2981 rajveer 49574
    private static final int __STARTDATE_ISSET_ID = 0;
49575
    private static final int __ENDDATE_ISSET_ID = 1;
553 chandransh 49576
    private BitSet __isset_bit_vector = new BitSet(2);
130 ashish 49577
 
3430 rajveer 49578
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 49579
    static {
3430 rajveer 49580
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49581
      tmpMap.put(_Fields.USER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("userType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49582
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, UserType.class)));
49583
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49585
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49586
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49587
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49588
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsers_args.class, metaDataMap);
130 ashish 49589
    }
49590
 
2981 rajveer 49591
    public getAllUsers_args() {
130 ashish 49592
    }
49593
 
2981 rajveer 49594
    public getAllUsers_args(
49595
      UserType userType,
49596
      long startDate,
49597
      long endDate)
130 ashish 49598
    {
49599
      this();
2981 rajveer 49600
      this.userType = userType;
49601
      this.startDate = startDate;
49602
      setStartDateIsSet(true);
49603
      this.endDate = endDate;
49604
      setEndDateIsSet(true);
130 ashish 49605
    }
49606
 
49607
    /**
49608
     * Performs a deep copy on <i>other</i>.
49609
     */
2981 rajveer 49610
    public getAllUsers_args(getAllUsers_args other) {
130 ashish 49611
      __isset_bit_vector.clear();
49612
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 49613
      if (other.isSetUserType()) {
49614
        this.userType = other.userType;
49615
      }
49616
      this.startDate = other.startDate;
49617
      this.endDate = other.endDate;
130 ashish 49618
    }
49619
 
2981 rajveer 49620
    public getAllUsers_args deepCopy() {
49621
      return new getAllUsers_args(this);
130 ashish 49622
    }
49623
 
3430 rajveer 49624
    @Override
49625
    public void clear() {
49626
      this.userType = null;
49627
      setStartDateIsSet(false);
49628
      this.startDate = 0;
49629
      setEndDateIsSet(false);
49630
      this.endDate = 0;
130 ashish 49631
    }
49632
 
2981 rajveer 49633
    /**
49634
     * 
49635
     * @see UserType
49636
     */
49637
    public UserType getUserType() {
49638
      return this.userType;
130 ashish 49639
    }
49640
 
2981 rajveer 49641
    /**
49642
     * 
49643
     * @see UserType
49644
     */
3430 rajveer 49645
    public void setUserType(UserType userType) {
2981 rajveer 49646
      this.userType = userType;
130 ashish 49647
    }
49648
 
2981 rajveer 49649
    public void unsetUserType() {
49650
      this.userType = null;
130 ashish 49651
    }
49652
 
3430 rajveer 49653
    /** Returns true if field userType is set (has been assigned a value) and false otherwise */
2981 rajveer 49654
    public boolean isSetUserType() {
49655
      return this.userType != null;
130 ashish 49656
    }
49657
 
2981 rajveer 49658
    public void setUserTypeIsSet(boolean value) {
49659
      if (!value) {
49660
        this.userType = null;
49661
      }
130 ashish 49662
    }
49663
 
2981 rajveer 49664
    public long getStartDate() {
49665
      return this.startDate;
553 chandransh 49666
    }
49667
 
3430 rajveer 49668
    public void setStartDate(long startDate) {
2981 rajveer 49669
      this.startDate = startDate;
49670
      setStartDateIsSet(true);
553 chandransh 49671
    }
49672
 
2981 rajveer 49673
    public void unsetStartDate() {
49674
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
553 chandransh 49675
    }
49676
 
3430 rajveer 49677
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
2981 rajveer 49678
    public boolean isSetStartDate() {
49679
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
553 chandransh 49680
    }
49681
 
2981 rajveer 49682
    public void setStartDateIsSet(boolean value) {
49683
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
553 chandransh 49684
    }
49685
 
2981 rajveer 49686
    public long getEndDate() {
49687
      return this.endDate;
49688
    }
49689
 
3430 rajveer 49690
    public void setEndDate(long endDate) {
2981 rajveer 49691
      this.endDate = endDate;
49692
      setEndDateIsSet(true);
49693
    }
49694
 
49695
    public void unsetEndDate() {
49696
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
49697
    }
49698
 
3430 rajveer 49699
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
2981 rajveer 49700
    public boolean isSetEndDate() {
49701
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
49702
    }
49703
 
49704
    public void setEndDateIsSet(boolean value) {
49705
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
49706
    }
49707
 
130 ashish 49708
    public void setFieldValue(_Fields field, Object value) {
49709
      switch (field) {
2981 rajveer 49710
      case USER_TYPE:
130 ashish 49711
        if (value == null) {
2981 rajveer 49712
          unsetUserType();
130 ashish 49713
        } else {
2981 rajveer 49714
          setUserType((UserType)value);
130 ashish 49715
        }
49716
        break;
49717
 
2981 rajveer 49718
      case START_DATE:
553 chandransh 49719
        if (value == null) {
2981 rajveer 49720
          unsetStartDate();
553 chandransh 49721
        } else {
2981 rajveer 49722
          setStartDate((Long)value);
553 chandransh 49723
        }
49724
        break;
49725
 
2981 rajveer 49726
      case END_DATE:
49727
        if (value == null) {
49728
          unsetEndDate();
49729
        } else {
49730
          setEndDate((Long)value);
49731
        }
49732
        break;
49733
 
130 ashish 49734
      }
49735
    }
49736
 
49737
    public Object getFieldValue(_Fields field) {
49738
      switch (field) {
2981 rajveer 49739
      case USER_TYPE:
49740
        return getUserType();
130 ashish 49741
 
2981 rajveer 49742
      case START_DATE:
3430 rajveer 49743
        return Long.valueOf(getStartDate());
553 chandransh 49744
 
2981 rajveer 49745
      case END_DATE:
3430 rajveer 49746
        return Long.valueOf(getEndDate());
2981 rajveer 49747
 
130 ashish 49748
      }
49749
      throw new IllegalStateException();
49750
    }
49751
 
3430 rajveer 49752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49753
    public boolean isSet(_Fields field) {
49754
      if (field == null) {
49755
        throw new IllegalArgumentException();
49756
      }
130 ashish 49757
 
49758
      switch (field) {
2981 rajveer 49759
      case USER_TYPE:
49760
        return isSetUserType();
49761
      case START_DATE:
49762
        return isSetStartDate();
49763
      case END_DATE:
49764
        return isSetEndDate();
130 ashish 49765
      }
49766
      throw new IllegalStateException();
49767
    }
49768
 
49769
    @Override
49770
    public boolean equals(Object that) {
49771
      if (that == null)
49772
        return false;
2981 rajveer 49773
      if (that instanceof getAllUsers_args)
49774
        return this.equals((getAllUsers_args)that);
130 ashish 49775
      return false;
49776
    }
49777
 
2981 rajveer 49778
    public boolean equals(getAllUsers_args that) {
130 ashish 49779
      if (that == null)
49780
        return false;
49781
 
2981 rajveer 49782
      boolean this_present_userType = true && this.isSetUserType();
49783
      boolean that_present_userType = true && that.isSetUserType();
49784
      if (this_present_userType || that_present_userType) {
49785
        if (!(this_present_userType && that_present_userType))
130 ashish 49786
          return false;
2981 rajveer 49787
        if (!this.userType.equals(that.userType))
130 ashish 49788
          return false;
49789
      }
49790
 
2981 rajveer 49791
      boolean this_present_startDate = true;
49792
      boolean that_present_startDate = true;
49793
      if (this_present_startDate || that_present_startDate) {
49794
        if (!(this_present_startDate && that_present_startDate))
553 chandransh 49795
          return false;
2981 rajveer 49796
        if (this.startDate != that.startDate)
553 chandransh 49797
          return false;
49798
      }
49799
 
2981 rajveer 49800
      boolean this_present_endDate = true;
49801
      boolean that_present_endDate = true;
49802
      if (this_present_endDate || that_present_endDate) {
49803
        if (!(this_present_endDate && that_present_endDate))
49804
          return false;
49805
        if (this.endDate != that.endDate)
49806
          return false;
49807
      }
49808
 
130 ashish 49809
      return true;
49810
    }
49811
 
49812
    @Override
49813
    public int hashCode() {
49814
      return 0;
49815
    }
49816
 
2981 rajveer 49817
    public int compareTo(getAllUsers_args other) {
130 ashish 49818
      if (!getClass().equals(other.getClass())) {
49819
        return getClass().getName().compareTo(other.getClass().getName());
49820
      }
49821
 
49822
      int lastComparison = 0;
2981 rajveer 49823
      getAllUsers_args typedOther = (getAllUsers_args)other;
130 ashish 49824
 
3430 rajveer 49825
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(typedOther.isSetUserType());
130 ashish 49826
      if (lastComparison != 0) {
49827
        return lastComparison;
49828
      }
3430 rajveer 49829
      if (isSetUserType()) {
49830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userType, typedOther.userType);
49831
        if (lastComparison != 0) {
49832
          return lastComparison;
49833
        }
130 ashish 49834
      }
3430 rajveer 49835
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
553 chandransh 49836
      if (lastComparison != 0) {
49837
        return lastComparison;
49838
      }
3430 rajveer 49839
      if (isSetStartDate()) {
49840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
49841
        if (lastComparison != 0) {
49842
          return lastComparison;
49843
        }
553 chandransh 49844
      }
3430 rajveer 49845
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
2981 rajveer 49846
      if (lastComparison != 0) {
49847
        return lastComparison;
49848
      }
3430 rajveer 49849
      if (isSetEndDate()) {
49850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
49851
        if (lastComparison != 0) {
49852
          return lastComparison;
49853
        }
2981 rajveer 49854
      }
130 ashish 49855
      return 0;
49856
    }
49857
 
3430 rajveer 49858
    public _Fields fieldForId(int fieldId) {
49859
      return _Fields.findByThriftId(fieldId);
49860
    }
49861
 
49862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49863
      org.apache.thrift.protocol.TField field;
130 ashish 49864
      iprot.readStructBegin();
49865
      while (true)
49866
      {
49867
        field = iprot.readFieldBegin();
3430 rajveer 49868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 49869
          break;
49870
        }
3430 rajveer 49871
        switch (field.id) {
49872
          case 1: // USER_TYPE
49873
            if (field.type == org.apache.thrift.protocol.TType.I32) {
49874
              this.userType = UserType.findByValue(iprot.readI32());
49875
            } else { 
49876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49877
            }
49878
            break;
49879
          case 2: // START_DATE
49880
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49881
              this.startDate = iprot.readI64();
49882
              setStartDateIsSet(true);
49883
            } else { 
49884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49885
            }
49886
            break;
49887
          case 3: // END_DATE
49888
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49889
              this.endDate = iprot.readI64();
49890
              setEndDateIsSet(true);
49891
            } else { 
49892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49893
            }
49894
            break;
49895
          default:
49896
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 49897
        }
3430 rajveer 49898
        iprot.readFieldEnd();
130 ashish 49899
      }
49900
      iprot.readStructEnd();
49901
      validate();
49902
    }
49903
 
3430 rajveer 49904
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 49905
      validate();
49906
 
49907
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 49908
      if (this.userType != null) {
49909
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
49910
        oprot.writeI32(this.userType.getValue());
49911
        oprot.writeFieldEnd();
49912
      }
49913
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
49914
      oprot.writeI64(this.startDate);
130 ashish 49915
      oprot.writeFieldEnd();
2981 rajveer 49916
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
49917
      oprot.writeI64(this.endDate);
553 chandransh 49918
      oprot.writeFieldEnd();
130 ashish 49919
      oprot.writeFieldStop();
49920
      oprot.writeStructEnd();
49921
    }
49922
 
49923
    @Override
49924
    public String toString() {
2981 rajveer 49925
      StringBuilder sb = new StringBuilder("getAllUsers_args(");
130 ashish 49926
      boolean first = true;
49927
 
2981 rajveer 49928
      sb.append("userType:");
49929
      if (this.userType == null) {
49930
        sb.append("null");
49931
      } else {
49932
        sb.append(this.userType);
49933
      }
130 ashish 49934
      first = false;
553 chandransh 49935
      if (!first) sb.append(", ");
2981 rajveer 49936
      sb.append("startDate:");
49937
      sb.append(this.startDate);
553 chandransh 49938
      first = false;
2981 rajveer 49939
      if (!first) sb.append(", ");
49940
      sb.append("endDate:");
49941
      sb.append(this.endDate);
49942
      first = false;
130 ashish 49943
      sb.append(")");
49944
      return sb.toString();
49945
    }
49946
 
3430 rajveer 49947
    public void validate() throws org.apache.thrift.TException {
130 ashish 49948
      // check for required fields
49949
    }
49950
 
3430 rajveer 49951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49952
      try {
49953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49954
      } catch (org.apache.thrift.TException te) {
49955
        throw new java.io.IOException(te);
49956
      }
49957
    }
49958
 
49959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49960
      try {
49961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49962
      } catch (org.apache.thrift.TException te) {
49963
        throw new java.io.IOException(te);
49964
      }
49965
    }
49966
 
130 ashish 49967
  }
49968
 
3430 rajveer 49969
  public static class getAllUsers_result implements org.apache.thrift.TBase<getAllUsers_result, getAllUsers_result._Fields>, java.io.Serializable, Cloneable   {
49970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsers_result");
130 ashish 49971
 
3430 rajveer 49972
    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 49973
 
3430 rajveer 49974
    private List<User> success; // required
130 ashish 49975
 
49976
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49977
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 49978
      SUCCESS((short)0, "success");
130 ashish 49979
 
49980
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49981
 
49982
      static {
49983
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49984
          byName.put(field.getFieldName(), field);
49985
        }
49986
      }
49987
 
49988
      /**
49989
       * Find the _Fields constant that matches fieldId, or null if its not found.
49990
       */
49991
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49992
        switch(fieldId) {
49993
          case 0: // SUCCESS
49994
            return SUCCESS;
49995
          default:
49996
            return null;
49997
        }
130 ashish 49998
      }
49999
 
50000
      /**
50001
       * Find the _Fields constant that matches fieldId, throwing an exception
50002
       * if it is not found.
50003
       */
50004
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50005
        _Fields fields = findByThriftId(fieldId);
50006
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50007
        return fields;
50008
      }
50009
 
50010
      /**
50011
       * Find the _Fields constant that matches name, or null if its not found.
50012
       */
50013
      public static _Fields findByName(String name) {
50014
        return byName.get(name);
50015
      }
50016
 
50017
      private final short _thriftId;
50018
      private final String _fieldName;
50019
 
50020
      _Fields(short thriftId, String fieldName) {
50021
        _thriftId = thriftId;
50022
        _fieldName = fieldName;
50023
      }
50024
 
50025
      public short getThriftFieldId() {
50026
        return _thriftId;
50027
      }
50028
 
50029
      public String getFieldName() {
50030
        return _fieldName;
50031
      }
50032
    }
50033
 
50034
    // isset id assignments
50035
 
3430 rajveer 50036
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 50037
    static {
3430 rajveer 50038
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50039
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50040
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
50041
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class))));
50042
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50043
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsers_result.class, metaDataMap);
130 ashish 50044
    }
50045
 
2981 rajveer 50046
    public getAllUsers_result() {
130 ashish 50047
    }
50048
 
2981 rajveer 50049
    public getAllUsers_result(
50050
      List<User> success)
130 ashish 50051
    {
50052
      this();
50053
      this.success = success;
50054
    }
50055
 
50056
    /**
50057
     * Performs a deep copy on <i>other</i>.
50058
     */
2981 rajveer 50059
    public getAllUsers_result(getAllUsers_result other) {
50060
      if (other.isSetSuccess()) {
50061
        List<User> __this__success = new ArrayList<User>();
50062
        for (User other_element : other.success) {
50063
          __this__success.add(new User(other_element));
50064
        }
50065
        this.success = __this__success;
130 ashish 50066
      }
50067
    }
50068
 
2981 rajveer 50069
    public getAllUsers_result deepCopy() {
50070
      return new getAllUsers_result(this);
130 ashish 50071
    }
50072
 
3430 rajveer 50073
    @Override
50074
    public void clear() {
50075
      this.success = null;
130 ashish 50076
    }
50077
 
2981 rajveer 50078
    public int getSuccessSize() {
50079
      return (this.success == null) ? 0 : this.success.size();
50080
    }
50081
 
50082
    public java.util.Iterator<User> getSuccessIterator() {
50083
      return (this.success == null) ? null : this.success.iterator();
50084
    }
50085
 
50086
    public void addToSuccess(User elem) {
50087
      if (this.success == null) {
50088
        this.success = new ArrayList<User>();
50089
      }
50090
      this.success.add(elem);
50091
    }
50092
 
50093
    public List<User> getSuccess() {
130 ashish 50094
      return this.success;
50095
    }
50096
 
3430 rajveer 50097
    public void setSuccess(List<User> success) {
130 ashish 50098
      this.success = success;
50099
    }
50100
 
50101
    public void unsetSuccess() {
2981 rajveer 50102
      this.success = null;
130 ashish 50103
    }
50104
 
3430 rajveer 50105
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
130 ashish 50106
    public boolean isSetSuccess() {
2981 rajveer 50107
      return this.success != null;
130 ashish 50108
    }
50109
 
50110
    public void setSuccessIsSet(boolean value) {
50111
      if (!value) {
2981 rajveer 50112
        this.success = null;
130 ashish 50113
      }
50114
    }
50115
 
50116
    public void setFieldValue(_Fields field, Object value) {
50117
      switch (field) {
50118
      case SUCCESS:
50119
        if (value == null) {
50120
          unsetSuccess();
50121
        } else {
2981 rajveer 50122
          setSuccess((List<User>)value);
130 ashish 50123
        }
50124
        break;
50125
 
50126
      }
50127
    }
50128
 
50129
    public Object getFieldValue(_Fields field) {
50130
      switch (field) {
50131
      case SUCCESS:
2981 rajveer 50132
        return getSuccess();
130 ashish 50133
 
50134
      }
50135
      throw new IllegalStateException();
50136
    }
50137
 
3430 rajveer 50138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50139
    public boolean isSet(_Fields field) {
50140
      if (field == null) {
50141
        throw new IllegalArgumentException();
50142
      }
130 ashish 50143
 
50144
      switch (field) {
50145
      case SUCCESS:
50146
        return isSetSuccess();
50147
      }
50148
      throw new IllegalStateException();
50149
    }
50150
 
50151
    @Override
50152
    public boolean equals(Object that) {
50153
      if (that == null)
50154
        return false;
2981 rajveer 50155
      if (that instanceof getAllUsers_result)
50156
        return this.equals((getAllUsers_result)that);
130 ashish 50157
      return false;
50158
    }
50159
 
2981 rajveer 50160
    public boolean equals(getAllUsers_result that) {
130 ashish 50161
      if (that == null)
50162
        return false;
50163
 
2981 rajveer 50164
      boolean this_present_success = true && this.isSetSuccess();
50165
      boolean that_present_success = true && that.isSetSuccess();
130 ashish 50166
      if (this_present_success || that_present_success) {
50167
        if (!(this_present_success && that_present_success))
50168
          return false;
2981 rajveer 50169
        if (!this.success.equals(that.success))
130 ashish 50170
          return false;
50171
      }
50172
 
50173
      return true;
50174
    }
50175
 
50176
    @Override
50177
    public int hashCode() {
50178
      return 0;
50179
    }
50180
 
2981 rajveer 50181
    public int compareTo(getAllUsers_result other) {
130 ashish 50182
      if (!getClass().equals(other.getClass())) {
50183
        return getClass().getName().compareTo(other.getClass().getName());
50184
      }
50185
 
50186
      int lastComparison = 0;
2981 rajveer 50187
      getAllUsers_result typedOther = (getAllUsers_result)other;
130 ashish 50188
 
3430 rajveer 50189
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
130 ashish 50190
      if (lastComparison != 0) {
50191
        return lastComparison;
50192
      }
3430 rajveer 50193
      if (isSetSuccess()) {
50194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50195
        if (lastComparison != 0) {
50196
          return lastComparison;
50197
        }
130 ashish 50198
      }
50199
      return 0;
50200
    }
50201
 
3430 rajveer 50202
    public _Fields fieldForId(int fieldId) {
50203
      return _Fields.findByThriftId(fieldId);
50204
    }
50205
 
50206
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50207
      org.apache.thrift.protocol.TField field;
130 ashish 50208
      iprot.readStructBegin();
50209
      while (true)
50210
      {
50211
        field = iprot.readFieldBegin();
3430 rajveer 50212
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 50213
          break;
50214
        }
3430 rajveer 50215
        switch (field.id) {
50216
          case 0: // SUCCESS
50217
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50218
              {
50219
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
50220
                this.success = new ArrayList<User>(_list69.size);
50221
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
2981 rajveer 50222
                {
3430 rajveer 50223
                  User _elem71; // required
50224
                  _elem71 = new User();
50225
                  _elem71.read(iprot);
50226
                  this.success.add(_elem71);
2981 rajveer 50227
                }
3430 rajveer 50228
                iprot.readListEnd();
130 ashish 50229
              }
3430 rajveer 50230
            } else { 
50231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50232
            }
50233
            break;
50234
          default:
50235
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 50236
        }
3430 rajveer 50237
        iprot.readFieldEnd();
130 ashish 50238
      }
50239
      iprot.readStructEnd();
50240
      validate();
50241
    }
50242
 
3430 rajveer 50243
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 50244
      oprot.writeStructBegin(STRUCT_DESC);
50245
 
50246
      if (this.isSetSuccess()) {
50247
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 50248
        {
3430 rajveer 50249
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 50250
          for (User _iter72 : this.success)
2981 rajveer 50251
          {
3385 varun.gupt 50252
            _iter72.write(oprot);
2981 rajveer 50253
          }
50254
          oprot.writeListEnd();
50255
        }
130 ashish 50256
        oprot.writeFieldEnd();
50257
      }
50258
      oprot.writeFieldStop();
50259
      oprot.writeStructEnd();
50260
    }
50261
 
50262
    @Override
50263
    public String toString() {
2981 rajveer 50264
      StringBuilder sb = new StringBuilder("getAllUsers_result(");
130 ashish 50265
      boolean first = true;
50266
 
50267
      sb.append("success:");
2981 rajveer 50268
      if (this.success == null) {
130 ashish 50269
        sb.append("null");
50270
      } else {
2981 rajveer 50271
        sb.append(this.success);
130 ashish 50272
      }
50273
      first = false;
50274
      sb.append(")");
50275
      return sb.toString();
50276
    }
50277
 
3430 rajveer 50278
    public void validate() throws org.apache.thrift.TException {
130 ashish 50279
      // check for required fields
50280
    }
50281
 
3430 rajveer 50282
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50283
      try {
50284
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50285
      } catch (org.apache.thrift.TException te) {
50286
        throw new java.io.IOException(te);
50287
      }
50288
    }
50289
 
50290
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50291
      try {
50292
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50293
      } catch (org.apache.thrift.TException te) {
50294
        throw new java.io.IOException(te);
50295
      }
50296
    }
50297
 
130 ashish 50298
  }
50299
 
3430 rajveer 50300
  public static class putUserNote_args implements org.apache.thrift.TBase<putUserNote_args, putUserNote_args._Fields>, java.io.Serializable, Cloneable   {
50301
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putUserNote_args");
130 ashish 50302
 
3430 rajveer 50303
    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);
50304
    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);
50305
    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);
50306
    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 50307
 
3430 rajveer 50308
    private long user_id; // required
50309
    private long entity_id; // required
50310
    private String slide; // required
50311
    private String note; // required
130 ashish 50312
 
50313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50315
      USER_ID((short)1, "user_id"),
50316
      ENTITY_ID((short)2, "entity_id"),
50317
      SLIDE((short)3, "slide"),
50318
      NOTE((short)4, "note");
130 ashish 50319
 
50320
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50321
 
50322
      static {
50323
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50324
          byName.put(field.getFieldName(), field);
50325
        }
50326
      }
50327
 
50328
      /**
50329
       * Find the _Fields constant that matches fieldId, or null if its not found.
50330
       */
50331
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50332
        switch(fieldId) {
50333
          case 1: // USER_ID
50334
            return USER_ID;
50335
          case 2: // ENTITY_ID
50336
            return ENTITY_ID;
50337
          case 3: // SLIDE
50338
            return SLIDE;
50339
          case 4: // NOTE
50340
            return NOTE;
50341
          default:
50342
            return null;
50343
        }
130 ashish 50344
      }
50345
 
50346
      /**
50347
       * Find the _Fields constant that matches fieldId, throwing an exception
50348
       * if it is not found.
50349
       */
50350
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50351
        _Fields fields = findByThriftId(fieldId);
50352
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50353
        return fields;
50354
      }
50355
 
50356
      /**
50357
       * Find the _Fields constant that matches name, or null if its not found.
50358
       */
50359
      public static _Fields findByName(String name) {
50360
        return byName.get(name);
50361
      }
50362
 
50363
      private final short _thriftId;
50364
      private final String _fieldName;
50365
 
50366
      _Fields(short thriftId, String fieldName) {
50367
        _thriftId = thriftId;
50368
        _fieldName = fieldName;
50369
      }
50370
 
50371
      public short getThriftFieldId() {
50372
        return _thriftId;
50373
      }
50374
 
50375
      public String getFieldName() {
50376
        return _fieldName;
50377
      }
50378
    }
50379
 
50380
    // isset id assignments
2981 rajveer 50381
    private static final int __USER_ID_ISSET_ID = 0;
50382
    private static final int __ENTITY_ID_ISSET_ID = 1;
553 chandransh 50383
    private BitSet __isset_bit_vector = new BitSet(2);
130 ashish 50384
 
3430 rajveer 50385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 50386
    static {
3430 rajveer 50387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50388
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50390
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50391
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50392
      tmpMap.put(_Fields.SLIDE, new org.apache.thrift.meta_data.FieldMetaData("slide", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
50394
      tmpMap.put(_Fields.NOTE, new org.apache.thrift.meta_data.FieldMetaData("note", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
50396
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50397
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putUserNote_args.class, metaDataMap);
130 ashish 50398
    }
50399
 
2981 rajveer 50400
    public putUserNote_args() {
130 ashish 50401
    }
50402
 
2981 rajveer 50403
    public putUserNote_args(
50404
      long user_id,
50405
      long entity_id,
50406
      String slide,
50407
      String note)
130 ashish 50408
    {
50409
      this();
2981 rajveer 50410
      this.user_id = user_id;
50411
      setUser_idIsSet(true);
50412
      this.entity_id = entity_id;
50413
      setEntity_idIsSet(true);
50414
      this.slide = slide;
50415
      this.note = note;
130 ashish 50416
    }
50417
 
50418
    /**
50419
     * Performs a deep copy on <i>other</i>.
50420
     */
2981 rajveer 50421
    public putUserNote_args(putUserNote_args other) {
130 ashish 50422
      __isset_bit_vector.clear();
50423
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 50424
      this.user_id = other.user_id;
50425
      this.entity_id = other.entity_id;
50426
      if (other.isSetSlide()) {
50427
        this.slide = other.slide;
50428
      }
50429
      if (other.isSetNote()) {
50430
        this.note = other.note;
50431
      }
553 chandransh 50432
    }
50433
 
2981 rajveer 50434
    public putUserNote_args deepCopy() {
50435
      return new putUserNote_args(this);
553 chandransh 50436
    }
50437
 
3430 rajveer 50438
    @Override
50439
    public void clear() {
50440
      setUser_idIsSet(false);
50441
      this.user_id = 0;
50442
      setEntity_idIsSet(false);
50443
      this.entity_id = 0;
50444
      this.slide = null;
50445
      this.note = null;
553 chandransh 50446
    }
50447
 
2981 rajveer 50448
    public long getUser_id() {
50449
      return this.user_id;
553 chandransh 50450
    }
50451
 
3430 rajveer 50452
    public void setUser_id(long user_id) {
2981 rajveer 50453
      this.user_id = user_id;
50454
      setUser_idIsSet(true);
553 chandransh 50455
    }
50456
 
2981 rajveer 50457
    public void unsetUser_id() {
50458
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
553 chandransh 50459
    }
50460
 
3430 rajveer 50461
    /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
2981 rajveer 50462
    public boolean isSetUser_id() {
50463
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
553 chandransh 50464
    }
50465
 
2981 rajveer 50466
    public void setUser_idIsSet(boolean value) {
50467
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
553 chandransh 50468
    }
50469
 
2981 rajveer 50470
    public long getEntity_id() {
50471
      return this.entity_id;
553 chandransh 50472
    }
50473
 
3430 rajveer 50474
    public void setEntity_id(long entity_id) {
2981 rajveer 50475
      this.entity_id = entity_id;
50476
      setEntity_idIsSet(true);
553 chandransh 50477
    }
50478
 
2981 rajveer 50479
    public void unsetEntity_id() {
50480
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
553 chandransh 50481
    }
50482
 
3430 rajveer 50483
    /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
2981 rajveer 50484
    public boolean isSetEntity_id() {
50485
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
553 chandransh 50486
    }
50487
 
2981 rajveer 50488
    public void setEntity_idIsSet(boolean value) {
50489
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
553 chandransh 50490
    }
50491
 
2981 rajveer 50492
    public String getSlide() {
50493
      return this.slide;
50494
    }
50495
 
3430 rajveer 50496
    public void setSlide(String slide) {
2981 rajveer 50497
      this.slide = slide;
50498
    }
50499
 
50500
    public void unsetSlide() {
50501
      this.slide = null;
50502
    }
50503
 
3430 rajveer 50504
    /** Returns true if field slide is set (has been assigned a value) and false otherwise */
2981 rajveer 50505
    public boolean isSetSlide() {
50506
      return this.slide != null;
50507
    }
50508
 
50509
    public void setSlideIsSet(boolean value) {
50510
      if (!value) {
50511
        this.slide = null;
50512
      }
50513
    }
50514
 
50515
    public String getNote() {
50516
      return this.note;
50517
    }
50518
 
3430 rajveer 50519
    public void setNote(String note) {
2981 rajveer 50520
      this.note = note;
50521
    }
50522
 
50523
    public void unsetNote() {
50524
      this.note = null;
50525
    }
50526
 
3430 rajveer 50527
    /** Returns true if field note is set (has been assigned a value) and false otherwise */
2981 rajveer 50528
    public boolean isSetNote() {
50529
      return this.note != null;
50530
    }
50531
 
50532
    public void setNoteIsSet(boolean value) {
50533
      if (!value) {
50534
        this.note = null;
50535
      }
50536
    }
50537
 
553 chandransh 50538
    public void setFieldValue(_Fields field, Object value) {
50539
      switch (field) {
50540
      case USER_ID:
50541
        if (value == null) {
2981 rajveer 50542
          unsetUser_id();
553 chandransh 50543
        } else {
2981 rajveer 50544
          setUser_id((Long)value);
553 chandransh 50545
        }
50546
        break;
50547
 
2981 rajveer 50548
      case ENTITY_ID:
553 chandransh 50549
        if (value == null) {
2981 rajveer 50550
          unsetEntity_id();
553 chandransh 50551
        } else {
2981 rajveer 50552
          setEntity_id((Long)value);
553 chandransh 50553
        }
50554
        break;
50555
 
2981 rajveer 50556
      case SLIDE:
50557
        if (value == null) {
50558
          unsetSlide();
50559
        } else {
50560
          setSlide((String)value);
50561
        }
50562
        break;
50563
 
50564
      case NOTE:
50565
        if (value == null) {
50566
          unsetNote();
50567
        } else {
50568
          setNote((String)value);
50569
        }
50570
        break;
50571
 
130 ashish 50572
      }
50573
    }
50574
 
553 chandransh 50575
    public Object getFieldValue(_Fields field) {
50576
      switch (field) {
50577
      case USER_ID:
3430 rajveer 50578
        return Long.valueOf(getUser_id());
553 chandransh 50579
 
2981 rajveer 50580
      case ENTITY_ID:
3430 rajveer 50581
        return Long.valueOf(getEntity_id());
553 chandransh 50582
 
2981 rajveer 50583
      case SLIDE:
50584
        return getSlide();
50585
 
50586
      case NOTE:
50587
        return getNote();
50588
 
553 chandransh 50589
      }
50590
      throw new IllegalStateException();
50591
    }
50592
 
3430 rajveer 50593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50594
    public boolean isSet(_Fields field) {
50595
      if (field == null) {
50596
        throw new IllegalArgumentException();
50597
      }
553 chandransh 50598
 
50599
      switch (field) {
50600
      case USER_ID:
2981 rajveer 50601
        return isSetUser_id();
50602
      case ENTITY_ID:
50603
        return isSetEntity_id();
50604
      case SLIDE:
50605
        return isSetSlide();
50606
      case NOTE:
50607
        return isSetNote();
553 chandransh 50608
      }
50609
      throw new IllegalStateException();
50610
    }
50611
 
50612
    @Override
50613
    public boolean equals(Object that) {
50614
      if (that == null)
50615
        return false;
2981 rajveer 50616
      if (that instanceof putUserNote_args)
50617
        return this.equals((putUserNote_args)that);
553 chandransh 50618
      return false;
50619
    }
50620
 
2981 rajveer 50621
    public boolean equals(putUserNote_args that) {
553 chandransh 50622
      if (that == null)
50623
        return false;
50624
 
2981 rajveer 50625
      boolean this_present_user_id = true;
50626
      boolean that_present_user_id = true;
50627
      if (this_present_user_id || that_present_user_id) {
50628
        if (!(this_present_user_id && that_present_user_id))
553 chandransh 50629
          return false;
2981 rajveer 50630
        if (this.user_id != that.user_id)
553 chandransh 50631
          return false;
50632
      }
50633
 
2981 rajveer 50634
      boolean this_present_entity_id = true;
50635
      boolean that_present_entity_id = true;
50636
      if (this_present_entity_id || that_present_entity_id) {
50637
        if (!(this_present_entity_id && that_present_entity_id))
553 chandransh 50638
          return false;
2981 rajveer 50639
        if (this.entity_id != that.entity_id)
553 chandransh 50640
          return false;
50641
      }
50642
 
2981 rajveer 50643
      boolean this_present_slide = true && this.isSetSlide();
50644
      boolean that_present_slide = true && that.isSetSlide();
50645
      if (this_present_slide || that_present_slide) {
50646
        if (!(this_present_slide && that_present_slide))
50647
          return false;
50648
        if (!this.slide.equals(that.slide))
50649
          return false;
50650
      }
50651
 
50652
      boolean this_present_note = true && this.isSetNote();
50653
      boolean that_present_note = true && that.isSetNote();
50654
      if (this_present_note || that_present_note) {
50655
        if (!(this_present_note && that_present_note))
50656
          return false;
50657
        if (!this.note.equals(that.note))
50658
          return false;
50659
      }
50660
 
553 chandransh 50661
      return true;
50662
    }
50663
 
50664
    @Override
50665
    public int hashCode() {
50666
      return 0;
50667
    }
50668
 
2981 rajveer 50669
    public int compareTo(putUserNote_args other) {
553 chandransh 50670
      if (!getClass().equals(other.getClass())) {
50671
        return getClass().getName().compareTo(other.getClass().getName());
50672
      }
50673
 
50674
      int lastComparison = 0;
2981 rajveer 50675
      putUserNote_args typedOther = (putUserNote_args)other;
553 chandransh 50676
 
3430 rajveer 50677
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
553 chandransh 50678
      if (lastComparison != 0) {
50679
        return lastComparison;
50680
      }
3430 rajveer 50681
      if (isSetUser_id()) {
50682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
50683
        if (lastComparison != 0) {
50684
          return lastComparison;
50685
        }
553 chandransh 50686
      }
3430 rajveer 50687
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
553 chandransh 50688
      if (lastComparison != 0) {
50689
        return lastComparison;
50690
      }
3430 rajveer 50691
      if (isSetEntity_id()) {
50692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
50693
        if (lastComparison != 0) {
50694
          return lastComparison;
50695
        }
553 chandransh 50696
      }
3430 rajveer 50697
      lastComparison = Boolean.valueOf(isSetSlide()).compareTo(typedOther.isSetSlide());
2981 rajveer 50698
      if (lastComparison != 0) {
50699
        return lastComparison;
50700
      }
3430 rajveer 50701
      if (isSetSlide()) {
50702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slide, typedOther.slide);
50703
        if (lastComparison != 0) {
50704
          return lastComparison;
50705
        }
2981 rajveer 50706
      }
3430 rajveer 50707
      lastComparison = Boolean.valueOf(isSetNote()).compareTo(typedOther.isSetNote());
2981 rajveer 50708
      if (lastComparison != 0) {
50709
        return lastComparison;
50710
      }
3430 rajveer 50711
      if (isSetNote()) {
50712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.note, typedOther.note);
50713
        if (lastComparison != 0) {
50714
          return lastComparison;
50715
        }
2981 rajveer 50716
      }
553 chandransh 50717
      return 0;
50718
    }
50719
 
3430 rajveer 50720
    public _Fields fieldForId(int fieldId) {
50721
      return _Fields.findByThriftId(fieldId);
50722
    }
50723
 
50724
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50725
      org.apache.thrift.protocol.TField field;
553 chandransh 50726
      iprot.readStructBegin();
50727
      while (true)
50728
      {
50729
        field = iprot.readFieldBegin();
3430 rajveer 50730
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 50731
          break;
50732
        }
3430 rajveer 50733
        switch (field.id) {
50734
          case 1: // USER_ID
50735
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50736
              this.user_id = iprot.readI64();
50737
              setUser_idIsSet(true);
50738
            } else { 
50739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50740
            }
50741
            break;
50742
          case 2: // ENTITY_ID
50743
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50744
              this.entity_id = iprot.readI64();
50745
              setEntity_idIsSet(true);
50746
            } else { 
50747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50748
            }
50749
            break;
50750
          case 3: // SLIDE
50751
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
50752
              this.slide = iprot.readString();
50753
            } else { 
50754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50755
            }
50756
            break;
50757
          case 4: // NOTE
50758
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
50759
              this.note = iprot.readString();
50760
            } else { 
50761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50762
            }
50763
            break;
50764
          default:
50765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 50766
        }
3430 rajveer 50767
        iprot.readFieldEnd();
553 chandransh 50768
      }
50769
      iprot.readStructEnd();
50770
      validate();
50771
    }
50772
 
3430 rajveer 50773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 50774
      validate();
50775
 
50776
      oprot.writeStructBegin(STRUCT_DESC);
50777
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 50778
      oprot.writeI64(this.user_id);
553 chandransh 50779
      oprot.writeFieldEnd();
2981 rajveer 50780
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
50781
      oprot.writeI64(this.entity_id);
553 chandransh 50782
      oprot.writeFieldEnd();
2981 rajveer 50783
      if (this.slide != null) {
50784
        oprot.writeFieldBegin(SLIDE_FIELD_DESC);
50785
        oprot.writeString(this.slide);
50786
        oprot.writeFieldEnd();
50787
      }
50788
      if (this.note != null) {
50789
        oprot.writeFieldBegin(NOTE_FIELD_DESC);
50790
        oprot.writeString(this.note);
50791
        oprot.writeFieldEnd();
50792
      }
553 chandransh 50793
      oprot.writeFieldStop();
50794
      oprot.writeStructEnd();
50795
    }
50796
 
50797
    @Override
50798
    public String toString() {
2981 rajveer 50799
      StringBuilder sb = new StringBuilder("putUserNote_args(");
553 chandransh 50800
      boolean first = true;
50801
 
2981 rajveer 50802
      sb.append("user_id:");
50803
      sb.append(this.user_id);
553 chandransh 50804
      first = false;
50805
      if (!first) sb.append(", ");
2981 rajveer 50806
      sb.append("entity_id:");
50807
      sb.append(this.entity_id);
553 chandransh 50808
      first = false;
2981 rajveer 50809
      if (!first) sb.append(", ");
50810
      sb.append("slide:");
50811
      if (this.slide == null) {
50812
        sb.append("null");
50813
      } else {
50814
        sb.append(this.slide);
50815
      }
50816
      first = false;
50817
      if (!first) sb.append(", ");
50818
      sb.append("note:");
50819
      if (this.note == null) {
50820
        sb.append("null");
50821
      } else {
50822
        sb.append(this.note);
50823
      }
50824
      first = false;
553 chandransh 50825
      sb.append(")");
50826
      return sb.toString();
50827
    }
50828
 
3430 rajveer 50829
    public void validate() throws org.apache.thrift.TException {
553 chandransh 50830
      // check for required fields
50831
    }
50832
 
3430 rajveer 50833
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50834
      try {
50835
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50836
      } catch (org.apache.thrift.TException te) {
50837
        throw new java.io.IOException(te);
50838
      }
50839
    }
50840
 
50841
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50842
      try {
50843
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
50844
        __isset_bit_vector = new BitSet(1);
50845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50846
      } catch (org.apache.thrift.TException te) {
50847
        throw new java.io.IOException(te);
50848
      }
50849
    }
50850
 
553 chandransh 50851
  }
50852
 
3430 rajveer 50853
  public static class putUserNote_result implements org.apache.thrift.TBase<putUserNote_result, putUserNote_result._Fields>, java.io.Serializable, Cloneable   {
50854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putUserNote_result");
553 chandransh 50855
 
50856
 
50857
 
50858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50860
;
553 chandransh 50861
 
50862
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50863
 
50864
      static {
50865
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50866
          byName.put(field.getFieldName(), field);
50867
        }
50868
      }
50869
 
50870
      /**
50871
       * Find the _Fields constant that matches fieldId, or null if its not found.
50872
       */
50873
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50874
        switch(fieldId) {
50875
          default:
50876
            return null;
50877
        }
553 chandransh 50878
      }
50879
 
50880
      /**
50881
       * Find the _Fields constant that matches fieldId, throwing an exception
50882
       * if it is not found.
50883
       */
50884
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50885
        _Fields fields = findByThriftId(fieldId);
50886
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50887
        return fields;
50888
      }
50889
 
50890
      /**
50891
       * Find the _Fields constant that matches name, or null if its not found.
50892
       */
50893
      public static _Fields findByName(String name) {
50894
        return byName.get(name);
50895
      }
50896
 
50897
      private final short _thriftId;
50898
      private final String _fieldName;
50899
 
50900
      _Fields(short thriftId, String fieldName) {
50901
        _thriftId = thriftId;
50902
        _fieldName = fieldName;
50903
      }
50904
 
50905
      public short getThriftFieldId() {
50906
        return _thriftId;
50907
      }
50908
 
50909
      public String getFieldName() {
50910
        return _fieldName;
50911
      }
50912
    }
3430 rajveer 50913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 50914
    static {
3430 rajveer 50915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50916
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50917
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putUserNote_result.class, metaDataMap);
553 chandransh 50918
    }
50919
 
2981 rajveer 50920
    public putUserNote_result() {
553 chandransh 50921
    }
50922
 
50923
    /**
50924
     * Performs a deep copy on <i>other</i>.
50925
     */
2981 rajveer 50926
    public putUserNote_result(putUserNote_result other) {
553 chandransh 50927
    }
50928
 
2981 rajveer 50929
    public putUserNote_result deepCopy() {
50930
      return new putUserNote_result(this);
553 chandransh 50931
    }
50932
 
3430 rajveer 50933
    @Override
50934
    public void clear() {
130 ashish 50935
    }
50936
 
553 chandransh 50937
    public void setFieldValue(_Fields field, Object value) {
50938
      switch (field) {
50939
      }
130 ashish 50940
    }
50941
 
553 chandransh 50942
    public Object getFieldValue(_Fields field) {
50943
      switch (field) {
50944
      }
50945
      throw new IllegalStateException();
50946
    }
50947
 
3430 rajveer 50948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50949
    public boolean isSet(_Fields field) {
50950
      if (field == null) {
50951
        throw new IllegalArgumentException();
50952
      }
553 chandransh 50953
 
50954
      switch (field) {
50955
      }
50956
      throw new IllegalStateException();
50957
    }
50958
 
50959
    @Override
50960
    public boolean equals(Object that) {
50961
      if (that == null)
50962
        return false;
2981 rajveer 50963
      if (that instanceof putUserNote_result)
50964
        return this.equals((putUserNote_result)that);
553 chandransh 50965
      return false;
50966
    }
50967
 
2981 rajveer 50968
    public boolean equals(putUserNote_result that) {
553 chandransh 50969
      if (that == null)
50970
        return false;
50971
 
50972
      return true;
50973
    }
50974
 
50975
    @Override
50976
    public int hashCode() {
50977
      return 0;
50978
    }
50979
 
2981 rajveer 50980
    public int compareTo(putUserNote_result other) {
553 chandransh 50981
      if (!getClass().equals(other.getClass())) {
50982
        return getClass().getName().compareTo(other.getClass().getName());
50983
      }
50984
 
50985
      int lastComparison = 0;
2981 rajveer 50986
      putUserNote_result typedOther = (putUserNote_result)other;
553 chandransh 50987
 
50988
      return 0;
50989
    }
50990
 
3430 rajveer 50991
    public _Fields fieldForId(int fieldId) {
50992
      return _Fields.findByThriftId(fieldId);
50993
    }
50994
 
50995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50996
      org.apache.thrift.protocol.TField field;
553 chandransh 50997
      iprot.readStructBegin();
50998
      while (true)
50999
      {
51000
        field = iprot.readFieldBegin();
3430 rajveer 51001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 51002
          break;
51003
        }
3430 rajveer 51004
        switch (field.id) {
51005
          default:
51006
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 51007
        }
3430 rajveer 51008
        iprot.readFieldEnd();
553 chandransh 51009
      }
51010
      iprot.readStructEnd();
51011
      validate();
51012
    }
51013
 
3430 rajveer 51014
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 51015
      oprot.writeStructBegin(STRUCT_DESC);
51016
 
51017
      oprot.writeFieldStop();
51018
      oprot.writeStructEnd();
51019
    }
51020
 
51021
    @Override
51022
    public String toString() {
2981 rajveer 51023
      StringBuilder sb = new StringBuilder("putUserNote_result(");
553 chandransh 51024
      boolean first = true;
51025
 
51026
      sb.append(")");
51027
      return sb.toString();
51028
    }
51029
 
3430 rajveer 51030
    public void validate() throws org.apache.thrift.TException {
553 chandransh 51031
      // check for required fields
51032
    }
51033
 
3430 rajveer 51034
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51035
      try {
51036
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51037
      } catch (org.apache.thrift.TException te) {
51038
        throw new java.io.IOException(te);
51039
      }
51040
    }
51041
 
51042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51043
      try {
51044
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51045
      } catch (org.apache.thrift.TException te) {
51046
        throw new java.io.IOException(te);
51047
      }
51048
    }
51049
 
553 chandransh 51050
  }
51051
 
3430 rajveer 51052
  public static class getUserNotes_args implements org.apache.thrift.TBase<getUserNotes_args, getUserNotes_args._Fields>, java.io.Serializable, Cloneable   {
51053
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserNotes_args");
553 chandransh 51054
 
3430 rajveer 51055
    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);
51056
    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 51057
 
3430 rajveer 51058
    private long user_id; // required
51059
    private long entity_id; // required
553 chandransh 51060
 
51061
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51062
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 51063
      USER_ID((short)1, "user_id"),
51064
      ENTITY_ID((short)2, "entity_id");
553 chandransh 51065
 
51066
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51067
 
51068
      static {
51069
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51070
          byName.put(field.getFieldName(), field);
51071
        }
51072
      }
51073
 
51074
      /**
51075
       * Find the _Fields constant that matches fieldId, or null if its not found.
51076
       */
51077
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51078
        switch(fieldId) {
51079
          case 1: // USER_ID
51080
            return USER_ID;
51081
          case 2: // ENTITY_ID
51082
            return ENTITY_ID;
51083
          default:
51084
            return null;
51085
        }
553 chandransh 51086
      }
51087
 
51088
      /**
51089
       * Find the _Fields constant that matches fieldId, throwing an exception
51090
       * if it is not found.
51091
       */
51092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51093
        _Fields fields = findByThriftId(fieldId);
51094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51095
        return fields;
51096
      }
51097
 
51098
      /**
51099
       * Find the _Fields constant that matches name, or null if its not found.
51100
       */
51101
      public static _Fields findByName(String name) {
51102
        return byName.get(name);
51103
      }
51104
 
51105
      private final short _thriftId;
51106
      private final String _fieldName;
51107
 
51108
      _Fields(short thriftId, String fieldName) {
51109
        _thriftId = thriftId;
51110
        _fieldName = fieldName;
51111
      }
51112
 
51113
      public short getThriftFieldId() {
51114
        return _thriftId;
51115
      }
51116
 
51117
      public String getFieldName() {
51118
        return _fieldName;
51119
      }
51120
    }
51121
 
51122
    // isset id assignments
2981 rajveer 51123
    private static final int __USER_ID_ISSET_ID = 0;
51124
    private static final int __ENTITY_ID_ISSET_ID = 1;
771 rajveer 51125
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 51126
 
3430 rajveer 51127
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 51128
    static {
3430 rajveer 51129
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51130
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51132
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserNotes_args.class, metaDataMap);
553 chandransh 51136
    }
51137
 
2981 rajveer 51138
    public getUserNotes_args() {
553 chandransh 51139
    }
51140
 
2981 rajveer 51141
    public getUserNotes_args(
51142
      long user_id,
51143
      long entity_id)
553 chandransh 51144
    {
51145
      this();
2981 rajveer 51146
      this.user_id = user_id;
51147
      setUser_idIsSet(true);
51148
      this.entity_id = entity_id;
51149
      setEntity_idIsSet(true);
553 chandransh 51150
    }
51151
 
51152
    /**
51153
     * Performs a deep copy on <i>other</i>.
51154
     */
2981 rajveer 51155
    public getUserNotes_args(getUserNotes_args other) {
553 chandransh 51156
      __isset_bit_vector.clear();
51157
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 51158
      this.user_id = other.user_id;
51159
      this.entity_id = other.entity_id;
553 chandransh 51160
    }
51161
 
2981 rajveer 51162
    public getUserNotes_args deepCopy() {
51163
      return new getUserNotes_args(this);
553 chandransh 51164
    }
51165
 
3430 rajveer 51166
    @Override
51167
    public void clear() {
51168
      setUser_idIsSet(false);
51169
      this.user_id = 0;
51170
      setEntity_idIsSet(false);
51171
      this.entity_id = 0;
553 chandransh 51172
    }
51173
 
2981 rajveer 51174
    public long getUser_id() {
51175
      return this.user_id;
553 chandransh 51176
    }
51177
 
3430 rajveer 51178
    public void setUser_id(long user_id) {
2981 rajveer 51179
      this.user_id = user_id;
51180
      setUser_idIsSet(true);
130 ashish 51181
    }
51182
 
2981 rajveer 51183
    public void unsetUser_id() {
51184
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
130 ashish 51185
    }
51186
 
3430 rajveer 51187
    /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
2981 rajveer 51188
    public boolean isSetUser_id() {
51189
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
130 ashish 51190
    }
51191
 
2981 rajveer 51192
    public void setUser_idIsSet(boolean value) {
51193
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
130 ashish 51194
    }
51195
 
2981 rajveer 51196
    public long getEntity_id() {
51197
      return this.entity_id;
553 chandransh 51198
    }
51199
 
3430 rajveer 51200
    public void setEntity_id(long entity_id) {
2981 rajveer 51201
      this.entity_id = entity_id;
51202
      setEntity_idIsSet(true);
553 chandransh 51203
    }
51204
 
2981 rajveer 51205
    public void unsetEntity_id() {
51206
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
553 chandransh 51207
    }
51208
 
3430 rajveer 51209
    /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
2981 rajveer 51210
    public boolean isSetEntity_id() {
51211
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
553 chandransh 51212
    }
51213
 
2981 rajveer 51214
    public void setEntity_idIsSet(boolean value) {
51215
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
553 chandransh 51216
    }
51217
 
130 ashish 51218
    public void setFieldValue(_Fields field, Object value) {
51219
      switch (field) {
771 rajveer 51220
      case USER_ID:
130 ashish 51221
        if (value == null) {
2981 rajveer 51222
          unsetUser_id();
130 ashish 51223
        } else {
2981 rajveer 51224
          setUser_id((Long)value);
130 ashish 51225
        }
51226
        break;
51227
 
2981 rajveer 51228
      case ENTITY_ID:
130 ashish 51229
        if (value == null) {
2981 rajveer 51230
          unsetEntity_id();
130 ashish 51231
        } else {
2981 rajveer 51232
          setEntity_id((Long)value);
130 ashish 51233
        }
51234
        break;
51235
 
51236
      }
51237
    }
51238
 
51239
    public Object getFieldValue(_Fields field) {
51240
      switch (field) {
771 rajveer 51241
      case USER_ID:
3430 rajveer 51242
        return Long.valueOf(getUser_id());
771 rajveer 51243
 
2981 rajveer 51244
      case ENTITY_ID:
3430 rajveer 51245
        return Long.valueOf(getEntity_id());
130 ashish 51246
 
51247
      }
51248
      throw new IllegalStateException();
51249
    }
51250
 
3430 rajveer 51251
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51252
    public boolean isSet(_Fields field) {
51253
      if (field == null) {
51254
        throw new IllegalArgumentException();
51255
      }
130 ashish 51256
 
51257
      switch (field) {
771 rajveer 51258
      case USER_ID:
2981 rajveer 51259
        return isSetUser_id();
51260
      case ENTITY_ID:
51261
        return isSetEntity_id();
130 ashish 51262
      }
51263
      throw new IllegalStateException();
51264
    }
51265
 
51266
    @Override
51267
    public boolean equals(Object that) {
51268
      if (that == null)
51269
        return false;
2981 rajveer 51270
      if (that instanceof getUserNotes_args)
51271
        return this.equals((getUserNotes_args)that);
130 ashish 51272
      return false;
51273
    }
51274
 
2981 rajveer 51275
    public boolean equals(getUserNotes_args that) {
130 ashish 51276
      if (that == null)
51277
        return false;
51278
 
2981 rajveer 51279
      boolean this_present_user_id = true;
51280
      boolean that_present_user_id = true;
51281
      if (this_present_user_id || that_present_user_id) {
51282
        if (!(this_present_user_id && that_present_user_id))
130 ashish 51283
          return false;
2981 rajveer 51284
        if (this.user_id != that.user_id)
130 ashish 51285
          return false;
51286
      }
51287
 
2981 rajveer 51288
      boolean this_present_entity_id = true;
51289
      boolean that_present_entity_id = true;
51290
      if (this_present_entity_id || that_present_entity_id) {
51291
        if (!(this_present_entity_id && that_present_entity_id))
130 ashish 51292
          return false;
2981 rajveer 51293
        if (this.entity_id != that.entity_id)
130 ashish 51294
          return false;
51295
      }
51296
 
51297
      return true;
51298
    }
51299
 
51300
    @Override
51301
    public int hashCode() {
51302
      return 0;
51303
    }
51304
 
2981 rajveer 51305
    public int compareTo(getUserNotes_args other) {
130 ashish 51306
      if (!getClass().equals(other.getClass())) {
51307
        return getClass().getName().compareTo(other.getClass().getName());
51308
      }
51309
 
51310
      int lastComparison = 0;
2981 rajveer 51311
      getUserNotes_args typedOther = (getUserNotes_args)other;
130 ashish 51312
 
3430 rajveer 51313
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
130 ashish 51314
      if (lastComparison != 0) {
51315
        return lastComparison;
51316
      }
3430 rajveer 51317
      if (isSetUser_id()) {
51318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
51319
        if (lastComparison != 0) {
51320
          return lastComparison;
51321
        }
130 ashish 51322
      }
3430 rajveer 51323
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
130 ashish 51324
      if (lastComparison != 0) {
51325
        return lastComparison;
51326
      }
3430 rajveer 51327
      if (isSetEntity_id()) {
51328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
51329
        if (lastComparison != 0) {
51330
          return lastComparison;
51331
        }
130 ashish 51332
      }
51333
      return 0;
51334
    }
51335
 
3430 rajveer 51336
    public _Fields fieldForId(int fieldId) {
51337
      return _Fields.findByThriftId(fieldId);
51338
    }
51339
 
51340
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51341
      org.apache.thrift.protocol.TField field;
130 ashish 51342
      iprot.readStructBegin();
51343
      while (true)
51344
      {
51345
        field = iprot.readFieldBegin();
3430 rajveer 51346
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 51347
          break;
51348
        }
3430 rajveer 51349
        switch (field.id) {
51350
          case 1: // USER_ID
51351
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51352
              this.user_id = iprot.readI64();
51353
              setUser_idIsSet(true);
51354
            } else { 
51355
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51356
            }
51357
            break;
51358
          case 2: // ENTITY_ID
51359
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51360
              this.entity_id = iprot.readI64();
51361
              setEntity_idIsSet(true);
51362
            } else { 
51363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51364
            }
51365
            break;
51366
          default:
51367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 51368
        }
3430 rajveer 51369
        iprot.readFieldEnd();
130 ashish 51370
      }
51371
      iprot.readStructEnd();
51372
      validate();
51373
    }
51374
 
3430 rajveer 51375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 51376
      validate();
51377
 
51378
      oprot.writeStructBegin(STRUCT_DESC);
771 rajveer 51379
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 51380
      oprot.writeI64(this.user_id);
771 rajveer 51381
      oprot.writeFieldEnd();
2981 rajveer 51382
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
51383
      oprot.writeI64(this.entity_id);
553 chandransh 51384
      oprot.writeFieldEnd();
130 ashish 51385
      oprot.writeFieldStop();
51386
      oprot.writeStructEnd();
51387
    }
51388
 
51389
    @Override
51390
    public String toString() {
2981 rajveer 51391
      StringBuilder sb = new StringBuilder("getUserNotes_args(");
130 ashish 51392
      boolean first = true;
51393
 
2981 rajveer 51394
      sb.append("user_id:");
51395
      sb.append(this.user_id);
553 chandransh 51396
      first = false;
51397
      if (!first) sb.append(", ");
2981 rajveer 51398
      sb.append("entity_id:");
51399
      sb.append(this.entity_id);
130 ashish 51400
      first = false;
51401
      sb.append(")");
51402
      return sb.toString();
51403
    }
51404
 
3430 rajveer 51405
    public void validate() throws org.apache.thrift.TException {
130 ashish 51406
      // check for required fields
51407
    }
51408
 
3430 rajveer 51409
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51410
      try {
51411
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51412
      } catch (org.apache.thrift.TException te) {
51413
        throw new java.io.IOException(te);
51414
      }
51415
    }
51416
 
51417
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51418
      try {
51419
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
51420
        __isset_bit_vector = new BitSet(1);
51421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51422
      } catch (org.apache.thrift.TException te) {
51423
        throw new java.io.IOException(te);
51424
      }
51425
    }
51426
 
130 ashish 51427
  }
51428
 
3430 rajveer 51429
  public static class getUserNotes_result implements org.apache.thrift.TBase<getUserNotes_result, getUserNotes_result._Fields>, java.io.Serializable, Cloneable   {
51430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserNotes_result");
130 ashish 51431
 
3430 rajveer 51432
    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 51433
 
3430 rajveer 51434
    private List<UserNote> success; // required
130 ashish 51435
 
51436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51437
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 51438
      SUCCESS((short)0, "success");
553 chandransh 51439
 
51440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51441
 
51442
      static {
51443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51444
          byName.put(field.getFieldName(), field);
51445
        }
51446
      }
51447
 
51448
      /**
51449
       * Find the _Fields constant that matches fieldId, or null if its not found.
51450
       */
51451
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51452
        switch(fieldId) {
51453
          case 0: // SUCCESS
51454
            return SUCCESS;
51455
          default:
51456
            return null;
51457
        }
553 chandransh 51458
      }
51459
 
51460
      /**
51461
       * Find the _Fields constant that matches fieldId, throwing an exception
51462
       * if it is not found.
51463
       */
51464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51465
        _Fields fields = findByThriftId(fieldId);
51466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51467
        return fields;
51468
      }
51469
 
51470
      /**
51471
       * Find the _Fields constant that matches name, or null if its not found.
51472
       */
51473
      public static _Fields findByName(String name) {
51474
        return byName.get(name);
51475
      }
51476
 
51477
      private final short _thriftId;
51478
      private final String _fieldName;
51479
 
51480
      _Fields(short thriftId, String fieldName) {
51481
        _thriftId = thriftId;
51482
        _fieldName = fieldName;
51483
      }
51484
 
51485
      public short getThriftFieldId() {
51486
        return _thriftId;
51487
      }
51488
 
51489
      public String getFieldName() {
51490
        return _fieldName;
51491
      }
51492
    }
2981 rajveer 51493
 
51494
    // isset id assignments
51495
 
3430 rajveer 51496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 51497
    static {
3430 rajveer 51498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51499
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51500
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
51501
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserNote.class))));
51502
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51503
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserNotes_result.class, metaDataMap);
553 chandransh 51504
    }
51505
 
2981 rajveer 51506
    public getUserNotes_result() {
553 chandransh 51507
    }
51508
 
2981 rajveer 51509
    public getUserNotes_result(
51510
      List<UserNote> success)
51511
    {
51512
      this();
51513
      this.success = success;
51514
    }
51515
 
553 chandransh 51516
    /**
51517
     * Performs a deep copy on <i>other</i>.
51518
     */
2981 rajveer 51519
    public getUserNotes_result(getUserNotes_result other) {
51520
      if (other.isSetSuccess()) {
51521
        List<UserNote> __this__success = new ArrayList<UserNote>();
51522
        for (UserNote other_element : other.success) {
51523
          __this__success.add(new UserNote(other_element));
51524
        }
51525
        this.success = __this__success;
51526
      }
553 chandransh 51527
    }
51528
 
2981 rajveer 51529
    public getUserNotes_result deepCopy() {
51530
      return new getUserNotes_result(this);
553 chandransh 51531
    }
51532
 
3430 rajveer 51533
    @Override
51534
    public void clear() {
51535
      this.success = null;
553 chandransh 51536
    }
51537
 
2981 rajveer 51538
    public int getSuccessSize() {
51539
      return (this.success == null) ? 0 : this.success.size();
51540
    }
51541
 
51542
    public java.util.Iterator<UserNote> getSuccessIterator() {
51543
      return (this.success == null) ? null : this.success.iterator();
51544
    }
51545
 
51546
    public void addToSuccess(UserNote elem) {
51547
      if (this.success == null) {
51548
        this.success = new ArrayList<UserNote>();
51549
      }
51550
      this.success.add(elem);
51551
    }
51552
 
51553
    public List<UserNote> getSuccess() {
51554
      return this.success;
51555
    }
51556
 
3430 rajveer 51557
    public void setSuccess(List<UserNote> success) {
2981 rajveer 51558
      this.success = success;
51559
    }
51560
 
51561
    public void unsetSuccess() {
51562
      this.success = null;
51563
    }
51564
 
3430 rajveer 51565
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 51566
    public boolean isSetSuccess() {
51567
      return this.success != null;
51568
    }
51569
 
51570
    public void setSuccessIsSet(boolean value) {
51571
      if (!value) {
51572
        this.success = null;
51573
      }
51574
    }
51575
 
553 chandransh 51576
    public void setFieldValue(_Fields field, Object value) {
51577
      switch (field) {
2981 rajveer 51578
      case SUCCESS:
51579
        if (value == null) {
51580
          unsetSuccess();
51581
        } else {
51582
          setSuccess((List<UserNote>)value);
51583
        }
51584
        break;
51585
 
553 chandransh 51586
      }
51587
    }
51588
 
51589
    public Object getFieldValue(_Fields field) {
51590
      switch (field) {
2981 rajveer 51591
      case SUCCESS:
51592
        return getSuccess();
51593
 
553 chandransh 51594
      }
51595
      throw new IllegalStateException();
51596
    }
51597
 
3430 rajveer 51598
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51599
    public boolean isSet(_Fields field) {
51600
      if (field == null) {
51601
        throw new IllegalArgumentException();
51602
      }
553 chandransh 51603
 
51604
      switch (field) {
2981 rajveer 51605
      case SUCCESS:
51606
        return isSetSuccess();
553 chandransh 51607
      }
51608
      throw new IllegalStateException();
51609
    }
51610
 
51611
    @Override
51612
    public boolean equals(Object that) {
51613
      if (that == null)
51614
        return false;
2981 rajveer 51615
      if (that instanceof getUserNotes_result)
51616
        return this.equals((getUserNotes_result)that);
553 chandransh 51617
      return false;
51618
    }
51619
 
2981 rajveer 51620
    public boolean equals(getUserNotes_result that) {
553 chandransh 51621
      if (that == null)
51622
        return false;
51623
 
2981 rajveer 51624
      boolean this_present_success = true && this.isSetSuccess();
51625
      boolean that_present_success = true && that.isSetSuccess();
51626
      if (this_present_success || that_present_success) {
51627
        if (!(this_present_success && that_present_success))
51628
          return false;
51629
        if (!this.success.equals(that.success))
51630
          return false;
51631
      }
51632
 
553 chandransh 51633
      return true;
51634
    }
51635
 
51636
    @Override
51637
    public int hashCode() {
51638
      return 0;
51639
    }
51640
 
2981 rajveer 51641
    public int compareTo(getUserNotes_result other) {
553 chandransh 51642
      if (!getClass().equals(other.getClass())) {
51643
        return getClass().getName().compareTo(other.getClass().getName());
51644
      }
51645
 
51646
      int lastComparison = 0;
2981 rajveer 51647
      getUserNotes_result typedOther = (getUserNotes_result)other;
553 chandransh 51648
 
3430 rajveer 51649
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2981 rajveer 51650
      if (lastComparison != 0) {
51651
        return lastComparison;
51652
      }
3430 rajveer 51653
      if (isSetSuccess()) {
51654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51655
        if (lastComparison != 0) {
51656
          return lastComparison;
51657
        }
2981 rajveer 51658
      }
553 chandransh 51659
      return 0;
51660
    }
51661
 
3430 rajveer 51662
    public _Fields fieldForId(int fieldId) {
51663
      return _Fields.findByThriftId(fieldId);
51664
    }
51665
 
51666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51667
      org.apache.thrift.protocol.TField field;
553 chandransh 51668
      iprot.readStructBegin();
51669
      while (true)
51670
      {
51671
        field = iprot.readFieldBegin();
3430 rajveer 51672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 51673
          break;
51674
        }
3430 rajveer 51675
        switch (field.id) {
51676
          case 0: // SUCCESS
51677
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51678
              {
51679
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
51680
                this.success = new ArrayList<UserNote>(_list73.size);
51681
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
2981 rajveer 51682
                {
3430 rajveer 51683
                  UserNote _elem75; // required
51684
                  _elem75 = new UserNote();
51685
                  _elem75.read(iprot);
51686
                  this.success.add(_elem75);
2981 rajveer 51687
                }
3430 rajveer 51688
                iprot.readListEnd();
2981 rajveer 51689
              }
3430 rajveer 51690
            } else { 
51691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51692
            }
51693
            break;
51694
          default:
51695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 51696
        }
3430 rajveer 51697
        iprot.readFieldEnd();
553 chandransh 51698
      }
51699
      iprot.readStructEnd();
51700
      validate();
51701
    }
51702
 
3430 rajveer 51703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 51704
      oprot.writeStructBegin(STRUCT_DESC);
51705
 
2981 rajveer 51706
      if (this.isSetSuccess()) {
51707
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51708
        {
3430 rajveer 51709
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 51710
          for (UserNote _iter76 : this.success)
2981 rajveer 51711
          {
3385 varun.gupt 51712
            _iter76.write(oprot);
2981 rajveer 51713
          }
51714
          oprot.writeListEnd();
51715
        }
51716
        oprot.writeFieldEnd();
51717
      }
553 chandransh 51718
      oprot.writeFieldStop();
51719
      oprot.writeStructEnd();
51720
    }
51721
 
51722
    @Override
51723
    public String toString() {
2981 rajveer 51724
      StringBuilder sb = new StringBuilder("getUserNotes_result(");
553 chandransh 51725
      boolean first = true;
51726
 
2981 rajveer 51727
      sb.append("success:");
51728
      if (this.success == null) {
51729
        sb.append("null");
51730
      } else {
51731
        sb.append(this.success);
51732
      }
51733
      first = false;
553 chandransh 51734
      sb.append(")");
51735
      return sb.toString();
51736
    }
51737
 
3430 rajveer 51738
    public void validate() throws org.apache.thrift.TException {
553 chandransh 51739
      // check for required fields
51740
    }
51741
 
3430 rajveer 51742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51743
      try {
51744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51745
      } catch (org.apache.thrift.TException te) {
51746
        throw new java.io.IOException(te);
51747
      }
51748
    }
51749
 
51750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51751
      try {
51752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51753
      } catch (org.apache.thrift.TException te) {
51754
        throw new java.io.IOException(te);
51755
      }
51756
    }
51757
 
553 chandransh 51758
  }
51759
 
3430 rajveer 51760
  public static class getMyResearchItems_args implements org.apache.thrift.TBase<getMyResearchItems_args, getMyResearchItems_args._Fields>, java.io.Serializable, Cloneable   {
51761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMyResearchItems_args");
553 chandransh 51762
 
3430 rajveer 51763
    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 51764
 
3430 rajveer 51765
    private long userId; // required
553 chandransh 51766
 
51767
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51768
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
771 rajveer 51769
      USER_ID((short)1, "userId");
553 chandransh 51770
 
51771
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51772
 
51773
      static {
51774
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51775
          byName.put(field.getFieldName(), field);
51776
        }
51777
      }
51778
 
51779
      /**
51780
       * Find the _Fields constant that matches fieldId, or null if its not found.
51781
       */
51782
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51783
        switch(fieldId) {
51784
          case 1: // USER_ID
51785
            return USER_ID;
51786
          default:
51787
            return null;
51788
        }
553 chandransh 51789
      }
51790
 
51791
      /**
51792
       * Find the _Fields constant that matches fieldId, throwing an exception
51793
       * if it is not found.
51794
       */
51795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51796
        _Fields fields = findByThriftId(fieldId);
51797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51798
        return fields;
51799
      }
51800
 
51801
      /**
51802
       * Find the _Fields constant that matches name, or null if its not found.
51803
       */
51804
      public static _Fields findByName(String name) {
51805
        return byName.get(name);
51806
      }
51807
 
51808
      private final short _thriftId;
51809
      private final String _fieldName;
51810
 
51811
      _Fields(short thriftId, String fieldName) {
51812
        _thriftId = thriftId;
51813
        _fieldName = fieldName;
51814
      }
51815
 
51816
      public short getThriftFieldId() {
51817
        return _thriftId;
51818
      }
51819
 
51820
      public String getFieldName() {
51821
        return _fieldName;
51822
      }
51823
    }
51824
 
51825
    // isset id assignments
771 rajveer 51826
    private static final int __USERID_ISSET_ID = 0;
51827
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 51828
 
3430 rajveer 51829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 51830
    static {
3430 rajveer 51831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51832
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51833
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMyResearchItems_args.class, metaDataMap);
553 chandransh 51836
    }
51837
 
2981 rajveer 51838
    public getMyResearchItems_args() {
553 chandransh 51839
    }
51840
 
2981 rajveer 51841
    public getMyResearchItems_args(
771 rajveer 51842
      long userId)
553 chandransh 51843
    {
51844
      this();
771 rajveer 51845
      this.userId = userId;
51846
      setUserIdIsSet(true);
553 chandransh 51847
    }
51848
 
51849
    /**
51850
     * Performs a deep copy on <i>other</i>.
51851
     */
2981 rajveer 51852
    public getMyResearchItems_args(getMyResearchItems_args other) {
553 chandransh 51853
      __isset_bit_vector.clear();
51854
      __isset_bit_vector.or(other.__isset_bit_vector);
771 rajveer 51855
      this.userId = other.userId;
553 chandransh 51856
    }
51857
 
2981 rajveer 51858
    public getMyResearchItems_args deepCopy() {
51859
      return new getMyResearchItems_args(this);
553 chandransh 51860
    }
51861
 
3430 rajveer 51862
    @Override
51863
    public void clear() {
51864
      setUserIdIsSet(false);
51865
      this.userId = 0;
553 chandransh 51866
    }
51867
 
771 rajveer 51868
    public long getUserId() {
51869
      return this.userId;
553 chandransh 51870
    }
51871
 
3430 rajveer 51872
    public void setUserId(long userId) {
771 rajveer 51873
      this.userId = userId;
51874
      setUserIdIsSet(true);
553 chandransh 51875
    }
51876
 
771 rajveer 51877
    public void unsetUserId() {
51878
      __isset_bit_vector.clear(__USERID_ISSET_ID);
553 chandransh 51879
    }
51880
 
3430 rajveer 51881
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
771 rajveer 51882
    public boolean isSetUserId() {
51883
      return __isset_bit_vector.get(__USERID_ISSET_ID);
553 chandransh 51884
    }
51885
 
771 rajveer 51886
    public void setUserIdIsSet(boolean value) {
51887
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
553 chandransh 51888
    }
51889
 
51890
    public void setFieldValue(_Fields field, Object value) {
51891
      switch (field) {
51892
      case USER_ID:
51893
        if (value == null) {
771 rajveer 51894
          unsetUserId();
553 chandransh 51895
        } else {
771 rajveer 51896
          setUserId((Long)value);
553 chandransh 51897
        }
51898
        break;
51899
 
51900
      }
51901
    }
51902
 
51903
    public Object getFieldValue(_Fields field) {
51904
      switch (field) {
51905
      case USER_ID:
3430 rajveer 51906
        return Long.valueOf(getUserId());
553 chandransh 51907
 
51908
      }
51909
      throw new IllegalStateException();
51910
    }
51911
 
3430 rajveer 51912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51913
    public boolean isSet(_Fields field) {
51914
      if (field == null) {
51915
        throw new IllegalArgumentException();
51916
      }
553 chandransh 51917
 
51918
      switch (field) {
51919
      case USER_ID:
771 rajveer 51920
        return isSetUserId();
553 chandransh 51921
      }
51922
      throw new IllegalStateException();
51923
    }
51924
 
51925
    @Override
51926
    public boolean equals(Object that) {
51927
      if (that == null)
51928
        return false;
2981 rajveer 51929
      if (that instanceof getMyResearchItems_args)
51930
        return this.equals((getMyResearchItems_args)that);
553 chandransh 51931
      return false;
51932
    }
51933
 
2981 rajveer 51934
    public boolean equals(getMyResearchItems_args that) {
553 chandransh 51935
      if (that == null)
51936
        return false;
51937
 
771 rajveer 51938
      boolean this_present_userId = true;
51939
      boolean that_present_userId = true;
51940
      if (this_present_userId || that_present_userId) {
51941
        if (!(this_present_userId && that_present_userId))
553 chandransh 51942
          return false;
771 rajveer 51943
        if (this.userId != that.userId)
553 chandransh 51944
          return false;
51945
      }
51946
 
51947
      return true;
51948
    }
51949
 
51950
    @Override
51951
    public int hashCode() {
51952
      return 0;
51953
    }
51954
 
2981 rajveer 51955
    public int compareTo(getMyResearchItems_args other) {
553 chandransh 51956
      if (!getClass().equals(other.getClass())) {
51957
        return getClass().getName().compareTo(other.getClass().getName());
51958
      }
51959
 
51960
      int lastComparison = 0;
2981 rajveer 51961
      getMyResearchItems_args typedOther = (getMyResearchItems_args)other;
553 chandransh 51962
 
3430 rajveer 51963
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 51964
      if (lastComparison != 0) {
51965
        return lastComparison;
51966
      }
3430 rajveer 51967
      if (isSetUserId()) {
51968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
51969
        if (lastComparison != 0) {
51970
          return lastComparison;
51971
        }
553 chandransh 51972
      }
51973
      return 0;
51974
    }
51975
 
3430 rajveer 51976
    public _Fields fieldForId(int fieldId) {
51977
      return _Fields.findByThriftId(fieldId);
51978
    }
51979
 
51980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51981
      org.apache.thrift.protocol.TField field;
553 chandransh 51982
      iprot.readStructBegin();
51983
      while (true)
51984
      {
51985
        field = iprot.readFieldBegin();
3430 rajveer 51986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 51987
          break;
51988
        }
3430 rajveer 51989
        switch (field.id) {
51990
          case 1: // USER_ID
51991
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51992
              this.userId = iprot.readI64();
51993
              setUserIdIsSet(true);
51994
            } else { 
51995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51996
            }
51997
            break;
51998
          default:
51999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52000
        }
3430 rajveer 52001
        iprot.readFieldEnd();
553 chandransh 52002
      }
52003
      iprot.readStructEnd();
52004
      validate();
52005
    }
52006
 
3430 rajveer 52007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52008
      validate();
52009
 
52010
      oprot.writeStructBegin(STRUCT_DESC);
52011
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
771 rajveer 52012
      oprot.writeI64(this.userId);
553 chandransh 52013
      oprot.writeFieldEnd();
52014
      oprot.writeFieldStop();
52015
      oprot.writeStructEnd();
52016
    }
52017
 
52018
    @Override
52019
    public String toString() {
2981 rajveer 52020
      StringBuilder sb = new StringBuilder("getMyResearchItems_args(");
553 chandransh 52021
      boolean first = true;
52022
 
771 rajveer 52023
      sb.append("userId:");
52024
      sb.append(this.userId);
553 chandransh 52025
      first = false;
52026
      sb.append(")");
52027
      return sb.toString();
52028
    }
52029
 
3430 rajveer 52030
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52031
      // check for required fields
52032
    }
52033
 
3430 rajveer 52034
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52035
      try {
52036
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52037
      } catch (org.apache.thrift.TException te) {
52038
        throw new java.io.IOException(te);
52039
      }
52040
    }
52041
 
52042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52043
      try {
52044
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52045
        __isset_bit_vector = new BitSet(1);
52046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52047
      } catch (org.apache.thrift.TException te) {
52048
        throw new java.io.IOException(te);
52049
      }
52050
    }
52051
 
553 chandransh 52052
  }
52053
 
3430 rajveer 52054
  public static class getMyResearchItems_result implements org.apache.thrift.TBase<getMyResearchItems_result, getMyResearchItems_result._Fields>, java.io.Serializable, Cloneable   {
52055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMyResearchItems_result");
553 chandransh 52056
 
3430 rajveer 52057
    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);
52058
    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 52059
 
3430 rajveer 52060
    private List<Long> success; // required
52061
    private WidgetException scx; // required
553 chandransh 52062
 
52063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
130 ashish 52065
      SUCCESS((short)0, "success"),
553 chandransh 52066
      SCX((short)1, "scx");
130 ashish 52067
 
52068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52069
 
52070
      static {
52071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52072
          byName.put(field.getFieldName(), field);
52073
        }
52074
      }
52075
 
52076
      /**
52077
       * Find the _Fields constant that matches fieldId, or null if its not found.
52078
       */
52079
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52080
        switch(fieldId) {
52081
          case 0: // SUCCESS
52082
            return SUCCESS;
52083
          case 1: // SCX
52084
            return SCX;
52085
          default:
52086
            return null;
52087
        }
130 ashish 52088
      }
52089
 
52090
      /**
52091
       * Find the _Fields constant that matches fieldId, throwing an exception
52092
       * if it is not found.
52093
       */
52094
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52095
        _Fields fields = findByThriftId(fieldId);
52096
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52097
        return fields;
52098
      }
52099
 
52100
      /**
52101
       * Find the _Fields constant that matches name, or null if its not found.
52102
       */
52103
      public static _Fields findByName(String name) {
52104
        return byName.get(name);
52105
      }
52106
 
52107
      private final short _thriftId;
52108
      private final String _fieldName;
52109
 
52110
      _Fields(short thriftId, String fieldName) {
52111
        _thriftId = thriftId;
52112
        _fieldName = fieldName;
52113
      }
52114
 
52115
      public short getThriftFieldId() {
52116
        return _thriftId;
52117
      }
52118
 
52119
      public String getFieldName() {
52120
        return _fieldName;
52121
      }
52122
    }
52123
 
52124
    // isset id assignments
52125
 
3430 rajveer 52126
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 52127
    static {
3430 rajveer 52128
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52129
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52130
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52131
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
52132
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMyResearchItems_result.class, metaDataMap);
130 ashish 52136
    }
52137
 
2981 rajveer 52138
    public getMyResearchItems_result() {
130 ashish 52139
    }
52140
 
2981 rajveer 52141
    public getMyResearchItems_result(
52142
      List<Long> success,
553 chandransh 52143
      WidgetException scx)
130 ashish 52144
    {
52145
      this();
52146
      this.success = success;
553 chandransh 52147
      this.scx = scx;
130 ashish 52148
    }
52149
 
52150
    /**
52151
     * Performs a deep copy on <i>other</i>.
52152
     */
2981 rajveer 52153
    public getMyResearchItems_result(getMyResearchItems_result other) {
553 chandransh 52154
      if (other.isSetSuccess()) {
2981 rajveer 52155
        List<Long> __this__success = new ArrayList<Long>();
52156
        for (Long other_element : other.success) {
52157
          __this__success.add(other_element);
52158
        }
52159
        this.success = __this__success;
553 chandransh 52160
      }
52161
      if (other.isSetScx()) {
52162
        this.scx = new WidgetException(other.scx);
52163
      }
52164
    }
52165
 
2981 rajveer 52166
    public getMyResearchItems_result deepCopy() {
52167
      return new getMyResearchItems_result(this);
553 chandransh 52168
    }
52169
 
3430 rajveer 52170
    @Override
52171
    public void clear() {
52172
      this.success = null;
52173
      this.scx = null;
553 chandransh 52174
    }
52175
 
2981 rajveer 52176
    public int getSuccessSize() {
52177
      return (this.success == null) ? 0 : this.success.size();
52178
    }
52179
 
52180
    public java.util.Iterator<Long> getSuccessIterator() {
52181
      return (this.success == null) ? null : this.success.iterator();
52182
    }
52183
 
52184
    public void addToSuccess(long elem) {
52185
      if (this.success == null) {
52186
        this.success = new ArrayList<Long>();
52187
      }
52188
      this.success.add(elem);
52189
    }
52190
 
52191
    public List<Long> getSuccess() {
553 chandransh 52192
      return this.success;
52193
    }
52194
 
3430 rajveer 52195
    public void setSuccess(List<Long> success) {
553 chandransh 52196
      this.success = success;
52197
    }
52198
 
52199
    public void unsetSuccess() {
52200
      this.success = null;
52201
    }
52202
 
3430 rajveer 52203
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 52204
    public boolean isSetSuccess() {
52205
      return this.success != null;
52206
    }
52207
 
52208
    public void setSuccessIsSet(boolean value) {
52209
      if (!value) {
52210
        this.success = null;
52211
      }
52212
    }
52213
 
52214
    public WidgetException getScx() {
52215
      return this.scx;
52216
    }
52217
 
3430 rajveer 52218
    public void setScx(WidgetException scx) {
553 chandransh 52219
      this.scx = scx;
52220
    }
52221
 
52222
    public void unsetScx() {
52223
      this.scx = null;
52224
    }
52225
 
3430 rajveer 52226
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 52227
    public boolean isSetScx() {
52228
      return this.scx != null;
52229
    }
52230
 
52231
    public void setScxIsSet(boolean value) {
52232
      if (!value) {
52233
        this.scx = null;
52234
      }
52235
    }
52236
 
52237
    public void setFieldValue(_Fields field, Object value) {
52238
      switch (field) {
52239
      case SUCCESS:
52240
        if (value == null) {
52241
          unsetSuccess();
52242
        } else {
2981 rajveer 52243
          setSuccess((List<Long>)value);
553 chandransh 52244
        }
52245
        break;
52246
 
52247
      case SCX:
52248
        if (value == null) {
52249
          unsetScx();
52250
        } else {
52251
          setScx((WidgetException)value);
52252
        }
52253
        break;
52254
 
52255
      }
52256
    }
52257
 
52258
    public Object getFieldValue(_Fields field) {
52259
      switch (field) {
52260
      case SUCCESS:
52261
        return getSuccess();
52262
 
52263
      case SCX:
52264
        return getScx();
52265
 
52266
      }
52267
      throw new IllegalStateException();
52268
    }
52269
 
3430 rajveer 52270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52271
    public boolean isSet(_Fields field) {
52272
      if (field == null) {
52273
        throw new IllegalArgumentException();
52274
      }
553 chandransh 52275
 
52276
      switch (field) {
52277
      case SUCCESS:
52278
        return isSetSuccess();
52279
      case SCX:
52280
        return isSetScx();
52281
      }
52282
      throw new IllegalStateException();
52283
    }
52284
 
52285
    @Override
52286
    public boolean equals(Object that) {
52287
      if (that == null)
52288
        return false;
2981 rajveer 52289
      if (that instanceof getMyResearchItems_result)
52290
        return this.equals((getMyResearchItems_result)that);
553 chandransh 52291
      return false;
52292
    }
52293
 
2981 rajveer 52294
    public boolean equals(getMyResearchItems_result that) {
553 chandransh 52295
      if (that == null)
52296
        return false;
52297
 
52298
      boolean this_present_success = true && this.isSetSuccess();
52299
      boolean that_present_success = true && that.isSetSuccess();
52300
      if (this_present_success || that_present_success) {
52301
        if (!(this_present_success && that_present_success))
52302
          return false;
52303
        if (!this.success.equals(that.success))
52304
          return false;
52305
      }
52306
 
52307
      boolean this_present_scx = true && this.isSetScx();
52308
      boolean that_present_scx = true && that.isSetScx();
52309
      if (this_present_scx || that_present_scx) {
52310
        if (!(this_present_scx && that_present_scx))
52311
          return false;
52312
        if (!this.scx.equals(that.scx))
52313
          return false;
52314
      }
52315
 
52316
      return true;
52317
    }
52318
 
52319
    @Override
52320
    public int hashCode() {
52321
      return 0;
52322
    }
52323
 
2981 rajveer 52324
    public int compareTo(getMyResearchItems_result other) {
771 rajveer 52325
      if (!getClass().equals(other.getClass())) {
52326
        return getClass().getName().compareTo(other.getClass().getName());
52327
      }
52328
 
52329
      int lastComparison = 0;
2981 rajveer 52330
      getMyResearchItems_result typedOther = (getMyResearchItems_result)other;
771 rajveer 52331
 
3430 rajveer 52332
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
771 rajveer 52333
      if (lastComparison != 0) {
52334
        return lastComparison;
52335
      }
3430 rajveer 52336
      if (isSetSuccess()) {
52337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
52338
        if (lastComparison != 0) {
52339
          return lastComparison;
52340
        }
771 rajveer 52341
      }
3430 rajveer 52342
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
771 rajveer 52343
      if (lastComparison != 0) {
52344
        return lastComparison;
52345
      }
3430 rajveer 52346
      if (isSetScx()) {
52347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
52348
        if (lastComparison != 0) {
52349
          return lastComparison;
52350
        }
771 rajveer 52351
      }
52352
      return 0;
52353
    }
52354
 
3430 rajveer 52355
    public _Fields fieldForId(int fieldId) {
52356
      return _Fields.findByThriftId(fieldId);
52357
    }
52358
 
52359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52360
      org.apache.thrift.protocol.TField field;
553 chandransh 52361
      iprot.readStructBegin();
52362
      while (true)
52363
      {
52364
        field = iprot.readFieldBegin();
3430 rajveer 52365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52366
          break;
52367
        }
3430 rajveer 52368
        switch (field.id) {
52369
          case 0: // SUCCESS
52370
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52371
              {
52372
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
52373
                this.success = new ArrayList<Long>(_list77.size);
52374
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
2981 rajveer 52375
                {
3430 rajveer 52376
                  long _elem79; // required
52377
                  _elem79 = iprot.readI64();
52378
                  this.success.add(_elem79);
2981 rajveer 52379
                }
3430 rajveer 52380
                iprot.readListEnd();
553 chandransh 52381
              }
3430 rajveer 52382
            } else { 
52383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52384
            }
52385
            break;
52386
          case 1: // SCX
52387
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
52388
              this.scx = new WidgetException();
52389
              this.scx.read(iprot);
52390
            } else { 
52391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52392
            }
52393
            break;
52394
          default:
52395
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52396
        }
3430 rajveer 52397
        iprot.readFieldEnd();
553 chandransh 52398
      }
52399
      iprot.readStructEnd();
52400
      validate();
52401
    }
52402
 
3430 rajveer 52403
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52404
      oprot.writeStructBegin(STRUCT_DESC);
52405
 
52406
      if (this.isSetSuccess()) {
52407
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 52408
        {
3430 rajveer 52409
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3385 varun.gupt 52410
          for (long _iter80 : this.success)
2981 rajveer 52411
          {
3385 varun.gupt 52412
            oprot.writeI64(_iter80);
2981 rajveer 52413
          }
52414
          oprot.writeListEnd();
52415
        }
553 chandransh 52416
        oprot.writeFieldEnd();
52417
      } else if (this.isSetScx()) {
52418
        oprot.writeFieldBegin(SCX_FIELD_DESC);
52419
        this.scx.write(oprot);
52420
        oprot.writeFieldEnd();
52421
      }
52422
      oprot.writeFieldStop();
52423
      oprot.writeStructEnd();
52424
    }
52425
 
52426
    @Override
52427
    public String toString() {
2981 rajveer 52428
      StringBuilder sb = new StringBuilder("getMyResearchItems_result(");
553 chandransh 52429
      boolean first = true;
52430
 
52431
      sb.append("success:");
52432
      if (this.success == null) {
52433
        sb.append("null");
52434
      } else {
52435
        sb.append(this.success);
52436
      }
52437
      first = false;
52438
      if (!first) sb.append(", ");
52439
      sb.append("scx:");
52440
      if (this.scx == null) {
52441
        sb.append("null");
52442
      } else {
52443
        sb.append(this.scx);
52444
      }
52445
      first = false;
52446
      sb.append(")");
52447
      return sb.toString();
52448
    }
52449
 
3430 rajveer 52450
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52451
      // check for required fields
52452
    }
52453
 
3430 rajveer 52454
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52455
      try {
52456
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52457
      } catch (org.apache.thrift.TException te) {
52458
        throw new java.io.IOException(te);
52459
      }
52460
    }
52461
 
52462
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52463
      try {
52464
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52465
      } catch (org.apache.thrift.TException te) {
52466
        throw new java.io.IOException(te);
52467
      }
52468
    }
52469
 
553 chandransh 52470
  }
52471
 
3430 rajveer 52472
  public static class updateMyResearch_args implements org.apache.thrift.TBase<updateMyResearch_args, updateMyResearch_args._Fields>, java.io.Serializable, Cloneable   {
52473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMyResearch_args");
553 chandransh 52474
 
3430 rajveer 52475
    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);
52476
    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 52477
 
3430 rajveer 52478
    private long userId; // required
52479
    private long itemId; // required
553 chandransh 52480
 
52481
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52482
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52483
      USER_ID((short)1, "userId"),
52484
      ITEM_ID((short)2, "itemId");
553 chandransh 52485
 
52486
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52487
 
52488
      static {
52489
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52490
          byName.put(field.getFieldName(), field);
52491
        }
52492
      }
52493
 
52494
      /**
52495
       * Find the _Fields constant that matches fieldId, or null if its not found.
52496
       */
52497
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52498
        switch(fieldId) {
52499
          case 1: // USER_ID
52500
            return USER_ID;
52501
          case 2: // ITEM_ID
52502
            return ITEM_ID;
52503
          default:
52504
            return null;
52505
        }
553 chandransh 52506
      }
52507
 
52508
      /**
52509
       * Find the _Fields constant that matches fieldId, throwing an exception
52510
       * if it is not found.
52511
       */
52512
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52513
        _Fields fields = findByThriftId(fieldId);
52514
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52515
        return fields;
52516
      }
52517
 
52518
      /**
52519
       * Find the _Fields constant that matches name, or null if its not found.
52520
       */
52521
      public static _Fields findByName(String name) {
52522
        return byName.get(name);
52523
      }
52524
 
52525
      private final short _thriftId;
52526
      private final String _fieldName;
52527
 
52528
      _Fields(short thriftId, String fieldName) {
52529
        _thriftId = thriftId;
52530
        _fieldName = fieldName;
52531
      }
52532
 
52533
      public short getThriftFieldId() {
52534
        return _thriftId;
52535
      }
52536
 
52537
      public String getFieldName() {
52538
        return _fieldName;
52539
      }
52540
    }
52541
 
52542
    // isset id assignments
2981 rajveer 52543
    private static final int __USERID_ISSET_ID = 0;
52544
    private static final int __ITEMID_ISSET_ID = 1;
771 rajveer 52545
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 52546
 
3430 rajveer 52547
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52548
    static {
3430 rajveer 52549
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52550
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52551
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52552
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52553
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52554
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52555
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
553 chandransh 52556
    }
52557
 
2981 rajveer 52558
    public updateMyResearch_args() {
553 chandransh 52559
    }
52560
 
2981 rajveer 52561
    public updateMyResearch_args(
52562
      long userId,
52563
      long itemId)
553 chandransh 52564
    {
52565
      this();
2981 rajveer 52566
      this.userId = userId;
52567
      setUserIdIsSet(true);
52568
      this.itemId = itemId;
52569
      setItemIdIsSet(true);
553 chandransh 52570
    }
52571
 
52572
    /**
52573
     * Performs a deep copy on <i>other</i>.
52574
     */
2981 rajveer 52575
    public updateMyResearch_args(updateMyResearch_args other) {
130 ashish 52576
      __isset_bit_vector.clear();
52577
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 52578
      this.userId = other.userId;
52579
      this.itemId = other.itemId;
553 chandransh 52580
    }
52581
 
2981 rajveer 52582
    public updateMyResearch_args deepCopy() {
52583
      return new updateMyResearch_args(this);
553 chandransh 52584
    }
52585
 
3430 rajveer 52586
    @Override
52587
    public void clear() {
52588
      setUserIdIsSet(false);
52589
      this.userId = 0;
52590
      setItemIdIsSet(false);
52591
      this.itemId = 0;
553 chandransh 52592
    }
52593
 
2981 rajveer 52594
    public long getUserId() {
52595
      return this.userId;
553 chandransh 52596
    }
52597
 
3430 rajveer 52598
    public void setUserId(long userId) {
2981 rajveer 52599
      this.userId = userId;
52600
      setUserIdIsSet(true);
553 chandransh 52601
    }
52602
 
2981 rajveer 52603
    public void unsetUserId() {
52604
      __isset_bit_vector.clear(__USERID_ISSET_ID);
553 chandransh 52605
    }
52606
 
3430 rajveer 52607
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 52608
    public boolean isSetUserId() {
52609
      return __isset_bit_vector.get(__USERID_ISSET_ID);
553 chandransh 52610
    }
52611
 
2981 rajveer 52612
    public void setUserIdIsSet(boolean value) {
52613
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
553 chandransh 52614
    }
52615
 
2981 rajveer 52616
    public long getItemId() {
52617
      return this.itemId;
553 chandransh 52618
    }
52619
 
3430 rajveer 52620
    public void setItemId(long itemId) {
2981 rajveer 52621
      this.itemId = itemId;
52622
      setItemIdIsSet(true);
553 chandransh 52623
    }
52624
 
2981 rajveer 52625
    public void unsetItemId() {
52626
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
553 chandransh 52627
    }
52628
 
3430 rajveer 52629
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 52630
    public boolean isSetItemId() {
52631
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
553 chandransh 52632
    }
52633
 
2981 rajveer 52634
    public void setItemIdIsSet(boolean value) {
52635
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
553 chandransh 52636
    }
52637
 
52638
    public void setFieldValue(_Fields field, Object value) {
52639
      switch (field) {
2981 rajveer 52640
      case USER_ID:
553 chandransh 52641
        if (value == null) {
2981 rajveer 52642
          unsetUserId();
553 chandransh 52643
        } else {
2981 rajveer 52644
          setUserId((Long)value);
553 chandransh 52645
        }
52646
        break;
52647
 
2981 rajveer 52648
      case ITEM_ID:
553 chandransh 52649
        if (value == null) {
2981 rajveer 52650
          unsetItemId();
553 chandransh 52651
        } else {
2981 rajveer 52652
          setItemId((Long)value);
553 chandransh 52653
        }
52654
        break;
52655
 
130 ashish 52656
      }
52657
    }
52658
 
553 chandransh 52659
    public Object getFieldValue(_Fields field) {
52660
      switch (field) {
2981 rajveer 52661
      case USER_ID:
3430 rajveer 52662
        return Long.valueOf(getUserId());
553 chandransh 52663
 
2981 rajveer 52664
      case ITEM_ID:
3430 rajveer 52665
        return Long.valueOf(getItemId());
553 chandransh 52666
 
52667
      }
52668
      throw new IllegalStateException();
52669
    }
52670
 
3430 rajveer 52671
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52672
    public boolean isSet(_Fields field) {
52673
      if (field == null) {
52674
        throw new IllegalArgumentException();
52675
      }
553 chandransh 52676
 
52677
      switch (field) {
2981 rajveer 52678
      case USER_ID:
52679
        return isSetUserId();
52680
      case ITEM_ID:
52681
        return isSetItemId();
553 chandransh 52682
      }
52683
      throw new IllegalStateException();
52684
    }
52685
 
52686
    @Override
52687
    public boolean equals(Object that) {
52688
      if (that == null)
52689
        return false;
2981 rajveer 52690
      if (that instanceof updateMyResearch_args)
52691
        return this.equals((updateMyResearch_args)that);
553 chandransh 52692
      return false;
52693
    }
52694
 
2981 rajveer 52695
    public boolean equals(updateMyResearch_args that) {
553 chandransh 52696
      if (that == null)
52697
        return false;
52698
 
2981 rajveer 52699
      boolean this_present_userId = true;
52700
      boolean that_present_userId = true;
52701
      if (this_present_userId || that_present_userId) {
52702
        if (!(this_present_userId && that_present_userId))
553 chandransh 52703
          return false;
2981 rajveer 52704
        if (this.userId != that.userId)
553 chandransh 52705
          return false;
52706
      }
52707
 
2981 rajveer 52708
      boolean this_present_itemId = true;
52709
      boolean that_present_itemId = true;
52710
      if (this_present_itemId || that_present_itemId) {
52711
        if (!(this_present_itemId && that_present_itemId))
553 chandransh 52712
          return false;
2981 rajveer 52713
        if (this.itemId != that.itemId)
553 chandransh 52714
          return false;
52715
      }
52716
 
52717
      return true;
52718
    }
52719
 
52720
    @Override
52721
    public int hashCode() {
52722
      return 0;
52723
    }
52724
 
2981 rajveer 52725
    public int compareTo(updateMyResearch_args other) {
553 chandransh 52726
      if (!getClass().equals(other.getClass())) {
52727
        return getClass().getName().compareTo(other.getClass().getName());
52728
      }
52729
 
52730
      int lastComparison = 0;
2981 rajveer 52731
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
553 chandransh 52732
 
3430 rajveer 52733
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 52734
      if (lastComparison != 0) {
52735
        return lastComparison;
52736
      }
3430 rajveer 52737
      if (isSetUserId()) {
52738
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
52739
        if (lastComparison != 0) {
52740
          return lastComparison;
52741
        }
553 chandransh 52742
      }
3430 rajveer 52743
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 52744
      if (lastComparison != 0) {
52745
        return lastComparison;
52746
      }
3430 rajveer 52747
      if (isSetItemId()) {
52748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
52749
        if (lastComparison != 0) {
52750
          return lastComparison;
52751
        }
553 chandransh 52752
      }
52753
      return 0;
52754
    }
52755
 
3430 rajveer 52756
    public _Fields fieldForId(int fieldId) {
52757
      return _Fields.findByThriftId(fieldId);
52758
    }
52759
 
52760
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52761
      org.apache.thrift.protocol.TField field;
553 chandransh 52762
      iprot.readStructBegin();
52763
      while (true)
52764
      {
52765
        field = iprot.readFieldBegin();
3430 rajveer 52766
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52767
          break;
52768
        }
3430 rajveer 52769
        switch (field.id) {
52770
          case 1: // USER_ID
52771
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52772
              this.userId = iprot.readI64();
52773
              setUserIdIsSet(true);
52774
            } else { 
52775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52776
            }
52777
            break;
52778
          case 2: // ITEM_ID
52779
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52780
              this.itemId = iprot.readI64();
52781
              setItemIdIsSet(true);
52782
            } else { 
52783
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52784
            }
52785
            break;
52786
          default:
52787
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52788
        }
3430 rajveer 52789
        iprot.readFieldEnd();
553 chandransh 52790
      }
52791
      iprot.readStructEnd();
52792
      validate();
52793
    }
52794
 
3430 rajveer 52795
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52796
      validate();
52797
 
52798
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 52799
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
52800
      oprot.writeI64(this.userId);
553 chandransh 52801
      oprot.writeFieldEnd();
2981 rajveer 52802
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
52803
      oprot.writeI64(this.itemId);
553 chandransh 52804
      oprot.writeFieldEnd();
52805
      oprot.writeFieldStop();
52806
      oprot.writeStructEnd();
52807
    }
52808
 
52809
    @Override
52810
    public String toString() {
2981 rajveer 52811
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
553 chandransh 52812
      boolean first = true;
52813
 
2981 rajveer 52814
      sb.append("userId:");
52815
      sb.append(this.userId);
553 chandransh 52816
      first = false;
52817
      if (!first) sb.append(", ");
2981 rajveer 52818
      sb.append("itemId:");
52819
      sb.append(this.itemId);
553 chandransh 52820
      first = false;
52821
      sb.append(")");
52822
      return sb.toString();
52823
    }
52824
 
3430 rajveer 52825
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52826
      // check for required fields
52827
    }
52828
 
3430 rajveer 52829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52830
      try {
52831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52832
      } catch (org.apache.thrift.TException te) {
52833
        throw new java.io.IOException(te);
52834
      }
52835
    }
52836
 
52837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52838
      try {
52839
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52840
        __isset_bit_vector = new BitSet(1);
52841
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52842
      } catch (org.apache.thrift.TException te) {
52843
        throw new java.io.IOException(te);
52844
      }
52845
    }
52846
 
553 chandransh 52847
  }
52848
 
3430 rajveer 52849
  public static class updateMyResearch_result implements org.apache.thrift.TBase<updateMyResearch_result, updateMyResearch_result._Fields>, java.io.Serializable, Cloneable   {
52850
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMyResearch_result");
553 chandransh 52851
 
3430 rajveer 52852
    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);
52853
    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 52854
 
3430 rajveer 52855
    private boolean success; // required
52856
    private WidgetException scx; // required
553 chandransh 52857
 
52858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52860
      SUCCESS((short)0, "success"),
52861
      SCX((short)1, "scx");
553 chandransh 52862
 
52863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52864
 
52865
      static {
52866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52867
          byName.put(field.getFieldName(), field);
52868
        }
52869
      }
52870
 
52871
      /**
52872
       * Find the _Fields constant that matches fieldId, or null if its not found.
52873
       */
52874
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52875
        switch(fieldId) {
52876
          case 0: // SUCCESS
52877
            return SUCCESS;
52878
          case 1: // SCX
52879
            return SCX;
52880
          default:
52881
            return null;
52882
        }
553 chandransh 52883
      }
52884
 
52885
      /**
52886
       * Find the _Fields constant that matches fieldId, throwing an exception
52887
       * if it is not found.
52888
       */
52889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52890
        _Fields fields = findByThriftId(fieldId);
52891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52892
        return fields;
52893
      }
52894
 
52895
      /**
52896
       * Find the _Fields constant that matches name, or null if its not found.
52897
       */
52898
      public static _Fields findByName(String name) {
52899
        return byName.get(name);
52900
      }
52901
 
52902
      private final short _thriftId;
52903
      private final String _fieldName;
52904
 
52905
      _Fields(short thriftId, String fieldName) {
52906
        _thriftId = thriftId;
52907
        _fieldName = fieldName;
52908
      }
52909
 
52910
      public short getThriftFieldId() {
52911
        return _thriftId;
52912
      }
52913
 
52914
      public String getFieldName() {
52915
        return _fieldName;
52916
      }
52917
    }
2981 rajveer 52918
 
52919
    // isset id assignments
52920
    private static final int __SUCCESS_ISSET_ID = 0;
52921
    private BitSet __isset_bit_vector = new BitSet(1);
52922
 
3430 rajveer 52923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52924
    static {
3430 rajveer 52925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52926
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
52928
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52930
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52931
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMyResearch_result.class, metaDataMap);
553 chandransh 52932
    }
52933
 
2981 rajveer 52934
    public updateMyResearch_result() {
553 chandransh 52935
    }
52936
 
2981 rajveer 52937
    public updateMyResearch_result(
52938
      boolean success,
52939
      WidgetException scx)
52940
    {
52941
      this();
52942
      this.success = success;
52943
      setSuccessIsSet(true);
52944
      this.scx = scx;
52945
    }
52946
 
553 chandransh 52947
    /**
52948
     * Performs a deep copy on <i>other</i>.
52949
     */
2981 rajveer 52950
    public updateMyResearch_result(updateMyResearch_result other) {
52951
      __isset_bit_vector.clear();
52952
      __isset_bit_vector.or(other.__isset_bit_vector);
52953
      this.success = other.success;
52954
      if (other.isSetScx()) {
52955
        this.scx = new WidgetException(other.scx);
52956
      }
553 chandransh 52957
    }
52958
 
2981 rajveer 52959
    public updateMyResearch_result deepCopy() {
52960
      return new updateMyResearch_result(this);
553 chandransh 52961
    }
52962
 
3430 rajveer 52963
    @Override
52964
    public void clear() {
52965
      setSuccessIsSet(false);
52966
      this.success = false;
52967
      this.scx = null;
130 ashish 52968
    }
52969
 
2981 rajveer 52970
    public boolean isSuccess() {
52971
      return this.success;
553 chandransh 52972
    }
52973
 
3430 rajveer 52974
    public void setSuccess(boolean success) {
2981 rajveer 52975
      this.success = success;
52976
      setSuccessIsSet(true);
553 chandransh 52977
    }
52978
 
2981 rajveer 52979
    public void unsetSuccess() {
52980
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
553 chandransh 52981
    }
52982
 
3430 rajveer 52983
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 52984
    public boolean isSetSuccess() {
52985
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
553 chandransh 52986
    }
52987
 
2981 rajveer 52988
    public void setSuccessIsSet(boolean value) {
52989
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
553 chandransh 52990
    }
52991
 
2981 rajveer 52992
    public WidgetException getScx() {
52993
      return this.scx;
553 chandransh 52994
    }
52995
 
3430 rajveer 52996
    public void setScx(WidgetException scx) {
2981 rajveer 52997
      this.scx = scx;
1598 ankur.sing 52998
    }
52999
 
2981 rajveer 53000
    public void unsetScx() {
53001
      this.scx = null;
1598 ankur.sing 53002
    }
53003
 
3430 rajveer 53004
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 53005
    public boolean isSetScx() {
53006
      return this.scx != null;
1598 ankur.sing 53007
    }
53008
 
2981 rajveer 53009
    public void setScxIsSet(boolean value) {
1598 ankur.sing 53010
      if (!value) {
2981 rajveer 53011
        this.scx = null;
1598 ankur.sing 53012
      }
53013
    }
53014
 
53015
    public void setFieldValue(_Fields field, Object value) {
53016
      switch (field) {
2981 rajveer 53017
      case SUCCESS:
1598 ankur.sing 53018
        if (value == null) {
2981 rajveer 53019
          unsetSuccess();
1598 ankur.sing 53020
        } else {
2981 rajveer 53021
          setSuccess((Boolean)value);
1598 ankur.sing 53022
        }
53023
        break;
53024
 
2981 rajveer 53025
      case SCX:
53026
        if (value == null) {
53027
          unsetScx();
53028
        } else {
53029
          setScx((WidgetException)value);
53030
        }
53031
        break;
53032
 
1598 ankur.sing 53033
      }
53034
    }
53035
 
53036
    public Object getFieldValue(_Fields field) {
53037
      switch (field) {
2981 rajveer 53038
      case SUCCESS:
3430 rajveer 53039
        return Boolean.valueOf(isSuccess());
1598 ankur.sing 53040
 
2981 rajveer 53041
      case SCX:
53042
        return getScx();
53043
 
1598 ankur.sing 53044
      }
53045
      throw new IllegalStateException();
53046
    }
53047
 
3430 rajveer 53048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53049
    public boolean isSet(_Fields field) {
53050
      if (field == null) {
53051
        throw new IllegalArgumentException();
53052
      }
1598 ankur.sing 53053
 
53054
      switch (field) {
2981 rajveer 53055
      case SUCCESS:
53056
        return isSetSuccess();
53057
      case SCX:
53058
        return isSetScx();
1598 ankur.sing 53059
      }
53060
      throw new IllegalStateException();
53061
    }
53062
 
53063
    @Override
53064
    public boolean equals(Object that) {
53065
      if (that == null)
53066
        return false;
2981 rajveer 53067
      if (that instanceof updateMyResearch_result)
53068
        return this.equals((updateMyResearch_result)that);
1598 ankur.sing 53069
      return false;
53070
    }
53071
 
2981 rajveer 53072
    public boolean equals(updateMyResearch_result that) {
1598 ankur.sing 53073
      if (that == null)
53074
        return false;
53075
 
2981 rajveer 53076
      boolean this_present_success = true;
53077
      boolean that_present_success = true;
53078
      if (this_present_success || that_present_success) {
53079
        if (!(this_present_success && that_present_success))
1598 ankur.sing 53080
          return false;
2981 rajveer 53081
        if (this.success != that.success)
1598 ankur.sing 53082
          return false;
53083
      }
53084
 
2981 rajveer 53085
      boolean this_present_scx = true && this.isSetScx();
53086
      boolean that_present_scx = true && that.isSetScx();
53087
      if (this_present_scx || that_present_scx) {
53088
        if (!(this_present_scx && that_present_scx))
53089
          return false;
53090
        if (!this.scx.equals(that.scx))
53091
          return false;
53092
      }
53093
 
1598 ankur.sing 53094
      return true;
53095
    }
53096
 
53097
    @Override
53098
    public int hashCode() {
53099
      return 0;
53100
    }
53101
 
2981 rajveer 53102
    public int compareTo(updateMyResearch_result other) {
1598 ankur.sing 53103
      if (!getClass().equals(other.getClass())) {
53104
        return getClass().getName().compareTo(other.getClass().getName());
53105
      }
53106
 
53107
      int lastComparison = 0;
2981 rajveer 53108
      updateMyResearch_result typedOther = (updateMyResearch_result)other;
1598 ankur.sing 53109
 
3430 rajveer 53110
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1598 ankur.sing 53111
      if (lastComparison != 0) {
53112
        return lastComparison;
53113
      }
3430 rajveer 53114
      if (isSetSuccess()) {
53115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53116
        if (lastComparison != 0) {
53117
          return lastComparison;
53118
        }
1598 ankur.sing 53119
      }
3430 rajveer 53120
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
2981 rajveer 53121
      if (lastComparison != 0) {
53122
        return lastComparison;
53123
      }
3430 rajveer 53124
      if (isSetScx()) {
53125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
53126
        if (lastComparison != 0) {
53127
          return lastComparison;
53128
        }
2981 rajveer 53129
      }
1598 ankur.sing 53130
      return 0;
53131
    }
53132
 
3430 rajveer 53133
    public _Fields fieldForId(int fieldId) {
53134
      return _Fields.findByThriftId(fieldId);
53135
    }
53136
 
53137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53138
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 53139
      iprot.readStructBegin();
53140
      while (true)
53141
      {
53142
        field = iprot.readFieldBegin();
3430 rajveer 53143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 53144
          break;
53145
        }
3430 rajveer 53146
        switch (field.id) {
53147
          case 0: // SUCCESS
53148
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
53149
              this.success = iprot.readBool();
53150
              setSuccessIsSet(true);
53151
            } else { 
53152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53153
            }
53154
            break;
53155
          case 1: // SCX
53156
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53157
              this.scx = new WidgetException();
53158
              this.scx.read(iprot);
53159
            } else { 
53160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53161
            }
53162
            break;
53163
          default:
53164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 53165
        }
3430 rajveer 53166
        iprot.readFieldEnd();
1598 ankur.sing 53167
      }
53168
      iprot.readStructEnd();
53169
      validate();
53170
    }
53171
 
3430 rajveer 53172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 53173
      oprot.writeStructBegin(STRUCT_DESC);
1598 ankur.sing 53174
 
2981 rajveer 53175
      if (this.isSetSuccess()) {
53176
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53177
        oprot.writeBool(this.success);
1598 ankur.sing 53178
        oprot.writeFieldEnd();
2981 rajveer 53179
      } else if (this.isSetScx()) {
53180
        oprot.writeFieldBegin(SCX_FIELD_DESC);
53181
        this.scx.write(oprot);
53182
        oprot.writeFieldEnd();
1598 ankur.sing 53183
      }
53184
      oprot.writeFieldStop();
53185
      oprot.writeStructEnd();
53186
    }
53187
 
53188
    @Override
53189
    public String toString() {
2981 rajveer 53190
      StringBuilder sb = new StringBuilder("updateMyResearch_result(");
1598 ankur.sing 53191
      boolean first = true;
53192
 
2981 rajveer 53193
      sb.append("success:");
53194
      sb.append(this.success);
53195
      first = false;
53196
      if (!first) sb.append(", ");
53197
      sb.append("scx:");
53198
      if (this.scx == null) {
1598 ankur.sing 53199
        sb.append("null");
53200
      } else {
2981 rajveer 53201
        sb.append(this.scx);
1598 ankur.sing 53202
      }
53203
      first = false;
53204
      sb.append(")");
53205
      return sb.toString();
53206
    }
53207
 
3430 rajveer 53208
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 53209
      // check for required fields
53210
    }
53211
 
3430 rajveer 53212
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53213
      try {
53214
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53215
      } catch (org.apache.thrift.TException te) {
53216
        throw new java.io.IOException(te);
53217
      }
53218
    }
53219
 
53220
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53221
      try {
53222
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53223
      } catch (org.apache.thrift.TException te) {
53224
        throw new java.io.IOException(te);
53225
      }
53226
    }
53227
 
1598 ankur.sing 53228
  }
53229
 
3430 rajveer 53230
  public static class deleteItemFromMyResearch_args implements org.apache.thrift.TBase<deleteItemFromMyResearch_args, deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable   {
53231
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromMyResearch_args");
1598 ankur.sing 53232
 
3430 rajveer 53233
    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);
53234
    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 53235
 
3430 rajveer 53236
    private long userId; // required
53237
    private long itemId; // required
1598 ankur.sing 53238
 
53239
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53240
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53241
      USER_ID((short)1, "userId"),
53242
      ITEM_ID((short)2, "itemId");
1598 ankur.sing 53243
 
53244
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53245
 
53246
      static {
53247
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53248
          byName.put(field.getFieldName(), field);
53249
        }
53250
      }
53251
 
53252
      /**
53253
       * Find the _Fields constant that matches fieldId, or null if its not found.
53254
       */
53255
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53256
        switch(fieldId) {
53257
          case 1: // USER_ID
53258
            return USER_ID;
53259
          case 2: // ITEM_ID
53260
            return ITEM_ID;
53261
          default:
53262
            return null;
53263
        }
1598 ankur.sing 53264
      }
53265
 
53266
      /**
53267
       * Find the _Fields constant that matches fieldId, throwing an exception
53268
       * if it is not found.
53269
       */
53270
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53271
        _Fields fields = findByThriftId(fieldId);
53272
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53273
        return fields;
53274
      }
53275
 
53276
      /**
53277
       * Find the _Fields constant that matches name, or null if its not found.
53278
       */
53279
      public static _Fields findByName(String name) {
53280
        return byName.get(name);
53281
      }
53282
 
53283
      private final short _thriftId;
53284
      private final String _fieldName;
53285
 
53286
      _Fields(short thriftId, String fieldName) {
53287
        _thriftId = thriftId;
53288
        _fieldName = fieldName;
53289
      }
53290
 
53291
      public short getThriftFieldId() {
53292
        return _thriftId;
53293
      }
53294
 
53295
      public String getFieldName() {
53296
        return _fieldName;
53297
      }
53298
    }
53299
 
53300
    // isset id assignments
2981 rajveer 53301
    private static final int __USERID_ISSET_ID = 0;
53302
    private static final int __ITEMID_ISSET_ID = 1;
53303
    private BitSet __isset_bit_vector = new BitSet(2);
1598 ankur.sing 53304
 
3430 rajveer 53305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1598 ankur.sing 53306
    static {
3430 rajveer 53307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53308
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53310
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
1598 ankur.sing 53314
    }
53315
 
2981 rajveer 53316
    public deleteItemFromMyResearch_args() {
1598 ankur.sing 53317
    }
53318
 
2981 rajveer 53319
    public deleteItemFromMyResearch_args(
53320
      long userId,
53321
      long itemId)
1598 ankur.sing 53322
    {
53323
      this();
2981 rajveer 53324
      this.userId = userId;
53325
      setUserIdIsSet(true);
53326
      this.itemId = itemId;
53327
      setItemIdIsSet(true);
1598 ankur.sing 53328
    }
53329
 
53330
    /**
53331
     * Performs a deep copy on <i>other</i>.
53332
     */
2981 rajveer 53333
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
1598 ankur.sing 53334
      __isset_bit_vector.clear();
53335
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 53336
      this.userId = other.userId;
53337
      this.itemId = other.itemId;
1598 ankur.sing 53338
    }
53339
 
2981 rajveer 53340
    public deleteItemFromMyResearch_args deepCopy() {
53341
      return new deleteItemFromMyResearch_args(this);
1598 ankur.sing 53342
    }
53343
 
3430 rajveer 53344
    @Override
53345
    public void clear() {
53346
      setUserIdIsSet(false);
53347
      this.userId = 0;
53348
      setItemIdIsSet(false);
53349
      this.itemId = 0;
1598 ankur.sing 53350
    }
53351
 
2981 rajveer 53352
    public long getUserId() {
53353
      return this.userId;
1598 ankur.sing 53354
    }
53355
 
3430 rajveer 53356
    public void setUserId(long userId) {
2981 rajveer 53357
      this.userId = userId;
53358
      setUserIdIsSet(true);
1598 ankur.sing 53359
    }
53360
 
2981 rajveer 53361
    public void unsetUserId() {
53362
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1598 ankur.sing 53363
    }
53364
 
3430 rajveer 53365
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 53366
    public boolean isSetUserId() {
53367
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1598 ankur.sing 53368
    }
53369
 
2981 rajveer 53370
    public void setUserIdIsSet(boolean value) {
53371
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
1598 ankur.sing 53372
    }
53373
 
2981 rajveer 53374
    public long getItemId() {
53375
      return this.itemId;
53376
    }
53377
 
3430 rajveer 53378
    public void setItemId(long itemId) {
2981 rajveer 53379
      this.itemId = itemId;
53380
      setItemIdIsSet(true);
53381
    }
53382
 
53383
    public void unsetItemId() {
53384
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
53385
    }
53386
 
3430 rajveer 53387
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 53388
    public boolean isSetItemId() {
53389
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
53390
    }
53391
 
53392
    public void setItemIdIsSet(boolean value) {
53393
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
53394
    }
53395
 
1598 ankur.sing 53396
    public void setFieldValue(_Fields field, Object value) {
53397
      switch (field) {
2981 rajveer 53398
      case USER_ID:
1598 ankur.sing 53399
        if (value == null) {
2981 rajveer 53400
          unsetUserId();
1598 ankur.sing 53401
        } else {
2981 rajveer 53402
          setUserId((Long)value);
1598 ankur.sing 53403
        }
53404
        break;
53405
 
2981 rajveer 53406
      case ITEM_ID:
53407
        if (value == null) {
53408
          unsetItemId();
53409
        } else {
53410
          setItemId((Long)value);
53411
        }
53412
        break;
53413
 
1598 ankur.sing 53414
      }
53415
    }
53416
 
53417
    public Object getFieldValue(_Fields field) {
53418
      switch (field) {
2981 rajveer 53419
      case USER_ID:
3430 rajveer 53420
        return Long.valueOf(getUserId());
1598 ankur.sing 53421
 
2981 rajveer 53422
      case ITEM_ID:
3430 rajveer 53423
        return Long.valueOf(getItemId());
2981 rajveer 53424
 
1598 ankur.sing 53425
      }
53426
      throw new IllegalStateException();
53427
    }
53428
 
3430 rajveer 53429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53430
    public boolean isSet(_Fields field) {
53431
      if (field == null) {
53432
        throw new IllegalArgumentException();
53433
      }
1598 ankur.sing 53434
 
53435
      switch (field) {
2981 rajveer 53436
      case USER_ID:
53437
        return isSetUserId();
53438
      case ITEM_ID:
53439
        return isSetItemId();
1598 ankur.sing 53440
      }
53441
      throw new IllegalStateException();
53442
    }
53443
 
53444
    @Override
53445
    public boolean equals(Object that) {
53446
      if (that == null)
53447
        return false;
2981 rajveer 53448
      if (that instanceof deleteItemFromMyResearch_args)
53449
        return this.equals((deleteItemFromMyResearch_args)that);
1598 ankur.sing 53450
      return false;
53451
    }
53452
 
2981 rajveer 53453
    public boolean equals(deleteItemFromMyResearch_args that) {
1598 ankur.sing 53454
      if (that == null)
53455
        return false;
53456
 
2981 rajveer 53457
      boolean this_present_userId = true;
53458
      boolean that_present_userId = true;
53459
      if (this_present_userId || that_present_userId) {
53460
        if (!(this_present_userId && that_present_userId))
1598 ankur.sing 53461
          return false;
2981 rajveer 53462
        if (this.userId != that.userId)
1598 ankur.sing 53463
          return false;
53464
      }
53465
 
2981 rajveer 53466
      boolean this_present_itemId = true;
53467
      boolean that_present_itemId = true;
53468
      if (this_present_itemId || that_present_itemId) {
53469
        if (!(this_present_itemId && that_present_itemId))
53470
          return false;
53471
        if (this.itemId != that.itemId)
53472
          return false;
53473
      }
53474
 
1598 ankur.sing 53475
      return true;
53476
    }
53477
 
53478
    @Override
53479
    public int hashCode() {
53480
      return 0;
53481
    }
53482
 
2981 rajveer 53483
    public int compareTo(deleteItemFromMyResearch_args other) {
1598 ankur.sing 53484
      if (!getClass().equals(other.getClass())) {
53485
        return getClass().getName().compareTo(other.getClass().getName());
53486
      }
53487
 
53488
      int lastComparison = 0;
2981 rajveer 53489
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
1598 ankur.sing 53490
 
3430 rajveer 53491
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1598 ankur.sing 53492
      if (lastComparison != 0) {
53493
        return lastComparison;
53494
      }
3430 rajveer 53495
      if (isSetUserId()) {
53496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
53497
        if (lastComparison != 0) {
53498
          return lastComparison;
53499
        }
1598 ankur.sing 53500
      }
3430 rajveer 53501
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2981 rajveer 53502
      if (lastComparison != 0) {
53503
        return lastComparison;
53504
      }
3430 rajveer 53505
      if (isSetItemId()) {
53506
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
53507
        if (lastComparison != 0) {
53508
          return lastComparison;
53509
        }
2981 rajveer 53510
      }
1598 ankur.sing 53511
      return 0;
53512
    }
53513
 
3430 rajveer 53514
    public _Fields fieldForId(int fieldId) {
53515
      return _Fields.findByThriftId(fieldId);
53516
    }
53517
 
53518
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53519
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 53520
      iprot.readStructBegin();
53521
      while (true)
53522
      {
53523
        field = iprot.readFieldBegin();
3430 rajveer 53524
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 53525
          break;
53526
        }
3430 rajveer 53527
        switch (field.id) {
53528
          case 1: // USER_ID
53529
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53530
              this.userId = iprot.readI64();
53531
              setUserIdIsSet(true);
53532
            } else { 
53533
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53534
            }
53535
            break;
53536
          case 2: // ITEM_ID
53537
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53538
              this.itemId = iprot.readI64();
53539
              setItemIdIsSet(true);
53540
            } else { 
53541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53542
            }
53543
            break;
53544
          default:
53545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 53546
        }
3430 rajveer 53547
        iprot.readFieldEnd();
1598 ankur.sing 53548
      }
53549
      iprot.readStructEnd();
53550
      validate();
53551
    }
53552
 
3430 rajveer 53553
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 53554
      validate();
53555
 
1598 ankur.sing 53556
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 53557
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
53558
      oprot.writeI64(this.userId);
53559
      oprot.writeFieldEnd();
53560
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
53561
      oprot.writeI64(this.itemId);
53562
      oprot.writeFieldEnd();
1598 ankur.sing 53563
      oprot.writeFieldStop();
53564
      oprot.writeStructEnd();
53565
    }
53566
 
53567
    @Override
53568
    public String toString() {
2981 rajveer 53569
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
1598 ankur.sing 53570
      boolean first = true;
53571
 
2981 rajveer 53572
      sb.append("userId:");
53573
      sb.append(this.userId);
1598 ankur.sing 53574
      first = false;
2981 rajveer 53575
      if (!first) sb.append(", ");
53576
      sb.append("itemId:");
53577
      sb.append(this.itemId);
53578
      first = false;
1598 ankur.sing 53579
      sb.append(")");
53580
      return sb.toString();
53581
    }
53582
 
3430 rajveer 53583
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 53584
      // check for required fields
53585
    }
53586
 
3430 rajveer 53587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53588
      try {
53589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53590
      } catch (org.apache.thrift.TException te) {
53591
        throw new java.io.IOException(te);
53592
      }
53593
    }
53594
 
53595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53596
      try {
53597
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
53598
        __isset_bit_vector = new BitSet(1);
53599
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53600
      } catch (org.apache.thrift.TException te) {
53601
        throw new java.io.IOException(te);
53602
      }
53603
    }
53604
 
1598 ankur.sing 53605
  }
53606
 
3430 rajveer 53607
  public static class deleteItemFromMyResearch_result implements org.apache.thrift.TBase<deleteItemFromMyResearch_result, deleteItemFromMyResearch_result._Fields>, java.io.Serializable, Cloneable   {
53608
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromMyResearch_result");
1674 ankur.sing 53609
 
3430 rajveer 53610
    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 53611
 
3430 rajveer 53612
    private WidgetException scx; // required
1674 ankur.sing 53613
 
53614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53616
      SCX((short)1, "scx");
1674 ankur.sing 53617
 
53618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53619
 
53620
      static {
53621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53622
          byName.put(field.getFieldName(), field);
53623
        }
53624
      }
53625
 
53626
      /**
53627
       * Find the _Fields constant that matches fieldId, or null if its not found.
53628
       */
53629
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53630
        switch(fieldId) {
53631
          case 1: // SCX
53632
            return SCX;
53633
          default:
53634
            return null;
53635
        }
1674 ankur.sing 53636
      }
53637
 
53638
      /**
53639
       * Find the _Fields constant that matches fieldId, throwing an exception
53640
       * if it is not found.
53641
       */
53642
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53643
        _Fields fields = findByThriftId(fieldId);
53644
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53645
        return fields;
53646
      }
53647
 
53648
      /**
53649
       * Find the _Fields constant that matches name, or null if its not found.
53650
       */
53651
      public static _Fields findByName(String name) {
53652
        return byName.get(name);
53653
      }
53654
 
53655
      private final short _thriftId;
53656
      private final String _fieldName;
53657
 
53658
      _Fields(short thriftId, String fieldName) {
53659
        _thriftId = thriftId;
53660
        _fieldName = fieldName;
53661
      }
53662
 
53663
      public short getThriftFieldId() {
53664
        return _thriftId;
53665
      }
53666
 
53667
      public String getFieldName() {
53668
        return _fieldName;
53669
      }
53670
    }
53671
 
53672
    // isset id assignments
53673
 
3430 rajveer 53674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1674 ankur.sing 53675
    static {
3430 rajveer 53676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53677
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53679
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53680
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_result.class, metaDataMap);
1674 ankur.sing 53681
    }
53682
 
2981 rajveer 53683
    public deleteItemFromMyResearch_result() {
1674 ankur.sing 53684
    }
53685
 
2981 rajveer 53686
    public deleteItemFromMyResearch_result(
53687
      WidgetException scx)
1674 ankur.sing 53688
    {
53689
      this();
2981 rajveer 53690
      this.scx = scx;
1674 ankur.sing 53691
    }
53692
 
53693
    /**
53694
     * Performs a deep copy on <i>other</i>.
53695
     */
2981 rajveer 53696
    public deleteItemFromMyResearch_result(deleteItemFromMyResearch_result other) {
53697
      if (other.isSetScx()) {
53698
        this.scx = new WidgetException(other.scx);
1674 ankur.sing 53699
      }
53700
    }
53701
 
2981 rajveer 53702
    public deleteItemFromMyResearch_result deepCopy() {
53703
      return new deleteItemFromMyResearch_result(this);
1674 ankur.sing 53704
    }
53705
 
3430 rajveer 53706
    @Override
53707
    public void clear() {
53708
      this.scx = null;
1674 ankur.sing 53709
    }
53710
 
2981 rajveer 53711
    public WidgetException getScx() {
53712
      return this.scx;
1674 ankur.sing 53713
    }
53714
 
3430 rajveer 53715
    public void setScx(WidgetException scx) {
2981 rajveer 53716
      this.scx = scx;
1674 ankur.sing 53717
    }
53718
 
2981 rajveer 53719
    public void unsetScx() {
53720
      this.scx = null;
1674 ankur.sing 53721
    }
53722
 
3430 rajveer 53723
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 53724
    public boolean isSetScx() {
53725
      return this.scx != null;
1674 ankur.sing 53726
    }
53727
 
2981 rajveer 53728
    public void setScxIsSet(boolean value) {
1674 ankur.sing 53729
      if (!value) {
2981 rajveer 53730
        this.scx = null;
1674 ankur.sing 53731
      }
53732
    }
53733
 
53734
    public void setFieldValue(_Fields field, Object value) {
53735
      switch (field) {
2981 rajveer 53736
      case SCX:
1674 ankur.sing 53737
        if (value == null) {
2981 rajveer 53738
          unsetScx();
1674 ankur.sing 53739
        } else {
2981 rajveer 53740
          setScx((WidgetException)value);
1674 ankur.sing 53741
        }
53742
        break;
53743
 
53744
      }
53745
    }
53746
 
53747
    public Object getFieldValue(_Fields field) {
53748
      switch (field) {
2981 rajveer 53749
      case SCX:
53750
        return getScx();
1674 ankur.sing 53751
 
53752
      }
53753
      throw new IllegalStateException();
53754
    }
53755
 
3430 rajveer 53756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53757
    public boolean isSet(_Fields field) {
53758
      if (field == null) {
53759
        throw new IllegalArgumentException();
53760
      }
1674 ankur.sing 53761
 
53762
      switch (field) {
2981 rajveer 53763
      case SCX:
53764
        return isSetScx();
1674 ankur.sing 53765
      }
53766
      throw new IllegalStateException();
53767
    }
53768
 
53769
    @Override
53770
    public boolean equals(Object that) {
53771
      if (that == null)
53772
        return false;
2981 rajveer 53773
      if (that instanceof deleteItemFromMyResearch_result)
53774
        return this.equals((deleteItemFromMyResearch_result)that);
1674 ankur.sing 53775
      return false;
53776
    }
53777
 
2981 rajveer 53778
    public boolean equals(deleteItemFromMyResearch_result that) {
1674 ankur.sing 53779
      if (that == null)
53780
        return false;
53781
 
2981 rajveer 53782
      boolean this_present_scx = true && this.isSetScx();
53783
      boolean that_present_scx = true && that.isSetScx();
53784
      if (this_present_scx || that_present_scx) {
53785
        if (!(this_present_scx && that_present_scx))
1674 ankur.sing 53786
          return false;
2981 rajveer 53787
        if (!this.scx.equals(that.scx))
1674 ankur.sing 53788
          return false;
53789
      }
53790
 
53791
      return true;
53792
    }
53793
 
53794
    @Override
53795
    public int hashCode() {
53796
      return 0;
53797
    }
53798
 
2981 rajveer 53799
    public int compareTo(deleteItemFromMyResearch_result other) {
1674 ankur.sing 53800
      if (!getClass().equals(other.getClass())) {
53801
        return getClass().getName().compareTo(other.getClass().getName());
53802
      }
53803
 
53804
      int lastComparison = 0;
2981 rajveer 53805
      deleteItemFromMyResearch_result typedOther = (deleteItemFromMyResearch_result)other;
1674 ankur.sing 53806
 
3430 rajveer 53807
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1674 ankur.sing 53808
      if (lastComparison != 0) {
53809
        return lastComparison;
53810
      }
3430 rajveer 53811
      if (isSetScx()) {
53812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
53813
        if (lastComparison != 0) {
53814
          return lastComparison;
53815
        }
1674 ankur.sing 53816
      }
53817
      return 0;
53818
    }
53819
 
3430 rajveer 53820
    public _Fields fieldForId(int fieldId) {
53821
      return _Fields.findByThriftId(fieldId);
53822
    }
53823
 
53824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53825
      org.apache.thrift.protocol.TField field;
1674 ankur.sing 53826
      iprot.readStructBegin();
53827
      while (true)
53828
      {
53829
        field = iprot.readFieldBegin();
3430 rajveer 53830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1674 ankur.sing 53831
          break;
53832
        }
3430 rajveer 53833
        switch (field.id) {
53834
          case 1: // SCX
53835
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53836
              this.scx = new WidgetException();
53837
              this.scx.read(iprot);
53838
            } else { 
53839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53840
            }
53841
            break;
53842
          default:
53843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674 ankur.sing 53844
        }
3430 rajveer 53845
        iprot.readFieldEnd();
1674 ankur.sing 53846
      }
53847
      iprot.readStructEnd();
53848
      validate();
53849
    }
53850
 
3430 rajveer 53851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 53852
      oprot.writeStructBegin(STRUCT_DESC);
1674 ankur.sing 53853
 
2981 rajveer 53854
      if (this.isSetScx()) {
53855
        oprot.writeFieldBegin(SCX_FIELD_DESC);
53856
        this.scx.write(oprot);
1674 ankur.sing 53857
        oprot.writeFieldEnd();
53858
      }
53859
      oprot.writeFieldStop();
53860
      oprot.writeStructEnd();
53861
    }
53862
 
53863
    @Override
53864
    public String toString() {
2981 rajveer 53865
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_result(");
1674 ankur.sing 53866
      boolean first = true;
53867
 
2981 rajveer 53868
      sb.append("scx:");
53869
      if (this.scx == null) {
1674 ankur.sing 53870
        sb.append("null");
53871
      } else {
2981 rajveer 53872
        sb.append(this.scx);
1674 ankur.sing 53873
      }
53874
      first = false;
53875
      sb.append(")");
53876
      return sb.toString();
53877
    }
53878
 
3430 rajveer 53879
    public void validate() throws org.apache.thrift.TException {
1674 ankur.sing 53880
      // check for required fields
53881
    }
53882
 
3430 rajveer 53883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53884
      try {
53885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53886
      } catch (org.apache.thrift.TException te) {
53887
        throw new java.io.IOException(te);
53888
      }
53889
    }
53890
 
53891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53892
      try {
53893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53894
      } catch (org.apache.thrift.TException te) {
53895
        throw new java.io.IOException(te);
53896
      }
53897
    }
53898
 
1674 ankur.sing 53899
  }
53900
 
3430 rajveer 53901
  public static class getBrowseHistoryItems_args implements org.apache.thrift.TBase<getBrowseHistoryItems_args, getBrowseHistoryItems_args._Fields>, java.io.Serializable, Cloneable   {
53902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrowseHistoryItems_args");
1674 ankur.sing 53903
 
3430 rajveer 53904
    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 53905
 
3430 rajveer 53906
    private long userId; // required
1674 ankur.sing 53907
 
53908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53910
      USER_ID((short)1, "userId");
1674 ankur.sing 53911
 
53912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53913
 
53914
      static {
53915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53916
          byName.put(field.getFieldName(), field);
53917
        }
53918
      }
53919
 
53920
      /**
53921
       * Find the _Fields constant that matches fieldId, or null if its not found.
53922
       */
53923
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53924
        switch(fieldId) {
53925
          case 1: // USER_ID
53926
            return USER_ID;
53927
          default:
53928
            return null;
53929
        }
1674 ankur.sing 53930
      }
53931
 
53932
      /**
53933
       * Find the _Fields constant that matches fieldId, throwing an exception
53934
       * if it is not found.
53935
       */
53936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53937
        _Fields fields = findByThriftId(fieldId);
53938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53939
        return fields;
53940
      }
53941
 
53942
      /**
53943
       * Find the _Fields constant that matches name, or null if its not found.
53944
       */
53945
      public static _Fields findByName(String name) {
53946
        return byName.get(name);
53947
      }
53948
 
53949
      private final short _thriftId;
53950
      private final String _fieldName;
53951
 
53952
      _Fields(short thriftId, String fieldName) {
53953
        _thriftId = thriftId;
53954
        _fieldName = fieldName;
53955
      }
53956
 
53957
      public short getThriftFieldId() {
53958
        return _thriftId;
53959
      }
53960
 
53961
      public String getFieldName() {
53962
        return _fieldName;
53963
      }
53964
    }
53965
 
53966
    // isset id assignments
2981 rajveer 53967
    private static final int __USERID_ISSET_ID = 0;
53968
    private BitSet __isset_bit_vector = new BitSet(1);
1674 ankur.sing 53969
 
3430 rajveer 53970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1674 ankur.sing 53971
    static {
3430 rajveer 53972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53973
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_args.class, metaDataMap);
1674 ankur.sing 53977
    }
53978
 
2981 rajveer 53979
    public getBrowseHistoryItems_args() {
1674 ankur.sing 53980
    }
53981
 
2981 rajveer 53982
    public getBrowseHistoryItems_args(
53983
      long userId)
1674 ankur.sing 53984
    {
53985
      this();
2981 rajveer 53986
      this.userId = userId;
53987
      setUserIdIsSet(true);
1674 ankur.sing 53988
    }
53989
 
53990
    /**
53991
     * Performs a deep copy on <i>other</i>.
53992
     */
2981 rajveer 53993
    public getBrowseHistoryItems_args(getBrowseHistoryItems_args other) {
53994
      __isset_bit_vector.clear();
53995
      __isset_bit_vector.or(other.__isset_bit_vector);
53996
      this.userId = other.userId;
1674 ankur.sing 53997
    }
53998
 
2981 rajveer 53999
    public getBrowseHistoryItems_args deepCopy() {
54000
      return new getBrowseHistoryItems_args(this);
1674 ankur.sing 54001
    }
54002
 
3430 rajveer 54003
    @Override
54004
    public void clear() {
54005
      setUserIdIsSet(false);
54006
      this.userId = 0;
1674 ankur.sing 54007
    }
54008
 
2981 rajveer 54009
    public long getUserId() {
54010
      return this.userId;
1674 ankur.sing 54011
    }
54012
 
3430 rajveer 54013
    public void setUserId(long userId) {
2981 rajveer 54014
      this.userId = userId;
54015
      setUserIdIsSet(true);
1674 ankur.sing 54016
    }
54017
 
2981 rajveer 54018
    public void unsetUserId() {
54019
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1674 ankur.sing 54020
    }
54021
 
3430 rajveer 54022
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 54023
    public boolean isSetUserId() {
54024
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1674 ankur.sing 54025
    }
54026
 
2981 rajveer 54027
    public void setUserIdIsSet(boolean value) {
54028
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
1674 ankur.sing 54029
    }
54030
 
54031
    public void setFieldValue(_Fields field, Object value) {
54032
      switch (field) {
2981 rajveer 54033
      case USER_ID:
1674 ankur.sing 54034
        if (value == null) {
2981 rajveer 54035
          unsetUserId();
1674 ankur.sing 54036
        } else {
2981 rajveer 54037
          setUserId((Long)value);
1674 ankur.sing 54038
        }
54039
        break;
54040
 
54041
      }
54042
    }
54043
 
54044
    public Object getFieldValue(_Fields field) {
54045
      switch (field) {
2981 rajveer 54046
      case USER_ID:
3430 rajveer 54047
        return Long.valueOf(getUserId());
1674 ankur.sing 54048
 
54049
      }
54050
      throw new IllegalStateException();
54051
    }
54052
 
3430 rajveer 54053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54054
    public boolean isSet(_Fields field) {
54055
      if (field == null) {
54056
        throw new IllegalArgumentException();
54057
      }
1674 ankur.sing 54058
 
54059
      switch (field) {
2981 rajveer 54060
      case USER_ID:
54061
        return isSetUserId();
1674 ankur.sing 54062
      }
54063
      throw new IllegalStateException();
54064
    }
54065
 
54066
    @Override
54067
    public boolean equals(Object that) {
54068
      if (that == null)
54069
        return false;
2981 rajveer 54070
      if (that instanceof getBrowseHistoryItems_args)
54071
        return this.equals((getBrowseHistoryItems_args)that);
1674 ankur.sing 54072
      return false;
54073
    }
54074
 
2981 rajveer 54075
    public boolean equals(getBrowseHistoryItems_args that) {
1674 ankur.sing 54076
      if (that == null)
54077
        return false;
54078
 
2981 rajveer 54079
      boolean this_present_userId = true;
54080
      boolean that_present_userId = true;
54081
      if (this_present_userId || that_present_userId) {
54082
        if (!(this_present_userId && that_present_userId))
1674 ankur.sing 54083
          return false;
2981 rajveer 54084
        if (this.userId != that.userId)
1674 ankur.sing 54085
          return false;
54086
      }
54087
 
54088
      return true;
54089
    }
54090
 
54091
    @Override
54092
    public int hashCode() {
54093
      return 0;
54094
    }
54095
 
2981 rajveer 54096
    public int compareTo(getBrowseHistoryItems_args other) {
1674 ankur.sing 54097
      if (!getClass().equals(other.getClass())) {
54098
        return getClass().getName().compareTo(other.getClass().getName());
54099
      }
54100
 
54101
      int lastComparison = 0;
2981 rajveer 54102
      getBrowseHistoryItems_args typedOther = (getBrowseHistoryItems_args)other;
1674 ankur.sing 54103
 
3430 rajveer 54104
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1674 ankur.sing 54105
      if (lastComparison != 0) {
54106
        return lastComparison;
54107
      }
3430 rajveer 54108
      if (isSetUserId()) {
54109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
54110
        if (lastComparison != 0) {
54111
          return lastComparison;
54112
        }
1674 ankur.sing 54113
      }
54114
      return 0;
54115
    }
54116
 
3430 rajveer 54117
    public _Fields fieldForId(int fieldId) {
54118
      return _Fields.findByThriftId(fieldId);
54119
    }
54120
 
54121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54122
      org.apache.thrift.protocol.TField field;
1674 ankur.sing 54123
      iprot.readStructBegin();
54124
      while (true)
54125
      {
54126
        field = iprot.readFieldBegin();
3430 rajveer 54127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1674 ankur.sing 54128
          break;
54129
        }
3430 rajveer 54130
        switch (field.id) {
54131
          case 1: // USER_ID
54132
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54133
              this.userId = iprot.readI64();
54134
              setUserIdIsSet(true);
54135
            } else { 
54136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54137
            }
54138
            break;
54139
          default:
54140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674 ankur.sing 54141
        }
3430 rajveer 54142
        iprot.readFieldEnd();
1674 ankur.sing 54143
      }
54144
      iprot.readStructEnd();
54145
      validate();
54146
    }
54147
 
3430 rajveer 54148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 54149
      validate();
54150
 
1674 ankur.sing 54151
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 54152
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
54153
      oprot.writeI64(this.userId);
54154
      oprot.writeFieldEnd();
1674 ankur.sing 54155
      oprot.writeFieldStop();
54156
      oprot.writeStructEnd();
54157
    }
54158
 
54159
    @Override
54160
    public String toString() {
2981 rajveer 54161
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_args(");
1674 ankur.sing 54162
      boolean first = true;
54163
 
2981 rajveer 54164
      sb.append("userId:");
54165
      sb.append(this.userId);
1674 ankur.sing 54166
      first = false;
54167
      sb.append(")");
54168
      return sb.toString();
54169
    }
54170
 
3430 rajveer 54171
    public void validate() throws org.apache.thrift.TException {
1674 ankur.sing 54172
      // check for required fields
54173
    }
54174
 
3430 rajveer 54175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54176
      try {
54177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54178
      } catch (org.apache.thrift.TException te) {
54179
        throw new java.io.IOException(te);
54180
      }
54181
    }
54182
 
54183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54184
      try {
54185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54186
      } catch (org.apache.thrift.TException te) {
54187
        throw new java.io.IOException(te);
54188
      }
54189
    }
54190
 
1674 ankur.sing 54191
  }
54192
 
3430 rajveer 54193
  public static class getBrowseHistoryItems_result implements org.apache.thrift.TBase<getBrowseHistoryItems_result, getBrowseHistoryItems_result._Fields>, java.io.Serializable, Cloneable   {
54194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrowseHistoryItems_result");
2642 varun.gupt 54195
 
3430 rajveer 54196
    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);
54197
    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 54198
 
3430 rajveer 54199
    private List<Long> success; // required
54200
    private WidgetException scx; // required
2642 varun.gupt 54201
 
54202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54204
      SUCCESS((short)0, "success"),
54205
      SCX((short)1, "scx");
2642 varun.gupt 54206
 
54207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54208
 
54209
      static {
54210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54211
          byName.put(field.getFieldName(), field);
54212
        }
54213
      }
54214
 
54215
      /**
54216
       * Find the _Fields constant that matches fieldId, or null if its not found.
54217
       */
54218
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 54219
        switch(fieldId) {
54220
          case 0: // SUCCESS
54221
            return SUCCESS;
54222
          case 1: // SCX
54223
            return SCX;
54224
          default:
54225
            return null;
54226
        }
2642 varun.gupt 54227
      }
54228
 
54229
      /**
54230
       * Find the _Fields constant that matches fieldId, throwing an exception
54231
       * if it is not found.
54232
       */
54233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54234
        _Fields fields = findByThriftId(fieldId);
54235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54236
        return fields;
54237
      }
54238
 
54239
      /**
54240
       * Find the _Fields constant that matches name, or null if its not found.
54241
       */
54242
      public static _Fields findByName(String name) {
54243
        return byName.get(name);
54244
      }
54245
 
54246
      private final short _thriftId;
54247
      private final String _fieldName;
54248
 
54249
      _Fields(short thriftId, String fieldName) {
54250
        _thriftId = thriftId;
54251
        _fieldName = fieldName;
54252
      }
54253
 
54254
      public short getThriftFieldId() {
54255
        return _thriftId;
54256
      }
54257
 
54258
      public String getFieldName() {
54259
        return _fieldName;
54260
      }
54261
    }
54262
 
54263
    // isset id assignments
54264
 
3430 rajveer 54265
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 54266
    static {
3430 rajveer 54267
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54268
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54269
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54270
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
54271
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
54273
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54274
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_result.class, metaDataMap);
2642 varun.gupt 54275
    }
54276
 
2981 rajveer 54277
    public getBrowseHistoryItems_result() {
2642 varun.gupt 54278
    }
54279
 
2981 rajveer 54280
    public getBrowseHistoryItems_result(
54281
      List<Long> success,
54282
      WidgetException scx)
2642 varun.gupt 54283
    {
54284
      this();
2981 rajveer 54285
      this.success = success;
54286
      this.scx = scx;
2642 varun.gupt 54287
    }
54288
 
54289
    /**
54290
     * Performs a deep copy on <i>other</i>.
54291
     */
2981 rajveer 54292
    public getBrowseHistoryItems_result(getBrowseHistoryItems_result other) {
54293
      if (other.isSetSuccess()) {
54294
        List<Long> __this__success = new ArrayList<Long>();
54295
        for (Long other_element : other.success) {
54296
          __this__success.add(other_element);
54297
        }
54298
        this.success = __this__success;
2717 varun.gupt 54299
      }
2981 rajveer 54300
      if (other.isSetScx()) {
54301
        this.scx = new WidgetException(other.scx);
2642 varun.gupt 54302
      }
54303
    }
54304
 
2981 rajveer 54305
    public getBrowseHistoryItems_result deepCopy() {
54306
      return new getBrowseHistoryItems_result(this);
2642 varun.gupt 54307
    }
54308
 
3430 rajveer 54309
    @Override
54310
    public void clear() {
54311
      this.success = null;
54312
      this.scx = null;
2642 varun.gupt 54313
    }
54314
 
2981 rajveer 54315
    public int getSuccessSize() {
54316
      return (this.success == null) ? 0 : this.success.size();
2642 varun.gupt 54317
    }
54318
 
2981 rajveer 54319
    public java.util.Iterator<Long> getSuccessIterator() {
54320
      return (this.success == null) ? null : this.success.iterator();
2642 varun.gupt 54321
    }
54322
 
2981 rajveer 54323
    public void addToSuccess(long elem) {
54324
      if (this.success == null) {
54325
        this.success = new ArrayList<Long>();
54326
      }
54327
      this.success.add(elem);
2642 varun.gupt 54328
    }
54329
 
2981 rajveer 54330
    public List<Long> getSuccess() {
54331
      return this.success;
2642 varun.gupt 54332
    }
54333
 
3430 rajveer 54334
    public void setSuccess(List<Long> success) {
2981 rajveer 54335
      this.success = success;
2642 varun.gupt 54336
    }
54337
 
2981 rajveer 54338
    public void unsetSuccess() {
54339
      this.success = null;
2642 varun.gupt 54340
    }
54341
 
3430 rajveer 54342
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 54343
    public boolean isSetSuccess() {
54344
      return this.success != null;
2642 varun.gupt 54345
    }
54346
 
2981 rajveer 54347
    public void setSuccessIsSet(boolean value) {
2717 varun.gupt 54348
      if (!value) {
2981 rajveer 54349
        this.success = null;
2717 varun.gupt 54350
      }
2642 varun.gupt 54351
    }
54352
 
2981 rajveer 54353
    public WidgetException getScx() {
54354
      return this.scx;
2642 varun.gupt 54355
    }
54356
 
3430 rajveer 54357
    public void setScx(WidgetException scx) {
2981 rajveer 54358
      this.scx = scx;
2642 varun.gupt 54359
    }
54360
 
2981 rajveer 54361
    public void unsetScx() {
54362
      this.scx = null;
2642 varun.gupt 54363
    }
54364
 
3430 rajveer 54365
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 54366
    public boolean isSetScx() {
54367
      return this.scx != null;
2642 varun.gupt 54368
    }
54369
 
2981 rajveer 54370
    public void setScxIsSet(boolean value) {
2642 varun.gupt 54371
      if (!value) {
2981 rajveer 54372
        this.scx = null;
2642 varun.gupt 54373
      }
54374
    }
54375
 
54376
    public void setFieldValue(_Fields field, Object value) {
54377
      switch (field) {
2981 rajveer 54378
      case SUCCESS:
2642 varun.gupt 54379
        if (value == null) {
2981 rajveer 54380
          unsetSuccess();
2642 varun.gupt 54381
        } else {
2981 rajveer 54382
          setSuccess((List<Long>)value);
2642 varun.gupt 54383
        }
54384
        break;
54385
 
2981 rajveer 54386
      case SCX:
2642 varun.gupt 54387
        if (value == null) {
2981 rajveer 54388
          unsetScx();
2642 varun.gupt 54389
        } else {
2981 rajveer 54390
          setScx((WidgetException)value);
2642 varun.gupt 54391
        }
54392
        break;
54393
 
54394
      }
54395
    }
54396
 
54397
    public Object getFieldValue(_Fields field) {
54398
      switch (field) {
2981 rajveer 54399
      case SUCCESS:
54400
        return getSuccess();
2642 varun.gupt 54401
 
2981 rajveer 54402
      case SCX:
54403
        return getScx();
2642 varun.gupt 54404
 
54405
      }
54406
      throw new IllegalStateException();
54407
    }
54408
 
3430 rajveer 54409
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54410
    public boolean isSet(_Fields field) {
54411
      if (field == null) {
54412
        throw new IllegalArgumentException();
54413
      }
2642 varun.gupt 54414
 
54415
      switch (field) {
2981 rajveer 54416
      case SUCCESS:
54417
        return isSetSuccess();
54418
      case SCX:
54419
        return isSetScx();
2642 varun.gupt 54420
      }
54421
      throw new IllegalStateException();
54422
    }
54423
 
54424
    @Override
54425
    public boolean equals(Object that) {
54426
      if (that == null)
54427
        return false;
2981 rajveer 54428
      if (that instanceof getBrowseHistoryItems_result)
54429
        return this.equals((getBrowseHistoryItems_result)that);
2642 varun.gupt 54430
      return false;
54431
    }
54432
 
2981 rajveer 54433
    public boolean equals(getBrowseHistoryItems_result that) {
2642 varun.gupt 54434
      if (that == null)
54435
        return false;
54436
 
2981 rajveer 54437
      boolean this_present_success = true && this.isSetSuccess();
54438
      boolean that_present_success = true && that.isSetSuccess();
54439
      if (this_present_success || that_present_success) {
54440
        if (!(this_present_success && that_present_success))
2642 varun.gupt 54441
          return false;
2981 rajveer 54442
        if (!this.success.equals(that.success))
2642 varun.gupt 54443
          return false;
54444
      }
54445
 
2981 rajveer 54446
      boolean this_present_scx = true && this.isSetScx();
54447
      boolean that_present_scx = true && that.isSetScx();
54448
      if (this_present_scx || that_present_scx) {
54449
        if (!(this_present_scx && that_present_scx))
2642 varun.gupt 54450
          return false;
2981 rajveer 54451
        if (!this.scx.equals(that.scx))
2642 varun.gupt 54452
          return false;
54453
      }
54454
 
54455
      return true;
54456
    }
54457
 
54458
    @Override
54459
    public int hashCode() {
54460
      return 0;
54461
    }
54462
 
2981 rajveer 54463
    public int compareTo(getBrowseHistoryItems_result other) {
2642 varun.gupt 54464
      if (!getClass().equals(other.getClass())) {
54465
        return getClass().getName().compareTo(other.getClass().getName());
54466
      }
54467
 
54468
      int lastComparison = 0;
2981 rajveer 54469
      getBrowseHistoryItems_result typedOther = (getBrowseHistoryItems_result)other;
2642 varun.gupt 54470
 
3430 rajveer 54471
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2642 varun.gupt 54472
      if (lastComparison != 0) {
54473
        return lastComparison;
54474
      }
3430 rajveer 54475
      if (isSetSuccess()) {
54476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54477
        if (lastComparison != 0) {
54478
          return lastComparison;
54479
        }
2642 varun.gupt 54480
      }
3430 rajveer 54481
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
2642 varun.gupt 54482
      if (lastComparison != 0) {
54483
        return lastComparison;
54484
      }
3430 rajveer 54485
      if (isSetScx()) {
54486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
54487
        if (lastComparison != 0) {
54488
          return lastComparison;
54489
        }
2642 varun.gupt 54490
      }
54491
      return 0;
54492
    }
54493
 
3430 rajveer 54494
    public _Fields fieldForId(int fieldId) {
54495
      return _Fields.findByThriftId(fieldId);
54496
    }
54497
 
54498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54499
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 54500
      iprot.readStructBegin();
54501
      while (true)
54502
      {
54503
        field = iprot.readFieldBegin();
3430 rajveer 54504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 54505
          break;
54506
        }
3430 rajveer 54507
        switch (field.id) {
54508
          case 0: // SUCCESS
54509
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54510
              {
54511
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
54512
                this.success = new ArrayList<Long>(_list81.size);
54513
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
2981 rajveer 54514
                {
3430 rajveer 54515
                  long _elem83; // required
54516
                  _elem83 = iprot.readI64();
54517
                  this.success.add(_elem83);
2981 rajveer 54518
                }
3430 rajveer 54519
                iprot.readListEnd();
2642 varun.gupt 54520
              }
3430 rajveer 54521
            } else { 
54522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54523
            }
54524
            break;
54525
          case 1: // SCX
54526
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
54527
              this.scx = new WidgetException();
54528
              this.scx.read(iprot);
54529
            } else { 
54530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54531
            }
54532
            break;
54533
          default:
54534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 54535
        }
3430 rajveer 54536
        iprot.readFieldEnd();
2642 varun.gupt 54537
      }
54538
      iprot.readStructEnd();
54539
      validate();
54540
    }
54541
 
3430 rajveer 54542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 54543
      oprot.writeStructBegin(STRUCT_DESC);
2642 varun.gupt 54544
 
2981 rajveer 54545
      if (this.isSetSuccess()) {
54546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54547
        {
3430 rajveer 54548
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3385 varun.gupt 54549
          for (long _iter84 : this.success)
2981 rajveer 54550
          {
3385 varun.gupt 54551
            oprot.writeI64(_iter84);
2981 rajveer 54552
          }
54553
          oprot.writeListEnd();
54554
        }
2717 varun.gupt 54555
        oprot.writeFieldEnd();
2981 rajveer 54556
      } else if (this.isSetScx()) {
54557
        oprot.writeFieldBegin(SCX_FIELD_DESC);
54558
        this.scx.write(oprot);
2642 varun.gupt 54559
        oprot.writeFieldEnd();
54560
      }
54561
      oprot.writeFieldStop();
54562
      oprot.writeStructEnd();
54563
    }
54564
 
54565
    @Override
54566
    public String toString() {
2981 rajveer 54567
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_result(");
2642 varun.gupt 54568
      boolean first = true;
54569
 
2981 rajveer 54570
      sb.append("success:");
54571
      if (this.success == null) {
2717 varun.gupt 54572
        sb.append("null");
54573
      } else {
2981 rajveer 54574
        sb.append(this.success);
2717 varun.gupt 54575
      }
2642 varun.gupt 54576
      first = false;
54577
      if (!first) sb.append(", ");
2981 rajveer 54578
      sb.append("scx:");
54579
      if (this.scx == null) {
2642 varun.gupt 54580
        sb.append("null");
54581
      } else {
2981 rajveer 54582
        sb.append(this.scx);
2642 varun.gupt 54583
      }
54584
      first = false;
54585
      sb.append(")");
54586
      return sb.toString();
54587
    }
54588
 
3430 rajveer 54589
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 54590
      // check for required fields
54591
    }
54592
 
3430 rajveer 54593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54594
      try {
54595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54596
      } catch (org.apache.thrift.TException te) {
54597
        throw new java.io.IOException(te);
54598
      }
54599
    }
54600
 
54601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54602
      try {
54603
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54604
      } catch (org.apache.thrift.TException te) {
54605
        throw new java.io.IOException(te);
54606
      }
54607
    }
54608
 
2642 varun.gupt 54609
  }
54610
 
3430 rajveer 54611
  public static class updateBrowseHistory_args implements org.apache.thrift.TBase<updateBrowseHistory_args, updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable   {
54612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBrowseHistory_args");
2642 varun.gupt 54613
 
3430 rajveer 54614
    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);
54615
    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 54616
 
3430 rajveer 54617
    private long userId; // required
54618
    private long itemId; // required
2642 varun.gupt 54619
 
54620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54622
      USER_ID((short)1, "userId"),
54623
      ITEM_ID((short)2, "itemId");
2642 varun.gupt 54624
 
54625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54626
 
54627
      static {
54628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54629
          byName.put(field.getFieldName(), field);
54630
        }
54631
      }
54632
 
54633
      /**
54634
       * Find the _Fields constant that matches fieldId, or null if its not found.
54635
       */
54636
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 54637
        switch(fieldId) {
54638
          case 1: // USER_ID
54639
            return USER_ID;
54640
          case 2: // ITEM_ID
54641
            return ITEM_ID;
54642
          default:
54643
            return null;
54644
        }
2642 varun.gupt 54645
      }
54646
 
54647
      /**
54648
       * Find the _Fields constant that matches fieldId, throwing an exception
54649
       * if it is not found.
54650
       */
54651
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54652
        _Fields fields = findByThriftId(fieldId);
54653
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54654
        return fields;
54655
      }
54656
 
54657
      /**
54658
       * Find the _Fields constant that matches name, or null if its not found.
54659
       */
54660
      public static _Fields findByName(String name) {
54661
        return byName.get(name);
54662
      }
54663
 
54664
      private final short _thriftId;
54665
      private final String _fieldName;
54666
 
54667
      _Fields(short thriftId, String fieldName) {
54668
        _thriftId = thriftId;
54669
        _fieldName = fieldName;
54670
      }
54671
 
54672
      public short getThriftFieldId() {
54673
        return _thriftId;
54674
      }
54675
 
54676
      public String getFieldName() {
54677
        return _fieldName;
54678
      }
54679
    }
54680
 
54681
    // isset id assignments
2981 rajveer 54682
    private static final int __USERID_ISSET_ID = 0;
54683
    private static final int __ITEMID_ISSET_ID = 1;
2642 varun.gupt 54684
    private BitSet __isset_bit_vector = new BitSet(2);
54685
 
3430 rajveer 54686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 54687
    static {
3430 rajveer 54688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54689
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54691
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
2642 varun.gupt 54695
    }
54696
 
2981 rajveer 54697
    public updateBrowseHistory_args() {
2642 varun.gupt 54698
    }
54699
 
2981 rajveer 54700
    public updateBrowseHistory_args(
54701
      long userId,
54702
      long itemId)
2642 varun.gupt 54703
    {
54704
      this();
2981 rajveer 54705
      this.userId = userId;
54706
      setUserIdIsSet(true);
54707
      this.itemId = itemId;
54708
      setItemIdIsSet(true);
2642 varun.gupt 54709
    }
54710
 
54711
    /**
54712
     * Performs a deep copy on <i>other</i>.
54713
     */
2981 rajveer 54714
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
2642 varun.gupt 54715
      __isset_bit_vector.clear();
54716
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 54717
      this.userId = other.userId;
54718
      this.itemId = other.itemId;
2642 varun.gupt 54719
    }
54720
 
2981 rajveer 54721
    public updateBrowseHistory_args deepCopy() {
54722
      return new updateBrowseHistory_args(this);
2642 varun.gupt 54723
    }
54724
 
3430 rajveer 54725
    @Override
54726
    public void clear() {
54727
      setUserIdIsSet(false);
54728
      this.userId = 0;
54729
      setItemIdIsSet(false);
54730
      this.itemId = 0;
2642 varun.gupt 54731
    }
54732
 
2981 rajveer 54733
    public long getUserId() {
54734
      return this.userId;
2642 varun.gupt 54735
    }
54736
 
3430 rajveer 54737
    public void setUserId(long userId) {
2981 rajveer 54738
      this.userId = userId;
54739
      setUserIdIsSet(true);
2642 varun.gupt 54740
    }
54741
 
2981 rajveer 54742
    public void unsetUserId() {
54743
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2642 varun.gupt 54744
    }
54745
 
3430 rajveer 54746
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 54747
    public boolean isSetUserId() {
54748
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2642 varun.gupt 54749
    }
54750
 
2981 rajveer 54751
    public void setUserIdIsSet(boolean value) {
54752
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2642 varun.gupt 54753
    }
54754
 
2981 rajveer 54755
    public long getItemId() {
54756
      return this.itemId;
2642 varun.gupt 54757
    }
54758
 
3430 rajveer 54759
    public void setItemId(long itemId) {
2981 rajveer 54760
      this.itemId = itemId;
54761
      setItemIdIsSet(true);
2642 varun.gupt 54762
    }
54763
 
2981 rajveer 54764
    public void unsetItemId() {
54765
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2642 varun.gupt 54766
    }
54767
 
3430 rajveer 54768
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 54769
    public boolean isSetItemId() {
54770
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2642 varun.gupt 54771
    }
54772
 
2981 rajveer 54773
    public void setItemIdIsSet(boolean value) {
54774
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2642 varun.gupt 54775
    }
54776
 
54777
    public void setFieldValue(_Fields field, Object value) {
54778
      switch (field) {
54779
      case USER_ID:
54780
        if (value == null) {
2981 rajveer 54781
          unsetUserId();
2642 varun.gupt 54782
        } else {
2981 rajveer 54783
          setUserId((Long)value);
2642 varun.gupt 54784
        }
54785
        break;
54786
 
2981 rajveer 54787
      case ITEM_ID:
2642 varun.gupt 54788
        if (value == null) {
2981 rajveer 54789
          unsetItemId();
2642 varun.gupt 54790
        } else {
2981 rajveer 54791
          setItemId((Long)value);
2642 varun.gupt 54792
        }
54793
        break;
54794
 
54795
      }
54796
    }
54797
 
54798
    public Object getFieldValue(_Fields field) {
54799
      switch (field) {
54800
      case USER_ID:
3430 rajveer 54801
        return Long.valueOf(getUserId());
2642 varun.gupt 54802
 
2981 rajveer 54803
      case ITEM_ID:
3430 rajveer 54804
        return Long.valueOf(getItemId());
2642 varun.gupt 54805
 
54806
      }
54807
      throw new IllegalStateException();
54808
    }
54809
 
3430 rajveer 54810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54811
    public boolean isSet(_Fields field) {
54812
      if (field == null) {
54813
        throw new IllegalArgumentException();
54814
      }
2642 varun.gupt 54815
 
54816
      switch (field) {
54817
      case USER_ID:
2981 rajveer 54818
        return isSetUserId();
54819
      case ITEM_ID:
54820
        return isSetItemId();
2642 varun.gupt 54821
      }
54822
      throw new IllegalStateException();
54823
    }
54824
 
54825
    @Override
54826
    public boolean equals(Object that) {
54827
      if (that == null)
54828
        return false;
2981 rajveer 54829
      if (that instanceof updateBrowseHistory_args)
54830
        return this.equals((updateBrowseHistory_args)that);
2642 varun.gupt 54831
      return false;
54832
    }
54833
 
2981 rajveer 54834
    public boolean equals(updateBrowseHistory_args that) {
2642 varun.gupt 54835
      if (that == null)
54836
        return false;
54837
 
2981 rajveer 54838
      boolean this_present_userId = true;
54839
      boolean that_present_userId = true;
54840
      if (this_present_userId || that_present_userId) {
54841
        if (!(this_present_userId && that_present_userId))
2642 varun.gupt 54842
          return false;
2981 rajveer 54843
        if (this.userId != that.userId)
2642 varun.gupt 54844
          return false;
54845
      }
54846
 
2981 rajveer 54847
      boolean this_present_itemId = true;
54848
      boolean that_present_itemId = true;
54849
      if (this_present_itemId || that_present_itemId) {
54850
        if (!(this_present_itemId && that_present_itemId))
2642 varun.gupt 54851
          return false;
2981 rajveer 54852
        if (this.itemId != that.itemId)
2642 varun.gupt 54853
          return false;
54854
      }
54855
 
54856
      return true;
54857
    }
54858
 
54859
    @Override
54860
    public int hashCode() {
54861
      return 0;
54862
    }
54863
 
2981 rajveer 54864
    public int compareTo(updateBrowseHistory_args other) {
2642 varun.gupt 54865
      if (!getClass().equals(other.getClass())) {
54866
        return getClass().getName().compareTo(other.getClass().getName());
54867
      }
54868
 
54869
      int lastComparison = 0;
2981 rajveer 54870
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
2642 varun.gupt 54871
 
3430 rajveer 54872
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
2642 varun.gupt 54873
      if (lastComparison != 0) {
54874
        return lastComparison;
54875
      }
3430 rajveer 54876
      if (isSetUserId()) {
54877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
54878
        if (lastComparison != 0) {
54879
          return lastComparison;
54880
        }
2642 varun.gupt 54881
      }
3430 rajveer 54882
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2642 varun.gupt 54883
      if (lastComparison != 0) {
54884
        return lastComparison;
54885
      }
3430 rajveer 54886
      if (isSetItemId()) {
54887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
54888
        if (lastComparison != 0) {
54889
          return lastComparison;
54890
        }
2642 varun.gupt 54891
      }
54892
      return 0;
54893
    }
54894
 
3430 rajveer 54895
    public _Fields fieldForId(int fieldId) {
54896
      return _Fields.findByThriftId(fieldId);
54897
    }
54898
 
54899
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54900
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 54901
      iprot.readStructBegin();
54902
      while (true)
54903
      {
54904
        field = iprot.readFieldBegin();
3430 rajveer 54905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 54906
          break;
54907
        }
3430 rajveer 54908
        switch (field.id) {
54909
          case 1: // USER_ID
54910
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54911
              this.userId = iprot.readI64();
54912
              setUserIdIsSet(true);
54913
            } else { 
54914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54915
            }
54916
            break;
54917
          case 2: // ITEM_ID
54918
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54919
              this.itemId = iprot.readI64();
54920
              setItemIdIsSet(true);
54921
            } else { 
54922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54923
            }
54924
            break;
54925
          default:
54926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 54927
        }
3430 rajveer 54928
        iprot.readFieldEnd();
2642 varun.gupt 54929
      }
54930
      iprot.readStructEnd();
54931
      validate();
54932
    }
54933
 
3430 rajveer 54934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2642 varun.gupt 54935
      validate();
54936
 
54937
      oprot.writeStructBegin(STRUCT_DESC);
54938
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 54939
      oprot.writeI64(this.userId);
2642 varun.gupt 54940
      oprot.writeFieldEnd();
2981 rajveer 54941
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
54942
      oprot.writeI64(this.itemId);
2642 varun.gupt 54943
      oprot.writeFieldEnd();
54944
      oprot.writeFieldStop();
54945
      oprot.writeStructEnd();
54946
    }
54947
 
54948
    @Override
54949
    public String toString() {
2981 rajveer 54950
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
2642 varun.gupt 54951
      boolean first = true;
54952
 
2981 rajveer 54953
      sb.append("userId:");
54954
      sb.append(this.userId);
2642 varun.gupt 54955
      first = false;
54956
      if (!first) sb.append(", ");
2981 rajveer 54957
      sb.append("itemId:");
54958
      sb.append(this.itemId);
2642 varun.gupt 54959
      first = false;
54960
      sb.append(")");
54961
      return sb.toString();
54962
    }
54963
 
3430 rajveer 54964
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 54965
      // check for required fields
54966
    }
54967
 
3430 rajveer 54968
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54969
      try {
54970
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54971
      } catch (org.apache.thrift.TException te) {
54972
        throw new java.io.IOException(te);
54973
      }
54974
    }
54975
 
54976
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54977
      try {
54978
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
54979
        __isset_bit_vector = new BitSet(1);
54980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54981
      } catch (org.apache.thrift.TException te) {
54982
        throw new java.io.IOException(te);
54983
      }
54984
    }
54985
 
2642 varun.gupt 54986
  }
54987
 
3430 rajveer 54988
  public static class updateBrowseHistory_result implements org.apache.thrift.TBase<updateBrowseHistory_result, updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable   {
54989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBrowseHistory_result");
2642 varun.gupt 54990
 
54991
 
54992
 
54993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54995
;
2642 varun.gupt 54996
 
54997
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54998
 
54999
      static {
55000
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55001
          byName.put(field.getFieldName(), field);
55002
        }
55003
      }
55004
 
55005
      /**
55006
       * Find the _Fields constant that matches fieldId, or null if its not found.
55007
       */
55008
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55009
        switch(fieldId) {
55010
          default:
55011
            return null;
55012
        }
2642 varun.gupt 55013
      }
55014
 
55015
      /**
55016
       * Find the _Fields constant that matches fieldId, throwing an exception
55017
       * if it is not found.
55018
       */
55019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55020
        _Fields fields = findByThriftId(fieldId);
55021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55022
        return fields;
55023
      }
55024
 
55025
      /**
55026
       * Find the _Fields constant that matches name, or null if its not found.
55027
       */
55028
      public static _Fields findByName(String name) {
55029
        return byName.get(name);
55030
      }
55031
 
55032
      private final short _thriftId;
55033
      private final String _fieldName;
55034
 
55035
      _Fields(short thriftId, String fieldName) {
55036
        _thriftId = thriftId;
55037
        _fieldName = fieldName;
55038
      }
55039
 
55040
      public short getThriftFieldId() {
55041
        return _thriftId;
55042
      }
55043
 
55044
      public String getFieldName() {
55045
        return _fieldName;
55046
      }
55047
    }
3430 rajveer 55048
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 55049
    static {
3430 rajveer 55050
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
2642 varun.gupt 55053
    }
55054
 
2981 rajveer 55055
    public updateBrowseHistory_result() {
2642 varun.gupt 55056
    }
55057
 
55058
    /**
55059
     * Performs a deep copy on <i>other</i>.
55060
     */
2981 rajveer 55061
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
2642 varun.gupt 55062
    }
55063
 
2981 rajveer 55064
    public updateBrowseHistory_result deepCopy() {
55065
      return new updateBrowseHistory_result(this);
2642 varun.gupt 55066
    }
55067
 
3430 rajveer 55068
    @Override
55069
    public void clear() {
2642 varun.gupt 55070
    }
55071
 
55072
    public void setFieldValue(_Fields field, Object value) {
55073
      switch (field) {
55074
      }
55075
    }
55076
 
55077
    public Object getFieldValue(_Fields field) {
55078
      switch (field) {
55079
      }
55080
      throw new IllegalStateException();
55081
    }
55082
 
3430 rajveer 55083
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55084
    public boolean isSet(_Fields field) {
55085
      if (field == null) {
55086
        throw new IllegalArgumentException();
55087
      }
2642 varun.gupt 55088
 
55089
      switch (field) {
55090
      }
55091
      throw new IllegalStateException();
55092
    }
55093
 
55094
    @Override
55095
    public boolean equals(Object that) {
55096
      if (that == null)
55097
        return false;
2981 rajveer 55098
      if (that instanceof updateBrowseHistory_result)
55099
        return this.equals((updateBrowseHistory_result)that);
2642 varun.gupt 55100
      return false;
55101
    }
55102
 
2981 rajveer 55103
    public boolean equals(updateBrowseHistory_result that) {
2642 varun.gupt 55104
      if (that == null)
55105
        return false;
55106
 
55107
      return true;
55108
    }
55109
 
55110
    @Override
55111
    public int hashCode() {
55112
      return 0;
55113
    }
55114
 
2981 rajveer 55115
    public int compareTo(updateBrowseHistory_result other) {
2642 varun.gupt 55116
      if (!getClass().equals(other.getClass())) {
55117
        return getClass().getName().compareTo(other.getClass().getName());
55118
      }
55119
 
55120
      int lastComparison = 0;
2981 rajveer 55121
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
2642 varun.gupt 55122
 
55123
      return 0;
55124
    }
55125
 
3430 rajveer 55126
    public _Fields fieldForId(int fieldId) {
55127
      return _Fields.findByThriftId(fieldId);
55128
    }
55129
 
55130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55131
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 55132
      iprot.readStructBegin();
55133
      while (true)
55134
      {
55135
        field = iprot.readFieldBegin();
3430 rajveer 55136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 55137
          break;
55138
        }
3430 rajveer 55139
        switch (field.id) {
55140
          default:
55141
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 55142
        }
3430 rajveer 55143
        iprot.readFieldEnd();
2642 varun.gupt 55144
      }
55145
      iprot.readStructEnd();
55146
      validate();
55147
    }
55148
 
3430 rajveer 55149
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2642 varun.gupt 55150
      oprot.writeStructBegin(STRUCT_DESC);
55151
 
55152
      oprot.writeFieldStop();
55153
      oprot.writeStructEnd();
55154
    }
55155
 
55156
    @Override
55157
    public String toString() {
2981 rajveer 55158
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
2642 varun.gupt 55159
      boolean first = true;
55160
 
55161
      sb.append(")");
55162
      return sb.toString();
55163
    }
55164
 
3430 rajveer 55165
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 55166
      // check for required fields
55167
    }
55168
 
3430 rajveer 55169
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55170
      try {
55171
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55172
      } catch (org.apache.thrift.TException te) {
55173
        throw new java.io.IOException(te);
55174
      }
55175
    }
55176
 
55177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55178
      try {
55179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55180
      } catch (org.apache.thrift.TException te) {
55181
        throw new java.io.IOException(te);
55182
      }
55183
    }
55184
 
2642 varun.gupt 55185
  }
55186
 
3430 rajveer 55187
  public static class getCartsWithCouponCount_args implements org.apache.thrift.TBase<getCartsWithCouponCount_args, getCartsWithCouponCount_args._Fields>, java.io.Serializable, Cloneable   {
55188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsWithCouponCount_args");
3385 varun.gupt 55189
 
3430 rajveer 55190
    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 55191
 
3430 rajveer 55192
    private String couponCode; // required
3385 varun.gupt 55193
 
55194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3385 varun.gupt 55196
      COUPON_CODE((short)1, "couponCode");
55197
 
55198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55199
 
55200
      static {
55201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55202
          byName.put(field.getFieldName(), field);
55203
        }
55204
      }
55205
 
55206
      /**
55207
       * Find the _Fields constant that matches fieldId, or null if its not found.
55208
       */
55209
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55210
        switch(fieldId) {
55211
          case 1: // COUPON_CODE
55212
            return COUPON_CODE;
55213
          default:
55214
            return null;
55215
        }
3385 varun.gupt 55216
      }
55217
 
55218
      /**
55219
       * Find the _Fields constant that matches fieldId, throwing an exception
55220
       * if it is not found.
55221
       */
55222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55223
        _Fields fields = findByThriftId(fieldId);
55224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55225
        return fields;
55226
      }
55227
 
55228
      /**
55229
       * Find the _Fields constant that matches name, or null if its not found.
55230
       */
55231
      public static _Fields findByName(String name) {
55232
        return byName.get(name);
55233
      }
55234
 
55235
      private final short _thriftId;
55236
      private final String _fieldName;
55237
 
55238
      _Fields(short thriftId, String fieldName) {
55239
        _thriftId = thriftId;
55240
        _fieldName = fieldName;
55241
      }
55242
 
55243
      public short getThriftFieldId() {
55244
        return _thriftId;
55245
      }
55246
 
55247
      public String getFieldName() {
55248
        return _fieldName;
55249
      }
55250
    }
55251
 
55252
    // isset id assignments
55253
 
3430 rajveer 55254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3385 varun.gupt 55255
    static {
3430 rajveer 55256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55257
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55258
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
55259
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55260
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_args.class, metaDataMap);
3385 varun.gupt 55261
    }
55262
 
55263
    public getCartsWithCouponCount_args() {
55264
    }
55265
 
55266
    public getCartsWithCouponCount_args(
55267
      String couponCode)
55268
    {
55269
      this();
55270
      this.couponCode = couponCode;
55271
    }
55272
 
55273
    /**
55274
     * Performs a deep copy on <i>other</i>.
55275
     */
55276
    public getCartsWithCouponCount_args(getCartsWithCouponCount_args other) {
55277
      if (other.isSetCouponCode()) {
55278
        this.couponCode = other.couponCode;
55279
      }
55280
    }
55281
 
55282
    public getCartsWithCouponCount_args deepCopy() {
55283
      return new getCartsWithCouponCount_args(this);
55284
    }
55285
 
3430 rajveer 55286
    @Override
55287
    public void clear() {
55288
      this.couponCode = null;
3385 varun.gupt 55289
    }
55290
 
55291
    public String getCouponCode() {
55292
      return this.couponCode;
55293
    }
55294
 
3430 rajveer 55295
    public void setCouponCode(String couponCode) {
3385 varun.gupt 55296
      this.couponCode = couponCode;
55297
    }
55298
 
55299
    public void unsetCouponCode() {
55300
      this.couponCode = null;
55301
    }
55302
 
3430 rajveer 55303
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
3385 varun.gupt 55304
    public boolean isSetCouponCode() {
55305
      return this.couponCode != null;
55306
    }
55307
 
55308
    public void setCouponCodeIsSet(boolean value) {
55309
      if (!value) {
55310
        this.couponCode = null;
55311
      }
55312
    }
55313
 
55314
    public void setFieldValue(_Fields field, Object value) {
55315
      switch (field) {
55316
      case COUPON_CODE:
55317
        if (value == null) {
55318
          unsetCouponCode();
55319
        } else {
55320
          setCouponCode((String)value);
55321
        }
55322
        break;
55323
 
55324
      }
55325
    }
55326
 
55327
    public Object getFieldValue(_Fields field) {
55328
      switch (field) {
55329
      case COUPON_CODE:
55330
        return getCouponCode();
55331
 
55332
      }
55333
      throw new IllegalStateException();
55334
    }
55335
 
3430 rajveer 55336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55337
    public boolean isSet(_Fields field) {
55338
      if (field == null) {
55339
        throw new IllegalArgumentException();
55340
      }
3385 varun.gupt 55341
 
55342
      switch (field) {
55343
      case COUPON_CODE:
55344
        return isSetCouponCode();
55345
      }
55346
      throw new IllegalStateException();
55347
    }
55348
 
55349
    @Override
55350
    public boolean equals(Object that) {
55351
      if (that == null)
55352
        return false;
55353
      if (that instanceof getCartsWithCouponCount_args)
55354
        return this.equals((getCartsWithCouponCount_args)that);
55355
      return false;
55356
    }
55357
 
55358
    public boolean equals(getCartsWithCouponCount_args that) {
55359
      if (that == null)
55360
        return false;
55361
 
55362
      boolean this_present_couponCode = true && this.isSetCouponCode();
55363
      boolean that_present_couponCode = true && that.isSetCouponCode();
55364
      if (this_present_couponCode || that_present_couponCode) {
55365
        if (!(this_present_couponCode && that_present_couponCode))
55366
          return false;
55367
        if (!this.couponCode.equals(that.couponCode))
55368
          return false;
55369
      }
55370
 
55371
      return true;
55372
    }
55373
 
55374
    @Override
55375
    public int hashCode() {
55376
      return 0;
55377
    }
55378
 
55379
    public int compareTo(getCartsWithCouponCount_args other) {
55380
      if (!getClass().equals(other.getClass())) {
55381
        return getClass().getName().compareTo(other.getClass().getName());
55382
      }
55383
 
55384
      int lastComparison = 0;
55385
      getCartsWithCouponCount_args typedOther = (getCartsWithCouponCount_args)other;
55386
 
3430 rajveer 55387
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
3385 varun.gupt 55388
      if (lastComparison != 0) {
55389
        return lastComparison;
55390
      }
3430 rajveer 55391
      if (isSetCouponCode()) {
55392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
55393
        if (lastComparison != 0) {
55394
          return lastComparison;
55395
        }
3385 varun.gupt 55396
      }
55397
      return 0;
55398
    }
55399
 
3430 rajveer 55400
    public _Fields fieldForId(int fieldId) {
55401
      return _Fields.findByThriftId(fieldId);
55402
    }
55403
 
55404
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55405
      org.apache.thrift.protocol.TField field;
3385 varun.gupt 55406
      iprot.readStructBegin();
55407
      while (true)
55408
      {
55409
        field = iprot.readFieldBegin();
3430 rajveer 55410
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3385 varun.gupt 55411
          break;
55412
        }
3430 rajveer 55413
        switch (field.id) {
55414
          case 1: // COUPON_CODE
55415
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
55416
              this.couponCode = iprot.readString();
55417
            } else { 
55418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55419
            }
55420
            break;
55421
          default:
55422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385 varun.gupt 55423
        }
3430 rajveer 55424
        iprot.readFieldEnd();
3385 varun.gupt 55425
      }
55426
      iprot.readStructEnd();
55427
      validate();
55428
    }
55429
 
3430 rajveer 55430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3385 varun.gupt 55431
      validate();
55432
 
55433
      oprot.writeStructBegin(STRUCT_DESC);
55434
      if (this.couponCode != null) {
55435
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
55436
        oprot.writeString(this.couponCode);
55437
        oprot.writeFieldEnd();
55438
      }
55439
      oprot.writeFieldStop();
55440
      oprot.writeStructEnd();
55441
    }
55442
 
55443
    @Override
55444
    public String toString() {
55445
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_args(");
55446
      boolean first = true;
55447
 
55448
      sb.append("couponCode:");
55449
      if (this.couponCode == null) {
55450
        sb.append("null");
55451
      } else {
55452
        sb.append(this.couponCode);
55453
      }
55454
      first = false;
55455
      sb.append(")");
55456
      return sb.toString();
55457
    }
55458
 
3430 rajveer 55459
    public void validate() throws org.apache.thrift.TException {
3385 varun.gupt 55460
      // check for required fields
55461
    }
55462
 
3430 rajveer 55463
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55464
      try {
55465
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55466
      } catch (org.apache.thrift.TException te) {
55467
        throw new java.io.IOException(te);
55468
      }
55469
    }
55470
 
55471
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55472
      try {
55473
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55474
      } catch (org.apache.thrift.TException te) {
55475
        throw new java.io.IOException(te);
55476
      }
55477
    }
55478
 
3385 varun.gupt 55479
  }
55480
 
3430 rajveer 55481
  public static class getCartsWithCouponCount_result implements org.apache.thrift.TBase<getCartsWithCouponCount_result, getCartsWithCouponCount_result._Fields>, java.io.Serializable, Cloneable   {
55482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsWithCouponCount_result");
3385 varun.gupt 55483
 
3430 rajveer 55484
    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 55485
 
3430 rajveer 55486
    private long success; // required
3385 varun.gupt 55487
 
55488
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55489
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3385 varun.gupt 55490
      SUCCESS((short)0, "success");
55491
 
55492
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55493
 
55494
      static {
55495
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55496
          byName.put(field.getFieldName(), field);
55497
        }
55498
      }
55499
 
55500
      /**
55501
       * Find the _Fields constant that matches fieldId, or null if its not found.
55502
       */
55503
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55504
        switch(fieldId) {
55505
          case 0: // SUCCESS
55506
            return SUCCESS;
55507
          default:
55508
            return null;
55509
        }
3385 varun.gupt 55510
      }
55511
 
55512
      /**
55513
       * Find the _Fields constant that matches fieldId, throwing an exception
55514
       * if it is not found.
55515
       */
55516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55517
        _Fields fields = findByThriftId(fieldId);
55518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55519
        return fields;
55520
      }
55521
 
55522
      /**
55523
       * Find the _Fields constant that matches name, or null if its not found.
55524
       */
55525
      public static _Fields findByName(String name) {
55526
        return byName.get(name);
55527
      }
55528
 
55529
      private final short _thriftId;
55530
      private final String _fieldName;
55531
 
55532
      _Fields(short thriftId, String fieldName) {
55533
        _thriftId = thriftId;
55534
        _fieldName = fieldName;
55535
      }
55536
 
55537
      public short getThriftFieldId() {
55538
        return _thriftId;
55539
      }
55540
 
55541
      public String getFieldName() {
55542
        return _fieldName;
55543
      }
55544
    }
55545
 
55546
    // isset id assignments
55547
    private static final int __SUCCESS_ISSET_ID = 0;
55548
    private BitSet __isset_bit_vector = new BitSet(1);
55549
 
3430 rajveer 55550
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3385 varun.gupt 55551
    static {
3430 rajveer 55552
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55553
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55555
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55556
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_result.class, metaDataMap);
3385 varun.gupt 55557
    }
55558
 
55559
    public getCartsWithCouponCount_result() {
55560
    }
55561
 
55562
    public getCartsWithCouponCount_result(
55563
      long success)
55564
    {
55565
      this();
55566
      this.success = success;
55567
      setSuccessIsSet(true);
55568
    }
55569
 
55570
    /**
55571
     * Performs a deep copy on <i>other</i>.
55572
     */
55573
    public getCartsWithCouponCount_result(getCartsWithCouponCount_result other) {
55574
      __isset_bit_vector.clear();
55575
      __isset_bit_vector.or(other.__isset_bit_vector);
55576
      this.success = other.success;
55577
    }
55578
 
55579
    public getCartsWithCouponCount_result deepCopy() {
55580
      return new getCartsWithCouponCount_result(this);
55581
    }
55582
 
3430 rajveer 55583
    @Override
55584
    public void clear() {
55585
      setSuccessIsSet(false);
55586
      this.success = 0;
3385 varun.gupt 55587
    }
55588
 
55589
    public long getSuccess() {
55590
      return this.success;
55591
    }
55592
 
3430 rajveer 55593
    public void setSuccess(long success) {
3385 varun.gupt 55594
      this.success = success;
55595
      setSuccessIsSet(true);
55596
    }
55597
 
55598
    public void unsetSuccess() {
55599
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
55600
    }
55601
 
3430 rajveer 55602
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3385 varun.gupt 55603
    public boolean isSetSuccess() {
55604
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
55605
    }
55606
 
55607
    public void setSuccessIsSet(boolean value) {
55608
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
55609
    }
55610
 
55611
    public void setFieldValue(_Fields field, Object value) {
55612
      switch (field) {
55613
      case SUCCESS:
55614
        if (value == null) {
55615
          unsetSuccess();
55616
        } else {
55617
          setSuccess((Long)value);
55618
        }
55619
        break;
55620
 
55621
      }
55622
    }
55623
 
55624
    public Object getFieldValue(_Fields field) {
55625
      switch (field) {
55626
      case SUCCESS:
3430 rajveer 55627
        return Long.valueOf(getSuccess());
3385 varun.gupt 55628
 
55629
      }
55630
      throw new IllegalStateException();
55631
    }
55632
 
3430 rajveer 55633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55634
    public boolean isSet(_Fields field) {
55635
      if (field == null) {
55636
        throw new IllegalArgumentException();
55637
      }
3385 varun.gupt 55638
 
55639
      switch (field) {
55640
      case SUCCESS:
55641
        return isSetSuccess();
55642
      }
55643
      throw new IllegalStateException();
55644
    }
55645
 
55646
    @Override
55647
    public boolean equals(Object that) {
55648
      if (that == null)
55649
        return false;
55650
      if (that instanceof getCartsWithCouponCount_result)
55651
        return this.equals((getCartsWithCouponCount_result)that);
55652
      return false;
55653
    }
55654
 
55655
    public boolean equals(getCartsWithCouponCount_result that) {
55656
      if (that == null)
55657
        return false;
55658
 
55659
      boolean this_present_success = true;
55660
      boolean that_present_success = true;
55661
      if (this_present_success || that_present_success) {
55662
        if (!(this_present_success && that_present_success))
55663
          return false;
55664
        if (this.success != that.success)
55665
          return false;
55666
      }
55667
 
55668
      return true;
55669
    }
55670
 
55671
    @Override
55672
    public int hashCode() {
55673
      return 0;
55674
    }
55675
 
55676
    public int compareTo(getCartsWithCouponCount_result other) {
55677
      if (!getClass().equals(other.getClass())) {
55678
        return getClass().getName().compareTo(other.getClass().getName());
55679
      }
55680
 
55681
      int lastComparison = 0;
55682
      getCartsWithCouponCount_result typedOther = (getCartsWithCouponCount_result)other;
55683
 
3430 rajveer 55684
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3385 varun.gupt 55685
      if (lastComparison != 0) {
55686
        return lastComparison;
55687
      }
3430 rajveer 55688
      if (isSetSuccess()) {
55689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55690
        if (lastComparison != 0) {
55691
          return lastComparison;
55692
        }
3385 varun.gupt 55693
      }
55694
      return 0;
55695
    }
55696
 
3430 rajveer 55697
    public _Fields fieldForId(int fieldId) {
55698
      return _Fields.findByThriftId(fieldId);
55699
    }
55700
 
55701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55702
      org.apache.thrift.protocol.TField field;
3385 varun.gupt 55703
      iprot.readStructBegin();
55704
      while (true)
55705
      {
55706
        field = iprot.readFieldBegin();
3430 rajveer 55707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3385 varun.gupt 55708
          break;
55709
        }
3430 rajveer 55710
        switch (field.id) {
55711
          case 0: // SUCCESS
55712
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55713
              this.success = iprot.readI64();
55714
              setSuccessIsSet(true);
55715
            } else { 
55716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55717
            }
55718
            break;
55719
          default:
55720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385 varun.gupt 55721
        }
3430 rajveer 55722
        iprot.readFieldEnd();
3385 varun.gupt 55723
      }
55724
      iprot.readStructEnd();
55725
      validate();
55726
    }
55727
 
3430 rajveer 55728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3385 varun.gupt 55729
      oprot.writeStructBegin(STRUCT_DESC);
55730
 
55731
      if (this.isSetSuccess()) {
55732
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55733
        oprot.writeI64(this.success);
55734
        oprot.writeFieldEnd();
55735
      }
55736
      oprot.writeFieldStop();
55737
      oprot.writeStructEnd();
55738
    }
55739
 
55740
    @Override
55741
    public String toString() {
55742
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_result(");
55743
      boolean first = true;
55744
 
55745
      sb.append("success:");
55746
      sb.append(this.success);
55747
      first = false;
55748
      sb.append(")");
55749
      return sb.toString();
55750
    }
55751
 
3430 rajveer 55752
    public void validate() throws org.apache.thrift.TException {
3385 varun.gupt 55753
      // check for required fields
55754
    }
55755
 
3430 rajveer 55756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55757
      try {
55758
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55759
      } catch (org.apache.thrift.TException te) {
55760
        throw new java.io.IOException(te);
55761
      }
55762
    }
55763
 
55764
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55765
      try {
55766
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55767
      } catch (org.apache.thrift.TException te) {
55768
        throw new java.io.IOException(te);
55769
      }
55770
    }
55771
 
3385 varun.gupt 55772
  }
55773
 
48 ashish 55774
}