Subversion Repositories SmartDukaan

Rev

Rev 12696 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
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;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
5864 rajveer 36
     * @param cc
37
     * @param bcc
8020 rajveer 38
     * @param sourceId
2779 chandransh 39
     */
8020 rajveer 40
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 41
 
2779 chandransh 42
    /**
43
     * Retreives all the emails pending for dispatch
44
     */
3430 rajveer 45
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 46
 
2779 chandransh 47
    /**
48
     * Marks email as sent after successful dispatch
49
     * 
50
     * @param emailId
51
     */
3430 rajveer 52
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 53
 
3430 rajveer 54
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 55
 
3430 rajveer 56
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 57
 
3430 rajveer 58
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 59
 
3430 rajveer 60
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 61
 
3430 rajveer 62
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 63
 
3430 rajveer 64
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 65
 
3430 rajveer 66
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 67
 
3430 rajveer 68
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 69
 
750 chandransh 70
    /**
2443 chandransh 71
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
72
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 73
     * 
74
     * @param username
75
     * @param password
76
     */
3430 rajveer 77
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 78
 
2443 chandransh 79
    /**
80
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
81
     * 
82
     * @param username
83
     * @param oldPassword
84
     * @param newPassword
85
     */
3430 rajveer 86
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 87
 
750 chandransh 88
    /**
89
     * Returns the LogisticsUser struct associated with the given username and password if they match.
90
     * Throws an exception otherwise.
91
     * 
92
     * @param username
93
     * @param password
94
     */
3430 rajveer 95
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 96
 
1611 ankur.sing 97
    /**
98
     * Returns the StatisticsUser struct associated with the given username and password if they match.
99
     * Throws an exception otherwise.
100
     * 
101
     * @param username
102
     * @param password
103
     */
3430 rajveer 104
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 105
 
1891 ankur.sing 106
    /**
107
     * Returns the ReportUser struct associated with the given username and password if they match.
108
     * Throws an exception otherwise.
109
     * 
110
     * @param username
111
     * @param password
112
     */
3430 rajveer 113
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 114
 
115
    /**
116
     * Returns list of reports which are configured for the given role.
117
     * 
118
     * @param role
119
     */
3430 rajveer 120
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 121
 
2024 ankur.sing 122
    /**
2357 ankur.sing 123
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 124
     * Throws an exception otherwise.
125
     * 
126
     * @param username
127
     * @param password
128
     */
6788 rajveer 129
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 130
 
4544 varun.gupt 131
    /**
132
     * Saves the list of entity Ids to be shared with an email address
133
     * 
134
     * @param entityIds
135
     * @param email
136
     */
137
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
138
 
4693 mandeep.dh 139
    public List<Agent> getAgents() throws org.apache.thrift.TException;
140
 
141
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
142
 
143
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
144
 
145
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
146
 
147
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
148
 
4806 varun.gupt 149
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
150
 
151
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
152
 
4996 varun.gupt 153
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
154
 
5055 varun.gupt 155
    /**
156
     * Returns a list of emails to which product notifications have been sent in a given date range
157
     * 
158
     * @param startDatetime
159
     * @param endDatetime
160
     */
161
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
162
 
6322 amar.kumar 163
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
164
 
7221 kshitij.so 165
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
166
 
7410 amar.kumar 167
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException;
168
 
12691 manish.sha 169
    public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException;
170
 
171
    public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
172
 
173
    public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException;
174
 
175
    public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException;
176
 
177
    public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException;
178
 
179
    public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException;
180
 
181
    public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException;
182
 
183
    public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException;
184
 
185
    public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException;
186
 
187
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException;
188
 
189
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException;
190
 
12696 amit.gupta 191
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException;
192
 
13214 kshitij.so 193
    public String addCampaignNotification(String email, long campaignType) throws org.apache.thrift.TException;
194
 
352 ashish 195
  }
196
 
3430 rajveer 197
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
198
 
8020 rajveer 199
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 200
 
201
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
204
 
205
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
206
 
207
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
208
 
209
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
216
 
217
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
218
 
219
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
220
 
221
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
222
 
223
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
224
 
225
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
226
 
227
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
228
 
229
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
230
 
231
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
232
 
6788 rajveer 233
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 234
 
4544 varun.gupt 235
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
236
 
4693 mandeep.dh 237
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
238
 
239
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
240
 
241
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
242
 
243
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
244
 
245
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
246
 
4806 varun.gupt 247
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
248
 
249
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
250
 
4996 varun.gupt 251
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
252
 
5055 varun.gupt 253
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
254
 
6322 amar.kumar 255
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
256
 
7221 kshitij.so 257
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
258
 
7410 amar.kumar 259
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;
260
 
12691 manish.sha 261
    public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException;
262
 
263
    public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
264
 
265
    public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
266
 
267
    public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
268
 
269
    public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
270
 
271
    public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
272
 
273
    public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException;
274
 
275
    public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException;
276
 
277
    public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException;
278
 
279
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException;
280
 
281
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
282
 
12696 amit.gupta 283
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authoriseDealer_call> resultHandler) throws org.apache.thrift.TException;
284
 
13214 kshitij.so 285
    public void addCampaignNotification(String email, long campaignType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCampaignNotification_call> resultHandler) throws org.apache.thrift.TException;
286
 
3430 rajveer 287
  }
288
 
3374 rajveer 289
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 290
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
291
      public Factory() {}
292
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
293
        return new Client(prot);
294
      }
295
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
296
        return new Client(iprot, oprot);
297
      }
298
    }
299
 
300
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 301
    {
3430 rajveer 302
      super(prot, prot);
352 ashish 303
    }
304
 
3430 rajveer 305
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 306
      super(iprot, oprot);
352 ashish 307
    }
308
 
8020 rajveer 309
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 310
    {
8020 rajveer 311
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId);
3206 mandeep.dh 312
      return recv_saveUserEmailForSending();
1395 varun.gupt 313
    }
314
 
8020 rajveer 315
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws org.apache.thrift.TException
1395 varun.gupt 316
    {
317
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 318
      args.setEmailTo(emailTo);
319
      args.setEmailFrom(emailFrom);
320
      args.setSubject(subject);
321
      args.setBody(body);
322
      args.setSource(source);
323
      args.setEmailType(emailType);
5864 rajveer 324
      args.setCc(cc);
325
      args.setBcc(bcc);
8020 rajveer 326
      args.setSourceId(sourceId);
3430 rajveer 327
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 328
    }
329
 
3430 rajveer 330
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 331
    {
332
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 333
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 334
      if (result.isSetSuccess()) {
335
        return result.success;
336
      }
1395 varun.gupt 337
      if (result.se != null) {
338
        throw result.se;
339
      }
3430 rajveer 340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 341
    }
342
 
3430 rajveer 343
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 344
    {
3086 rajveer 345
      send_getEmailsToBeSent();
1422 varun.gupt 346
      return recv_getEmailsToBeSent();
347
    }
348
 
3430 rajveer 349
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 350
    {
351
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 352
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 353
    }
354
 
3430 rajveer 355
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 356
    {
357
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 358
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 359
      if (result.isSetSuccess()) {
360
        return result.success;
361
      }
362
      if (result.se != null) {
363
        throw result.se;
364
      }
3430 rajveer 365
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 366
    }
367
 
3430 rajveer 368
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 369
    {
370
      send_markEmailAsSent(emailId);
371
      recv_markEmailAsSent();
372
    }
373
 
3430 rajveer 374
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 375
    {
376
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 377
      args.setEmailId(emailId);
378
      sendBase("markEmailAsSent", args);
1422 varun.gupt 379
    }
380
 
3430 rajveer 381
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 382
    {
383
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 384
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 385
      if (result.se != null) {
386
        throw result.se;
387
      }
388
      return;
389
    }
390
 
3430 rajveer 391
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 392
    {
393
      send_sendMail(mail);
394
      recv_sendMail();
395
    }
396
 
3430 rajveer 397
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 398
    {
399
      sendMail_args args = new sendMail_args();
3430 rajveer 400
      args.setMail(mail);
401
      sendBase("sendMail", args);
352 ashish 402
    }
403
 
3430 rajveer 404
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 405
    {
406
      sendMail_result result = new sendMail_result();
3430 rajveer 407
      receiveBase(result, "sendMail");
352 ashish 408
      if (result.se != null) {
409
        throw result.se;
410
      }
411
      return;
412
    }
413
 
3430 rajveer 414
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 415
    {
416
      send_sendText(message);
417
      recv_sendText();
418
    }
419
 
3430 rajveer 420
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 421
    {
422
      sendText_args args = new sendText_args();
3430 rajveer 423
      args.setMessage(message);
424
      sendBase("sendText", args);
352 ashish 425
    }
426
 
3430 rajveer 427
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 428
    {
429
      sendText_result result = new sendText_result();
3430 rajveer 430
      receiveBase(result, "sendText");
352 ashish 431
      if (result.se != null) {
432
        throw result.se;
433
      }
434
      return;
435
    }
436
 
3430 rajveer 437
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 438
    {
439
      send_addMessage(message);
440
      recv_addMessage();
441
    }
442
 
3430 rajveer 443
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 444
    {
445
      addMessage_args args = new addMessage_args();
3430 rajveer 446
      args.setMessage(message);
447
      sendBase("addMessage", args);
352 ashish 448
    }
449
 
3430 rajveer 450
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 451
    {
452
      addMessage_result result = new addMessage_result();
3430 rajveer 453
      receiveBase(result, "addMessage");
352 ashish 454
      if (result.se != null) {
455
        throw result.se;
456
      }
457
      return;
458
    }
459
 
3430 rajveer 460
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 461
    {
462
      send_updateMessage(id, message);
463
      recv_updateMessage();
464
    }
465
 
3430 rajveer 466
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 467
    {
468
      updateMessage_args args = new updateMessage_args();
3430 rajveer 469
      args.setId(id);
470
      args.setMessage(message);
471
      sendBase("updateMessage", args);
352 ashish 472
    }
473
 
3430 rajveer 474
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 475
    {
476
      updateMessage_result result = new updateMessage_result();
3430 rajveer 477
      receiveBase(result, "updateMessage");
352 ashish 478
      if (result.se != null) {
479
        throw result.se;
480
      }
481
      return;
482
    }
483
 
3430 rajveer 484
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 485
    {
486
      send_getMessage(id);
487
      return recv_getMessage();
488
    }
489
 
3430 rajveer 490
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 491
    {
492
      getMessage_args args = new getMessage_args();
3430 rajveer 493
      args.setId(id);
494
      sendBase("getMessage", args);
352 ashish 495
    }
496
 
3430 rajveer 497
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 498
    {
499
      getMessage_result result = new getMessage_result();
3430 rajveer 500
      receiveBase(result, "getMessage");
352 ashish 501
      if (result.isSetSuccess()) {
502
        return result.success;
503
      }
504
      if (result.se != null) {
505
        throw result.se;
506
      }
3430 rajveer 507
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 508
    }
509
 
3430 rajveer 510
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 511
    {
512
      send_getSubstitutedMessage(id, params);
513
      return recv_getSubstitutedMessage();
514
    }
515
 
3430 rajveer 516
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 517
    {
518
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 519
      args.setId(id);
520
      args.setParams(params);
521
      sendBase("getSubstitutedMessage", args);
352 ashish 522
    }
523
 
3430 rajveer 524
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 525
    {
526
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 527
      receiveBase(result, "getSubstitutedMessage");
352 ashish 528
      if (result.isSetSuccess()) {
529
        return result.success;
530
      }
531
      if (result.se != null) {
532
        throw result.se;
533
      }
3430 rajveer 534
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 535
    }
536
 
3430 rajveer 537
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 538
    {
539
      send_addUser(username, password, warehouseId);
540
      return recv_addUser();
541
    }
542
 
3430 rajveer 543
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 544
    {
545
      addUser_args args = new addUser_args();
3430 rajveer 546
      args.setUsername(username);
547
      args.setPassword(password);
548
      args.setWarehouseId(warehouseId);
549
      sendBase("addUser", args);
495 rajveer 550
    }
551
 
3430 rajveer 552
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 553
    {
554
      addUser_result result = new addUser_result();
3430 rajveer 555
      receiveBase(result, "addUser");
495 rajveer 556
      if (result.isSetSuccess()) {
557
        return result.success;
558
      }
559
      if (result.se != null) {
560
        throw result.se;
561
      }
3430 rajveer 562
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 563
    }
564
 
3430 rajveer 565
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 566
    {
567
      send_deleteUser(username);
568
      return recv_deleteUser();
569
    }
570
 
3430 rajveer 571
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 572
    {
573
      deleteUser_args args = new deleteUser_args();
3430 rajveer 574
      args.setUsername(username);
575
      sendBase("deleteUser", args);
495 rajveer 576
    }
577
 
3430 rajveer 578
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 579
    {
580
      deleteUser_result result = new deleteUser_result();
3430 rajveer 581
      receiveBase(result, "deleteUser");
495 rajveer 582
      if (result.isSetSuccess()) {
583
        return result.success;
584
      }
585
      if (result.se != null) {
586
        throw result.se;
587
      }
3430 rajveer 588
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 589
    }
590
 
3430 rajveer 591
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 592
    {
2443 chandransh 593
      send_authenticateDashboardUser(username, password);
594
      return recv_authenticateDashboardUser();
495 rajveer 595
    }
596
 
3430 rajveer 597
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 598
    {
2443 chandransh 599
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 600
      args.setUsername(username);
601
      args.setPassword(password);
602
      sendBase("authenticateDashboardUser", args);
495 rajveer 603
    }
604
 
3430 rajveer 605
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 606
    {
2443 chandransh 607
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 608
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 609
      if (result.isSetSuccess()) {
610
        return result.success;
611
      }
612
      if (result.se != null) {
613
        throw result.se;
614
      }
3430 rajveer 615
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 616
    }
617
 
3430 rajveer 618
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 619
    {
620
      send_updatePassword(username, oldPassword, newPassword);
621
      return recv_updatePassword();
622
    }
623
 
3430 rajveer 624
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 625
    {
626
      updatePassword_args args = new updatePassword_args();
3430 rajveer 627
      args.setUsername(username);
628
      args.setOldPassword(oldPassword);
629
      args.setNewPassword(newPassword);
630
      sendBase("updatePassword", args);
495 rajveer 631
    }
632
 
3430 rajveer 633
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 634
    {
635
      updatePassword_result result = new updatePassword_result();
3430 rajveer 636
      receiveBase(result, "updatePassword");
495 rajveer 637
      if (result.isSetSuccess()) {
638
        return result.success;
639
      }
640
      if (result.se != null) {
641
        throw result.se;
642
      }
3430 rajveer 643
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 644
    }
645
 
3430 rajveer 646
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 647
    {
648
      send_authenticateLogisticsUser(username, password);
649
      return recv_authenticateLogisticsUser();
650
    }
651
 
3430 rajveer 652
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 653
    {
654
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 655
      args.setUsername(username);
656
      args.setPassword(password);
657
      sendBase("authenticateLogisticsUser", args);
750 chandransh 658
    }
659
 
3430 rajveer 660
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 661
    {
662
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 663
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 664
      if (result.isSetSuccess()) {
665
        return result.success;
666
      }
667
      if (result.hse != null) {
668
        throw result.hse;
669
      }
3430 rajveer 670
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 671
    }
672
 
3430 rajveer 673
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 674
    {
675
      send_authenticateStatisticsUser(username, password);
676
      return recv_authenticateStatisticsUser();
677
    }
678
 
3430 rajveer 679
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 680
    {
681
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 682
      args.setUsername(username);
683
      args.setPassword(password);
684
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 685
    }
686
 
3430 rajveer 687
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 688
    {
689
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 690
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 691
      if (result.isSetSuccess()) {
692
        return result.success;
693
      }
694
      if (result.hse != null) {
695
        throw result.hse;
696
      }
3430 rajveer 697
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 698
    }
699
 
3430 rajveer 700
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 701
    {
702
      send_authenticateReportUser(username, password);
703
      return recv_authenticateReportUser();
704
    }
705
 
3430 rajveer 706
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 707
    {
708
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 709
      args.setUsername(username);
710
      args.setPassword(password);
711
      sendBase("authenticateReportUser", args);
1891 ankur.sing 712
    }
713
 
3430 rajveer 714
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 715
    {
716
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 717
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 718
      if (result.isSetSuccess()) {
719
        return result.success;
720
      }
721
      if (result.hse != null) {
722
        throw result.hse;
723
      }
3430 rajveer 724
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 725
    }
726
 
3430 rajveer 727
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 728
    {
729
      send_getReports(role);
730
      return recv_getReports();
731
    }
732
 
3430 rajveer 733
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 734
    {
735
      getReports_args args = new getReports_args();
3430 rajveer 736
      args.setRole(role);
737
      sendBase("getReports", args);
1891 ankur.sing 738
    }
739
 
3430 rajveer 740
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 741
    {
742
      getReports_result result = new getReports_result();
3430 rajveer 743
      receiveBase(result, "getReports");
1891 ankur.sing 744
      if (result.isSetSuccess()) {
745
        return result.success;
746
      }
3430 rajveer 747
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 748
    }
749
 
6788 rajveer 750
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 751
    {
6788 rajveer 752
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 753
      return recv_authenticateCatalogUser();
754
    }
755
 
6788 rajveer 756
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 757
    {
758
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 759
      args.setUsername(username);
760
      args.setPassword(password);
761
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 762
    }
763
 
3430 rajveer 764
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 765
    {
766
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 767
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 768
      if (result.isSetSuccess()) {
769
        return result.success;
770
      }
771
      if (result.hse != null) {
772
        throw result.hse;
773
      }
3430 rajveer 774
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 775
    }
776
 
4544 varun.gupt 777
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
778
    {
779
      send_shareEntities(entityIds, email);
780
      recv_shareEntities();
781
    }
782
 
783
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
784
    {
785
      shareEntities_args args = new shareEntities_args();
786
      args.setEntityIds(entityIds);
787
      args.setEmail(email);
788
      sendBase("shareEntities", args);
789
    }
790
 
791
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
792
    {
793
      shareEntities_result result = new shareEntities_result();
794
      receiveBase(result, "shareEntities");
795
      if (result.hse != null) {
796
        throw result.hse;
797
      }
798
      return;
799
    }
800
 
4693 mandeep.dh 801
    public List<Agent> getAgents() throws org.apache.thrift.TException
802
    {
803
      send_getAgents();
804
      return recv_getAgents();
805
    }
806
 
807
    public void send_getAgents() throws org.apache.thrift.TException
808
    {
809
      getAgents_args args = new getAgents_args();
810
      sendBase("getAgents", args);
811
    }
812
 
813
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
814
    {
815
      getAgents_result result = new getAgents_result();
816
      receiveBase(result, "getAgents");
817
      if (result.isSetSuccess()) {
818
        return result.success;
819
      }
820
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
821
    }
822
 
823
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
824
    {
825
      send_validateLogIn(emailId, password);
826
      return recv_validateLogIn();
827
    }
828
 
829
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
830
    {
831
      validateLogIn_args args = new validateLogIn_args();
832
      args.setEmailId(emailId);
833
      args.setPassword(password);
834
      sendBase("validateLogIn", args);
835
    }
836
 
837
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
838
    {
839
      validateLogIn_result result = new validateLogIn_result();
840
      receiveBase(result, "validateLogIn");
841
      if (result.isSetSuccess()) {
842
        return result.success;
843
      }
844
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
845
    }
846
 
847
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
848
    {
849
      send_updatePasswordForAgent(agentEmailId, password);
850
      recv_updatePasswordForAgent();
851
    }
852
 
853
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
854
    {
855
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
856
      args.setAgentEmailId(agentEmailId);
857
      args.setPassword(password);
858
      sendBase("updatePasswordForAgent", args);
859
    }
860
 
861
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
862
    {
863
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
864
      receiveBase(result, "updatePasswordForAgent");
865
      return;
866
    }
867
 
868
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
869
    {
870
      send_getRoleNamesForAgent(agentEmailId);
871
      return recv_getRoleNamesForAgent();
872
    }
873
 
874
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
875
    {
876
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
877
      args.setAgentEmailId(agentEmailId);
878
      sendBase("getRoleNamesForAgent", args);
879
    }
880
 
881
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
882
    {
883
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
884
      receiveBase(result, "getRoleNamesForAgent");
885
      if (result.isSetSuccess()) {
886
        return result.success;
887
      }
888
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
889
    }
890
 
891
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
892
    {
893
      send_getPermissionsForRoleName(roleName);
894
      return recv_getPermissionsForRoleName();
895
    }
896
 
897
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
898
    {
899
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
900
      args.setRoleName(roleName);
901
      sendBase("getPermissionsForRoleName", args);
902
    }
903
 
904
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
905
    {
906
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
907
      receiveBase(result, "getPermissionsForRoleName");
908
      if (result.isSetSuccess()) {
909
        return result.success;
910
      }
911
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
912
    }
913
 
4806 varun.gupt 914
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
915
    {
916
      send_saveQuickLink(url, text);
917
      recv_saveQuickLink();
918
    }
919
 
920
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
921
    {
922
      saveQuickLink_args args = new saveQuickLink_args();
923
      args.setUrl(url);
924
      args.setText(text);
925
      sendBase("saveQuickLink", args);
926
    }
927
 
928
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
929
    {
930
      saveQuickLink_result result = new saveQuickLink_result();
931
      receiveBase(result, "saveQuickLink");
932
      if (result.hse != null) {
933
        throw result.hse;
934
      }
935
      return;
936
    }
937
 
938
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
939
    {
940
      send_getQuickLinks();
941
      return recv_getQuickLinks();
942
    }
943
 
944
    public void send_getQuickLinks() throws org.apache.thrift.TException
945
    {
946
      getQuickLinks_args args = new getQuickLinks_args();
947
      sendBase("getQuickLinks", args);
948
    }
949
 
950
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
951
    {
952
      getQuickLinks_result result = new getQuickLinks_result();
953
      receiveBase(result, "getQuickLinks");
954
      if (result.isSetSuccess()) {
955
        return result.success;
956
      }
957
      if (result.hse != null) {
958
        throw result.hse;
959
      }
960
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
961
    }
962
 
4996 varun.gupt 963
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
964
    {
965
      send_updateQuickLink(id, url, text);
966
      recv_updateQuickLink();
967
    }
968
 
969
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
970
    {
971
      updateQuickLink_args args = new updateQuickLink_args();
972
      args.setId(id);
973
      args.setUrl(url);
974
      args.setText(text);
975
      sendBase("updateQuickLink", args);
976
    }
977
 
978
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
979
    {
980
      updateQuickLink_result result = new updateQuickLink_result();
981
      receiveBase(result, "updateQuickLink");
982
      if (result.hse != null) {
983
        throw result.hse;
984
      }
985
      return;
986
    }
987
 
5055 varun.gupt 988
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
989
    {
990
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
991
      return recv_getEmailsForNotificationsSent();
992
    }
993
 
994
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
995
    {
996
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
997
      args.setStartDatetime(startDatetime);
998
      args.setEndDatetime(endDatetime);
999
      sendBase("getEmailsForNotificationsSent", args);
1000
    }
1001
 
1002
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
1003
    {
1004
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
1005
      receiveBase(result, "getEmailsForNotificationsSent");
1006
      if (result.isSetSuccess()) {
1007
        return result.success;
1008
      }
1009
      if (result.hse != null) {
1010
        throw result.hse;
1011
      }
1012
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
1013
    }
1014
 
6322 amar.kumar 1015
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
1016
    {
1017
      send_getOrderConfirmationMail(orderId);
1018
      return recv_getOrderConfirmationMail();
1019
    }
1020
 
1021
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
1022
    {
1023
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
1024
      args.setOrderId(orderId);
1025
      sendBase("getOrderConfirmationMail", args);
1026
    }
1027
 
1028
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
1029
    {
1030
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
1031
      receiveBase(result, "getOrderConfirmationMail");
1032
      if (result.isSetSuccess()) {
1033
        return result.success;
1034
      }
1035
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
1036
    }
1037
 
7221 kshitij.so 1038
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
1039
    {
1040
      send_getOrderDeliveryMail(orderId);
1041
      return recv_getOrderDeliveryMail();
1042
    }
1043
 
1044
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
1045
    {
1046
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
1047
      args.setOrderId(orderId);
1048
      sendBase("getOrderDeliveryMail", args);
1049
    }
1050
 
1051
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
1052
    {
1053
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
1054
      receiveBase(result, "getOrderDeliveryMail");
1055
      if (result.isSetSuccess()) {
1056
        return result.success;
1057
      }
1058
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1059
    }
1060
 
7410 amar.kumar 1061
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1062
    {
1063
      send_getWarehouseIdsForAgent(agentEmailId);
1064
      return recv_getWarehouseIdsForAgent();
1065
    }
1066
 
1067
    public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1068
    {
1069
      getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
1070
      args.setAgentEmailId(agentEmailId);
1071
      sendBase("getWarehouseIdsForAgent", args);
1072
    }
1073
 
1074
    public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException
1075
    {
1076
      getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
1077
      receiveBase(result, "getWarehouseIdsForAgent");
1078
      if (result.isSetSuccess()) {
1079
        return result.success;
1080
      }
1081
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1082
    }
1083
 
12691 manish.sha 1084
    public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException
1085
    {
1086
      send_saveUserSmsForSending(userId, mobileNo, text, type);
1087
      return recv_saveUserSmsForSending();
1088
    }
1089
 
1090
    public void send_saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws org.apache.thrift.TException
1091
    {
1092
      saveUserSmsForSending_args args = new saveUserSmsForSending_args();
1093
      args.setUserId(userId);
1094
      args.setMobileNo(mobileNo);
1095
      args.setText(text);
1096
      args.setType(type);
1097
      sendBase("saveUserSmsForSending", args);
1098
    }
1099
 
1100
    public long recv_saveUserSmsForSending() throws HelperServiceException, org.apache.thrift.TException
1101
    {
1102
      saveUserSmsForSending_result result = new saveUserSmsForSending_result();
1103
      receiveBase(result, "saveUserSmsForSending");
1104
      if (result.isSetSuccess()) {
1105
        return result.success;
1106
      }
1107
      if (result.se != null) {
1108
        throw result.se;
1109
      }
1110
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserSmsForSending failed: unknown result");
1111
    }
1112
 
1113
    public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1114
    {
1115
      send_getSmsToBeSent();
1116
      return recv_getSmsToBeSent();
1117
    }
1118
 
1119
    public void send_getSmsToBeSent() throws org.apache.thrift.TException
1120
    {
1121
      getSmsToBeSent_args args = new getSmsToBeSent_args();
1122
      sendBase("getSmsToBeSent", args);
1123
    }
1124
 
1125
    public List<UserSms> recv_getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1126
    {
1127
      getSmsToBeSent_result result = new getSmsToBeSent_result();
1128
      receiveBase(result, "getSmsToBeSent");
1129
      if (result.isSetSuccess()) {
1130
        return result.success;
1131
      }
1132
      if (result.se != null) {
1133
        throw result.se;
1134
      }
1135
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSmsToBeSent failed: unknown result");
1136
    }
1137
 
1138
    public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException
1139
    {
1140
      send_addUserSmsInfo(userSmsInfo);
1141
      recv_addUserSmsInfo();
1142
    }
1143
 
1144
    public void send_addUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException
1145
    {
1146
      addUserSmsInfo_args args = new addUserSmsInfo_args();
1147
      args.setUserSmsInfo(userSmsInfo);
1148
      sendBase("addUserSmsInfo", args);
1149
    }
1150
 
1151
    public void recv_addUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1152
    {
1153
      addUserSmsInfo_result result = new addUserSmsInfo_result();
1154
      receiveBase(result, "addUserSmsInfo");
1155
      if (result.se != null) {
1156
        throw result.se;
1157
      }
1158
      return;
1159
    }
1160
 
1161
    public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException
1162
    {
1163
      send_updateUserSmsInfo(userSmsInfo);
1164
      return recv_updateUserSmsInfo();
1165
    }
1166
 
1167
    public void send_updateUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException
1168
    {
1169
      updateUserSmsInfo_args args = new updateUserSmsInfo_args();
1170
      args.setUserSmsInfo(userSmsInfo);
1171
      sendBase("updateUserSmsInfo", args);
1172
    }
1173
 
1174
    public boolean recv_updateUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1175
    {
1176
      updateUserSmsInfo_result result = new updateUserSmsInfo_result();
1177
      receiveBase(result, "updateUserSmsInfo");
1178
      if (result.isSetSuccess()) {
1179
        return result.success;
1180
      }
1181
      if (result.se != null) {
1182
        throw result.se;
1183
      }
1184
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSmsInfo failed: unknown result");
1185
    }
1186
 
1187
    public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException
1188
    {
1189
      send_getUserSmsInfo(userId);
1190
      return recv_getUserSmsInfo();
1191
    }
1192
 
1193
    public void send_getUserSmsInfo(long userId) throws org.apache.thrift.TException
1194
    {
1195
      getUserSmsInfo_args args = new getUserSmsInfo_args();
1196
      args.setUserId(userId);
1197
      sendBase("getUserSmsInfo", args);
1198
    }
1199
 
1200
    public UserSmsInfo recv_getUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1201
    {
1202
      getUserSmsInfo_result result = new getUserSmsInfo_result();
1203
      receiveBase(result, "getUserSmsInfo");
1204
      if (result.isSetSuccess()) {
1205
        return result.success;
1206
      }
1207
      if (result.se != null) {
1208
        throw result.se;
1209
      }
1210
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSmsInfo failed: unknown result");
1211
    }
1212
 
1213
    public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException
1214
    {
1215
      send_getAllUsersSmsInfo(dndStatus, smsSubscribed);
1216
      return recv_getAllUsersSmsInfo();
1217
    }
1218
 
1219
    public void send_getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws org.apache.thrift.TException
1220
    {
1221
      getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();
1222
      args.setDndStatus(dndStatus);
1223
      args.setSmsSubscribed(smsSubscribed);
1224
      sendBase("getAllUsersSmsInfo", args);
1225
    }
1226
 
1227
    public List<UserSmsInfo> recv_getAllUsersSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1228
    {
1229
      getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();
1230
      receiveBase(result, "getAllUsersSmsInfo");
1231
      if (result.isSetSuccess()) {
1232
        return result.success;
1233
      }
1234
      if (result.se != null) {
1235
        throw result.se;
1236
      }
1237
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersSmsInfo failed: unknown result");
1238
    }
1239
 
1240
    public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException
1241
    {
1242
      send_listSmsToGetDeliveryInfo();
1243
      return recv_listSmsToGetDeliveryInfo();
1244
    }
1245
 
1246
    public void send_listSmsToGetDeliveryInfo() throws org.apache.thrift.TException
1247
    {
1248
      listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();
1249
      sendBase("listSmsToGetDeliveryInfo", args);
1250
    }
1251
 
1252
    public List<UserSms> recv_listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException
1253
    {
1254
      listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();
1255
      receiveBase(result, "listSmsToGetDeliveryInfo");
1256
      if (result.isSetSuccess()) {
1257
        return result.success;
1258
      }
1259
      if (result.se != null) {
1260
        throw result.se;
1261
      }
1262
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSmsToGetDeliveryInfo failed: unknown result");
1263
    }
1264
 
1265
    public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException
1266
    {
1267
      send_markMessagesAsSentToOperator(userSmsList);
1268
      return recv_markMessagesAsSentToOperator();
1269
    }
1270
 
1271
    public void send_markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException
1272
    {
1273
      markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();
1274
      args.setUserSmsList(userSmsList);
1275
      sendBase("markMessagesAsSentToOperator", args);
1276
    }
1277
 
1278
    public boolean recv_markMessagesAsSentToOperator() throws org.apache.thrift.TException
1279
    {
1280
      markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();
1281
      receiveBase(result, "markMessagesAsSentToOperator");
1282
      if (result.isSetSuccess()) {
1283
        return result.success;
1284
      }
1285
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSentToOperator failed: unknown result");
1286
    }
1287
 
1288
    public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException
1289
    {
1290
      send_markMessagesAsSubmittedToSmsc(userSmsList);
1291
      return recv_markMessagesAsSubmittedToSmsc();
1292
    }
1293
 
1294
    public void send_markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException
1295
    {
1296
      markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();
1297
      args.setUserSmsList(userSmsList);
1298
      sendBase("markMessagesAsSubmittedToSmsc", args);
1299
    }
1300
 
1301
    public boolean recv_markMessagesAsSubmittedToSmsc() throws org.apache.thrift.TException
1302
    {
1303
      markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();
1304
      receiveBase(result, "markMessagesAsSubmittedToSmsc");
1305
      if (result.isSetSuccess()) {
1306
        return result.success;
1307
      }
1308
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSubmittedToSmsc failed: unknown result");
1309
    }
1310
 
1311
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException
1312
    {
1313
      send_markMessagesAsSent(userSmsList);
1314
      return recv_markMessagesAsSent();
1315
    }
1316
 
1317
    public void send_markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException
1318
    {
1319
      markMessagesAsSent_args args = new markMessagesAsSent_args();
1320
      args.setUserSmsList(userSmsList);
1321
      sendBase("markMessagesAsSent", args);
1322
    }
1323
 
1324
    public boolean recv_markMessagesAsSent() throws org.apache.thrift.TException
1325
    {
1326
      markMessagesAsSent_result result = new markMessagesAsSent_result();
1327
      receiveBase(result, "markMessagesAsSent");
1328
      if (result.isSetSuccess()) {
1329
        return result.success;
1330
      }
1331
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSent failed: unknown result");
1332
    }
1333
 
1334
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException
1335
    {
1336
      send_markMessagesAsRetry(userSmsList);
1337
      return recv_markMessagesAsRetry();
1338
    }
1339
 
1340
    public void send_markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException
1341
    {
1342
      markMessagesAsRetry_args args = new markMessagesAsRetry_args();
1343
      args.setUserSmsList(userSmsList);
1344
      sendBase("markMessagesAsRetry", args);
1345
    }
1346
 
1347
    public boolean recv_markMessagesAsRetry() throws org.apache.thrift.TException
1348
    {
1349
      markMessagesAsRetry_result result = new markMessagesAsRetry_result();
1350
      receiveBase(result, "markMessagesAsRetry");
1351
      if (result.isSetSuccess()) {
1352
        return result.success;
1353
      }
1354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
1355
    }
1356
 
12696 amit.gupta 1357
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException
1358
    {
1359
      send_authoriseDealer(dealer);
1360
      return recv_authoriseDealer();
1361
    }
1362
 
1363
    public void send_authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException
1364
    {
1365
      authoriseDealer_args args = new authoriseDealer_args();
1366
      args.setDealer(dealer);
1367
      sendBase("authoriseDealer", args);
1368
    }
1369
 
1370
    public DealerAuth recv_authoriseDealer() throws org.apache.thrift.TException
1371
    {
1372
      authoriseDealer_result result = new authoriseDealer_result();
1373
      receiveBase(result, "authoriseDealer");
1374
      if (result.isSetSuccess()) {
1375
        return result.success;
1376
      }
1377
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authoriseDealer failed: unknown result");
1378
    }
1379
 
13214 kshitij.so 1380
    public String addCampaignNotification(String email, long campaignType) throws org.apache.thrift.TException
1381
    {
1382
      send_addCampaignNotification(email, campaignType);
1383
      return recv_addCampaignNotification();
1384
    }
1385
 
1386
    public void send_addCampaignNotification(String email, long campaignType) throws org.apache.thrift.TException
1387
    {
1388
      addCampaignNotification_args args = new addCampaignNotification_args();
1389
      args.setEmail(email);
1390
      args.setCampaignType(campaignType);
1391
      sendBase("addCampaignNotification", args);
1392
    }
1393
 
1394
    public String recv_addCampaignNotification() throws org.apache.thrift.TException
1395
    {
1396
      addCampaignNotification_result result = new addCampaignNotification_result();
1397
      receiveBase(result, "addCampaignNotification");
1398
      if (result.isSetSuccess()) {
1399
        return result.success;
1400
      }
1401
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addCampaignNotification failed: unknown result");
1402
    }
1403
 
352 ashish 1404
  }
3430 rajveer 1405
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1406
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1407
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1408
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1409
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1410
        this.clientManager = clientManager;
1411
        this.protocolFactory = protocolFactory;
1412
      }
1413
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1414
        return new AsyncClient(protocolFactory, clientManager, transport);
1415
      }
352 ashish 1416
    }
1417
 
3430 rajveer 1418
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1419
      super(protocolFactory, clientManager, transport);
1420
    }
352 ashish 1421
 
8020 rajveer 1422
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1423
      checkReady();
8020 rajveer 1424
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1425
      this.___currentMethod = method_call;
1426
      ___manager.call(method_call);
1427
    }
1428
 
1429
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1430
      private List<String> emailTo;
3430 rajveer 1431
      private String emailFrom;
1432
      private String subject;
1433
      private String body;
1434
      private String source;
1435
      private String emailType;
5864 rajveer 1436
      private List<String> cc;
1437
      private List<String> bcc;
8020 rajveer 1438
      private long sourceId;
1439
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1440
        super(client, protocolFactory, transport, resultHandler, false);
1441
        this.emailTo = emailTo;
1442
        this.emailFrom = emailFrom;
1443
        this.subject = subject;
1444
        this.body = body;
1445
        this.source = source;
1446
        this.emailType = emailType;
5864 rajveer 1447
        this.cc = cc;
1448
        this.bcc = bcc;
8020 rajveer 1449
        this.sourceId = sourceId;
352 ashish 1450
      }
3430 rajveer 1451
 
1452
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1453
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1454
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1455
        args.setEmailTo(emailTo);
1456
        args.setEmailFrom(emailFrom);
1457
        args.setSubject(subject);
1458
        args.setBody(body);
1459
        args.setSource(source);
1460
        args.setEmailType(emailType);
5864 rajveer 1461
        args.setCc(cc);
1462
        args.setBcc(bcc);
8020 rajveer 1463
        args.setSourceId(sourceId);
3430 rajveer 1464
        args.write(prot);
1465
        prot.writeMessageEnd();
1466
      }
1467
 
1468
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1469
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1470
          throw new IllegalStateException("Method call not finished!");
1471
        }
1472
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1473
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1474
        return (new Client(prot)).recv_saveUserEmailForSending();
1475
      }
352 ashish 1476
    }
1477
 
3430 rajveer 1478
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1479
      checkReady();
1480
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1481
      this.___currentMethod = method_call;
1482
      ___manager.call(method_call);
1483
    }
1484
 
1485
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1486
      public getEmailsToBeSent_call(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1487
        super(client, protocolFactory, transport, resultHandler, false);
1488
      }
1489
 
1490
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1491
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1492
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1493
        args.write(prot);
1494
        prot.writeMessageEnd();
1495
      }
1496
 
1497
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1498
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1499
          throw new IllegalStateException("Method call not finished!");
1500
        }
1501
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1503
        return (new Client(prot)).recv_getEmailsToBeSent();
1504
      }
1505
    }
1506
 
1507
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1508
      checkReady();
1509
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1510
      this.___currentMethod = method_call;
1511
      ___manager.call(method_call);
1512
    }
1513
 
1514
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1515
      private long emailId;
1516
      public markEmailAsSent_call(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1517
        super(client, protocolFactory, transport, resultHandler, false);
1518
        this.emailId = emailId;
1519
      }
1520
 
1521
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1522
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1523
        markEmailAsSent_args args = new markEmailAsSent_args();
1524
        args.setEmailId(emailId);
1525
        args.write(prot);
1526
        prot.writeMessageEnd();
1527
      }
1528
 
1529
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1530
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1531
          throw new IllegalStateException("Method call not finished!");
1532
        }
1533
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1534
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1535
        (new Client(prot)).recv_markEmailAsSent();
1536
      }
1537
    }
1538
 
1539
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1540
      checkReady();
1541
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1542
      this.___currentMethod = method_call;
1543
      ___manager.call(method_call);
1544
    }
1545
 
1546
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1547
      private Mail mail;
1548
      public sendMail_call(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1549
        super(client, protocolFactory, transport, resultHandler, false);
1550
        this.mail = mail;
1551
      }
1552
 
1553
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1554
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1555
        sendMail_args args = new sendMail_args();
1556
        args.setMail(mail);
1557
        args.write(prot);
1558
        prot.writeMessageEnd();
1559
      }
1560
 
1561
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1562
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1563
          throw new IllegalStateException("Method call not finished!");
1564
        }
1565
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1566
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1567
        (new Client(prot)).recv_sendMail();
1568
      }
1569
    }
1570
 
1571
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1572
      checkReady();
1573
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1574
      this.___currentMethod = method_call;
1575
      ___manager.call(method_call);
1576
    }
1577
 
1578
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1579
      private TextMessage message;
1580
      public sendText_call(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1581
        super(client, protocolFactory, transport, resultHandler, false);
1582
        this.message = message;
1583
      }
1584
 
1585
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1586
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1587
        sendText_args args = new sendText_args();
1588
        args.setMessage(message);
1589
        args.write(prot);
1590
        prot.writeMessageEnd();
1591
      }
1592
 
1593
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1594
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1595
          throw new IllegalStateException("Method call not finished!");
1596
        }
1597
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1598
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1599
        (new Client(prot)).recv_sendText();
1600
      }
1601
    }
1602
 
1603
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1604
      checkReady();
1605
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1606
      this.___currentMethod = method_call;
1607
      ___manager.call(method_call);
1608
    }
1609
 
1610
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1611
      private Message message;
1612
      public addMessage_call(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1613
        super(client, protocolFactory, transport, resultHandler, false);
1614
        this.message = message;
1615
      }
1616
 
1617
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1618
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1619
        addMessage_args args = new addMessage_args();
1620
        args.setMessage(message);
1621
        args.write(prot);
1622
        prot.writeMessageEnd();
1623
      }
1624
 
1625
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1626
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1627
          throw new IllegalStateException("Method call not finished!");
1628
        }
1629
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1630
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1631
        (new Client(prot)).recv_addMessage();
1632
      }
1633
    }
1634
 
1635
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1636
      checkReady();
1637
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1638
      this.___currentMethod = method_call;
1639
      ___manager.call(method_call);
1640
    }
1641
 
1642
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1643
      private long id;
1644
      private String message;
1645
      public updateMessage_call(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1646
        super(client, protocolFactory, transport, resultHandler, false);
1647
        this.id = id;
1648
        this.message = message;
1649
      }
1650
 
1651
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1652
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1653
        updateMessage_args args = new updateMessage_args();
1654
        args.setId(id);
1655
        args.setMessage(message);
1656
        args.write(prot);
1657
        prot.writeMessageEnd();
1658
      }
1659
 
1660
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1661
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1662
          throw new IllegalStateException("Method call not finished!");
1663
        }
1664
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1665
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1666
        (new Client(prot)).recv_updateMessage();
1667
      }
1668
    }
1669
 
1670
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1671
      checkReady();
1672
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1673
      this.___currentMethod = method_call;
1674
      ___manager.call(method_call);
1675
    }
1676
 
1677
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1678
      private long id;
1679
      public getMessage_call(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1680
        super(client, protocolFactory, transport, resultHandler, false);
1681
        this.id = id;
1682
      }
1683
 
1684
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1685
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1686
        getMessage_args args = new getMessage_args();
1687
        args.setId(id);
1688
        args.write(prot);
1689
        prot.writeMessageEnd();
1690
      }
1691
 
1692
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1693
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1694
          throw new IllegalStateException("Method call not finished!");
1695
        }
1696
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1697
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1698
        return (new Client(prot)).recv_getMessage();
1699
      }
1700
    }
1701
 
1702
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1703
      checkReady();
1704
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1705
      this.___currentMethod = method_call;
1706
      ___manager.call(method_call);
1707
    }
1708
 
1709
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1710
      private long id;
1711
      private Map<String,String> params;
1712
      public getSubstitutedMessage_call(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1713
        super(client, protocolFactory, transport, resultHandler, false);
1714
        this.id = id;
1715
        this.params = params;
1716
      }
1717
 
1718
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1719
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1720
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1721
        args.setId(id);
1722
        args.setParams(params);
1723
        args.write(prot);
1724
        prot.writeMessageEnd();
1725
      }
1726
 
1727
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1728
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1729
          throw new IllegalStateException("Method call not finished!");
1730
        }
1731
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1732
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1733
        return (new Client(prot)).recv_getSubstitutedMessage();
1734
      }
1735
    }
1736
 
1737
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1738
      checkReady();
1739
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1740
      this.___currentMethod = method_call;
1741
      ___manager.call(method_call);
1742
    }
1743
 
1744
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1745
      private String username;
1746
      private String password;
1747
      private long warehouseId;
1748
      public addUser_call(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1749
        super(client, protocolFactory, transport, resultHandler, false);
1750
        this.username = username;
1751
        this.password = password;
1752
        this.warehouseId = warehouseId;
1753
      }
1754
 
1755
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1756
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1757
        addUser_args args = new addUser_args();
1758
        args.setUsername(username);
1759
        args.setPassword(password);
1760
        args.setWarehouseId(warehouseId);
1761
        args.write(prot);
1762
        prot.writeMessageEnd();
1763
      }
1764
 
1765
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1766
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1767
          throw new IllegalStateException("Method call not finished!");
1768
        }
1769
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1770
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1771
        return (new Client(prot)).recv_addUser();
1772
      }
1773
    }
1774
 
1775
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1776
      checkReady();
1777
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1778
      this.___currentMethod = method_call;
1779
      ___manager.call(method_call);
1780
    }
1781
 
1782
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1783
      private String username;
1784
      public deleteUser_call(String username, 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 {
1785
        super(client, protocolFactory, transport, resultHandler, false);
1786
        this.username = username;
1787
      }
1788
 
1789
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1790
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1791
        deleteUser_args args = new deleteUser_args();
1792
        args.setUsername(username);
1793
        args.write(prot);
1794
        prot.writeMessageEnd();
1795
      }
1796
 
1797
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1798
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1799
          throw new IllegalStateException("Method call not finished!");
1800
        }
1801
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1802
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1803
        return (new Client(prot)).recv_deleteUser();
1804
      }
1805
    }
1806
 
1807
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1808
      checkReady();
1809
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1810
      this.___currentMethod = method_call;
1811
      ___manager.call(method_call);
1812
    }
1813
 
1814
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1815
      private String username;
1816
      private String password;
1817
      public authenticateDashboardUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1818
        super(client, protocolFactory, transport, resultHandler, false);
1819
        this.username = username;
1820
        this.password = password;
1821
      }
1822
 
1823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1825
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1826
        args.setUsername(username);
1827
        args.setPassword(password);
1828
        args.write(prot);
1829
        prot.writeMessageEnd();
1830
      }
1831
 
1832
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1833
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1834
          throw new IllegalStateException("Method call not finished!");
1835
        }
1836
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1837
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1838
        return (new Client(prot)).recv_authenticateDashboardUser();
1839
      }
1840
    }
1841
 
1842
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1843
      checkReady();
1844
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1845
      this.___currentMethod = method_call;
1846
      ___manager.call(method_call);
1847
    }
1848
 
1849
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1850
      private String username;
1851
      private String oldPassword;
1852
      private String newPassword;
1853
      public updatePassword_call(String username, 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 {
1854
        super(client, protocolFactory, transport, resultHandler, false);
1855
        this.username = username;
1856
        this.oldPassword = oldPassword;
1857
        this.newPassword = newPassword;
1858
      }
1859
 
1860
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1861
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1862
        updatePassword_args args = new updatePassword_args();
1863
        args.setUsername(username);
1864
        args.setOldPassword(oldPassword);
1865
        args.setNewPassword(newPassword);
1866
        args.write(prot);
1867
        prot.writeMessageEnd();
1868
      }
1869
 
1870
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1871
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1872
          throw new IllegalStateException("Method call not finished!");
1873
        }
1874
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1875
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1876
        return (new Client(prot)).recv_updatePassword();
1877
      }
1878
    }
1879
 
1880
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1881
      checkReady();
1882
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1883
      this.___currentMethod = method_call;
1884
      ___manager.call(method_call);
1885
    }
1886
 
1887
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1888
      private String username;
1889
      private String password;
1890
      public authenticateLogisticsUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1891
        super(client, protocolFactory, transport, resultHandler, false);
1892
        this.username = username;
1893
        this.password = password;
1894
      }
1895
 
1896
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1897
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1898
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1899
        args.setUsername(username);
1900
        args.setPassword(password);
1901
        args.write(prot);
1902
        prot.writeMessageEnd();
1903
      }
1904
 
1905
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1906
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1907
          throw new IllegalStateException("Method call not finished!");
1908
        }
1909
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1910
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1911
        return (new Client(prot)).recv_authenticateLogisticsUser();
1912
      }
1913
    }
1914
 
1915
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1916
      checkReady();
1917
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1918
      this.___currentMethod = method_call;
1919
      ___manager.call(method_call);
1920
    }
1921
 
1922
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1923
      private String username;
1924
      private String password;
1925
      public authenticateStatisticsUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1926
        super(client, protocolFactory, transport, resultHandler, false);
1927
        this.username = username;
1928
        this.password = password;
1929
      }
1930
 
1931
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1932
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1933
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1934
        args.setUsername(username);
1935
        args.setPassword(password);
1936
        args.write(prot);
1937
        prot.writeMessageEnd();
1938
      }
1939
 
1940
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1941
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1942
          throw new IllegalStateException("Method call not finished!");
1943
        }
1944
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1945
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1946
        return (new Client(prot)).recv_authenticateStatisticsUser();
1947
      }
1948
    }
1949
 
1950
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1951
      checkReady();
1952
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1953
      this.___currentMethod = method_call;
1954
      ___manager.call(method_call);
1955
    }
1956
 
1957
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1958
      private String username;
1959
      private String password;
1960
      public authenticateReportUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1961
        super(client, protocolFactory, transport, resultHandler, false);
1962
        this.username = username;
1963
        this.password = password;
1964
      }
1965
 
1966
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1967
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1968
        authenticateReportUser_args args = new authenticateReportUser_args();
1969
        args.setUsername(username);
1970
        args.setPassword(password);
1971
        args.write(prot);
1972
        prot.writeMessageEnd();
1973
      }
1974
 
1975
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1976
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1977
          throw new IllegalStateException("Method call not finished!");
1978
        }
1979
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1981
        return (new Client(prot)).recv_authenticateReportUser();
1982
      }
1983
    }
1984
 
1985
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1986
      checkReady();
1987
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1988
      this.___currentMethod = method_call;
1989
      ___manager.call(method_call);
1990
    }
1991
 
1992
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1993
      private long role;
1994
      public getReports_call(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1995
        super(client, protocolFactory, transport, resultHandler, false);
1996
        this.role = role;
1997
      }
1998
 
1999
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2000
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
2001
        getReports_args args = new getReports_args();
2002
        args.setRole(role);
2003
        args.write(prot);
2004
        prot.writeMessageEnd();
2005
      }
2006
 
2007
      public List<Report> getResult() throws org.apache.thrift.TException {
2008
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2009
          throw new IllegalStateException("Method call not finished!");
2010
        }
2011
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2012
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2013
        return (new Client(prot)).recv_getReports();
2014
      }
2015
    }
2016
 
6788 rajveer 2017
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 2018
      checkReady();
6788 rajveer 2019
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 2020
      this.___currentMethod = method_call;
2021
      ___manager.call(method_call);
2022
    }
2023
 
2024
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2025
      private String username;
2026
      private String password;
6788 rajveer 2027
      public authenticateCatalogUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 2028
        super(client, protocolFactory, transport, resultHandler, false);
2029
        this.username = username;
2030
        this.password = password;
2031
      }
2032
 
2033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2035
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
2036
        args.setUsername(username);
2037
        args.setPassword(password);
2038
        args.write(prot);
2039
        prot.writeMessageEnd();
2040
      }
2041
 
2042
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
2043
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2044
          throw new IllegalStateException("Method call not finished!");
2045
        }
2046
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2047
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2048
        return (new Client(prot)).recv_authenticateCatalogUser();
2049
      }
2050
    }
2051
 
4544 varun.gupt 2052
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
2053
      checkReady();
2054
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
2055
      this.___currentMethod = method_call;
2056
      ___manager.call(method_call);
2057
    }
2058
 
2059
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
2060
      private List<Long> entityIds;
2061
      private String email;
2062
      public shareEntities_call(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2063
        super(client, protocolFactory, transport, resultHandler, false);
2064
        this.entityIds = entityIds;
2065
        this.email = email;
2066
      }
2067
 
2068
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2069
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
2070
        shareEntities_args args = new shareEntities_args();
2071
        args.setEntityIds(entityIds);
2072
        args.setEmail(email);
2073
        args.write(prot);
2074
        prot.writeMessageEnd();
2075
      }
2076
 
2077
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2078
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2079
          throw new IllegalStateException("Method call not finished!");
2080
        }
2081
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2082
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2083
        (new Client(prot)).recv_shareEntities();
2084
      }
2085
    }
2086
 
4693 mandeep.dh 2087
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
2088
      checkReady();
2089
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
2090
      this.___currentMethod = method_call;
2091
      ___manager.call(method_call);
2092
    }
2093
 
2094
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
2095
      public getAgents_call(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2096
        super(client, protocolFactory, transport, resultHandler, false);
2097
      }
2098
 
2099
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2100
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
2101
        getAgents_args args = new getAgents_args();
2102
        args.write(prot);
2103
        prot.writeMessageEnd();
2104
      }
2105
 
2106
      public List<Agent> getResult() throws org.apache.thrift.TException {
2107
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2108
          throw new IllegalStateException("Method call not finished!");
2109
        }
2110
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2111
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2112
        return (new Client(prot)).recv_getAgents();
2113
      }
2114
    }
2115
 
2116
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
2117
      checkReady();
2118
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
2119
      this.___currentMethod = method_call;
2120
      ___manager.call(method_call);
2121
    }
2122
 
2123
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2124
      private String emailId;
2125
      private String password;
2126
      public validateLogIn_call(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2127
        super(client, protocolFactory, transport, resultHandler, false);
2128
        this.emailId = emailId;
2129
        this.password = password;
2130
      }
2131
 
2132
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2133
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2134
        validateLogIn_args args = new validateLogIn_args();
2135
        args.setEmailId(emailId);
2136
        args.setPassword(password);
2137
        args.write(prot);
2138
        prot.writeMessageEnd();
2139
      }
2140
 
2141
      public boolean getResult() throws org.apache.thrift.TException {
2142
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2143
          throw new IllegalStateException("Method call not finished!");
2144
        }
2145
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2146
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2147
        return (new Client(prot)).recv_validateLogIn();
2148
      }
2149
    }
2150
 
2151
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
2152
      checkReady();
2153
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
2154
      this.___currentMethod = method_call;
2155
      ___manager.call(method_call);
2156
    }
2157
 
2158
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2159
      private String agentEmailId;
2160
      private String password;
2161
      public updatePasswordForAgent_call(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2162
        super(client, protocolFactory, transport, resultHandler, false);
2163
        this.agentEmailId = agentEmailId;
2164
        this.password = password;
2165
      }
2166
 
2167
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2168
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2169
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
2170
        args.setAgentEmailId(agentEmailId);
2171
        args.setPassword(password);
2172
        args.write(prot);
2173
        prot.writeMessageEnd();
2174
      }
2175
 
2176
      public void getResult() throws org.apache.thrift.TException {
2177
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2178
          throw new IllegalStateException("Method call not finished!");
2179
        }
2180
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2181
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2182
        (new Client(prot)).recv_updatePasswordForAgent();
2183
      }
2184
    }
2185
 
2186
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
2187
      checkReady();
2188
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2189
      this.___currentMethod = method_call;
2190
      ___manager.call(method_call);
2191
    }
2192
 
2193
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2194
      private String agentEmailId;
2195
      public getRoleNamesForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2196
        super(client, protocolFactory, transport, resultHandler, false);
2197
        this.agentEmailId = agentEmailId;
2198
      }
2199
 
2200
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2201
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2202
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
2203
        args.setAgentEmailId(agentEmailId);
2204
        args.write(prot);
2205
        prot.writeMessageEnd();
2206
      }
2207
 
2208
      public List<String> getResult() throws org.apache.thrift.TException {
2209
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2210
          throw new IllegalStateException("Method call not finished!");
2211
        }
2212
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2213
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2214
        return (new Client(prot)).recv_getRoleNamesForAgent();
2215
      }
2216
    }
2217
 
2218
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
2219
      checkReady();
2220
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
2221
      this.___currentMethod = method_call;
2222
      ___manager.call(method_call);
2223
    }
2224
 
2225
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
2226
      private String roleName;
2227
      public getPermissionsForRoleName_call(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2228
        super(client, protocolFactory, transport, resultHandler, false);
2229
        this.roleName = roleName;
2230
      }
2231
 
2232
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2233
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
2234
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
2235
        args.setRoleName(roleName);
2236
        args.write(prot);
2237
        prot.writeMessageEnd();
2238
      }
2239
 
2240
      public List<String> getResult() throws org.apache.thrift.TException {
2241
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2242
          throw new IllegalStateException("Method call not finished!");
2243
        }
2244
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2245
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2246
        return (new Client(prot)).recv_getPermissionsForRoleName();
2247
      }
2248
    }
2249
 
4806 varun.gupt 2250
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
2251
      checkReady();
2252
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
2253
      this.___currentMethod = method_call;
2254
      ___manager.call(method_call);
2255
    }
2256
 
2257
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
2258
      private String url;
2259
      private String text;
2260
      public saveQuickLink_call(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2261
        super(client, protocolFactory, transport, resultHandler, false);
2262
        this.url = url;
2263
        this.text = text;
2264
      }
2265
 
2266
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2267
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
2268
        saveQuickLink_args args = new saveQuickLink_args();
2269
        args.setUrl(url);
2270
        args.setText(text);
2271
        args.write(prot);
2272
        prot.writeMessageEnd();
2273
      }
2274
 
2275
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2277
          throw new IllegalStateException("Method call not finished!");
2278
        }
2279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2281
        (new Client(prot)).recv_saveQuickLink();
2282
      }
2283
    }
2284
 
2285
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
2286
      checkReady();
2287
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
2288
      this.___currentMethod = method_call;
2289
      ___manager.call(method_call);
2290
    }
2291
 
2292
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
2293
      public getQuickLinks_call(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2294
        super(client, protocolFactory, transport, resultHandler, false);
2295
      }
2296
 
2297
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2298
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
2299
        getQuickLinks_args args = new getQuickLinks_args();
2300
        args.write(prot);
2301
        prot.writeMessageEnd();
2302
      }
2303
 
2304
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
2305
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2306
          throw new IllegalStateException("Method call not finished!");
2307
        }
2308
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2309
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2310
        return (new Client(prot)).recv_getQuickLinks();
2311
      }
2312
    }
2313
 
4996 varun.gupt 2314
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
2315
      checkReady();
2316
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
2317
      this.___currentMethod = method_call;
2318
      ___manager.call(method_call);
2319
    }
2320
 
2321
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
2322
      private long id;
2323
      private String url;
2324
      private String text;
2325
      public updateQuickLink_call(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2326
        super(client, protocolFactory, transport, resultHandler, false);
2327
        this.id = id;
2328
        this.url = url;
2329
        this.text = text;
2330
      }
2331
 
2332
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2333
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
2334
        updateQuickLink_args args = new updateQuickLink_args();
2335
        args.setId(id);
2336
        args.setUrl(url);
2337
        args.setText(text);
2338
        args.write(prot);
2339
        prot.writeMessageEnd();
2340
      }
2341
 
2342
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2343
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2344
          throw new IllegalStateException("Method call not finished!");
2345
        }
2346
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2347
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2348
        (new Client(prot)).recv_updateQuickLink();
2349
      }
2350
    }
2351
 
5055 varun.gupt 2352
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
2353
      checkReady();
2354
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
2355
      this.___currentMethod = method_call;
2356
      ___manager.call(method_call);
2357
    }
2358
 
2359
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2360
      private long startDatetime;
2361
      private long endDatetime;
2362
      public getEmailsForNotificationsSent_call(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2363
        super(client, protocolFactory, transport, resultHandler, false);
2364
        this.startDatetime = startDatetime;
2365
        this.endDatetime = endDatetime;
2366
      }
2367
 
2368
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2369
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2370
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
2371
        args.setStartDatetime(startDatetime);
2372
        args.setEndDatetime(endDatetime);
2373
        args.write(prot);
2374
        prot.writeMessageEnd();
2375
      }
2376
 
2377
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
2378
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2379
          throw new IllegalStateException("Method call not finished!");
2380
        }
2381
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2382
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2383
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
2384
      }
2385
    }
2386
 
6322 amar.kumar 2387
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
2388
      checkReady();
2389
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2390
      this.___currentMethod = method_call;
2391
      ___manager.call(method_call);
2392
    }
2393
 
2394
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2395
      private long orderId;
2396
      public getOrderConfirmationMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2397
        super(client, protocolFactory, transport, resultHandler, false);
2398
        this.orderId = orderId;
2399
      }
2400
 
2401
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2402
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2403
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
2404
        args.setOrderId(orderId);
2405
        args.write(prot);
2406
        prot.writeMessageEnd();
2407
      }
2408
 
2409
      public String getResult() throws org.apache.thrift.TException {
2410
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2411
          throw new IllegalStateException("Method call not finished!");
2412
        }
2413
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2414
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2415
        return (new Client(prot)).recv_getOrderConfirmationMail();
2416
      }
2417
    }
2418
 
7221 kshitij.so 2419
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
2420
      checkReady();
2421
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2422
      this.___currentMethod = method_call;
2423
      ___manager.call(method_call);
2424
    }
2425
 
2426
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2427
      private long orderId;
2428
      public getOrderDeliveryMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2429
        super(client, protocolFactory, transport, resultHandler, false);
2430
        this.orderId = orderId;
2431
      }
2432
 
2433
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2434
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2435
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
2436
        args.setOrderId(orderId);
2437
        args.write(prot);
2438
        prot.writeMessageEnd();
2439
      }
2440
 
2441
      public String getResult() throws org.apache.thrift.TException {
2442
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2443
          throw new IllegalStateException("Method call not finished!");
2444
        }
2445
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2446
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2447
        return (new Client(prot)).recv_getOrderDeliveryMail();
2448
      }
2449
    }
2450
 
7410 amar.kumar 2451
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {
2452
      checkReady();
2453
      getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2454
      this.___currentMethod = method_call;
2455
      ___manager.call(method_call);
2456
    }
2457
 
2458
    public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2459
      private String agentEmailId;
2460
      public getWarehouseIdsForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2461
        super(client, protocolFactory, transport, resultHandler, false);
2462
        this.agentEmailId = agentEmailId;
2463
      }
2464
 
2465
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2466
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2467
        getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
2468
        args.setAgentEmailId(agentEmailId);
2469
        args.write(prot);
2470
        prot.writeMessageEnd();
2471
      }
2472
 
2473
      public List<Long> getResult() throws org.apache.thrift.TException {
2474
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2475
          throw new IllegalStateException("Method call not finished!");
2476
        }
2477
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2478
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2479
        return (new Client(prot)).recv_getWarehouseIdsForAgent();
2480
      }
2481
    }
2482
 
12691 manish.sha 2483
    public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException {
2484
      checkReady();
2485
      saveUserSmsForSending_call method_call = new saveUserSmsForSending_call(userId, mobileNo, text, type, resultHandler, this, ___protocolFactory, ___transport);
2486
      this.___currentMethod = method_call;
2487
      ___manager.call(method_call);
2488
    }
2489
 
2490
    public static class saveUserSmsForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
2491
      private long userId;
2492
      private String mobileNo;
2493
      private String text;
2494
      private SmsType type;
2495
      public saveUserSmsForSending_call(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2496
        super(client, protocolFactory, transport, resultHandler, false);
2497
        this.userId = userId;
2498
        this.mobileNo = mobileNo;
2499
        this.text = text;
2500
        this.type = type;
2501
      }
2502
 
2503
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2504
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserSmsForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
2505
        saveUserSmsForSending_args args = new saveUserSmsForSending_args();
2506
        args.setUserId(userId);
2507
        args.setMobileNo(mobileNo);
2508
        args.setText(text);
2509
        args.setType(type);
2510
        args.write(prot);
2511
        prot.writeMessageEnd();
2512
      }
2513
 
2514
      public long getResult() throws HelperServiceException, 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_saveUserSmsForSending();
2521
      }
2522
    }
2523
 
2524
    public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
2525
      checkReady();
2526
      getSmsToBeSent_call method_call = new getSmsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
2527
      this.___currentMethod = method_call;
2528
      ___manager.call(method_call);
2529
    }
2530
 
2531
    public static class getSmsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2532
      public getSmsToBeSent_call(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2533
        super(client, protocolFactory, transport, resultHandler, false);
2534
      }
2535
 
2536
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2537
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSmsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2538
        getSmsToBeSent_args args = new getSmsToBeSent_args();
2539
        args.write(prot);
2540
        prot.writeMessageEnd();
2541
      }
2542
 
2543
      public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {
2544
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2545
          throw new IllegalStateException("Method call not finished!");
2546
        }
2547
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2548
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2549
        return (new Client(prot)).recv_getSmsToBeSent();
2550
      }
2551
    }
2552
 
2553
    public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2554
      checkReady();
2555
      addUserSmsInfo_call method_call = new addUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);
2556
      this.___currentMethod = method_call;
2557
      ___manager.call(method_call);
2558
    }
2559
 
2560
    public static class addUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2561
      private UserSmsInfo userSmsInfo;
2562
      public addUserSmsInfo_call(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2563
        super(client, protocolFactory, transport, resultHandler, false);
2564
        this.userSmsInfo = userSmsInfo;
2565
      }
2566
 
2567
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2568
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2569
        addUserSmsInfo_args args = new addUserSmsInfo_args();
2570
        args.setUserSmsInfo(userSmsInfo);
2571
        args.write(prot);
2572
        prot.writeMessageEnd();
2573
      }
2574
 
2575
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2576
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2577
          throw new IllegalStateException("Method call not finished!");
2578
        }
2579
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2580
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2581
        (new Client(prot)).recv_addUserSmsInfo();
2582
      }
2583
    }
2584
 
2585
    public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2586
      checkReady();
2587
      updateUserSmsInfo_call method_call = new updateUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);
2588
      this.___currentMethod = method_call;
2589
      ___manager.call(method_call);
2590
    }
2591
 
2592
    public static class updateUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2593
      private UserSmsInfo userSmsInfo;
2594
      public updateUserSmsInfo_call(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2595
        super(client, protocolFactory, transport, resultHandler, false);
2596
        this.userSmsInfo = userSmsInfo;
2597
      }
2598
 
2599
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2600
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2601
        updateUserSmsInfo_args args = new updateUserSmsInfo_args();
2602
        args.setUserSmsInfo(userSmsInfo);
2603
        args.write(prot);
2604
        prot.writeMessageEnd();
2605
      }
2606
 
2607
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
2608
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2609
          throw new IllegalStateException("Method call not finished!");
2610
        }
2611
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2613
        return (new Client(prot)).recv_updateUserSmsInfo();
2614
      }
2615
    }
2616
 
2617
    public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2618
      checkReady();
2619
      getUserSmsInfo_call method_call = new getUserSmsInfo_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2620
      this.___currentMethod = method_call;
2621
      ___manager.call(method_call);
2622
    }
2623
 
2624
    public static class getUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2625
      private long userId;
2626
      public getUserSmsInfo_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2627
        super(client, protocolFactory, transport, resultHandler, false);
2628
        this.userId = userId;
2629
      }
2630
 
2631
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2632
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2633
        getUserSmsInfo_args args = new getUserSmsInfo_args();
2634
        args.setUserId(userId);
2635
        args.write(prot);
2636
        prot.writeMessageEnd();
2637
      }
2638
 
2639
      public UserSmsInfo getResult() throws HelperServiceException, org.apache.thrift.TException {
2640
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2641
          throw new IllegalStateException("Method call not finished!");
2642
        }
2643
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2645
        return (new Client(prot)).recv_getUserSmsInfo();
2646
      }
2647
    }
2648
 
2649
    public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2650
      checkReady();
2651
      getAllUsersSmsInfo_call method_call = new getAllUsersSmsInfo_call(dndStatus, smsSubscribed, resultHandler, this, ___protocolFactory, ___transport);
2652
      this.___currentMethod = method_call;
2653
      ___manager.call(method_call);
2654
    }
2655
 
2656
    public static class getAllUsersSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2657
      private boolean dndStatus;
2658
      private boolean smsSubscribed;
2659
      public getAllUsersSmsInfo_call(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2660
        super(client, protocolFactory, transport, resultHandler, false);
2661
        this.dndStatus = dndStatus;
2662
        this.smsSubscribed = smsSubscribed;
2663
      }
2664
 
2665
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2666
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsersSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2667
        getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();
2668
        args.setDndStatus(dndStatus);
2669
        args.setSmsSubscribed(smsSubscribed);
2670
        args.write(prot);
2671
        prot.writeMessageEnd();
2672
      }
2673
 
2674
      public List<UserSmsInfo> getResult() throws HelperServiceException, org.apache.thrift.TException {
2675
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2676
          throw new IllegalStateException("Method call not finished!");
2677
        }
2678
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2679
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2680
        return (new Client(prot)).recv_getAllUsersSmsInfo();
2681
      }
2682
    }
2683
 
2684
    public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException {
2685
      checkReady();
2686
      listSmsToGetDeliveryInfo_call method_call = new listSmsToGetDeliveryInfo_call(resultHandler, this, ___protocolFactory, ___transport);
2687
      this.___currentMethod = method_call;
2688
      ___manager.call(method_call);
2689
    }
2690
 
2691
    public static class listSmsToGetDeliveryInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2692
      public listSmsToGetDeliveryInfo_call(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2693
        super(client, protocolFactory, transport, resultHandler, false);
2694
      }
2695
 
2696
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2697
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSmsToGetDeliveryInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2698
        listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();
2699
        args.write(prot);
2700
        prot.writeMessageEnd();
2701
      }
2702
 
2703
      public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {
2704
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2705
          throw new IllegalStateException("Method call not finished!");
2706
        }
2707
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2709
        return (new Client(prot)).recv_listSmsToGetDeliveryInfo();
2710
      }
2711
    }
2712
 
2713
    public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException {
2714
      checkReady();
2715
      markMessagesAsSentToOperator_call method_call = new markMessagesAsSentToOperator_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2716
      this.___currentMethod = method_call;
2717
      ___manager.call(method_call);
2718
    }
2719
 
2720
    public static class markMessagesAsSentToOperator_call extends org.apache.thrift.async.TAsyncMethodCall {
2721
      private List<UserSms> userSmsList;
2722
      public markMessagesAsSentToOperator_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2723
        super(client, protocolFactory, transport, resultHandler, false);
2724
        this.userSmsList = userSmsList;
2725
      }
2726
 
2727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSentToOperator", org.apache.thrift.protocol.TMessageType.CALL, 0));
2729
        markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();
2730
        args.setUserSmsList(userSmsList);
2731
        args.write(prot);
2732
        prot.writeMessageEnd();
2733
      }
2734
 
2735
      public boolean getResult() throws org.apache.thrift.TException {
2736
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2737
          throw new IllegalStateException("Method call not finished!");
2738
        }
2739
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2740
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2741
        return (new Client(prot)).recv_markMessagesAsSentToOperator();
2742
      }
2743
    }
2744
 
2745
    public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException {
2746
      checkReady();
2747
      markMessagesAsSubmittedToSmsc_call method_call = new markMessagesAsSubmittedToSmsc_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2748
      this.___currentMethod = method_call;
2749
      ___manager.call(method_call);
2750
    }
2751
 
2752
    public static class markMessagesAsSubmittedToSmsc_call extends org.apache.thrift.async.TAsyncMethodCall {
2753
      private List<UserSms> userSmsList;
2754
      public markMessagesAsSubmittedToSmsc_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2755
        super(client, protocolFactory, transport, resultHandler, false);
2756
        this.userSmsList = userSmsList;
2757
      }
2758
 
2759
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2760
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSubmittedToSmsc", org.apache.thrift.protocol.TMessageType.CALL, 0));
2761
        markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();
2762
        args.setUserSmsList(userSmsList);
2763
        args.write(prot);
2764
        prot.writeMessageEnd();
2765
      }
2766
 
2767
      public boolean getResult() throws org.apache.thrift.TException {
2768
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2769
          throw new IllegalStateException("Method call not finished!");
2770
        }
2771
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2773
        return (new Client(prot)).recv_markMessagesAsSubmittedToSmsc();
2774
      }
2775
    }
2776
 
2777
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException {
2778
      checkReady();
2779
      markMessagesAsSent_call method_call = new markMessagesAsSent_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2780
      this.___currentMethod = method_call;
2781
      ___manager.call(method_call);
2782
    }
2783
 
2784
    public static class markMessagesAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2785
      private List<UserSms> userSmsList;
2786
      public markMessagesAsSent_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2787
        super(client, protocolFactory, transport, resultHandler, false);
2788
        this.userSmsList = userSmsList;
2789
      }
2790
 
2791
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2792
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2793
        markMessagesAsSent_args args = new markMessagesAsSent_args();
2794
        args.setUserSmsList(userSmsList);
2795
        args.write(prot);
2796
        prot.writeMessageEnd();
2797
      }
2798
 
2799
      public boolean getResult() throws org.apache.thrift.TException {
2800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2801
          throw new IllegalStateException("Method call not finished!");
2802
        }
2803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2805
        return (new Client(prot)).recv_markMessagesAsSent();
2806
      }
2807
    }
2808
 
2809
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException {
2810
      checkReady();
2811
      markMessagesAsRetry_call method_call = new markMessagesAsRetry_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2812
      this.___currentMethod = method_call;
2813
      ___manager.call(method_call);
2814
    }
2815
 
2816
    public static class markMessagesAsRetry_call extends org.apache.thrift.async.TAsyncMethodCall {
2817
      private List<UserSms> userSmsList;
2818
      public markMessagesAsRetry_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2819
        super(client, protocolFactory, transport, resultHandler, false);
2820
        this.userSmsList = userSmsList;
2821
      }
2822
 
2823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsRetry", org.apache.thrift.protocol.TMessageType.CALL, 0));
2825
        markMessagesAsRetry_args args = new markMessagesAsRetry_args();
2826
        args.setUserSmsList(userSmsList);
2827
        args.write(prot);
2828
        prot.writeMessageEnd();
2829
      }
2830
 
2831
      public boolean getResult() throws org.apache.thrift.TException {
2832
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2833
          throw new IllegalStateException("Method call not finished!");
2834
        }
2835
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2836
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2837
        return (new Client(prot)).recv_markMessagesAsRetry();
2838
      }
2839
    }
2840
 
12696 amit.gupta 2841
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_call> resultHandler) throws org.apache.thrift.TException {
2842
      checkReady();
2843
      authoriseDealer_call method_call = new authoriseDealer_call(dealer, resultHandler, this, ___protocolFactory, ___transport);
2844
      this.___currentMethod = method_call;
2845
      ___manager.call(method_call);
2846
    }
2847
 
2848
    public static class authoriseDealer_call extends org.apache.thrift.async.TAsyncMethodCall {
2849
      private DealerAuth dealer;
2850
      public authoriseDealer_call(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2851
        super(client, protocolFactory, transport, resultHandler, false);
2852
        this.dealer = dealer;
2853
      }
2854
 
2855
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2856
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authoriseDealer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2857
        authoriseDealer_args args = new authoriseDealer_args();
2858
        args.setDealer(dealer);
2859
        args.write(prot);
2860
        prot.writeMessageEnd();
2861
      }
2862
 
2863
      public DealerAuth getResult() throws org.apache.thrift.TException {
2864
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2865
          throw new IllegalStateException("Method call not finished!");
2866
        }
2867
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2868
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2869
        return (new Client(prot)).recv_authoriseDealer();
2870
      }
2871
    }
2872
 
13214 kshitij.so 2873
    public void addCampaignNotification(String email, long campaignType, org.apache.thrift.async.AsyncMethodCallback<addCampaignNotification_call> resultHandler) throws org.apache.thrift.TException {
2874
      checkReady();
2875
      addCampaignNotification_call method_call = new addCampaignNotification_call(email, campaignType, resultHandler, this, ___protocolFactory, ___transport);
2876
      this.___currentMethod = method_call;
2877
      ___manager.call(method_call);
2878
    }
2879
 
2880
    public static class addCampaignNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
2881
      private String email;
2882
      private long campaignType;
2883
      public addCampaignNotification_call(String email, long campaignType, org.apache.thrift.async.AsyncMethodCallback<addCampaignNotification_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2884
        super(client, protocolFactory, transport, resultHandler, false);
2885
        this.email = email;
2886
        this.campaignType = campaignType;
2887
      }
2888
 
2889
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2890
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCampaignNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
2891
        addCampaignNotification_args args = new addCampaignNotification_args();
2892
        args.setEmail(email);
2893
        args.setCampaignType(campaignType);
2894
        args.write(prot);
2895
        prot.writeMessageEnd();
2896
      }
2897
 
2898
      public String getResult() throws org.apache.thrift.TException {
2899
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2900
          throw new IllegalStateException("Method call not finished!");
2901
        }
2902
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2903
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2904
        return (new Client(prot)).recv_addCampaignNotification();
2905
      }
2906
    }
2907
 
3430 rajveer 2908
  }
2909
 
2910
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2911
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2912
    public Processor(I iface) {
2913
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2914
    }
2915
 
2916
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2917
      super(iface, getProcessMap(processMap));
2918
    }
2919
 
2920
    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) {
2921
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2922
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2923
      processMap.put("markEmailAsSent", new markEmailAsSent());
2924
      processMap.put("sendMail", new sendMail());
2925
      processMap.put("sendText", new sendText());
2926
      processMap.put("addMessage", new addMessage());
2927
      processMap.put("updateMessage", new updateMessage());
2928
      processMap.put("getMessage", new getMessage());
2929
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2930
      processMap.put("addUser", new addUser());
2931
      processMap.put("deleteUser", new deleteUser());
2932
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2933
      processMap.put("updatePassword", new updatePassword());
2934
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2935
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2936
      processMap.put("authenticateReportUser", new authenticateReportUser());
2937
      processMap.put("getReports", new getReports());
2938
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2939
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2940
      processMap.put("getAgents", new getAgents());
2941
      processMap.put("validateLogIn", new validateLogIn());
2942
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2943
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2944
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2945
      processMap.put("saveQuickLink", new saveQuickLink());
2946
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2947
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2948
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2949
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
7221 kshitij.so 2950
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
7410 amar.kumar 2951
      processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());
12691 manish.sha 2952
      processMap.put("saveUserSmsForSending", new saveUserSmsForSending());
2953
      processMap.put("getSmsToBeSent", new getSmsToBeSent());
2954
      processMap.put("addUserSmsInfo", new addUserSmsInfo());
2955
      processMap.put("updateUserSmsInfo", new updateUserSmsInfo());
2956
      processMap.put("getUserSmsInfo", new getUserSmsInfo());
2957
      processMap.put("getAllUsersSmsInfo", new getAllUsersSmsInfo());
2958
      processMap.put("listSmsToGetDeliveryInfo", new listSmsToGetDeliveryInfo());
2959
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2960
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2961
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2962
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
12696 amit.gupta 2963
      processMap.put("authoriseDealer", new authoriseDealer());
13214 kshitij.so 2964
      processMap.put("addCampaignNotification", new addCampaignNotification());
3430 rajveer 2965
      return processMap;
2966
    }
2967
 
2968
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2969
      public saveUserEmailForSending() {
2970
        super("saveUserEmailForSending");
2971
      }
2972
 
2973
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2974
        return new saveUserEmailForSending_args();
2975
      }
2976
 
2977
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2978
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2979
        try {
8020 rajveer 2980
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId);
3206 mandeep.dh 2981
          result.setSuccessIsSet(true);
1395 varun.gupt 2982
        } catch (HelperServiceException se) {
2983
          result.se = se;
2984
        }
3430 rajveer 2985
        return result;
1395 varun.gupt 2986
      }
2987
    }
2988
 
3430 rajveer 2989
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2990
      public getEmailsToBeSent() {
2991
        super("getEmailsToBeSent");
2992
      }
2993
 
2994
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2995
        return new getEmailsToBeSent_args();
2996
      }
2997
 
2998
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2999
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3000
        try {
3430 rajveer 3001
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 3002
        } catch (HelperServiceException se) {
3003
          result.se = se;
3004
        }
3430 rajveer 3005
        return result;
1422 varun.gupt 3006
      }
3007
    }
3008
 
3430 rajveer 3009
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
3010
      public markEmailAsSent() {
3011
        super("markEmailAsSent");
3012
      }
3013
 
3014
      protected markEmailAsSent_args getEmptyArgsInstance() {
3015
        return new markEmailAsSent_args();
3016
      }
3017
 
3018
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 3019
        markEmailAsSent_result result = new markEmailAsSent_result();
3020
        try {
3430 rajveer 3021
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 3022
        } catch (HelperServiceException se) {
3023
          result.se = se;
3024
        }
3430 rajveer 3025
        return result;
1422 varun.gupt 3026
      }
3027
    }
3028
 
3430 rajveer 3029
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
3030
      public sendMail() {
3031
        super("sendMail");
3032
      }
3033
 
3034
      protected sendMail_args getEmptyArgsInstance() {
3035
        return new sendMail_args();
3036
      }
3037
 
3038
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 3039
        sendMail_result result = new sendMail_result();
3040
        try {
3430 rajveer 3041
          iface.sendMail(args.mail);
352 ashish 3042
        } catch (HelperServiceException se) {
3043
          result.se = se;
3044
        }
3430 rajveer 3045
        return result;
352 ashish 3046
      }
3047
    }
3048
 
3430 rajveer 3049
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
3050
      public sendText() {
3051
        super("sendText");
3052
      }
3053
 
3054
      protected sendText_args getEmptyArgsInstance() {
3055
        return new sendText_args();
3056
      }
3057
 
3058
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 3059
        sendText_result result = new sendText_result();
3060
        try {
3430 rajveer 3061
          iface.sendText(args.message);
352 ashish 3062
        } catch (HelperServiceException se) {
3063
          result.se = se;
3064
        }
3430 rajveer 3065
        return result;
352 ashish 3066
      }
3067
    }
3068
 
3430 rajveer 3069
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
3070
      public addMessage() {
3071
        super("addMessage");
3072
      }
3073
 
3074
      protected addMessage_args getEmptyArgsInstance() {
3075
        return new addMessage_args();
3076
      }
3077
 
3078
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 3079
        addMessage_result result = new addMessage_result();
3080
        try {
3430 rajveer 3081
          iface.addMessage(args.message);
352 ashish 3082
        } catch (HelperServiceException se) {
3083
          result.se = se;
3084
        }
3430 rajveer 3085
        return result;
352 ashish 3086
      }
3087
    }
3088
 
3430 rajveer 3089
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
3090
      public updateMessage() {
3091
        super("updateMessage");
3092
      }
3093
 
3094
      protected updateMessage_args getEmptyArgsInstance() {
3095
        return new updateMessage_args();
3096
      }
3097
 
3098
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 3099
        updateMessage_result result = new updateMessage_result();
3100
        try {
3430 rajveer 3101
          iface.updateMessage(args.id, args.message);
352 ashish 3102
        } catch (HelperServiceException se) {
3103
          result.se = se;
3104
        }
3430 rajveer 3105
        return result;
352 ashish 3106
      }
3107
    }
3108
 
3430 rajveer 3109
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
3110
      public getMessage() {
3111
        super("getMessage");
3112
      }
3113
 
3114
      protected getMessage_args getEmptyArgsInstance() {
3115
        return new getMessage_args();
3116
      }
3117
 
3118
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 3119
        getMessage_result result = new getMessage_result();
3120
        try {
3430 rajveer 3121
          result.success = iface.getMessage(args.id);
352 ashish 3122
        } catch (HelperServiceException se) {
3123
          result.se = se;
3124
        }
3430 rajveer 3125
        return result;
352 ashish 3126
      }
3127
    }
3128
 
3430 rajveer 3129
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
3130
      public getSubstitutedMessage() {
3131
        super("getSubstitutedMessage");
3132
      }
3133
 
3134
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
3135
        return new getSubstitutedMessage_args();
3136
      }
3137
 
3138
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 3139
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3140
        try {
3430 rajveer 3141
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 3142
        } catch (HelperServiceException se) {
3143
          result.se = se;
3144
        }
3430 rajveer 3145
        return result;
352 ashish 3146
      }
3147
    }
3148
 
3430 rajveer 3149
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
3150
      public addUser() {
3151
        super("addUser");
3152
      }
3153
 
3154
      protected addUser_args getEmptyArgsInstance() {
3155
        return new addUser_args();
3156
      }
3157
 
3158
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 3159
        addUser_result result = new addUser_result();
3160
        try {
3430 rajveer 3161
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 3162
          result.setSuccessIsSet(true);
3163
        } catch (HelperServiceException se) {
3164
          result.se = se;
3165
        }
3430 rajveer 3166
        return result;
495 rajveer 3167
      }
3168
    }
3169
 
3430 rajveer 3170
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
3171
      public deleteUser() {
3172
        super("deleteUser");
3173
      }
3174
 
3175
      protected deleteUser_args getEmptyArgsInstance() {
3176
        return new deleteUser_args();
3177
      }
3178
 
3179
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 3180
        deleteUser_result result = new deleteUser_result();
3181
        try {
3430 rajveer 3182
          result.success = iface.deleteUser(args.username);
495 rajveer 3183
          result.setSuccessIsSet(true);
3184
        } catch (HelperServiceException se) {
3185
          result.se = se;
3186
        }
3430 rajveer 3187
        return result;
495 rajveer 3188
      }
3189
    }
3190
 
3430 rajveer 3191
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
3192
      public authenticateDashboardUser() {
3193
        super("authenticateDashboardUser");
3194
      }
3195
 
3196
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
3197
        return new authenticateDashboardUser_args();
3198
      }
3199
 
3200
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 3201
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 3202
        try {
3430 rajveer 3203
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 3204
        } catch (HelperServiceException se) {
3205
          result.se = se;
3206
        }
3430 rajveer 3207
        return result;
495 rajveer 3208
      }
3209
    }
3210
 
3430 rajveer 3211
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
3212
      public updatePassword() {
3213
        super("updatePassword");
3214
      }
3215
 
3216
      protected updatePassword_args getEmptyArgsInstance() {
3217
        return new updatePassword_args();
3218
      }
3219
 
3220
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 3221
        updatePassword_result result = new updatePassword_result();
3222
        try {
3430 rajveer 3223
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 3224
          result.setSuccessIsSet(true);
3225
        } catch (HelperServiceException se) {
3226
          result.se = se;
3227
        }
3430 rajveer 3228
        return result;
495 rajveer 3229
      }
3230
    }
3231
 
3430 rajveer 3232
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
3233
      public authenticateLogisticsUser() {
3234
        super("authenticateLogisticsUser");
3235
      }
3236
 
3237
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
3238
        return new authenticateLogisticsUser_args();
3239
      }
3240
 
3241
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 3242
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3243
        try {
3430 rajveer 3244
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 3245
        } catch (HelperServiceException hse) {
3246
          result.hse = hse;
3247
        }
3430 rajveer 3248
        return result;
750 chandransh 3249
      }
3250
    }
3251
 
3430 rajveer 3252
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
3253
      public authenticateStatisticsUser() {
3254
        super("authenticateStatisticsUser");
3255
      }
3256
 
3257
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
3258
        return new authenticateStatisticsUser_args();
3259
      }
3260
 
3261
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 3262
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3263
        try {
3430 rajveer 3264
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 3265
        } catch (HelperServiceException hse) {
3266
          result.hse = hse;
3267
        }
3430 rajveer 3268
        return result;
1611 ankur.sing 3269
      }
3270
    }
3271
 
3430 rajveer 3272
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
3273
      public authenticateReportUser() {
3274
        super("authenticateReportUser");
3275
      }
3276
 
3277
      protected authenticateReportUser_args getEmptyArgsInstance() {
3278
        return new authenticateReportUser_args();
3279
      }
3280
 
3281
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 3282
        authenticateReportUser_result result = new authenticateReportUser_result();
3283
        try {
3430 rajveer 3284
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 3285
        } catch (HelperServiceException hse) {
3286
          result.hse = hse;
3287
        }
3430 rajveer 3288
        return result;
1891 ankur.sing 3289
      }
3290
    }
3291
 
3430 rajveer 3292
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
3293
      public getReports() {
3294
        super("getReports");
3295
      }
3296
 
3297
      protected getReports_args getEmptyArgsInstance() {
3298
        return new getReports_args();
3299
      }
3300
 
3301
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 3302
        getReports_result result = new getReports_result();
3430 rajveer 3303
        result.success = iface.getReports(args.role);
3304
        return result;
1891 ankur.sing 3305
      }
3306
    }
3307
 
3430 rajveer 3308
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
3309
      public authenticateCatalogUser() {
3310
        super("authenticateCatalogUser");
3311
      }
3312
 
3313
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
3314
        return new authenticateCatalogUser_args();
3315
      }
3316
 
3317
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 3318
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3319
        try {
6788 rajveer 3320
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 3321
        } catch (HelperServiceException hse) {
3322
          result.hse = hse;
3323
        }
3430 rajveer 3324
        return result;
2024 ankur.sing 3325
      }
3326
    }
3327
 
4544 varun.gupt 3328
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
3329
      public shareEntities() {
3330
        super("shareEntities");
3331
      }
3332
 
3333
      protected shareEntities_args getEmptyArgsInstance() {
3334
        return new shareEntities_args();
3335
      }
3336
 
3337
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
3338
        shareEntities_result result = new shareEntities_result();
3339
        try {
3340
          iface.shareEntities(args.entityIds, args.email);
3341
        } catch (HelperServiceException hse) {
3342
          result.hse = hse;
3343
        }
3344
        return result;
3345
      }
3346
    }
3347
 
4693 mandeep.dh 3348
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
3349
      public getAgents() {
3350
        super("getAgents");
3351
      }
3352
 
3353
      protected getAgents_args getEmptyArgsInstance() {
3354
        return new getAgents_args();
3355
      }
3356
 
3357
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
3358
        getAgents_result result = new getAgents_result();
3359
        result.success = iface.getAgents();
3360
        return result;
3361
      }
3362
    }
3363
 
3364
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
3365
      public validateLogIn() {
3366
        super("validateLogIn");
3367
      }
3368
 
3369
      protected validateLogIn_args getEmptyArgsInstance() {
3370
        return new validateLogIn_args();
3371
      }
3372
 
3373
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
3374
        validateLogIn_result result = new validateLogIn_result();
3375
        result.success = iface.validateLogIn(args.emailId, args.password);
3376
        result.setSuccessIsSet(true);
3377
        return result;
3378
      }
3379
    }
3380
 
3381
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
3382
      public updatePasswordForAgent() {
3383
        super("updatePasswordForAgent");
3384
      }
3385
 
3386
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
3387
        return new updatePasswordForAgent_args();
3388
      }
3389
 
3390
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
3391
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
3392
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
3393
        return result;
3394
      }
3395
    }
3396
 
3397
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
3398
      public getRoleNamesForAgent() {
3399
        super("getRoleNamesForAgent");
3400
      }
3401
 
3402
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
3403
        return new getRoleNamesForAgent_args();
3404
      }
3405
 
3406
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
3407
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
3408
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
3409
        return result;
3410
      }
3411
    }
3412
 
3413
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
3414
      public getPermissionsForRoleName() {
3415
        super("getPermissionsForRoleName");
3416
      }
3417
 
3418
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
3419
        return new getPermissionsForRoleName_args();
3420
      }
3421
 
3422
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
3423
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
3424
        result.success = iface.getPermissionsForRoleName(args.roleName);
3425
        return result;
3426
      }
3427
    }
3428
 
4806 varun.gupt 3429
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
3430
      public saveQuickLink() {
3431
        super("saveQuickLink");
3432
      }
3433
 
3434
      protected saveQuickLink_args getEmptyArgsInstance() {
3435
        return new saveQuickLink_args();
3436
      }
3437
 
3438
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
3439
        saveQuickLink_result result = new saveQuickLink_result();
3440
        try {
3441
          iface.saveQuickLink(args.url, args.text);
3442
        } catch (HelperServiceException hse) {
3443
          result.hse = hse;
3444
        }
3445
        return result;
3446
      }
3447
    }
3448
 
3449
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
3450
      public getQuickLinks() {
3451
        super("getQuickLinks");
3452
      }
3453
 
3454
      protected getQuickLinks_args getEmptyArgsInstance() {
3455
        return new getQuickLinks_args();
3456
      }
3457
 
3458
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
3459
        getQuickLinks_result result = new getQuickLinks_result();
3460
        try {
3461
          result.success = iface.getQuickLinks();
3462
        } catch (HelperServiceException hse) {
3463
          result.hse = hse;
3464
        }
3465
        return result;
3466
      }
3467
    }
3468
 
4996 varun.gupt 3469
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
3470
      public updateQuickLink() {
3471
        super("updateQuickLink");
3472
      }
3473
 
3474
      protected updateQuickLink_args getEmptyArgsInstance() {
3475
        return new updateQuickLink_args();
3476
      }
3477
 
3478
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
3479
        updateQuickLink_result result = new updateQuickLink_result();
3480
        try {
3481
          iface.updateQuickLink(args.id, args.url, args.text);
3482
        } catch (HelperServiceException hse) {
3483
          result.hse = hse;
3484
        }
3485
        return result;
3486
      }
3487
    }
3488
 
5055 varun.gupt 3489
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
3490
      public getEmailsForNotificationsSent() {
3491
        super("getEmailsForNotificationsSent");
3492
      }
3493
 
3494
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
3495
        return new getEmailsForNotificationsSent_args();
3496
      }
3497
 
3498
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
3499
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
3500
        try {
3501
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
3502
        } catch (HelperServiceException hse) {
3503
          result.hse = hse;
3504
        }
3505
        return result;
3506
      }
3507
    }
3508
 
6322 amar.kumar 3509
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
3510
      public getOrderConfirmationMail() {
3511
        super("getOrderConfirmationMail");
3512
      }
3513
 
3514
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
3515
        return new getOrderConfirmationMail_args();
3516
      }
3517
 
3518
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
3519
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
3520
        result.success = iface.getOrderConfirmationMail(args.orderId);
3521
        return result;
3522
      }
3523
    }
3524
 
7221 kshitij.so 3525
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
3526
      public getOrderDeliveryMail() {
3527
        super("getOrderDeliveryMail");
3528
      }
3529
 
3530
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
3531
        return new getOrderDeliveryMail_args();
3532
      }
3533
 
3534
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
3535
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
3536
        result.success = iface.getOrderDeliveryMail(args.orderId);
3537
        return result;
3538
      }
3539
    }
3540
 
7410 amar.kumar 3541
    private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {
3542
      public getWarehouseIdsForAgent() {
3543
        super("getWarehouseIdsForAgent");
3544
      }
3545
 
3546
      protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {
3547
        return new getWarehouseIdsForAgent_args();
3548
      }
3549
 
3550
      protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {
3551
        getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
3552
        result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);
3553
        return result;
3554
      }
3555
    }
3556
 
12691 manish.sha 3557
    private static class saveUserSmsForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserSmsForSending_args> {
3558
      public saveUserSmsForSending() {
3559
        super("saveUserSmsForSending");
3560
      }
3561
 
3562
      protected saveUserSmsForSending_args getEmptyArgsInstance() {
3563
        return new saveUserSmsForSending_args();
3564
      }
3565
 
3566
      protected saveUserSmsForSending_result getResult(I iface, saveUserSmsForSending_args args) throws org.apache.thrift.TException {
3567
        saveUserSmsForSending_result result = new saveUserSmsForSending_result();
3568
        try {
3569
          result.success = iface.saveUserSmsForSending(args.userId, args.mobileNo, args.text, args.type);
3570
          result.setSuccessIsSet(true);
3571
        } catch (HelperServiceException se) {
3572
          result.se = se;
3573
        }
3574
        return result;
3575
      }
3576
    }
3577
 
3578
    private static class getSmsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSmsToBeSent_args> {
3579
      public getSmsToBeSent() {
3580
        super("getSmsToBeSent");
3581
      }
3582
 
3583
      protected getSmsToBeSent_args getEmptyArgsInstance() {
3584
        return new getSmsToBeSent_args();
3585
      }
3586
 
3587
      protected getSmsToBeSent_result getResult(I iface, getSmsToBeSent_args args) throws org.apache.thrift.TException {
3588
        getSmsToBeSent_result result = new getSmsToBeSent_result();
3589
        try {
3590
          result.success = iface.getSmsToBeSent();
3591
        } catch (HelperServiceException se) {
3592
          result.se = se;
3593
        }
3594
        return result;
3595
      }
3596
    }
3597
 
3598
    private static class addUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUserSmsInfo_args> {
3599
      public addUserSmsInfo() {
3600
        super("addUserSmsInfo");
3601
      }
3602
 
3603
      protected addUserSmsInfo_args getEmptyArgsInstance() {
3604
        return new addUserSmsInfo_args();
3605
      }
3606
 
3607
      protected addUserSmsInfo_result getResult(I iface, addUserSmsInfo_args args) throws org.apache.thrift.TException {
3608
        addUserSmsInfo_result result = new addUserSmsInfo_result();
3609
        try {
3610
          iface.addUserSmsInfo(args.userSmsInfo);
3611
        } catch (HelperServiceException se) {
3612
          result.se = se;
3613
        }
3614
        return result;
3615
      }
3616
    }
3617
 
3618
    private static class updateUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserSmsInfo_args> {
3619
      public updateUserSmsInfo() {
3620
        super("updateUserSmsInfo");
3621
      }
3622
 
3623
      protected updateUserSmsInfo_args getEmptyArgsInstance() {
3624
        return new updateUserSmsInfo_args();
3625
      }
3626
 
3627
      protected updateUserSmsInfo_result getResult(I iface, updateUserSmsInfo_args args) throws org.apache.thrift.TException {
3628
        updateUserSmsInfo_result result = new updateUserSmsInfo_result();
3629
        try {
3630
          result.success = iface.updateUserSmsInfo(args.userSmsInfo);
3631
          result.setSuccessIsSet(true);
3632
        } catch (HelperServiceException se) {
3633
          result.se = se;
3634
        }
3635
        return result;
3636
      }
3637
    }
3638
 
3639
    private static class getUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSmsInfo_args> {
3640
      public getUserSmsInfo() {
3641
        super("getUserSmsInfo");
3642
      }
3643
 
3644
      protected getUserSmsInfo_args getEmptyArgsInstance() {
3645
        return new getUserSmsInfo_args();
3646
      }
3647
 
3648
      protected getUserSmsInfo_result getResult(I iface, getUserSmsInfo_args args) throws org.apache.thrift.TException {
3649
        getUserSmsInfo_result result = new getUserSmsInfo_result();
3650
        try {
3651
          result.success = iface.getUserSmsInfo(args.userId);
3652
        } catch (HelperServiceException se) {
3653
          result.se = se;
3654
        }
3655
        return result;
3656
      }
3657
    }
3658
 
3659
    private static class getAllUsersSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsersSmsInfo_args> {
3660
      public getAllUsersSmsInfo() {
3661
        super("getAllUsersSmsInfo");
3662
      }
3663
 
3664
      protected getAllUsersSmsInfo_args getEmptyArgsInstance() {
3665
        return new getAllUsersSmsInfo_args();
3666
      }
3667
 
3668
      protected getAllUsersSmsInfo_result getResult(I iface, getAllUsersSmsInfo_args args) throws org.apache.thrift.TException {
3669
        getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();
3670
        try {
3671
          result.success = iface.getAllUsersSmsInfo(args.dndStatus, args.smsSubscribed);
3672
        } catch (HelperServiceException se) {
3673
          result.se = se;
3674
        }
3675
        return result;
3676
      }
3677
    }
3678
 
3679
    private static class listSmsToGetDeliveryInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listSmsToGetDeliveryInfo_args> {
3680
      public listSmsToGetDeliveryInfo() {
3681
        super("listSmsToGetDeliveryInfo");
3682
      }
3683
 
3684
      protected listSmsToGetDeliveryInfo_args getEmptyArgsInstance() {
3685
        return new listSmsToGetDeliveryInfo_args();
3686
      }
3687
 
3688
      protected listSmsToGetDeliveryInfo_result getResult(I iface, listSmsToGetDeliveryInfo_args args) throws org.apache.thrift.TException {
3689
        listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();
3690
        try {
3691
          result.success = iface.listSmsToGetDeliveryInfo();
3692
        } catch (HelperServiceException se) {
3693
          result.se = se;
3694
        }
3695
        return result;
3696
      }
3697
    }
3698
 
3699
    private static class markMessagesAsSentToOperator<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSentToOperator_args> {
3700
      public markMessagesAsSentToOperator() {
3701
        super("markMessagesAsSentToOperator");
3702
      }
3703
 
3704
      protected markMessagesAsSentToOperator_args getEmptyArgsInstance() {
3705
        return new markMessagesAsSentToOperator_args();
3706
      }
3707
 
3708
      protected markMessagesAsSentToOperator_result getResult(I iface, markMessagesAsSentToOperator_args args) throws org.apache.thrift.TException {
3709
        markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();
3710
        result.success = iface.markMessagesAsSentToOperator(args.userSmsList);
3711
        result.setSuccessIsSet(true);
3712
        return result;
3713
      }
3714
    }
3715
 
3716
    private static class markMessagesAsSubmittedToSmsc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSubmittedToSmsc_args> {
3717
      public markMessagesAsSubmittedToSmsc() {
3718
        super("markMessagesAsSubmittedToSmsc");
3719
      }
3720
 
3721
      protected markMessagesAsSubmittedToSmsc_args getEmptyArgsInstance() {
3722
        return new markMessagesAsSubmittedToSmsc_args();
3723
      }
3724
 
3725
      protected markMessagesAsSubmittedToSmsc_result getResult(I iface, markMessagesAsSubmittedToSmsc_args args) throws org.apache.thrift.TException {
3726
        markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();
3727
        result.success = iface.markMessagesAsSubmittedToSmsc(args.userSmsList);
3728
        result.setSuccessIsSet(true);
3729
        return result;
3730
      }
3731
    }
3732
 
3733
    private static class markMessagesAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSent_args> {
3734
      public markMessagesAsSent() {
3735
        super("markMessagesAsSent");
3736
      }
3737
 
3738
      protected markMessagesAsSent_args getEmptyArgsInstance() {
3739
        return new markMessagesAsSent_args();
3740
      }
3741
 
3742
      protected markMessagesAsSent_result getResult(I iface, markMessagesAsSent_args args) throws org.apache.thrift.TException {
3743
        markMessagesAsSent_result result = new markMessagesAsSent_result();
3744
        result.success = iface.markMessagesAsSent(args.userSmsList);
3745
        result.setSuccessIsSet(true);
3746
        return result;
3747
      }
3748
    }
3749
 
3750
    private static class markMessagesAsRetry<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsRetry_args> {
3751
      public markMessagesAsRetry() {
3752
        super("markMessagesAsRetry");
3753
      }
3754
 
3755
      protected markMessagesAsRetry_args getEmptyArgsInstance() {
3756
        return new markMessagesAsRetry_args();
3757
      }
3758
 
3759
      protected markMessagesAsRetry_result getResult(I iface, markMessagesAsRetry_args args) throws org.apache.thrift.TException {
3760
        markMessagesAsRetry_result result = new markMessagesAsRetry_result();
3761
        result.success = iface.markMessagesAsRetry(args.userSmsList);
3762
        result.setSuccessIsSet(true);
3763
        return result;
3764
      }
3765
    }
3766
 
12696 amit.gupta 3767
    private static class authoriseDealer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authoriseDealer_args> {
3768
      public authoriseDealer() {
3769
        super("authoriseDealer");
3770
      }
3771
 
3772
      protected authoriseDealer_args getEmptyArgsInstance() {
3773
        return new authoriseDealer_args();
3774
      }
3775
 
3776
      protected authoriseDealer_result getResult(I iface, authoriseDealer_args args) throws org.apache.thrift.TException {
3777
        authoriseDealer_result result = new authoriseDealer_result();
3778
        result.success = iface.authoriseDealer(args.dealer);
3779
        return result;
3780
      }
3781
    }
3782
 
13214 kshitij.so 3783
    private static class addCampaignNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCampaignNotification_args> {
3784
      public addCampaignNotification() {
3785
        super("addCampaignNotification");
3786
      }
3787
 
3788
      protected addCampaignNotification_args getEmptyArgsInstance() {
3789
        return new addCampaignNotification_args();
3790
      }
3791
 
3792
      protected addCampaignNotification_result getResult(I iface, addCampaignNotification_args args) throws org.apache.thrift.TException {
3793
        addCampaignNotification_result result = new addCampaignNotification_result();
3794
        result.success = iface.addCampaignNotification(args.email, args.campaignType);
3795
        return result;
3796
      }
3797
    }
3798
 
352 ashish 3799
  }
3800
 
3430 rajveer 3801
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 3803
 
5864 rajveer 3804
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)1);
3430 rajveer 3805
    private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)2);
3806
    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)3);
3807
    private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)4);
3808
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)5);
3809
    private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)6);
5864 rajveer 3810
    private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)7);
3811
    private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);
8020 rajveer 3812
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)9);
1395 varun.gupt 3813
 
5864 rajveer 3814
    private List<String> emailTo; // required
3430 rajveer 3815
    private String emailFrom; // required
3816
    private String subject; // required
3817
    private String body; // required
3818
    private String source; // required
3819
    private String emailType; // required
5864 rajveer 3820
    private List<String> cc; // required
3821
    private List<String> bcc; // required
8020 rajveer 3822
    private long sourceId; // required
1395 varun.gupt 3823
 
3824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 3826
      EMAIL_TO((short)1, "emailTo"),
3827
      EMAIL_FROM((short)2, "emailFrom"),
3828
      SUBJECT((short)3, "subject"),
3829
      BODY((short)4, "body"),
3830
      SOURCE((short)5, "source"),
5864 rajveer 3831
      EMAIL_TYPE((short)6, "emailType"),
3832
      CC((short)7, "cc"),
8020 rajveer 3833
      BCC((short)8, "bcc"),
3834
      SOURCE_ID((short)9, "sourceId");
1395 varun.gupt 3835
 
3836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3837
 
3838
      static {
3839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3840
          byName.put(field.getFieldName(), field);
3841
        }
3842
      }
3843
 
3844
      /**
3845
       * Find the _Fields constant that matches fieldId, or null if its not found.
3846
       */
3847
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3848
        switch(fieldId) {
3849
          case 1: // EMAIL_TO
3850
            return EMAIL_TO;
3851
          case 2: // EMAIL_FROM
3852
            return EMAIL_FROM;
3853
          case 3: // SUBJECT
3854
            return SUBJECT;
3855
          case 4: // BODY
3856
            return BODY;
3857
          case 5: // SOURCE
3858
            return SOURCE;
3859
          case 6: // EMAIL_TYPE
3860
            return EMAIL_TYPE;
5864 rajveer 3861
          case 7: // CC
3862
            return CC;
3863
          case 8: // BCC
3864
            return BCC;
8020 rajveer 3865
          case 9: // SOURCE_ID
3866
            return SOURCE_ID;
3430 rajveer 3867
          default:
3868
            return null;
3869
        }
1395 varun.gupt 3870
      }
3871
 
3872
      /**
3873
       * Find the _Fields constant that matches fieldId, throwing an exception
3874
       * if it is not found.
3875
       */
3876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3877
        _Fields fields = findByThriftId(fieldId);
3878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3879
        return fields;
3880
      }
3881
 
3882
      /**
3883
       * Find the _Fields constant that matches name, or null if its not found.
3884
       */
3885
      public static _Fields findByName(String name) {
3886
        return byName.get(name);
3887
      }
3888
 
3889
      private final short _thriftId;
3890
      private final String _fieldName;
3891
 
3892
      _Fields(short thriftId, String fieldName) {
3893
        _thriftId = thriftId;
3894
        _fieldName = fieldName;
3895
      }
3896
 
3897
      public short getThriftFieldId() {
3898
        return _thriftId;
3899
      }
3900
 
3901
      public String getFieldName() {
3902
        return _fieldName;
3903
      }
3904
    }
3905
 
3906
    // isset id assignments
8020 rajveer 3907
    private static final int __SOURCEID_ISSET_ID = 0;
3908
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3909
 
3430 rajveer 3910
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3911
    static {
3430 rajveer 3912
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3913
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 3914
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3915
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 3916
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3917
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3918
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3920
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3922
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3924
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 3926
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3927
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3928
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3929
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3930
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3931
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8020 rajveer 3932
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3933
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 3934
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3935
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 3936
    }
3937
 
3938
    public saveUserEmailForSending_args() {
3939
    }
3940
 
3941
    public saveUserEmailForSending_args(
5864 rajveer 3942
      List<String> emailTo,
1395 varun.gupt 3943
      String emailFrom,
3944
      String subject,
3945
      String body,
3946
      String source,
5864 rajveer 3947
      String emailType,
3948
      List<String> cc,
8020 rajveer 3949
      List<String> bcc,
3950
      long sourceId)
1395 varun.gupt 3951
    {
3952
      this();
3953
      this.emailTo = emailTo;
3954
      this.emailFrom = emailFrom;
3955
      this.subject = subject;
3956
      this.body = body;
3957
      this.source = source;
3958
      this.emailType = emailType;
5864 rajveer 3959
      this.cc = cc;
3960
      this.bcc = bcc;
8020 rajveer 3961
      this.sourceId = sourceId;
3962
      setSourceIdIsSet(true);
1395 varun.gupt 3963
    }
3964
 
3965
    /**
3966
     * Performs a deep copy on <i>other</i>.
3967
     */
3968
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
8020 rajveer 3969
      __isset_bit_vector.clear();
3970
      __isset_bit_vector.or(other.__isset_bit_vector);
1395 varun.gupt 3971
      if (other.isSetEmailTo()) {
5864 rajveer 3972
        List<String> __this__emailTo = new ArrayList<String>();
3973
        for (String other_element : other.emailTo) {
3974
          __this__emailTo.add(other_element);
3975
        }
3976
        this.emailTo = __this__emailTo;
1395 varun.gupt 3977
      }
3978
      if (other.isSetEmailFrom()) {
3979
        this.emailFrom = other.emailFrom;
3980
      }
3981
      if (other.isSetSubject()) {
3982
        this.subject = other.subject;
3983
      }
3984
      if (other.isSetBody()) {
3985
        this.body = other.body;
3986
      }
3987
      if (other.isSetSource()) {
3988
        this.source = other.source;
3989
      }
3990
      if (other.isSetEmailType()) {
3991
        this.emailType = other.emailType;
3992
      }
5864 rajveer 3993
      if (other.isSetCc()) {
3994
        List<String> __this__cc = new ArrayList<String>();
3995
        for (String other_element : other.cc) {
3996
          __this__cc.add(other_element);
3997
        }
3998
        this.cc = __this__cc;
3999
      }
4000
      if (other.isSetBcc()) {
4001
        List<String> __this__bcc = new ArrayList<String>();
4002
        for (String other_element : other.bcc) {
4003
          __this__bcc.add(other_element);
4004
        }
4005
        this.bcc = __this__bcc;
4006
      }
8020 rajveer 4007
      this.sourceId = other.sourceId;
1395 varun.gupt 4008
    }
4009
 
4010
    public saveUserEmailForSending_args deepCopy() {
4011
      return new saveUserEmailForSending_args(this);
4012
    }
4013
 
3430 rajveer 4014
    @Override
4015
    public void clear() {
4016
      this.emailTo = null;
4017
      this.emailFrom = null;
4018
      this.subject = null;
4019
      this.body = null;
4020
      this.source = null;
4021
      this.emailType = null;
5864 rajveer 4022
      this.cc = null;
4023
      this.bcc = null;
8020 rajveer 4024
      setSourceIdIsSet(false);
4025
      this.sourceId = 0;
1395 varun.gupt 4026
    }
4027
 
5864 rajveer 4028
    public int getEmailToSize() {
4029
      return (this.emailTo == null) ? 0 : this.emailTo.size();
4030
    }
4031
 
4032
    public java.util.Iterator<String> getEmailToIterator() {
4033
      return (this.emailTo == null) ? null : this.emailTo.iterator();
4034
    }
4035
 
4036
    public void addToEmailTo(String elem) {
4037
      if (this.emailTo == null) {
4038
        this.emailTo = new ArrayList<String>();
4039
      }
4040
      this.emailTo.add(elem);
4041
    }
4042
 
4043
    public List<String> getEmailTo() {
1395 varun.gupt 4044
      return this.emailTo;
4045
    }
4046
 
5864 rajveer 4047
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 4048
      this.emailTo = emailTo;
4049
    }
4050
 
4051
    public void unsetEmailTo() {
4052
      this.emailTo = null;
4053
    }
4054
 
3430 rajveer 4055
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4056
    public boolean isSetEmailTo() {
4057
      return this.emailTo != null;
4058
    }
4059
 
4060
    public void setEmailToIsSet(boolean value) {
4061
      if (!value) {
4062
        this.emailTo = null;
4063
      }
4064
    }
4065
 
4066
    public String getEmailFrom() {
4067
      return this.emailFrom;
4068
    }
4069
 
3430 rajveer 4070
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 4071
      this.emailFrom = emailFrom;
4072
    }
4073
 
4074
    public void unsetEmailFrom() {
4075
      this.emailFrom = null;
4076
    }
4077
 
3430 rajveer 4078
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4079
    public boolean isSetEmailFrom() {
4080
      return this.emailFrom != null;
4081
    }
4082
 
4083
    public void setEmailFromIsSet(boolean value) {
4084
      if (!value) {
4085
        this.emailFrom = null;
4086
      }
4087
    }
4088
 
4089
    public String getSubject() {
4090
      return this.subject;
4091
    }
4092
 
3430 rajveer 4093
    public void setSubject(String subject) {
1395 varun.gupt 4094
      this.subject = subject;
4095
    }
4096
 
4097
    public void unsetSubject() {
4098
      this.subject = null;
4099
    }
4100
 
3430 rajveer 4101
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4102
    public boolean isSetSubject() {
4103
      return this.subject != null;
4104
    }
4105
 
4106
    public void setSubjectIsSet(boolean value) {
4107
      if (!value) {
4108
        this.subject = null;
4109
      }
4110
    }
4111
 
4112
    public String getBody() {
4113
      return this.body;
4114
    }
4115
 
3430 rajveer 4116
    public void setBody(String body) {
1395 varun.gupt 4117
      this.body = body;
4118
    }
4119
 
4120
    public void unsetBody() {
4121
      this.body = null;
4122
    }
4123
 
3430 rajveer 4124
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4125
    public boolean isSetBody() {
4126
      return this.body != null;
4127
    }
4128
 
4129
    public void setBodyIsSet(boolean value) {
4130
      if (!value) {
4131
        this.body = null;
4132
      }
4133
    }
4134
 
4135
    public String getSource() {
4136
      return this.source;
4137
    }
4138
 
3430 rajveer 4139
    public void setSource(String source) {
1395 varun.gupt 4140
      this.source = source;
4141
    }
4142
 
4143
    public void unsetSource() {
4144
      this.source = null;
4145
    }
4146
 
3430 rajveer 4147
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4148
    public boolean isSetSource() {
4149
      return this.source != null;
4150
    }
4151
 
4152
    public void setSourceIsSet(boolean value) {
4153
      if (!value) {
4154
        this.source = null;
4155
      }
4156
    }
4157
 
4158
    public String getEmailType() {
4159
      return this.emailType;
4160
    }
4161
 
3430 rajveer 4162
    public void setEmailType(String emailType) {
1395 varun.gupt 4163
      this.emailType = emailType;
4164
    }
4165
 
4166
    public void unsetEmailType() {
4167
      this.emailType = null;
4168
    }
4169
 
3430 rajveer 4170
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4171
    public boolean isSetEmailType() {
4172
      return this.emailType != null;
4173
    }
4174
 
4175
    public void setEmailTypeIsSet(boolean value) {
4176
      if (!value) {
4177
        this.emailType = null;
4178
      }
4179
    }
4180
 
5864 rajveer 4181
    public int getCcSize() {
4182
      return (this.cc == null) ? 0 : this.cc.size();
4183
    }
4184
 
4185
    public java.util.Iterator<String> getCcIterator() {
4186
      return (this.cc == null) ? null : this.cc.iterator();
4187
    }
4188
 
4189
    public void addToCc(String elem) {
4190
      if (this.cc == null) {
4191
        this.cc = new ArrayList<String>();
4192
      }
4193
      this.cc.add(elem);
4194
    }
4195
 
4196
    public List<String> getCc() {
4197
      return this.cc;
4198
    }
4199
 
4200
    public void setCc(List<String> cc) {
4201
      this.cc = cc;
4202
    }
4203
 
4204
    public void unsetCc() {
4205
      this.cc = null;
4206
    }
4207
 
4208
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
4209
    public boolean isSetCc() {
4210
      return this.cc != null;
4211
    }
4212
 
4213
    public void setCcIsSet(boolean value) {
4214
      if (!value) {
4215
        this.cc = null;
4216
      }
4217
    }
4218
 
4219
    public int getBccSize() {
4220
      return (this.bcc == null) ? 0 : this.bcc.size();
4221
    }
4222
 
4223
    public java.util.Iterator<String> getBccIterator() {
4224
      return (this.bcc == null) ? null : this.bcc.iterator();
4225
    }
4226
 
4227
    public void addToBcc(String elem) {
4228
      if (this.bcc == null) {
4229
        this.bcc = new ArrayList<String>();
4230
      }
4231
      this.bcc.add(elem);
4232
    }
4233
 
4234
    public List<String> getBcc() {
4235
      return this.bcc;
4236
    }
4237
 
4238
    public void setBcc(List<String> bcc) {
4239
      this.bcc = bcc;
4240
    }
4241
 
4242
    public void unsetBcc() {
4243
      this.bcc = null;
4244
    }
4245
 
4246
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
4247
    public boolean isSetBcc() {
4248
      return this.bcc != null;
4249
    }
4250
 
4251
    public void setBccIsSet(boolean value) {
4252
      if (!value) {
4253
        this.bcc = null;
4254
      }
4255
    }
4256
 
8020 rajveer 4257
    public long getSourceId() {
4258
      return this.sourceId;
4259
    }
4260
 
4261
    public void setSourceId(long sourceId) {
4262
      this.sourceId = sourceId;
4263
      setSourceIdIsSet(true);
4264
    }
4265
 
4266
    public void unsetSourceId() {
4267
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
4268
    }
4269
 
4270
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
4271
    public boolean isSetSourceId() {
4272
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
4273
    }
4274
 
4275
    public void setSourceIdIsSet(boolean value) {
4276
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
4277
    }
4278
 
1395 varun.gupt 4279
    public void setFieldValue(_Fields field, Object value) {
4280
      switch (field) {
4281
      case EMAIL_TO:
4282
        if (value == null) {
4283
          unsetEmailTo();
4284
        } else {
5864 rajveer 4285
          setEmailTo((List<String>)value);
1395 varun.gupt 4286
        }
4287
        break;
4288
 
4289
      case EMAIL_FROM:
4290
        if (value == null) {
4291
          unsetEmailFrom();
4292
        } else {
4293
          setEmailFrom((String)value);
4294
        }
4295
        break;
4296
 
4297
      case SUBJECT:
4298
        if (value == null) {
4299
          unsetSubject();
4300
        } else {
4301
          setSubject((String)value);
4302
        }
4303
        break;
4304
 
4305
      case BODY:
4306
        if (value == null) {
4307
          unsetBody();
4308
        } else {
4309
          setBody((String)value);
4310
        }
4311
        break;
4312
 
4313
      case SOURCE:
4314
        if (value == null) {
4315
          unsetSource();
4316
        } else {
4317
          setSource((String)value);
4318
        }
4319
        break;
4320
 
4321
      case EMAIL_TYPE:
4322
        if (value == null) {
4323
          unsetEmailType();
4324
        } else {
4325
          setEmailType((String)value);
4326
        }
4327
        break;
4328
 
5864 rajveer 4329
      case CC:
4330
        if (value == null) {
4331
          unsetCc();
4332
        } else {
4333
          setCc((List<String>)value);
4334
        }
4335
        break;
4336
 
4337
      case BCC:
4338
        if (value == null) {
4339
          unsetBcc();
4340
        } else {
4341
          setBcc((List<String>)value);
4342
        }
4343
        break;
4344
 
8020 rajveer 4345
      case SOURCE_ID:
4346
        if (value == null) {
4347
          unsetSourceId();
4348
        } else {
4349
          setSourceId((Long)value);
4350
        }
4351
        break;
4352
 
1395 varun.gupt 4353
      }
4354
    }
4355
 
4356
    public Object getFieldValue(_Fields field) {
4357
      switch (field) {
4358
      case EMAIL_TO:
4359
        return getEmailTo();
4360
 
4361
      case EMAIL_FROM:
4362
        return getEmailFrom();
4363
 
4364
      case SUBJECT:
4365
        return getSubject();
4366
 
4367
      case BODY:
4368
        return getBody();
4369
 
4370
      case SOURCE:
4371
        return getSource();
4372
 
4373
      case EMAIL_TYPE:
4374
        return getEmailType();
4375
 
5864 rajveer 4376
      case CC:
4377
        return getCc();
4378
 
4379
      case BCC:
4380
        return getBcc();
4381
 
8020 rajveer 4382
      case SOURCE_ID:
4383
        return Long.valueOf(getSourceId());
4384
 
1395 varun.gupt 4385
      }
4386
      throw new IllegalStateException();
4387
    }
4388
 
3430 rajveer 4389
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4390
    public boolean isSet(_Fields field) {
4391
      if (field == null) {
4392
        throw new IllegalArgumentException();
4393
      }
1395 varun.gupt 4394
 
4395
      switch (field) {
4396
      case EMAIL_TO:
4397
        return isSetEmailTo();
4398
      case EMAIL_FROM:
4399
        return isSetEmailFrom();
4400
      case SUBJECT:
4401
        return isSetSubject();
4402
      case BODY:
4403
        return isSetBody();
4404
      case SOURCE:
4405
        return isSetSource();
4406
      case EMAIL_TYPE:
4407
        return isSetEmailType();
5864 rajveer 4408
      case CC:
4409
        return isSetCc();
4410
      case BCC:
4411
        return isSetBcc();
8020 rajveer 4412
      case SOURCE_ID:
4413
        return isSetSourceId();
1395 varun.gupt 4414
      }
4415
      throw new IllegalStateException();
4416
    }
4417
 
4418
    @Override
4419
    public boolean equals(Object that) {
4420
      if (that == null)
4421
        return false;
4422
      if (that instanceof saveUserEmailForSending_args)
4423
        return this.equals((saveUserEmailForSending_args)that);
4424
      return false;
4425
    }
4426
 
4427
    public boolean equals(saveUserEmailForSending_args that) {
4428
      if (that == null)
4429
        return false;
4430
 
4431
      boolean this_present_emailTo = true && this.isSetEmailTo();
4432
      boolean that_present_emailTo = true && that.isSetEmailTo();
4433
      if (this_present_emailTo || that_present_emailTo) {
4434
        if (!(this_present_emailTo && that_present_emailTo))
4435
          return false;
4436
        if (!this.emailTo.equals(that.emailTo))
4437
          return false;
4438
      }
4439
 
4440
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
4441
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
4442
      if (this_present_emailFrom || that_present_emailFrom) {
4443
        if (!(this_present_emailFrom && that_present_emailFrom))
4444
          return false;
4445
        if (!this.emailFrom.equals(that.emailFrom))
4446
          return false;
4447
      }
4448
 
4449
      boolean this_present_subject = true && this.isSetSubject();
4450
      boolean that_present_subject = true && that.isSetSubject();
4451
      if (this_present_subject || that_present_subject) {
4452
        if (!(this_present_subject && that_present_subject))
4453
          return false;
4454
        if (!this.subject.equals(that.subject))
4455
          return false;
4456
      }
4457
 
4458
      boolean this_present_body = true && this.isSetBody();
4459
      boolean that_present_body = true && that.isSetBody();
4460
      if (this_present_body || that_present_body) {
4461
        if (!(this_present_body && that_present_body))
4462
          return false;
4463
        if (!this.body.equals(that.body))
4464
          return false;
4465
      }
4466
 
4467
      boolean this_present_source = true && this.isSetSource();
4468
      boolean that_present_source = true && that.isSetSource();
4469
      if (this_present_source || that_present_source) {
4470
        if (!(this_present_source && that_present_source))
4471
          return false;
4472
        if (!this.source.equals(that.source))
4473
          return false;
4474
      }
4475
 
4476
      boolean this_present_emailType = true && this.isSetEmailType();
4477
      boolean that_present_emailType = true && that.isSetEmailType();
4478
      if (this_present_emailType || that_present_emailType) {
4479
        if (!(this_present_emailType && that_present_emailType))
4480
          return false;
4481
        if (!this.emailType.equals(that.emailType))
4482
          return false;
4483
      }
4484
 
5864 rajveer 4485
      boolean this_present_cc = true && this.isSetCc();
4486
      boolean that_present_cc = true && that.isSetCc();
4487
      if (this_present_cc || that_present_cc) {
4488
        if (!(this_present_cc && that_present_cc))
4489
          return false;
4490
        if (!this.cc.equals(that.cc))
4491
          return false;
4492
      }
4493
 
4494
      boolean this_present_bcc = true && this.isSetBcc();
4495
      boolean that_present_bcc = true && that.isSetBcc();
4496
      if (this_present_bcc || that_present_bcc) {
4497
        if (!(this_present_bcc && that_present_bcc))
4498
          return false;
4499
        if (!this.bcc.equals(that.bcc))
4500
          return false;
4501
      }
4502
 
8020 rajveer 4503
      boolean this_present_sourceId = true;
4504
      boolean that_present_sourceId = true;
4505
      if (this_present_sourceId || that_present_sourceId) {
4506
        if (!(this_present_sourceId && that_present_sourceId))
4507
          return false;
4508
        if (this.sourceId != that.sourceId)
4509
          return false;
4510
      }
4511
 
1395 varun.gupt 4512
      return true;
4513
    }
4514
 
4515
    @Override
4516
    public int hashCode() {
4517
      return 0;
4518
    }
4519
 
4520
    public int compareTo(saveUserEmailForSending_args other) {
4521
      if (!getClass().equals(other.getClass())) {
4522
        return getClass().getName().compareTo(other.getClass().getName());
4523
      }
4524
 
4525
      int lastComparison = 0;
4526
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
4527
 
3430 rajveer 4528
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 4529
      if (lastComparison != 0) {
4530
        return lastComparison;
4531
      }
3430 rajveer 4532
      if (isSetEmailTo()) {
4533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
4534
        if (lastComparison != 0) {
4535
          return lastComparison;
4536
        }
1395 varun.gupt 4537
      }
3430 rajveer 4538
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 4539
      if (lastComparison != 0) {
4540
        return lastComparison;
4541
      }
3430 rajveer 4542
      if (isSetEmailFrom()) {
4543
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
4544
        if (lastComparison != 0) {
4545
          return lastComparison;
4546
        }
1395 varun.gupt 4547
      }
3430 rajveer 4548
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 4549
      if (lastComparison != 0) {
4550
        return lastComparison;
4551
      }
3430 rajveer 4552
      if (isSetSubject()) {
4553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
4554
        if (lastComparison != 0) {
4555
          return lastComparison;
4556
        }
1395 varun.gupt 4557
      }
3430 rajveer 4558
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 4559
      if (lastComparison != 0) {
4560
        return lastComparison;
4561
      }
3430 rajveer 4562
      if (isSetBody()) {
4563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
4564
        if (lastComparison != 0) {
4565
          return lastComparison;
4566
        }
1395 varun.gupt 4567
      }
3430 rajveer 4568
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 4569
      if (lastComparison != 0) {
4570
        return lastComparison;
4571
      }
3430 rajveer 4572
      if (isSetSource()) {
4573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
4574
        if (lastComparison != 0) {
4575
          return lastComparison;
4576
        }
1395 varun.gupt 4577
      }
3430 rajveer 4578
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 4579
      if (lastComparison != 0) {
4580
        return lastComparison;
4581
      }
3430 rajveer 4582
      if (isSetEmailType()) {
4583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
4584
        if (lastComparison != 0) {
4585
          return lastComparison;
4586
        }
1395 varun.gupt 4587
      }
5864 rajveer 4588
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
4589
      if (lastComparison != 0) {
4590
        return lastComparison;
4591
      }
4592
      if (isSetCc()) {
4593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
4594
        if (lastComparison != 0) {
4595
          return lastComparison;
4596
        }
4597
      }
4598
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
4599
      if (lastComparison != 0) {
4600
        return lastComparison;
4601
      }
4602
      if (isSetBcc()) {
4603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
4604
        if (lastComparison != 0) {
4605
          return lastComparison;
4606
        }
4607
      }
8020 rajveer 4608
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
4609
      if (lastComparison != 0) {
4610
        return lastComparison;
4611
      }
4612
      if (isSetSourceId()) {
4613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
4614
        if (lastComparison != 0) {
4615
          return lastComparison;
4616
        }
4617
      }
1395 varun.gupt 4618
      return 0;
4619
    }
4620
 
3430 rajveer 4621
    public _Fields fieldForId(int fieldId) {
4622
      return _Fields.findByThriftId(fieldId);
4623
    }
4624
 
4625
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4626
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 4627
      iprot.readStructBegin();
4628
      while (true)
4629
      {
4630
        field = iprot.readFieldBegin();
3430 rajveer 4631
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 4632
          break;
4633
        }
3430 rajveer 4634
        switch (field.id) {
4635
          case 1: // EMAIL_TO
5864 rajveer 4636
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4637
              {
4638
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
4639
                this.emailTo = new ArrayList<String>(_list20.size);
4640
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
4641
                {
4642
                  String _elem22; // required
4643
                  _elem22 = iprot.readString();
4644
                  this.emailTo.add(_elem22);
4645
                }
4646
                iprot.readListEnd();
4647
              }
3430 rajveer 4648
            } else { 
4649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4650
            }
4651
            break;
4652
          case 2: // EMAIL_FROM
4653
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4654
              this.emailFrom = iprot.readString();
4655
            } else { 
4656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4657
            }
4658
            break;
4659
          case 3: // SUBJECT
4660
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4661
              this.subject = iprot.readString();
4662
            } else { 
4663
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4664
            }
4665
            break;
4666
          case 4: // BODY
4667
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4668
              this.body = iprot.readString();
4669
            } else { 
4670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4671
            }
4672
            break;
4673
          case 5: // SOURCE
4674
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4675
              this.source = iprot.readString();
4676
            } else { 
4677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4678
            }
4679
            break;
4680
          case 6: // EMAIL_TYPE
4681
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4682
              this.emailType = iprot.readString();
4683
            } else { 
4684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4685
            }
4686
            break;
5864 rajveer 4687
          case 7: // CC
4688
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4689
              {
4690
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
4691
                this.cc = new ArrayList<String>(_list23.size);
4692
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
4693
                {
4694
                  String _elem25; // required
4695
                  _elem25 = iprot.readString();
4696
                  this.cc.add(_elem25);
4697
                }
4698
                iprot.readListEnd();
4699
              }
4700
            } else { 
4701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4702
            }
4703
            break;
4704
          case 8: // BCC
4705
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4706
              {
4707
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
4708
                this.bcc = new ArrayList<String>(_list26.size);
4709
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
4710
                {
4711
                  String _elem28; // required
4712
                  _elem28 = iprot.readString();
4713
                  this.bcc.add(_elem28);
4714
                }
4715
                iprot.readListEnd();
4716
              }
4717
            } else { 
4718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4719
            }
4720
            break;
8020 rajveer 4721
          case 9: // SOURCE_ID
4722
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4723
              this.sourceId = iprot.readI64();
4724
              setSourceIdIsSet(true);
4725
            } else { 
4726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4727
            }
4728
            break;
3430 rajveer 4729
          default:
4730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 4731
        }
3430 rajveer 4732
        iprot.readFieldEnd();
1395 varun.gupt 4733
      }
4734
      iprot.readStructEnd();
4735
      validate();
4736
    }
4737
 
3430 rajveer 4738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 4739
      validate();
4740
 
4741
      oprot.writeStructBegin(STRUCT_DESC);
4742
      if (this.emailTo != null) {
4743
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 4744
        {
4745
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
4746
          for (String _iter29 : this.emailTo)
4747
          {
4748
            oprot.writeString(_iter29);
4749
          }
4750
          oprot.writeListEnd();
4751
        }
1395 varun.gupt 4752
        oprot.writeFieldEnd();
4753
      }
4754
      if (this.emailFrom != null) {
4755
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
4756
        oprot.writeString(this.emailFrom);
4757
        oprot.writeFieldEnd();
4758
      }
4759
      if (this.subject != null) {
4760
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
4761
        oprot.writeString(this.subject);
4762
        oprot.writeFieldEnd();
4763
      }
4764
      if (this.body != null) {
4765
        oprot.writeFieldBegin(BODY_FIELD_DESC);
4766
        oprot.writeString(this.body);
4767
        oprot.writeFieldEnd();
4768
      }
4769
      if (this.source != null) {
4770
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
4771
        oprot.writeString(this.source);
4772
        oprot.writeFieldEnd();
4773
      }
4774
      if (this.emailType != null) {
4775
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
4776
        oprot.writeString(this.emailType);
4777
        oprot.writeFieldEnd();
4778
      }
5864 rajveer 4779
      if (this.cc != null) {
4780
        oprot.writeFieldBegin(CC_FIELD_DESC);
4781
        {
4782
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
4783
          for (String _iter30 : this.cc)
4784
          {
4785
            oprot.writeString(_iter30);
4786
          }
4787
          oprot.writeListEnd();
4788
        }
4789
        oprot.writeFieldEnd();
4790
      }
4791
      if (this.bcc != null) {
4792
        oprot.writeFieldBegin(BCC_FIELD_DESC);
4793
        {
4794
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
4795
          for (String _iter31 : this.bcc)
4796
          {
4797
            oprot.writeString(_iter31);
4798
          }
4799
          oprot.writeListEnd();
4800
        }
4801
        oprot.writeFieldEnd();
4802
      }
8020 rajveer 4803
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
4804
      oprot.writeI64(this.sourceId);
4805
      oprot.writeFieldEnd();
1395 varun.gupt 4806
      oprot.writeFieldStop();
4807
      oprot.writeStructEnd();
4808
    }
4809
 
4810
    @Override
4811
    public String toString() {
4812
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
4813
      boolean first = true;
4814
 
4815
      sb.append("emailTo:");
4816
      if (this.emailTo == null) {
4817
        sb.append("null");
4818
      } else {
4819
        sb.append(this.emailTo);
4820
      }
4821
      first = false;
4822
      if (!first) sb.append(", ");
4823
      sb.append("emailFrom:");
4824
      if (this.emailFrom == null) {
4825
        sb.append("null");
4826
      } else {
4827
        sb.append(this.emailFrom);
4828
      }
4829
      first = false;
4830
      if (!first) sb.append(", ");
4831
      sb.append("subject:");
4832
      if (this.subject == null) {
4833
        sb.append("null");
4834
      } else {
4835
        sb.append(this.subject);
4836
      }
4837
      first = false;
4838
      if (!first) sb.append(", ");
4839
      sb.append("body:");
4840
      if (this.body == null) {
4841
        sb.append("null");
4842
      } else {
4843
        sb.append(this.body);
4844
      }
4845
      first = false;
4846
      if (!first) sb.append(", ");
4847
      sb.append("source:");
4848
      if (this.source == null) {
4849
        sb.append("null");
4850
      } else {
4851
        sb.append(this.source);
4852
      }
4853
      first = false;
4854
      if (!first) sb.append(", ");
4855
      sb.append("emailType:");
4856
      if (this.emailType == null) {
4857
        sb.append("null");
4858
      } else {
4859
        sb.append(this.emailType);
4860
      }
4861
      first = false;
5864 rajveer 4862
      if (!first) sb.append(", ");
4863
      sb.append("cc:");
4864
      if (this.cc == null) {
4865
        sb.append("null");
4866
      } else {
4867
        sb.append(this.cc);
4868
      }
4869
      first = false;
4870
      if (!first) sb.append(", ");
4871
      sb.append("bcc:");
4872
      if (this.bcc == null) {
4873
        sb.append("null");
4874
      } else {
4875
        sb.append(this.bcc);
4876
      }
4877
      first = false;
8020 rajveer 4878
      if (!first) sb.append(", ");
4879
      sb.append("sourceId:");
4880
      sb.append(this.sourceId);
4881
      first = false;
1395 varun.gupt 4882
      sb.append(")");
4883
      return sb.toString();
4884
    }
4885
 
3430 rajveer 4886
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 4887
      // check for required fields
4888
    }
4889
 
3430 rajveer 4890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4891
      try {
4892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4893
      } catch (org.apache.thrift.TException te) {
4894
        throw new java.io.IOException(te);
4895
      }
4896
    }
4897
 
4898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4899
      try {
13214 kshitij.so 4900
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4901
        __isset_bit_vector = new BitSet(1);
3430 rajveer 4902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4903
      } catch (org.apache.thrift.TException te) {
4904
        throw new java.io.IOException(te);
4905
      }
4906
    }
4907
 
1395 varun.gupt 4908
  }
4909
 
3430 rajveer 4910
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
4911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 4912
 
3430 rajveer 4913
    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);
4914
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1395 varun.gupt 4915
 
3430 rajveer 4916
    private long success; // required
4917
    private HelperServiceException se; // required
1395 varun.gupt 4918
 
4919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 4921
      SUCCESS((short)0, "success"),
1395 varun.gupt 4922
      SE((short)1, "se");
4923
 
4924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4925
 
4926
      static {
4927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4928
          byName.put(field.getFieldName(), field);
4929
        }
4930
      }
4931
 
4932
      /**
4933
       * Find the _Fields constant that matches fieldId, or null if its not found.
4934
       */
4935
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4936
        switch(fieldId) {
4937
          case 0: // SUCCESS
4938
            return SUCCESS;
4939
          case 1: // SE
4940
            return SE;
4941
          default:
4942
            return null;
4943
        }
1395 varun.gupt 4944
      }
4945
 
4946
      /**
4947
       * Find the _Fields constant that matches fieldId, throwing an exception
4948
       * if it is not found.
4949
       */
4950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4951
        _Fields fields = findByThriftId(fieldId);
4952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4953
        return fields;
4954
      }
4955
 
4956
      /**
4957
       * Find the _Fields constant that matches name, or null if its not found.
4958
       */
4959
      public static _Fields findByName(String name) {
4960
        return byName.get(name);
4961
      }
4962
 
4963
      private final short _thriftId;
4964
      private final String _fieldName;
4965
 
4966
      _Fields(short thriftId, String fieldName) {
4967
        _thriftId = thriftId;
4968
        _fieldName = fieldName;
4969
      }
4970
 
4971
      public short getThriftFieldId() {
4972
        return _thriftId;
4973
      }
4974
 
4975
      public String getFieldName() {
4976
        return _fieldName;
4977
      }
4978
    }
4979
 
4980
    // isset id assignments
3206 mandeep.dh 4981
    private static final int __SUCCESS_ISSET_ID = 0;
4982
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 4983
 
3430 rajveer 4984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 4985
    static {
3430 rajveer 4986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4987
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4989
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 4993
    }
4994
 
4995
    public saveUserEmailForSending_result() {
4996
    }
4997
 
4998
    public saveUserEmailForSending_result(
3206 mandeep.dh 4999
      long success,
1395 varun.gupt 5000
      HelperServiceException se)
5001
    {
5002
      this();
3206 mandeep.dh 5003
      this.success = success;
5004
      setSuccessIsSet(true);
1395 varun.gupt 5005
      this.se = se;
5006
    }
5007
 
5008
    /**
5009
     * Performs a deep copy on <i>other</i>.
5010
     */
5011
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 5012
      __isset_bit_vector.clear();
5013
      __isset_bit_vector.or(other.__isset_bit_vector);
5014
      this.success = other.success;
1395 varun.gupt 5015
      if (other.isSetSe()) {
5016
        this.se = new HelperServiceException(other.se);
5017
      }
5018
    }
5019
 
5020
    public saveUserEmailForSending_result deepCopy() {
5021
      return new saveUserEmailForSending_result(this);
5022
    }
5023
 
3430 rajveer 5024
    @Override
5025
    public void clear() {
5026
      setSuccessIsSet(false);
5027
      this.success = 0;
5028
      this.se = null;
1395 varun.gupt 5029
    }
5030
 
3206 mandeep.dh 5031
    public long getSuccess() {
5032
      return this.success;
5033
    }
5034
 
3430 rajveer 5035
    public void setSuccess(long success) {
3206 mandeep.dh 5036
      this.success = success;
5037
      setSuccessIsSet(true);
5038
    }
5039
 
5040
    public void unsetSuccess() {
5041
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5042
    }
5043
 
3430 rajveer 5044
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 5045
    public boolean isSetSuccess() {
5046
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5047
    }
5048
 
5049
    public void setSuccessIsSet(boolean value) {
5050
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5051
    }
5052
 
1395 varun.gupt 5053
    public HelperServiceException getSe() {
5054
      return this.se;
5055
    }
5056
 
3430 rajveer 5057
    public void setSe(HelperServiceException se) {
1395 varun.gupt 5058
      this.se = se;
5059
    }
5060
 
5061
    public void unsetSe() {
5062
      this.se = null;
5063
    }
5064
 
3430 rajveer 5065
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 5066
    public boolean isSetSe() {
5067
      return this.se != null;
5068
    }
5069
 
5070
    public void setSeIsSet(boolean value) {
5071
      if (!value) {
5072
        this.se = null;
5073
      }
5074
    }
5075
 
5076
    public void setFieldValue(_Fields field, Object value) {
5077
      switch (field) {
3206 mandeep.dh 5078
      case SUCCESS:
5079
        if (value == null) {
5080
          unsetSuccess();
5081
        } else {
5082
          setSuccess((Long)value);
5083
        }
5084
        break;
5085
 
1395 varun.gupt 5086
      case SE:
5087
        if (value == null) {
5088
          unsetSe();
5089
        } else {
5090
          setSe((HelperServiceException)value);
5091
        }
5092
        break;
5093
 
5094
      }
5095
    }
5096
 
5097
    public Object getFieldValue(_Fields field) {
5098
      switch (field) {
3206 mandeep.dh 5099
      case SUCCESS:
3430 rajveer 5100
        return Long.valueOf(getSuccess());
3206 mandeep.dh 5101
 
1395 varun.gupt 5102
      case SE:
5103
        return getSe();
5104
 
5105
      }
5106
      throw new IllegalStateException();
5107
    }
5108
 
3430 rajveer 5109
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5110
    public boolean isSet(_Fields field) {
5111
      if (field == null) {
5112
        throw new IllegalArgumentException();
5113
      }
1395 varun.gupt 5114
 
5115
      switch (field) {
3206 mandeep.dh 5116
      case SUCCESS:
5117
        return isSetSuccess();
1395 varun.gupt 5118
      case SE:
5119
        return isSetSe();
5120
      }
5121
      throw new IllegalStateException();
5122
    }
5123
 
5124
    @Override
5125
    public boolean equals(Object that) {
5126
      if (that == null)
5127
        return false;
5128
      if (that instanceof saveUserEmailForSending_result)
5129
        return this.equals((saveUserEmailForSending_result)that);
5130
      return false;
5131
    }
5132
 
5133
    public boolean equals(saveUserEmailForSending_result that) {
5134
      if (that == null)
5135
        return false;
5136
 
3206 mandeep.dh 5137
      boolean this_present_success = true;
5138
      boolean that_present_success = true;
5139
      if (this_present_success || that_present_success) {
5140
        if (!(this_present_success && that_present_success))
5141
          return false;
5142
        if (this.success != that.success)
5143
          return false;
5144
      }
5145
 
1395 varun.gupt 5146
      boolean this_present_se = true && this.isSetSe();
5147
      boolean that_present_se = true && that.isSetSe();
5148
      if (this_present_se || that_present_se) {
5149
        if (!(this_present_se && that_present_se))
5150
          return false;
5151
        if (!this.se.equals(that.se))
5152
          return false;
5153
      }
5154
 
5155
      return true;
5156
    }
5157
 
5158
    @Override
5159
    public int hashCode() {
5160
      return 0;
5161
    }
5162
 
5163
    public int compareTo(saveUserEmailForSending_result other) {
5164
      if (!getClass().equals(other.getClass())) {
5165
        return getClass().getName().compareTo(other.getClass().getName());
5166
      }
5167
 
5168
      int lastComparison = 0;
5169
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
5170
 
3430 rajveer 5171
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 5172
      if (lastComparison != 0) {
5173
        return lastComparison;
5174
      }
3430 rajveer 5175
      if (isSetSuccess()) {
5176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5177
        if (lastComparison != 0) {
5178
          return lastComparison;
5179
        }
3206 mandeep.dh 5180
      }
3430 rajveer 5181
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 5182
      if (lastComparison != 0) {
5183
        return lastComparison;
5184
      }
3430 rajveer 5185
      if (isSetSe()) {
5186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5187
        if (lastComparison != 0) {
5188
          return lastComparison;
5189
        }
1395 varun.gupt 5190
      }
5191
      return 0;
5192
    }
5193
 
3430 rajveer 5194
    public _Fields fieldForId(int fieldId) {
5195
      return _Fields.findByThriftId(fieldId);
5196
    }
5197
 
5198
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5199
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 5200
      iprot.readStructBegin();
5201
      while (true)
5202
      {
5203
        field = iprot.readFieldBegin();
3430 rajveer 5204
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 5205
          break;
5206
        }
3430 rajveer 5207
        switch (field.id) {
5208
          case 0: // SUCCESS
5209
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5210
              this.success = iprot.readI64();
5211
              setSuccessIsSet(true);
5212
            } else { 
5213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5214
            }
5215
            break;
5216
          case 1: // SE
5217
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5218
              this.se = new HelperServiceException();
5219
              this.se.read(iprot);
5220
            } else { 
5221
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5222
            }
5223
            break;
5224
          default:
5225
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 5226
        }
3430 rajveer 5227
        iprot.readFieldEnd();
1395 varun.gupt 5228
      }
5229
      iprot.readStructEnd();
5230
      validate();
5231
    }
5232
 
3430 rajveer 5233
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 5234
      oprot.writeStructBegin(STRUCT_DESC);
5235
 
3206 mandeep.dh 5236
      if (this.isSetSuccess()) {
5237
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5238
        oprot.writeI64(this.success);
5239
        oprot.writeFieldEnd();
5240
      } else if (this.isSetSe()) {
1395 varun.gupt 5241
        oprot.writeFieldBegin(SE_FIELD_DESC);
5242
        this.se.write(oprot);
5243
        oprot.writeFieldEnd();
5244
      }
5245
      oprot.writeFieldStop();
5246
      oprot.writeStructEnd();
5247
    }
5248
 
5249
    @Override
5250
    public String toString() {
5251
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
5252
      boolean first = true;
5253
 
3206 mandeep.dh 5254
      sb.append("success:");
5255
      sb.append(this.success);
5256
      first = false;
5257
      if (!first) sb.append(", ");
1395 varun.gupt 5258
      sb.append("se:");
5259
      if (this.se == null) {
5260
        sb.append("null");
5261
      } else {
5262
        sb.append(this.se);
5263
      }
5264
      first = false;
5265
      sb.append(")");
5266
      return sb.toString();
5267
    }
5268
 
3430 rajveer 5269
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 5270
      // check for required fields
5271
    }
5272
 
3430 rajveer 5273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5274
      try {
5275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5276
      } catch (org.apache.thrift.TException te) {
5277
        throw new java.io.IOException(te);
5278
      }
5279
    }
5280
 
5281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5282
      try {
5283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5284
      } catch (org.apache.thrift.TException te) {
5285
        throw new java.io.IOException(te);
5286
      }
5287
    }
5288
 
1395 varun.gupt 5289
  }
5290
 
3430 rajveer 5291
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
5292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 5293
 
5294
 
5295
 
5296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 5298
;
1422 varun.gupt 5299
 
5300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5301
 
5302
      static {
5303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5304
          byName.put(field.getFieldName(), field);
5305
        }
5306
      }
5307
 
5308
      /**
5309
       * Find the _Fields constant that matches fieldId, or null if its not found.
5310
       */
5311
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5312
        switch(fieldId) {
5313
          default:
5314
            return null;
5315
        }
1422 varun.gupt 5316
      }
5317
 
5318
      /**
5319
       * Find the _Fields constant that matches fieldId, throwing an exception
5320
       * if it is not found.
5321
       */
5322
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5323
        _Fields fields = findByThriftId(fieldId);
5324
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5325
        return fields;
5326
      }
5327
 
5328
      /**
5329
       * Find the _Fields constant that matches name, or null if its not found.
5330
       */
5331
      public static _Fields findByName(String name) {
5332
        return byName.get(name);
5333
      }
5334
 
5335
      private final short _thriftId;
5336
      private final String _fieldName;
5337
 
5338
      _Fields(short thriftId, String fieldName) {
5339
        _thriftId = thriftId;
5340
        _fieldName = fieldName;
5341
      }
5342
 
5343
      public short getThriftFieldId() {
5344
        return _thriftId;
5345
      }
5346
 
5347
      public String getFieldName() {
5348
        return _fieldName;
5349
      }
5350
    }
3430 rajveer 5351
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5352
    static {
3430 rajveer 5353
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 5356
    }
5357
 
5358
    public getEmailsToBeSent_args() {
5359
    }
5360
 
5361
    /**
5362
     * Performs a deep copy on <i>other</i>.
5363
     */
5364
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
5365
    }
5366
 
5367
    public getEmailsToBeSent_args deepCopy() {
5368
      return new getEmailsToBeSent_args(this);
5369
    }
5370
 
3430 rajveer 5371
    @Override
5372
    public void clear() {
1422 varun.gupt 5373
    }
5374
 
5375
    public void setFieldValue(_Fields field, Object value) {
5376
      switch (field) {
5377
      }
5378
    }
5379
 
5380
    public Object getFieldValue(_Fields field) {
5381
      switch (field) {
5382
      }
5383
      throw new IllegalStateException();
5384
    }
5385
 
3430 rajveer 5386
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5387
    public boolean isSet(_Fields field) {
5388
      if (field == null) {
5389
        throw new IllegalArgumentException();
5390
      }
1422 varun.gupt 5391
 
5392
      switch (field) {
5393
      }
5394
      throw new IllegalStateException();
5395
    }
5396
 
5397
    @Override
5398
    public boolean equals(Object that) {
5399
      if (that == null)
5400
        return false;
5401
      if (that instanceof getEmailsToBeSent_args)
5402
        return this.equals((getEmailsToBeSent_args)that);
5403
      return false;
5404
    }
5405
 
5406
    public boolean equals(getEmailsToBeSent_args that) {
5407
      if (that == null)
5408
        return false;
5409
 
5410
      return true;
5411
    }
5412
 
5413
    @Override
5414
    public int hashCode() {
5415
      return 0;
5416
    }
5417
 
5418
    public int compareTo(getEmailsToBeSent_args other) {
5419
      if (!getClass().equals(other.getClass())) {
5420
        return getClass().getName().compareTo(other.getClass().getName());
5421
      }
5422
 
5423
      int lastComparison = 0;
5424
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
5425
 
5426
      return 0;
5427
    }
5428
 
3430 rajveer 5429
    public _Fields fieldForId(int fieldId) {
5430
      return _Fields.findByThriftId(fieldId);
5431
    }
5432
 
5433
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5434
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5435
      iprot.readStructBegin();
5436
      while (true)
5437
      {
5438
        field = iprot.readFieldBegin();
3430 rajveer 5439
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5440
          break;
5441
        }
3430 rajveer 5442
        switch (field.id) {
5443
          default:
5444
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5445
        }
3430 rajveer 5446
        iprot.readFieldEnd();
1422 varun.gupt 5447
      }
5448
      iprot.readStructEnd();
5449
      validate();
5450
    }
5451
 
3430 rajveer 5452
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5453
      validate();
5454
 
5455
      oprot.writeStructBegin(STRUCT_DESC);
5456
      oprot.writeFieldStop();
5457
      oprot.writeStructEnd();
5458
    }
5459
 
5460
    @Override
5461
    public String toString() {
5462
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
5463
      boolean first = true;
5464
 
5465
      sb.append(")");
5466
      return sb.toString();
5467
    }
5468
 
3430 rajveer 5469
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5470
      // check for required fields
5471
    }
5472
 
3430 rajveer 5473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5474
      try {
5475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5476
      } catch (org.apache.thrift.TException te) {
5477
        throw new java.io.IOException(te);
5478
      }
5479
    }
5480
 
5481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5482
      try {
5483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5484
      } catch (org.apache.thrift.TException te) {
5485
        throw new java.io.IOException(te);
5486
      }
5487
    }
5488
 
1422 varun.gupt 5489
  }
5490
 
3430 rajveer 5491
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
5492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 5493
 
3430 rajveer 5494
    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);
5495
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1422 varun.gupt 5496
 
3430 rajveer 5497
    private List<UserEmail> success; // required
5498
    private HelperServiceException se; // required
1422 varun.gupt 5499
 
5500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5502
      SUCCESS((short)0, "success"),
5503
      SE((short)1, "se");
5504
 
5505
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5506
 
5507
      static {
5508
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5509
          byName.put(field.getFieldName(), field);
5510
        }
5511
      }
5512
 
5513
      /**
5514
       * Find the _Fields constant that matches fieldId, or null if its not found.
5515
       */
5516
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5517
        switch(fieldId) {
5518
          case 0: // SUCCESS
5519
            return SUCCESS;
5520
          case 1: // SE
5521
            return SE;
5522
          default:
5523
            return null;
5524
        }
1422 varun.gupt 5525
      }
5526
 
5527
      /**
5528
       * Find the _Fields constant that matches fieldId, throwing an exception
5529
       * if it is not found.
5530
       */
5531
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5532
        _Fields fields = findByThriftId(fieldId);
5533
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5534
        return fields;
5535
      }
5536
 
5537
      /**
5538
       * Find the _Fields constant that matches name, or null if its not found.
5539
       */
5540
      public static _Fields findByName(String name) {
5541
        return byName.get(name);
5542
      }
5543
 
5544
      private final short _thriftId;
5545
      private final String _fieldName;
5546
 
5547
      _Fields(short thriftId, String fieldName) {
5548
        _thriftId = thriftId;
5549
        _fieldName = fieldName;
5550
      }
5551
 
5552
      public short getThriftFieldId() {
5553
        return _thriftId;
5554
      }
5555
 
5556
      public String getFieldName() {
5557
        return _fieldName;
5558
      }
5559
    }
5560
 
5561
    // isset id assignments
5562
 
3430 rajveer 5563
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5564
    static {
3430 rajveer 5565
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5566
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5567
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5568
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
5569
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5571
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5572
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 5573
    }
5574
 
5575
    public getEmailsToBeSent_result() {
5576
    }
5577
 
5578
    public getEmailsToBeSent_result(
5579
      List<UserEmail> success,
5580
      HelperServiceException se)
5581
    {
5582
      this();
5583
      this.success = success;
5584
      this.se = se;
5585
    }
5586
 
5587
    /**
5588
     * Performs a deep copy on <i>other</i>.
5589
     */
5590
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
5591
      if (other.isSetSuccess()) {
5592
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
5593
        for (UserEmail other_element : other.success) {
5594
          __this__success.add(new UserEmail(other_element));
5595
        }
5596
        this.success = __this__success;
5597
      }
5598
      if (other.isSetSe()) {
5599
        this.se = new HelperServiceException(other.se);
5600
      }
5601
    }
5602
 
5603
    public getEmailsToBeSent_result deepCopy() {
5604
      return new getEmailsToBeSent_result(this);
5605
    }
5606
 
3430 rajveer 5607
    @Override
5608
    public void clear() {
5609
      this.success = null;
5610
      this.se = null;
1422 varun.gupt 5611
    }
5612
 
5613
    public int getSuccessSize() {
5614
      return (this.success == null) ? 0 : this.success.size();
5615
    }
5616
 
5617
    public java.util.Iterator<UserEmail> getSuccessIterator() {
5618
      return (this.success == null) ? null : this.success.iterator();
5619
    }
5620
 
5621
    public void addToSuccess(UserEmail elem) {
5622
      if (this.success == null) {
5623
        this.success = new ArrayList<UserEmail>();
5624
      }
5625
      this.success.add(elem);
5626
    }
5627
 
5628
    public List<UserEmail> getSuccess() {
5629
      return this.success;
5630
    }
5631
 
3430 rajveer 5632
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 5633
      this.success = success;
5634
    }
5635
 
5636
    public void unsetSuccess() {
5637
      this.success = null;
5638
    }
5639
 
3430 rajveer 5640
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5641
    public boolean isSetSuccess() {
5642
      return this.success != null;
5643
    }
5644
 
5645
    public void setSuccessIsSet(boolean value) {
5646
      if (!value) {
5647
        this.success = null;
5648
      }
5649
    }
5650
 
5651
    public HelperServiceException getSe() {
5652
      return this.se;
5653
    }
5654
 
3430 rajveer 5655
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5656
      this.se = se;
5657
    }
5658
 
5659
    public void unsetSe() {
5660
      this.se = null;
5661
    }
5662
 
3430 rajveer 5663
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5664
    public boolean isSetSe() {
5665
      return this.se != null;
5666
    }
5667
 
5668
    public void setSeIsSet(boolean value) {
5669
      if (!value) {
5670
        this.se = null;
5671
      }
5672
    }
5673
 
5674
    public void setFieldValue(_Fields field, Object value) {
5675
      switch (field) {
5676
      case SUCCESS:
5677
        if (value == null) {
5678
          unsetSuccess();
5679
        } else {
5680
          setSuccess((List<UserEmail>)value);
5681
        }
5682
        break;
5683
 
5684
      case SE:
5685
        if (value == null) {
5686
          unsetSe();
5687
        } else {
5688
          setSe((HelperServiceException)value);
5689
        }
5690
        break;
5691
 
5692
      }
5693
    }
5694
 
5695
    public Object getFieldValue(_Fields field) {
5696
      switch (field) {
5697
      case SUCCESS:
5698
        return getSuccess();
5699
 
5700
      case SE:
5701
        return getSe();
5702
 
5703
      }
5704
      throw new IllegalStateException();
5705
    }
5706
 
3430 rajveer 5707
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5708
    public boolean isSet(_Fields field) {
5709
      if (field == null) {
5710
        throw new IllegalArgumentException();
5711
      }
1422 varun.gupt 5712
 
5713
      switch (field) {
5714
      case SUCCESS:
5715
        return isSetSuccess();
5716
      case SE:
5717
        return isSetSe();
5718
      }
5719
      throw new IllegalStateException();
5720
    }
5721
 
5722
    @Override
5723
    public boolean equals(Object that) {
5724
      if (that == null)
5725
        return false;
5726
      if (that instanceof getEmailsToBeSent_result)
5727
        return this.equals((getEmailsToBeSent_result)that);
5728
      return false;
5729
    }
5730
 
5731
    public boolean equals(getEmailsToBeSent_result that) {
5732
      if (that == null)
5733
        return false;
5734
 
5735
      boolean this_present_success = true && this.isSetSuccess();
5736
      boolean that_present_success = true && that.isSetSuccess();
5737
      if (this_present_success || that_present_success) {
5738
        if (!(this_present_success && that_present_success))
5739
          return false;
5740
        if (!this.success.equals(that.success))
5741
          return false;
5742
      }
5743
 
5744
      boolean this_present_se = true && this.isSetSe();
5745
      boolean that_present_se = true && that.isSetSe();
5746
      if (this_present_se || that_present_se) {
5747
        if (!(this_present_se && that_present_se))
5748
          return false;
5749
        if (!this.se.equals(that.se))
5750
          return false;
5751
      }
5752
 
5753
      return true;
5754
    }
5755
 
5756
    @Override
5757
    public int hashCode() {
5758
      return 0;
5759
    }
5760
 
5761
    public int compareTo(getEmailsToBeSent_result other) {
5762
      if (!getClass().equals(other.getClass())) {
5763
        return getClass().getName().compareTo(other.getClass().getName());
5764
      }
5765
 
5766
      int lastComparison = 0;
5767
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
5768
 
3430 rajveer 5769
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 5770
      if (lastComparison != 0) {
5771
        return lastComparison;
5772
      }
3430 rajveer 5773
      if (isSetSuccess()) {
5774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5775
        if (lastComparison != 0) {
5776
          return lastComparison;
5777
        }
1422 varun.gupt 5778
      }
3430 rajveer 5779
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5780
      if (lastComparison != 0) {
5781
        return lastComparison;
5782
      }
3430 rajveer 5783
      if (isSetSe()) {
5784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5785
        if (lastComparison != 0) {
5786
          return lastComparison;
5787
        }
1422 varun.gupt 5788
      }
5789
      return 0;
5790
    }
5791
 
3430 rajveer 5792
    public _Fields fieldForId(int fieldId) {
5793
      return _Fields.findByThriftId(fieldId);
5794
    }
5795
 
5796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5797
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5798
      iprot.readStructBegin();
5799
      while (true)
5800
      {
5801
        field = iprot.readFieldBegin();
3430 rajveer 5802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5803
          break;
5804
        }
3430 rajveer 5805
        switch (field.id) {
5806
          case 0: // SUCCESS
5807
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5808
              {
5864 rajveer 5809
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
5810
                this.success = new ArrayList<UserEmail>(_list32.size);
5811
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 5812
                {
5864 rajveer 5813
                  UserEmail _elem34; // required
5814
                  _elem34 = new UserEmail();
5815
                  _elem34.read(iprot);
5816
                  this.success.add(_elem34);
1422 varun.gupt 5817
                }
3430 rajveer 5818
                iprot.readListEnd();
1422 varun.gupt 5819
              }
3430 rajveer 5820
            } else { 
5821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5822
            }
5823
            break;
5824
          case 1: // SE
5825
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5826
              this.se = new HelperServiceException();
5827
              this.se.read(iprot);
5828
            } else { 
5829
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5830
            }
5831
            break;
5832
          default:
5833
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5834
        }
3430 rajveer 5835
        iprot.readFieldEnd();
1422 varun.gupt 5836
      }
5837
      iprot.readStructEnd();
5838
      validate();
5839
    }
5840
 
3430 rajveer 5841
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5842
      oprot.writeStructBegin(STRUCT_DESC);
5843
 
5844
      if (this.isSetSuccess()) {
5845
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5846
        {
3430 rajveer 5847
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 5848
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 5849
          {
5864 rajveer 5850
            _iter35.write(oprot);
1422 varun.gupt 5851
          }
5852
          oprot.writeListEnd();
5853
        }
5854
        oprot.writeFieldEnd();
5855
      } else if (this.isSetSe()) {
5856
        oprot.writeFieldBegin(SE_FIELD_DESC);
5857
        this.se.write(oprot);
5858
        oprot.writeFieldEnd();
5859
      }
5860
      oprot.writeFieldStop();
5861
      oprot.writeStructEnd();
5862
    }
5863
 
5864
    @Override
5865
    public String toString() {
5866
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
5867
      boolean first = true;
5868
 
5869
      sb.append("success:");
5870
      if (this.success == null) {
5871
        sb.append("null");
5872
      } else {
5873
        sb.append(this.success);
5874
      }
5875
      first = false;
5876
      if (!first) sb.append(", ");
5877
      sb.append("se:");
5878
      if (this.se == null) {
5879
        sb.append("null");
5880
      } else {
5881
        sb.append(this.se);
5882
      }
5883
      first = false;
5884
      sb.append(")");
5885
      return sb.toString();
5886
    }
5887
 
3430 rajveer 5888
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5889
      // check for required fields
5890
    }
5891
 
3430 rajveer 5892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5893
      try {
5894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5895
      } catch (org.apache.thrift.TException te) {
5896
        throw new java.io.IOException(te);
5897
      }
5898
    }
5899
 
5900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5901
      try {
5902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5903
      } catch (org.apache.thrift.TException te) {
5904
        throw new java.io.IOException(te);
5905
      }
5906
    }
5907
 
1422 varun.gupt 5908
  }
5909
 
3430 rajveer 5910
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
5911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 5912
 
3430 rajveer 5913
    private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.I64, (short)1);
1422 varun.gupt 5914
 
3430 rajveer 5915
    private long emailId; // required
1422 varun.gupt 5916
 
5917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5919
      EMAIL_ID((short)1, "emailId");
5920
 
5921
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5922
 
5923
      static {
5924
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5925
          byName.put(field.getFieldName(), field);
5926
        }
5927
      }
5928
 
5929
      /**
5930
       * Find the _Fields constant that matches fieldId, or null if its not found.
5931
       */
5932
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5933
        switch(fieldId) {
5934
          case 1: // EMAIL_ID
5935
            return EMAIL_ID;
5936
          default:
5937
            return null;
5938
        }
1422 varun.gupt 5939
      }
5940
 
5941
      /**
5942
       * Find the _Fields constant that matches fieldId, throwing an exception
5943
       * if it is not found.
5944
       */
5945
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5946
        _Fields fields = findByThriftId(fieldId);
5947
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5948
        return fields;
5949
      }
5950
 
5951
      /**
5952
       * Find the _Fields constant that matches name, or null if its not found.
5953
       */
5954
      public static _Fields findByName(String name) {
5955
        return byName.get(name);
5956
      }
5957
 
5958
      private final short _thriftId;
5959
      private final String _fieldName;
5960
 
5961
      _Fields(short thriftId, String fieldName) {
5962
        _thriftId = thriftId;
5963
        _fieldName = fieldName;
5964
      }
5965
 
5966
      public short getThriftFieldId() {
5967
        return _thriftId;
5968
      }
5969
 
5970
      public String getFieldName() {
5971
        return _fieldName;
5972
      }
5973
    }
5974
 
5975
    // isset id assignments
5976
    private static final int __EMAILID_ISSET_ID = 0;
5977
    private BitSet __isset_bit_vector = new BitSet(1);
5978
 
3430 rajveer 5979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5980
    static {
3430 rajveer 5981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5982
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 5986
    }
5987
 
5988
    public markEmailAsSent_args() {
5989
    }
5990
 
5991
    public markEmailAsSent_args(
5992
      long emailId)
5993
    {
5994
      this();
5995
      this.emailId = emailId;
5996
      setEmailIdIsSet(true);
5997
    }
5998
 
5999
    /**
6000
     * Performs a deep copy on <i>other</i>.
6001
     */
6002
    public markEmailAsSent_args(markEmailAsSent_args other) {
6003
      __isset_bit_vector.clear();
6004
      __isset_bit_vector.or(other.__isset_bit_vector);
6005
      this.emailId = other.emailId;
6006
    }
6007
 
6008
    public markEmailAsSent_args deepCopy() {
6009
      return new markEmailAsSent_args(this);
6010
    }
6011
 
3430 rajveer 6012
    @Override
6013
    public void clear() {
6014
      setEmailIdIsSet(false);
6015
      this.emailId = 0;
1422 varun.gupt 6016
    }
6017
 
6018
    public long getEmailId() {
6019
      return this.emailId;
6020
    }
6021
 
3430 rajveer 6022
    public void setEmailId(long emailId) {
1422 varun.gupt 6023
      this.emailId = emailId;
6024
      setEmailIdIsSet(true);
6025
    }
6026
 
6027
    public void unsetEmailId() {
6028
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
6029
    }
6030
 
3430 rajveer 6031
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 6032
    public boolean isSetEmailId() {
6033
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
6034
    }
6035
 
6036
    public void setEmailIdIsSet(boolean value) {
6037
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
6038
    }
6039
 
6040
    public void setFieldValue(_Fields field, Object value) {
6041
      switch (field) {
6042
      case EMAIL_ID:
6043
        if (value == null) {
6044
          unsetEmailId();
6045
        } else {
6046
          setEmailId((Long)value);
6047
        }
6048
        break;
6049
 
6050
      }
6051
    }
6052
 
6053
    public Object getFieldValue(_Fields field) {
6054
      switch (field) {
6055
      case EMAIL_ID:
3430 rajveer 6056
        return Long.valueOf(getEmailId());
1422 varun.gupt 6057
 
6058
      }
6059
      throw new IllegalStateException();
6060
    }
6061
 
3430 rajveer 6062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6063
    public boolean isSet(_Fields field) {
6064
      if (field == null) {
6065
        throw new IllegalArgumentException();
6066
      }
1422 varun.gupt 6067
 
6068
      switch (field) {
6069
      case EMAIL_ID:
6070
        return isSetEmailId();
6071
      }
6072
      throw new IllegalStateException();
6073
    }
6074
 
6075
    @Override
6076
    public boolean equals(Object that) {
6077
      if (that == null)
6078
        return false;
6079
      if (that instanceof markEmailAsSent_args)
6080
        return this.equals((markEmailAsSent_args)that);
6081
      return false;
6082
    }
6083
 
6084
    public boolean equals(markEmailAsSent_args that) {
6085
      if (that == null)
6086
        return false;
6087
 
6088
      boolean this_present_emailId = true;
6089
      boolean that_present_emailId = true;
6090
      if (this_present_emailId || that_present_emailId) {
6091
        if (!(this_present_emailId && that_present_emailId))
6092
          return false;
6093
        if (this.emailId != that.emailId)
6094
          return false;
6095
      }
6096
 
6097
      return true;
6098
    }
6099
 
6100
    @Override
6101
    public int hashCode() {
6102
      return 0;
6103
    }
6104
 
6105
    public int compareTo(markEmailAsSent_args other) {
6106
      if (!getClass().equals(other.getClass())) {
6107
        return getClass().getName().compareTo(other.getClass().getName());
6108
      }
6109
 
6110
      int lastComparison = 0;
6111
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
6112
 
3430 rajveer 6113
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 6114
      if (lastComparison != 0) {
6115
        return lastComparison;
6116
      }
3430 rajveer 6117
      if (isSetEmailId()) {
6118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
6119
        if (lastComparison != 0) {
6120
          return lastComparison;
6121
        }
1422 varun.gupt 6122
      }
6123
      return 0;
6124
    }
6125
 
3430 rajveer 6126
    public _Fields fieldForId(int fieldId) {
6127
      return _Fields.findByThriftId(fieldId);
6128
    }
6129
 
6130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6131
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 6132
      iprot.readStructBegin();
6133
      while (true)
6134
      {
6135
        field = iprot.readFieldBegin();
3430 rajveer 6136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 6137
          break;
6138
        }
3430 rajveer 6139
        switch (field.id) {
6140
          case 1: // EMAIL_ID
6141
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6142
              this.emailId = iprot.readI64();
6143
              setEmailIdIsSet(true);
6144
            } else { 
6145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6146
            }
6147
            break;
6148
          default:
6149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 6150
        }
3430 rajveer 6151
        iprot.readFieldEnd();
1422 varun.gupt 6152
      }
6153
      iprot.readStructEnd();
6154
      validate();
6155
    }
6156
 
3430 rajveer 6157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 6158
      validate();
6159
 
6160
      oprot.writeStructBegin(STRUCT_DESC);
6161
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
6162
      oprot.writeI64(this.emailId);
6163
      oprot.writeFieldEnd();
6164
      oprot.writeFieldStop();
6165
      oprot.writeStructEnd();
6166
    }
6167
 
6168
    @Override
6169
    public String toString() {
6170
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
6171
      boolean first = true;
6172
 
6173
      sb.append("emailId:");
6174
      sb.append(this.emailId);
6175
      first = false;
6176
      sb.append(")");
6177
      return sb.toString();
6178
    }
6179
 
3430 rajveer 6180
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 6181
      // check for required fields
6182
    }
6183
 
3430 rajveer 6184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6185
      try {
6186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6187
      } catch (org.apache.thrift.TException te) {
6188
        throw new java.io.IOException(te);
6189
      }
6190
    }
6191
 
6192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6193
      try {
13214 kshitij.so 6194
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6195
        __isset_bit_vector = new BitSet(1);
3430 rajveer 6196
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6197
      } catch (org.apache.thrift.TException te) {
6198
        throw new java.io.IOException(te);
6199
      }
6200
    }
6201
 
1422 varun.gupt 6202
  }
6203
 
3430 rajveer 6204
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
6205
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 6206
 
3430 rajveer 6207
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1422 varun.gupt 6208
 
3430 rajveer 6209
    private HelperServiceException se; // required
1422 varun.gupt 6210
 
6211
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6212
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 6213
      SE((short)1, "se");
6214
 
6215
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6216
 
6217
      static {
6218
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6219
          byName.put(field.getFieldName(), field);
6220
        }
6221
      }
6222
 
6223
      /**
6224
       * Find the _Fields constant that matches fieldId, or null if its not found.
6225
       */
6226
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6227
        switch(fieldId) {
6228
          case 1: // SE
6229
            return SE;
6230
          default:
6231
            return null;
6232
        }
1422 varun.gupt 6233
      }
6234
 
6235
      /**
6236
       * Find the _Fields constant that matches fieldId, throwing an exception
6237
       * if it is not found.
6238
       */
6239
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6240
        _Fields fields = findByThriftId(fieldId);
6241
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6242
        return fields;
6243
      }
6244
 
6245
      /**
6246
       * Find the _Fields constant that matches name, or null if its not found.
6247
       */
6248
      public static _Fields findByName(String name) {
6249
        return byName.get(name);
6250
      }
6251
 
6252
      private final short _thriftId;
6253
      private final String _fieldName;
6254
 
6255
      _Fields(short thriftId, String fieldName) {
6256
        _thriftId = thriftId;
6257
        _fieldName = fieldName;
6258
      }
6259
 
6260
      public short getThriftFieldId() {
6261
        return _thriftId;
6262
      }
6263
 
6264
      public String getFieldName() {
6265
        return _fieldName;
6266
      }
6267
    }
6268
 
6269
    // isset id assignments
6270
 
3430 rajveer 6271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 6272
    static {
3430 rajveer 6273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6274
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 6278
    }
6279
 
6280
    public markEmailAsSent_result() {
6281
    }
6282
 
6283
    public markEmailAsSent_result(
6284
      HelperServiceException se)
6285
    {
6286
      this();
6287
      this.se = se;
6288
    }
6289
 
6290
    /**
6291
     * Performs a deep copy on <i>other</i>.
6292
     */
6293
    public markEmailAsSent_result(markEmailAsSent_result other) {
6294
      if (other.isSetSe()) {
6295
        this.se = new HelperServiceException(other.se);
6296
      }
6297
    }
6298
 
6299
    public markEmailAsSent_result deepCopy() {
6300
      return new markEmailAsSent_result(this);
6301
    }
6302
 
3430 rajveer 6303
    @Override
6304
    public void clear() {
6305
      this.se = null;
1422 varun.gupt 6306
    }
6307
 
6308
    public HelperServiceException getSe() {
6309
      return this.se;
6310
    }
6311
 
3430 rajveer 6312
    public void setSe(HelperServiceException se) {
1422 varun.gupt 6313
      this.se = se;
6314
    }
6315
 
6316
    public void unsetSe() {
6317
      this.se = null;
6318
    }
6319
 
3430 rajveer 6320
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 6321
    public boolean isSetSe() {
6322
      return this.se != null;
6323
    }
6324
 
6325
    public void setSeIsSet(boolean value) {
6326
      if (!value) {
6327
        this.se = null;
6328
      }
6329
    }
6330
 
6331
    public void setFieldValue(_Fields field, Object value) {
6332
      switch (field) {
6333
      case SE:
6334
        if (value == null) {
6335
          unsetSe();
6336
        } else {
6337
          setSe((HelperServiceException)value);
6338
        }
6339
        break;
6340
 
6341
      }
6342
    }
6343
 
6344
    public Object getFieldValue(_Fields field) {
6345
      switch (field) {
6346
      case SE:
6347
        return getSe();
6348
 
6349
      }
6350
      throw new IllegalStateException();
6351
    }
6352
 
3430 rajveer 6353
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6354
    public boolean isSet(_Fields field) {
6355
      if (field == null) {
6356
        throw new IllegalArgumentException();
6357
      }
1422 varun.gupt 6358
 
6359
      switch (field) {
6360
      case SE:
6361
        return isSetSe();
6362
      }
6363
      throw new IllegalStateException();
6364
    }
6365
 
6366
    @Override
6367
    public boolean equals(Object that) {
6368
      if (that == null)
6369
        return false;
6370
      if (that instanceof markEmailAsSent_result)
6371
        return this.equals((markEmailAsSent_result)that);
6372
      return false;
6373
    }
6374
 
6375
    public boolean equals(markEmailAsSent_result that) {
6376
      if (that == null)
6377
        return false;
6378
 
6379
      boolean this_present_se = true && this.isSetSe();
6380
      boolean that_present_se = true && that.isSetSe();
6381
      if (this_present_se || that_present_se) {
6382
        if (!(this_present_se && that_present_se))
6383
          return false;
6384
        if (!this.se.equals(that.se))
6385
          return false;
6386
      }
6387
 
6388
      return true;
6389
    }
6390
 
6391
    @Override
6392
    public int hashCode() {
6393
      return 0;
6394
    }
6395
 
6396
    public int compareTo(markEmailAsSent_result other) {
6397
      if (!getClass().equals(other.getClass())) {
6398
        return getClass().getName().compareTo(other.getClass().getName());
6399
      }
6400
 
6401
      int lastComparison = 0;
6402
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
6403
 
3430 rajveer 6404
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 6405
      if (lastComparison != 0) {
6406
        return lastComparison;
6407
      }
3430 rajveer 6408
      if (isSetSe()) {
6409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6410
        if (lastComparison != 0) {
6411
          return lastComparison;
6412
        }
1422 varun.gupt 6413
      }
6414
      return 0;
6415
    }
6416
 
3430 rajveer 6417
    public _Fields fieldForId(int fieldId) {
6418
      return _Fields.findByThriftId(fieldId);
6419
    }
6420
 
6421
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6422
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 6423
      iprot.readStructBegin();
6424
      while (true)
6425
      {
6426
        field = iprot.readFieldBegin();
3430 rajveer 6427
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 6428
          break;
6429
        }
3430 rajveer 6430
        switch (field.id) {
6431
          case 1: // SE
6432
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6433
              this.se = new HelperServiceException();
6434
              this.se.read(iprot);
6435
            } else { 
6436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6437
            }
6438
            break;
6439
          default:
6440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 6441
        }
3430 rajveer 6442
        iprot.readFieldEnd();
1422 varun.gupt 6443
      }
6444
      iprot.readStructEnd();
6445
      validate();
6446
    }
6447
 
3430 rajveer 6448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 6449
      oprot.writeStructBegin(STRUCT_DESC);
6450
 
6451
      if (this.isSetSe()) {
6452
        oprot.writeFieldBegin(SE_FIELD_DESC);
6453
        this.se.write(oprot);
6454
        oprot.writeFieldEnd();
6455
      }
6456
      oprot.writeFieldStop();
6457
      oprot.writeStructEnd();
6458
    }
6459
 
6460
    @Override
6461
    public String toString() {
6462
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
6463
      boolean first = true;
6464
 
6465
      sb.append("se:");
6466
      if (this.se == null) {
6467
        sb.append("null");
6468
      } else {
6469
        sb.append(this.se);
6470
      }
6471
      first = false;
6472
      sb.append(")");
6473
      return sb.toString();
6474
    }
6475
 
3430 rajveer 6476
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 6477
      // check for required fields
6478
    }
6479
 
3430 rajveer 6480
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6481
      try {
6482
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6483
      } catch (org.apache.thrift.TException te) {
6484
        throw new java.io.IOException(te);
6485
      }
6486
    }
6487
 
6488
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6489
      try {
6490
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6491
      } catch (org.apache.thrift.TException te) {
6492
        throw new java.io.IOException(te);
6493
      }
6494
    }
6495
 
1422 varun.gupt 6496
  }
6497
 
3430 rajveer 6498
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
6499
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 6500
 
3430 rajveer 6501
    private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 6502
 
3430 rajveer 6503
    private Mail mail; // required
352 ashish 6504
 
6505
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6506
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6507
      MAIL((short)1, "mail");
6508
 
6509
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6510
 
6511
      static {
6512
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6513
          byName.put(field.getFieldName(), field);
6514
        }
6515
      }
6516
 
6517
      /**
6518
       * Find the _Fields constant that matches fieldId, or null if its not found.
6519
       */
6520
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6521
        switch(fieldId) {
6522
          case 1: // MAIL
6523
            return MAIL;
6524
          default:
6525
            return null;
6526
        }
352 ashish 6527
      }
6528
 
6529
      /**
6530
       * Find the _Fields constant that matches fieldId, throwing an exception
6531
       * if it is not found.
6532
       */
6533
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6534
        _Fields fields = findByThriftId(fieldId);
6535
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6536
        return fields;
6537
      }
6538
 
6539
      /**
6540
       * Find the _Fields constant that matches name, or null if its not found.
6541
       */
6542
      public static _Fields findByName(String name) {
6543
        return byName.get(name);
6544
      }
6545
 
6546
      private final short _thriftId;
6547
      private final String _fieldName;
6548
 
6549
      _Fields(short thriftId, String fieldName) {
6550
        _thriftId = thriftId;
6551
        _fieldName = fieldName;
6552
      }
6553
 
6554
      public short getThriftFieldId() {
6555
        return _thriftId;
6556
      }
6557
 
6558
      public String getFieldName() {
6559
        return _fieldName;
6560
      }
6561
    }
6562
 
6563
    // isset id assignments
6564
 
3430 rajveer 6565
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6566
    static {
3430 rajveer 6567
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6568
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6569
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
6570
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6571
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 6572
    }
6573
 
6574
    public sendMail_args() {
6575
    }
6576
 
6577
    public sendMail_args(
6578
      Mail mail)
6579
    {
6580
      this();
6581
      this.mail = mail;
6582
    }
6583
 
6584
    /**
6585
     * Performs a deep copy on <i>other</i>.
6586
     */
6587
    public sendMail_args(sendMail_args other) {
6588
      if (other.isSetMail()) {
6589
        this.mail = new Mail(other.mail);
6590
      }
6591
    }
6592
 
6593
    public sendMail_args deepCopy() {
6594
      return new sendMail_args(this);
6595
    }
6596
 
3430 rajveer 6597
    @Override
6598
    public void clear() {
6599
      this.mail = null;
352 ashish 6600
    }
6601
 
6602
    public Mail getMail() {
6603
      return this.mail;
6604
    }
6605
 
3430 rajveer 6606
    public void setMail(Mail mail) {
352 ashish 6607
      this.mail = mail;
6608
    }
6609
 
6610
    public void unsetMail() {
6611
      this.mail = null;
6612
    }
6613
 
3430 rajveer 6614
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 6615
    public boolean isSetMail() {
6616
      return this.mail != null;
6617
    }
6618
 
6619
    public void setMailIsSet(boolean value) {
6620
      if (!value) {
6621
        this.mail = null;
6622
      }
6623
    }
6624
 
6625
    public void setFieldValue(_Fields field, Object value) {
6626
      switch (field) {
6627
      case MAIL:
6628
        if (value == null) {
6629
          unsetMail();
6630
        } else {
6631
          setMail((Mail)value);
6632
        }
6633
        break;
6634
 
6635
      }
6636
    }
6637
 
6638
    public Object getFieldValue(_Fields field) {
6639
      switch (field) {
6640
      case MAIL:
6641
        return getMail();
6642
 
6643
      }
6644
      throw new IllegalStateException();
6645
    }
6646
 
3430 rajveer 6647
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6648
    public boolean isSet(_Fields field) {
6649
      if (field == null) {
6650
        throw new IllegalArgumentException();
6651
      }
352 ashish 6652
 
6653
      switch (field) {
6654
      case MAIL:
6655
        return isSetMail();
6656
      }
6657
      throw new IllegalStateException();
6658
    }
6659
 
6660
    @Override
6661
    public boolean equals(Object that) {
6662
      if (that == null)
6663
        return false;
6664
      if (that instanceof sendMail_args)
6665
        return this.equals((sendMail_args)that);
6666
      return false;
6667
    }
6668
 
6669
    public boolean equals(sendMail_args that) {
6670
      if (that == null)
6671
        return false;
6672
 
6673
      boolean this_present_mail = true && this.isSetMail();
6674
      boolean that_present_mail = true && that.isSetMail();
6675
      if (this_present_mail || that_present_mail) {
6676
        if (!(this_present_mail && that_present_mail))
6677
          return false;
6678
        if (!this.mail.equals(that.mail))
6679
          return false;
6680
      }
6681
 
6682
      return true;
6683
    }
6684
 
6685
    @Override
6686
    public int hashCode() {
6687
      return 0;
6688
    }
6689
 
6690
    public int compareTo(sendMail_args other) {
6691
      if (!getClass().equals(other.getClass())) {
6692
        return getClass().getName().compareTo(other.getClass().getName());
6693
      }
6694
 
6695
      int lastComparison = 0;
6696
      sendMail_args typedOther = (sendMail_args)other;
6697
 
3430 rajveer 6698
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 6699
      if (lastComparison != 0) {
6700
        return lastComparison;
6701
      }
3430 rajveer 6702
      if (isSetMail()) {
6703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
6704
        if (lastComparison != 0) {
6705
          return lastComparison;
6706
        }
352 ashish 6707
      }
6708
      return 0;
6709
    }
6710
 
3430 rajveer 6711
    public _Fields fieldForId(int fieldId) {
6712
      return _Fields.findByThriftId(fieldId);
6713
    }
6714
 
6715
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6716
      org.apache.thrift.protocol.TField field;
352 ashish 6717
      iprot.readStructBegin();
6718
      while (true)
6719
      {
6720
        field = iprot.readFieldBegin();
3430 rajveer 6721
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6722
          break;
6723
        }
3430 rajveer 6724
        switch (field.id) {
6725
          case 1: // MAIL
6726
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6727
              this.mail = new Mail();
6728
              this.mail.read(iprot);
6729
            } else { 
6730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6731
            }
6732
            break;
6733
          default:
6734
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6735
        }
3430 rajveer 6736
        iprot.readFieldEnd();
352 ashish 6737
      }
6738
      iprot.readStructEnd();
6739
      validate();
6740
    }
6741
 
3430 rajveer 6742
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6743
      validate();
6744
 
6745
      oprot.writeStructBegin(STRUCT_DESC);
6746
      if (this.mail != null) {
6747
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
6748
        this.mail.write(oprot);
6749
        oprot.writeFieldEnd();
6750
      }
6751
      oprot.writeFieldStop();
6752
      oprot.writeStructEnd();
6753
    }
6754
 
6755
    @Override
6756
    public String toString() {
6757
      StringBuilder sb = new StringBuilder("sendMail_args(");
6758
      boolean first = true;
6759
 
6760
      sb.append("mail:");
6761
      if (this.mail == null) {
6762
        sb.append("null");
6763
      } else {
6764
        sb.append(this.mail);
6765
      }
6766
      first = false;
6767
      sb.append(")");
6768
      return sb.toString();
6769
    }
6770
 
3430 rajveer 6771
    public void validate() throws org.apache.thrift.TException {
352 ashish 6772
      // check for required fields
6773
    }
6774
 
3430 rajveer 6775
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6776
      try {
6777
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6778
      } catch (org.apache.thrift.TException te) {
6779
        throw new java.io.IOException(te);
6780
      }
6781
    }
6782
 
6783
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6784
      try {
6785
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6786
      } catch (org.apache.thrift.TException te) {
6787
        throw new java.io.IOException(te);
6788
      }
6789
    }
6790
 
352 ashish 6791
  }
6792
 
3430 rajveer 6793
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
6794
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 6795
 
3430 rajveer 6796
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 6797
 
3430 rajveer 6798
    private HelperServiceException se; // required
352 ashish 6799
 
6800
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6801
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6802
      SE((short)1, "se");
6803
 
6804
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6805
 
6806
      static {
6807
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6808
          byName.put(field.getFieldName(), field);
6809
        }
6810
      }
6811
 
6812
      /**
6813
       * Find the _Fields constant that matches fieldId, or null if its not found.
6814
       */
6815
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6816
        switch(fieldId) {
6817
          case 1: // SE
6818
            return SE;
6819
          default:
6820
            return null;
6821
        }
352 ashish 6822
      }
6823
 
6824
      /**
6825
       * Find the _Fields constant that matches fieldId, throwing an exception
6826
       * if it is not found.
6827
       */
6828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6829
        _Fields fields = findByThriftId(fieldId);
6830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6831
        return fields;
6832
      }
6833
 
6834
      /**
6835
       * Find the _Fields constant that matches name, or null if its not found.
6836
       */
6837
      public static _Fields findByName(String name) {
6838
        return byName.get(name);
6839
      }
6840
 
6841
      private final short _thriftId;
6842
      private final String _fieldName;
6843
 
6844
      _Fields(short thriftId, String fieldName) {
6845
        _thriftId = thriftId;
6846
        _fieldName = fieldName;
6847
      }
6848
 
6849
      public short getThriftFieldId() {
6850
        return _thriftId;
6851
      }
6852
 
6853
      public String getFieldName() {
6854
        return _fieldName;
6855
      }
6856
    }
6857
 
6858
    // isset id assignments
6859
 
3430 rajveer 6860
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6861
    static {
3430 rajveer 6862
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6863
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6864
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6865
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6866
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 6867
    }
6868
 
6869
    public sendMail_result() {
6870
    }
6871
 
6872
    public sendMail_result(
6873
      HelperServiceException se)
6874
    {
6875
      this();
6876
      this.se = se;
6877
    }
6878
 
6879
    /**
6880
     * Performs a deep copy on <i>other</i>.
6881
     */
6882
    public sendMail_result(sendMail_result other) {
6883
      if (other.isSetSe()) {
6884
        this.se = new HelperServiceException(other.se);
6885
      }
6886
    }
6887
 
6888
    public sendMail_result deepCopy() {
6889
      return new sendMail_result(this);
6890
    }
6891
 
3430 rajveer 6892
    @Override
6893
    public void clear() {
6894
      this.se = null;
352 ashish 6895
    }
6896
 
6897
    public HelperServiceException getSe() {
6898
      return this.se;
6899
    }
6900
 
3430 rajveer 6901
    public void setSe(HelperServiceException se) {
352 ashish 6902
      this.se = se;
6903
    }
6904
 
6905
    public void unsetSe() {
6906
      this.se = null;
6907
    }
6908
 
3430 rajveer 6909
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6910
    public boolean isSetSe() {
6911
      return this.se != null;
6912
    }
6913
 
6914
    public void setSeIsSet(boolean value) {
6915
      if (!value) {
6916
        this.se = null;
6917
      }
6918
    }
6919
 
6920
    public void setFieldValue(_Fields field, Object value) {
6921
      switch (field) {
6922
      case SE:
6923
        if (value == null) {
6924
          unsetSe();
6925
        } else {
6926
          setSe((HelperServiceException)value);
6927
        }
6928
        break;
6929
 
6930
      }
6931
    }
6932
 
6933
    public Object getFieldValue(_Fields field) {
6934
      switch (field) {
6935
      case SE:
6936
        return getSe();
6937
 
6938
      }
6939
      throw new IllegalStateException();
6940
    }
6941
 
3430 rajveer 6942
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6943
    public boolean isSet(_Fields field) {
6944
      if (field == null) {
6945
        throw new IllegalArgumentException();
6946
      }
352 ashish 6947
 
6948
      switch (field) {
6949
      case SE:
6950
        return isSetSe();
6951
      }
6952
      throw new IllegalStateException();
6953
    }
6954
 
6955
    @Override
6956
    public boolean equals(Object that) {
6957
      if (that == null)
6958
        return false;
6959
      if (that instanceof sendMail_result)
6960
        return this.equals((sendMail_result)that);
6961
      return false;
6962
    }
6963
 
6964
    public boolean equals(sendMail_result that) {
6965
      if (that == null)
6966
        return false;
6967
 
6968
      boolean this_present_se = true && this.isSetSe();
6969
      boolean that_present_se = true && that.isSetSe();
6970
      if (this_present_se || that_present_se) {
6971
        if (!(this_present_se && that_present_se))
6972
          return false;
6973
        if (!this.se.equals(that.se))
6974
          return false;
6975
      }
6976
 
6977
      return true;
6978
    }
6979
 
6980
    @Override
6981
    public int hashCode() {
6982
      return 0;
6983
    }
6984
 
6985
    public int compareTo(sendMail_result other) {
6986
      if (!getClass().equals(other.getClass())) {
6987
        return getClass().getName().compareTo(other.getClass().getName());
6988
      }
6989
 
6990
      int lastComparison = 0;
6991
      sendMail_result typedOther = (sendMail_result)other;
6992
 
3430 rajveer 6993
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6994
      if (lastComparison != 0) {
6995
        return lastComparison;
6996
      }
3430 rajveer 6997
      if (isSetSe()) {
6998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6999
        if (lastComparison != 0) {
7000
          return lastComparison;
7001
        }
352 ashish 7002
      }
7003
      return 0;
7004
    }
7005
 
3430 rajveer 7006
    public _Fields fieldForId(int fieldId) {
7007
      return _Fields.findByThriftId(fieldId);
7008
    }
7009
 
7010
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7011
      org.apache.thrift.protocol.TField field;
352 ashish 7012
      iprot.readStructBegin();
7013
      while (true)
7014
      {
7015
        field = iprot.readFieldBegin();
3430 rajveer 7016
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7017
          break;
7018
        }
3430 rajveer 7019
        switch (field.id) {
7020
          case 1: // SE
7021
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7022
              this.se = new HelperServiceException();
7023
              this.se.read(iprot);
7024
            } else { 
7025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7026
            }
7027
            break;
7028
          default:
7029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7030
        }
3430 rajveer 7031
        iprot.readFieldEnd();
352 ashish 7032
      }
7033
      iprot.readStructEnd();
7034
      validate();
7035
    }
7036
 
3430 rajveer 7037
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7038
      oprot.writeStructBegin(STRUCT_DESC);
7039
 
7040
      if (this.isSetSe()) {
7041
        oprot.writeFieldBegin(SE_FIELD_DESC);
7042
        this.se.write(oprot);
7043
        oprot.writeFieldEnd();
7044
      }
7045
      oprot.writeFieldStop();
7046
      oprot.writeStructEnd();
7047
    }
7048
 
7049
    @Override
7050
    public String toString() {
7051
      StringBuilder sb = new StringBuilder("sendMail_result(");
7052
      boolean first = true;
7053
 
7054
      sb.append("se:");
7055
      if (this.se == null) {
7056
        sb.append("null");
7057
      } else {
7058
        sb.append(this.se);
7059
      }
7060
      first = false;
7061
      sb.append(")");
7062
      return sb.toString();
7063
    }
7064
 
3430 rajveer 7065
    public void validate() throws org.apache.thrift.TException {
352 ashish 7066
      // check for required fields
7067
    }
7068
 
3430 rajveer 7069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7070
      try {
7071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7072
      } catch (org.apache.thrift.TException te) {
7073
        throw new java.io.IOException(te);
7074
      }
7075
    }
7076
 
7077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7078
      try {
7079
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7080
      } catch (org.apache.thrift.TException te) {
7081
        throw new java.io.IOException(te);
7082
      }
7083
    }
7084
 
352 ashish 7085
  }
7086
 
3430 rajveer 7087
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
7088
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 7089
 
3430 rajveer 7090
    private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 7091
 
3430 rajveer 7092
    private TextMessage message; // required
352 ashish 7093
 
7094
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7095
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7096
      MESSAGE((short)1, "message");
7097
 
7098
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7099
 
7100
      static {
7101
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7102
          byName.put(field.getFieldName(), field);
7103
        }
7104
      }
7105
 
7106
      /**
7107
       * Find the _Fields constant that matches fieldId, or null if its not found.
7108
       */
7109
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7110
        switch(fieldId) {
7111
          case 1: // MESSAGE
7112
            return MESSAGE;
7113
          default:
7114
            return null;
7115
        }
352 ashish 7116
      }
7117
 
7118
      /**
7119
       * Find the _Fields constant that matches fieldId, throwing an exception
7120
       * if it is not found.
7121
       */
7122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7123
        _Fields fields = findByThriftId(fieldId);
7124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7125
        return fields;
7126
      }
7127
 
7128
      /**
7129
       * Find the _Fields constant that matches name, or null if its not found.
7130
       */
7131
      public static _Fields findByName(String name) {
7132
        return byName.get(name);
7133
      }
7134
 
7135
      private final short _thriftId;
7136
      private final String _fieldName;
7137
 
7138
      _Fields(short thriftId, String fieldName) {
7139
        _thriftId = thriftId;
7140
        _fieldName = fieldName;
7141
      }
7142
 
7143
      public short getThriftFieldId() {
7144
        return _thriftId;
7145
      }
7146
 
7147
      public String getFieldName() {
7148
        return _fieldName;
7149
      }
7150
    }
7151
 
7152
    // isset id assignments
7153
 
3430 rajveer 7154
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7155
    static {
3430 rajveer 7156
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7157
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7158
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
7159
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7160
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 7161
    }
7162
 
7163
    public sendText_args() {
7164
    }
7165
 
7166
    public sendText_args(
7167
      TextMessage message)
7168
    {
7169
      this();
7170
      this.message = message;
7171
    }
7172
 
7173
    /**
7174
     * Performs a deep copy on <i>other</i>.
7175
     */
7176
    public sendText_args(sendText_args other) {
7177
      if (other.isSetMessage()) {
7178
        this.message = new TextMessage(other.message);
7179
      }
7180
    }
7181
 
7182
    public sendText_args deepCopy() {
7183
      return new sendText_args(this);
7184
    }
7185
 
3430 rajveer 7186
    @Override
7187
    public void clear() {
7188
      this.message = null;
352 ashish 7189
    }
7190
 
7191
    public TextMessage getMessage() {
7192
      return this.message;
7193
    }
7194
 
3430 rajveer 7195
    public void setMessage(TextMessage message) {
352 ashish 7196
      this.message = message;
7197
    }
7198
 
7199
    public void unsetMessage() {
7200
      this.message = null;
7201
    }
7202
 
3430 rajveer 7203
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7204
    public boolean isSetMessage() {
7205
      return this.message != null;
7206
    }
7207
 
7208
    public void setMessageIsSet(boolean value) {
7209
      if (!value) {
7210
        this.message = null;
7211
      }
7212
    }
7213
 
7214
    public void setFieldValue(_Fields field, Object value) {
7215
      switch (field) {
7216
      case MESSAGE:
7217
        if (value == null) {
7218
          unsetMessage();
7219
        } else {
7220
          setMessage((TextMessage)value);
7221
        }
7222
        break;
7223
 
7224
      }
7225
    }
7226
 
7227
    public Object getFieldValue(_Fields field) {
7228
      switch (field) {
7229
      case MESSAGE:
7230
        return getMessage();
7231
 
7232
      }
7233
      throw new IllegalStateException();
7234
    }
7235
 
3430 rajveer 7236
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7237
    public boolean isSet(_Fields field) {
7238
      if (field == null) {
7239
        throw new IllegalArgumentException();
7240
      }
352 ashish 7241
 
7242
      switch (field) {
7243
      case MESSAGE:
7244
        return isSetMessage();
7245
      }
7246
      throw new IllegalStateException();
7247
    }
7248
 
7249
    @Override
7250
    public boolean equals(Object that) {
7251
      if (that == null)
7252
        return false;
7253
      if (that instanceof sendText_args)
7254
        return this.equals((sendText_args)that);
7255
      return false;
7256
    }
7257
 
7258
    public boolean equals(sendText_args that) {
7259
      if (that == null)
7260
        return false;
7261
 
7262
      boolean this_present_message = true && this.isSetMessage();
7263
      boolean that_present_message = true && that.isSetMessage();
7264
      if (this_present_message || that_present_message) {
7265
        if (!(this_present_message && that_present_message))
7266
          return false;
7267
        if (!this.message.equals(that.message))
7268
          return false;
7269
      }
7270
 
7271
      return true;
7272
    }
7273
 
7274
    @Override
7275
    public int hashCode() {
7276
      return 0;
7277
    }
7278
 
7279
    public int compareTo(sendText_args other) {
7280
      if (!getClass().equals(other.getClass())) {
7281
        return getClass().getName().compareTo(other.getClass().getName());
7282
      }
7283
 
7284
      int lastComparison = 0;
7285
      sendText_args typedOther = (sendText_args)other;
7286
 
3430 rajveer 7287
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7288
      if (lastComparison != 0) {
7289
        return lastComparison;
7290
      }
3430 rajveer 7291
      if (isSetMessage()) {
7292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7293
        if (lastComparison != 0) {
7294
          return lastComparison;
7295
        }
352 ashish 7296
      }
7297
      return 0;
7298
    }
7299
 
3430 rajveer 7300
    public _Fields fieldForId(int fieldId) {
7301
      return _Fields.findByThriftId(fieldId);
7302
    }
7303
 
7304
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7305
      org.apache.thrift.protocol.TField field;
352 ashish 7306
      iprot.readStructBegin();
7307
      while (true)
7308
      {
7309
        field = iprot.readFieldBegin();
3430 rajveer 7310
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7311
          break;
7312
        }
3430 rajveer 7313
        switch (field.id) {
7314
          case 1: // MESSAGE
7315
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7316
              this.message = new TextMessage();
7317
              this.message.read(iprot);
7318
            } else { 
7319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7320
            }
7321
            break;
7322
          default:
7323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7324
        }
3430 rajveer 7325
        iprot.readFieldEnd();
352 ashish 7326
      }
7327
      iprot.readStructEnd();
7328
      validate();
7329
    }
7330
 
3430 rajveer 7331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7332
      validate();
7333
 
7334
      oprot.writeStructBegin(STRUCT_DESC);
7335
      if (this.message != null) {
7336
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7337
        this.message.write(oprot);
7338
        oprot.writeFieldEnd();
7339
      }
7340
      oprot.writeFieldStop();
7341
      oprot.writeStructEnd();
7342
    }
7343
 
7344
    @Override
7345
    public String toString() {
7346
      StringBuilder sb = new StringBuilder("sendText_args(");
7347
      boolean first = true;
7348
 
7349
      sb.append("message:");
7350
      if (this.message == null) {
7351
        sb.append("null");
7352
      } else {
7353
        sb.append(this.message);
7354
      }
7355
      first = false;
7356
      sb.append(")");
7357
      return sb.toString();
7358
    }
7359
 
3430 rajveer 7360
    public void validate() throws org.apache.thrift.TException {
352 ashish 7361
      // check for required fields
7362
    }
7363
 
3430 rajveer 7364
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7365
      try {
7366
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7367
      } catch (org.apache.thrift.TException te) {
7368
        throw new java.io.IOException(te);
7369
      }
7370
    }
7371
 
7372
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7373
      try {
7374
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7375
      } catch (org.apache.thrift.TException te) {
7376
        throw new java.io.IOException(te);
7377
      }
7378
    }
7379
 
352 ashish 7380
  }
7381
 
3430 rajveer 7382
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
7383
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 7384
 
3430 rajveer 7385
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 7386
 
3430 rajveer 7387
    private HelperServiceException se; // required
352 ashish 7388
 
7389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7391
      SE((short)1, "se");
7392
 
7393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7394
 
7395
      static {
7396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7397
          byName.put(field.getFieldName(), field);
7398
        }
7399
      }
7400
 
7401
      /**
7402
       * Find the _Fields constant that matches fieldId, or null if its not found.
7403
       */
7404
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7405
        switch(fieldId) {
7406
          case 1: // SE
7407
            return SE;
7408
          default:
7409
            return null;
7410
        }
352 ashish 7411
      }
7412
 
7413
      /**
7414
       * Find the _Fields constant that matches fieldId, throwing an exception
7415
       * if it is not found.
7416
       */
7417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7418
        _Fields fields = findByThriftId(fieldId);
7419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7420
        return fields;
7421
      }
7422
 
7423
      /**
7424
       * Find the _Fields constant that matches name, or null if its not found.
7425
       */
7426
      public static _Fields findByName(String name) {
7427
        return byName.get(name);
7428
      }
7429
 
7430
      private final short _thriftId;
7431
      private final String _fieldName;
7432
 
7433
      _Fields(short thriftId, String fieldName) {
7434
        _thriftId = thriftId;
7435
        _fieldName = fieldName;
7436
      }
7437
 
7438
      public short getThriftFieldId() {
7439
        return _thriftId;
7440
      }
7441
 
7442
      public String getFieldName() {
7443
        return _fieldName;
7444
      }
7445
    }
7446
 
7447
    // isset id assignments
7448
 
3430 rajveer 7449
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7450
    static {
3430 rajveer 7451
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7452
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7453
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7454
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7455
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 7456
    }
7457
 
7458
    public sendText_result() {
7459
    }
7460
 
7461
    public sendText_result(
7462
      HelperServiceException se)
7463
    {
7464
      this();
7465
      this.se = se;
7466
    }
7467
 
7468
    /**
7469
     * Performs a deep copy on <i>other</i>.
7470
     */
7471
    public sendText_result(sendText_result other) {
7472
      if (other.isSetSe()) {
7473
        this.se = new HelperServiceException(other.se);
7474
      }
7475
    }
7476
 
7477
    public sendText_result deepCopy() {
7478
      return new sendText_result(this);
7479
    }
7480
 
3430 rajveer 7481
    @Override
7482
    public void clear() {
7483
      this.se = null;
352 ashish 7484
    }
7485
 
7486
    public HelperServiceException getSe() {
7487
      return this.se;
7488
    }
7489
 
3430 rajveer 7490
    public void setSe(HelperServiceException se) {
352 ashish 7491
      this.se = se;
7492
    }
7493
 
7494
    public void unsetSe() {
7495
      this.se = null;
7496
    }
7497
 
3430 rajveer 7498
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7499
    public boolean isSetSe() {
7500
      return this.se != null;
7501
    }
7502
 
7503
    public void setSeIsSet(boolean value) {
7504
      if (!value) {
7505
        this.se = null;
7506
      }
7507
    }
7508
 
7509
    public void setFieldValue(_Fields field, Object value) {
7510
      switch (field) {
7511
      case SE:
7512
        if (value == null) {
7513
          unsetSe();
7514
        } else {
7515
          setSe((HelperServiceException)value);
7516
        }
7517
        break;
7518
 
7519
      }
7520
    }
7521
 
7522
    public Object getFieldValue(_Fields field) {
7523
      switch (field) {
7524
      case SE:
7525
        return getSe();
7526
 
7527
      }
7528
      throw new IllegalStateException();
7529
    }
7530
 
3430 rajveer 7531
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7532
    public boolean isSet(_Fields field) {
7533
      if (field == null) {
7534
        throw new IllegalArgumentException();
7535
      }
352 ashish 7536
 
7537
      switch (field) {
7538
      case SE:
7539
        return isSetSe();
7540
      }
7541
      throw new IllegalStateException();
7542
    }
7543
 
7544
    @Override
7545
    public boolean equals(Object that) {
7546
      if (that == null)
7547
        return false;
7548
      if (that instanceof sendText_result)
7549
        return this.equals((sendText_result)that);
7550
      return false;
7551
    }
7552
 
7553
    public boolean equals(sendText_result that) {
7554
      if (that == null)
7555
        return false;
7556
 
7557
      boolean this_present_se = true && this.isSetSe();
7558
      boolean that_present_se = true && that.isSetSe();
7559
      if (this_present_se || that_present_se) {
7560
        if (!(this_present_se && that_present_se))
7561
          return false;
7562
        if (!this.se.equals(that.se))
7563
          return false;
7564
      }
7565
 
7566
      return true;
7567
    }
7568
 
7569
    @Override
7570
    public int hashCode() {
7571
      return 0;
7572
    }
7573
 
7574
    public int compareTo(sendText_result other) {
7575
      if (!getClass().equals(other.getClass())) {
7576
        return getClass().getName().compareTo(other.getClass().getName());
7577
      }
7578
 
7579
      int lastComparison = 0;
7580
      sendText_result typedOther = (sendText_result)other;
7581
 
3430 rajveer 7582
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7583
      if (lastComparison != 0) {
7584
        return lastComparison;
7585
      }
3430 rajveer 7586
      if (isSetSe()) {
7587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7588
        if (lastComparison != 0) {
7589
          return lastComparison;
7590
        }
352 ashish 7591
      }
7592
      return 0;
7593
    }
7594
 
3430 rajveer 7595
    public _Fields fieldForId(int fieldId) {
7596
      return _Fields.findByThriftId(fieldId);
7597
    }
7598
 
7599
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7600
      org.apache.thrift.protocol.TField field;
352 ashish 7601
      iprot.readStructBegin();
7602
      while (true)
7603
      {
7604
        field = iprot.readFieldBegin();
3430 rajveer 7605
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7606
          break;
7607
        }
3430 rajveer 7608
        switch (field.id) {
7609
          case 1: // SE
7610
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7611
              this.se = new HelperServiceException();
7612
              this.se.read(iprot);
7613
            } else { 
7614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7615
            }
7616
            break;
7617
          default:
7618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7619
        }
3430 rajveer 7620
        iprot.readFieldEnd();
352 ashish 7621
      }
7622
      iprot.readStructEnd();
7623
      validate();
7624
    }
7625
 
3430 rajveer 7626
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7627
      oprot.writeStructBegin(STRUCT_DESC);
7628
 
7629
      if (this.isSetSe()) {
7630
        oprot.writeFieldBegin(SE_FIELD_DESC);
7631
        this.se.write(oprot);
7632
        oprot.writeFieldEnd();
7633
      }
7634
      oprot.writeFieldStop();
7635
      oprot.writeStructEnd();
7636
    }
7637
 
7638
    @Override
7639
    public String toString() {
7640
      StringBuilder sb = new StringBuilder("sendText_result(");
7641
      boolean first = true;
7642
 
7643
      sb.append("se:");
7644
      if (this.se == null) {
7645
        sb.append("null");
7646
      } else {
7647
        sb.append(this.se);
7648
      }
7649
      first = false;
7650
      sb.append(")");
7651
      return sb.toString();
7652
    }
7653
 
3430 rajveer 7654
    public void validate() throws org.apache.thrift.TException {
352 ashish 7655
      // check for required fields
7656
    }
7657
 
3430 rajveer 7658
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7659
      try {
7660
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7661
      } catch (org.apache.thrift.TException te) {
7662
        throw new java.io.IOException(te);
7663
      }
7664
    }
7665
 
7666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7667
      try {
7668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7669
      } catch (org.apache.thrift.TException te) {
7670
        throw new java.io.IOException(te);
7671
      }
7672
    }
7673
 
352 ashish 7674
  }
7675
 
3430 rajveer 7676
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
7677
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 7678
 
3430 rajveer 7679
    private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 7680
 
3430 rajveer 7681
    private Message message; // required
352 ashish 7682
 
7683
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7684
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7685
      MESSAGE((short)1, "message");
7686
 
7687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7688
 
7689
      static {
7690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7691
          byName.put(field.getFieldName(), field);
7692
        }
7693
      }
7694
 
7695
      /**
7696
       * Find the _Fields constant that matches fieldId, or null if its not found.
7697
       */
7698
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7699
        switch(fieldId) {
7700
          case 1: // MESSAGE
7701
            return MESSAGE;
7702
          default:
7703
            return null;
7704
        }
352 ashish 7705
      }
7706
 
7707
      /**
7708
       * Find the _Fields constant that matches fieldId, throwing an exception
7709
       * if it is not found.
7710
       */
7711
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7712
        _Fields fields = findByThriftId(fieldId);
7713
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7714
        return fields;
7715
      }
7716
 
7717
      /**
7718
       * Find the _Fields constant that matches name, or null if its not found.
7719
       */
7720
      public static _Fields findByName(String name) {
7721
        return byName.get(name);
7722
      }
7723
 
7724
      private final short _thriftId;
7725
      private final String _fieldName;
7726
 
7727
      _Fields(short thriftId, String fieldName) {
7728
        _thriftId = thriftId;
7729
        _fieldName = fieldName;
7730
      }
7731
 
7732
      public short getThriftFieldId() {
7733
        return _thriftId;
7734
      }
7735
 
7736
      public String getFieldName() {
7737
        return _fieldName;
7738
      }
7739
    }
7740
 
7741
    // isset id assignments
7742
 
3430 rajveer 7743
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7744
    static {
3430 rajveer 7745
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7746
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7747
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 7750
    }
7751
 
7752
    public addMessage_args() {
7753
    }
7754
 
7755
    public addMessage_args(
7756
      Message message)
7757
    {
7758
      this();
7759
      this.message = message;
7760
    }
7761
 
7762
    /**
7763
     * Performs a deep copy on <i>other</i>.
7764
     */
7765
    public addMessage_args(addMessage_args other) {
7766
      if (other.isSetMessage()) {
7767
        this.message = new Message(other.message);
7768
      }
7769
    }
7770
 
7771
    public addMessage_args deepCopy() {
7772
      return new addMessage_args(this);
7773
    }
7774
 
3430 rajveer 7775
    @Override
7776
    public void clear() {
7777
      this.message = null;
352 ashish 7778
    }
7779
 
7780
    public Message getMessage() {
7781
      return this.message;
7782
    }
7783
 
3430 rajveer 7784
    public void setMessage(Message message) {
352 ashish 7785
      this.message = message;
7786
    }
7787
 
7788
    public void unsetMessage() {
7789
      this.message = null;
7790
    }
7791
 
3430 rajveer 7792
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7793
    public boolean isSetMessage() {
7794
      return this.message != null;
7795
    }
7796
 
7797
    public void setMessageIsSet(boolean value) {
7798
      if (!value) {
7799
        this.message = null;
7800
      }
7801
    }
7802
 
7803
    public void setFieldValue(_Fields field, Object value) {
7804
      switch (field) {
7805
      case MESSAGE:
7806
        if (value == null) {
7807
          unsetMessage();
7808
        } else {
7809
          setMessage((Message)value);
7810
        }
7811
        break;
7812
 
7813
      }
7814
    }
7815
 
7816
    public Object getFieldValue(_Fields field) {
7817
      switch (field) {
7818
      case MESSAGE:
7819
        return getMessage();
7820
 
7821
      }
7822
      throw new IllegalStateException();
7823
    }
7824
 
3430 rajveer 7825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7826
    public boolean isSet(_Fields field) {
7827
      if (field == null) {
7828
        throw new IllegalArgumentException();
7829
      }
352 ashish 7830
 
7831
      switch (field) {
7832
      case MESSAGE:
7833
        return isSetMessage();
7834
      }
7835
      throw new IllegalStateException();
7836
    }
7837
 
7838
    @Override
7839
    public boolean equals(Object that) {
7840
      if (that == null)
7841
        return false;
7842
      if (that instanceof addMessage_args)
7843
        return this.equals((addMessage_args)that);
7844
      return false;
7845
    }
7846
 
7847
    public boolean equals(addMessage_args that) {
7848
      if (that == null)
7849
        return false;
7850
 
7851
      boolean this_present_message = true && this.isSetMessage();
7852
      boolean that_present_message = true && that.isSetMessage();
7853
      if (this_present_message || that_present_message) {
7854
        if (!(this_present_message && that_present_message))
7855
          return false;
7856
        if (!this.message.equals(that.message))
7857
          return false;
7858
      }
7859
 
7860
      return true;
7861
    }
7862
 
7863
    @Override
7864
    public int hashCode() {
7865
      return 0;
7866
    }
7867
 
7868
    public int compareTo(addMessage_args other) {
7869
      if (!getClass().equals(other.getClass())) {
7870
        return getClass().getName().compareTo(other.getClass().getName());
7871
      }
7872
 
7873
      int lastComparison = 0;
7874
      addMessage_args typedOther = (addMessage_args)other;
7875
 
3430 rajveer 7876
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7877
      if (lastComparison != 0) {
7878
        return lastComparison;
7879
      }
3430 rajveer 7880
      if (isSetMessage()) {
7881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7882
        if (lastComparison != 0) {
7883
          return lastComparison;
7884
        }
352 ashish 7885
      }
7886
      return 0;
7887
    }
7888
 
3430 rajveer 7889
    public _Fields fieldForId(int fieldId) {
7890
      return _Fields.findByThriftId(fieldId);
7891
    }
7892
 
7893
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7894
      org.apache.thrift.protocol.TField field;
352 ashish 7895
      iprot.readStructBegin();
7896
      while (true)
7897
      {
7898
        field = iprot.readFieldBegin();
3430 rajveer 7899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7900
          break;
7901
        }
3430 rajveer 7902
        switch (field.id) {
7903
          case 1: // MESSAGE
7904
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7905
              this.message = new Message();
7906
              this.message.read(iprot);
7907
            } else { 
7908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7909
            }
7910
            break;
7911
          default:
7912
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7913
        }
3430 rajveer 7914
        iprot.readFieldEnd();
352 ashish 7915
      }
7916
      iprot.readStructEnd();
7917
      validate();
7918
    }
7919
 
3430 rajveer 7920
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7921
      validate();
7922
 
7923
      oprot.writeStructBegin(STRUCT_DESC);
7924
      if (this.message != null) {
7925
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7926
        this.message.write(oprot);
7927
        oprot.writeFieldEnd();
7928
      }
7929
      oprot.writeFieldStop();
7930
      oprot.writeStructEnd();
7931
    }
7932
 
7933
    @Override
7934
    public String toString() {
7935
      StringBuilder sb = new StringBuilder("addMessage_args(");
7936
      boolean first = true;
7937
 
7938
      sb.append("message:");
7939
      if (this.message == null) {
7940
        sb.append("null");
7941
      } else {
7942
        sb.append(this.message);
7943
      }
7944
      first = false;
7945
      sb.append(")");
7946
      return sb.toString();
7947
    }
7948
 
3430 rajveer 7949
    public void validate() throws org.apache.thrift.TException {
352 ashish 7950
      // check for required fields
7951
    }
7952
 
3430 rajveer 7953
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7954
      try {
7955
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7956
      } catch (org.apache.thrift.TException te) {
7957
        throw new java.io.IOException(te);
7958
      }
7959
    }
7960
 
7961
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7962
      try {
7963
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7964
      } catch (org.apache.thrift.TException te) {
7965
        throw new java.io.IOException(te);
7966
      }
7967
    }
7968
 
352 ashish 7969
  }
7970
 
3430 rajveer 7971
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
7972
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 7973
 
3430 rajveer 7974
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 7975
 
3430 rajveer 7976
    private HelperServiceException se; // required
352 ashish 7977
 
7978
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7979
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7980
      SE((short)1, "se");
7981
 
7982
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7983
 
7984
      static {
7985
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7986
          byName.put(field.getFieldName(), field);
7987
        }
7988
      }
7989
 
7990
      /**
7991
       * Find the _Fields constant that matches fieldId, or null if its not found.
7992
       */
7993
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7994
        switch(fieldId) {
7995
          case 1: // SE
7996
            return SE;
7997
          default:
7998
            return null;
7999
        }
352 ashish 8000
      }
8001
 
8002
      /**
8003
       * Find the _Fields constant that matches fieldId, throwing an exception
8004
       * if it is not found.
8005
       */
8006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8007
        _Fields fields = findByThriftId(fieldId);
8008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8009
        return fields;
8010
      }
8011
 
8012
      /**
8013
       * Find the _Fields constant that matches name, or null if its not found.
8014
       */
8015
      public static _Fields findByName(String name) {
8016
        return byName.get(name);
8017
      }
8018
 
8019
      private final short _thriftId;
8020
      private final String _fieldName;
8021
 
8022
      _Fields(short thriftId, String fieldName) {
8023
        _thriftId = thriftId;
8024
        _fieldName = fieldName;
8025
      }
8026
 
8027
      public short getThriftFieldId() {
8028
        return _thriftId;
8029
      }
8030
 
8031
      public String getFieldName() {
8032
        return _fieldName;
8033
      }
8034
    }
8035
 
8036
    // isset id assignments
8037
 
3430 rajveer 8038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8039
    static {
3430 rajveer 8040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8041
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8042
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8043
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8044
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 8045
    }
8046
 
8047
    public addMessage_result() {
8048
    }
8049
 
8050
    public addMessage_result(
8051
      HelperServiceException se)
8052
    {
8053
      this();
8054
      this.se = se;
8055
    }
8056
 
8057
    /**
8058
     * Performs a deep copy on <i>other</i>.
8059
     */
8060
    public addMessage_result(addMessage_result other) {
8061
      if (other.isSetSe()) {
8062
        this.se = new HelperServiceException(other.se);
8063
      }
8064
    }
8065
 
8066
    public addMessage_result deepCopy() {
8067
      return new addMessage_result(this);
8068
    }
8069
 
3430 rajveer 8070
    @Override
8071
    public void clear() {
8072
      this.se = null;
352 ashish 8073
    }
8074
 
8075
    public HelperServiceException getSe() {
8076
      return this.se;
8077
    }
8078
 
3430 rajveer 8079
    public void setSe(HelperServiceException se) {
352 ashish 8080
      this.se = se;
8081
    }
8082
 
8083
    public void unsetSe() {
8084
      this.se = null;
8085
    }
8086
 
3430 rajveer 8087
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8088
    public boolean isSetSe() {
8089
      return this.se != null;
8090
    }
8091
 
8092
    public void setSeIsSet(boolean value) {
8093
      if (!value) {
8094
        this.se = null;
8095
      }
8096
    }
8097
 
8098
    public void setFieldValue(_Fields field, Object value) {
8099
      switch (field) {
8100
      case SE:
8101
        if (value == null) {
8102
          unsetSe();
8103
        } else {
8104
          setSe((HelperServiceException)value);
8105
        }
8106
        break;
8107
 
8108
      }
8109
    }
8110
 
8111
    public Object getFieldValue(_Fields field) {
8112
      switch (field) {
8113
      case SE:
8114
        return getSe();
8115
 
8116
      }
8117
      throw new IllegalStateException();
8118
    }
8119
 
3430 rajveer 8120
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8121
    public boolean isSet(_Fields field) {
8122
      if (field == null) {
8123
        throw new IllegalArgumentException();
8124
      }
352 ashish 8125
 
8126
      switch (field) {
8127
      case SE:
8128
        return isSetSe();
8129
      }
8130
      throw new IllegalStateException();
8131
    }
8132
 
8133
    @Override
8134
    public boolean equals(Object that) {
8135
      if (that == null)
8136
        return false;
8137
      if (that instanceof addMessage_result)
8138
        return this.equals((addMessage_result)that);
8139
      return false;
8140
    }
8141
 
8142
    public boolean equals(addMessage_result that) {
8143
      if (that == null)
8144
        return false;
8145
 
8146
      boolean this_present_se = true && this.isSetSe();
8147
      boolean that_present_se = true && that.isSetSe();
8148
      if (this_present_se || that_present_se) {
8149
        if (!(this_present_se && that_present_se))
8150
          return false;
8151
        if (!this.se.equals(that.se))
8152
          return false;
8153
      }
8154
 
8155
      return true;
8156
    }
8157
 
8158
    @Override
8159
    public int hashCode() {
8160
      return 0;
8161
    }
8162
 
8163
    public int compareTo(addMessage_result other) {
8164
      if (!getClass().equals(other.getClass())) {
8165
        return getClass().getName().compareTo(other.getClass().getName());
8166
      }
8167
 
8168
      int lastComparison = 0;
8169
      addMessage_result typedOther = (addMessage_result)other;
8170
 
3430 rajveer 8171
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8172
      if (lastComparison != 0) {
8173
        return lastComparison;
8174
      }
3430 rajveer 8175
      if (isSetSe()) {
8176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8177
        if (lastComparison != 0) {
8178
          return lastComparison;
8179
        }
352 ashish 8180
      }
8181
      return 0;
8182
    }
8183
 
3430 rajveer 8184
    public _Fields fieldForId(int fieldId) {
8185
      return _Fields.findByThriftId(fieldId);
8186
    }
8187
 
8188
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8189
      org.apache.thrift.protocol.TField field;
352 ashish 8190
      iprot.readStructBegin();
8191
      while (true)
8192
      {
8193
        field = iprot.readFieldBegin();
3430 rajveer 8194
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8195
          break;
8196
        }
3430 rajveer 8197
        switch (field.id) {
8198
          case 1: // SE
8199
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8200
              this.se = new HelperServiceException();
8201
              this.se.read(iprot);
8202
            } else { 
8203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8204
            }
8205
            break;
8206
          default:
8207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8208
        }
3430 rajveer 8209
        iprot.readFieldEnd();
352 ashish 8210
      }
8211
      iprot.readStructEnd();
8212
      validate();
8213
    }
8214
 
3430 rajveer 8215
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8216
      oprot.writeStructBegin(STRUCT_DESC);
8217
 
8218
      if (this.isSetSe()) {
8219
        oprot.writeFieldBegin(SE_FIELD_DESC);
8220
        this.se.write(oprot);
8221
        oprot.writeFieldEnd();
8222
      }
8223
      oprot.writeFieldStop();
8224
      oprot.writeStructEnd();
8225
    }
8226
 
8227
    @Override
8228
    public String toString() {
8229
      StringBuilder sb = new StringBuilder("addMessage_result(");
8230
      boolean first = true;
8231
 
8232
      sb.append("se:");
8233
      if (this.se == null) {
8234
        sb.append("null");
8235
      } else {
8236
        sb.append(this.se);
8237
      }
8238
      first = false;
8239
      sb.append(")");
8240
      return sb.toString();
8241
    }
8242
 
3430 rajveer 8243
    public void validate() throws org.apache.thrift.TException {
352 ashish 8244
      // check for required fields
8245
    }
8246
 
3430 rajveer 8247
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8248
      try {
8249
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8250
      } catch (org.apache.thrift.TException te) {
8251
        throw new java.io.IOException(te);
8252
      }
8253
    }
8254
 
8255
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8256
      try {
8257
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8258
      } catch (org.apache.thrift.TException te) {
8259
        throw new java.io.IOException(te);
8260
      }
8261
    }
8262
 
352 ashish 8263
  }
8264
 
3430 rajveer 8265
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
8266
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 8267
 
3430 rajveer 8268
    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);
8269
    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)2);
352 ashish 8270
 
3430 rajveer 8271
    private long id; // required
8272
    private String message; // required
352 ashish 8273
 
8274
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8275
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8276
      ID((short)1, "id"),
8277
      MESSAGE((short)2, "message");
8278
 
8279
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8280
 
8281
      static {
8282
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8283
          byName.put(field.getFieldName(), field);
8284
        }
8285
      }
8286
 
8287
      /**
8288
       * Find the _Fields constant that matches fieldId, or null if its not found.
8289
       */
8290
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8291
        switch(fieldId) {
8292
          case 1: // ID
8293
            return ID;
8294
          case 2: // MESSAGE
8295
            return MESSAGE;
8296
          default:
8297
            return null;
8298
        }
352 ashish 8299
      }
8300
 
8301
      /**
8302
       * Find the _Fields constant that matches fieldId, throwing an exception
8303
       * if it is not found.
8304
       */
8305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8306
        _Fields fields = findByThriftId(fieldId);
8307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8308
        return fields;
8309
      }
8310
 
8311
      /**
8312
       * Find the _Fields constant that matches name, or null if its not found.
8313
       */
8314
      public static _Fields findByName(String name) {
8315
        return byName.get(name);
8316
      }
8317
 
8318
      private final short _thriftId;
8319
      private final String _fieldName;
8320
 
8321
      _Fields(short thriftId, String fieldName) {
8322
        _thriftId = thriftId;
8323
        _fieldName = fieldName;
8324
      }
8325
 
8326
      public short getThriftFieldId() {
8327
        return _thriftId;
8328
      }
8329
 
8330
      public String getFieldName() {
8331
        return _fieldName;
8332
      }
8333
    }
8334
 
8335
    // isset id assignments
8336
    private static final int __ID_ISSET_ID = 0;
8337
    private BitSet __isset_bit_vector = new BitSet(1);
8338
 
3430 rajveer 8339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8340
    static {
3430 rajveer 8341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8342
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8344
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8346
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8347
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 8348
    }
8349
 
8350
    public updateMessage_args() {
8351
    }
8352
 
8353
    public updateMessage_args(
8354
      long id,
8355
      String message)
8356
    {
8357
      this();
8358
      this.id = id;
8359
      setIdIsSet(true);
8360
      this.message = message;
8361
    }
8362
 
8363
    /**
8364
     * Performs a deep copy on <i>other</i>.
8365
     */
8366
    public updateMessage_args(updateMessage_args other) {
8367
      __isset_bit_vector.clear();
8368
      __isset_bit_vector.or(other.__isset_bit_vector);
8369
      this.id = other.id;
8370
      if (other.isSetMessage()) {
8371
        this.message = other.message;
8372
      }
8373
    }
8374
 
8375
    public updateMessage_args deepCopy() {
8376
      return new updateMessage_args(this);
8377
    }
8378
 
3430 rajveer 8379
    @Override
8380
    public void clear() {
8381
      setIdIsSet(false);
8382
      this.id = 0;
8383
      this.message = null;
352 ashish 8384
    }
8385
 
8386
    public long getId() {
8387
      return this.id;
8388
    }
8389
 
3430 rajveer 8390
    public void setId(long id) {
352 ashish 8391
      this.id = id;
8392
      setIdIsSet(true);
8393
    }
8394
 
8395
    public void unsetId() {
8396
      __isset_bit_vector.clear(__ID_ISSET_ID);
8397
    }
8398
 
3430 rajveer 8399
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8400
    public boolean isSetId() {
8401
      return __isset_bit_vector.get(__ID_ISSET_ID);
8402
    }
8403
 
8404
    public void setIdIsSet(boolean value) {
8405
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8406
    }
8407
 
8408
    public String getMessage() {
8409
      return this.message;
8410
    }
8411
 
3430 rajveer 8412
    public void setMessage(String message) {
352 ashish 8413
      this.message = message;
8414
    }
8415
 
8416
    public void unsetMessage() {
8417
      this.message = null;
8418
    }
8419
 
3430 rajveer 8420
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 8421
    public boolean isSetMessage() {
8422
      return this.message != null;
8423
    }
8424
 
8425
    public void setMessageIsSet(boolean value) {
8426
      if (!value) {
8427
        this.message = null;
8428
      }
8429
    }
8430
 
8431
    public void setFieldValue(_Fields field, Object value) {
8432
      switch (field) {
8433
      case ID:
8434
        if (value == null) {
8435
          unsetId();
8436
        } else {
8437
          setId((Long)value);
8438
        }
8439
        break;
8440
 
8441
      case MESSAGE:
8442
        if (value == null) {
8443
          unsetMessage();
8444
        } else {
8445
          setMessage((String)value);
8446
        }
8447
        break;
8448
 
8449
      }
8450
    }
8451
 
8452
    public Object getFieldValue(_Fields field) {
8453
      switch (field) {
8454
      case ID:
3430 rajveer 8455
        return Long.valueOf(getId());
352 ashish 8456
 
8457
      case MESSAGE:
8458
        return getMessage();
8459
 
8460
      }
8461
      throw new IllegalStateException();
8462
    }
8463
 
3430 rajveer 8464
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8465
    public boolean isSet(_Fields field) {
8466
      if (field == null) {
8467
        throw new IllegalArgumentException();
8468
      }
352 ashish 8469
 
8470
      switch (field) {
8471
      case ID:
8472
        return isSetId();
8473
      case MESSAGE:
8474
        return isSetMessage();
8475
      }
8476
      throw new IllegalStateException();
8477
    }
8478
 
8479
    @Override
8480
    public boolean equals(Object that) {
8481
      if (that == null)
8482
        return false;
8483
      if (that instanceof updateMessage_args)
8484
        return this.equals((updateMessage_args)that);
8485
      return false;
8486
    }
8487
 
8488
    public boolean equals(updateMessage_args that) {
8489
      if (that == null)
8490
        return false;
8491
 
8492
      boolean this_present_id = true;
8493
      boolean that_present_id = true;
8494
      if (this_present_id || that_present_id) {
8495
        if (!(this_present_id && that_present_id))
8496
          return false;
8497
        if (this.id != that.id)
8498
          return false;
8499
      }
8500
 
8501
      boolean this_present_message = true && this.isSetMessage();
8502
      boolean that_present_message = true && that.isSetMessage();
8503
      if (this_present_message || that_present_message) {
8504
        if (!(this_present_message && that_present_message))
8505
          return false;
8506
        if (!this.message.equals(that.message))
8507
          return false;
8508
      }
8509
 
8510
      return true;
8511
    }
8512
 
8513
    @Override
8514
    public int hashCode() {
8515
      return 0;
8516
    }
8517
 
8518
    public int compareTo(updateMessage_args other) {
8519
      if (!getClass().equals(other.getClass())) {
8520
        return getClass().getName().compareTo(other.getClass().getName());
8521
      }
8522
 
8523
      int lastComparison = 0;
8524
      updateMessage_args typedOther = (updateMessage_args)other;
8525
 
3430 rajveer 8526
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 8527
      if (lastComparison != 0) {
8528
        return lastComparison;
8529
      }
3430 rajveer 8530
      if (isSetId()) {
8531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8532
        if (lastComparison != 0) {
8533
          return lastComparison;
8534
        }
352 ashish 8535
      }
3430 rajveer 8536
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 8537
      if (lastComparison != 0) {
8538
        return lastComparison;
8539
      }
3430 rajveer 8540
      if (isSetMessage()) {
8541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
8542
        if (lastComparison != 0) {
8543
          return lastComparison;
8544
        }
352 ashish 8545
      }
8546
      return 0;
8547
    }
8548
 
3430 rajveer 8549
    public _Fields fieldForId(int fieldId) {
8550
      return _Fields.findByThriftId(fieldId);
8551
    }
8552
 
8553
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8554
      org.apache.thrift.protocol.TField field;
352 ashish 8555
      iprot.readStructBegin();
8556
      while (true)
8557
      {
8558
        field = iprot.readFieldBegin();
3430 rajveer 8559
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8560
          break;
8561
        }
3430 rajveer 8562
        switch (field.id) {
8563
          case 1: // ID
8564
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8565
              this.id = iprot.readI64();
8566
              setIdIsSet(true);
8567
            } else { 
8568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8569
            }
8570
            break;
8571
          case 2: // MESSAGE
8572
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8573
              this.message = iprot.readString();
8574
            } else { 
8575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8576
            }
8577
            break;
8578
          default:
8579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8580
        }
3430 rajveer 8581
        iprot.readFieldEnd();
352 ashish 8582
      }
8583
      iprot.readStructEnd();
8584
      validate();
8585
    }
8586
 
3430 rajveer 8587
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8588
      validate();
8589
 
8590
      oprot.writeStructBegin(STRUCT_DESC);
8591
      oprot.writeFieldBegin(ID_FIELD_DESC);
8592
      oprot.writeI64(this.id);
8593
      oprot.writeFieldEnd();
8594
      if (this.message != null) {
8595
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
8596
        oprot.writeString(this.message);
8597
        oprot.writeFieldEnd();
8598
      }
8599
      oprot.writeFieldStop();
8600
      oprot.writeStructEnd();
8601
    }
8602
 
8603
    @Override
8604
    public String toString() {
8605
      StringBuilder sb = new StringBuilder("updateMessage_args(");
8606
      boolean first = true;
8607
 
8608
      sb.append("id:");
8609
      sb.append(this.id);
8610
      first = false;
8611
      if (!first) sb.append(", ");
8612
      sb.append("message:");
8613
      if (this.message == null) {
8614
        sb.append("null");
8615
      } else {
8616
        sb.append(this.message);
8617
      }
8618
      first = false;
8619
      sb.append(")");
8620
      return sb.toString();
8621
    }
8622
 
3430 rajveer 8623
    public void validate() throws org.apache.thrift.TException {
352 ashish 8624
      // check for required fields
8625
    }
8626
 
3430 rajveer 8627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8628
      try {
8629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8630
      } catch (org.apache.thrift.TException te) {
8631
        throw new java.io.IOException(te);
8632
      }
8633
    }
8634
 
8635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8636
      try {
8637
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8638
        __isset_bit_vector = new BitSet(1);
8639
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8640
      } catch (org.apache.thrift.TException te) {
8641
        throw new java.io.IOException(te);
8642
      }
8643
    }
8644
 
352 ashish 8645
  }
8646
 
3430 rajveer 8647
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
8648
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 8649
 
3430 rajveer 8650
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 8651
 
3430 rajveer 8652
    private HelperServiceException se; // required
352 ashish 8653
 
8654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8656
      SE((short)1, "se");
8657
 
8658
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8659
 
8660
      static {
8661
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8662
          byName.put(field.getFieldName(), field);
8663
        }
8664
      }
8665
 
8666
      /**
8667
       * Find the _Fields constant that matches fieldId, or null if its not found.
8668
       */
8669
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8670
        switch(fieldId) {
8671
          case 1: // SE
8672
            return SE;
8673
          default:
8674
            return null;
8675
        }
352 ashish 8676
      }
8677
 
8678
      /**
8679
       * Find the _Fields constant that matches fieldId, throwing an exception
8680
       * if it is not found.
8681
       */
8682
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8683
        _Fields fields = findByThriftId(fieldId);
8684
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8685
        return fields;
8686
      }
8687
 
8688
      /**
8689
       * Find the _Fields constant that matches name, or null if its not found.
8690
       */
8691
      public static _Fields findByName(String name) {
8692
        return byName.get(name);
8693
      }
8694
 
8695
      private final short _thriftId;
8696
      private final String _fieldName;
8697
 
8698
      _Fields(short thriftId, String fieldName) {
8699
        _thriftId = thriftId;
8700
        _fieldName = fieldName;
8701
      }
8702
 
8703
      public short getThriftFieldId() {
8704
        return _thriftId;
8705
      }
8706
 
8707
      public String getFieldName() {
8708
        return _fieldName;
8709
      }
8710
    }
8711
 
8712
    // isset id assignments
8713
 
3430 rajveer 8714
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8715
    static {
3430 rajveer 8716
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8717
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8718
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 8721
    }
8722
 
8723
    public updateMessage_result() {
8724
    }
8725
 
8726
    public updateMessage_result(
8727
      HelperServiceException se)
8728
    {
8729
      this();
8730
      this.se = se;
8731
    }
8732
 
8733
    /**
8734
     * Performs a deep copy on <i>other</i>.
8735
     */
8736
    public updateMessage_result(updateMessage_result other) {
8737
      if (other.isSetSe()) {
8738
        this.se = new HelperServiceException(other.se);
8739
      }
8740
    }
8741
 
8742
    public updateMessage_result deepCopy() {
8743
      return new updateMessage_result(this);
8744
    }
8745
 
3430 rajveer 8746
    @Override
8747
    public void clear() {
8748
      this.se = null;
352 ashish 8749
    }
8750
 
8751
    public HelperServiceException getSe() {
8752
      return this.se;
8753
    }
8754
 
3430 rajveer 8755
    public void setSe(HelperServiceException se) {
352 ashish 8756
      this.se = se;
8757
    }
8758
 
8759
    public void unsetSe() {
8760
      this.se = null;
8761
    }
8762
 
3430 rajveer 8763
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8764
    public boolean isSetSe() {
8765
      return this.se != null;
8766
    }
8767
 
8768
    public void setSeIsSet(boolean value) {
8769
      if (!value) {
8770
        this.se = null;
8771
      }
8772
    }
8773
 
8774
    public void setFieldValue(_Fields field, Object value) {
8775
      switch (field) {
8776
      case SE:
8777
        if (value == null) {
8778
          unsetSe();
8779
        } else {
8780
          setSe((HelperServiceException)value);
8781
        }
8782
        break;
8783
 
8784
      }
8785
    }
8786
 
8787
    public Object getFieldValue(_Fields field) {
8788
      switch (field) {
8789
      case SE:
8790
        return getSe();
8791
 
8792
      }
8793
      throw new IllegalStateException();
8794
    }
8795
 
3430 rajveer 8796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8797
    public boolean isSet(_Fields field) {
8798
      if (field == null) {
8799
        throw new IllegalArgumentException();
8800
      }
352 ashish 8801
 
8802
      switch (field) {
8803
      case SE:
8804
        return isSetSe();
8805
      }
8806
      throw new IllegalStateException();
8807
    }
8808
 
8809
    @Override
8810
    public boolean equals(Object that) {
8811
      if (that == null)
8812
        return false;
8813
      if (that instanceof updateMessage_result)
8814
        return this.equals((updateMessage_result)that);
8815
      return false;
8816
    }
8817
 
8818
    public boolean equals(updateMessage_result that) {
8819
      if (that == null)
8820
        return false;
8821
 
8822
      boolean this_present_se = true && this.isSetSe();
8823
      boolean that_present_se = true && that.isSetSe();
8824
      if (this_present_se || that_present_se) {
8825
        if (!(this_present_se && that_present_se))
8826
          return false;
8827
        if (!this.se.equals(that.se))
8828
          return false;
8829
      }
8830
 
8831
      return true;
8832
    }
8833
 
8834
    @Override
8835
    public int hashCode() {
8836
      return 0;
8837
    }
8838
 
8839
    public int compareTo(updateMessage_result other) {
8840
      if (!getClass().equals(other.getClass())) {
8841
        return getClass().getName().compareTo(other.getClass().getName());
8842
      }
8843
 
8844
      int lastComparison = 0;
8845
      updateMessage_result typedOther = (updateMessage_result)other;
8846
 
3430 rajveer 8847
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8848
      if (lastComparison != 0) {
8849
        return lastComparison;
8850
      }
3430 rajveer 8851
      if (isSetSe()) {
8852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8853
        if (lastComparison != 0) {
8854
          return lastComparison;
8855
        }
352 ashish 8856
      }
8857
      return 0;
8858
    }
8859
 
3430 rajveer 8860
    public _Fields fieldForId(int fieldId) {
8861
      return _Fields.findByThriftId(fieldId);
8862
    }
8863
 
8864
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8865
      org.apache.thrift.protocol.TField field;
352 ashish 8866
      iprot.readStructBegin();
8867
      while (true)
8868
      {
8869
        field = iprot.readFieldBegin();
3430 rajveer 8870
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8871
          break;
8872
        }
3430 rajveer 8873
        switch (field.id) {
8874
          case 1: // SE
8875
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8876
              this.se = new HelperServiceException();
8877
              this.se.read(iprot);
8878
            } else { 
8879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8880
            }
8881
            break;
8882
          default:
8883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8884
        }
3430 rajveer 8885
        iprot.readFieldEnd();
352 ashish 8886
      }
8887
      iprot.readStructEnd();
8888
      validate();
8889
    }
8890
 
3430 rajveer 8891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8892
      oprot.writeStructBegin(STRUCT_DESC);
8893
 
8894
      if (this.isSetSe()) {
8895
        oprot.writeFieldBegin(SE_FIELD_DESC);
8896
        this.se.write(oprot);
8897
        oprot.writeFieldEnd();
8898
      }
8899
      oprot.writeFieldStop();
8900
      oprot.writeStructEnd();
8901
    }
8902
 
8903
    @Override
8904
    public String toString() {
8905
      StringBuilder sb = new StringBuilder("updateMessage_result(");
8906
      boolean first = true;
8907
 
8908
      sb.append("se:");
8909
      if (this.se == null) {
8910
        sb.append("null");
8911
      } else {
8912
        sb.append(this.se);
8913
      }
8914
      first = false;
8915
      sb.append(")");
8916
      return sb.toString();
8917
    }
8918
 
3430 rajveer 8919
    public void validate() throws org.apache.thrift.TException {
352 ashish 8920
      // check for required fields
8921
    }
8922
 
3430 rajveer 8923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8924
      try {
8925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8926
      } catch (org.apache.thrift.TException te) {
8927
        throw new java.io.IOException(te);
8928
      }
8929
    }
8930
 
8931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8932
      try {
8933
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8934
      } catch (org.apache.thrift.TException te) {
8935
        throw new java.io.IOException(te);
8936
      }
8937
    }
8938
 
352 ashish 8939
  }
8940
 
3430 rajveer 8941
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
8942
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 8943
 
3430 rajveer 8944
    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);
352 ashish 8945
 
3430 rajveer 8946
    private long id; // required
352 ashish 8947
 
8948
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8949
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8950
      ID((short)1, "id");
8951
 
8952
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8953
 
8954
      static {
8955
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8956
          byName.put(field.getFieldName(), field);
8957
        }
8958
      }
8959
 
8960
      /**
8961
       * Find the _Fields constant that matches fieldId, or null if its not found.
8962
       */
8963
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8964
        switch(fieldId) {
8965
          case 1: // ID
8966
            return ID;
8967
          default:
8968
            return null;
8969
        }
352 ashish 8970
      }
8971
 
8972
      /**
8973
       * Find the _Fields constant that matches fieldId, throwing an exception
8974
       * if it is not found.
8975
       */
8976
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8977
        _Fields fields = findByThriftId(fieldId);
8978
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8979
        return fields;
8980
      }
8981
 
8982
      /**
8983
       * Find the _Fields constant that matches name, or null if its not found.
8984
       */
8985
      public static _Fields findByName(String name) {
8986
        return byName.get(name);
8987
      }
8988
 
8989
      private final short _thriftId;
8990
      private final String _fieldName;
8991
 
8992
      _Fields(short thriftId, String fieldName) {
8993
        _thriftId = thriftId;
8994
        _fieldName = fieldName;
8995
      }
8996
 
8997
      public short getThriftFieldId() {
8998
        return _thriftId;
8999
      }
9000
 
9001
      public String getFieldName() {
9002
        return _fieldName;
9003
      }
9004
    }
9005
 
9006
    // isset id assignments
9007
    private static final int __ID_ISSET_ID = 0;
9008
    private BitSet __isset_bit_vector = new BitSet(1);
9009
 
3430 rajveer 9010
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9011
    static {
3430 rajveer 9012
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9013
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9014
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9015
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9016
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 9017
    }
9018
 
9019
    public getMessage_args() {
9020
    }
9021
 
9022
    public getMessage_args(
9023
      long id)
9024
    {
9025
      this();
9026
      this.id = id;
9027
      setIdIsSet(true);
9028
    }
9029
 
9030
    /**
9031
     * Performs a deep copy on <i>other</i>.
9032
     */
9033
    public getMessage_args(getMessage_args other) {
9034
      __isset_bit_vector.clear();
9035
      __isset_bit_vector.or(other.__isset_bit_vector);
9036
      this.id = other.id;
9037
    }
9038
 
9039
    public getMessage_args deepCopy() {
9040
      return new getMessage_args(this);
9041
    }
9042
 
3430 rajveer 9043
    @Override
9044
    public void clear() {
9045
      setIdIsSet(false);
9046
      this.id = 0;
352 ashish 9047
    }
9048
 
9049
    public long getId() {
9050
      return this.id;
9051
    }
9052
 
3430 rajveer 9053
    public void setId(long id) {
352 ashish 9054
      this.id = id;
9055
      setIdIsSet(true);
9056
    }
9057
 
9058
    public void unsetId() {
9059
      __isset_bit_vector.clear(__ID_ISSET_ID);
9060
    }
9061
 
3430 rajveer 9062
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 9063
    public boolean isSetId() {
9064
      return __isset_bit_vector.get(__ID_ISSET_ID);
9065
    }
9066
 
9067
    public void setIdIsSet(boolean value) {
9068
      __isset_bit_vector.set(__ID_ISSET_ID, value);
9069
    }
9070
 
9071
    public void setFieldValue(_Fields field, Object value) {
9072
      switch (field) {
9073
      case ID:
9074
        if (value == null) {
9075
          unsetId();
9076
        } else {
9077
          setId((Long)value);
9078
        }
9079
        break;
9080
 
9081
      }
9082
    }
9083
 
9084
    public Object getFieldValue(_Fields field) {
9085
      switch (field) {
9086
      case ID:
3430 rajveer 9087
        return Long.valueOf(getId());
352 ashish 9088
 
9089
      }
9090
      throw new IllegalStateException();
9091
    }
9092
 
3430 rajveer 9093
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9094
    public boolean isSet(_Fields field) {
9095
      if (field == null) {
9096
        throw new IllegalArgumentException();
9097
      }
352 ashish 9098
 
9099
      switch (field) {
9100
      case ID:
9101
        return isSetId();
9102
      }
9103
      throw new IllegalStateException();
9104
    }
9105
 
9106
    @Override
9107
    public boolean equals(Object that) {
9108
      if (that == null)
9109
        return false;
9110
      if (that instanceof getMessage_args)
9111
        return this.equals((getMessage_args)that);
9112
      return false;
9113
    }
9114
 
9115
    public boolean equals(getMessage_args that) {
9116
      if (that == null)
9117
        return false;
9118
 
9119
      boolean this_present_id = true;
9120
      boolean that_present_id = true;
9121
      if (this_present_id || that_present_id) {
9122
        if (!(this_present_id && that_present_id))
9123
          return false;
9124
        if (this.id != that.id)
9125
          return false;
9126
      }
9127
 
9128
      return true;
9129
    }
9130
 
9131
    @Override
9132
    public int hashCode() {
9133
      return 0;
9134
    }
9135
 
9136
    public int compareTo(getMessage_args other) {
9137
      if (!getClass().equals(other.getClass())) {
9138
        return getClass().getName().compareTo(other.getClass().getName());
9139
      }
9140
 
9141
      int lastComparison = 0;
9142
      getMessage_args typedOther = (getMessage_args)other;
9143
 
3430 rajveer 9144
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 9145
      if (lastComparison != 0) {
9146
        return lastComparison;
9147
      }
3430 rajveer 9148
      if (isSetId()) {
9149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
9150
        if (lastComparison != 0) {
9151
          return lastComparison;
9152
        }
352 ashish 9153
      }
9154
      return 0;
9155
    }
9156
 
3430 rajveer 9157
    public _Fields fieldForId(int fieldId) {
9158
      return _Fields.findByThriftId(fieldId);
9159
    }
9160
 
9161
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9162
      org.apache.thrift.protocol.TField field;
352 ashish 9163
      iprot.readStructBegin();
9164
      while (true)
9165
      {
9166
        field = iprot.readFieldBegin();
3430 rajveer 9167
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9168
          break;
9169
        }
3430 rajveer 9170
        switch (field.id) {
9171
          case 1: // ID
9172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9173
              this.id = iprot.readI64();
9174
              setIdIsSet(true);
9175
            } else { 
9176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9177
            }
9178
            break;
9179
          default:
9180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9181
        }
3430 rajveer 9182
        iprot.readFieldEnd();
352 ashish 9183
      }
9184
      iprot.readStructEnd();
9185
      validate();
9186
    }
9187
 
3430 rajveer 9188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9189
      validate();
9190
 
9191
      oprot.writeStructBegin(STRUCT_DESC);
9192
      oprot.writeFieldBegin(ID_FIELD_DESC);
9193
      oprot.writeI64(this.id);
9194
      oprot.writeFieldEnd();
9195
      oprot.writeFieldStop();
9196
      oprot.writeStructEnd();
9197
    }
9198
 
9199
    @Override
9200
    public String toString() {
9201
      StringBuilder sb = new StringBuilder("getMessage_args(");
9202
      boolean first = true;
9203
 
9204
      sb.append("id:");
9205
      sb.append(this.id);
9206
      first = false;
9207
      sb.append(")");
9208
      return sb.toString();
9209
    }
9210
 
3430 rajveer 9211
    public void validate() throws org.apache.thrift.TException {
352 ashish 9212
      // check for required fields
9213
    }
9214
 
3430 rajveer 9215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9216
      try {
9217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9218
      } catch (org.apache.thrift.TException te) {
9219
        throw new java.io.IOException(te);
9220
      }
9221
    }
9222
 
9223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9224
      try {
9225
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9226
        __isset_bit_vector = new BitSet(1);
9227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9228
      } catch (org.apache.thrift.TException te) {
9229
        throw new java.io.IOException(te);
9230
      }
9231
    }
9232
 
352 ashish 9233
  }
9234
 
3430 rajveer 9235
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
9236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 9237
 
3430 rajveer 9238
    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);
9239
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 9240
 
3430 rajveer 9241
    private Message success; // required
9242
    private HelperServiceException se; // required
352 ashish 9243
 
9244
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9245
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9246
      SUCCESS((short)0, "success"),
9247
      SE((short)1, "se");
9248
 
9249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9250
 
9251
      static {
9252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9253
          byName.put(field.getFieldName(), field);
9254
        }
9255
      }
9256
 
9257
      /**
9258
       * Find the _Fields constant that matches fieldId, or null if its not found.
9259
       */
9260
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9261
        switch(fieldId) {
9262
          case 0: // SUCCESS
9263
            return SUCCESS;
9264
          case 1: // SE
9265
            return SE;
9266
          default:
9267
            return null;
9268
        }
352 ashish 9269
      }
9270
 
9271
      /**
9272
       * Find the _Fields constant that matches fieldId, throwing an exception
9273
       * if it is not found.
9274
       */
9275
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9276
        _Fields fields = findByThriftId(fieldId);
9277
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9278
        return fields;
9279
      }
9280
 
9281
      /**
9282
       * Find the _Fields constant that matches name, or null if its not found.
9283
       */
9284
      public static _Fields findByName(String name) {
9285
        return byName.get(name);
9286
      }
9287
 
9288
      private final short _thriftId;
9289
      private final String _fieldName;
9290
 
9291
      _Fields(short thriftId, String fieldName) {
9292
        _thriftId = thriftId;
9293
        _fieldName = fieldName;
9294
      }
9295
 
9296
      public short getThriftFieldId() {
9297
        return _thriftId;
9298
      }
9299
 
9300
      public String getFieldName() {
9301
        return _fieldName;
9302
      }
9303
    }
9304
 
9305
    // isset id assignments
9306
 
3430 rajveer 9307
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9308
    static {
3430 rajveer 9309
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9310
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9311
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
9312
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 9316
    }
9317
 
9318
    public getMessage_result() {
9319
    }
9320
 
9321
    public getMessage_result(
9322
      Message success,
9323
      HelperServiceException se)
9324
    {
9325
      this();
9326
      this.success = success;
9327
      this.se = se;
9328
    }
9329
 
9330
    /**
9331
     * Performs a deep copy on <i>other</i>.
9332
     */
9333
    public getMessage_result(getMessage_result other) {
9334
      if (other.isSetSuccess()) {
9335
        this.success = new Message(other.success);
9336
      }
9337
      if (other.isSetSe()) {
9338
        this.se = new HelperServiceException(other.se);
9339
      }
9340
    }
9341
 
9342
    public getMessage_result deepCopy() {
9343
      return new getMessage_result(this);
9344
    }
9345
 
3430 rajveer 9346
    @Override
9347
    public void clear() {
9348
      this.success = null;
9349
      this.se = null;
352 ashish 9350
    }
9351
 
9352
    public Message getSuccess() {
9353
      return this.success;
9354
    }
9355
 
3430 rajveer 9356
    public void setSuccess(Message success) {
352 ashish 9357
      this.success = success;
9358
    }
9359
 
9360
    public void unsetSuccess() {
9361
      this.success = null;
9362
    }
9363
 
3430 rajveer 9364
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 9365
    public boolean isSetSuccess() {
9366
      return this.success != null;
9367
    }
9368
 
9369
    public void setSuccessIsSet(boolean value) {
9370
      if (!value) {
9371
        this.success = null;
9372
      }
9373
    }
9374
 
9375
    public HelperServiceException getSe() {
9376
      return this.se;
9377
    }
9378
 
3430 rajveer 9379
    public void setSe(HelperServiceException se) {
352 ashish 9380
      this.se = se;
9381
    }
9382
 
9383
    public void unsetSe() {
9384
      this.se = null;
9385
    }
9386
 
3430 rajveer 9387
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 9388
    public boolean isSetSe() {
9389
      return this.se != null;
9390
    }
9391
 
9392
    public void setSeIsSet(boolean value) {
9393
      if (!value) {
9394
        this.se = null;
9395
      }
9396
    }
9397
 
9398
    public void setFieldValue(_Fields field, Object value) {
9399
      switch (field) {
9400
      case SUCCESS:
9401
        if (value == null) {
9402
          unsetSuccess();
9403
        } else {
9404
          setSuccess((Message)value);
9405
        }
9406
        break;
9407
 
9408
      case SE:
9409
        if (value == null) {
9410
          unsetSe();
9411
        } else {
9412
          setSe((HelperServiceException)value);
9413
        }
9414
        break;
9415
 
9416
      }
9417
    }
9418
 
9419
    public Object getFieldValue(_Fields field) {
9420
      switch (field) {
9421
      case SUCCESS:
9422
        return getSuccess();
9423
 
9424
      case SE:
9425
        return getSe();
9426
 
9427
      }
9428
      throw new IllegalStateException();
9429
    }
9430
 
3430 rajveer 9431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9432
    public boolean isSet(_Fields field) {
9433
      if (field == null) {
9434
        throw new IllegalArgumentException();
9435
      }
352 ashish 9436
 
9437
      switch (field) {
9438
      case SUCCESS:
9439
        return isSetSuccess();
9440
      case SE:
9441
        return isSetSe();
9442
      }
9443
      throw new IllegalStateException();
9444
    }
9445
 
9446
    @Override
9447
    public boolean equals(Object that) {
9448
      if (that == null)
9449
        return false;
9450
      if (that instanceof getMessage_result)
9451
        return this.equals((getMessage_result)that);
9452
      return false;
9453
    }
9454
 
9455
    public boolean equals(getMessage_result that) {
9456
      if (that == null)
9457
        return false;
9458
 
9459
      boolean this_present_success = true && this.isSetSuccess();
9460
      boolean that_present_success = true && that.isSetSuccess();
9461
      if (this_present_success || that_present_success) {
9462
        if (!(this_present_success && that_present_success))
9463
          return false;
9464
        if (!this.success.equals(that.success))
9465
          return false;
9466
      }
9467
 
9468
      boolean this_present_se = true && this.isSetSe();
9469
      boolean that_present_se = true && that.isSetSe();
9470
      if (this_present_se || that_present_se) {
9471
        if (!(this_present_se && that_present_se))
9472
          return false;
9473
        if (!this.se.equals(that.se))
9474
          return false;
9475
      }
9476
 
9477
      return true;
9478
    }
9479
 
9480
    @Override
9481
    public int hashCode() {
9482
      return 0;
9483
    }
9484
 
9485
    public int compareTo(getMessage_result other) {
9486
      if (!getClass().equals(other.getClass())) {
9487
        return getClass().getName().compareTo(other.getClass().getName());
9488
      }
9489
 
9490
      int lastComparison = 0;
9491
      getMessage_result typedOther = (getMessage_result)other;
9492
 
3430 rajveer 9493
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9494
      if (lastComparison != 0) {
9495
        return lastComparison;
9496
      }
3430 rajveer 9497
      if (isSetSuccess()) {
9498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9499
        if (lastComparison != 0) {
9500
          return lastComparison;
9501
        }
352 ashish 9502
      }
3430 rajveer 9503
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9504
      if (lastComparison != 0) {
9505
        return lastComparison;
9506
      }
3430 rajveer 9507
      if (isSetSe()) {
9508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9509
        if (lastComparison != 0) {
9510
          return lastComparison;
9511
        }
352 ashish 9512
      }
9513
      return 0;
9514
    }
9515
 
3430 rajveer 9516
    public _Fields fieldForId(int fieldId) {
9517
      return _Fields.findByThriftId(fieldId);
9518
    }
9519
 
9520
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9521
      org.apache.thrift.protocol.TField field;
352 ashish 9522
      iprot.readStructBegin();
9523
      while (true)
9524
      {
9525
        field = iprot.readFieldBegin();
3430 rajveer 9526
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9527
          break;
9528
        }
3430 rajveer 9529
        switch (field.id) {
9530
          case 0: // SUCCESS
9531
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9532
              this.success = new Message();
9533
              this.success.read(iprot);
9534
            } else { 
9535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9536
            }
9537
            break;
9538
          case 1: // SE
9539
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9540
              this.se = new HelperServiceException();
9541
              this.se.read(iprot);
9542
            } else { 
9543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9544
            }
9545
            break;
9546
          default:
9547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9548
        }
3430 rajveer 9549
        iprot.readFieldEnd();
352 ashish 9550
      }
9551
      iprot.readStructEnd();
9552
      validate();
9553
    }
9554
 
3430 rajveer 9555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9556
      oprot.writeStructBegin(STRUCT_DESC);
9557
 
9558
      if (this.isSetSuccess()) {
9559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9560
        this.success.write(oprot);
9561
        oprot.writeFieldEnd();
9562
      } else if (this.isSetSe()) {
9563
        oprot.writeFieldBegin(SE_FIELD_DESC);
9564
        this.se.write(oprot);
9565
        oprot.writeFieldEnd();
9566
      }
9567
      oprot.writeFieldStop();
9568
      oprot.writeStructEnd();
9569
    }
9570
 
9571
    @Override
9572
    public String toString() {
9573
      StringBuilder sb = new StringBuilder("getMessage_result(");
9574
      boolean first = true;
9575
 
9576
      sb.append("success:");
9577
      if (this.success == null) {
9578
        sb.append("null");
9579
      } else {
9580
        sb.append(this.success);
9581
      }
9582
      first = false;
9583
      if (!first) sb.append(", ");
9584
      sb.append("se:");
9585
      if (this.se == null) {
9586
        sb.append("null");
9587
      } else {
9588
        sb.append(this.se);
9589
      }
9590
      first = false;
9591
      sb.append(")");
9592
      return sb.toString();
9593
    }
9594
 
3430 rajveer 9595
    public void validate() throws org.apache.thrift.TException {
352 ashish 9596
      // check for required fields
9597
    }
9598
 
3430 rajveer 9599
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9600
      try {
9601
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9602
      } catch (org.apache.thrift.TException te) {
9603
        throw new java.io.IOException(te);
9604
      }
9605
    }
9606
 
9607
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9608
      try {
9609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9610
      } catch (org.apache.thrift.TException te) {
9611
        throw new java.io.IOException(te);
9612
      }
9613
    }
9614
 
352 ashish 9615
  }
9616
 
3430 rajveer 9617
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
9618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 9619
 
3430 rajveer 9620
    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);
9621
    private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.MAP, (short)2);
352 ashish 9622
 
3430 rajveer 9623
    private long id; // required
9624
    private Map<String,String> params; // required
352 ashish 9625
 
9626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9628
      ID((short)1, "id"),
9629
      PARAMS((short)2, "params");
9630
 
9631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9632
 
9633
      static {
9634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9635
          byName.put(field.getFieldName(), field);
9636
        }
9637
      }
9638
 
9639
      /**
9640
       * Find the _Fields constant that matches fieldId, or null if its not found.
9641
       */
9642
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9643
        switch(fieldId) {
9644
          case 1: // ID
9645
            return ID;
9646
          case 2: // PARAMS
9647
            return PARAMS;
9648
          default:
9649
            return null;
9650
        }
352 ashish 9651
      }
9652
 
9653
      /**
9654
       * Find the _Fields constant that matches fieldId, throwing an exception
9655
       * if it is not found.
9656
       */
9657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9658
        _Fields fields = findByThriftId(fieldId);
9659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9660
        return fields;
9661
      }
9662
 
9663
      /**
9664
       * Find the _Fields constant that matches name, or null if its not found.
9665
       */
9666
      public static _Fields findByName(String name) {
9667
        return byName.get(name);
9668
      }
9669
 
9670
      private final short _thriftId;
9671
      private final String _fieldName;
9672
 
9673
      _Fields(short thriftId, String fieldName) {
9674
        _thriftId = thriftId;
9675
        _fieldName = fieldName;
9676
      }
9677
 
9678
      public short getThriftFieldId() {
9679
        return _thriftId;
9680
      }
9681
 
9682
      public String getFieldName() {
9683
        return _fieldName;
9684
      }
9685
    }
9686
 
9687
    // isset id assignments
9688
    private static final int __ID_ISSET_ID = 0;
9689
    private BitSet __isset_bit_vector = new BitSet(1);
9690
 
3430 rajveer 9691
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9692
    static {
3430 rajveer 9693
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9694
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9696
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9697
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
9698
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
9699
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 9702
    }
9703
 
9704
    public getSubstitutedMessage_args() {
9705
    }
9706
 
9707
    public getSubstitutedMessage_args(
9708
      long id,
9709
      Map<String,String> params)
9710
    {
9711
      this();
9712
      this.id = id;
9713
      setIdIsSet(true);
9714
      this.params = params;
9715
    }
9716
 
9717
    /**
9718
     * Performs a deep copy on <i>other</i>.
9719
     */
9720
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
9721
      __isset_bit_vector.clear();
9722
      __isset_bit_vector.or(other.__isset_bit_vector);
9723
      this.id = other.id;
9724
      if (other.isSetParams()) {
9725
        Map<String,String> __this__params = new HashMap<String,String>();
9726
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
9727
 
9728
          String other_element_key = other_element.getKey();
9729
          String other_element_value = other_element.getValue();
9730
 
9731
          String __this__params_copy_key = other_element_key;
9732
 
9733
          String __this__params_copy_value = other_element_value;
9734
 
9735
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
9736
        }
9737
        this.params = __this__params;
9738
      }
9739
    }
9740
 
9741
    public getSubstitutedMessage_args deepCopy() {
9742
      return new getSubstitutedMessage_args(this);
9743
    }
9744
 
3430 rajveer 9745
    @Override
9746
    public void clear() {
9747
      setIdIsSet(false);
9748
      this.id = 0;
9749
      this.params = null;
352 ashish 9750
    }
9751
 
9752
    public long getId() {
9753
      return this.id;
9754
    }
9755
 
3430 rajveer 9756
    public void setId(long id) {
352 ashish 9757
      this.id = id;
9758
      setIdIsSet(true);
9759
    }
9760
 
9761
    public void unsetId() {
9762
      __isset_bit_vector.clear(__ID_ISSET_ID);
9763
    }
9764
 
3430 rajveer 9765
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 9766
    public boolean isSetId() {
9767
      return __isset_bit_vector.get(__ID_ISSET_ID);
9768
    }
9769
 
9770
    public void setIdIsSet(boolean value) {
9771
      __isset_bit_vector.set(__ID_ISSET_ID, value);
9772
    }
9773
 
9774
    public int getParamsSize() {
9775
      return (this.params == null) ? 0 : this.params.size();
9776
    }
9777
 
9778
    public void putToParams(String key, String val) {
9779
      if (this.params == null) {
9780
        this.params = new HashMap<String,String>();
9781
      }
9782
      this.params.put(key, val);
9783
    }
9784
 
9785
    public Map<String,String> getParams() {
9786
      return this.params;
9787
    }
9788
 
3430 rajveer 9789
    public void setParams(Map<String,String> params) {
352 ashish 9790
      this.params = params;
9791
    }
9792
 
9793
    public void unsetParams() {
9794
      this.params = null;
9795
    }
9796
 
3430 rajveer 9797
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 9798
    public boolean isSetParams() {
9799
      return this.params != null;
9800
    }
9801
 
9802
    public void setParamsIsSet(boolean value) {
9803
      if (!value) {
9804
        this.params = null;
9805
      }
9806
    }
9807
 
9808
    public void setFieldValue(_Fields field, Object value) {
9809
      switch (field) {
9810
      case ID:
9811
        if (value == null) {
9812
          unsetId();
9813
        } else {
9814
          setId((Long)value);
9815
        }
9816
        break;
9817
 
9818
      case PARAMS:
9819
        if (value == null) {
9820
          unsetParams();
9821
        } else {
9822
          setParams((Map<String,String>)value);
9823
        }
9824
        break;
9825
 
9826
      }
9827
    }
9828
 
9829
    public Object getFieldValue(_Fields field) {
9830
      switch (field) {
9831
      case ID:
3430 rajveer 9832
        return Long.valueOf(getId());
352 ashish 9833
 
9834
      case PARAMS:
9835
        return getParams();
9836
 
9837
      }
9838
      throw new IllegalStateException();
9839
    }
9840
 
3430 rajveer 9841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9842
    public boolean isSet(_Fields field) {
9843
      if (field == null) {
9844
        throw new IllegalArgumentException();
9845
      }
352 ashish 9846
 
9847
      switch (field) {
9848
      case ID:
9849
        return isSetId();
9850
      case PARAMS:
9851
        return isSetParams();
9852
      }
9853
      throw new IllegalStateException();
9854
    }
9855
 
9856
    @Override
9857
    public boolean equals(Object that) {
9858
      if (that == null)
9859
        return false;
9860
      if (that instanceof getSubstitutedMessage_args)
9861
        return this.equals((getSubstitutedMessage_args)that);
9862
      return false;
9863
    }
9864
 
9865
    public boolean equals(getSubstitutedMessage_args that) {
9866
      if (that == null)
9867
        return false;
9868
 
9869
      boolean this_present_id = true;
9870
      boolean that_present_id = true;
9871
      if (this_present_id || that_present_id) {
9872
        if (!(this_present_id && that_present_id))
9873
          return false;
9874
        if (this.id != that.id)
9875
          return false;
9876
      }
9877
 
9878
      boolean this_present_params = true && this.isSetParams();
9879
      boolean that_present_params = true && that.isSetParams();
9880
      if (this_present_params || that_present_params) {
9881
        if (!(this_present_params && that_present_params))
9882
          return false;
9883
        if (!this.params.equals(that.params))
9884
          return false;
9885
      }
9886
 
9887
      return true;
9888
    }
9889
 
9890
    @Override
9891
    public int hashCode() {
9892
      return 0;
9893
    }
9894
 
3430 rajveer 9895
    public int compareTo(getSubstitutedMessage_args other) {
9896
      if (!getClass().equals(other.getClass())) {
9897
        return getClass().getName().compareTo(other.getClass().getName());
9898
      }
9899
 
9900
      int lastComparison = 0;
9901
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
9902
 
9903
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
9904
      if (lastComparison != 0) {
9905
        return lastComparison;
9906
      }
9907
      if (isSetId()) {
9908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
9909
        if (lastComparison != 0) {
9910
          return lastComparison;
9911
        }
9912
      }
9913
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
9914
      if (lastComparison != 0) {
9915
        return lastComparison;
9916
      }
9917
      if (isSetParams()) {
9918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
9919
        if (lastComparison != 0) {
9920
          return lastComparison;
9921
        }
9922
      }
9923
      return 0;
9924
    }
9925
 
9926
    public _Fields fieldForId(int fieldId) {
9927
      return _Fields.findByThriftId(fieldId);
9928
    }
9929
 
9930
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9931
      org.apache.thrift.protocol.TField field;
352 ashish 9932
      iprot.readStructBegin();
9933
      while (true)
9934
      {
9935
        field = iprot.readFieldBegin();
3430 rajveer 9936
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9937
          break;
9938
        }
3430 rajveer 9939
        switch (field.id) {
9940
          case 1: // ID
9941
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9942
              this.id = iprot.readI64();
9943
              setIdIsSet(true);
9944
            } else { 
9945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9946
            }
9947
            break;
9948
          case 2: // PARAMS
9949
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9950
              {
5864 rajveer 9951
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
9952
                this.params = new HashMap<String,String>(2*_map36.size);
9953
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 9954
                {
5864 rajveer 9955
                  String _key38; // required
9956
                  String _val39; // required
9957
                  _key38 = iprot.readString();
9958
                  _val39 = iprot.readString();
9959
                  this.params.put(_key38, _val39);
352 ashish 9960
                }
3430 rajveer 9961
                iprot.readMapEnd();
352 ashish 9962
              }
3430 rajveer 9963
            } else { 
9964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9965
            }
9966
            break;
9967
          default:
9968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9969
        }
3430 rajveer 9970
        iprot.readFieldEnd();
352 ashish 9971
      }
9972
      iprot.readStructEnd();
9973
      validate();
9974
    }
9975
 
3430 rajveer 9976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9977
      validate();
9978
 
9979
      oprot.writeStructBegin(STRUCT_DESC);
9980
      oprot.writeFieldBegin(ID_FIELD_DESC);
9981
      oprot.writeI64(this.id);
9982
      oprot.writeFieldEnd();
9983
      if (this.params != null) {
9984
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
9985
        {
3430 rajveer 9986
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
5864 rajveer 9987
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 9988
          {
5864 rajveer 9989
            oprot.writeString(_iter40.getKey());
9990
            oprot.writeString(_iter40.getValue());
352 ashish 9991
          }
9992
          oprot.writeMapEnd();
9993
        }
9994
        oprot.writeFieldEnd();
9995
      }
9996
      oprot.writeFieldStop();
9997
      oprot.writeStructEnd();
9998
    }
9999
 
10000
    @Override
10001
    public String toString() {
10002
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
10003
      boolean first = true;
10004
 
10005
      sb.append("id:");
10006
      sb.append(this.id);
10007
      first = false;
10008
      if (!first) sb.append(", ");
10009
      sb.append("params:");
10010
      if (this.params == null) {
10011
        sb.append("null");
10012
      } else {
10013
        sb.append(this.params);
10014
      }
10015
      first = false;
10016
      sb.append(")");
10017
      return sb.toString();
10018
    }
10019
 
3430 rajveer 10020
    public void validate() throws org.apache.thrift.TException {
352 ashish 10021
      // check for required fields
10022
    }
10023
 
3430 rajveer 10024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10025
      try {
10026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10027
      } catch (org.apache.thrift.TException te) {
10028
        throw new java.io.IOException(te);
10029
      }
10030
    }
10031
 
10032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10033
      try {
10034
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10035
        __isset_bit_vector = new BitSet(1);
10036
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10037
      } catch (org.apache.thrift.TException te) {
10038
        throw new java.io.IOException(te);
10039
      }
10040
    }
10041
 
352 ashish 10042
  }
10043
 
3430 rajveer 10044
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
10045
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 10046
 
3430 rajveer 10047
    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);
10048
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
352 ashish 10049
 
3430 rajveer 10050
    private Message success; // required
10051
    private HelperServiceException se; // required
352 ashish 10052
 
10053
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10054
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 10055
      SUCCESS((short)0, "success"),
10056
      SE((short)1, "se");
10057
 
10058
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10059
 
10060
      static {
10061
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10062
          byName.put(field.getFieldName(), field);
10063
        }
10064
      }
10065
 
10066
      /**
10067
       * Find the _Fields constant that matches fieldId, or null if its not found.
10068
       */
10069
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10070
        switch(fieldId) {
10071
          case 0: // SUCCESS
10072
            return SUCCESS;
10073
          case 1: // SE
10074
            return SE;
10075
          default:
10076
            return null;
10077
        }
352 ashish 10078
      }
10079
 
10080
      /**
10081
       * Find the _Fields constant that matches fieldId, throwing an exception
10082
       * if it is not found.
10083
       */
10084
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10085
        _Fields fields = findByThriftId(fieldId);
10086
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10087
        return fields;
10088
      }
10089
 
10090
      /**
10091
       * Find the _Fields constant that matches name, or null if its not found.
10092
       */
10093
      public static _Fields findByName(String name) {
10094
        return byName.get(name);
10095
      }
10096
 
10097
      private final short _thriftId;
10098
      private final String _fieldName;
10099
 
10100
      _Fields(short thriftId, String fieldName) {
10101
        _thriftId = thriftId;
10102
        _fieldName = fieldName;
10103
      }
10104
 
10105
      public short getThriftFieldId() {
10106
        return _thriftId;
10107
      }
10108
 
10109
      public String getFieldName() {
10110
        return _fieldName;
10111
      }
10112
    }
10113
 
10114
    // isset id assignments
10115
 
3430 rajveer 10116
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 10117
    static {
3430 rajveer 10118
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10119
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10120
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
10121
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 10125
    }
10126
 
10127
    public getSubstitutedMessage_result() {
10128
    }
10129
 
10130
    public getSubstitutedMessage_result(
10131
      Message success,
10132
      HelperServiceException se)
10133
    {
10134
      this();
10135
      this.success = success;
10136
      this.se = se;
10137
    }
10138
 
10139
    /**
10140
     * Performs a deep copy on <i>other</i>.
10141
     */
10142
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
10143
      if (other.isSetSuccess()) {
10144
        this.success = new Message(other.success);
10145
      }
10146
      if (other.isSetSe()) {
10147
        this.se = new HelperServiceException(other.se);
10148
      }
10149
    }
10150
 
10151
    public getSubstitutedMessage_result deepCopy() {
10152
      return new getSubstitutedMessage_result(this);
10153
    }
10154
 
3430 rajveer 10155
    @Override
10156
    public void clear() {
10157
      this.success = null;
10158
      this.se = null;
352 ashish 10159
    }
10160
 
10161
    public Message getSuccess() {
10162
      return this.success;
10163
    }
10164
 
3430 rajveer 10165
    public void setSuccess(Message success) {
352 ashish 10166
      this.success = success;
10167
    }
10168
 
10169
    public void unsetSuccess() {
10170
      this.success = null;
10171
    }
10172
 
3430 rajveer 10173
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 10174
    public boolean isSetSuccess() {
10175
      return this.success != null;
10176
    }
10177
 
10178
    public void setSuccessIsSet(boolean value) {
10179
      if (!value) {
10180
        this.success = null;
10181
      }
10182
    }
10183
 
10184
    public HelperServiceException getSe() {
10185
      return this.se;
10186
    }
10187
 
3430 rajveer 10188
    public void setSe(HelperServiceException se) {
352 ashish 10189
      this.se = se;
10190
    }
10191
 
10192
    public void unsetSe() {
10193
      this.se = null;
10194
    }
10195
 
3430 rajveer 10196
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 10197
    public boolean isSetSe() {
10198
      return this.se != null;
10199
    }
10200
 
10201
    public void setSeIsSet(boolean value) {
10202
      if (!value) {
10203
        this.se = null;
10204
      }
10205
    }
10206
 
10207
    public void setFieldValue(_Fields field, Object value) {
10208
      switch (field) {
10209
      case SUCCESS:
10210
        if (value == null) {
10211
          unsetSuccess();
10212
        } else {
10213
          setSuccess((Message)value);
10214
        }
10215
        break;
10216
 
10217
      case SE:
10218
        if (value == null) {
10219
          unsetSe();
10220
        } else {
10221
          setSe((HelperServiceException)value);
10222
        }
10223
        break;
10224
 
10225
      }
10226
    }
10227
 
10228
    public Object getFieldValue(_Fields field) {
10229
      switch (field) {
10230
      case SUCCESS:
10231
        return getSuccess();
10232
 
10233
      case SE:
10234
        return getSe();
10235
 
10236
      }
10237
      throw new IllegalStateException();
10238
    }
10239
 
3430 rajveer 10240
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10241
    public boolean isSet(_Fields field) {
10242
      if (field == null) {
10243
        throw new IllegalArgumentException();
10244
      }
352 ashish 10245
 
10246
      switch (field) {
10247
      case SUCCESS:
10248
        return isSetSuccess();
10249
      case SE:
10250
        return isSetSe();
10251
      }
10252
      throw new IllegalStateException();
10253
    }
10254
 
10255
    @Override
10256
    public boolean equals(Object that) {
10257
      if (that == null)
10258
        return false;
10259
      if (that instanceof getSubstitutedMessage_result)
10260
        return this.equals((getSubstitutedMessage_result)that);
10261
      return false;
10262
    }
10263
 
10264
    public boolean equals(getSubstitutedMessage_result that) {
10265
      if (that == null)
10266
        return false;
10267
 
10268
      boolean this_present_success = true && this.isSetSuccess();
10269
      boolean that_present_success = true && that.isSetSuccess();
10270
      if (this_present_success || that_present_success) {
10271
        if (!(this_present_success && that_present_success))
10272
          return false;
10273
        if (!this.success.equals(that.success))
10274
          return false;
10275
      }
10276
 
10277
      boolean this_present_se = true && this.isSetSe();
10278
      boolean that_present_se = true && that.isSetSe();
10279
      if (this_present_se || that_present_se) {
10280
        if (!(this_present_se && that_present_se))
10281
          return false;
10282
        if (!this.se.equals(that.se))
10283
          return false;
10284
      }
10285
 
10286
      return true;
10287
    }
10288
 
10289
    @Override
10290
    public int hashCode() {
10291
      return 0;
10292
    }
10293
 
10294
    public int compareTo(getSubstitutedMessage_result other) {
10295
      if (!getClass().equals(other.getClass())) {
10296
        return getClass().getName().compareTo(other.getClass().getName());
10297
      }
10298
 
10299
      int lastComparison = 0;
10300
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
10301
 
3430 rajveer 10302
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 10303
      if (lastComparison != 0) {
10304
        return lastComparison;
10305
      }
3430 rajveer 10306
      if (isSetSuccess()) {
10307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10308
        if (lastComparison != 0) {
10309
          return lastComparison;
10310
        }
352 ashish 10311
      }
3430 rajveer 10312
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 10313
      if (lastComparison != 0) {
10314
        return lastComparison;
10315
      }
3430 rajveer 10316
      if (isSetSe()) {
10317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10318
        if (lastComparison != 0) {
10319
          return lastComparison;
10320
        }
352 ashish 10321
      }
10322
      return 0;
10323
    }
10324
 
3430 rajveer 10325
    public _Fields fieldForId(int fieldId) {
10326
      return _Fields.findByThriftId(fieldId);
10327
    }
10328
 
10329
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10330
      org.apache.thrift.protocol.TField field;
352 ashish 10331
      iprot.readStructBegin();
10332
      while (true)
10333
      {
10334
        field = iprot.readFieldBegin();
3430 rajveer 10335
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 10336
          break;
10337
        }
3430 rajveer 10338
        switch (field.id) {
10339
          case 0: // SUCCESS
10340
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10341
              this.success = new Message();
10342
              this.success.read(iprot);
10343
            } else { 
10344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10345
            }
10346
            break;
10347
          case 1: // SE
10348
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10349
              this.se = new HelperServiceException();
10350
              this.se.read(iprot);
10351
            } else { 
10352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10353
            }
10354
            break;
10355
          default:
10356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 10357
        }
3430 rajveer 10358
        iprot.readFieldEnd();
352 ashish 10359
      }
10360
      iprot.readStructEnd();
10361
      validate();
10362
    }
10363
 
3430 rajveer 10364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 10365
      oprot.writeStructBegin(STRUCT_DESC);
10366
 
10367
      if (this.isSetSuccess()) {
10368
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10369
        this.success.write(oprot);
10370
        oprot.writeFieldEnd();
10371
      } else if (this.isSetSe()) {
10372
        oprot.writeFieldBegin(SE_FIELD_DESC);
10373
        this.se.write(oprot);
10374
        oprot.writeFieldEnd();
10375
      }
10376
      oprot.writeFieldStop();
10377
      oprot.writeStructEnd();
10378
    }
10379
 
10380
    @Override
10381
    public String toString() {
10382
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
10383
      boolean first = true;
10384
 
10385
      sb.append("success:");
10386
      if (this.success == null) {
10387
        sb.append("null");
10388
      } else {
10389
        sb.append(this.success);
10390
      }
10391
      first = false;
10392
      if (!first) sb.append(", ");
10393
      sb.append("se:");
10394
      if (this.se == null) {
10395
        sb.append("null");
10396
      } else {
10397
        sb.append(this.se);
10398
      }
10399
      first = false;
10400
      sb.append(")");
10401
      return sb.toString();
10402
    }
10403
 
3430 rajveer 10404
    public void validate() throws org.apache.thrift.TException {
352 ashish 10405
      // check for required fields
10406
    }
10407
 
3430 rajveer 10408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10409
      try {
10410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10411
      } catch (org.apache.thrift.TException te) {
10412
        throw new java.io.IOException(te);
10413
      }
10414
    }
10415
 
10416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10417
      try {
10418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10419
      } catch (org.apache.thrift.TException te) {
10420
        throw new java.io.IOException(te);
10421
      }
10422
    }
10423
 
352 ashish 10424
  }
10425
 
3430 rajveer 10426
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
10427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 10428
 
3430 rajveer 10429
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
10430
    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);
10431
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
495 rajveer 10432
 
3430 rajveer 10433
    private String username; // required
10434
    private String password; // required
10435
    private long warehouseId; // required
495 rajveer 10436
 
10437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10439
      USERNAME((short)1, "username"),
10440
      PASSWORD((short)2, "password"),
10441
      WAREHOUSE_ID((short)3, "warehouseId");
10442
 
10443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10444
 
10445
      static {
10446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10447
          byName.put(field.getFieldName(), field);
10448
        }
10449
      }
10450
 
10451
      /**
10452
       * Find the _Fields constant that matches fieldId, or null if its not found.
10453
       */
10454
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10455
        switch(fieldId) {
10456
          case 1: // USERNAME
10457
            return USERNAME;
10458
          case 2: // PASSWORD
10459
            return PASSWORD;
10460
          case 3: // WAREHOUSE_ID
10461
            return WAREHOUSE_ID;
10462
          default:
10463
            return null;
10464
        }
495 rajveer 10465
      }
10466
 
10467
      /**
10468
       * Find the _Fields constant that matches fieldId, throwing an exception
10469
       * if it is not found.
10470
       */
10471
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10472
        _Fields fields = findByThriftId(fieldId);
10473
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10474
        return fields;
10475
      }
10476
 
10477
      /**
10478
       * Find the _Fields constant that matches name, or null if its not found.
10479
       */
10480
      public static _Fields findByName(String name) {
10481
        return byName.get(name);
10482
      }
10483
 
10484
      private final short _thriftId;
10485
      private final String _fieldName;
10486
 
10487
      _Fields(short thriftId, String fieldName) {
10488
        _thriftId = thriftId;
10489
        _fieldName = fieldName;
10490
      }
10491
 
10492
      public short getThriftFieldId() {
10493
        return _thriftId;
10494
      }
10495
 
10496
      public String getFieldName() {
10497
        return _fieldName;
10498
      }
10499
    }
10500
 
10501
    // isset id assignments
10502
    private static final int __WAREHOUSEID_ISSET_ID = 0;
10503
    private BitSet __isset_bit_vector = new BitSet(1);
10504
 
3430 rajveer 10505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10506
    static {
3430 rajveer 10507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10508
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10510
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10511
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10512
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10514
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10515
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 10516
    }
10517
 
10518
    public addUser_args() {
10519
    }
10520
 
10521
    public addUser_args(
10522
      String username,
10523
      String password,
10524
      long warehouseId)
10525
    {
10526
      this();
10527
      this.username = username;
10528
      this.password = password;
10529
      this.warehouseId = warehouseId;
10530
      setWarehouseIdIsSet(true);
10531
    }
10532
 
10533
    /**
10534
     * Performs a deep copy on <i>other</i>.
10535
     */
10536
    public addUser_args(addUser_args other) {
10537
      __isset_bit_vector.clear();
10538
      __isset_bit_vector.or(other.__isset_bit_vector);
10539
      if (other.isSetUsername()) {
10540
        this.username = other.username;
10541
      }
10542
      if (other.isSetPassword()) {
10543
        this.password = other.password;
10544
      }
10545
      this.warehouseId = other.warehouseId;
10546
    }
10547
 
10548
    public addUser_args deepCopy() {
10549
      return new addUser_args(this);
10550
    }
10551
 
3430 rajveer 10552
    @Override
10553
    public void clear() {
10554
      this.username = null;
10555
      this.password = null;
10556
      setWarehouseIdIsSet(false);
10557
      this.warehouseId = 0;
495 rajveer 10558
    }
10559
 
10560
    public String getUsername() {
10561
      return this.username;
10562
    }
10563
 
3430 rajveer 10564
    public void setUsername(String username) {
495 rajveer 10565
      this.username = username;
10566
    }
10567
 
10568
    public void unsetUsername() {
10569
      this.username = null;
10570
    }
10571
 
3430 rajveer 10572
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10573
    public boolean isSetUsername() {
10574
      return this.username != null;
10575
    }
10576
 
10577
    public void setUsernameIsSet(boolean value) {
10578
      if (!value) {
10579
        this.username = null;
10580
      }
10581
    }
10582
 
10583
    public String getPassword() {
10584
      return this.password;
10585
    }
10586
 
3430 rajveer 10587
    public void setPassword(String password) {
495 rajveer 10588
      this.password = password;
10589
    }
10590
 
10591
    public void unsetPassword() {
10592
      this.password = null;
10593
    }
10594
 
3430 rajveer 10595
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10596
    public boolean isSetPassword() {
10597
      return this.password != null;
10598
    }
10599
 
10600
    public void setPasswordIsSet(boolean value) {
10601
      if (!value) {
10602
        this.password = null;
10603
      }
10604
    }
10605
 
10606
    public long getWarehouseId() {
10607
      return this.warehouseId;
10608
    }
10609
 
3430 rajveer 10610
    public void setWarehouseId(long warehouseId) {
495 rajveer 10611
      this.warehouseId = warehouseId;
10612
      setWarehouseIdIsSet(true);
10613
    }
10614
 
10615
    public void unsetWarehouseId() {
10616
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
10617
    }
10618
 
3430 rajveer 10619
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 10620
    public boolean isSetWarehouseId() {
10621
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
10622
    }
10623
 
10624
    public void setWarehouseIdIsSet(boolean value) {
10625
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
10626
    }
10627
 
10628
    public void setFieldValue(_Fields field, Object value) {
10629
      switch (field) {
10630
      case USERNAME:
10631
        if (value == null) {
10632
          unsetUsername();
10633
        } else {
10634
          setUsername((String)value);
10635
        }
10636
        break;
10637
 
10638
      case PASSWORD:
10639
        if (value == null) {
10640
          unsetPassword();
10641
        } else {
10642
          setPassword((String)value);
10643
        }
10644
        break;
10645
 
10646
      case WAREHOUSE_ID:
10647
        if (value == null) {
10648
          unsetWarehouseId();
10649
        } else {
10650
          setWarehouseId((Long)value);
10651
        }
10652
        break;
10653
 
10654
      }
10655
    }
10656
 
10657
    public Object getFieldValue(_Fields field) {
10658
      switch (field) {
10659
      case USERNAME:
10660
        return getUsername();
10661
 
10662
      case PASSWORD:
10663
        return getPassword();
10664
 
10665
      case WAREHOUSE_ID:
3430 rajveer 10666
        return Long.valueOf(getWarehouseId());
495 rajveer 10667
 
10668
      }
10669
      throw new IllegalStateException();
10670
    }
10671
 
3430 rajveer 10672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10673
    public boolean isSet(_Fields field) {
10674
      if (field == null) {
10675
        throw new IllegalArgumentException();
10676
      }
495 rajveer 10677
 
10678
      switch (field) {
10679
      case USERNAME:
10680
        return isSetUsername();
10681
      case PASSWORD:
10682
        return isSetPassword();
10683
      case WAREHOUSE_ID:
10684
        return isSetWarehouseId();
10685
      }
10686
      throw new IllegalStateException();
10687
    }
10688
 
10689
    @Override
10690
    public boolean equals(Object that) {
10691
      if (that == null)
10692
        return false;
10693
      if (that instanceof addUser_args)
10694
        return this.equals((addUser_args)that);
10695
      return false;
10696
    }
10697
 
10698
    public boolean equals(addUser_args that) {
10699
      if (that == null)
10700
        return false;
10701
 
10702
      boolean this_present_username = true && this.isSetUsername();
10703
      boolean that_present_username = true && that.isSetUsername();
10704
      if (this_present_username || that_present_username) {
10705
        if (!(this_present_username && that_present_username))
10706
          return false;
10707
        if (!this.username.equals(that.username))
10708
          return false;
10709
      }
10710
 
10711
      boolean this_present_password = true && this.isSetPassword();
10712
      boolean that_present_password = true && that.isSetPassword();
10713
      if (this_present_password || that_present_password) {
10714
        if (!(this_present_password && that_present_password))
10715
          return false;
10716
        if (!this.password.equals(that.password))
10717
          return false;
10718
      }
10719
 
10720
      boolean this_present_warehouseId = true;
10721
      boolean that_present_warehouseId = true;
10722
      if (this_present_warehouseId || that_present_warehouseId) {
10723
        if (!(this_present_warehouseId && that_present_warehouseId))
10724
          return false;
10725
        if (this.warehouseId != that.warehouseId)
10726
          return false;
10727
      }
10728
 
10729
      return true;
10730
    }
10731
 
10732
    @Override
10733
    public int hashCode() {
10734
      return 0;
10735
    }
10736
 
10737
    public int compareTo(addUser_args other) {
10738
      if (!getClass().equals(other.getClass())) {
10739
        return getClass().getName().compareTo(other.getClass().getName());
10740
      }
10741
 
10742
      int lastComparison = 0;
10743
      addUser_args typedOther = (addUser_args)other;
10744
 
3430 rajveer 10745
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10746
      if (lastComparison != 0) {
10747
        return lastComparison;
10748
      }
3430 rajveer 10749
      if (isSetUsername()) {
10750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10751
        if (lastComparison != 0) {
10752
          return lastComparison;
10753
        }
495 rajveer 10754
      }
3430 rajveer 10755
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10756
      if (lastComparison != 0) {
10757
        return lastComparison;
10758
      }
3430 rajveer 10759
      if (isSetPassword()) {
10760
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10761
        if (lastComparison != 0) {
10762
          return lastComparison;
10763
        }
495 rajveer 10764
      }
3430 rajveer 10765
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 10766
      if (lastComparison != 0) {
10767
        return lastComparison;
10768
      }
3430 rajveer 10769
      if (isSetWarehouseId()) {
10770
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
10771
        if (lastComparison != 0) {
10772
          return lastComparison;
10773
        }
495 rajveer 10774
      }
10775
      return 0;
10776
    }
10777
 
3430 rajveer 10778
    public _Fields fieldForId(int fieldId) {
10779
      return _Fields.findByThriftId(fieldId);
10780
    }
10781
 
10782
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10783
      org.apache.thrift.protocol.TField field;
495 rajveer 10784
      iprot.readStructBegin();
10785
      while (true)
10786
      {
10787
        field = iprot.readFieldBegin();
3430 rajveer 10788
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10789
          break;
10790
        }
3430 rajveer 10791
        switch (field.id) {
10792
          case 1: // USERNAME
10793
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10794
              this.username = iprot.readString();
10795
            } else { 
10796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10797
            }
10798
            break;
10799
          case 2: // PASSWORD
10800
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10801
              this.password = iprot.readString();
10802
            } else { 
10803
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10804
            }
10805
            break;
10806
          case 3: // WAREHOUSE_ID
10807
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10808
              this.warehouseId = iprot.readI64();
10809
              setWarehouseIdIsSet(true);
10810
            } else { 
10811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10812
            }
10813
            break;
10814
          default:
10815
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10816
        }
3430 rajveer 10817
        iprot.readFieldEnd();
495 rajveer 10818
      }
10819
      iprot.readStructEnd();
10820
      validate();
10821
    }
10822
 
3430 rajveer 10823
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10824
      validate();
10825
 
10826
      oprot.writeStructBegin(STRUCT_DESC);
10827
      if (this.username != null) {
10828
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10829
        oprot.writeString(this.username);
10830
        oprot.writeFieldEnd();
10831
      }
10832
      if (this.password != null) {
10833
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10834
        oprot.writeString(this.password);
10835
        oprot.writeFieldEnd();
10836
      }
10837
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10838
      oprot.writeI64(this.warehouseId);
10839
      oprot.writeFieldEnd();
10840
      oprot.writeFieldStop();
10841
      oprot.writeStructEnd();
10842
    }
10843
 
10844
    @Override
10845
    public String toString() {
10846
      StringBuilder sb = new StringBuilder("addUser_args(");
10847
      boolean first = true;
10848
 
10849
      sb.append("username:");
10850
      if (this.username == null) {
10851
        sb.append("null");
10852
      } else {
10853
        sb.append(this.username);
10854
      }
10855
      first = false;
10856
      if (!first) sb.append(", ");
10857
      sb.append("password:");
10858
      if (this.password == null) {
10859
        sb.append("null");
10860
      } else {
10861
        sb.append(this.password);
10862
      }
10863
      first = false;
10864
      if (!first) sb.append(", ");
10865
      sb.append("warehouseId:");
10866
      sb.append(this.warehouseId);
10867
      first = false;
10868
      sb.append(")");
10869
      return sb.toString();
10870
    }
10871
 
3430 rajveer 10872
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10873
      // check for required fields
10874
    }
10875
 
3430 rajveer 10876
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10877
      try {
10878
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10879
      } catch (org.apache.thrift.TException te) {
10880
        throw new java.io.IOException(te);
10881
      }
10882
    }
10883
 
10884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10885
      try {
10886
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10887
        __isset_bit_vector = new BitSet(1);
10888
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10889
      } catch (org.apache.thrift.TException te) {
10890
        throw new java.io.IOException(te);
10891
      }
10892
    }
10893
 
495 rajveer 10894
  }
10895
 
3430 rajveer 10896
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
10897
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 10898
 
3430 rajveer 10899
    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);
10900
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
495 rajveer 10901
 
3430 rajveer 10902
    private boolean success; // required
10903
    private HelperServiceException se; // required
495 rajveer 10904
 
10905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10907
      SUCCESS((short)0, "success"),
10908
      SE((short)1, "se");
10909
 
10910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10911
 
10912
      static {
10913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10914
          byName.put(field.getFieldName(), field);
10915
        }
10916
      }
10917
 
10918
      /**
10919
       * Find the _Fields constant that matches fieldId, or null if its not found.
10920
       */
10921
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10922
        switch(fieldId) {
10923
          case 0: // SUCCESS
10924
            return SUCCESS;
10925
          case 1: // SE
10926
            return SE;
10927
          default:
10928
            return null;
10929
        }
495 rajveer 10930
      }
10931
 
10932
      /**
10933
       * Find the _Fields constant that matches fieldId, throwing an exception
10934
       * if it is not found.
10935
       */
10936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10937
        _Fields fields = findByThriftId(fieldId);
10938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10939
        return fields;
10940
      }
10941
 
10942
      /**
10943
       * Find the _Fields constant that matches name, or null if its not found.
10944
       */
10945
      public static _Fields findByName(String name) {
10946
        return byName.get(name);
10947
      }
10948
 
10949
      private final short _thriftId;
10950
      private final String _fieldName;
10951
 
10952
      _Fields(short thriftId, String fieldName) {
10953
        _thriftId = thriftId;
10954
        _fieldName = fieldName;
10955
      }
10956
 
10957
      public short getThriftFieldId() {
10958
        return _thriftId;
10959
      }
10960
 
10961
      public String getFieldName() {
10962
        return _fieldName;
10963
      }
10964
    }
10965
 
10966
    // isset id assignments
10967
    private static final int __SUCCESS_ISSET_ID = 0;
10968
    private BitSet __isset_bit_vector = new BitSet(1);
10969
 
3430 rajveer 10970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10971
    static {
3430 rajveer 10972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10973
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10975
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10977
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10978
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 10979
    }
10980
 
10981
    public addUser_result() {
10982
    }
10983
 
10984
    public addUser_result(
10985
      boolean success,
10986
      HelperServiceException se)
10987
    {
10988
      this();
10989
      this.success = success;
10990
      setSuccessIsSet(true);
10991
      this.se = se;
10992
    }
10993
 
10994
    /**
10995
     * Performs a deep copy on <i>other</i>.
10996
     */
10997
    public addUser_result(addUser_result other) {
10998
      __isset_bit_vector.clear();
10999
      __isset_bit_vector.or(other.__isset_bit_vector);
11000
      this.success = other.success;
11001
      if (other.isSetSe()) {
11002
        this.se = new HelperServiceException(other.se);
11003
      }
11004
    }
11005
 
11006
    public addUser_result deepCopy() {
11007
      return new addUser_result(this);
11008
    }
11009
 
3430 rajveer 11010
    @Override
11011
    public void clear() {
11012
      setSuccessIsSet(false);
11013
      this.success = false;
11014
      this.se = null;
495 rajveer 11015
    }
11016
 
11017
    public boolean isSuccess() {
11018
      return this.success;
11019
    }
11020
 
3430 rajveer 11021
    public void setSuccess(boolean success) {
495 rajveer 11022
      this.success = success;
11023
      setSuccessIsSet(true);
11024
    }
11025
 
11026
    public void unsetSuccess() {
11027
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11028
    }
11029
 
3430 rajveer 11030
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11031
    public boolean isSetSuccess() {
11032
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11033
    }
11034
 
11035
    public void setSuccessIsSet(boolean value) {
11036
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11037
    }
11038
 
11039
    public HelperServiceException getSe() {
11040
      return this.se;
11041
    }
11042
 
3430 rajveer 11043
    public void setSe(HelperServiceException se) {
495 rajveer 11044
      this.se = se;
11045
    }
11046
 
11047
    public void unsetSe() {
11048
      this.se = null;
11049
    }
11050
 
3430 rajveer 11051
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11052
    public boolean isSetSe() {
11053
      return this.se != null;
11054
    }
11055
 
11056
    public void setSeIsSet(boolean value) {
11057
      if (!value) {
11058
        this.se = null;
11059
      }
11060
    }
11061
 
11062
    public void setFieldValue(_Fields field, Object value) {
11063
      switch (field) {
11064
      case SUCCESS:
11065
        if (value == null) {
11066
          unsetSuccess();
11067
        } else {
11068
          setSuccess((Boolean)value);
11069
        }
11070
        break;
11071
 
11072
      case SE:
11073
        if (value == null) {
11074
          unsetSe();
11075
        } else {
11076
          setSe((HelperServiceException)value);
11077
        }
11078
        break;
11079
 
11080
      }
11081
    }
11082
 
11083
    public Object getFieldValue(_Fields field) {
11084
      switch (field) {
11085
      case SUCCESS:
3430 rajveer 11086
        return Boolean.valueOf(isSuccess());
495 rajveer 11087
 
11088
      case SE:
11089
        return getSe();
11090
 
11091
      }
11092
      throw new IllegalStateException();
11093
    }
11094
 
3430 rajveer 11095
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11096
    public boolean isSet(_Fields field) {
11097
      if (field == null) {
11098
        throw new IllegalArgumentException();
11099
      }
495 rajveer 11100
 
11101
      switch (field) {
11102
      case SUCCESS:
11103
        return isSetSuccess();
11104
      case SE:
11105
        return isSetSe();
11106
      }
11107
      throw new IllegalStateException();
11108
    }
11109
 
11110
    @Override
11111
    public boolean equals(Object that) {
11112
      if (that == null)
11113
        return false;
11114
      if (that instanceof addUser_result)
11115
        return this.equals((addUser_result)that);
11116
      return false;
11117
    }
11118
 
11119
    public boolean equals(addUser_result that) {
11120
      if (that == null)
11121
        return false;
11122
 
11123
      boolean this_present_success = true;
11124
      boolean that_present_success = true;
11125
      if (this_present_success || that_present_success) {
11126
        if (!(this_present_success && that_present_success))
11127
          return false;
11128
        if (this.success != that.success)
11129
          return false;
11130
      }
11131
 
11132
      boolean this_present_se = true && this.isSetSe();
11133
      boolean that_present_se = true && that.isSetSe();
11134
      if (this_present_se || that_present_se) {
11135
        if (!(this_present_se && that_present_se))
11136
          return false;
11137
        if (!this.se.equals(that.se))
11138
          return false;
11139
      }
11140
 
11141
      return true;
11142
    }
11143
 
11144
    @Override
11145
    public int hashCode() {
11146
      return 0;
11147
    }
11148
 
11149
    public int compareTo(addUser_result other) {
11150
      if (!getClass().equals(other.getClass())) {
11151
        return getClass().getName().compareTo(other.getClass().getName());
11152
      }
11153
 
11154
      int lastComparison = 0;
11155
      addUser_result typedOther = (addUser_result)other;
11156
 
3430 rajveer 11157
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11158
      if (lastComparison != 0) {
11159
        return lastComparison;
11160
      }
3430 rajveer 11161
      if (isSetSuccess()) {
11162
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11163
        if (lastComparison != 0) {
11164
          return lastComparison;
11165
        }
495 rajveer 11166
      }
3430 rajveer 11167
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11168
      if (lastComparison != 0) {
11169
        return lastComparison;
11170
      }
3430 rajveer 11171
      if (isSetSe()) {
11172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11173
        if (lastComparison != 0) {
11174
          return lastComparison;
11175
        }
495 rajveer 11176
      }
11177
      return 0;
11178
    }
11179
 
3430 rajveer 11180
    public _Fields fieldForId(int fieldId) {
11181
      return _Fields.findByThriftId(fieldId);
11182
    }
11183
 
11184
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11185
      org.apache.thrift.protocol.TField field;
495 rajveer 11186
      iprot.readStructBegin();
11187
      while (true)
11188
      {
11189
        field = iprot.readFieldBegin();
3430 rajveer 11190
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11191
          break;
11192
        }
3430 rajveer 11193
        switch (field.id) {
11194
          case 0: // SUCCESS
11195
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11196
              this.success = iprot.readBool();
11197
              setSuccessIsSet(true);
11198
            } else { 
11199
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11200
            }
11201
            break;
11202
          case 1: // SE
11203
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11204
              this.se = new HelperServiceException();
11205
              this.se.read(iprot);
11206
            } else { 
11207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11208
            }
11209
            break;
11210
          default:
11211
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11212
        }
3430 rajveer 11213
        iprot.readFieldEnd();
495 rajveer 11214
      }
11215
      iprot.readStructEnd();
11216
      validate();
11217
    }
11218
 
3430 rajveer 11219
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11220
      oprot.writeStructBegin(STRUCT_DESC);
11221
 
11222
      if (this.isSetSuccess()) {
11223
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11224
        oprot.writeBool(this.success);
11225
        oprot.writeFieldEnd();
11226
      } else if (this.isSetSe()) {
11227
        oprot.writeFieldBegin(SE_FIELD_DESC);
11228
        this.se.write(oprot);
11229
        oprot.writeFieldEnd();
11230
      }
11231
      oprot.writeFieldStop();
11232
      oprot.writeStructEnd();
11233
    }
11234
 
11235
    @Override
11236
    public String toString() {
11237
      StringBuilder sb = new StringBuilder("addUser_result(");
11238
      boolean first = true;
11239
 
11240
      sb.append("success:");
11241
      sb.append(this.success);
11242
      first = false;
11243
      if (!first) sb.append(", ");
11244
      sb.append("se:");
11245
      if (this.se == null) {
11246
        sb.append("null");
11247
      } else {
11248
        sb.append(this.se);
11249
      }
11250
      first = false;
11251
      sb.append(")");
11252
      return sb.toString();
11253
    }
11254
 
3430 rajveer 11255
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11256
      // check for required fields
11257
    }
11258
 
3430 rajveer 11259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11260
      try {
11261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11262
      } catch (org.apache.thrift.TException te) {
11263
        throw new java.io.IOException(te);
11264
      }
11265
    }
11266
 
11267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11268
      try {
11269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11270
      } catch (org.apache.thrift.TException te) {
11271
        throw new java.io.IOException(te);
11272
      }
11273
    }
11274
 
495 rajveer 11275
  }
11276
 
3430 rajveer 11277
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
11278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 11279
 
3430 rajveer 11280
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
495 rajveer 11281
 
3430 rajveer 11282
    private String username; // required
495 rajveer 11283
 
11284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11286
      USERNAME((short)1, "username");
11287
 
11288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11289
 
11290
      static {
11291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11292
          byName.put(field.getFieldName(), field);
11293
        }
11294
      }
11295
 
11296
      /**
11297
       * Find the _Fields constant that matches fieldId, or null if its not found.
11298
       */
11299
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11300
        switch(fieldId) {
11301
          case 1: // USERNAME
11302
            return USERNAME;
11303
          default:
11304
            return null;
11305
        }
495 rajveer 11306
      }
11307
 
11308
      /**
11309
       * Find the _Fields constant that matches fieldId, throwing an exception
11310
       * if it is not found.
11311
       */
11312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11313
        _Fields fields = findByThriftId(fieldId);
11314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11315
        return fields;
11316
      }
11317
 
11318
      /**
11319
       * Find the _Fields constant that matches name, or null if its not found.
11320
       */
11321
      public static _Fields findByName(String name) {
11322
        return byName.get(name);
11323
      }
11324
 
11325
      private final short _thriftId;
11326
      private final String _fieldName;
11327
 
11328
      _Fields(short thriftId, String fieldName) {
11329
        _thriftId = thriftId;
11330
        _fieldName = fieldName;
11331
      }
11332
 
11333
      public short getThriftFieldId() {
11334
        return _thriftId;
11335
      }
11336
 
11337
      public String getFieldName() {
11338
        return _fieldName;
11339
      }
11340
    }
11341
 
11342
    // isset id assignments
11343
 
3430 rajveer 11344
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11345
    static {
3430 rajveer 11346
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11347
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11349
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11350
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 11351
    }
11352
 
11353
    public deleteUser_args() {
11354
    }
11355
 
11356
    public deleteUser_args(
11357
      String username)
11358
    {
11359
      this();
11360
      this.username = username;
11361
    }
11362
 
11363
    /**
11364
     * Performs a deep copy on <i>other</i>.
11365
     */
11366
    public deleteUser_args(deleteUser_args other) {
11367
      if (other.isSetUsername()) {
11368
        this.username = other.username;
11369
      }
11370
    }
11371
 
11372
    public deleteUser_args deepCopy() {
11373
      return new deleteUser_args(this);
11374
    }
11375
 
3430 rajveer 11376
    @Override
11377
    public void clear() {
11378
      this.username = null;
495 rajveer 11379
    }
11380
 
11381
    public String getUsername() {
11382
      return this.username;
11383
    }
11384
 
3430 rajveer 11385
    public void setUsername(String username) {
495 rajveer 11386
      this.username = username;
11387
    }
11388
 
11389
    public void unsetUsername() {
11390
      this.username = null;
11391
    }
11392
 
3430 rajveer 11393
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11394
    public boolean isSetUsername() {
11395
      return this.username != null;
11396
    }
11397
 
11398
    public void setUsernameIsSet(boolean value) {
11399
      if (!value) {
11400
        this.username = null;
11401
      }
11402
    }
11403
 
11404
    public void setFieldValue(_Fields field, Object value) {
11405
      switch (field) {
11406
      case USERNAME:
11407
        if (value == null) {
11408
          unsetUsername();
11409
        } else {
11410
          setUsername((String)value);
11411
        }
11412
        break;
11413
 
11414
      }
11415
    }
11416
 
11417
    public Object getFieldValue(_Fields field) {
11418
      switch (field) {
11419
      case USERNAME:
11420
        return getUsername();
11421
 
11422
      }
11423
      throw new IllegalStateException();
11424
    }
11425
 
3430 rajveer 11426
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11427
    public boolean isSet(_Fields field) {
11428
      if (field == null) {
11429
        throw new IllegalArgumentException();
11430
      }
495 rajveer 11431
 
11432
      switch (field) {
11433
      case USERNAME:
11434
        return isSetUsername();
11435
      }
11436
      throw new IllegalStateException();
11437
    }
11438
 
11439
    @Override
11440
    public boolean equals(Object that) {
11441
      if (that == null)
11442
        return false;
11443
      if (that instanceof deleteUser_args)
11444
        return this.equals((deleteUser_args)that);
11445
      return false;
11446
    }
11447
 
11448
    public boolean equals(deleteUser_args that) {
11449
      if (that == null)
11450
        return false;
11451
 
11452
      boolean this_present_username = true && this.isSetUsername();
11453
      boolean that_present_username = true && that.isSetUsername();
11454
      if (this_present_username || that_present_username) {
11455
        if (!(this_present_username && that_present_username))
11456
          return false;
11457
        if (!this.username.equals(that.username))
11458
          return false;
11459
      }
11460
 
11461
      return true;
11462
    }
11463
 
11464
    @Override
11465
    public int hashCode() {
11466
      return 0;
11467
    }
11468
 
11469
    public int compareTo(deleteUser_args other) {
11470
      if (!getClass().equals(other.getClass())) {
11471
        return getClass().getName().compareTo(other.getClass().getName());
11472
      }
11473
 
11474
      int lastComparison = 0;
11475
      deleteUser_args typedOther = (deleteUser_args)other;
11476
 
3430 rajveer 11477
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11478
      if (lastComparison != 0) {
11479
        return lastComparison;
11480
      }
3430 rajveer 11481
      if (isSetUsername()) {
11482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11483
        if (lastComparison != 0) {
11484
          return lastComparison;
11485
        }
495 rajveer 11486
      }
11487
      return 0;
11488
    }
11489
 
3430 rajveer 11490
    public _Fields fieldForId(int fieldId) {
11491
      return _Fields.findByThriftId(fieldId);
11492
    }
11493
 
11494
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11495
      org.apache.thrift.protocol.TField field;
495 rajveer 11496
      iprot.readStructBegin();
11497
      while (true)
11498
      {
11499
        field = iprot.readFieldBegin();
3430 rajveer 11500
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11501
          break;
11502
        }
3430 rajveer 11503
        switch (field.id) {
11504
          case 1: // USERNAME
11505
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11506
              this.username = iprot.readString();
11507
            } else { 
11508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11509
            }
11510
            break;
11511
          default:
11512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11513
        }
3430 rajveer 11514
        iprot.readFieldEnd();
495 rajveer 11515
      }
11516
      iprot.readStructEnd();
11517
      validate();
11518
    }
11519
 
3430 rajveer 11520
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11521
      validate();
11522
 
11523
      oprot.writeStructBegin(STRUCT_DESC);
11524
      if (this.username != null) {
11525
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11526
        oprot.writeString(this.username);
11527
        oprot.writeFieldEnd();
11528
      }
11529
      oprot.writeFieldStop();
11530
      oprot.writeStructEnd();
11531
    }
11532
 
11533
    @Override
11534
    public String toString() {
11535
      StringBuilder sb = new StringBuilder("deleteUser_args(");
11536
      boolean first = true;
11537
 
11538
      sb.append("username:");
11539
      if (this.username == null) {
11540
        sb.append("null");
11541
      } else {
11542
        sb.append(this.username);
11543
      }
11544
      first = false;
11545
      sb.append(")");
11546
      return sb.toString();
11547
    }
11548
 
3430 rajveer 11549
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11550
      // check for required fields
11551
    }
11552
 
3430 rajveer 11553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11554
      try {
11555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11556
      } catch (org.apache.thrift.TException te) {
11557
        throw new java.io.IOException(te);
11558
      }
11559
    }
11560
 
11561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11562
      try {
11563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11564
      } catch (org.apache.thrift.TException te) {
11565
        throw new java.io.IOException(te);
11566
      }
11567
    }
11568
 
495 rajveer 11569
  }
11570
 
3430 rajveer 11571
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
11572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 11573
 
3430 rajveer 11574
    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);
11575
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
495 rajveer 11576
 
3430 rajveer 11577
    private boolean success; // required
11578
    private HelperServiceException se; // required
495 rajveer 11579
 
11580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11582
      SUCCESS((short)0, "success"),
11583
      SE((short)1, "se");
11584
 
11585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11586
 
11587
      static {
11588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11589
          byName.put(field.getFieldName(), field);
11590
        }
11591
      }
11592
 
11593
      /**
11594
       * Find the _Fields constant that matches fieldId, or null if its not found.
11595
       */
11596
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11597
        switch(fieldId) {
11598
          case 0: // SUCCESS
11599
            return SUCCESS;
11600
          case 1: // SE
11601
            return SE;
11602
          default:
11603
            return null;
11604
        }
495 rajveer 11605
      }
11606
 
11607
      /**
11608
       * Find the _Fields constant that matches fieldId, throwing an exception
11609
       * if it is not found.
11610
       */
11611
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11612
        _Fields fields = findByThriftId(fieldId);
11613
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11614
        return fields;
11615
      }
11616
 
11617
      /**
11618
       * Find the _Fields constant that matches name, or null if its not found.
11619
       */
11620
      public static _Fields findByName(String name) {
11621
        return byName.get(name);
11622
      }
11623
 
11624
      private final short _thriftId;
11625
      private final String _fieldName;
11626
 
11627
      _Fields(short thriftId, String fieldName) {
11628
        _thriftId = thriftId;
11629
        _fieldName = fieldName;
11630
      }
11631
 
11632
      public short getThriftFieldId() {
11633
        return _thriftId;
11634
      }
11635
 
11636
      public String getFieldName() {
11637
        return _fieldName;
11638
      }
11639
    }
11640
 
11641
    // isset id assignments
11642
    private static final int __SUCCESS_ISSET_ID = 0;
11643
    private BitSet __isset_bit_vector = new BitSet(1);
11644
 
3430 rajveer 11645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11646
    static {
3430 rajveer 11647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11650
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 11654
    }
11655
 
11656
    public deleteUser_result() {
11657
    }
11658
 
11659
    public deleteUser_result(
11660
      boolean success,
11661
      HelperServiceException se)
11662
    {
11663
      this();
11664
      this.success = success;
11665
      setSuccessIsSet(true);
11666
      this.se = se;
11667
    }
11668
 
11669
    /**
11670
     * Performs a deep copy on <i>other</i>.
11671
     */
11672
    public deleteUser_result(deleteUser_result other) {
11673
      __isset_bit_vector.clear();
11674
      __isset_bit_vector.or(other.__isset_bit_vector);
11675
      this.success = other.success;
11676
      if (other.isSetSe()) {
11677
        this.se = new HelperServiceException(other.se);
11678
      }
11679
    }
11680
 
11681
    public deleteUser_result deepCopy() {
11682
      return new deleteUser_result(this);
11683
    }
11684
 
3430 rajveer 11685
    @Override
11686
    public void clear() {
11687
      setSuccessIsSet(false);
11688
      this.success = false;
11689
      this.se = null;
495 rajveer 11690
    }
11691
 
11692
    public boolean isSuccess() {
11693
      return this.success;
11694
    }
11695
 
3430 rajveer 11696
    public void setSuccess(boolean success) {
495 rajveer 11697
      this.success = success;
11698
      setSuccessIsSet(true);
11699
    }
11700
 
11701
    public void unsetSuccess() {
11702
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11703
    }
11704
 
3430 rajveer 11705
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11706
    public boolean isSetSuccess() {
11707
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11708
    }
11709
 
11710
    public void setSuccessIsSet(boolean value) {
11711
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11712
    }
11713
 
11714
    public HelperServiceException getSe() {
11715
      return this.se;
11716
    }
11717
 
3430 rajveer 11718
    public void setSe(HelperServiceException se) {
495 rajveer 11719
      this.se = se;
11720
    }
11721
 
11722
    public void unsetSe() {
11723
      this.se = null;
11724
    }
11725
 
3430 rajveer 11726
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11727
    public boolean isSetSe() {
11728
      return this.se != null;
11729
    }
11730
 
11731
    public void setSeIsSet(boolean value) {
11732
      if (!value) {
11733
        this.se = null;
11734
      }
11735
    }
11736
 
11737
    public void setFieldValue(_Fields field, Object value) {
11738
      switch (field) {
11739
      case SUCCESS:
11740
        if (value == null) {
11741
          unsetSuccess();
11742
        } else {
11743
          setSuccess((Boolean)value);
11744
        }
11745
        break;
11746
 
11747
      case SE:
11748
        if (value == null) {
11749
          unsetSe();
11750
        } else {
11751
          setSe((HelperServiceException)value);
11752
        }
11753
        break;
11754
 
11755
      }
11756
    }
11757
 
11758
    public Object getFieldValue(_Fields field) {
11759
      switch (field) {
11760
      case SUCCESS:
3430 rajveer 11761
        return Boolean.valueOf(isSuccess());
495 rajveer 11762
 
11763
      case SE:
11764
        return getSe();
11765
 
11766
      }
11767
      throw new IllegalStateException();
11768
    }
11769
 
3430 rajveer 11770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11771
    public boolean isSet(_Fields field) {
11772
      if (field == null) {
11773
        throw new IllegalArgumentException();
11774
      }
495 rajveer 11775
 
11776
      switch (field) {
11777
      case SUCCESS:
11778
        return isSetSuccess();
11779
      case SE:
11780
        return isSetSe();
11781
      }
11782
      throw new IllegalStateException();
11783
    }
11784
 
11785
    @Override
11786
    public boolean equals(Object that) {
11787
      if (that == null)
11788
        return false;
11789
      if (that instanceof deleteUser_result)
11790
        return this.equals((deleteUser_result)that);
11791
      return false;
11792
    }
11793
 
11794
    public boolean equals(deleteUser_result that) {
11795
      if (that == null)
11796
        return false;
11797
 
11798
      boolean this_present_success = true;
11799
      boolean that_present_success = true;
11800
      if (this_present_success || that_present_success) {
11801
        if (!(this_present_success && that_present_success))
11802
          return false;
11803
        if (this.success != that.success)
11804
          return false;
11805
      }
11806
 
11807
      boolean this_present_se = true && this.isSetSe();
11808
      boolean that_present_se = true && that.isSetSe();
11809
      if (this_present_se || that_present_se) {
11810
        if (!(this_present_se && that_present_se))
11811
          return false;
11812
        if (!this.se.equals(that.se))
11813
          return false;
11814
      }
11815
 
11816
      return true;
11817
    }
11818
 
11819
    @Override
11820
    public int hashCode() {
11821
      return 0;
11822
    }
11823
 
11824
    public int compareTo(deleteUser_result other) {
11825
      if (!getClass().equals(other.getClass())) {
11826
        return getClass().getName().compareTo(other.getClass().getName());
11827
      }
11828
 
11829
      int lastComparison = 0;
11830
      deleteUser_result typedOther = (deleteUser_result)other;
11831
 
3430 rajveer 11832
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11833
      if (lastComparison != 0) {
11834
        return lastComparison;
11835
      }
3430 rajveer 11836
      if (isSetSuccess()) {
11837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11838
        if (lastComparison != 0) {
11839
          return lastComparison;
11840
        }
495 rajveer 11841
      }
3430 rajveer 11842
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11843
      if (lastComparison != 0) {
11844
        return lastComparison;
11845
      }
3430 rajveer 11846
      if (isSetSe()) {
11847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11848
        if (lastComparison != 0) {
11849
          return lastComparison;
11850
        }
495 rajveer 11851
      }
11852
      return 0;
11853
    }
11854
 
3430 rajveer 11855
    public _Fields fieldForId(int fieldId) {
11856
      return _Fields.findByThriftId(fieldId);
11857
    }
11858
 
11859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11860
      org.apache.thrift.protocol.TField field;
495 rajveer 11861
      iprot.readStructBegin();
11862
      while (true)
11863
      {
11864
        field = iprot.readFieldBegin();
3430 rajveer 11865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11866
          break;
11867
        }
3430 rajveer 11868
        switch (field.id) {
11869
          case 0: // SUCCESS
11870
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11871
              this.success = iprot.readBool();
11872
              setSuccessIsSet(true);
11873
            } else { 
11874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11875
            }
11876
            break;
11877
          case 1: // SE
11878
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11879
              this.se = new HelperServiceException();
11880
              this.se.read(iprot);
11881
            } else { 
11882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11883
            }
11884
            break;
11885
          default:
11886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11887
        }
3430 rajveer 11888
        iprot.readFieldEnd();
495 rajveer 11889
      }
11890
      iprot.readStructEnd();
11891
      validate();
11892
    }
11893
 
3430 rajveer 11894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11895
      oprot.writeStructBegin(STRUCT_DESC);
11896
 
11897
      if (this.isSetSuccess()) {
11898
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11899
        oprot.writeBool(this.success);
11900
        oprot.writeFieldEnd();
11901
      } else if (this.isSetSe()) {
11902
        oprot.writeFieldBegin(SE_FIELD_DESC);
11903
        this.se.write(oprot);
11904
        oprot.writeFieldEnd();
11905
      }
11906
      oprot.writeFieldStop();
11907
      oprot.writeStructEnd();
11908
    }
11909
 
11910
    @Override
11911
    public String toString() {
11912
      StringBuilder sb = new StringBuilder("deleteUser_result(");
11913
      boolean first = true;
11914
 
11915
      sb.append("success:");
11916
      sb.append(this.success);
11917
      first = false;
11918
      if (!first) sb.append(", ");
11919
      sb.append("se:");
11920
      if (this.se == null) {
11921
        sb.append("null");
11922
      } else {
11923
        sb.append(this.se);
11924
      }
11925
      first = false;
11926
      sb.append(")");
11927
      return sb.toString();
11928
    }
11929
 
3430 rajveer 11930
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11931
      // check for required fields
11932
    }
11933
 
3430 rajveer 11934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11935
      try {
11936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11937
      } catch (org.apache.thrift.TException te) {
11938
        throw new java.io.IOException(te);
11939
      }
11940
    }
11941
 
11942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11943
      try {
11944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11945
      } catch (org.apache.thrift.TException te) {
11946
        throw new java.io.IOException(te);
11947
      }
11948
    }
11949
 
495 rajveer 11950
  }
11951
 
3430 rajveer 11952
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
11953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 11954
 
3430 rajveer 11955
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
11956
    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);
495 rajveer 11957
 
3430 rajveer 11958
    private String username; // required
11959
    private String password; // required
495 rajveer 11960
 
11961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11963
      USERNAME((short)1, "username"),
11964
      PASSWORD((short)2, "password");
11965
 
11966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11967
 
11968
      static {
11969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11970
          byName.put(field.getFieldName(), field);
11971
        }
11972
      }
11973
 
11974
      /**
11975
       * Find the _Fields constant that matches fieldId, or null if its not found.
11976
       */
11977
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11978
        switch(fieldId) {
11979
          case 1: // USERNAME
11980
            return USERNAME;
11981
          case 2: // PASSWORD
11982
            return PASSWORD;
11983
          default:
11984
            return null;
11985
        }
495 rajveer 11986
      }
11987
 
11988
      /**
11989
       * Find the _Fields constant that matches fieldId, throwing an exception
11990
       * if it is not found.
11991
       */
11992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11993
        _Fields fields = findByThriftId(fieldId);
11994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11995
        return fields;
11996
      }
11997
 
11998
      /**
11999
       * Find the _Fields constant that matches name, or null if its not found.
12000
       */
12001
      public static _Fields findByName(String name) {
12002
        return byName.get(name);
12003
      }
12004
 
12005
      private final short _thriftId;
12006
      private final String _fieldName;
12007
 
12008
      _Fields(short thriftId, String fieldName) {
12009
        _thriftId = thriftId;
12010
        _fieldName = fieldName;
12011
      }
12012
 
12013
      public short getThriftFieldId() {
12014
        return _thriftId;
12015
      }
12016
 
12017
      public String getFieldName() {
12018
        return _fieldName;
12019
      }
12020
    }
12021
 
12022
    // isset id assignments
12023
 
3430 rajveer 12024
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12025
    static {
3430 rajveer 12026
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12027
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12029
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12031
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12032
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 12033
    }
12034
 
2443 chandransh 12035
    public authenticateDashboardUser_args() {
495 rajveer 12036
    }
12037
 
2443 chandransh 12038
    public authenticateDashboardUser_args(
495 rajveer 12039
      String username,
12040
      String password)
12041
    {
12042
      this();
12043
      this.username = username;
12044
      this.password = password;
12045
    }
12046
 
12047
    /**
12048
     * Performs a deep copy on <i>other</i>.
12049
     */
2443 chandransh 12050
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 12051
      if (other.isSetUsername()) {
12052
        this.username = other.username;
12053
      }
12054
      if (other.isSetPassword()) {
12055
        this.password = other.password;
12056
      }
12057
    }
12058
 
2443 chandransh 12059
    public authenticateDashboardUser_args deepCopy() {
12060
      return new authenticateDashboardUser_args(this);
495 rajveer 12061
    }
12062
 
3430 rajveer 12063
    @Override
12064
    public void clear() {
12065
      this.username = null;
12066
      this.password = null;
495 rajveer 12067
    }
12068
 
12069
    public String getUsername() {
12070
      return this.username;
12071
    }
12072
 
3430 rajveer 12073
    public void setUsername(String username) {
495 rajveer 12074
      this.username = username;
12075
    }
12076
 
12077
    public void unsetUsername() {
12078
      this.username = null;
12079
    }
12080
 
3430 rajveer 12081
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 12082
    public boolean isSetUsername() {
12083
      return this.username != null;
12084
    }
12085
 
12086
    public void setUsernameIsSet(boolean value) {
12087
      if (!value) {
12088
        this.username = null;
12089
      }
12090
    }
12091
 
12092
    public String getPassword() {
12093
      return this.password;
12094
    }
12095
 
3430 rajveer 12096
    public void setPassword(String password) {
495 rajveer 12097
      this.password = password;
12098
    }
12099
 
12100
    public void unsetPassword() {
12101
      this.password = null;
12102
    }
12103
 
3430 rajveer 12104
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 12105
    public boolean isSetPassword() {
12106
      return this.password != null;
12107
    }
12108
 
12109
    public void setPasswordIsSet(boolean value) {
12110
      if (!value) {
12111
        this.password = null;
12112
      }
12113
    }
12114
 
12115
    public void setFieldValue(_Fields field, Object value) {
12116
      switch (field) {
12117
      case USERNAME:
12118
        if (value == null) {
12119
          unsetUsername();
12120
        } else {
12121
          setUsername((String)value);
12122
        }
12123
        break;
12124
 
12125
      case PASSWORD:
12126
        if (value == null) {
12127
          unsetPassword();
12128
        } else {
12129
          setPassword((String)value);
12130
        }
12131
        break;
12132
 
12133
      }
12134
    }
12135
 
12136
    public Object getFieldValue(_Fields field) {
12137
      switch (field) {
12138
      case USERNAME:
12139
        return getUsername();
12140
 
12141
      case PASSWORD:
12142
        return getPassword();
12143
 
12144
      }
12145
      throw new IllegalStateException();
12146
    }
12147
 
3430 rajveer 12148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12149
    public boolean isSet(_Fields field) {
12150
      if (field == null) {
12151
        throw new IllegalArgumentException();
12152
      }
495 rajveer 12153
 
12154
      switch (field) {
12155
      case USERNAME:
12156
        return isSetUsername();
12157
      case PASSWORD:
12158
        return isSetPassword();
12159
      }
12160
      throw new IllegalStateException();
12161
    }
12162
 
12163
    @Override
12164
    public boolean equals(Object that) {
12165
      if (that == null)
12166
        return false;
2443 chandransh 12167
      if (that instanceof authenticateDashboardUser_args)
12168
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 12169
      return false;
12170
    }
12171
 
2443 chandransh 12172
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 12173
      if (that == null)
12174
        return false;
12175
 
12176
      boolean this_present_username = true && this.isSetUsername();
12177
      boolean that_present_username = true && that.isSetUsername();
12178
      if (this_present_username || that_present_username) {
12179
        if (!(this_present_username && that_present_username))
12180
          return false;
12181
        if (!this.username.equals(that.username))
12182
          return false;
12183
      }
12184
 
12185
      boolean this_present_password = true && this.isSetPassword();
12186
      boolean that_present_password = true && that.isSetPassword();
12187
      if (this_present_password || that_present_password) {
12188
        if (!(this_present_password && that_present_password))
12189
          return false;
12190
        if (!this.password.equals(that.password))
12191
          return false;
12192
      }
12193
 
12194
      return true;
12195
    }
12196
 
12197
    @Override
12198
    public int hashCode() {
12199
      return 0;
12200
    }
12201
 
2443 chandransh 12202
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 12203
      if (!getClass().equals(other.getClass())) {
12204
        return getClass().getName().compareTo(other.getClass().getName());
12205
      }
12206
 
12207
      int lastComparison = 0;
2443 chandransh 12208
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 12209
 
3430 rajveer 12210
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 12211
      if (lastComparison != 0) {
12212
        return lastComparison;
12213
      }
3430 rajveer 12214
      if (isSetUsername()) {
12215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12216
        if (lastComparison != 0) {
12217
          return lastComparison;
12218
        }
495 rajveer 12219
      }
3430 rajveer 12220
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 12221
      if (lastComparison != 0) {
12222
        return lastComparison;
12223
      }
3430 rajveer 12224
      if (isSetPassword()) {
12225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12226
        if (lastComparison != 0) {
12227
          return lastComparison;
12228
        }
495 rajveer 12229
      }
12230
      return 0;
12231
    }
12232
 
3430 rajveer 12233
    public _Fields fieldForId(int fieldId) {
12234
      return _Fields.findByThriftId(fieldId);
12235
    }
12236
 
12237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12238
      org.apache.thrift.protocol.TField field;
495 rajveer 12239
      iprot.readStructBegin();
12240
      while (true)
12241
      {
12242
        field = iprot.readFieldBegin();
3430 rajveer 12243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12244
          break;
12245
        }
3430 rajveer 12246
        switch (field.id) {
12247
          case 1: // USERNAME
12248
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12249
              this.username = iprot.readString();
12250
            } else { 
12251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12252
            }
12253
            break;
12254
          case 2: // PASSWORD
12255
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12256
              this.password = iprot.readString();
12257
            } else { 
12258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12259
            }
12260
            break;
12261
          default:
12262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12263
        }
3430 rajveer 12264
        iprot.readFieldEnd();
495 rajveer 12265
      }
12266
      iprot.readStructEnd();
12267
      validate();
12268
    }
12269
 
3430 rajveer 12270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12271
      validate();
12272
 
12273
      oprot.writeStructBegin(STRUCT_DESC);
12274
      if (this.username != null) {
12275
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12276
        oprot.writeString(this.username);
12277
        oprot.writeFieldEnd();
12278
      }
12279
      if (this.password != null) {
12280
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12281
        oprot.writeString(this.password);
12282
        oprot.writeFieldEnd();
12283
      }
12284
      oprot.writeFieldStop();
12285
      oprot.writeStructEnd();
12286
    }
12287
 
12288
    @Override
12289
    public String toString() {
2443 chandransh 12290
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 12291
      boolean first = true;
12292
 
12293
      sb.append("username:");
12294
      if (this.username == null) {
12295
        sb.append("null");
12296
      } else {
12297
        sb.append(this.username);
12298
      }
12299
      first = false;
12300
      if (!first) sb.append(", ");
12301
      sb.append("password:");
12302
      if (this.password == null) {
12303
        sb.append("null");
12304
      } else {
12305
        sb.append(this.password);
12306
      }
12307
      first = false;
12308
      sb.append(")");
12309
      return sb.toString();
12310
    }
12311
 
3430 rajveer 12312
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12313
      // check for required fields
12314
    }
12315
 
3430 rajveer 12316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12317
      try {
12318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12319
      } catch (org.apache.thrift.TException te) {
12320
        throw new java.io.IOException(te);
12321
      }
12322
    }
12323
 
12324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12325
      try {
12326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12327
      } catch (org.apache.thrift.TException te) {
12328
        throw new java.io.IOException(te);
12329
      }
12330
    }
12331
 
495 rajveer 12332
  }
12333
 
3430 rajveer 12334
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
12335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 12336
 
3430 rajveer 12337
    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);
12338
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
495 rajveer 12339
 
3430 rajveer 12340
    private DashboardUser success; // required
12341
    private HelperServiceException se; // required
495 rajveer 12342
 
12343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12345
      SUCCESS((short)0, "success"),
12346
      SE((short)1, "se");
12347
 
12348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12349
 
12350
      static {
12351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12352
          byName.put(field.getFieldName(), field);
12353
        }
12354
      }
12355
 
12356
      /**
12357
       * Find the _Fields constant that matches fieldId, or null if its not found.
12358
       */
12359
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12360
        switch(fieldId) {
12361
          case 0: // SUCCESS
12362
            return SUCCESS;
12363
          case 1: // SE
12364
            return SE;
12365
          default:
12366
            return null;
12367
        }
495 rajveer 12368
      }
12369
 
12370
      /**
12371
       * Find the _Fields constant that matches fieldId, throwing an exception
12372
       * if it is not found.
12373
       */
12374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12375
        _Fields fields = findByThriftId(fieldId);
12376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12377
        return fields;
12378
      }
12379
 
12380
      /**
12381
       * Find the _Fields constant that matches name, or null if its not found.
12382
       */
12383
      public static _Fields findByName(String name) {
12384
        return byName.get(name);
12385
      }
12386
 
12387
      private final short _thriftId;
12388
      private final String _fieldName;
12389
 
12390
      _Fields(short thriftId, String fieldName) {
12391
        _thriftId = thriftId;
12392
        _fieldName = fieldName;
12393
      }
12394
 
12395
      public short getThriftFieldId() {
12396
        return _thriftId;
12397
      }
12398
 
12399
      public String getFieldName() {
12400
        return _fieldName;
12401
      }
12402
    }
12403
 
12404
    // isset id assignments
12405
 
3430 rajveer 12406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12407
    static {
3430 rajveer 12408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12409
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12410
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
12411
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12412
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 12415
    }
12416
 
2443 chandransh 12417
    public authenticateDashboardUser_result() {
495 rajveer 12418
    }
12419
 
2443 chandransh 12420
    public authenticateDashboardUser_result(
12421
      DashboardUser success,
495 rajveer 12422
      HelperServiceException se)
12423
    {
12424
      this();
12425
      this.success = success;
12426
      this.se = se;
12427
    }
12428
 
12429
    /**
12430
     * Performs a deep copy on <i>other</i>.
12431
     */
2443 chandransh 12432
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
12433
      if (other.isSetSuccess()) {
12434
        this.success = new DashboardUser(other.success);
12435
      }
495 rajveer 12436
      if (other.isSetSe()) {
12437
        this.se = new HelperServiceException(other.se);
12438
      }
12439
    }
12440
 
2443 chandransh 12441
    public authenticateDashboardUser_result deepCopy() {
12442
      return new authenticateDashboardUser_result(this);
495 rajveer 12443
    }
12444
 
3430 rajveer 12445
    @Override
12446
    public void clear() {
12447
      this.success = null;
12448
      this.se = null;
495 rajveer 12449
    }
12450
 
2443 chandransh 12451
    public DashboardUser getSuccess() {
495 rajveer 12452
      return this.success;
12453
    }
12454
 
3430 rajveer 12455
    public void setSuccess(DashboardUser success) {
495 rajveer 12456
      this.success = success;
12457
    }
12458
 
12459
    public void unsetSuccess() {
2443 chandransh 12460
      this.success = null;
495 rajveer 12461
    }
12462
 
3430 rajveer 12463
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12464
    public boolean isSetSuccess() {
2443 chandransh 12465
      return this.success != null;
495 rajveer 12466
    }
12467
 
12468
    public void setSuccessIsSet(boolean value) {
2443 chandransh 12469
      if (!value) {
12470
        this.success = null;
12471
      }
495 rajveer 12472
    }
12473
 
12474
    public HelperServiceException getSe() {
12475
      return this.se;
12476
    }
12477
 
3430 rajveer 12478
    public void setSe(HelperServiceException se) {
495 rajveer 12479
      this.se = se;
12480
    }
12481
 
12482
    public void unsetSe() {
12483
      this.se = null;
12484
    }
12485
 
3430 rajveer 12486
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12487
    public boolean isSetSe() {
12488
      return this.se != null;
12489
    }
12490
 
12491
    public void setSeIsSet(boolean value) {
12492
      if (!value) {
12493
        this.se = null;
12494
      }
12495
    }
12496
 
12497
    public void setFieldValue(_Fields field, Object value) {
12498
      switch (field) {
12499
      case SUCCESS:
12500
        if (value == null) {
12501
          unsetSuccess();
12502
        } else {
2443 chandransh 12503
          setSuccess((DashboardUser)value);
495 rajveer 12504
        }
12505
        break;
12506
 
12507
      case SE:
12508
        if (value == null) {
12509
          unsetSe();
12510
        } else {
12511
          setSe((HelperServiceException)value);
12512
        }
12513
        break;
12514
 
12515
      }
12516
    }
12517
 
12518
    public Object getFieldValue(_Fields field) {
12519
      switch (field) {
12520
      case SUCCESS:
2443 chandransh 12521
        return getSuccess();
495 rajveer 12522
 
12523
      case SE:
12524
        return getSe();
12525
 
12526
      }
12527
      throw new IllegalStateException();
12528
    }
12529
 
3430 rajveer 12530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12531
    public boolean isSet(_Fields field) {
12532
      if (field == null) {
12533
        throw new IllegalArgumentException();
12534
      }
495 rajveer 12535
 
12536
      switch (field) {
12537
      case SUCCESS:
12538
        return isSetSuccess();
12539
      case SE:
12540
        return isSetSe();
12541
      }
12542
      throw new IllegalStateException();
12543
    }
12544
 
12545
    @Override
12546
    public boolean equals(Object that) {
12547
      if (that == null)
12548
        return false;
2443 chandransh 12549
      if (that instanceof authenticateDashboardUser_result)
12550
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 12551
      return false;
12552
    }
12553
 
2443 chandransh 12554
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 12555
      if (that == null)
12556
        return false;
12557
 
2443 chandransh 12558
      boolean this_present_success = true && this.isSetSuccess();
12559
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 12560
      if (this_present_success || that_present_success) {
12561
        if (!(this_present_success && that_present_success))
12562
          return false;
2443 chandransh 12563
        if (!this.success.equals(that.success))
495 rajveer 12564
          return false;
12565
      }
12566
 
12567
      boolean this_present_se = true && this.isSetSe();
12568
      boolean that_present_se = true && that.isSetSe();
12569
      if (this_present_se || that_present_se) {
12570
        if (!(this_present_se && that_present_se))
12571
          return false;
12572
        if (!this.se.equals(that.se))
12573
          return false;
12574
      }
12575
 
12576
      return true;
12577
    }
12578
 
12579
    @Override
12580
    public int hashCode() {
12581
      return 0;
12582
    }
12583
 
2443 chandransh 12584
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 12585
      if (!getClass().equals(other.getClass())) {
12586
        return getClass().getName().compareTo(other.getClass().getName());
12587
      }
12588
 
12589
      int lastComparison = 0;
2443 chandransh 12590
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 12591
 
3430 rajveer 12592
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12593
      if (lastComparison != 0) {
12594
        return lastComparison;
12595
      }
3430 rajveer 12596
      if (isSetSuccess()) {
12597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12598
        if (lastComparison != 0) {
12599
          return lastComparison;
12600
        }
495 rajveer 12601
      }
3430 rajveer 12602
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12603
      if (lastComparison != 0) {
12604
        return lastComparison;
12605
      }
3430 rajveer 12606
      if (isSetSe()) {
12607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12608
        if (lastComparison != 0) {
12609
          return lastComparison;
12610
        }
495 rajveer 12611
      }
12612
      return 0;
12613
    }
12614
 
3430 rajveer 12615
    public _Fields fieldForId(int fieldId) {
12616
      return _Fields.findByThriftId(fieldId);
12617
    }
12618
 
12619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12620
      org.apache.thrift.protocol.TField field;
495 rajveer 12621
      iprot.readStructBegin();
12622
      while (true)
12623
      {
12624
        field = iprot.readFieldBegin();
3430 rajveer 12625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12626
          break;
12627
        }
3430 rajveer 12628
        switch (field.id) {
12629
          case 0: // SUCCESS
12630
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12631
              this.success = new DashboardUser();
12632
              this.success.read(iprot);
12633
            } else { 
12634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12635
            }
12636
            break;
12637
          case 1: // SE
12638
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12639
              this.se = new HelperServiceException();
12640
              this.se.read(iprot);
12641
            } else { 
12642
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12643
            }
12644
            break;
12645
          default:
12646
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12647
        }
3430 rajveer 12648
        iprot.readFieldEnd();
495 rajveer 12649
      }
12650
      iprot.readStructEnd();
12651
      validate();
12652
    }
12653
 
3430 rajveer 12654
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12655
      oprot.writeStructBegin(STRUCT_DESC);
12656
 
12657
      if (this.isSetSuccess()) {
12658
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 12659
        this.success.write(oprot);
495 rajveer 12660
        oprot.writeFieldEnd();
12661
      } else if (this.isSetSe()) {
12662
        oprot.writeFieldBegin(SE_FIELD_DESC);
12663
        this.se.write(oprot);
12664
        oprot.writeFieldEnd();
12665
      }
12666
      oprot.writeFieldStop();
12667
      oprot.writeStructEnd();
12668
    }
12669
 
12670
    @Override
12671
    public String toString() {
2443 chandransh 12672
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 12673
      boolean first = true;
12674
 
12675
      sb.append("success:");
2443 chandransh 12676
      if (this.success == null) {
12677
        sb.append("null");
12678
      } else {
12679
        sb.append(this.success);
12680
      }
495 rajveer 12681
      first = false;
12682
      if (!first) sb.append(", ");
12683
      sb.append("se:");
12684
      if (this.se == null) {
12685
        sb.append("null");
12686
      } else {
12687
        sb.append(this.se);
12688
      }
12689
      first = false;
12690
      sb.append(")");
12691
      return sb.toString();
12692
    }
12693
 
3430 rajveer 12694
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12695
      // check for required fields
12696
    }
12697
 
3430 rajveer 12698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12699
      try {
12700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12701
      } catch (org.apache.thrift.TException te) {
12702
        throw new java.io.IOException(te);
12703
      }
12704
    }
12705
 
12706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12707
      try {
12708
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12709
      } catch (org.apache.thrift.TException te) {
12710
        throw new java.io.IOException(te);
12711
      }
12712
    }
12713
 
495 rajveer 12714
  }
12715
 
3430 rajveer 12716
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
12717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 12718
 
3430 rajveer 12719
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
12720
    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);
12721
    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);
495 rajveer 12722
 
3430 rajveer 12723
    private String username; // required
12724
    private String oldPassword; // required
12725
    private String newPassword; // required
495 rajveer 12726
 
12727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12728
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12729
      USERNAME((short)1, "username"),
12730
      OLD_PASSWORD((short)2, "oldPassword"),
12731
      NEW_PASSWORD((short)3, "newPassword");
12732
 
12733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12734
 
12735
      static {
12736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12737
          byName.put(field.getFieldName(), field);
12738
        }
12739
      }
12740
 
12741
      /**
12742
       * Find the _Fields constant that matches fieldId, or null if its not found.
12743
       */
12744
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12745
        switch(fieldId) {
12746
          case 1: // USERNAME
12747
            return USERNAME;
12748
          case 2: // OLD_PASSWORD
12749
            return OLD_PASSWORD;
12750
          case 3: // NEW_PASSWORD
12751
            return NEW_PASSWORD;
12752
          default:
12753
            return null;
12754
        }
495 rajveer 12755
      }
12756
 
12757
      /**
12758
       * Find the _Fields constant that matches fieldId, throwing an exception
12759
       * if it is not found.
12760
       */
12761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12762
        _Fields fields = findByThriftId(fieldId);
12763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12764
        return fields;
12765
      }
12766
 
12767
      /**
12768
       * Find the _Fields constant that matches name, or null if its not found.
12769
       */
12770
      public static _Fields findByName(String name) {
12771
        return byName.get(name);
12772
      }
12773
 
12774
      private final short _thriftId;
12775
      private final String _fieldName;
12776
 
12777
      _Fields(short thriftId, String fieldName) {
12778
        _thriftId = thriftId;
12779
        _fieldName = fieldName;
12780
      }
12781
 
12782
      public short getThriftFieldId() {
12783
        return _thriftId;
12784
      }
12785
 
12786
      public String getFieldName() {
12787
        return _fieldName;
12788
      }
12789
    }
12790
 
12791
    // isset id assignments
12792
 
3430 rajveer 12793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12794
    static {
3430 rajveer 12795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12796
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12798
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12800
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12802
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12803
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 12804
    }
12805
 
12806
    public updatePassword_args() {
12807
    }
12808
 
12809
    public updatePassword_args(
12810
      String username,
12811
      String oldPassword,
12812
      String newPassword)
12813
    {
12814
      this();
12815
      this.username = username;
12816
      this.oldPassword = oldPassword;
12817
      this.newPassword = newPassword;
12818
    }
12819
 
12820
    /**
12821
     * Performs a deep copy on <i>other</i>.
12822
     */
12823
    public updatePassword_args(updatePassword_args other) {
12824
      if (other.isSetUsername()) {
12825
        this.username = other.username;
12826
      }
12827
      if (other.isSetOldPassword()) {
12828
        this.oldPassword = other.oldPassword;
12829
      }
12830
      if (other.isSetNewPassword()) {
12831
        this.newPassword = other.newPassword;
12832
      }
12833
    }
12834
 
12835
    public updatePassword_args deepCopy() {
12836
      return new updatePassword_args(this);
12837
    }
12838
 
3430 rajveer 12839
    @Override
12840
    public void clear() {
12841
      this.username = null;
12842
      this.oldPassword = null;
12843
      this.newPassword = null;
495 rajveer 12844
    }
12845
 
12846
    public String getUsername() {
12847
      return this.username;
12848
    }
12849
 
3430 rajveer 12850
    public void setUsername(String username) {
495 rajveer 12851
      this.username = username;
12852
    }
12853
 
12854
    public void unsetUsername() {
12855
      this.username = null;
12856
    }
12857
 
3430 rajveer 12858
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 12859
    public boolean isSetUsername() {
12860
      return this.username != null;
12861
    }
12862
 
12863
    public void setUsernameIsSet(boolean value) {
12864
      if (!value) {
12865
        this.username = null;
12866
      }
12867
    }
12868
 
12869
    public String getOldPassword() {
12870
      return this.oldPassword;
12871
    }
12872
 
3430 rajveer 12873
    public void setOldPassword(String oldPassword) {
495 rajveer 12874
      this.oldPassword = oldPassword;
12875
    }
12876
 
12877
    public void unsetOldPassword() {
12878
      this.oldPassword = null;
12879
    }
12880
 
3430 rajveer 12881
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 12882
    public boolean isSetOldPassword() {
12883
      return this.oldPassword != null;
12884
    }
12885
 
12886
    public void setOldPasswordIsSet(boolean value) {
12887
      if (!value) {
12888
        this.oldPassword = null;
12889
      }
12890
    }
12891
 
12892
    public String getNewPassword() {
12893
      return this.newPassword;
12894
    }
12895
 
3430 rajveer 12896
    public void setNewPassword(String newPassword) {
495 rajveer 12897
      this.newPassword = newPassword;
12898
    }
12899
 
12900
    public void unsetNewPassword() {
12901
      this.newPassword = null;
12902
    }
12903
 
3430 rajveer 12904
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 12905
    public boolean isSetNewPassword() {
12906
      return this.newPassword != null;
12907
    }
12908
 
12909
    public void setNewPasswordIsSet(boolean value) {
12910
      if (!value) {
12911
        this.newPassword = null;
12912
      }
12913
    }
12914
 
12915
    public void setFieldValue(_Fields field, Object value) {
12916
      switch (field) {
12917
      case USERNAME:
12918
        if (value == null) {
12919
          unsetUsername();
12920
        } else {
12921
          setUsername((String)value);
12922
        }
12923
        break;
12924
 
12925
      case OLD_PASSWORD:
12926
        if (value == null) {
12927
          unsetOldPassword();
12928
        } else {
12929
          setOldPassword((String)value);
12930
        }
12931
        break;
12932
 
12933
      case NEW_PASSWORD:
12934
        if (value == null) {
12935
          unsetNewPassword();
12936
        } else {
12937
          setNewPassword((String)value);
12938
        }
12939
        break;
12940
 
12941
      }
12942
    }
12943
 
12944
    public Object getFieldValue(_Fields field) {
12945
      switch (field) {
12946
      case USERNAME:
12947
        return getUsername();
12948
 
12949
      case OLD_PASSWORD:
12950
        return getOldPassword();
12951
 
12952
      case NEW_PASSWORD:
12953
        return getNewPassword();
12954
 
12955
      }
12956
      throw new IllegalStateException();
12957
    }
12958
 
3430 rajveer 12959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12960
    public boolean isSet(_Fields field) {
12961
      if (field == null) {
12962
        throw new IllegalArgumentException();
12963
      }
495 rajveer 12964
 
12965
      switch (field) {
12966
      case USERNAME:
12967
        return isSetUsername();
12968
      case OLD_PASSWORD:
12969
        return isSetOldPassword();
12970
      case NEW_PASSWORD:
12971
        return isSetNewPassword();
12972
      }
12973
      throw new IllegalStateException();
12974
    }
12975
 
12976
    @Override
12977
    public boolean equals(Object that) {
12978
      if (that == null)
12979
        return false;
12980
      if (that instanceof updatePassword_args)
12981
        return this.equals((updatePassword_args)that);
12982
      return false;
12983
    }
12984
 
12985
    public boolean equals(updatePassword_args that) {
12986
      if (that == null)
12987
        return false;
12988
 
12989
      boolean this_present_username = true && this.isSetUsername();
12990
      boolean that_present_username = true && that.isSetUsername();
12991
      if (this_present_username || that_present_username) {
12992
        if (!(this_present_username && that_present_username))
12993
          return false;
12994
        if (!this.username.equals(that.username))
12995
          return false;
12996
      }
12997
 
12998
      boolean this_present_oldPassword = true && this.isSetOldPassword();
12999
      boolean that_present_oldPassword = true && that.isSetOldPassword();
13000
      if (this_present_oldPassword || that_present_oldPassword) {
13001
        if (!(this_present_oldPassword && that_present_oldPassword))
13002
          return false;
13003
        if (!this.oldPassword.equals(that.oldPassword))
13004
          return false;
13005
      }
13006
 
13007
      boolean this_present_newPassword = true && this.isSetNewPassword();
13008
      boolean that_present_newPassword = true && that.isSetNewPassword();
13009
      if (this_present_newPassword || that_present_newPassword) {
13010
        if (!(this_present_newPassword && that_present_newPassword))
13011
          return false;
13012
        if (!this.newPassword.equals(that.newPassword))
13013
          return false;
13014
      }
13015
 
13016
      return true;
13017
    }
13018
 
13019
    @Override
13020
    public int hashCode() {
13021
      return 0;
13022
    }
13023
 
13024
    public int compareTo(updatePassword_args other) {
13025
      if (!getClass().equals(other.getClass())) {
13026
        return getClass().getName().compareTo(other.getClass().getName());
13027
      }
13028
 
13029
      int lastComparison = 0;
13030
      updatePassword_args typedOther = (updatePassword_args)other;
13031
 
3430 rajveer 13032
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 13033
      if (lastComparison != 0) {
13034
        return lastComparison;
13035
      }
3430 rajveer 13036
      if (isSetUsername()) {
13037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13038
        if (lastComparison != 0) {
13039
          return lastComparison;
13040
        }
495 rajveer 13041
      }
3430 rajveer 13042
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 13043
      if (lastComparison != 0) {
13044
        return lastComparison;
13045
      }
3430 rajveer 13046
      if (isSetOldPassword()) {
13047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
13048
        if (lastComparison != 0) {
13049
          return lastComparison;
13050
        }
495 rajveer 13051
      }
3430 rajveer 13052
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 13053
      if (lastComparison != 0) {
13054
        return lastComparison;
13055
      }
3430 rajveer 13056
      if (isSetNewPassword()) {
13057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
13058
        if (lastComparison != 0) {
13059
          return lastComparison;
13060
        }
495 rajveer 13061
      }
13062
      return 0;
13063
    }
13064
 
3430 rajveer 13065
    public _Fields fieldForId(int fieldId) {
13066
      return _Fields.findByThriftId(fieldId);
13067
    }
13068
 
13069
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13070
      org.apache.thrift.protocol.TField field;
495 rajveer 13071
      iprot.readStructBegin();
13072
      while (true)
13073
      {
13074
        field = iprot.readFieldBegin();
3430 rajveer 13075
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 13076
          break;
13077
        }
3430 rajveer 13078
        switch (field.id) {
13079
          case 1: // USERNAME
13080
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13081
              this.username = iprot.readString();
13082
            } else { 
13083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13084
            }
13085
            break;
13086
          case 2: // OLD_PASSWORD
13087
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13088
              this.oldPassword = iprot.readString();
13089
            } else { 
13090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13091
            }
13092
            break;
13093
          case 3: // NEW_PASSWORD
13094
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13095
              this.newPassword = iprot.readString();
13096
            } else { 
13097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13098
            }
13099
            break;
13100
          default:
13101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 13102
        }
3430 rajveer 13103
        iprot.readFieldEnd();
495 rajveer 13104
      }
13105
      iprot.readStructEnd();
13106
      validate();
13107
    }
13108
 
3430 rajveer 13109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 13110
      validate();
13111
 
13112
      oprot.writeStructBegin(STRUCT_DESC);
13113
      if (this.username != null) {
13114
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13115
        oprot.writeString(this.username);
13116
        oprot.writeFieldEnd();
13117
      }
13118
      if (this.oldPassword != null) {
13119
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
13120
        oprot.writeString(this.oldPassword);
13121
        oprot.writeFieldEnd();
13122
      }
13123
      if (this.newPassword != null) {
13124
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
13125
        oprot.writeString(this.newPassword);
13126
        oprot.writeFieldEnd();
13127
      }
13128
      oprot.writeFieldStop();
13129
      oprot.writeStructEnd();
13130
    }
13131
 
13132
    @Override
13133
    public String toString() {
13134
      StringBuilder sb = new StringBuilder("updatePassword_args(");
13135
      boolean first = true;
13136
 
13137
      sb.append("username:");
13138
      if (this.username == null) {
13139
        sb.append("null");
13140
      } else {
13141
        sb.append(this.username);
13142
      }
13143
      first = false;
13144
      if (!first) sb.append(", ");
13145
      sb.append("oldPassword:");
13146
      if (this.oldPassword == null) {
13147
        sb.append("null");
13148
      } else {
13149
        sb.append(this.oldPassword);
13150
      }
13151
      first = false;
13152
      if (!first) sb.append(", ");
13153
      sb.append("newPassword:");
13154
      if (this.newPassword == null) {
13155
        sb.append("null");
13156
      } else {
13157
        sb.append(this.newPassword);
13158
      }
13159
      first = false;
13160
      sb.append(")");
13161
      return sb.toString();
13162
    }
13163
 
3430 rajveer 13164
    public void validate() throws org.apache.thrift.TException {
495 rajveer 13165
      // check for required fields
13166
    }
13167
 
3430 rajveer 13168
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13169
      try {
13170
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13171
      } catch (org.apache.thrift.TException te) {
13172
        throw new java.io.IOException(te);
13173
      }
13174
    }
13175
 
13176
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13177
      try {
13178
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13179
      } catch (org.apache.thrift.TException te) {
13180
        throw new java.io.IOException(te);
13181
      }
13182
    }
13183
 
495 rajveer 13184
  }
13185
 
3430 rajveer 13186
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
13187
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 13188
 
3430 rajveer 13189
    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);
13190
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
495 rajveer 13191
 
3430 rajveer 13192
    private boolean success; // required
13193
    private HelperServiceException se; // required
495 rajveer 13194
 
13195
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13196
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 13197
      SUCCESS((short)0, "success"),
13198
      SE((short)1, "se");
13199
 
13200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13201
 
13202
      static {
13203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13204
          byName.put(field.getFieldName(), field);
13205
        }
13206
      }
13207
 
13208
      /**
13209
       * Find the _Fields constant that matches fieldId, or null if its not found.
13210
       */
13211
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13212
        switch(fieldId) {
13213
          case 0: // SUCCESS
13214
            return SUCCESS;
13215
          case 1: // SE
13216
            return SE;
13217
          default:
13218
            return null;
13219
        }
495 rajveer 13220
      }
13221
 
13222
      /**
13223
       * Find the _Fields constant that matches fieldId, throwing an exception
13224
       * if it is not found.
13225
       */
13226
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13227
        _Fields fields = findByThriftId(fieldId);
13228
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13229
        return fields;
13230
      }
13231
 
13232
      /**
13233
       * Find the _Fields constant that matches name, or null if its not found.
13234
       */
13235
      public static _Fields findByName(String name) {
13236
        return byName.get(name);
13237
      }
13238
 
13239
      private final short _thriftId;
13240
      private final String _fieldName;
13241
 
13242
      _Fields(short thriftId, String fieldName) {
13243
        _thriftId = thriftId;
13244
        _fieldName = fieldName;
13245
      }
13246
 
13247
      public short getThriftFieldId() {
13248
        return _thriftId;
13249
      }
13250
 
13251
      public String getFieldName() {
13252
        return _fieldName;
13253
      }
13254
    }
13255
 
13256
    // isset id assignments
13257
    private static final int __SUCCESS_ISSET_ID = 0;
13258
    private BitSet __isset_bit_vector = new BitSet(1);
13259
 
3430 rajveer 13260
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 13261
    static {
3430 rajveer 13262
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13263
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13264
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13265
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 13269
    }
13270
 
13271
    public updatePassword_result() {
13272
    }
13273
 
13274
    public updatePassword_result(
13275
      boolean success,
13276
      HelperServiceException se)
13277
    {
13278
      this();
13279
      this.success = success;
13280
      setSuccessIsSet(true);
13281
      this.se = se;
13282
    }
13283
 
13284
    /**
13285
     * Performs a deep copy on <i>other</i>.
13286
     */
13287
    public updatePassword_result(updatePassword_result other) {
13288
      __isset_bit_vector.clear();
13289
      __isset_bit_vector.or(other.__isset_bit_vector);
13290
      this.success = other.success;
13291
      if (other.isSetSe()) {
13292
        this.se = new HelperServiceException(other.se);
13293
      }
13294
    }
13295
 
13296
    public updatePassword_result deepCopy() {
13297
      return new updatePassword_result(this);
13298
    }
13299
 
3430 rajveer 13300
    @Override
13301
    public void clear() {
13302
      setSuccessIsSet(false);
13303
      this.success = false;
13304
      this.se = null;
495 rajveer 13305
    }
13306
 
13307
    public boolean isSuccess() {
13308
      return this.success;
13309
    }
13310
 
3430 rajveer 13311
    public void setSuccess(boolean success) {
495 rajveer 13312
      this.success = success;
13313
      setSuccessIsSet(true);
13314
    }
13315
 
13316
    public void unsetSuccess() {
13317
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13318
    }
13319
 
3430 rajveer 13320
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 13321
    public boolean isSetSuccess() {
13322
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13323
    }
13324
 
13325
    public void setSuccessIsSet(boolean value) {
13326
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13327
    }
13328
 
13329
    public HelperServiceException getSe() {
13330
      return this.se;
13331
    }
13332
 
3430 rajveer 13333
    public void setSe(HelperServiceException se) {
495 rajveer 13334
      this.se = se;
13335
    }
13336
 
13337
    public void unsetSe() {
13338
      this.se = null;
13339
    }
13340
 
3430 rajveer 13341
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 13342
    public boolean isSetSe() {
13343
      return this.se != null;
13344
    }
13345
 
13346
    public void setSeIsSet(boolean value) {
13347
      if (!value) {
13348
        this.se = null;
13349
      }
13350
    }
13351
 
13352
    public void setFieldValue(_Fields field, Object value) {
13353
      switch (field) {
13354
      case SUCCESS:
13355
        if (value == null) {
13356
          unsetSuccess();
13357
        } else {
13358
          setSuccess((Boolean)value);
13359
        }
13360
        break;
13361
 
13362
      case SE:
13363
        if (value == null) {
13364
          unsetSe();
13365
        } else {
13366
          setSe((HelperServiceException)value);
13367
        }
13368
        break;
13369
 
13370
      }
13371
    }
13372
 
13373
    public Object getFieldValue(_Fields field) {
13374
      switch (field) {
13375
      case SUCCESS:
3430 rajveer 13376
        return Boolean.valueOf(isSuccess());
495 rajveer 13377
 
13378
      case SE:
13379
        return getSe();
13380
 
13381
      }
13382
      throw new IllegalStateException();
13383
    }
13384
 
3430 rajveer 13385
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13386
    public boolean isSet(_Fields field) {
13387
      if (field == null) {
13388
        throw new IllegalArgumentException();
13389
      }
495 rajveer 13390
 
13391
      switch (field) {
13392
      case SUCCESS:
13393
        return isSetSuccess();
13394
      case SE:
13395
        return isSetSe();
13396
      }
13397
      throw new IllegalStateException();
13398
    }
13399
 
13400
    @Override
13401
    public boolean equals(Object that) {
13402
      if (that == null)
13403
        return false;
13404
      if (that instanceof updatePassword_result)
13405
        return this.equals((updatePassword_result)that);
13406
      return false;
13407
    }
13408
 
13409
    public boolean equals(updatePassword_result that) {
13410
      if (that == null)
13411
        return false;
13412
 
13413
      boolean this_present_success = true;
13414
      boolean that_present_success = true;
13415
      if (this_present_success || that_present_success) {
13416
        if (!(this_present_success && that_present_success))
13417
          return false;
13418
        if (this.success != that.success)
13419
          return false;
13420
      }
13421
 
13422
      boolean this_present_se = true && this.isSetSe();
13423
      boolean that_present_se = true && that.isSetSe();
13424
      if (this_present_se || that_present_se) {
13425
        if (!(this_present_se && that_present_se))
13426
          return false;
13427
        if (!this.se.equals(that.se))
13428
          return false;
13429
      }
13430
 
13431
      return true;
13432
    }
13433
 
13434
    @Override
13435
    public int hashCode() {
13436
      return 0;
13437
    }
13438
 
13439
    public int compareTo(updatePassword_result other) {
13440
      if (!getClass().equals(other.getClass())) {
13441
        return getClass().getName().compareTo(other.getClass().getName());
13442
      }
13443
 
13444
      int lastComparison = 0;
13445
      updatePassword_result typedOther = (updatePassword_result)other;
13446
 
3430 rajveer 13447
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 13448
      if (lastComparison != 0) {
13449
        return lastComparison;
13450
      }
3430 rajveer 13451
      if (isSetSuccess()) {
13452
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13453
        if (lastComparison != 0) {
13454
          return lastComparison;
13455
        }
495 rajveer 13456
      }
3430 rajveer 13457
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 13458
      if (lastComparison != 0) {
13459
        return lastComparison;
13460
      }
3430 rajveer 13461
      if (isSetSe()) {
13462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
13463
        if (lastComparison != 0) {
13464
          return lastComparison;
13465
        }
495 rajveer 13466
      }
13467
      return 0;
13468
    }
13469
 
3430 rajveer 13470
    public _Fields fieldForId(int fieldId) {
13471
      return _Fields.findByThriftId(fieldId);
13472
    }
13473
 
13474
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13475
      org.apache.thrift.protocol.TField field;
495 rajveer 13476
      iprot.readStructBegin();
13477
      while (true)
13478
      {
13479
        field = iprot.readFieldBegin();
3430 rajveer 13480
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 13481
          break;
13482
        }
3430 rajveer 13483
        switch (field.id) {
13484
          case 0: // SUCCESS
13485
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13486
              this.success = iprot.readBool();
13487
              setSuccessIsSet(true);
13488
            } else { 
13489
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13490
            }
13491
            break;
13492
          case 1: // SE
13493
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13494
              this.se = new HelperServiceException();
13495
              this.se.read(iprot);
13496
            } else { 
13497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13498
            }
13499
            break;
13500
          default:
13501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 13502
        }
3430 rajveer 13503
        iprot.readFieldEnd();
495 rajveer 13504
      }
13505
      iprot.readStructEnd();
13506
      validate();
13507
    }
13508
 
3430 rajveer 13509
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 13510
      oprot.writeStructBegin(STRUCT_DESC);
13511
 
13512
      if (this.isSetSuccess()) {
13513
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13514
        oprot.writeBool(this.success);
13515
        oprot.writeFieldEnd();
13516
      } else if (this.isSetSe()) {
13517
        oprot.writeFieldBegin(SE_FIELD_DESC);
13518
        this.se.write(oprot);
13519
        oprot.writeFieldEnd();
13520
      }
13521
      oprot.writeFieldStop();
13522
      oprot.writeStructEnd();
13523
    }
13524
 
13525
    @Override
13526
    public String toString() {
13527
      StringBuilder sb = new StringBuilder("updatePassword_result(");
13528
      boolean first = true;
13529
 
13530
      sb.append("success:");
13531
      sb.append(this.success);
13532
      first = false;
13533
      if (!first) sb.append(", ");
13534
      sb.append("se:");
13535
      if (this.se == null) {
13536
        sb.append("null");
13537
      } else {
13538
        sb.append(this.se);
13539
      }
13540
      first = false;
13541
      sb.append(")");
13542
      return sb.toString();
13543
    }
13544
 
3430 rajveer 13545
    public void validate() throws org.apache.thrift.TException {
495 rajveer 13546
      // check for required fields
13547
    }
13548
 
3430 rajveer 13549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13550
      try {
13551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13552
      } catch (org.apache.thrift.TException te) {
13553
        throw new java.io.IOException(te);
13554
      }
13555
    }
13556
 
13557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13558
      try {
13559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13560
      } catch (org.apache.thrift.TException te) {
13561
        throw new java.io.IOException(te);
13562
      }
13563
    }
13564
 
495 rajveer 13565
  }
13566
 
3430 rajveer 13567
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 13569
 
3430 rajveer 13570
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
13571
    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);
750 chandransh 13572
 
3430 rajveer 13573
    private String username; // required
13574
    private String password; // required
750 chandransh 13575
 
13576
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13577
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 13578
      USERNAME((short)1, "username"),
13579
      PASSWORD((short)2, "password");
13580
 
13581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13582
 
13583
      static {
13584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13585
          byName.put(field.getFieldName(), field);
13586
        }
13587
      }
13588
 
13589
      /**
13590
       * Find the _Fields constant that matches fieldId, or null if its not found.
13591
       */
13592
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13593
        switch(fieldId) {
13594
          case 1: // USERNAME
13595
            return USERNAME;
13596
          case 2: // PASSWORD
13597
            return PASSWORD;
13598
          default:
13599
            return null;
13600
        }
750 chandransh 13601
      }
13602
 
13603
      /**
13604
       * Find the _Fields constant that matches fieldId, throwing an exception
13605
       * if it is not found.
13606
       */
13607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13608
        _Fields fields = findByThriftId(fieldId);
13609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13610
        return fields;
13611
      }
13612
 
13613
      /**
13614
       * Find the _Fields constant that matches name, or null if its not found.
13615
       */
13616
      public static _Fields findByName(String name) {
13617
        return byName.get(name);
13618
      }
13619
 
13620
      private final short _thriftId;
13621
      private final String _fieldName;
13622
 
13623
      _Fields(short thriftId, String fieldName) {
13624
        _thriftId = thriftId;
13625
        _fieldName = fieldName;
13626
      }
13627
 
13628
      public short getThriftFieldId() {
13629
        return _thriftId;
13630
      }
13631
 
13632
      public String getFieldName() {
13633
        return _fieldName;
13634
      }
13635
    }
13636
 
13637
    // isset id assignments
13638
 
3430 rajveer 13639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 13640
    static {
3430 rajveer 13641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13642
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13643
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13644
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13645
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 13648
    }
13649
 
13650
    public authenticateLogisticsUser_args() {
13651
    }
13652
 
13653
    public authenticateLogisticsUser_args(
13654
      String username,
13655
      String password)
13656
    {
13657
      this();
13658
      this.username = username;
13659
      this.password = password;
13660
    }
13661
 
13662
    /**
13663
     * Performs a deep copy on <i>other</i>.
13664
     */
13665
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
13666
      if (other.isSetUsername()) {
13667
        this.username = other.username;
13668
      }
13669
      if (other.isSetPassword()) {
13670
        this.password = other.password;
13671
      }
13672
    }
13673
 
13674
    public authenticateLogisticsUser_args deepCopy() {
13675
      return new authenticateLogisticsUser_args(this);
13676
    }
13677
 
3430 rajveer 13678
    @Override
13679
    public void clear() {
13680
      this.username = null;
13681
      this.password = null;
750 chandransh 13682
    }
13683
 
13684
    public String getUsername() {
13685
      return this.username;
13686
    }
13687
 
3430 rajveer 13688
    public void setUsername(String username) {
750 chandransh 13689
      this.username = username;
13690
    }
13691
 
13692
    public void unsetUsername() {
13693
      this.username = null;
13694
    }
13695
 
3430 rajveer 13696
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 13697
    public boolean isSetUsername() {
13698
      return this.username != null;
13699
    }
13700
 
13701
    public void setUsernameIsSet(boolean value) {
13702
      if (!value) {
13703
        this.username = null;
13704
      }
13705
    }
13706
 
13707
    public String getPassword() {
13708
      return this.password;
13709
    }
13710
 
3430 rajveer 13711
    public void setPassword(String password) {
750 chandransh 13712
      this.password = password;
13713
    }
13714
 
13715
    public void unsetPassword() {
13716
      this.password = null;
13717
    }
13718
 
3430 rajveer 13719
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 13720
    public boolean isSetPassword() {
13721
      return this.password != null;
13722
    }
13723
 
13724
    public void setPasswordIsSet(boolean value) {
13725
      if (!value) {
13726
        this.password = null;
13727
      }
13728
    }
13729
 
13730
    public void setFieldValue(_Fields field, Object value) {
13731
      switch (field) {
13732
      case USERNAME:
13733
        if (value == null) {
13734
          unsetUsername();
13735
        } else {
13736
          setUsername((String)value);
13737
        }
13738
        break;
13739
 
13740
      case PASSWORD:
13741
        if (value == null) {
13742
          unsetPassword();
13743
        } else {
13744
          setPassword((String)value);
13745
        }
13746
        break;
13747
 
13748
      }
13749
    }
13750
 
13751
    public Object getFieldValue(_Fields field) {
13752
      switch (field) {
13753
      case USERNAME:
13754
        return getUsername();
13755
 
13756
      case PASSWORD:
13757
        return getPassword();
13758
 
13759
      }
13760
      throw new IllegalStateException();
13761
    }
13762
 
3430 rajveer 13763
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13764
    public boolean isSet(_Fields field) {
13765
      if (field == null) {
13766
        throw new IllegalArgumentException();
13767
      }
750 chandransh 13768
 
13769
      switch (field) {
13770
      case USERNAME:
13771
        return isSetUsername();
13772
      case PASSWORD:
13773
        return isSetPassword();
13774
      }
13775
      throw new IllegalStateException();
13776
    }
13777
 
13778
    @Override
13779
    public boolean equals(Object that) {
13780
      if (that == null)
13781
        return false;
13782
      if (that instanceof authenticateLogisticsUser_args)
13783
        return this.equals((authenticateLogisticsUser_args)that);
13784
      return false;
13785
    }
13786
 
13787
    public boolean equals(authenticateLogisticsUser_args that) {
13788
      if (that == null)
13789
        return false;
13790
 
13791
      boolean this_present_username = true && this.isSetUsername();
13792
      boolean that_present_username = true && that.isSetUsername();
13793
      if (this_present_username || that_present_username) {
13794
        if (!(this_present_username && that_present_username))
13795
          return false;
13796
        if (!this.username.equals(that.username))
13797
          return false;
13798
      }
13799
 
13800
      boolean this_present_password = true && this.isSetPassword();
13801
      boolean that_present_password = true && that.isSetPassword();
13802
      if (this_present_password || that_present_password) {
13803
        if (!(this_present_password && that_present_password))
13804
          return false;
13805
        if (!this.password.equals(that.password))
13806
          return false;
13807
      }
13808
 
13809
      return true;
13810
    }
13811
 
13812
    @Override
13813
    public int hashCode() {
13814
      return 0;
13815
    }
13816
 
13817
    public int compareTo(authenticateLogisticsUser_args other) {
13818
      if (!getClass().equals(other.getClass())) {
13819
        return getClass().getName().compareTo(other.getClass().getName());
13820
      }
13821
 
13822
      int lastComparison = 0;
13823
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
13824
 
3430 rajveer 13825
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 13826
      if (lastComparison != 0) {
13827
        return lastComparison;
13828
      }
3430 rajveer 13829
      if (isSetUsername()) {
13830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13831
        if (lastComparison != 0) {
13832
          return lastComparison;
13833
        }
750 chandransh 13834
      }
3430 rajveer 13835
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 13836
      if (lastComparison != 0) {
13837
        return lastComparison;
13838
      }
3430 rajveer 13839
      if (isSetPassword()) {
13840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13841
        if (lastComparison != 0) {
13842
          return lastComparison;
13843
        }
750 chandransh 13844
      }
13845
      return 0;
13846
    }
13847
 
3430 rajveer 13848
    public _Fields fieldForId(int fieldId) {
13849
      return _Fields.findByThriftId(fieldId);
13850
    }
13851
 
13852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13853
      org.apache.thrift.protocol.TField field;
750 chandransh 13854
      iprot.readStructBegin();
13855
      while (true)
13856
      {
13857
        field = iprot.readFieldBegin();
3430 rajveer 13858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13859
          break;
13860
        }
3430 rajveer 13861
        switch (field.id) {
13862
          case 1: // USERNAME
13863
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13864
              this.username = iprot.readString();
13865
            } else { 
13866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13867
            }
13868
            break;
13869
          case 2: // PASSWORD
13870
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13871
              this.password = iprot.readString();
13872
            } else { 
13873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13874
            }
13875
            break;
13876
          default:
13877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13878
        }
3430 rajveer 13879
        iprot.readFieldEnd();
750 chandransh 13880
      }
13881
      iprot.readStructEnd();
13882
      validate();
13883
    }
13884
 
3430 rajveer 13885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13886
      validate();
13887
 
13888
      oprot.writeStructBegin(STRUCT_DESC);
13889
      if (this.username != null) {
13890
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13891
        oprot.writeString(this.username);
13892
        oprot.writeFieldEnd();
13893
      }
13894
      if (this.password != null) {
13895
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13896
        oprot.writeString(this.password);
13897
        oprot.writeFieldEnd();
13898
      }
13899
      oprot.writeFieldStop();
13900
      oprot.writeStructEnd();
13901
    }
13902
 
13903
    @Override
13904
    public String toString() {
13905
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
13906
      boolean first = true;
13907
 
13908
      sb.append("username:");
13909
      if (this.username == null) {
13910
        sb.append("null");
13911
      } else {
13912
        sb.append(this.username);
13913
      }
13914
      first = false;
13915
      if (!first) sb.append(", ");
13916
      sb.append("password:");
13917
      if (this.password == null) {
13918
        sb.append("null");
13919
      } else {
13920
        sb.append(this.password);
13921
      }
13922
      first = false;
13923
      sb.append(")");
13924
      return sb.toString();
13925
    }
13926
 
3430 rajveer 13927
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13928
      // check for required fields
13929
    }
13930
 
3430 rajveer 13931
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13932
      try {
13933
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13934
      } catch (org.apache.thrift.TException te) {
13935
        throw new java.io.IOException(te);
13936
      }
13937
    }
13938
 
13939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13940
      try {
13941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13942
      } catch (org.apache.thrift.TException te) {
13943
        throw new java.io.IOException(te);
13944
      }
13945
    }
13946
 
750 chandransh 13947
  }
13948
 
3430 rajveer 13949
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13950
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 13951
 
3430 rajveer 13952
    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);
13953
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
750 chandransh 13954
 
3430 rajveer 13955
    private LogisticsUser success; // required
13956
    private HelperServiceException hse; // required
750 chandransh 13957
 
13958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13959
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 13960
      SUCCESS((short)0, "success"),
13961
      HSE((short)1, "hse");
13962
 
13963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13964
 
13965
      static {
13966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13967
          byName.put(field.getFieldName(), field);
13968
        }
13969
      }
13970
 
13971
      /**
13972
       * Find the _Fields constant that matches fieldId, or null if its not found.
13973
       */
13974
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13975
        switch(fieldId) {
13976
          case 0: // SUCCESS
13977
            return SUCCESS;
13978
          case 1: // HSE
13979
            return HSE;
13980
          default:
13981
            return null;
13982
        }
750 chandransh 13983
      }
13984
 
13985
      /**
13986
       * Find the _Fields constant that matches fieldId, throwing an exception
13987
       * if it is not found.
13988
       */
13989
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13990
        _Fields fields = findByThriftId(fieldId);
13991
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13992
        return fields;
13993
      }
13994
 
13995
      /**
13996
       * Find the _Fields constant that matches name, or null if its not found.
13997
       */
13998
      public static _Fields findByName(String name) {
13999
        return byName.get(name);
14000
      }
14001
 
14002
      private final short _thriftId;
14003
      private final String _fieldName;
14004
 
14005
      _Fields(short thriftId, String fieldName) {
14006
        _thriftId = thriftId;
14007
        _fieldName = fieldName;
14008
      }
14009
 
14010
      public short getThriftFieldId() {
14011
        return _thriftId;
14012
      }
14013
 
14014
      public String getFieldName() {
14015
        return _fieldName;
14016
      }
14017
    }
14018
 
14019
    // isset id assignments
14020
 
3430 rajveer 14021
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 14022
    static {
3430 rajveer 14023
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14024
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14025
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
14026
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14028
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14029
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 14030
    }
14031
 
14032
    public authenticateLogisticsUser_result() {
14033
    }
14034
 
14035
    public authenticateLogisticsUser_result(
14036
      LogisticsUser success,
14037
      HelperServiceException hse)
14038
    {
14039
      this();
14040
      this.success = success;
14041
      this.hse = hse;
14042
    }
14043
 
14044
    /**
14045
     * Performs a deep copy on <i>other</i>.
14046
     */
14047
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
14048
      if (other.isSetSuccess()) {
14049
        this.success = new LogisticsUser(other.success);
14050
      }
14051
      if (other.isSetHse()) {
14052
        this.hse = new HelperServiceException(other.hse);
14053
      }
14054
    }
14055
 
14056
    public authenticateLogisticsUser_result deepCopy() {
14057
      return new authenticateLogisticsUser_result(this);
14058
    }
14059
 
3430 rajveer 14060
    @Override
14061
    public void clear() {
14062
      this.success = null;
14063
      this.hse = null;
750 chandransh 14064
    }
14065
 
14066
    public LogisticsUser getSuccess() {
14067
      return this.success;
14068
    }
14069
 
3430 rajveer 14070
    public void setSuccess(LogisticsUser success) {
750 chandransh 14071
      this.success = success;
14072
    }
14073
 
14074
    public void unsetSuccess() {
14075
      this.success = null;
14076
    }
14077
 
3430 rajveer 14078
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 14079
    public boolean isSetSuccess() {
14080
      return this.success != null;
14081
    }
14082
 
14083
    public void setSuccessIsSet(boolean value) {
14084
      if (!value) {
14085
        this.success = null;
14086
      }
14087
    }
14088
 
14089
    public HelperServiceException getHse() {
14090
      return this.hse;
14091
    }
14092
 
3430 rajveer 14093
    public void setHse(HelperServiceException hse) {
750 chandransh 14094
      this.hse = hse;
14095
    }
14096
 
14097
    public void unsetHse() {
14098
      this.hse = null;
14099
    }
14100
 
3430 rajveer 14101
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 14102
    public boolean isSetHse() {
14103
      return this.hse != null;
14104
    }
14105
 
14106
    public void setHseIsSet(boolean value) {
14107
      if (!value) {
14108
        this.hse = null;
14109
      }
14110
    }
14111
 
14112
    public void setFieldValue(_Fields field, Object value) {
14113
      switch (field) {
14114
      case SUCCESS:
14115
        if (value == null) {
14116
          unsetSuccess();
14117
        } else {
14118
          setSuccess((LogisticsUser)value);
14119
        }
14120
        break;
14121
 
14122
      case HSE:
14123
        if (value == null) {
14124
          unsetHse();
14125
        } else {
14126
          setHse((HelperServiceException)value);
14127
        }
14128
        break;
14129
 
14130
      }
14131
    }
14132
 
14133
    public Object getFieldValue(_Fields field) {
14134
      switch (field) {
14135
      case SUCCESS:
14136
        return getSuccess();
14137
 
14138
      case HSE:
14139
        return getHse();
14140
 
14141
      }
14142
      throw new IllegalStateException();
14143
    }
14144
 
3430 rajveer 14145
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14146
    public boolean isSet(_Fields field) {
14147
      if (field == null) {
14148
        throw new IllegalArgumentException();
14149
      }
750 chandransh 14150
 
14151
      switch (field) {
14152
      case SUCCESS:
14153
        return isSetSuccess();
14154
      case HSE:
14155
        return isSetHse();
14156
      }
14157
      throw new IllegalStateException();
14158
    }
14159
 
14160
    @Override
14161
    public boolean equals(Object that) {
14162
      if (that == null)
14163
        return false;
14164
      if (that instanceof authenticateLogisticsUser_result)
14165
        return this.equals((authenticateLogisticsUser_result)that);
14166
      return false;
14167
    }
14168
 
14169
    public boolean equals(authenticateLogisticsUser_result that) {
14170
      if (that == null)
14171
        return false;
14172
 
14173
      boolean this_present_success = true && this.isSetSuccess();
14174
      boolean that_present_success = true && that.isSetSuccess();
14175
      if (this_present_success || that_present_success) {
14176
        if (!(this_present_success && that_present_success))
14177
          return false;
14178
        if (!this.success.equals(that.success))
14179
          return false;
14180
      }
14181
 
14182
      boolean this_present_hse = true && this.isSetHse();
14183
      boolean that_present_hse = true && that.isSetHse();
14184
      if (this_present_hse || that_present_hse) {
14185
        if (!(this_present_hse && that_present_hse))
14186
          return false;
14187
        if (!this.hse.equals(that.hse))
14188
          return false;
14189
      }
14190
 
14191
      return true;
14192
    }
14193
 
14194
    @Override
14195
    public int hashCode() {
14196
      return 0;
14197
    }
14198
 
14199
    public int compareTo(authenticateLogisticsUser_result other) {
14200
      if (!getClass().equals(other.getClass())) {
14201
        return getClass().getName().compareTo(other.getClass().getName());
14202
      }
14203
 
14204
      int lastComparison = 0;
14205
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
14206
 
3430 rajveer 14207
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 14208
      if (lastComparison != 0) {
14209
        return lastComparison;
14210
      }
3430 rajveer 14211
      if (isSetSuccess()) {
14212
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14213
        if (lastComparison != 0) {
14214
          return lastComparison;
14215
        }
750 chandransh 14216
      }
3430 rajveer 14217
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 14218
      if (lastComparison != 0) {
14219
        return lastComparison;
14220
      }
3430 rajveer 14221
      if (isSetHse()) {
14222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14223
        if (lastComparison != 0) {
14224
          return lastComparison;
14225
        }
750 chandransh 14226
      }
14227
      return 0;
14228
    }
14229
 
3430 rajveer 14230
    public _Fields fieldForId(int fieldId) {
14231
      return _Fields.findByThriftId(fieldId);
14232
    }
14233
 
14234
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14235
      org.apache.thrift.protocol.TField field;
750 chandransh 14236
      iprot.readStructBegin();
14237
      while (true)
14238
      {
14239
        field = iprot.readFieldBegin();
3430 rajveer 14240
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 14241
          break;
14242
        }
3430 rajveer 14243
        switch (field.id) {
14244
          case 0: // SUCCESS
14245
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14246
              this.success = new LogisticsUser();
14247
              this.success.read(iprot);
14248
            } else { 
14249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14250
            }
14251
            break;
14252
          case 1: // HSE
14253
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14254
              this.hse = new HelperServiceException();
14255
              this.hse.read(iprot);
14256
            } else { 
14257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14258
            }
14259
            break;
14260
          default:
14261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 14262
        }
3430 rajveer 14263
        iprot.readFieldEnd();
750 chandransh 14264
      }
14265
      iprot.readStructEnd();
14266
      validate();
14267
    }
14268
 
3430 rajveer 14269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 14270
      oprot.writeStructBegin(STRUCT_DESC);
14271
 
14272
      if (this.isSetSuccess()) {
14273
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14274
        this.success.write(oprot);
14275
        oprot.writeFieldEnd();
14276
      } else if (this.isSetHse()) {
14277
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14278
        this.hse.write(oprot);
14279
        oprot.writeFieldEnd();
14280
      }
14281
      oprot.writeFieldStop();
14282
      oprot.writeStructEnd();
14283
    }
14284
 
14285
    @Override
14286
    public String toString() {
14287
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
14288
      boolean first = true;
14289
 
14290
      sb.append("success:");
14291
      if (this.success == null) {
14292
        sb.append("null");
14293
      } else {
14294
        sb.append(this.success);
14295
      }
14296
      first = false;
14297
      if (!first) sb.append(", ");
14298
      sb.append("hse:");
14299
      if (this.hse == null) {
14300
        sb.append("null");
14301
      } else {
14302
        sb.append(this.hse);
14303
      }
14304
      first = false;
14305
      sb.append(")");
14306
      return sb.toString();
14307
    }
14308
 
3430 rajveer 14309
    public void validate() throws org.apache.thrift.TException {
750 chandransh 14310
      // check for required fields
14311
    }
14312
 
3430 rajveer 14313
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14314
      try {
14315
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14316
      } catch (org.apache.thrift.TException te) {
14317
        throw new java.io.IOException(te);
14318
      }
14319
    }
14320
 
14321
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14322
      try {
14323
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14324
      } catch (org.apache.thrift.TException te) {
14325
        throw new java.io.IOException(te);
14326
      }
14327
    }
14328
 
750 chandransh 14329
  }
14330
 
3430 rajveer 14331
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
14332
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 14333
 
3430 rajveer 14334
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
14335
    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);
1611 ankur.sing 14336
 
3430 rajveer 14337
    private String username; // required
14338
    private String password; // required
1611 ankur.sing 14339
 
14340
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14341
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 14342
      USERNAME((short)1, "username"),
14343
      PASSWORD((short)2, "password");
14344
 
14345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14346
 
14347
      static {
14348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14349
          byName.put(field.getFieldName(), field);
14350
        }
14351
      }
14352
 
14353
      /**
14354
       * Find the _Fields constant that matches fieldId, or null if its not found.
14355
       */
14356
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14357
        switch(fieldId) {
14358
          case 1: // USERNAME
14359
            return USERNAME;
14360
          case 2: // PASSWORD
14361
            return PASSWORD;
14362
          default:
14363
            return null;
14364
        }
1611 ankur.sing 14365
      }
14366
 
14367
      /**
14368
       * Find the _Fields constant that matches fieldId, throwing an exception
14369
       * if it is not found.
14370
       */
14371
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14372
        _Fields fields = findByThriftId(fieldId);
14373
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14374
        return fields;
14375
      }
14376
 
14377
      /**
14378
       * Find the _Fields constant that matches name, or null if its not found.
14379
       */
14380
      public static _Fields findByName(String name) {
14381
        return byName.get(name);
14382
      }
14383
 
14384
      private final short _thriftId;
14385
      private final String _fieldName;
14386
 
14387
      _Fields(short thriftId, String fieldName) {
14388
        _thriftId = thriftId;
14389
        _fieldName = fieldName;
14390
      }
14391
 
14392
      public short getThriftFieldId() {
14393
        return _thriftId;
14394
      }
14395
 
14396
      public String getFieldName() {
14397
        return _fieldName;
14398
      }
14399
    }
14400
 
14401
    // isset id assignments
14402
 
3430 rajveer 14403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 14404
    static {
3430 rajveer 14405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14406
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14408
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14410
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14411
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 14412
    }
14413
 
14414
    public authenticateStatisticsUser_args() {
14415
    }
14416
 
14417
    public authenticateStatisticsUser_args(
14418
      String username,
14419
      String password)
14420
    {
14421
      this();
14422
      this.username = username;
14423
      this.password = password;
14424
    }
14425
 
14426
    /**
14427
     * Performs a deep copy on <i>other</i>.
14428
     */
14429
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
14430
      if (other.isSetUsername()) {
14431
        this.username = other.username;
14432
      }
14433
      if (other.isSetPassword()) {
14434
        this.password = other.password;
14435
      }
14436
    }
14437
 
14438
    public authenticateStatisticsUser_args deepCopy() {
14439
      return new authenticateStatisticsUser_args(this);
14440
    }
14441
 
3430 rajveer 14442
    @Override
14443
    public void clear() {
14444
      this.username = null;
14445
      this.password = null;
1611 ankur.sing 14446
    }
14447
 
14448
    public String getUsername() {
14449
      return this.username;
14450
    }
14451
 
3430 rajveer 14452
    public void setUsername(String username) {
1611 ankur.sing 14453
      this.username = username;
14454
    }
14455
 
14456
    public void unsetUsername() {
14457
      this.username = null;
14458
    }
14459
 
3430 rajveer 14460
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14461
    public boolean isSetUsername() {
14462
      return this.username != null;
14463
    }
14464
 
14465
    public void setUsernameIsSet(boolean value) {
14466
      if (!value) {
14467
        this.username = null;
14468
      }
14469
    }
14470
 
14471
    public String getPassword() {
14472
      return this.password;
14473
    }
14474
 
3430 rajveer 14475
    public void setPassword(String password) {
1611 ankur.sing 14476
      this.password = password;
14477
    }
14478
 
14479
    public void unsetPassword() {
14480
      this.password = null;
14481
    }
14482
 
3430 rajveer 14483
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14484
    public boolean isSetPassword() {
14485
      return this.password != null;
14486
    }
14487
 
14488
    public void setPasswordIsSet(boolean value) {
14489
      if (!value) {
14490
        this.password = null;
14491
      }
14492
    }
14493
 
14494
    public void setFieldValue(_Fields field, Object value) {
14495
      switch (field) {
14496
      case USERNAME:
14497
        if (value == null) {
14498
          unsetUsername();
14499
        } else {
14500
          setUsername((String)value);
14501
        }
14502
        break;
14503
 
14504
      case PASSWORD:
14505
        if (value == null) {
14506
          unsetPassword();
14507
        } else {
14508
          setPassword((String)value);
14509
        }
14510
        break;
14511
 
14512
      }
14513
    }
14514
 
14515
    public Object getFieldValue(_Fields field) {
14516
      switch (field) {
14517
      case USERNAME:
14518
        return getUsername();
14519
 
14520
      case PASSWORD:
14521
        return getPassword();
14522
 
14523
      }
14524
      throw new IllegalStateException();
14525
    }
14526
 
3430 rajveer 14527
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14528
    public boolean isSet(_Fields field) {
14529
      if (field == null) {
14530
        throw new IllegalArgumentException();
14531
      }
1611 ankur.sing 14532
 
14533
      switch (field) {
14534
      case USERNAME:
14535
        return isSetUsername();
14536
      case PASSWORD:
14537
        return isSetPassword();
14538
      }
14539
      throw new IllegalStateException();
14540
    }
14541
 
14542
    @Override
14543
    public boolean equals(Object that) {
14544
      if (that == null)
14545
        return false;
14546
      if (that instanceof authenticateStatisticsUser_args)
14547
        return this.equals((authenticateStatisticsUser_args)that);
14548
      return false;
14549
    }
14550
 
14551
    public boolean equals(authenticateStatisticsUser_args that) {
14552
      if (that == null)
14553
        return false;
14554
 
14555
      boolean this_present_username = true && this.isSetUsername();
14556
      boolean that_present_username = true && that.isSetUsername();
14557
      if (this_present_username || that_present_username) {
14558
        if (!(this_present_username && that_present_username))
14559
          return false;
14560
        if (!this.username.equals(that.username))
14561
          return false;
14562
      }
14563
 
14564
      boolean this_present_password = true && this.isSetPassword();
14565
      boolean that_present_password = true && that.isSetPassword();
14566
      if (this_present_password || that_present_password) {
14567
        if (!(this_present_password && that_present_password))
14568
          return false;
14569
        if (!this.password.equals(that.password))
14570
          return false;
14571
      }
14572
 
14573
      return true;
14574
    }
14575
 
14576
    @Override
14577
    public int hashCode() {
14578
      return 0;
14579
    }
14580
 
14581
    public int compareTo(authenticateStatisticsUser_args other) {
14582
      if (!getClass().equals(other.getClass())) {
14583
        return getClass().getName().compareTo(other.getClass().getName());
14584
      }
14585
 
14586
      int lastComparison = 0;
14587
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
14588
 
3430 rajveer 14589
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 14590
      if (lastComparison != 0) {
14591
        return lastComparison;
14592
      }
3430 rajveer 14593
      if (isSetUsername()) {
14594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14595
        if (lastComparison != 0) {
14596
          return lastComparison;
14597
        }
1611 ankur.sing 14598
      }
3430 rajveer 14599
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 14600
      if (lastComparison != 0) {
14601
        return lastComparison;
14602
      }
3430 rajveer 14603
      if (isSetPassword()) {
14604
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14605
        if (lastComparison != 0) {
14606
          return lastComparison;
14607
        }
1611 ankur.sing 14608
      }
14609
      return 0;
14610
    }
14611
 
3430 rajveer 14612
    public _Fields fieldForId(int fieldId) {
14613
      return _Fields.findByThriftId(fieldId);
14614
    }
14615
 
14616
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14617
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 14618
      iprot.readStructBegin();
14619
      while (true)
14620
      {
14621
        field = iprot.readFieldBegin();
3430 rajveer 14622
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 14623
          break;
14624
        }
3430 rajveer 14625
        switch (field.id) {
14626
          case 1: // USERNAME
14627
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14628
              this.username = iprot.readString();
14629
            } else { 
14630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14631
            }
14632
            break;
14633
          case 2: // PASSWORD
14634
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14635
              this.password = iprot.readString();
14636
            } else { 
14637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14638
            }
14639
            break;
14640
          default:
14641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 14642
        }
3430 rajveer 14643
        iprot.readFieldEnd();
1611 ankur.sing 14644
      }
14645
      iprot.readStructEnd();
14646
      validate();
14647
    }
14648
 
3430 rajveer 14649
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 14650
      validate();
14651
 
14652
      oprot.writeStructBegin(STRUCT_DESC);
14653
      if (this.username != null) {
14654
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14655
        oprot.writeString(this.username);
14656
        oprot.writeFieldEnd();
14657
      }
14658
      if (this.password != null) {
14659
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14660
        oprot.writeString(this.password);
14661
        oprot.writeFieldEnd();
14662
      }
14663
      oprot.writeFieldStop();
14664
      oprot.writeStructEnd();
14665
    }
14666
 
14667
    @Override
14668
    public String toString() {
14669
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
14670
      boolean first = true;
14671
 
14672
      sb.append("username:");
14673
      if (this.username == null) {
14674
        sb.append("null");
14675
      } else {
14676
        sb.append(this.username);
14677
      }
14678
      first = false;
14679
      if (!first) sb.append(", ");
14680
      sb.append("password:");
14681
      if (this.password == null) {
14682
        sb.append("null");
14683
      } else {
14684
        sb.append(this.password);
14685
      }
14686
      first = false;
14687
      sb.append(")");
14688
      return sb.toString();
14689
    }
14690
 
3430 rajveer 14691
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14692
      // check for required fields
14693
    }
14694
 
3430 rajveer 14695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14696
      try {
14697
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14698
      } catch (org.apache.thrift.TException te) {
14699
        throw new java.io.IOException(te);
14700
      }
14701
    }
14702
 
14703
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14704
      try {
14705
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14706
      } catch (org.apache.thrift.TException te) {
14707
        throw new java.io.IOException(te);
14708
      }
14709
    }
14710
 
1611 ankur.sing 14711
  }
14712
 
3430 rajveer 14713
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
14714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 14715
 
3430 rajveer 14716
    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);
14717
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1611 ankur.sing 14718
 
3430 rajveer 14719
    private StatisticsUser success; // required
14720
    private HelperServiceException hse; // required
1611 ankur.sing 14721
 
14722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 14724
      SUCCESS((short)0, "success"),
14725
      HSE((short)1, "hse");
14726
 
14727
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14728
 
14729
      static {
14730
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14731
          byName.put(field.getFieldName(), field);
14732
        }
14733
      }
14734
 
14735
      /**
14736
       * Find the _Fields constant that matches fieldId, or null if its not found.
14737
       */
14738
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14739
        switch(fieldId) {
14740
          case 0: // SUCCESS
14741
            return SUCCESS;
14742
          case 1: // HSE
14743
            return HSE;
14744
          default:
14745
            return null;
14746
        }
1611 ankur.sing 14747
      }
14748
 
14749
      /**
14750
       * Find the _Fields constant that matches fieldId, throwing an exception
14751
       * if it is not found.
14752
       */
14753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14754
        _Fields fields = findByThriftId(fieldId);
14755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14756
        return fields;
14757
      }
14758
 
14759
      /**
14760
       * Find the _Fields constant that matches name, or null if its not found.
14761
       */
14762
      public static _Fields findByName(String name) {
14763
        return byName.get(name);
14764
      }
14765
 
14766
      private final short _thriftId;
14767
      private final String _fieldName;
14768
 
14769
      _Fields(short thriftId, String fieldName) {
14770
        _thriftId = thriftId;
14771
        _fieldName = fieldName;
14772
      }
14773
 
14774
      public short getThriftFieldId() {
14775
        return _thriftId;
14776
      }
14777
 
14778
      public String getFieldName() {
14779
        return _fieldName;
14780
      }
14781
    }
14782
 
14783
    // isset id assignments
14784
 
3430 rajveer 14785
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 14786
    static {
3430 rajveer 14787
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14788
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14789
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
14790
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14792
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14793
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 14794
    }
14795
 
14796
    public authenticateStatisticsUser_result() {
14797
    }
14798
 
14799
    public authenticateStatisticsUser_result(
14800
      StatisticsUser success,
14801
      HelperServiceException hse)
14802
    {
14803
      this();
14804
      this.success = success;
14805
      this.hse = hse;
14806
    }
14807
 
14808
    /**
14809
     * Performs a deep copy on <i>other</i>.
14810
     */
14811
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
14812
      if (other.isSetSuccess()) {
14813
        this.success = new StatisticsUser(other.success);
14814
      }
14815
      if (other.isSetHse()) {
14816
        this.hse = new HelperServiceException(other.hse);
14817
      }
14818
    }
14819
 
14820
    public authenticateStatisticsUser_result deepCopy() {
14821
      return new authenticateStatisticsUser_result(this);
14822
    }
14823
 
3430 rajveer 14824
    @Override
14825
    public void clear() {
14826
      this.success = null;
14827
      this.hse = null;
1611 ankur.sing 14828
    }
14829
 
14830
    public StatisticsUser getSuccess() {
14831
      return this.success;
14832
    }
14833
 
3430 rajveer 14834
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 14835
      this.success = success;
14836
    }
14837
 
14838
    public void unsetSuccess() {
14839
      this.success = null;
14840
    }
14841
 
3430 rajveer 14842
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14843
    public boolean isSetSuccess() {
14844
      return this.success != null;
14845
    }
14846
 
14847
    public void setSuccessIsSet(boolean value) {
14848
      if (!value) {
14849
        this.success = null;
14850
      }
14851
    }
14852
 
14853
    public HelperServiceException getHse() {
14854
      return this.hse;
14855
    }
14856
 
3430 rajveer 14857
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 14858
      this.hse = hse;
14859
    }
14860
 
14861
    public void unsetHse() {
14862
      this.hse = null;
14863
    }
14864
 
3430 rajveer 14865
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14866
    public boolean isSetHse() {
14867
      return this.hse != null;
14868
    }
14869
 
14870
    public void setHseIsSet(boolean value) {
14871
      if (!value) {
14872
        this.hse = null;
14873
      }
14874
    }
14875
 
14876
    public void setFieldValue(_Fields field, Object value) {
14877
      switch (field) {
14878
      case SUCCESS:
14879
        if (value == null) {
14880
          unsetSuccess();
14881
        } else {
14882
          setSuccess((StatisticsUser)value);
14883
        }
14884
        break;
14885
 
14886
      case HSE:
14887
        if (value == null) {
14888
          unsetHse();
14889
        } else {
14890
          setHse((HelperServiceException)value);
14891
        }
14892
        break;
14893
 
14894
      }
14895
    }
14896
 
14897
    public Object getFieldValue(_Fields field) {
14898
      switch (field) {
14899
      case SUCCESS:
14900
        return getSuccess();
14901
 
14902
      case HSE:
14903
        return getHse();
14904
 
14905
      }
14906
      throw new IllegalStateException();
14907
    }
14908
 
3430 rajveer 14909
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14910
    public boolean isSet(_Fields field) {
14911
      if (field == null) {
14912
        throw new IllegalArgumentException();
14913
      }
1611 ankur.sing 14914
 
14915
      switch (field) {
14916
      case SUCCESS:
14917
        return isSetSuccess();
14918
      case HSE:
14919
        return isSetHse();
14920
      }
14921
      throw new IllegalStateException();
14922
    }
14923
 
14924
    @Override
14925
    public boolean equals(Object that) {
14926
      if (that == null)
14927
        return false;
14928
      if (that instanceof authenticateStatisticsUser_result)
14929
        return this.equals((authenticateStatisticsUser_result)that);
14930
      return false;
14931
    }
14932
 
14933
    public boolean equals(authenticateStatisticsUser_result that) {
14934
      if (that == null)
14935
        return false;
14936
 
14937
      boolean this_present_success = true && this.isSetSuccess();
14938
      boolean that_present_success = true && that.isSetSuccess();
14939
      if (this_present_success || that_present_success) {
14940
        if (!(this_present_success && that_present_success))
14941
          return false;
14942
        if (!this.success.equals(that.success))
14943
          return false;
14944
      }
14945
 
14946
      boolean this_present_hse = true && this.isSetHse();
14947
      boolean that_present_hse = true && that.isSetHse();
14948
      if (this_present_hse || that_present_hse) {
14949
        if (!(this_present_hse && that_present_hse))
14950
          return false;
14951
        if (!this.hse.equals(that.hse))
14952
          return false;
14953
      }
14954
 
14955
      return true;
14956
    }
14957
 
14958
    @Override
14959
    public int hashCode() {
14960
      return 0;
14961
    }
14962
 
14963
    public int compareTo(authenticateStatisticsUser_result other) {
14964
      if (!getClass().equals(other.getClass())) {
14965
        return getClass().getName().compareTo(other.getClass().getName());
14966
      }
14967
 
14968
      int lastComparison = 0;
14969
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
14970
 
3430 rajveer 14971
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 14972
      if (lastComparison != 0) {
14973
        return lastComparison;
14974
      }
3430 rajveer 14975
      if (isSetSuccess()) {
14976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14977
        if (lastComparison != 0) {
14978
          return lastComparison;
14979
        }
1611 ankur.sing 14980
      }
3430 rajveer 14981
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 14982
      if (lastComparison != 0) {
14983
        return lastComparison;
14984
      }
3430 rajveer 14985
      if (isSetHse()) {
14986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14987
        if (lastComparison != 0) {
14988
          return lastComparison;
14989
        }
1611 ankur.sing 14990
      }
14991
      return 0;
14992
    }
14993
 
3430 rajveer 14994
    public _Fields fieldForId(int fieldId) {
14995
      return _Fields.findByThriftId(fieldId);
14996
    }
14997
 
14998
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14999
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 15000
      iprot.readStructBegin();
15001
      while (true)
15002
      {
15003
        field = iprot.readFieldBegin();
3430 rajveer 15004
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 15005
          break;
15006
        }
3430 rajveer 15007
        switch (field.id) {
15008
          case 0: // SUCCESS
15009
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15010
              this.success = new StatisticsUser();
15011
              this.success.read(iprot);
15012
            } else { 
15013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15014
            }
15015
            break;
15016
          case 1: // HSE
15017
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15018
              this.hse = new HelperServiceException();
15019
              this.hse.read(iprot);
15020
            } else { 
15021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15022
            }
15023
            break;
15024
          default:
15025
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 15026
        }
3430 rajveer 15027
        iprot.readFieldEnd();
1611 ankur.sing 15028
      }
15029
      iprot.readStructEnd();
15030
      validate();
15031
    }
15032
 
3430 rajveer 15033
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 15034
      oprot.writeStructBegin(STRUCT_DESC);
15035
 
15036
      if (this.isSetSuccess()) {
15037
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15038
        this.success.write(oprot);
15039
        oprot.writeFieldEnd();
15040
      } else if (this.isSetHse()) {
15041
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15042
        this.hse.write(oprot);
15043
        oprot.writeFieldEnd();
15044
      }
15045
      oprot.writeFieldStop();
15046
      oprot.writeStructEnd();
15047
    }
15048
 
15049
    @Override
15050
    public String toString() {
15051
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
15052
      boolean first = true;
15053
 
15054
      sb.append("success:");
15055
      if (this.success == null) {
15056
        sb.append("null");
15057
      } else {
15058
        sb.append(this.success);
15059
      }
15060
      first = false;
15061
      if (!first) sb.append(", ");
15062
      sb.append("hse:");
15063
      if (this.hse == null) {
15064
        sb.append("null");
15065
      } else {
15066
        sb.append(this.hse);
15067
      }
15068
      first = false;
15069
      sb.append(")");
15070
      return sb.toString();
15071
    }
15072
 
3430 rajveer 15073
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 15074
      // check for required fields
15075
    }
15076
 
3430 rajveer 15077
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15078
      try {
15079
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15080
      } catch (org.apache.thrift.TException te) {
15081
        throw new java.io.IOException(te);
15082
      }
15083
    }
15084
 
15085
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15086
      try {
15087
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15088
      } catch (org.apache.thrift.TException te) {
15089
        throw new java.io.IOException(te);
15090
      }
15091
    }
15092
 
1611 ankur.sing 15093
  }
15094
 
3430 rajveer 15095
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
15096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 15097
 
3430 rajveer 15098
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
15099
    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);
1891 ankur.sing 15100
 
3430 rajveer 15101
    private String username; // required
15102
    private String password; // required
1891 ankur.sing 15103
 
15104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15106
      USERNAME((short)1, "username"),
15107
      PASSWORD((short)2, "password");
15108
 
15109
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15110
 
15111
      static {
15112
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15113
          byName.put(field.getFieldName(), field);
15114
        }
15115
      }
15116
 
15117
      /**
15118
       * Find the _Fields constant that matches fieldId, or null if its not found.
15119
       */
15120
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15121
        switch(fieldId) {
15122
          case 1: // USERNAME
15123
            return USERNAME;
15124
          case 2: // PASSWORD
15125
            return PASSWORD;
15126
          default:
15127
            return null;
15128
        }
1891 ankur.sing 15129
      }
15130
 
15131
      /**
15132
       * Find the _Fields constant that matches fieldId, throwing an exception
15133
       * if it is not found.
15134
       */
15135
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15136
        _Fields fields = findByThriftId(fieldId);
15137
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15138
        return fields;
15139
      }
15140
 
15141
      /**
15142
       * Find the _Fields constant that matches name, or null if its not found.
15143
       */
15144
      public static _Fields findByName(String name) {
15145
        return byName.get(name);
15146
      }
15147
 
15148
      private final short _thriftId;
15149
      private final String _fieldName;
15150
 
15151
      _Fields(short thriftId, String fieldName) {
15152
        _thriftId = thriftId;
15153
        _fieldName = fieldName;
15154
      }
15155
 
15156
      public short getThriftFieldId() {
15157
        return _thriftId;
15158
      }
15159
 
15160
      public String getFieldName() {
15161
        return _fieldName;
15162
      }
15163
    }
15164
 
15165
    // isset id assignments
15166
 
3430 rajveer 15167
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15168
    static {
3430 rajveer 15169
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15170
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15172
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15173
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15174
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15175
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 15176
    }
15177
 
15178
    public authenticateReportUser_args() {
15179
    }
15180
 
15181
    public authenticateReportUser_args(
15182
      String username,
15183
      String password)
15184
    {
15185
      this();
15186
      this.username = username;
15187
      this.password = password;
15188
    }
15189
 
15190
    /**
15191
     * Performs a deep copy on <i>other</i>.
15192
     */
15193
    public authenticateReportUser_args(authenticateReportUser_args other) {
15194
      if (other.isSetUsername()) {
15195
        this.username = other.username;
15196
      }
15197
      if (other.isSetPassword()) {
15198
        this.password = other.password;
15199
      }
15200
    }
15201
 
15202
    public authenticateReportUser_args deepCopy() {
15203
      return new authenticateReportUser_args(this);
15204
    }
15205
 
3430 rajveer 15206
    @Override
15207
    public void clear() {
15208
      this.username = null;
15209
      this.password = null;
1891 ankur.sing 15210
    }
15211
 
15212
    public String getUsername() {
15213
      return this.username;
15214
    }
15215
 
3430 rajveer 15216
    public void setUsername(String username) {
1891 ankur.sing 15217
      this.username = username;
15218
    }
15219
 
15220
    public void unsetUsername() {
15221
      this.username = null;
15222
    }
15223
 
3430 rajveer 15224
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15225
    public boolean isSetUsername() {
15226
      return this.username != null;
15227
    }
15228
 
15229
    public void setUsernameIsSet(boolean value) {
15230
      if (!value) {
15231
        this.username = null;
15232
      }
15233
    }
15234
 
15235
    public String getPassword() {
15236
      return this.password;
15237
    }
15238
 
3430 rajveer 15239
    public void setPassword(String password) {
1891 ankur.sing 15240
      this.password = password;
15241
    }
15242
 
15243
    public void unsetPassword() {
15244
      this.password = null;
15245
    }
15246
 
3430 rajveer 15247
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15248
    public boolean isSetPassword() {
15249
      return this.password != null;
15250
    }
15251
 
15252
    public void setPasswordIsSet(boolean value) {
15253
      if (!value) {
15254
        this.password = null;
15255
      }
15256
    }
15257
 
15258
    public void setFieldValue(_Fields field, Object value) {
15259
      switch (field) {
15260
      case USERNAME:
15261
        if (value == null) {
15262
          unsetUsername();
15263
        } else {
15264
          setUsername((String)value);
15265
        }
15266
        break;
15267
 
15268
      case PASSWORD:
15269
        if (value == null) {
15270
          unsetPassword();
15271
        } else {
15272
          setPassword((String)value);
15273
        }
15274
        break;
15275
 
15276
      }
15277
    }
15278
 
15279
    public Object getFieldValue(_Fields field) {
15280
      switch (field) {
15281
      case USERNAME:
15282
        return getUsername();
15283
 
15284
      case PASSWORD:
15285
        return getPassword();
15286
 
15287
      }
15288
      throw new IllegalStateException();
15289
    }
15290
 
3430 rajveer 15291
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15292
    public boolean isSet(_Fields field) {
15293
      if (field == null) {
15294
        throw new IllegalArgumentException();
15295
      }
1891 ankur.sing 15296
 
15297
      switch (field) {
15298
      case USERNAME:
15299
        return isSetUsername();
15300
      case PASSWORD:
15301
        return isSetPassword();
15302
      }
15303
      throw new IllegalStateException();
15304
    }
15305
 
15306
    @Override
15307
    public boolean equals(Object that) {
15308
      if (that == null)
15309
        return false;
15310
      if (that instanceof authenticateReportUser_args)
15311
        return this.equals((authenticateReportUser_args)that);
15312
      return false;
15313
    }
15314
 
15315
    public boolean equals(authenticateReportUser_args that) {
15316
      if (that == null)
15317
        return false;
15318
 
15319
      boolean this_present_username = true && this.isSetUsername();
15320
      boolean that_present_username = true && that.isSetUsername();
15321
      if (this_present_username || that_present_username) {
15322
        if (!(this_present_username && that_present_username))
15323
          return false;
15324
        if (!this.username.equals(that.username))
15325
          return false;
15326
      }
15327
 
15328
      boolean this_present_password = true && this.isSetPassword();
15329
      boolean that_present_password = true && that.isSetPassword();
15330
      if (this_present_password || that_present_password) {
15331
        if (!(this_present_password && that_present_password))
15332
          return false;
15333
        if (!this.password.equals(that.password))
15334
          return false;
15335
      }
15336
 
15337
      return true;
15338
    }
15339
 
15340
    @Override
15341
    public int hashCode() {
15342
      return 0;
15343
    }
15344
 
15345
    public int compareTo(authenticateReportUser_args other) {
15346
      if (!getClass().equals(other.getClass())) {
15347
        return getClass().getName().compareTo(other.getClass().getName());
15348
      }
15349
 
15350
      int lastComparison = 0;
15351
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
15352
 
3430 rajveer 15353
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 15354
      if (lastComparison != 0) {
15355
        return lastComparison;
15356
      }
3430 rajveer 15357
      if (isSetUsername()) {
15358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15359
        if (lastComparison != 0) {
15360
          return lastComparison;
15361
        }
1891 ankur.sing 15362
      }
3430 rajveer 15363
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 15364
      if (lastComparison != 0) {
15365
        return lastComparison;
15366
      }
3430 rajveer 15367
      if (isSetPassword()) {
15368
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15369
        if (lastComparison != 0) {
15370
          return lastComparison;
15371
        }
1891 ankur.sing 15372
      }
15373
      return 0;
15374
    }
15375
 
3430 rajveer 15376
    public _Fields fieldForId(int fieldId) {
15377
      return _Fields.findByThriftId(fieldId);
15378
    }
15379
 
15380
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15381
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15382
      iprot.readStructBegin();
15383
      while (true)
15384
      {
15385
        field = iprot.readFieldBegin();
3430 rajveer 15386
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15387
          break;
15388
        }
3430 rajveer 15389
        switch (field.id) {
15390
          case 1: // USERNAME
15391
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15392
              this.username = iprot.readString();
15393
            } else { 
15394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15395
            }
15396
            break;
15397
          case 2: // PASSWORD
15398
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15399
              this.password = iprot.readString();
15400
            } else { 
15401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15402
            }
15403
            break;
15404
          default:
15405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15406
        }
3430 rajveer 15407
        iprot.readFieldEnd();
1891 ankur.sing 15408
      }
15409
      iprot.readStructEnd();
15410
      validate();
15411
    }
15412
 
3430 rajveer 15413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15414
      validate();
15415
 
15416
      oprot.writeStructBegin(STRUCT_DESC);
15417
      if (this.username != null) {
15418
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15419
        oprot.writeString(this.username);
15420
        oprot.writeFieldEnd();
15421
      }
15422
      if (this.password != null) {
15423
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15424
        oprot.writeString(this.password);
15425
        oprot.writeFieldEnd();
15426
      }
15427
      oprot.writeFieldStop();
15428
      oprot.writeStructEnd();
15429
    }
15430
 
15431
    @Override
15432
    public String toString() {
15433
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
15434
      boolean first = true;
15435
 
15436
      sb.append("username:");
15437
      if (this.username == null) {
15438
        sb.append("null");
15439
      } else {
15440
        sb.append(this.username);
15441
      }
15442
      first = false;
15443
      if (!first) sb.append(", ");
15444
      sb.append("password:");
15445
      if (this.password == null) {
15446
        sb.append("null");
15447
      } else {
15448
        sb.append(this.password);
15449
      }
15450
      first = false;
15451
      sb.append(")");
15452
      return sb.toString();
15453
    }
15454
 
3430 rajveer 15455
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15456
      // check for required fields
15457
    }
15458
 
3430 rajveer 15459
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15460
      try {
15461
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15462
      } catch (org.apache.thrift.TException te) {
15463
        throw new java.io.IOException(te);
15464
      }
15465
    }
15466
 
15467
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15468
      try {
15469
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15470
      } catch (org.apache.thrift.TException te) {
15471
        throw new java.io.IOException(te);
15472
      }
15473
    }
15474
 
1891 ankur.sing 15475
  }
15476
 
3430 rajveer 15477
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
15478
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 15479
 
3430 rajveer 15480
    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);
15481
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1891 ankur.sing 15482
 
3430 rajveer 15483
    private ReportUser success; // required
15484
    private HelperServiceException hse; // required
1891 ankur.sing 15485
 
15486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15488
      SUCCESS((short)0, "success"),
15489
      HSE((short)1, "hse");
15490
 
15491
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15492
 
15493
      static {
15494
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15495
          byName.put(field.getFieldName(), field);
15496
        }
15497
      }
15498
 
15499
      /**
15500
       * Find the _Fields constant that matches fieldId, or null if its not found.
15501
       */
15502
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15503
        switch(fieldId) {
15504
          case 0: // SUCCESS
15505
            return SUCCESS;
15506
          case 1: // HSE
15507
            return HSE;
15508
          default:
15509
            return null;
15510
        }
1891 ankur.sing 15511
      }
15512
 
15513
      /**
15514
       * Find the _Fields constant that matches fieldId, throwing an exception
15515
       * if it is not found.
15516
       */
15517
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15518
        _Fields fields = findByThriftId(fieldId);
15519
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15520
        return fields;
15521
      }
15522
 
15523
      /**
15524
       * Find the _Fields constant that matches name, or null if its not found.
15525
       */
15526
      public static _Fields findByName(String name) {
15527
        return byName.get(name);
15528
      }
15529
 
15530
      private final short _thriftId;
15531
      private final String _fieldName;
15532
 
15533
      _Fields(short thriftId, String fieldName) {
15534
        _thriftId = thriftId;
15535
        _fieldName = fieldName;
15536
      }
15537
 
15538
      public short getThriftFieldId() {
15539
        return _thriftId;
15540
      }
15541
 
15542
      public String getFieldName() {
15543
        return _fieldName;
15544
      }
15545
    }
15546
 
15547
    // isset id assignments
15548
 
3430 rajveer 15549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15550
    static {
3430 rajveer 15551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15552
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15553
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
15554
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 15558
    }
15559
 
15560
    public authenticateReportUser_result() {
15561
    }
15562
 
15563
    public authenticateReportUser_result(
15564
      ReportUser success,
15565
      HelperServiceException hse)
15566
    {
15567
      this();
15568
      this.success = success;
15569
      this.hse = hse;
15570
    }
15571
 
15572
    /**
15573
     * Performs a deep copy on <i>other</i>.
15574
     */
15575
    public authenticateReportUser_result(authenticateReportUser_result other) {
15576
      if (other.isSetSuccess()) {
15577
        this.success = new ReportUser(other.success);
15578
      }
15579
      if (other.isSetHse()) {
15580
        this.hse = new HelperServiceException(other.hse);
15581
      }
15582
    }
15583
 
15584
    public authenticateReportUser_result deepCopy() {
15585
      return new authenticateReportUser_result(this);
15586
    }
15587
 
3430 rajveer 15588
    @Override
15589
    public void clear() {
15590
      this.success = null;
15591
      this.hse = null;
1891 ankur.sing 15592
    }
15593
 
15594
    public ReportUser getSuccess() {
15595
      return this.success;
15596
    }
15597
 
3430 rajveer 15598
    public void setSuccess(ReportUser success) {
1891 ankur.sing 15599
      this.success = success;
15600
    }
15601
 
15602
    public void unsetSuccess() {
15603
      this.success = null;
15604
    }
15605
 
3430 rajveer 15606
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15607
    public boolean isSetSuccess() {
15608
      return this.success != null;
15609
    }
15610
 
15611
    public void setSuccessIsSet(boolean value) {
15612
      if (!value) {
15613
        this.success = null;
15614
      }
15615
    }
15616
 
15617
    public HelperServiceException getHse() {
15618
      return this.hse;
15619
    }
15620
 
3430 rajveer 15621
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 15622
      this.hse = hse;
15623
    }
15624
 
15625
    public void unsetHse() {
15626
      this.hse = null;
15627
    }
15628
 
3430 rajveer 15629
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15630
    public boolean isSetHse() {
15631
      return this.hse != null;
15632
    }
15633
 
15634
    public void setHseIsSet(boolean value) {
15635
      if (!value) {
15636
        this.hse = null;
15637
      }
15638
    }
15639
 
15640
    public void setFieldValue(_Fields field, Object value) {
15641
      switch (field) {
15642
      case SUCCESS:
15643
        if (value == null) {
15644
          unsetSuccess();
15645
        } else {
15646
          setSuccess((ReportUser)value);
15647
        }
15648
        break;
15649
 
15650
      case HSE:
15651
        if (value == null) {
15652
          unsetHse();
15653
        } else {
15654
          setHse((HelperServiceException)value);
15655
        }
15656
        break;
15657
 
15658
      }
15659
    }
15660
 
15661
    public Object getFieldValue(_Fields field) {
15662
      switch (field) {
15663
      case SUCCESS:
15664
        return getSuccess();
15665
 
15666
      case HSE:
15667
        return getHse();
15668
 
15669
      }
15670
      throw new IllegalStateException();
15671
    }
15672
 
3430 rajveer 15673
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15674
    public boolean isSet(_Fields field) {
15675
      if (field == null) {
15676
        throw new IllegalArgumentException();
15677
      }
1891 ankur.sing 15678
 
15679
      switch (field) {
15680
      case SUCCESS:
15681
        return isSetSuccess();
15682
      case HSE:
15683
        return isSetHse();
15684
      }
15685
      throw new IllegalStateException();
15686
    }
15687
 
15688
    @Override
15689
    public boolean equals(Object that) {
15690
      if (that == null)
15691
        return false;
15692
      if (that instanceof authenticateReportUser_result)
15693
        return this.equals((authenticateReportUser_result)that);
15694
      return false;
15695
    }
15696
 
15697
    public boolean equals(authenticateReportUser_result that) {
15698
      if (that == null)
15699
        return false;
15700
 
15701
      boolean this_present_success = true && this.isSetSuccess();
15702
      boolean that_present_success = true && that.isSetSuccess();
15703
      if (this_present_success || that_present_success) {
15704
        if (!(this_present_success && that_present_success))
15705
          return false;
15706
        if (!this.success.equals(that.success))
15707
          return false;
15708
      }
15709
 
15710
      boolean this_present_hse = true && this.isSetHse();
15711
      boolean that_present_hse = true && that.isSetHse();
15712
      if (this_present_hse || that_present_hse) {
15713
        if (!(this_present_hse && that_present_hse))
15714
          return false;
15715
        if (!this.hse.equals(that.hse))
15716
          return false;
15717
      }
15718
 
15719
      return true;
15720
    }
15721
 
15722
    @Override
15723
    public int hashCode() {
15724
      return 0;
15725
    }
15726
 
15727
    public int compareTo(authenticateReportUser_result other) {
15728
      if (!getClass().equals(other.getClass())) {
15729
        return getClass().getName().compareTo(other.getClass().getName());
15730
      }
15731
 
15732
      int lastComparison = 0;
15733
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
15734
 
3430 rajveer 15735
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15736
      if (lastComparison != 0) {
15737
        return lastComparison;
15738
      }
3430 rajveer 15739
      if (isSetSuccess()) {
15740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15741
        if (lastComparison != 0) {
15742
          return lastComparison;
15743
        }
1891 ankur.sing 15744
      }
3430 rajveer 15745
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 15746
      if (lastComparison != 0) {
15747
        return lastComparison;
15748
      }
3430 rajveer 15749
      if (isSetHse()) {
15750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15751
        if (lastComparison != 0) {
15752
          return lastComparison;
15753
        }
1891 ankur.sing 15754
      }
15755
      return 0;
15756
    }
15757
 
3430 rajveer 15758
    public _Fields fieldForId(int fieldId) {
15759
      return _Fields.findByThriftId(fieldId);
15760
    }
15761
 
15762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15763
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15764
      iprot.readStructBegin();
15765
      while (true)
15766
      {
15767
        field = iprot.readFieldBegin();
3430 rajveer 15768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15769
          break;
15770
        }
3430 rajveer 15771
        switch (field.id) {
15772
          case 0: // SUCCESS
15773
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15774
              this.success = new ReportUser();
15775
              this.success.read(iprot);
15776
            } else { 
15777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15778
            }
15779
            break;
15780
          case 1: // HSE
15781
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15782
              this.hse = new HelperServiceException();
15783
              this.hse.read(iprot);
15784
            } else { 
15785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15786
            }
15787
            break;
15788
          default:
15789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15790
        }
3430 rajveer 15791
        iprot.readFieldEnd();
1891 ankur.sing 15792
      }
15793
      iprot.readStructEnd();
15794
      validate();
15795
    }
15796
 
3430 rajveer 15797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15798
      oprot.writeStructBegin(STRUCT_DESC);
15799
 
15800
      if (this.isSetSuccess()) {
15801
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15802
        this.success.write(oprot);
15803
        oprot.writeFieldEnd();
15804
      } else if (this.isSetHse()) {
15805
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15806
        this.hse.write(oprot);
15807
        oprot.writeFieldEnd();
15808
      }
15809
      oprot.writeFieldStop();
15810
      oprot.writeStructEnd();
15811
    }
15812
 
15813
    @Override
15814
    public String toString() {
15815
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
15816
      boolean first = true;
15817
 
15818
      sb.append("success:");
15819
      if (this.success == null) {
15820
        sb.append("null");
15821
      } else {
15822
        sb.append(this.success);
15823
      }
15824
      first = false;
15825
      if (!first) sb.append(", ");
15826
      sb.append("hse:");
15827
      if (this.hse == null) {
15828
        sb.append("null");
15829
      } else {
15830
        sb.append(this.hse);
15831
      }
15832
      first = false;
15833
      sb.append(")");
15834
      return sb.toString();
15835
    }
15836
 
3430 rajveer 15837
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15838
      // check for required fields
15839
    }
15840
 
3430 rajveer 15841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15842
      try {
15843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15844
      } catch (org.apache.thrift.TException te) {
15845
        throw new java.io.IOException(te);
15846
      }
15847
    }
15848
 
15849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15850
      try {
15851
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15852
      } catch (org.apache.thrift.TException te) {
15853
        throw new java.io.IOException(te);
15854
      }
15855
    }
15856
 
1891 ankur.sing 15857
  }
15858
 
3430 rajveer 15859
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
15860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 15861
 
3430 rajveer 15862
    private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.I64, (short)1);
1891 ankur.sing 15863
 
3430 rajveer 15864
    private long role; // required
1891 ankur.sing 15865
 
15866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15868
      ROLE((short)1, "role");
15869
 
15870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15871
 
15872
      static {
15873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15874
          byName.put(field.getFieldName(), field);
15875
        }
15876
      }
15877
 
15878
      /**
15879
       * Find the _Fields constant that matches fieldId, or null if its not found.
15880
       */
15881
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15882
        switch(fieldId) {
15883
          case 1: // ROLE
15884
            return ROLE;
15885
          default:
15886
            return null;
15887
        }
1891 ankur.sing 15888
      }
15889
 
15890
      /**
15891
       * Find the _Fields constant that matches fieldId, throwing an exception
15892
       * if it is not found.
15893
       */
15894
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15895
        _Fields fields = findByThriftId(fieldId);
15896
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15897
        return fields;
15898
      }
15899
 
15900
      /**
15901
       * Find the _Fields constant that matches name, or null if its not found.
15902
       */
15903
      public static _Fields findByName(String name) {
15904
        return byName.get(name);
15905
      }
15906
 
15907
      private final short _thriftId;
15908
      private final String _fieldName;
15909
 
15910
      _Fields(short thriftId, String fieldName) {
15911
        _thriftId = thriftId;
15912
        _fieldName = fieldName;
15913
      }
15914
 
15915
      public short getThriftFieldId() {
15916
        return _thriftId;
15917
      }
15918
 
15919
      public String getFieldName() {
15920
        return _fieldName;
15921
      }
15922
    }
15923
 
15924
    // isset id assignments
15925
    private static final int __ROLE_ISSET_ID = 0;
15926
    private BitSet __isset_bit_vector = new BitSet(1);
15927
 
3430 rajveer 15928
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15929
    static {
3430 rajveer 15930
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15931
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15932
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15933
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15934
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 15935
    }
15936
 
15937
    public getReports_args() {
15938
    }
15939
 
15940
    public getReports_args(
15941
      long role)
15942
    {
15943
      this();
15944
      this.role = role;
15945
      setRoleIsSet(true);
15946
    }
15947
 
15948
    /**
15949
     * Performs a deep copy on <i>other</i>.
15950
     */
15951
    public getReports_args(getReports_args other) {
15952
      __isset_bit_vector.clear();
15953
      __isset_bit_vector.or(other.__isset_bit_vector);
15954
      this.role = other.role;
15955
    }
15956
 
15957
    public getReports_args deepCopy() {
15958
      return new getReports_args(this);
15959
    }
15960
 
3430 rajveer 15961
    @Override
15962
    public void clear() {
15963
      setRoleIsSet(false);
15964
      this.role = 0;
1891 ankur.sing 15965
    }
15966
 
15967
    public long getRole() {
15968
      return this.role;
15969
    }
15970
 
3430 rajveer 15971
    public void setRole(long role) {
1891 ankur.sing 15972
      this.role = role;
15973
      setRoleIsSet(true);
15974
    }
15975
 
15976
    public void unsetRole() {
15977
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
15978
    }
15979
 
3430 rajveer 15980
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15981
    public boolean isSetRole() {
15982
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
15983
    }
15984
 
15985
    public void setRoleIsSet(boolean value) {
15986
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
15987
    }
15988
 
15989
    public void setFieldValue(_Fields field, Object value) {
15990
      switch (field) {
15991
      case ROLE:
15992
        if (value == null) {
15993
          unsetRole();
15994
        } else {
15995
          setRole((Long)value);
15996
        }
15997
        break;
15998
 
15999
      }
16000
    }
16001
 
16002
    public Object getFieldValue(_Fields field) {
16003
      switch (field) {
16004
      case ROLE:
3430 rajveer 16005
        return Long.valueOf(getRole());
1891 ankur.sing 16006
 
16007
      }
16008
      throw new IllegalStateException();
16009
    }
16010
 
3430 rajveer 16011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16012
    public boolean isSet(_Fields field) {
16013
      if (field == null) {
16014
        throw new IllegalArgumentException();
16015
      }
1891 ankur.sing 16016
 
16017
      switch (field) {
16018
      case ROLE:
16019
        return isSetRole();
16020
      }
16021
      throw new IllegalStateException();
16022
    }
16023
 
16024
    @Override
16025
    public boolean equals(Object that) {
16026
      if (that == null)
16027
        return false;
16028
      if (that instanceof getReports_args)
16029
        return this.equals((getReports_args)that);
16030
      return false;
16031
    }
16032
 
16033
    public boolean equals(getReports_args that) {
16034
      if (that == null)
16035
        return false;
16036
 
16037
      boolean this_present_role = true;
16038
      boolean that_present_role = true;
16039
      if (this_present_role || that_present_role) {
16040
        if (!(this_present_role && that_present_role))
16041
          return false;
16042
        if (this.role != that.role)
16043
          return false;
16044
      }
16045
 
16046
      return true;
16047
    }
16048
 
16049
    @Override
16050
    public int hashCode() {
16051
      return 0;
16052
    }
16053
 
16054
    public int compareTo(getReports_args other) {
16055
      if (!getClass().equals(other.getClass())) {
16056
        return getClass().getName().compareTo(other.getClass().getName());
16057
      }
16058
 
16059
      int lastComparison = 0;
16060
      getReports_args typedOther = (getReports_args)other;
16061
 
3430 rajveer 16062
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 16063
      if (lastComparison != 0) {
16064
        return lastComparison;
16065
      }
3430 rajveer 16066
      if (isSetRole()) {
16067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
16068
        if (lastComparison != 0) {
16069
          return lastComparison;
16070
        }
1891 ankur.sing 16071
      }
16072
      return 0;
16073
    }
16074
 
3430 rajveer 16075
    public _Fields fieldForId(int fieldId) {
16076
      return _Fields.findByThriftId(fieldId);
16077
    }
16078
 
16079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16080
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 16081
      iprot.readStructBegin();
16082
      while (true)
16083
      {
16084
        field = iprot.readFieldBegin();
3430 rajveer 16085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 16086
          break;
16087
        }
3430 rajveer 16088
        switch (field.id) {
16089
          case 1: // ROLE
16090
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16091
              this.role = iprot.readI64();
16092
              setRoleIsSet(true);
16093
            } else { 
16094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16095
            }
16096
            break;
16097
          default:
16098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 16099
        }
3430 rajveer 16100
        iprot.readFieldEnd();
1891 ankur.sing 16101
      }
16102
      iprot.readStructEnd();
16103
      validate();
16104
    }
16105
 
3430 rajveer 16106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 16107
      validate();
16108
 
16109
      oprot.writeStructBegin(STRUCT_DESC);
16110
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
16111
      oprot.writeI64(this.role);
16112
      oprot.writeFieldEnd();
16113
      oprot.writeFieldStop();
16114
      oprot.writeStructEnd();
16115
    }
16116
 
16117
    @Override
16118
    public String toString() {
16119
      StringBuilder sb = new StringBuilder("getReports_args(");
16120
      boolean first = true;
16121
 
16122
      sb.append("role:");
16123
      sb.append(this.role);
16124
      first = false;
16125
      sb.append(")");
16126
      return sb.toString();
16127
    }
16128
 
3430 rajveer 16129
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 16130
      // check for required fields
16131
    }
16132
 
3430 rajveer 16133
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16134
      try {
16135
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16136
      } catch (org.apache.thrift.TException te) {
16137
        throw new java.io.IOException(te);
16138
      }
16139
    }
16140
 
16141
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16142
      try {
16143
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16144
        __isset_bit_vector = new BitSet(1);
16145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16146
      } catch (org.apache.thrift.TException te) {
16147
        throw new java.io.IOException(te);
16148
      }
16149
    }
16150
 
1891 ankur.sing 16151
  }
16152
 
3430 rajveer 16153
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
16154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 16155
 
3430 rajveer 16156
    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);
1891 ankur.sing 16157
 
3430 rajveer 16158
    private List<Report> success; // required
1891 ankur.sing 16159
 
16160
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16161
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 16162
      SUCCESS((short)0, "success");
16163
 
16164
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16165
 
16166
      static {
16167
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16168
          byName.put(field.getFieldName(), field);
16169
        }
16170
      }
16171
 
16172
      /**
16173
       * Find the _Fields constant that matches fieldId, or null if its not found.
16174
       */
16175
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16176
        switch(fieldId) {
16177
          case 0: // SUCCESS
16178
            return SUCCESS;
16179
          default:
16180
            return null;
16181
        }
1891 ankur.sing 16182
      }
16183
 
16184
      /**
16185
       * Find the _Fields constant that matches fieldId, throwing an exception
16186
       * if it is not found.
16187
       */
16188
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16189
        _Fields fields = findByThriftId(fieldId);
16190
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16191
        return fields;
16192
      }
16193
 
16194
      /**
16195
       * Find the _Fields constant that matches name, or null if its not found.
16196
       */
16197
      public static _Fields findByName(String name) {
16198
        return byName.get(name);
16199
      }
16200
 
16201
      private final short _thriftId;
16202
      private final String _fieldName;
16203
 
16204
      _Fields(short thriftId, String fieldName) {
16205
        _thriftId = thriftId;
16206
        _fieldName = fieldName;
16207
      }
16208
 
16209
      public short getThriftFieldId() {
16210
        return _thriftId;
16211
      }
16212
 
16213
      public String getFieldName() {
16214
        return _fieldName;
16215
      }
16216
    }
16217
 
16218
    // isset id assignments
16219
 
3430 rajveer 16220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 16221
    static {
3430 rajveer 16222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16223
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16224
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16225
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
16226
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16227
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 16228
    }
16229
 
16230
    public getReports_result() {
16231
    }
16232
 
16233
    public getReports_result(
16234
      List<Report> success)
16235
    {
16236
      this();
16237
      this.success = success;
16238
    }
16239
 
16240
    /**
16241
     * Performs a deep copy on <i>other</i>.
16242
     */
16243
    public getReports_result(getReports_result other) {
16244
      if (other.isSetSuccess()) {
16245
        List<Report> __this__success = new ArrayList<Report>();
16246
        for (Report other_element : other.success) {
16247
          __this__success.add(new Report(other_element));
16248
        }
16249
        this.success = __this__success;
16250
      }
16251
    }
16252
 
16253
    public getReports_result deepCopy() {
16254
      return new getReports_result(this);
16255
    }
16256
 
3430 rajveer 16257
    @Override
16258
    public void clear() {
16259
      this.success = null;
1891 ankur.sing 16260
    }
16261
 
16262
    public int getSuccessSize() {
16263
      return (this.success == null) ? 0 : this.success.size();
16264
    }
16265
 
16266
    public java.util.Iterator<Report> getSuccessIterator() {
16267
      return (this.success == null) ? null : this.success.iterator();
16268
    }
16269
 
16270
    public void addToSuccess(Report elem) {
16271
      if (this.success == null) {
16272
        this.success = new ArrayList<Report>();
16273
      }
16274
      this.success.add(elem);
16275
    }
16276
 
16277
    public List<Report> getSuccess() {
16278
      return this.success;
16279
    }
16280
 
3430 rajveer 16281
    public void setSuccess(List<Report> success) {
1891 ankur.sing 16282
      this.success = success;
16283
    }
16284
 
16285
    public void unsetSuccess() {
16286
      this.success = null;
16287
    }
16288
 
3430 rajveer 16289
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 16290
    public boolean isSetSuccess() {
16291
      return this.success != null;
16292
    }
16293
 
16294
    public void setSuccessIsSet(boolean value) {
16295
      if (!value) {
16296
        this.success = null;
16297
      }
16298
    }
16299
 
16300
    public void setFieldValue(_Fields field, Object value) {
16301
      switch (field) {
16302
      case SUCCESS:
16303
        if (value == null) {
16304
          unsetSuccess();
16305
        } else {
16306
          setSuccess((List<Report>)value);
16307
        }
16308
        break;
16309
 
16310
      }
16311
    }
16312
 
16313
    public Object getFieldValue(_Fields field) {
16314
      switch (field) {
16315
      case SUCCESS:
16316
        return getSuccess();
16317
 
16318
      }
16319
      throw new IllegalStateException();
16320
    }
16321
 
3430 rajveer 16322
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16323
    public boolean isSet(_Fields field) {
16324
      if (field == null) {
16325
        throw new IllegalArgumentException();
16326
      }
1891 ankur.sing 16327
 
16328
      switch (field) {
16329
      case SUCCESS:
16330
        return isSetSuccess();
16331
      }
16332
      throw new IllegalStateException();
16333
    }
16334
 
16335
    @Override
16336
    public boolean equals(Object that) {
16337
      if (that == null)
16338
        return false;
16339
      if (that instanceof getReports_result)
16340
        return this.equals((getReports_result)that);
16341
      return false;
16342
    }
16343
 
16344
    public boolean equals(getReports_result that) {
16345
      if (that == null)
16346
        return false;
16347
 
16348
      boolean this_present_success = true && this.isSetSuccess();
16349
      boolean that_present_success = true && that.isSetSuccess();
16350
      if (this_present_success || that_present_success) {
16351
        if (!(this_present_success && that_present_success))
16352
          return false;
16353
        if (!this.success.equals(that.success))
16354
          return false;
16355
      }
16356
 
16357
      return true;
16358
    }
16359
 
16360
    @Override
16361
    public int hashCode() {
16362
      return 0;
16363
    }
16364
 
16365
    public int compareTo(getReports_result other) {
16366
      if (!getClass().equals(other.getClass())) {
16367
        return getClass().getName().compareTo(other.getClass().getName());
16368
      }
16369
 
16370
      int lastComparison = 0;
16371
      getReports_result typedOther = (getReports_result)other;
16372
 
3430 rajveer 16373
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 16374
      if (lastComparison != 0) {
16375
        return lastComparison;
16376
      }
3430 rajveer 16377
      if (isSetSuccess()) {
16378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16379
        if (lastComparison != 0) {
16380
          return lastComparison;
16381
        }
1891 ankur.sing 16382
      }
16383
      return 0;
16384
    }
16385
 
3430 rajveer 16386
    public _Fields fieldForId(int fieldId) {
16387
      return _Fields.findByThriftId(fieldId);
16388
    }
16389
 
16390
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16391
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 16392
      iprot.readStructBegin();
16393
      while (true)
16394
      {
16395
        field = iprot.readFieldBegin();
3430 rajveer 16396
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 16397
          break;
16398
        }
3430 rajveer 16399
        switch (field.id) {
16400
          case 0: // SUCCESS
16401
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16402
              {
5864 rajveer 16403
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
16404
                this.success = new ArrayList<Report>(_list41.size);
16405
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 16406
                {
5864 rajveer 16407
                  Report _elem43; // required
16408
                  _elem43 = new Report();
16409
                  _elem43.read(iprot);
16410
                  this.success.add(_elem43);
1891 ankur.sing 16411
                }
3430 rajveer 16412
                iprot.readListEnd();
1891 ankur.sing 16413
              }
3430 rajveer 16414
            } else { 
16415
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16416
            }
16417
            break;
16418
          default:
16419
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 16420
        }
3430 rajveer 16421
        iprot.readFieldEnd();
1891 ankur.sing 16422
      }
16423
      iprot.readStructEnd();
16424
      validate();
16425
    }
16426
 
3430 rajveer 16427
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 16428
      oprot.writeStructBegin(STRUCT_DESC);
16429
 
16430
      if (this.isSetSuccess()) {
16431
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16432
        {
3430 rajveer 16433
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 16434
          for (Report _iter44 : this.success)
1891 ankur.sing 16435
          {
5864 rajveer 16436
            _iter44.write(oprot);
1891 ankur.sing 16437
          }
16438
          oprot.writeListEnd();
16439
        }
16440
        oprot.writeFieldEnd();
16441
      }
16442
      oprot.writeFieldStop();
16443
      oprot.writeStructEnd();
16444
    }
16445
 
16446
    @Override
16447
    public String toString() {
16448
      StringBuilder sb = new StringBuilder("getReports_result(");
16449
      boolean first = true;
16450
 
16451
      sb.append("success:");
16452
      if (this.success == null) {
16453
        sb.append("null");
16454
      } else {
16455
        sb.append(this.success);
16456
      }
16457
      first = false;
16458
      sb.append(")");
16459
      return sb.toString();
16460
    }
16461
 
3430 rajveer 16462
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 16463
      // check for required fields
16464
    }
16465
 
3430 rajveer 16466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16467
      try {
16468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16469
      } catch (org.apache.thrift.TException te) {
16470
        throw new java.io.IOException(te);
16471
      }
16472
    }
16473
 
16474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16475
      try {
16476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16477
      } catch (org.apache.thrift.TException te) {
16478
        throw new java.io.IOException(te);
16479
      }
16480
    }
16481
 
1891 ankur.sing 16482
  }
16483
 
3430 rajveer 16484
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
16485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 16486
 
3430 rajveer 16487
    private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
16488
    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);
2024 ankur.sing 16489
 
3430 rajveer 16490
    private String username; // required
16491
    private String password; // required
2024 ankur.sing 16492
 
16493
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16494
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 16495
      USERNAME((short)1, "username"),
6788 rajveer 16496
      PASSWORD((short)2, "password");
2024 ankur.sing 16497
 
16498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16499
 
16500
      static {
16501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16502
          byName.put(field.getFieldName(), field);
16503
        }
16504
      }
16505
 
16506
      /**
16507
       * Find the _Fields constant that matches fieldId, or null if its not found.
16508
       */
16509
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16510
        switch(fieldId) {
16511
          case 1: // USERNAME
16512
            return USERNAME;
16513
          case 2: // PASSWORD
16514
            return PASSWORD;
16515
          default:
16516
            return null;
16517
        }
2024 ankur.sing 16518
      }
16519
 
16520
      /**
16521
       * Find the _Fields constant that matches fieldId, throwing an exception
16522
       * if it is not found.
16523
       */
16524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16525
        _Fields fields = findByThriftId(fieldId);
16526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16527
        return fields;
16528
      }
16529
 
16530
      /**
16531
       * Find the _Fields constant that matches name, or null if its not found.
16532
       */
16533
      public static _Fields findByName(String name) {
16534
        return byName.get(name);
16535
      }
16536
 
16537
      private final short _thriftId;
16538
      private final String _fieldName;
16539
 
16540
      _Fields(short thriftId, String fieldName) {
16541
        _thriftId = thriftId;
16542
        _fieldName = fieldName;
16543
      }
16544
 
16545
      public short getThriftFieldId() {
16546
        return _thriftId;
16547
      }
16548
 
16549
      public String getFieldName() {
16550
        return _fieldName;
16551
      }
16552
    }
16553
 
16554
    // isset id assignments
16555
 
3430 rajveer 16556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 16557
    static {
3430 rajveer 16558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16559
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16560
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16561
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16562
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 16565
    }
16566
 
16567
    public authenticateCatalogUser_args() {
16568
    }
16569
 
16570
    public authenticateCatalogUser_args(
16571
      String username,
6788 rajveer 16572
      String password)
2024 ankur.sing 16573
    {
16574
      this();
16575
      this.username = username;
16576
      this.password = password;
16577
    }
16578
 
16579
    /**
16580
     * Performs a deep copy on <i>other</i>.
16581
     */
16582
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
16583
      if (other.isSetUsername()) {
16584
        this.username = other.username;
16585
      }
16586
      if (other.isSetPassword()) {
16587
        this.password = other.password;
16588
      }
16589
    }
16590
 
16591
    public authenticateCatalogUser_args deepCopy() {
16592
      return new authenticateCatalogUser_args(this);
16593
    }
16594
 
3430 rajveer 16595
    @Override
16596
    public void clear() {
16597
      this.username = null;
16598
      this.password = null;
2024 ankur.sing 16599
    }
16600
 
16601
    public String getUsername() {
16602
      return this.username;
16603
    }
16604
 
3430 rajveer 16605
    public void setUsername(String username) {
2024 ankur.sing 16606
      this.username = username;
16607
    }
16608
 
16609
    public void unsetUsername() {
16610
      this.username = null;
16611
    }
16612
 
3430 rajveer 16613
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16614
    public boolean isSetUsername() {
16615
      return this.username != null;
16616
    }
16617
 
16618
    public void setUsernameIsSet(boolean value) {
16619
      if (!value) {
16620
        this.username = null;
16621
      }
16622
    }
16623
 
16624
    public String getPassword() {
16625
      return this.password;
16626
    }
16627
 
3430 rajveer 16628
    public void setPassword(String password) {
2024 ankur.sing 16629
      this.password = password;
16630
    }
16631
 
16632
    public void unsetPassword() {
16633
      this.password = null;
16634
    }
16635
 
3430 rajveer 16636
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16637
    public boolean isSetPassword() {
16638
      return this.password != null;
16639
    }
16640
 
16641
    public void setPasswordIsSet(boolean value) {
16642
      if (!value) {
16643
        this.password = null;
16644
      }
16645
    }
16646
 
16647
    public void setFieldValue(_Fields field, Object value) {
16648
      switch (field) {
16649
      case USERNAME:
16650
        if (value == null) {
16651
          unsetUsername();
16652
        } else {
16653
          setUsername((String)value);
16654
        }
16655
        break;
16656
 
16657
      case PASSWORD:
16658
        if (value == null) {
16659
          unsetPassword();
16660
        } else {
16661
          setPassword((String)value);
16662
        }
16663
        break;
16664
 
16665
      }
16666
    }
16667
 
16668
    public Object getFieldValue(_Fields field) {
16669
      switch (field) {
16670
      case USERNAME:
16671
        return getUsername();
16672
 
16673
      case PASSWORD:
16674
        return getPassword();
16675
 
16676
      }
16677
      throw new IllegalStateException();
16678
    }
16679
 
3430 rajveer 16680
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16681
    public boolean isSet(_Fields field) {
16682
      if (field == null) {
16683
        throw new IllegalArgumentException();
16684
      }
2024 ankur.sing 16685
 
16686
      switch (field) {
16687
      case USERNAME:
16688
        return isSetUsername();
16689
      case PASSWORD:
16690
        return isSetPassword();
16691
      }
16692
      throw new IllegalStateException();
16693
    }
16694
 
16695
    @Override
16696
    public boolean equals(Object that) {
16697
      if (that == null)
16698
        return false;
16699
      if (that instanceof authenticateCatalogUser_args)
16700
        return this.equals((authenticateCatalogUser_args)that);
16701
      return false;
16702
    }
16703
 
16704
    public boolean equals(authenticateCatalogUser_args that) {
16705
      if (that == null)
16706
        return false;
16707
 
16708
      boolean this_present_username = true && this.isSetUsername();
16709
      boolean that_present_username = true && that.isSetUsername();
16710
      if (this_present_username || that_present_username) {
16711
        if (!(this_present_username && that_present_username))
16712
          return false;
16713
        if (!this.username.equals(that.username))
16714
          return false;
16715
      }
16716
 
16717
      boolean this_present_password = true && this.isSetPassword();
16718
      boolean that_present_password = true && that.isSetPassword();
16719
      if (this_present_password || that_present_password) {
16720
        if (!(this_present_password && that_present_password))
16721
          return false;
16722
        if (!this.password.equals(that.password))
16723
          return false;
16724
      }
16725
 
16726
      return true;
16727
    }
16728
 
16729
    @Override
16730
    public int hashCode() {
16731
      return 0;
16732
    }
16733
 
16734
    public int compareTo(authenticateCatalogUser_args other) {
16735
      if (!getClass().equals(other.getClass())) {
16736
        return getClass().getName().compareTo(other.getClass().getName());
16737
      }
16738
 
16739
      int lastComparison = 0;
16740
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
16741
 
3430 rajveer 16742
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 16743
      if (lastComparison != 0) {
16744
        return lastComparison;
16745
      }
3430 rajveer 16746
      if (isSetUsername()) {
16747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
16748
        if (lastComparison != 0) {
16749
          return lastComparison;
16750
        }
2024 ankur.sing 16751
      }
3430 rajveer 16752
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 16753
      if (lastComparison != 0) {
16754
        return lastComparison;
16755
      }
3430 rajveer 16756
      if (isSetPassword()) {
16757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
16758
        if (lastComparison != 0) {
16759
          return lastComparison;
16760
        }
2024 ankur.sing 16761
      }
16762
      return 0;
16763
    }
16764
 
3430 rajveer 16765
    public _Fields fieldForId(int fieldId) {
16766
      return _Fields.findByThriftId(fieldId);
16767
    }
16768
 
16769
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16770
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16771
      iprot.readStructBegin();
16772
      while (true)
16773
      {
16774
        field = iprot.readFieldBegin();
3430 rajveer 16775
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 16776
          break;
16777
        }
3430 rajveer 16778
        switch (field.id) {
16779
          case 1: // USERNAME
16780
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16781
              this.username = iprot.readString();
16782
            } else { 
16783
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16784
            }
16785
            break;
16786
          case 2: // PASSWORD
16787
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16788
              this.password = iprot.readString();
16789
            } else { 
16790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16791
            }
16792
            break;
16793
          default:
16794
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 16795
        }
3430 rajveer 16796
        iprot.readFieldEnd();
2024 ankur.sing 16797
      }
16798
      iprot.readStructEnd();
16799
      validate();
16800
    }
16801
 
3430 rajveer 16802
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 16803
      validate();
16804
 
16805
      oprot.writeStructBegin(STRUCT_DESC);
16806
      if (this.username != null) {
16807
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
16808
        oprot.writeString(this.username);
16809
        oprot.writeFieldEnd();
16810
      }
16811
      if (this.password != null) {
16812
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
16813
        oprot.writeString(this.password);
16814
        oprot.writeFieldEnd();
16815
      }
16816
      oprot.writeFieldStop();
16817
      oprot.writeStructEnd();
16818
    }
16819
 
16820
    @Override
16821
    public String toString() {
16822
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
16823
      boolean first = true;
16824
 
16825
      sb.append("username:");
16826
      if (this.username == null) {
16827
        sb.append("null");
16828
      } else {
16829
        sb.append(this.username);
16830
      }
16831
      first = false;
16832
      if (!first) sb.append(", ");
16833
      sb.append("password:");
16834
      if (this.password == null) {
16835
        sb.append("null");
16836
      } else {
16837
        sb.append(this.password);
16838
      }
16839
      first = false;
16840
      sb.append(")");
16841
      return sb.toString();
16842
    }
16843
 
3430 rajveer 16844
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16845
      // check for required fields
16846
    }
16847
 
3430 rajveer 16848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16849
      try {
16850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16851
      } catch (org.apache.thrift.TException te) {
16852
        throw new java.io.IOException(te);
16853
      }
16854
    }
16855
 
16856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16857
      try {
16858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16859
      } catch (org.apache.thrift.TException te) {
16860
        throw new java.io.IOException(te);
16861
      }
16862
    }
16863
 
2024 ankur.sing 16864
  }
16865
 
3430 rajveer 16866
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
16867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 16868
 
3430 rajveer 16869
    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);
16870
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2024 ankur.sing 16871
 
3430 rajveer 16872
    private CatalogDashboardUser success; // required
16873
    private HelperServiceException hse; // required
2024 ankur.sing 16874
 
16875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 16877
      SUCCESS((short)0, "success"),
16878
      HSE((short)1, "hse");
16879
 
16880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16881
 
16882
      static {
16883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16884
          byName.put(field.getFieldName(), field);
16885
        }
16886
      }
16887
 
16888
      /**
16889
       * Find the _Fields constant that matches fieldId, or null if its not found.
16890
       */
16891
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16892
        switch(fieldId) {
16893
          case 0: // SUCCESS
16894
            return SUCCESS;
16895
          case 1: // HSE
16896
            return HSE;
16897
          default:
16898
            return null;
16899
        }
2024 ankur.sing 16900
      }
16901
 
16902
      /**
16903
       * Find the _Fields constant that matches fieldId, throwing an exception
16904
       * if it is not found.
16905
       */
16906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16907
        _Fields fields = findByThriftId(fieldId);
16908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16909
        return fields;
16910
      }
16911
 
16912
      /**
16913
       * Find the _Fields constant that matches name, or null if its not found.
16914
       */
16915
      public static _Fields findByName(String name) {
16916
        return byName.get(name);
16917
      }
16918
 
16919
      private final short _thriftId;
16920
      private final String _fieldName;
16921
 
16922
      _Fields(short thriftId, String fieldName) {
16923
        _thriftId = thriftId;
16924
        _fieldName = fieldName;
16925
      }
16926
 
16927
      public short getThriftFieldId() {
16928
        return _thriftId;
16929
      }
16930
 
16931
      public String getFieldName() {
16932
        return _fieldName;
16933
      }
16934
    }
16935
 
16936
    // isset id assignments
16937
 
3430 rajveer 16938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 16939
    static {
3430 rajveer 16940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16941
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16942
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
16943
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16944
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16945
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16946
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 16947
    }
16948
 
16949
    public authenticateCatalogUser_result() {
16950
    }
16951
 
16952
    public authenticateCatalogUser_result(
16953
      CatalogDashboardUser success,
16954
      HelperServiceException hse)
16955
    {
16956
      this();
16957
      this.success = success;
16958
      this.hse = hse;
16959
    }
16960
 
16961
    /**
16962
     * Performs a deep copy on <i>other</i>.
16963
     */
16964
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
16965
      if (other.isSetSuccess()) {
16966
        this.success = new CatalogDashboardUser(other.success);
16967
      }
16968
      if (other.isSetHse()) {
16969
        this.hse = new HelperServiceException(other.hse);
16970
      }
16971
    }
16972
 
16973
    public authenticateCatalogUser_result deepCopy() {
16974
      return new authenticateCatalogUser_result(this);
16975
    }
16976
 
3430 rajveer 16977
    @Override
16978
    public void clear() {
16979
      this.success = null;
16980
      this.hse = null;
2024 ankur.sing 16981
    }
16982
 
16983
    public CatalogDashboardUser getSuccess() {
16984
      return this.success;
16985
    }
16986
 
3430 rajveer 16987
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 16988
      this.success = success;
16989
    }
16990
 
16991
    public void unsetSuccess() {
16992
      this.success = null;
16993
    }
16994
 
3430 rajveer 16995
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16996
    public boolean isSetSuccess() {
16997
      return this.success != null;
16998
    }
16999
 
17000
    public void setSuccessIsSet(boolean value) {
17001
      if (!value) {
17002
        this.success = null;
17003
      }
17004
    }
17005
 
17006
    public HelperServiceException getHse() {
17007
      return this.hse;
17008
    }
17009
 
3430 rajveer 17010
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 17011
      this.hse = hse;
17012
    }
17013
 
17014
    public void unsetHse() {
17015
      this.hse = null;
17016
    }
17017
 
3430 rajveer 17018
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 17019
    public boolean isSetHse() {
17020
      return this.hse != null;
17021
    }
17022
 
17023
    public void setHseIsSet(boolean value) {
17024
      if (!value) {
17025
        this.hse = null;
17026
      }
17027
    }
17028
 
17029
    public void setFieldValue(_Fields field, Object value) {
17030
      switch (field) {
17031
      case SUCCESS:
17032
        if (value == null) {
17033
          unsetSuccess();
17034
        } else {
17035
          setSuccess((CatalogDashboardUser)value);
17036
        }
17037
        break;
17038
 
17039
      case HSE:
17040
        if (value == null) {
17041
          unsetHse();
17042
        } else {
17043
          setHse((HelperServiceException)value);
17044
        }
17045
        break;
17046
 
17047
      }
17048
    }
17049
 
17050
    public Object getFieldValue(_Fields field) {
17051
      switch (field) {
17052
      case SUCCESS:
17053
        return getSuccess();
17054
 
17055
      case HSE:
17056
        return getHse();
17057
 
17058
      }
17059
      throw new IllegalStateException();
17060
    }
17061
 
3430 rajveer 17062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17063
    public boolean isSet(_Fields field) {
17064
      if (field == null) {
17065
        throw new IllegalArgumentException();
17066
      }
2024 ankur.sing 17067
 
17068
      switch (field) {
17069
      case SUCCESS:
17070
        return isSetSuccess();
17071
      case HSE:
17072
        return isSetHse();
17073
      }
17074
      throw new IllegalStateException();
17075
    }
17076
 
17077
    @Override
17078
    public boolean equals(Object that) {
17079
      if (that == null)
17080
        return false;
17081
      if (that instanceof authenticateCatalogUser_result)
17082
        return this.equals((authenticateCatalogUser_result)that);
17083
      return false;
17084
    }
17085
 
17086
    public boolean equals(authenticateCatalogUser_result that) {
17087
      if (that == null)
17088
        return false;
17089
 
17090
      boolean this_present_success = true && this.isSetSuccess();
17091
      boolean that_present_success = true && that.isSetSuccess();
17092
      if (this_present_success || that_present_success) {
17093
        if (!(this_present_success && that_present_success))
17094
          return false;
17095
        if (!this.success.equals(that.success))
17096
          return false;
17097
      }
17098
 
17099
      boolean this_present_hse = true && this.isSetHse();
17100
      boolean that_present_hse = true && that.isSetHse();
17101
      if (this_present_hse || that_present_hse) {
17102
        if (!(this_present_hse && that_present_hse))
17103
          return false;
17104
        if (!this.hse.equals(that.hse))
17105
          return false;
17106
      }
17107
 
17108
      return true;
17109
    }
17110
 
17111
    @Override
17112
    public int hashCode() {
17113
      return 0;
17114
    }
17115
 
17116
    public int compareTo(authenticateCatalogUser_result other) {
17117
      if (!getClass().equals(other.getClass())) {
17118
        return getClass().getName().compareTo(other.getClass().getName());
17119
      }
17120
 
17121
      int lastComparison = 0;
17122
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
17123
 
3430 rajveer 17124
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 17125
      if (lastComparison != 0) {
17126
        return lastComparison;
17127
      }
3430 rajveer 17128
      if (isSetSuccess()) {
17129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17130
        if (lastComparison != 0) {
17131
          return lastComparison;
17132
        }
2024 ankur.sing 17133
      }
3430 rajveer 17134
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 17135
      if (lastComparison != 0) {
17136
        return lastComparison;
17137
      }
3430 rajveer 17138
      if (isSetHse()) {
17139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
17140
        if (lastComparison != 0) {
17141
          return lastComparison;
17142
        }
2024 ankur.sing 17143
      }
17144
      return 0;
17145
    }
17146
 
3430 rajveer 17147
    public _Fields fieldForId(int fieldId) {
17148
      return _Fields.findByThriftId(fieldId);
17149
    }
17150
 
17151
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17152
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 17153
      iprot.readStructBegin();
17154
      while (true)
17155
      {
17156
        field = iprot.readFieldBegin();
3430 rajveer 17157
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 17158
          break;
17159
        }
3430 rajveer 17160
        switch (field.id) {
17161
          case 0: // SUCCESS
17162
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17163
              this.success = new CatalogDashboardUser();
17164
              this.success.read(iprot);
17165
            } else { 
17166
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17167
            }
17168
            break;
17169
          case 1: // HSE
17170
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17171
              this.hse = new HelperServiceException();
17172
              this.hse.read(iprot);
17173
            } else { 
17174
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17175
            }
17176
            break;
17177
          default:
17178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 17179
        }
3430 rajveer 17180
        iprot.readFieldEnd();
2024 ankur.sing 17181
      }
17182
      iprot.readStructEnd();
17183
      validate();
17184
    }
17185
 
3430 rajveer 17186
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 17187
      oprot.writeStructBegin(STRUCT_DESC);
17188
 
17189
      if (this.isSetSuccess()) {
17190
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17191
        this.success.write(oprot);
17192
        oprot.writeFieldEnd();
17193
      } else if (this.isSetHse()) {
17194
        oprot.writeFieldBegin(HSE_FIELD_DESC);
17195
        this.hse.write(oprot);
17196
        oprot.writeFieldEnd();
17197
      }
17198
      oprot.writeFieldStop();
17199
      oprot.writeStructEnd();
17200
    }
17201
 
17202
    @Override
17203
    public String toString() {
17204
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
17205
      boolean first = true;
17206
 
17207
      sb.append("success:");
17208
      if (this.success == null) {
17209
        sb.append("null");
17210
      } else {
17211
        sb.append(this.success);
17212
      }
17213
      first = false;
17214
      if (!first) sb.append(", ");
17215
      sb.append("hse:");
17216
      if (this.hse == null) {
17217
        sb.append("null");
17218
      } else {
17219
        sb.append(this.hse);
17220
      }
17221
      first = false;
17222
      sb.append(")");
17223
      return sb.toString();
17224
    }
17225
 
3430 rajveer 17226
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 17227
      // check for required fields
17228
    }
17229
 
3430 rajveer 17230
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17231
      try {
17232
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17233
      } catch (org.apache.thrift.TException te) {
17234
        throw new java.io.IOException(te);
17235
      }
17236
    }
17237
 
17238
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17239
      try {
17240
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17241
      } catch (org.apache.thrift.TException te) {
17242
        throw new java.io.IOException(te);
17243
      }
17244
    }
17245
 
2024 ankur.sing 17246
  }
17247
 
4544 varun.gupt 17248
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
17249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
17250
 
17251
    private static final org.apache.thrift.protocol.TField ENTITY_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("entityIds", org.apache.thrift.protocol.TType.LIST, (short)1);
17252
    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)2);
17253
 
17254
    private List<Long> entityIds; // required
17255
    private String email; // required
17256
 
17257
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17258
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17259
      ENTITY_IDS((short)1, "entityIds"),
17260
      EMAIL((short)2, "email");
17261
 
17262
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17263
 
17264
      static {
17265
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17266
          byName.put(field.getFieldName(), field);
17267
        }
17268
      }
17269
 
17270
      /**
17271
       * Find the _Fields constant that matches fieldId, or null if its not found.
17272
       */
17273
      public static _Fields findByThriftId(int fieldId) {
17274
        switch(fieldId) {
17275
          case 1: // ENTITY_IDS
17276
            return ENTITY_IDS;
17277
          case 2: // EMAIL
17278
            return EMAIL;
17279
          default:
17280
            return null;
17281
        }
17282
      }
17283
 
17284
      /**
17285
       * Find the _Fields constant that matches fieldId, throwing an exception
17286
       * if it is not found.
17287
       */
17288
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17289
        _Fields fields = findByThriftId(fieldId);
17290
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17291
        return fields;
17292
      }
17293
 
17294
      /**
17295
       * Find the _Fields constant that matches name, or null if its not found.
17296
       */
17297
      public static _Fields findByName(String name) {
17298
        return byName.get(name);
17299
      }
17300
 
17301
      private final short _thriftId;
17302
      private final String _fieldName;
17303
 
17304
      _Fields(short thriftId, String fieldName) {
17305
        _thriftId = thriftId;
17306
        _fieldName = fieldName;
17307
      }
17308
 
17309
      public short getThriftFieldId() {
17310
        return _thriftId;
17311
      }
17312
 
17313
      public String getFieldName() {
17314
        return _fieldName;
17315
      }
17316
    }
17317
 
17318
    // isset id assignments
17319
 
17320
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17321
    static {
17322
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17323
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17324
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17325
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
17326
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
17330
    }
17331
 
17332
    public shareEntities_args() {
17333
    }
17334
 
17335
    public shareEntities_args(
17336
      List<Long> entityIds,
17337
      String email)
17338
    {
17339
      this();
17340
      this.entityIds = entityIds;
17341
      this.email = email;
17342
    }
17343
 
17344
    /**
17345
     * Performs a deep copy on <i>other</i>.
17346
     */
17347
    public shareEntities_args(shareEntities_args other) {
17348
      if (other.isSetEntityIds()) {
17349
        List<Long> __this__entityIds = new ArrayList<Long>();
17350
        for (Long other_element : other.entityIds) {
17351
          __this__entityIds.add(other_element);
17352
        }
17353
        this.entityIds = __this__entityIds;
17354
      }
17355
      if (other.isSetEmail()) {
17356
        this.email = other.email;
17357
      }
17358
    }
17359
 
17360
    public shareEntities_args deepCopy() {
17361
      return new shareEntities_args(this);
17362
    }
17363
 
17364
    @Override
17365
    public void clear() {
17366
      this.entityIds = null;
17367
      this.email = null;
17368
    }
17369
 
17370
    public int getEntityIdsSize() {
17371
      return (this.entityIds == null) ? 0 : this.entityIds.size();
17372
    }
17373
 
17374
    public java.util.Iterator<Long> getEntityIdsIterator() {
17375
      return (this.entityIds == null) ? null : this.entityIds.iterator();
17376
    }
17377
 
17378
    public void addToEntityIds(long elem) {
17379
      if (this.entityIds == null) {
17380
        this.entityIds = new ArrayList<Long>();
17381
      }
17382
      this.entityIds.add(elem);
17383
    }
17384
 
17385
    public List<Long> getEntityIds() {
17386
      return this.entityIds;
17387
    }
17388
 
17389
    public void setEntityIds(List<Long> entityIds) {
17390
      this.entityIds = entityIds;
17391
    }
17392
 
17393
    public void unsetEntityIds() {
17394
      this.entityIds = null;
17395
    }
17396
 
17397
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
17398
    public boolean isSetEntityIds() {
17399
      return this.entityIds != null;
17400
    }
17401
 
17402
    public void setEntityIdsIsSet(boolean value) {
17403
      if (!value) {
17404
        this.entityIds = null;
17405
      }
17406
    }
17407
 
17408
    public String getEmail() {
17409
      return this.email;
17410
    }
17411
 
17412
    public void setEmail(String email) {
17413
      this.email = email;
17414
    }
17415
 
17416
    public void unsetEmail() {
17417
      this.email = null;
17418
    }
17419
 
17420
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
17421
    public boolean isSetEmail() {
17422
      return this.email != null;
17423
    }
17424
 
17425
    public void setEmailIsSet(boolean value) {
17426
      if (!value) {
17427
        this.email = null;
17428
      }
17429
    }
17430
 
17431
    public void setFieldValue(_Fields field, Object value) {
17432
      switch (field) {
17433
      case ENTITY_IDS:
17434
        if (value == null) {
17435
          unsetEntityIds();
17436
        } else {
17437
          setEntityIds((List<Long>)value);
17438
        }
17439
        break;
17440
 
17441
      case EMAIL:
17442
        if (value == null) {
17443
          unsetEmail();
17444
        } else {
17445
          setEmail((String)value);
17446
        }
17447
        break;
17448
 
17449
      }
17450
    }
17451
 
17452
    public Object getFieldValue(_Fields field) {
17453
      switch (field) {
17454
      case ENTITY_IDS:
17455
        return getEntityIds();
17456
 
17457
      case EMAIL:
17458
        return getEmail();
17459
 
17460
      }
17461
      throw new IllegalStateException();
17462
    }
17463
 
17464
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17465
    public boolean isSet(_Fields field) {
17466
      if (field == null) {
17467
        throw new IllegalArgumentException();
17468
      }
17469
 
17470
      switch (field) {
17471
      case ENTITY_IDS:
17472
        return isSetEntityIds();
17473
      case EMAIL:
17474
        return isSetEmail();
17475
      }
17476
      throw new IllegalStateException();
17477
    }
17478
 
17479
    @Override
17480
    public boolean equals(Object that) {
17481
      if (that == null)
17482
        return false;
17483
      if (that instanceof shareEntities_args)
17484
        return this.equals((shareEntities_args)that);
17485
      return false;
17486
    }
17487
 
17488
    public boolean equals(shareEntities_args that) {
17489
      if (that == null)
17490
        return false;
17491
 
17492
      boolean this_present_entityIds = true && this.isSetEntityIds();
17493
      boolean that_present_entityIds = true && that.isSetEntityIds();
17494
      if (this_present_entityIds || that_present_entityIds) {
17495
        if (!(this_present_entityIds && that_present_entityIds))
17496
          return false;
17497
        if (!this.entityIds.equals(that.entityIds))
17498
          return false;
17499
      }
17500
 
17501
      boolean this_present_email = true && this.isSetEmail();
17502
      boolean that_present_email = true && that.isSetEmail();
17503
      if (this_present_email || that_present_email) {
17504
        if (!(this_present_email && that_present_email))
17505
          return false;
17506
        if (!this.email.equals(that.email))
17507
          return false;
17508
      }
17509
 
17510
      return true;
17511
    }
17512
 
17513
    @Override
17514
    public int hashCode() {
17515
      return 0;
17516
    }
17517
 
17518
    public int compareTo(shareEntities_args other) {
17519
      if (!getClass().equals(other.getClass())) {
17520
        return getClass().getName().compareTo(other.getClass().getName());
17521
      }
17522
 
17523
      int lastComparison = 0;
17524
      shareEntities_args typedOther = (shareEntities_args)other;
17525
 
17526
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
17527
      if (lastComparison != 0) {
17528
        return lastComparison;
17529
      }
17530
      if (isSetEntityIds()) {
17531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
17532
        if (lastComparison != 0) {
17533
          return lastComparison;
17534
        }
17535
      }
17536
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
17537
      if (lastComparison != 0) {
17538
        return lastComparison;
17539
      }
17540
      if (isSetEmail()) {
17541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
17542
        if (lastComparison != 0) {
17543
          return lastComparison;
17544
        }
17545
      }
17546
      return 0;
17547
    }
17548
 
17549
    public _Fields fieldForId(int fieldId) {
17550
      return _Fields.findByThriftId(fieldId);
17551
    }
17552
 
17553
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17554
      org.apache.thrift.protocol.TField field;
17555
      iprot.readStructBegin();
17556
      while (true)
17557
      {
17558
        field = iprot.readFieldBegin();
17559
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17560
          break;
17561
        }
17562
        switch (field.id) {
17563
          case 1: // ENTITY_IDS
17564
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17565
              {
5864 rajveer 17566
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
17567
                this.entityIds = new ArrayList<Long>(_list45.size);
17568
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 17569
                {
5864 rajveer 17570
                  long _elem47; // required
17571
                  _elem47 = iprot.readI64();
17572
                  this.entityIds.add(_elem47);
4544 varun.gupt 17573
                }
17574
                iprot.readListEnd();
17575
              }
17576
            } else { 
17577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17578
            }
17579
            break;
17580
          case 2: // EMAIL
17581
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17582
              this.email = iprot.readString();
17583
            } else { 
17584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17585
            }
17586
            break;
17587
          default:
17588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17589
        }
17590
        iprot.readFieldEnd();
17591
      }
17592
      iprot.readStructEnd();
17593
      validate();
17594
    }
17595
 
17596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17597
      validate();
17598
 
17599
      oprot.writeStructBegin(STRUCT_DESC);
17600
      if (this.entityIds != null) {
17601
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
17602
        {
17603
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 17604
          for (long _iter48 : this.entityIds)
4544 varun.gupt 17605
          {
5864 rajveer 17606
            oprot.writeI64(_iter48);
4544 varun.gupt 17607
          }
17608
          oprot.writeListEnd();
17609
        }
17610
        oprot.writeFieldEnd();
17611
      }
17612
      if (this.email != null) {
17613
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
17614
        oprot.writeString(this.email);
17615
        oprot.writeFieldEnd();
17616
      }
17617
      oprot.writeFieldStop();
17618
      oprot.writeStructEnd();
17619
    }
17620
 
17621
    @Override
17622
    public String toString() {
17623
      StringBuilder sb = new StringBuilder("shareEntities_args(");
17624
      boolean first = true;
17625
 
17626
      sb.append("entityIds:");
17627
      if (this.entityIds == null) {
17628
        sb.append("null");
17629
      } else {
17630
        sb.append(this.entityIds);
17631
      }
17632
      first = false;
17633
      if (!first) sb.append(", ");
17634
      sb.append("email:");
17635
      if (this.email == null) {
17636
        sb.append("null");
17637
      } else {
17638
        sb.append(this.email);
17639
      }
17640
      first = false;
17641
      sb.append(")");
17642
      return sb.toString();
17643
    }
17644
 
17645
    public void validate() throws org.apache.thrift.TException {
17646
      // check for required fields
17647
    }
17648
 
17649
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17650
      try {
17651
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17652
      } catch (org.apache.thrift.TException te) {
17653
        throw new java.io.IOException(te);
17654
      }
17655
    }
17656
 
17657
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17658
      try {
17659
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17660
      } catch (org.apache.thrift.TException te) {
17661
        throw new java.io.IOException(te);
17662
      }
17663
    }
17664
 
17665
  }
17666
 
17667
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
17668
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
17669
 
17670
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
17671
 
17672
    private HelperServiceException hse; // required
17673
 
17674
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17675
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17676
      HSE((short)1, "hse");
17677
 
17678
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17679
 
17680
      static {
17681
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17682
          byName.put(field.getFieldName(), field);
17683
        }
17684
      }
17685
 
17686
      /**
17687
       * Find the _Fields constant that matches fieldId, or null if its not found.
17688
       */
17689
      public static _Fields findByThriftId(int fieldId) {
17690
        switch(fieldId) {
17691
          case 1: // HSE
17692
            return HSE;
17693
          default:
17694
            return null;
17695
        }
17696
      }
17697
 
17698
      /**
17699
       * Find the _Fields constant that matches fieldId, throwing an exception
17700
       * if it is not found.
17701
       */
17702
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17703
        _Fields fields = findByThriftId(fieldId);
17704
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17705
        return fields;
17706
      }
17707
 
17708
      /**
17709
       * Find the _Fields constant that matches name, or null if its not found.
17710
       */
17711
      public static _Fields findByName(String name) {
17712
        return byName.get(name);
17713
      }
17714
 
17715
      private final short _thriftId;
17716
      private final String _fieldName;
17717
 
17718
      _Fields(short thriftId, String fieldName) {
17719
        _thriftId = thriftId;
17720
        _fieldName = fieldName;
17721
      }
17722
 
17723
      public short getThriftFieldId() {
17724
        return _thriftId;
17725
      }
17726
 
17727
      public String getFieldName() {
17728
        return _fieldName;
17729
      }
17730
    }
17731
 
17732
    // isset id assignments
17733
 
17734
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17735
    static {
17736
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17737
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
17741
    }
17742
 
17743
    public shareEntities_result() {
17744
    }
17745
 
17746
    public shareEntities_result(
17747
      HelperServiceException hse)
17748
    {
17749
      this();
17750
      this.hse = hse;
17751
    }
17752
 
17753
    /**
17754
     * Performs a deep copy on <i>other</i>.
17755
     */
17756
    public shareEntities_result(shareEntities_result other) {
17757
      if (other.isSetHse()) {
17758
        this.hse = new HelperServiceException(other.hse);
17759
      }
17760
    }
17761
 
17762
    public shareEntities_result deepCopy() {
17763
      return new shareEntities_result(this);
17764
    }
17765
 
17766
    @Override
17767
    public void clear() {
17768
      this.hse = null;
17769
    }
17770
 
17771
    public HelperServiceException getHse() {
17772
      return this.hse;
17773
    }
17774
 
17775
    public void setHse(HelperServiceException hse) {
17776
      this.hse = hse;
17777
    }
17778
 
17779
    public void unsetHse() {
17780
      this.hse = null;
17781
    }
17782
 
17783
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
17784
    public boolean isSetHse() {
17785
      return this.hse != null;
17786
    }
17787
 
17788
    public void setHseIsSet(boolean value) {
17789
      if (!value) {
17790
        this.hse = null;
17791
      }
17792
    }
17793
 
17794
    public void setFieldValue(_Fields field, Object value) {
17795
      switch (field) {
17796
      case HSE:
17797
        if (value == null) {
17798
          unsetHse();
17799
        } else {
17800
          setHse((HelperServiceException)value);
17801
        }
17802
        break;
17803
 
17804
      }
17805
    }
17806
 
17807
    public Object getFieldValue(_Fields field) {
17808
      switch (field) {
17809
      case HSE:
17810
        return getHse();
17811
 
17812
      }
17813
      throw new IllegalStateException();
17814
    }
17815
 
17816
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17817
    public boolean isSet(_Fields field) {
17818
      if (field == null) {
17819
        throw new IllegalArgumentException();
17820
      }
17821
 
17822
      switch (field) {
17823
      case HSE:
17824
        return isSetHse();
17825
      }
17826
      throw new IllegalStateException();
17827
    }
17828
 
17829
    @Override
17830
    public boolean equals(Object that) {
17831
      if (that == null)
17832
        return false;
17833
      if (that instanceof shareEntities_result)
17834
        return this.equals((shareEntities_result)that);
17835
      return false;
17836
    }
17837
 
17838
    public boolean equals(shareEntities_result that) {
17839
      if (that == null)
17840
        return false;
17841
 
17842
      boolean this_present_hse = true && this.isSetHse();
17843
      boolean that_present_hse = true && that.isSetHse();
17844
      if (this_present_hse || that_present_hse) {
17845
        if (!(this_present_hse && that_present_hse))
17846
          return false;
17847
        if (!this.hse.equals(that.hse))
17848
          return false;
17849
      }
17850
 
17851
      return true;
17852
    }
17853
 
17854
    @Override
17855
    public int hashCode() {
17856
      return 0;
17857
    }
17858
 
17859
    public int compareTo(shareEntities_result other) {
17860
      if (!getClass().equals(other.getClass())) {
17861
        return getClass().getName().compareTo(other.getClass().getName());
17862
      }
17863
 
17864
      int lastComparison = 0;
17865
      shareEntities_result typedOther = (shareEntities_result)other;
17866
 
17867
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
17868
      if (lastComparison != 0) {
17869
        return lastComparison;
17870
      }
17871
      if (isSetHse()) {
17872
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
17873
        if (lastComparison != 0) {
17874
          return lastComparison;
17875
        }
17876
      }
17877
      return 0;
17878
    }
17879
 
17880
    public _Fields fieldForId(int fieldId) {
17881
      return _Fields.findByThriftId(fieldId);
17882
    }
17883
 
17884
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17885
      org.apache.thrift.protocol.TField field;
17886
      iprot.readStructBegin();
17887
      while (true)
17888
      {
17889
        field = iprot.readFieldBegin();
17890
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17891
          break;
17892
        }
17893
        switch (field.id) {
17894
          case 1: // HSE
17895
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17896
              this.hse = new HelperServiceException();
17897
              this.hse.read(iprot);
17898
            } else { 
17899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17900
            }
17901
            break;
17902
          default:
17903
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17904
        }
17905
        iprot.readFieldEnd();
17906
      }
17907
      iprot.readStructEnd();
17908
      validate();
17909
    }
17910
 
17911
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17912
      oprot.writeStructBegin(STRUCT_DESC);
17913
 
17914
      if (this.isSetHse()) {
17915
        oprot.writeFieldBegin(HSE_FIELD_DESC);
17916
        this.hse.write(oprot);
17917
        oprot.writeFieldEnd();
17918
      }
17919
      oprot.writeFieldStop();
17920
      oprot.writeStructEnd();
17921
    }
17922
 
17923
    @Override
17924
    public String toString() {
17925
      StringBuilder sb = new StringBuilder("shareEntities_result(");
17926
      boolean first = true;
17927
 
17928
      sb.append("hse:");
17929
      if (this.hse == null) {
17930
        sb.append("null");
17931
      } else {
17932
        sb.append(this.hse);
17933
      }
17934
      first = false;
17935
      sb.append(")");
17936
      return sb.toString();
17937
    }
17938
 
17939
    public void validate() throws org.apache.thrift.TException {
17940
      // check for required fields
17941
    }
17942
 
17943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17944
      try {
17945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17946
      } catch (org.apache.thrift.TException te) {
17947
        throw new java.io.IOException(te);
17948
      }
17949
    }
17950
 
17951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17952
      try {
17953
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17954
      } catch (org.apache.thrift.TException te) {
17955
        throw new java.io.IOException(te);
17956
      }
17957
    }
17958
 
17959
  }
17960
 
4693 mandeep.dh 17961
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
17962
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
17963
 
17964
 
17965
 
17966
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17967
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17968
;
17969
 
17970
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17971
 
17972
      static {
17973
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17974
          byName.put(field.getFieldName(), field);
17975
        }
17976
      }
17977
 
17978
      /**
17979
       * Find the _Fields constant that matches fieldId, or null if its not found.
17980
       */
17981
      public static _Fields findByThriftId(int fieldId) {
17982
        switch(fieldId) {
17983
          default:
17984
            return null;
17985
        }
17986
      }
17987
 
17988
      /**
17989
       * Find the _Fields constant that matches fieldId, throwing an exception
17990
       * if it is not found.
17991
       */
17992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17993
        _Fields fields = findByThriftId(fieldId);
17994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17995
        return fields;
17996
      }
17997
 
17998
      /**
17999
       * Find the _Fields constant that matches name, or null if its not found.
18000
       */
18001
      public static _Fields findByName(String name) {
18002
        return byName.get(name);
18003
      }
18004
 
18005
      private final short _thriftId;
18006
      private final String _fieldName;
18007
 
18008
      _Fields(short thriftId, String fieldName) {
18009
        _thriftId = thriftId;
18010
        _fieldName = fieldName;
18011
      }
18012
 
18013
      public short getThriftFieldId() {
18014
        return _thriftId;
18015
      }
18016
 
18017
      public String getFieldName() {
18018
        return _fieldName;
18019
      }
18020
    }
18021
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18022
    static {
18023
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18024
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18025
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
18026
    }
18027
 
18028
    public getAgents_args() {
18029
    }
18030
 
18031
    /**
18032
     * Performs a deep copy on <i>other</i>.
18033
     */
18034
    public getAgents_args(getAgents_args other) {
18035
    }
18036
 
18037
    public getAgents_args deepCopy() {
18038
      return new getAgents_args(this);
18039
    }
18040
 
18041
    @Override
18042
    public void clear() {
18043
    }
18044
 
18045
    public void setFieldValue(_Fields field, Object value) {
18046
      switch (field) {
18047
      }
18048
    }
18049
 
18050
    public Object getFieldValue(_Fields field) {
18051
      switch (field) {
18052
      }
18053
      throw new IllegalStateException();
18054
    }
18055
 
18056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18057
    public boolean isSet(_Fields field) {
18058
      if (field == null) {
18059
        throw new IllegalArgumentException();
18060
      }
18061
 
18062
      switch (field) {
18063
      }
18064
      throw new IllegalStateException();
18065
    }
18066
 
18067
    @Override
18068
    public boolean equals(Object that) {
18069
      if (that == null)
18070
        return false;
18071
      if (that instanceof getAgents_args)
18072
        return this.equals((getAgents_args)that);
18073
      return false;
18074
    }
18075
 
18076
    public boolean equals(getAgents_args that) {
18077
      if (that == null)
18078
        return false;
18079
 
18080
      return true;
18081
    }
18082
 
18083
    @Override
18084
    public int hashCode() {
18085
      return 0;
18086
    }
18087
 
18088
    public int compareTo(getAgents_args other) {
18089
      if (!getClass().equals(other.getClass())) {
18090
        return getClass().getName().compareTo(other.getClass().getName());
18091
      }
18092
 
18093
      int lastComparison = 0;
18094
      getAgents_args typedOther = (getAgents_args)other;
18095
 
18096
      return 0;
18097
    }
18098
 
18099
    public _Fields fieldForId(int fieldId) {
18100
      return _Fields.findByThriftId(fieldId);
18101
    }
18102
 
18103
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18104
      org.apache.thrift.protocol.TField field;
18105
      iprot.readStructBegin();
18106
      while (true)
18107
      {
18108
        field = iprot.readFieldBegin();
18109
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18110
          break;
18111
        }
18112
        switch (field.id) {
18113
          default:
18114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18115
        }
18116
        iprot.readFieldEnd();
18117
      }
18118
      iprot.readStructEnd();
18119
      validate();
18120
    }
18121
 
18122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18123
      validate();
18124
 
18125
      oprot.writeStructBegin(STRUCT_DESC);
18126
      oprot.writeFieldStop();
18127
      oprot.writeStructEnd();
18128
    }
18129
 
18130
    @Override
18131
    public String toString() {
18132
      StringBuilder sb = new StringBuilder("getAgents_args(");
18133
      boolean first = true;
18134
 
18135
      sb.append(")");
18136
      return sb.toString();
18137
    }
18138
 
18139
    public void validate() throws org.apache.thrift.TException {
18140
      // check for required fields
18141
    }
18142
 
18143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18144
      try {
18145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18146
      } catch (org.apache.thrift.TException te) {
18147
        throw new java.io.IOException(te);
18148
      }
18149
    }
18150
 
18151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18152
      try {
18153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18154
      } catch (org.apache.thrift.TException te) {
18155
        throw new java.io.IOException(te);
18156
      }
18157
    }
18158
 
18159
  }
18160
 
18161
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
18162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
18163
 
18164
    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);
18165
 
18166
    private List<Agent> success; // required
18167
 
18168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18170
      SUCCESS((short)0, "success");
18171
 
18172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18173
 
18174
      static {
18175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18176
          byName.put(field.getFieldName(), field);
18177
        }
18178
      }
18179
 
18180
      /**
18181
       * Find the _Fields constant that matches fieldId, or null if its not found.
18182
       */
18183
      public static _Fields findByThriftId(int fieldId) {
18184
        switch(fieldId) {
18185
          case 0: // SUCCESS
18186
            return SUCCESS;
18187
          default:
18188
            return null;
18189
        }
18190
      }
18191
 
18192
      /**
18193
       * Find the _Fields constant that matches fieldId, throwing an exception
18194
       * if it is not found.
18195
       */
18196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18197
        _Fields fields = findByThriftId(fieldId);
18198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18199
        return fields;
18200
      }
18201
 
18202
      /**
18203
       * Find the _Fields constant that matches name, or null if its not found.
18204
       */
18205
      public static _Fields findByName(String name) {
18206
        return byName.get(name);
18207
      }
18208
 
18209
      private final short _thriftId;
18210
      private final String _fieldName;
18211
 
18212
      _Fields(short thriftId, String fieldName) {
18213
        _thriftId = thriftId;
18214
        _fieldName = fieldName;
18215
      }
18216
 
18217
      public short getThriftFieldId() {
18218
        return _thriftId;
18219
      }
18220
 
18221
      public String getFieldName() {
18222
        return _fieldName;
18223
      }
18224
    }
18225
 
18226
    // isset id assignments
18227
 
18228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18229
    static {
18230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18231
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18232
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18233
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
18234
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18235
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
18236
    }
18237
 
18238
    public getAgents_result() {
18239
    }
18240
 
18241
    public getAgents_result(
18242
      List<Agent> success)
18243
    {
18244
      this();
18245
      this.success = success;
18246
    }
18247
 
18248
    /**
18249
     * Performs a deep copy on <i>other</i>.
18250
     */
18251
    public getAgents_result(getAgents_result other) {
18252
      if (other.isSetSuccess()) {
18253
        List<Agent> __this__success = new ArrayList<Agent>();
18254
        for (Agent other_element : other.success) {
18255
          __this__success.add(new Agent(other_element));
18256
        }
18257
        this.success = __this__success;
18258
      }
18259
    }
18260
 
18261
    public getAgents_result deepCopy() {
18262
      return new getAgents_result(this);
18263
    }
18264
 
18265
    @Override
18266
    public void clear() {
18267
      this.success = null;
18268
    }
18269
 
18270
    public int getSuccessSize() {
18271
      return (this.success == null) ? 0 : this.success.size();
18272
    }
18273
 
18274
    public java.util.Iterator<Agent> getSuccessIterator() {
18275
      return (this.success == null) ? null : this.success.iterator();
18276
    }
18277
 
18278
    public void addToSuccess(Agent elem) {
18279
      if (this.success == null) {
18280
        this.success = new ArrayList<Agent>();
18281
      }
18282
      this.success.add(elem);
18283
    }
18284
 
18285
    public List<Agent> getSuccess() {
18286
      return this.success;
18287
    }
18288
 
18289
    public void setSuccess(List<Agent> success) {
18290
      this.success = success;
18291
    }
18292
 
18293
    public void unsetSuccess() {
18294
      this.success = null;
18295
    }
18296
 
18297
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18298
    public boolean isSetSuccess() {
18299
      return this.success != null;
18300
    }
18301
 
18302
    public void setSuccessIsSet(boolean value) {
18303
      if (!value) {
18304
        this.success = null;
18305
      }
18306
    }
18307
 
18308
    public void setFieldValue(_Fields field, Object value) {
18309
      switch (field) {
18310
      case SUCCESS:
18311
        if (value == null) {
18312
          unsetSuccess();
18313
        } else {
18314
          setSuccess((List<Agent>)value);
18315
        }
18316
        break;
18317
 
18318
      }
18319
    }
18320
 
18321
    public Object getFieldValue(_Fields field) {
18322
      switch (field) {
18323
      case SUCCESS:
18324
        return getSuccess();
18325
 
18326
      }
18327
      throw new IllegalStateException();
18328
    }
18329
 
18330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18331
    public boolean isSet(_Fields field) {
18332
      if (field == null) {
18333
        throw new IllegalArgumentException();
18334
      }
18335
 
18336
      switch (field) {
18337
      case SUCCESS:
18338
        return isSetSuccess();
18339
      }
18340
      throw new IllegalStateException();
18341
    }
18342
 
18343
    @Override
18344
    public boolean equals(Object that) {
18345
      if (that == null)
18346
        return false;
18347
      if (that instanceof getAgents_result)
18348
        return this.equals((getAgents_result)that);
18349
      return false;
18350
    }
18351
 
18352
    public boolean equals(getAgents_result that) {
18353
      if (that == null)
18354
        return false;
18355
 
18356
      boolean this_present_success = true && this.isSetSuccess();
18357
      boolean that_present_success = true && that.isSetSuccess();
18358
      if (this_present_success || that_present_success) {
18359
        if (!(this_present_success && that_present_success))
18360
          return false;
18361
        if (!this.success.equals(that.success))
18362
          return false;
18363
      }
18364
 
18365
      return true;
18366
    }
18367
 
18368
    @Override
18369
    public int hashCode() {
18370
      return 0;
18371
    }
18372
 
18373
    public int compareTo(getAgents_result other) {
18374
      if (!getClass().equals(other.getClass())) {
18375
        return getClass().getName().compareTo(other.getClass().getName());
18376
      }
18377
 
18378
      int lastComparison = 0;
18379
      getAgents_result typedOther = (getAgents_result)other;
18380
 
18381
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18382
      if (lastComparison != 0) {
18383
        return lastComparison;
18384
      }
18385
      if (isSetSuccess()) {
18386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18387
        if (lastComparison != 0) {
18388
          return lastComparison;
18389
        }
18390
      }
18391
      return 0;
18392
    }
18393
 
18394
    public _Fields fieldForId(int fieldId) {
18395
      return _Fields.findByThriftId(fieldId);
18396
    }
18397
 
18398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18399
      org.apache.thrift.protocol.TField field;
18400
      iprot.readStructBegin();
18401
      while (true)
18402
      {
18403
        field = iprot.readFieldBegin();
18404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18405
          break;
18406
        }
18407
        switch (field.id) {
18408
          case 0: // SUCCESS
18409
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18410
              {
5864 rajveer 18411
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
18412
                this.success = new ArrayList<Agent>(_list49.size);
18413
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 18414
                {
5864 rajveer 18415
                  Agent _elem51; // required
18416
                  _elem51 = new Agent();
18417
                  _elem51.read(iprot);
18418
                  this.success.add(_elem51);
4693 mandeep.dh 18419
                }
18420
                iprot.readListEnd();
18421
              }
18422
            } else { 
18423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18424
            }
18425
            break;
18426
          default:
18427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18428
        }
18429
        iprot.readFieldEnd();
18430
      }
18431
      iprot.readStructEnd();
18432
      validate();
18433
    }
18434
 
18435
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18436
      oprot.writeStructBegin(STRUCT_DESC);
18437
 
18438
      if (this.isSetSuccess()) {
18439
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18440
        {
18441
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 18442
          for (Agent _iter52 : this.success)
4693 mandeep.dh 18443
          {
5864 rajveer 18444
            _iter52.write(oprot);
4693 mandeep.dh 18445
          }
18446
          oprot.writeListEnd();
18447
        }
18448
        oprot.writeFieldEnd();
18449
      }
18450
      oprot.writeFieldStop();
18451
      oprot.writeStructEnd();
18452
    }
18453
 
18454
    @Override
18455
    public String toString() {
18456
      StringBuilder sb = new StringBuilder("getAgents_result(");
18457
      boolean first = true;
18458
 
18459
      sb.append("success:");
18460
      if (this.success == null) {
18461
        sb.append("null");
18462
      } else {
18463
        sb.append(this.success);
18464
      }
18465
      first = false;
18466
      sb.append(")");
18467
      return sb.toString();
18468
    }
18469
 
18470
    public void validate() throws org.apache.thrift.TException {
18471
      // check for required fields
18472
    }
18473
 
18474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18475
      try {
18476
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18477
      } catch (org.apache.thrift.TException te) {
18478
        throw new java.io.IOException(te);
18479
      }
18480
    }
18481
 
18482
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18483
      try {
18484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18485
      } catch (org.apache.thrift.TException te) {
18486
        throw new java.io.IOException(te);
18487
      }
18488
    }
18489
 
18490
  }
18491
 
18492
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
18493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
18494
 
18495
    private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)1);
18496
    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);
18497
 
18498
    private String emailId; // required
18499
    private String password; // required
18500
 
18501
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18502
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18503
      EMAIL_ID((short)1, "emailId"),
18504
      PASSWORD((short)2, "password");
18505
 
18506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18507
 
18508
      static {
18509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18510
          byName.put(field.getFieldName(), field);
18511
        }
18512
      }
18513
 
18514
      /**
18515
       * Find the _Fields constant that matches fieldId, or null if its not found.
18516
       */
18517
      public static _Fields findByThriftId(int fieldId) {
18518
        switch(fieldId) {
18519
          case 1: // EMAIL_ID
18520
            return EMAIL_ID;
18521
          case 2: // PASSWORD
18522
            return PASSWORD;
18523
          default:
18524
            return null;
18525
        }
18526
      }
18527
 
18528
      /**
18529
       * Find the _Fields constant that matches fieldId, throwing an exception
18530
       * if it is not found.
18531
       */
18532
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18533
        _Fields fields = findByThriftId(fieldId);
18534
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18535
        return fields;
18536
      }
18537
 
18538
      /**
18539
       * Find the _Fields constant that matches name, or null if its not found.
18540
       */
18541
      public static _Fields findByName(String name) {
18542
        return byName.get(name);
18543
      }
18544
 
18545
      private final short _thriftId;
18546
      private final String _fieldName;
18547
 
18548
      _Fields(short thriftId, String fieldName) {
18549
        _thriftId = thriftId;
18550
        _fieldName = fieldName;
18551
      }
18552
 
18553
      public short getThriftFieldId() {
18554
        return _thriftId;
18555
      }
18556
 
18557
      public String getFieldName() {
18558
        return _fieldName;
18559
      }
18560
    }
18561
 
18562
    // isset id assignments
18563
 
18564
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18565
    static {
18566
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18567
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18568
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18569
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18571
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18572
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
18573
    }
18574
 
18575
    public validateLogIn_args() {
18576
    }
18577
 
18578
    public validateLogIn_args(
18579
      String emailId,
18580
      String password)
18581
    {
18582
      this();
18583
      this.emailId = emailId;
18584
      this.password = password;
18585
    }
18586
 
18587
    /**
18588
     * Performs a deep copy on <i>other</i>.
18589
     */
18590
    public validateLogIn_args(validateLogIn_args other) {
18591
      if (other.isSetEmailId()) {
18592
        this.emailId = other.emailId;
18593
      }
18594
      if (other.isSetPassword()) {
18595
        this.password = other.password;
18596
      }
18597
    }
18598
 
18599
    public validateLogIn_args deepCopy() {
18600
      return new validateLogIn_args(this);
18601
    }
18602
 
18603
    @Override
18604
    public void clear() {
18605
      this.emailId = null;
18606
      this.password = null;
18607
    }
18608
 
18609
    public String getEmailId() {
18610
      return this.emailId;
18611
    }
18612
 
18613
    public void setEmailId(String emailId) {
18614
      this.emailId = emailId;
18615
    }
18616
 
18617
    public void unsetEmailId() {
18618
      this.emailId = null;
18619
    }
18620
 
18621
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
18622
    public boolean isSetEmailId() {
18623
      return this.emailId != null;
18624
    }
18625
 
18626
    public void setEmailIdIsSet(boolean value) {
18627
      if (!value) {
18628
        this.emailId = null;
18629
      }
18630
    }
18631
 
18632
    public String getPassword() {
18633
      return this.password;
18634
    }
18635
 
18636
    public void setPassword(String password) {
18637
      this.password = password;
18638
    }
18639
 
18640
    public void unsetPassword() {
18641
      this.password = null;
18642
    }
18643
 
18644
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18645
    public boolean isSetPassword() {
18646
      return this.password != null;
18647
    }
18648
 
18649
    public void setPasswordIsSet(boolean value) {
18650
      if (!value) {
18651
        this.password = null;
18652
      }
18653
    }
18654
 
18655
    public void setFieldValue(_Fields field, Object value) {
18656
      switch (field) {
18657
      case EMAIL_ID:
18658
        if (value == null) {
18659
          unsetEmailId();
18660
        } else {
18661
          setEmailId((String)value);
18662
        }
18663
        break;
18664
 
18665
      case PASSWORD:
18666
        if (value == null) {
18667
          unsetPassword();
18668
        } else {
18669
          setPassword((String)value);
18670
        }
18671
        break;
18672
 
18673
      }
18674
    }
18675
 
18676
    public Object getFieldValue(_Fields field) {
18677
      switch (field) {
18678
      case EMAIL_ID:
18679
        return getEmailId();
18680
 
18681
      case PASSWORD:
18682
        return getPassword();
18683
 
18684
      }
18685
      throw new IllegalStateException();
18686
    }
18687
 
18688
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18689
    public boolean isSet(_Fields field) {
18690
      if (field == null) {
18691
        throw new IllegalArgumentException();
18692
      }
18693
 
18694
      switch (field) {
18695
      case EMAIL_ID:
18696
        return isSetEmailId();
18697
      case PASSWORD:
18698
        return isSetPassword();
18699
      }
18700
      throw new IllegalStateException();
18701
    }
18702
 
18703
    @Override
18704
    public boolean equals(Object that) {
18705
      if (that == null)
18706
        return false;
18707
      if (that instanceof validateLogIn_args)
18708
        return this.equals((validateLogIn_args)that);
18709
      return false;
18710
    }
18711
 
18712
    public boolean equals(validateLogIn_args that) {
18713
      if (that == null)
18714
        return false;
18715
 
18716
      boolean this_present_emailId = true && this.isSetEmailId();
18717
      boolean that_present_emailId = true && that.isSetEmailId();
18718
      if (this_present_emailId || that_present_emailId) {
18719
        if (!(this_present_emailId && that_present_emailId))
18720
          return false;
18721
        if (!this.emailId.equals(that.emailId))
18722
          return false;
18723
      }
18724
 
18725
      boolean this_present_password = true && this.isSetPassword();
18726
      boolean that_present_password = true && that.isSetPassword();
18727
      if (this_present_password || that_present_password) {
18728
        if (!(this_present_password && that_present_password))
18729
          return false;
18730
        if (!this.password.equals(that.password))
18731
          return false;
18732
      }
18733
 
18734
      return true;
18735
    }
18736
 
18737
    @Override
18738
    public int hashCode() {
18739
      return 0;
18740
    }
18741
 
18742
    public int compareTo(validateLogIn_args other) {
18743
      if (!getClass().equals(other.getClass())) {
18744
        return getClass().getName().compareTo(other.getClass().getName());
18745
      }
18746
 
18747
      int lastComparison = 0;
18748
      validateLogIn_args typedOther = (validateLogIn_args)other;
18749
 
18750
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
18751
      if (lastComparison != 0) {
18752
        return lastComparison;
18753
      }
18754
      if (isSetEmailId()) {
18755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
18756
        if (lastComparison != 0) {
18757
          return lastComparison;
18758
        }
18759
      }
18760
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18761
      if (lastComparison != 0) {
18762
        return lastComparison;
18763
      }
18764
      if (isSetPassword()) {
18765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18766
        if (lastComparison != 0) {
18767
          return lastComparison;
18768
        }
18769
      }
18770
      return 0;
18771
    }
18772
 
18773
    public _Fields fieldForId(int fieldId) {
18774
      return _Fields.findByThriftId(fieldId);
18775
    }
18776
 
18777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18778
      org.apache.thrift.protocol.TField field;
18779
      iprot.readStructBegin();
18780
      while (true)
18781
      {
18782
        field = iprot.readFieldBegin();
18783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18784
          break;
18785
        }
18786
        switch (field.id) {
18787
          case 1: // EMAIL_ID
18788
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18789
              this.emailId = iprot.readString();
18790
            } else { 
18791
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18792
            }
18793
            break;
18794
          case 2: // PASSWORD
18795
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18796
              this.password = iprot.readString();
18797
            } else { 
18798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18799
            }
18800
            break;
18801
          default:
18802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18803
        }
18804
        iprot.readFieldEnd();
18805
      }
18806
      iprot.readStructEnd();
18807
      validate();
18808
    }
18809
 
18810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18811
      validate();
18812
 
18813
      oprot.writeStructBegin(STRUCT_DESC);
18814
      if (this.emailId != null) {
18815
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
18816
        oprot.writeString(this.emailId);
18817
        oprot.writeFieldEnd();
18818
      }
18819
      if (this.password != null) {
18820
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18821
        oprot.writeString(this.password);
18822
        oprot.writeFieldEnd();
18823
      }
18824
      oprot.writeFieldStop();
18825
      oprot.writeStructEnd();
18826
    }
18827
 
18828
    @Override
18829
    public String toString() {
18830
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
18831
      boolean first = true;
18832
 
18833
      sb.append("emailId:");
18834
      if (this.emailId == null) {
18835
        sb.append("null");
18836
      } else {
18837
        sb.append(this.emailId);
18838
      }
18839
      first = false;
18840
      if (!first) sb.append(", ");
18841
      sb.append("password:");
18842
      if (this.password == null) {
18843
        sb.append("null");
18844
      } else {
18845
        sb.append(this.password);
18846
      }
18847
      first = false;
18848
      sb.append(")");
18849
      return sb.toString();
18850
    }
18851
 
18852
    public void validate() throws org.apache.thrift.TException {
18853
      // check for required fields
18854
    }
18855
 
18856
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18857
      try {
18858
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18859
      } catch (org.apache.thrift.TException te) {
18860
        throw new java.io.IOException(te);
18861
      }
18862
    }
18863
 
18864
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18865
      try {
18866
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18867
      } catch (org.apache.thrift.TException te) {
18868
        throw new java.io.IOException(te);
18869
      }
18870
    }
18871
 
18872
  }
18873
 
18874
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
18875
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
18876
 
18877
    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);
18878
 
18879
    private boolean success; // required
18880
 
18881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18883
      SUCCESS((short)0, "success");
18884
 
18885
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18886
 
18887
      static {
18888
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18889
          byName.put(field.getFieldName(), field);
18890
        }
18891
      }
18892
 
18893
      /**
18894
       * Find the _Fields constant that matches fieldId, or null if its not found.
18895
       */
18896
      public static _Fields findByThriftId(int fieldId) {
18897
        switch(fieldId) {
18898
          case 0: // SUCCESS
18899
            return SUCCESS;
18900
          default:
18901
            return null;
18902
        }
18903
      }
18904
 
18905
      /**
18906
       * Find the _Fields constant that matches fieldId, throwing an exception
18907
       * if it is not found.
18908
       */
18909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18910
        _Fields fields = findByThriftId(fieldId);
18911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18912
        return fields;
18913
      }
18914
 
18915
      /**
18916
       * Find the _Fields constant that matches name, or null if its not found.
18917
       */
18918
      public static _Fields findByName(String name) {
18919
        return byName.get(name);
18920
      }
18921
 
18922
      private final short _thriftId;
18923
      private final String _fieldName;
18924
 
18925
      _Fields(short thriftId, String fieldName) {
18926
        _thriftId = thriftId;
18927
        _fieldName = fieldName;
18928
      }
18929
 
18930
      public short getThriftFieldId() {
18931
        return _thriftId;
18932
      }
18933
 
18934
      public String getFieldName() {
18935
        return _fieldName;
18936
      }
18937
    }
18938
 
18939
    // isset id assignments
18940
    private static final int __SUCCESS_ISSET_ID = 0;
18941
    private BitSet __isset_bit_vector = new BitSet(1);
18942
 
18943
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18944
    static {
18945
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18946
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18947
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18948
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18949
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
18950
    }
18951
 
18952
    public validateLogIn_result() {
18953
    }
18954
 
18955
    public validateLogIn_result(
18956
      boolean success)
18957
    {
18958
      this();
18959
      this.success = success;
18960
      setSuccessIsSet(true);
18961
    }
18962
 
18963
    /**
18964
     * Performs a deep copy on <i>other</i>.
18965
     */
18966
    public validateLogIn_result(validateLogIn_result other) {
18967
      __isset_bit_vector.clear();
18968
      __isset_bit_vector.or(other.__isset_bit_vector);
18969
      this.success = other.success;
18970
    }
18971
 
18972
    public validateLogIn_result deepCopy() {
18973
      return new validateLogIn_result(this);
18974
    }
18975
 
18976
    @Override
18977
    public void clear() {
18978
      setSuccessIsSet(false);
18979
      this.success = false;
18980
    }
18981
 
18982
    public boolean isSuccess() {
18983
      return this.success;
18984
    }
18985
 
18986
    public void setSuccess(boolean success) {
18987
      this.success = success;
18988
      setSuccessIsSet(true);
18989
    }
18990
 
18991
    public void unsetSuccess() {
18992
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18993
    }
18994
 
18995
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18996
    public boolean isSetSuccess() {
18997
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18998
    }
18999
 
19000
    public void setSuccessIsSet(boolean value) {
19001
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
19002
    }
19003
 
19004
    public void setFieldValue(_Fields field, Object value) {
19005
      switch (field) {
19006
      case SUCCESS:
19007
        if (value == null) {
19008
          unsetSuccess();
19009
        } else {
19010
          setSuccess((Boolean)value);
19011
        }
19012
        break;
19013
 
19014
      }
19015
    }
19016
 
19017
    public Object getFieldValue(_Fields field) {
19018
      switch (field) {
19019
      case SUCCESS:
19020
        return Boolean.valueOf(isSuccess());
19021
 
19022
      }
19023
      throw new IllegalStateException();
19024
    }
19025
 
19026
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19027
    public boolean isSet(_Fields field) {
19028
      if (field == null) {
19029
        throw new IllegalArgumentException();
19030
      }
19031
 
19032
      switch (field) {
19033
      case SUCCESS:
19034
        return isSetSuccess();
19035
      }
19036
      throw new IllegalStateException();
19037
    }
19038
 
19039
    @Override
19040
    public boolean equals(Object that) {
19041
      if (that == null)
19042
        return false;
19043
      if (that instanceof validateLogIn_result)
19044
        return this.equals((validateLogIn_result)that);
19045
      return false;
19046
    }
19047
 
19048
    public boolean equals(validateLogIn_result that) {
19049
      if (that == null)
19050
        return false;
19051
 
19052
      boolean this_present_success = true;
19053
      boolean that_present_success = true;
19054
      if (this_present_success || that_present_success) {
19055
        if (!(this_present_success && that_present_success))
19056
          return false;
19057
        if (this.success != that.success)
19058
          return false;
19059
      }
19060
 
19061
      return true;
19062
    }
19063
 
19064
    @Override
19065
    public int hashCode() {
19066
      return 0;
19067
    }
19068
 
19069
    public int compareTo(validateLogIn_result other) {
19070
      if (!getClass().equals(other.getClass())) {
19071
        return getClass().getName().compareTo(other.getClass().getName());
19072
      }
19073
 
19074
      int lastComparison = 0;
19075
      validateLogIn_result typedOther = (validateLogIn_result)other;
19076
 
19077
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19078
      if (lastComparison != 0) {
19079
        return lastComparison;
19080
      }
19081
      if (isSetSuccess()) {
19082
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19083
        if (lastComparison != 0) {
19084
          return lastComparison;
19085
        }
19086
      }
19087
      return 0;
19088
    }
19089
 
19090
    public _Fields fieldForId(int fieldId) {
19091
      return _Fields.findByThriftId(fieldId);
19092
    }
19093
 
19094
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19095
      org.apache.thrift.protocol.TField field;
19096
      iprot.readStructBegin();
19097
      while (true)
19098
      {
19099
        field = iprot.readFieldBegin();
19100
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19101
          break;
19102
        }
19103
        switch (field.id) {
19104
          case 0: // SUCCESS
19105
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
19106
              this.success = iprot.readBool();
19107
              setSuccessIsSet(true);
19108
            } else { 
19109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19110
            }
19111
            break;
19112
          default:
19113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19114
        }
19115
        iprot.readFieldEnd();
19116
      }
19117
      iprot.readStructEnd();
19118
      validate();
19119
    }
19120
 
19121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19122
      oprot.writeStructBegin(STRUCT_DESC);
19123
 
19124
      if (this.isSetSuccess()) {
19125
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19126
        oprot.writeBool(this.success);
19127
        oprot.writeFieldEnd();
19128
      }
19129
      oprot.writeFieldStop();
19130
      oprot.writeStructEnd();
19131
    }
19132
 
19133
    @Override
19134
    public String toString() {
19135
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
19136
      boolean first = true;
19137
 
19138
      sb.append("success:");
19139
      sb.append(this.success);
19140
      first = false;
19141
      sb.append(")");
19142
      return sb.toString();
19143
    }
19144
 
19145
    public void validate() throws org.apache.thrift.TException {
19146
      // check for required fields
19147
    }
19148
 
19149
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19150
      try {
19151
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19152
      } catch (org.apache.thrift.TException te) {
19153
        throw new java.io.IOException(te);
19154
      }
19155
    }
19156
 
19157
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19158
      try {
19159
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19160
      } catch (org.apache.thrift.TException te) {
19161
        throw new java.io.IOException(te);
19162
      }
19163
    }
19164
 
19165
  }
19166
 
19167
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
19168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
19169
 
19170
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
19171
    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);
19172
 
19173
    private String agentEmailId; // required
19174
    private String password; // required
19175
 
19176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19178
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
19179
      PASSWORD((short)2, "password");
19180
 
19181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19182
 
19183
      static {
19184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19185
          byName.put(field.getFieldName(), field);
19186
        }
19187
      }
19188
 
19189
      /**
19190
       * Find the _Fields constant that matches fieldId, or null if its not found.
19191
       */
19192
      public static _Fields findByThriftId(int fieldId) {
19193
        switch(fieldId) {
19194
          case 1: // AGENT_EMAIL_ID
19195
            return AGENT_EMAIL_ID;
19196
          case 2: // PASSWORD
19197
            return PASSWORD;
19198
          default:
19199
            return null;
19200
        }
19201
      }
19202
 
19203
      /**
19204
       * Find the _Fields constant that matches fieldId, throwing an exception
19205
       * if it is not found.
19206
       */
19207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19208
        _Fields fields = findByThriftId(fieldId);
19209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19210
        return fields;
19211
      }
19212
 
19213
      /**
19214
       * Find the _Fields constant that matches name, or null if its not found.
19215
       */
19216
      public static _Fields findByName(String name) {
19217
        return byName.get(name);
19218
      }
19219
 
19220
      private final short _thriftId;
19221
      private final String _fieldName;
19222
 
19223
      _Fields(short thriftId, String fieldName) {
19224
        _thriftId = thriftId;
19225
        _fieldName = fieldName;
19226
      }
19227
 
19228
      public short getThriftFieldId() {
19229
        return _thriftId;
19230
      }
19231
 
19232
      public String getFieldName() {
19233
        return _fieldName;
19234
      }
19235
    }
19236
 
19237
    // isset id assignments
19238
 
19239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19240
    static {
19241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19242
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19244
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19246
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19247
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
19248
    }
19249
 
19250
    public updatePasswordForAgent_args() {
19251
    }
19252
 
19253
    public updatePasswordForAgent_args(
19254
      String agentEmailId,
19255
      String password)
19256
    {
19257
      this();
19258
      this.agentEmailId = agentEmailId;
19259
      this.password = password;
19260
    }
19261
 
19262
    /**
19263
     * Performs a deep copy on <i>other</i>.
19264
     */
19265
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
19266
      if (other.isSetAgentEmailId()) {
19267
        this.agentEmailId = other.agentEmailId;
19268
      }
19269
      if (other.isSetPassword()) {
19270
        this.password = other.password;
19271
      }
19272
    }
19273
 
19274
    public updatePasswordForAgent_args deepCopy() {
19275
      return new updatePasswordForAgent_args(this);
19276
    }
19277
 
19278
    @Override
19279
    public void clear() {
19280
      this.agentEmailId = null;
19281
      this.password = null;
19282
    }
19283
 
19284
    public String getAgentEmailId() {
19285
      return this.agentEmailId;
19286
    }
19287
 
19288
    public void setAgentEmailId(String agentEmailId) {
19289
      this.agentEmailId = agentEmailId;
19290
    }
19291
 
19292
    public void unsetAgentEmailId() {
19293
      this.agentEmailId = null;
19294
    }
19295
 
19296
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
19297
    public boolean isSetAgentEmailId() {
19298
      return this.agentEmailId != null;
19299
    }
19300
 
19301
    public void setAgentEmailIdIsSet(boolean value) {
19302
      if (!value) {
19303
        this.agentEmailId = null;
19304
      }
19305
    }
19306
 
19307
    public String getPassword() {
19308
      return this.password;
19309
    }
19310
 
19311
    public void setPassword(String password) {
19312
      this.password = password;
19313
    }
19314
 
19315
    public void unsetPassword() {
19316
      this.password = null;
19317
    }
19318
 
19319
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
19320
    public boolean isSetPassword() {
19321
      return this.password != null;
19322
    }
19323
 
19324
    public void setPasswordIsSet(boolean value) {
19325
      if (!value) {
19326
        this.password = null;
19327
      }
19328
    }
19329
 
19330
    public void setFieldValue(_Fields field, Object value) {
19331
      switch (field) {
19332
      case AGENT_EMAIL_ID:
19333
        if (value == null) {
19334
          unsetAgentEmailId();
19335
        } else {
19336
          setAgentEmailId((String)value);
19337
        }
19338
        break;
19339
 
19340
      case PASSWORD:
19341
        if (value == null) {
19342
          unsetPassword();
19343
        } else {
19344
          setPassword((String)value);
19345
        }
19346
        break;
19347
 
19348
      }
19349
    }
19350
 
19351
    public Object getFieldValue(_Fields field) {
19352
      switch (field) {
19353
      case AGENT_EMAIL_ID:
19354
        return getAgentEmailId();
19355
 
19356
      case PASSWORD:
19357
        return getPassword();
19358
 
19359
      }
19360
      throw new IllegalStateException();
19361
    }
19362
 
19363
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19364
    public boolean isSet(_Fields field) {
19365
      if (field == null) {
19366
        throw new IllegalArgumentException();
19367
      }
19368
 
19369
      switch (field) {
19370
      case AGENT_EMAIL_ID:
19371
        return isSetAgentEmailId();
19372
      case PASSWORD:
19373
        return isSetPassword();
19374
      }
19375
      throw new IllegalStateException();
19376
    }
19377
 
19378
    @Override
19379
    public boolean equals(Object that) {
19380
      if (that == null)
19381
        return false;
19382
      if (that instanceof updatePasswordForAgent_args)
19383
        return this.equals((updatePasswordForAgent_args)that);
19384
      return false;
19385
    }
19386
 
19387
    public boolean equals(updatePasswordForAgent_args that) {
19388
      if (that == null)
19389
        return false;
19390
 
19391
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
19392
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
19393
      if (this_present_agentEmailId || that_present_agentEmailId) {
19394
        if (!(this_present_agentEmailId && that_present_agentEmailId))
19395
          return false;
19396
        if (!this.agentEmailId.equals(that.agentEmailId))
19397
          return false;
19398
      }
19399
 
19400
      boolean this_present_password = true && this.isSetPassword();
19401
      boolean that_present_password = true && that.isSetPassword();
19402
      if (this_present_password || that_present_password) {
19403
        if (!(this_present_password && that_present_password))
19404
          return false;
19405
        if (!this.password.equals(that.password))
19406
          return false;
19407
      }
19408
 
19409
      return true;
19410
    }
19411
 
19412
    @Override
19413
    public int hashCode() {
19414
      return 0;
19415
    }
19416
 
19417
    public int compareTo(updatePasswordForAgent_args other) {
19418
      if (!getClass().equals(other.getClass())) {
19419
        return getClass().getName().compareTo(other.getClass().getName());
19420
      }
19421
 
19422
      int lastComparison = 0;
19423
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
19424
 
19425
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
19426
      if (lastComparison != 0) {
19427
        return lastComparison;
19428
      }
19429
      if (isSetAgentEmailId()) {
19430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
19431
        if (lastComparison != 0) {
19432
          return lastComparison;
19433
        }
19434
      }
19435
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
19436
      if (lastComparison != 0) {
19437
        return lastComparison;
19438
      }
19439
      if (isSetPassword()) {
19440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
19441
        if (lastComparison != 0) {
19442
          return lastComparison;
19443
        }
19444
      }
19445
      return 0;
19446
    }
19447
 
19448
    public _Fields fieldForId(int fieldId) {
19449
      return _Fields.findByThriftId(fieldId);
19450
    }
19451
 
19452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19453
      org.apache.thrift.protocol.TField field;
19454
      iprot.readStructBegin();
19455
      while (true)
19456
      {
19457
        field = iprot.readFieldBegin();
19458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19459
          break;
19460
        }
19461
        switch (field.id) {
19462
          case 1: // AGENT_EMAIL_ID
19463
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19464
              this.agentEmailId = iprot.readString();
19465
            } else { 
19466
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19467
            }
19468
            break;
19469
          case 2: // PASSWORD
19470
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19471
              this.password = iprot.readString();
19472
            } else { 
19473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19474
            }
19475
            break;
19476
          default:
19477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19478
        }
19479
        iprot.readFieldEnd();
19480
      }
19481
      iprot.readStructEnd();
19482
      validate();
19483
    }
19484
 
19485
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19486
      validate();
19487
 
19488
      oprot.writeStructBegin(STRUCT_DESC);
19489
      if (this.agentEmailId != null) {
19490
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
19491
        oprot.writeString(this.agentEmailId);
19492
        oprot.writeFieldEnd();
19493
      }
19494
      if (this.password != null) {
19495
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
19496
        oprot.writeString(this.password);
19497
        oprot.writeFieldEnd();
19498
      }
19499
      oprot.writeFieldStop();
19500
      oprot.writeStructEnd();
19501
    }
19502
 
19503
    @Override
19504
    public String toString() {
19505
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
19506
      boolean first = true;
19507
 
19508
      sb.append("agentEmailId:");
19509
      if (this.agentEmailId == null) {
19510
        sb.append("null");
19511
      } else {
19512
        sb.append(this.agentEmailId);
19513
      }
19514
      first = false;
19515
      if (!first) sb.append(", ");
19516
      sb.append("password:");
19517
      if (this.password == null) {
19518
        sb.append("null");
19519
      } else {
19520
        sb.append(this.password);
19521
      }
19522
      first = false;
19523
      sb.append(")");
19524
      return sb.toString();
19525
    }
19526
 
19527
    public void validate() throws org.apache.thrift.TException {
19528
      // check for required fields
19529
    }
19530
 
19531
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19532
      try {
19533
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19534
      } catch (org.apache.thrift.TException te) {
19535
        throw new java.io.IOException(te);
19536
      }
19537
    }
19538
 
19539
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19540
      try {
19541
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19542
      } catch (org.apache.thrift.TException te) {
19543
        throw new java.io.IOException(te);
19544
      }
19545
    }
19546
 
19547
  }
19548
 
19549
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
19550
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
19551
 
19552
 
19553
 
19554
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19555
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19556
;
19557
 
19558
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19559
 
19560
      static {
19561
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19562
          byName.put(field.getFieldName(), field);
19563
        }
19564
      }
19565
 
19566
      /**
19567
       * Find the _Fields constant that matches fieldId, or null if its not found.
19568
       */
19569
      public static _Fields findByThriftId(int fieldId) {
19570
        switch(fieldId) {
19571
          default:
19572
            return null;
19573
        }
19574
      }
19575
 
19576
      /**
19577
       * Find the _Fields constant that matches fieldId, throwing an exception
19578
       * if it is not found.
19579
       */
19580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19581
        _Fields fields = findByThriftId(fieldId);
19582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19583
        return fields;
19584
      }
19585
 
19586
      /**
19587
       * Find the _Fields constant that matches name, or null if its not found.
19588
       */
19589
      public static _Fields findByName(String name) {
19590
        return byName.get(name);
19591
      }
19592
 
19593
      private final short _thriftId;
19594
      private final String _fieldName;
19595
 
19596
      _Fields(short thriftId, String fieldName) {
19597
        _thriftId = thriftId;
19598
        _fieldName = fieldName;
19599
      }
19600
 
19601
      public short getThriftFieldId() {
19602
        return _thriftId;
19603
      }
19604
 
19605
      public String getFieldName() {
19606
        return _fieldName;
19607
      }
19608
    }
19609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19610
    static {
19611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19612
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19613
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
19614
    }
19615
 
19616
    public updatePasswordForAgent_result() {
19617
    }
19618
 
19619
    /**
19620
     * Performs a deep copy on <i>other</i>.
19621
     */
19622
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
19623
    }
19624
 
19625
    public updatePasswordForAgent_result deepCopy() {
19626
      return new updatePasswordForAgent_result(this);
19627
    }
19628
 
19629
    @Override
19630
    public void clear() {
19631
    }
19632
 
19633
    public void setFieldValue(_Fields field, Object value) {
19634
      switch (field) {
19635
      }
19636
    }
19637
 
19638
    public Object getFieldValue(_Fields field) {
19639
      switch (field) {
19640
      }
19641
      throw new IllegalStateException();
19642
    }
19643
 
19644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19645
    public boolean isSet(_Fields field) {
19646
      if (field == null) {
19647
        throw new IllegalArgumentException();
19648
      }
19649
 
19650
      switch (field) {
19651
      }
19652
      throw new IllegalStateException();
19653
    }
19654
 
19655
    @Override
19656
    public boolean equals(Object that) {
19657
      if (that == null)
19658
        return false;
19659
      if (that instanceof updatePasswordForAgent_result)
19660
        return this.equals((updatePasswordForAgent_result)that);
19661
      return false;
19662
    }
19663
 
19664
    public boolean equals(updatePasswordForAgent_result that) {
19665
      if (that == null)
19666
        return false;
19667
 
19668
      return true;
19669
    }
19670
 
19671
    @Override
19672
    public int hashCode() {
19673
      return 0;
19674
    }
19675
 
19676
    public int compareTo(updatePasswordForAgent_result other) {
19677
      if (!getClass().equals(other.getClass())) {
19678
        return getClass().getName().compareTo(other.getClass().getName());
19679
      }
19680
 
19681
      int lastComparison = 0;
19682
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
19683
 
19684
      return 0;
19685
    }
19686
 
19687
    public _Fields fieldForId(int fieldId) {
19688
      return _Fields.findByThriftId(fieldId);
19689
    }
19690
 
19691
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19692
      org.apache.thrift.protocol.TField field;
19693
      iprot.readStructBegin();
19694
      while (true)
19695
      {
19696
        field = iprot.readFieldBegin();
19697
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19698
          break;
19699
        }
19700
        switch (field.id) {
19701
          default:
19702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19703
        }
19704
        iprot.readFieldEnd();
19705
      }
19706
      iprot.readStructEnd();
19707
      validate();
19708
    }
19709
 
19710
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19711
      oprot.writeStructBegin(STRUCT_DESC);
19712
 
19713
      oprot.writeFieldStop();
19714
      oprot.writeStructEnd();
19715
    }
19716
 
19717
    @Override
19718
    public String toString() {
19719
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
19720
      boolean first = true;
19721
 
19722
      sb.append(")");
19723
      return sb.toString();
19724
    }
19725
 
19726
    public void validate() throws org.apache.thrift.TException {
19727
      // check for required fields
19728
    }
19729
 
19730
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19731
      try {
19732
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19733
      } catch (org.apache.thrift.TException te) {
19734
        throw new java.io.IOException(te);
19735
      }
19736
    }
19737
 
19738
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19739
      try {
19740
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19741
      } catch (org.apache.thrift.TException te) {
19742
        throw new java.io.IOException(te);
19743
      }
19744
    }
19745
 
19746
  }
19747
 
19748
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
19749
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
19750
 
19751
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
19752
 
19753
    private String agentEmailId; // required
19754
 
19755
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19756
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19757
      AGENT_EMAIL_ID((short)1, "agentEmailId");
19758
 
19759
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19760
 
19761
      static {
19762
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19763
          byName.put(field.getFieldName(), field);
19764
        }
19765
      }
19766
 
19767
      /**
19768
       * Find the _Fields constant that matches fieldId, or null if its not found.
19769
       */
19770
      public static _Fields findByThriftId(int fieldId) {
19771
        switch(fieldId) {
19772
          case 1: // AGENT_EMAIL_ID
19773
            return AGENT_EMAIL_ID;
19774
          default:
19775
            return null;
19776
        }
19777
      }
19778
 
19779
      /**
19780
       * Find the _Fields constant that matches fieldId, throwing an exception
19781
       * if it is not found.
19782
       */
19783
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19784
        _Fields fields = findByThriftId(fieldId);
19785
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19786
        return fields;
19787
      }
19788
 
19789
      /**
19790
       * Find the _Fields constant that matches name, or null if its not found.
19791
       */
19792
      public static _Fields findByName(String name) {
19793
        return byName.get(name);
19794
      }
19795
 
19796
      private final short _thriftId;
19797
      private final String _fieldName;
19798
 
19799
      _Fields(short thriftId, String fieldName) {
19800
        _thriftId = thriftId;
19801
        _fieldName = fieldName;
19802
      }
19803
 
19804
      public short getThriftFieldId() {
19805
        return _thriftId;
19806
      }
19807
 
19808
      public String getFieldName() {
19809
        return _fieldName;
19810
      }
19811
    }
19812
 
19813
    // isset id assignments
19814
 
19815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19816
    static {
19817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19818
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
19822
    }
19823
 
19824
    public getRoleNamesForAgent_args() {
19825
    }
19826
 
19827
    public getRoleNamesForAgent_args(
19828
      String agentEmailId)
19829
    {
19830
      this();
19831
      this.agentEmailId = agentEmailId;
19832
    }
19833
 
19834
    /**
19835
     * Performs a deep copy on <i>other</i>.
19836
     */
19837
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
19838
      if (other.isSetAgentEmailId()) {
19839
        this.agentEmailId = other.agentEmailId;
19840
      }
19841
    }
19842
 
19843
    public getRoleNamesForAgent_args deepCopy() {
19844
      return new getRoleNamesForAgent_args(this);
19845
    }
19846
 
19847
    @Override
19848
    public void clear() {
19849
      this.agentEmailId = null;
19850
    }
19851
 
19852
    public String getAgentEmailId() {
19853
      return this.agentEmailId;
19854
    }
19855
 
19856
    public void setAgentEmailId(String agentEmailId) {
19857
      this.agentEmailId = agentEmailId;
19858
    }
19859
 
19860
    public void unsetAgentEmailId() {
19861
      this.agentEmailId = null;
19862
    }
19863
 
19864
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
19865
    public boolean isSetAgentEmailId() {
19866
      return this.agentEmailId != null;
19867
    }
19868
 
19869
    public void setAgentEmailIdIsSet(boolean value) {
19870
      if (!value) {
19871
        this.agentEmailId = null;
19872
      }
19873
    }
19874
 
19875
    public void setFieldValue(_Fields field, Object value) {
19876
      switch (field) {
19877
      case AGENT_EMAIL_ID:
19878
        if (value == null) {
19879
          unsetAgentEmailId();
19880
        } else {
19881
          setAgentEmailId((String)value);
19882
        }
19883
        break;
19884
 
19885
      }
19886
    }
19887
 
19888
    public Object getFieldValue(_Fields field) {
19889
      switch (field) {
19890
      case AGENT_EMAIL_ID:
19891
        return getAgentEmailId();
19892
 
19893
      }
19894
      throw new IllegalStateException();
19895
    }
19896
 
19897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19898
    public boolean isSet(_Fields field) {
19899
      if (field == null) {
19900
        throw new IllegalArgumentException();
19901
      }
19902
 
19903
      switch (field) {
19904
      case AGENT_EMAIL_ID:
19905
        return isSetAgentEmailId();
19906
      }
19907
      throw new IllegalStateException();
19908
    }
19909
 
19910
    @Override
19911
    public boolean equals(Object that) {
19912
      if (that == null)
19913
        return false;
19914
      if (that instanceof getRoleNamesForAgent_args)
19915
        return this.equals((getRoleNamesForAgent_args)that);
19916
      return false;
19917
    }
19918
 
19919
    public boolean equals(getRoleNamesForAgent_args that) {
19920
      if (that == null)
19921
        return false;
19922
 
19923
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
19924
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
19925
      if (this_present_agentEmailId || that_present_agentEmailId) {
19926
        if (!(this_present_agentEmailId && that_present_agentEmailId))
19927
          return false;
19928
        if (!this.agentEmailId.equals(that.agentEmailId))
19929
          return false;
19930
      }
19931
 
19932
      return true;
19933
    }
19934
 
19935
    @Override
19936
    public int hashCode() {
19937
      return 0;
19938
    }
19939
 
19940
    public int compareTo(getRoleNamesForAgent_args other) {
19941
      if (!getClass().equals(other.getClass())) {
19942
        return getClass().getName().compareTo(other.getClass().getName());
19943
      }
19944
 
19945
      int lastComparison = 0;
19946
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
19947
 
19948
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
19949
      if (lastComparison != 0) {
19950
        return lastComparison;
19951
      }
19952
      if (isSetAgentEmailId()) {
19953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
19954
        if (lastComparison != 0) {
19955
          return lastComparison;
19956
        }
19957
      }
19958
      return 0;
19959
    }
19960
 
19961
    public _Fields fieldForId(int fieldId) {
19962
      return _Fields.findByThriftId(fieldId);
19963
    }
19964
 
19965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19966
      org.apache.thrift.protocol.TField field;
19967
      iprot.readStructBegin();
19968
      while (true)
19969
      {
19970
        field = iprot.readFieldBegin();
19971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19972
          break;
19973
        }
19974
        switch (field.id) {
19975
          case 1: // AGENT_EMAIL_ID
19976
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19977
              this.agentEmailId = iprot.readString();
19978
            } else { 
19979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19980
            }
19981
            break;
19982
          default:
19983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19984
        }
19985
        iprot.readFieldEnd();
19986
      }
19987
      iprot.readStructEnd();
19988
      validate();
19989
    }
19990
 
19991
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19992
      validate();
19993
 
19994
      oprot.writeStructBegin(STRUCT_DESC);
19995
      if (this.agentEmailId != null) {
19996
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
19997
        oprot.writeString(this.agentEmailId);
19998
        oprot.writeFieldEnd();
19999
      }
20000
      oprot.writeFieldStop();
20001
      oprot.writeStructEnd();
20002
    }
20003
 
20004
    @Override
20005
    public String toString() {
20006
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
20007
      boolean first = true;
20008
 
20009
      sb.append("agentEmailId:");
20010
      if (this.agentEmailId == null) {
20011
        sb.append("null");
20012
      } else {
20013
        sb.append(this.agentEmailId);
20014
      }
20015
      first = false;
20016
      sb.append(")");
20017
      return sb.toString();
20018
    }
20019
 
20020
    public void validate() throws org.apache.thrift.TException {
20021
      // check for required fields
20022
    }
20023
 
20024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20025
      try {
20026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20027
      } catch (org.apache.thrift.TException te) {
20028
        throw new java.io.IOException(te);
20029
      }
20030
    }
20031
 
20032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20033
      try {
20034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20035
      } catch (org.apache.thrift.TException te) {
20036
        throw new java.io.IOException(te);
20037
      }
20038
    }
20039
 
20040
  }
20041
 
20042
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
20043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
20044
 
20045
    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);
20046
 
20047
    private List<String> success; // required
20048
 
20049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20051
      SUCCESS((short)0, "success");
20052
 
20053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20054
 
20055
      static {
20056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20057
          byName.put(field.getFieldName(), field);
20058
        }
20059
      }
20060
 
20061
      /**
20062
       * Find the _Fields constant that matches fieldId, or null if its not found.
20063
       */
20064
      public static _Fields findByThriftId(int fieldId) {
20065
        switch(fieldId) {
20066
          case 0: // SUCCESS
20067
            return SUCCESS;
20068
          default:
20069
            return null;
20070
        }
20071
      }
20072
 
20073
      /**
20074
       * Find the _Fields constant that matches fieldId, throwing an exception
20075
       * if it is not found.
20076
       */
20077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20078
        _Fields fields = findByThriftId(fieldId);
20079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20080
        return fields;
20081
      }
20082
 
20083
      /**
20084
       * Find the _Fields constant that matches name, or null if its not found.
20085
       */
20086
      public static _Fields findByName(String name) {
20087
        return byName.get(name);
20088
      }
20089
 
20090
      private final short _thriftId;
20091
      private final String _fieldName;
20092
 
20093
      _Fields(short thriftId, String fieldName) {
20094
        _thriftId = thriftId;
20095
        _fieldName = fieldName;
20096
      }
20097
 
20098
      public short getThriftFieldId() {
20099
        return _thriftId;
20100
      }
20101
 
20102
      public String getFieldName() {
20103
        return _fieldName;
20104
      }
20105
    }
20106
 
20107
    // isset id assignments
20108
 
20109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20110
    static {
20111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20112
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20113
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20114
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
20117
    }
20118
 
20119
    public getRoleNamesForAgent_result() {
20120
    }
20121
 
20122
    public getRoleNamesForAgent_result(
20123
      List<String> success)
20124
    {
20125
      this();
20126
      this.success = success;
20127
    }
20128
 
20129
    /**
20130
     * Performs a deep copy on <i>other</i>.
20131
     */
20132
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
20133
      if (other.isSetSuccess()) {
20134
        List<String> __this__success = new ArrayList<String>();
20135
        for (String other_element : other.success) {
20136
          __this__success.add(other_element);
20137
        }
20138
        this.success = __this__success;
20139
      }
20140
    }
20141
 
20142
    public getRoleNamesForAgent_result deepCopy() {
20143
      return new getRoleNamesForAgent_result(this);
20144
    }
20145
 
20146
    @Override
20147
    public void clear() {
20148
      this.success = null;
20149
    }
20150
 
20151
    public int getSuccessSize() {
20152
      return (this.success == null) ? 0 : this.success.size();
20153
    }
20154
 
20155
    public java.util.Iterator<String> getSuccessIterator() {
20156
      return (this.success == null) ? null : this.success.iterator();
20157
    }
20158
 
20159
    public void addToSuccess(String elem) {
20160
      if (this.success == null) {
20161
        this.success = new ArrayList<String>();
20162
      }
20163
      this.success.add(elem);
20164
    }
20165
 
20166
    public List<String> getSuccess() {
20167
      return this.success;
20168
    }
20169
 
20170
    public void setSuccess(List<String> success) {
20171
      this.success = success;
20172
    }
20173
 
20174
    public void unsetSuccess() {
20175
      this.success = null;
20176
    }
20177
 
20178
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20179
    public boolean isSetSuccess() {
20180
      return this.success != null;
20181
    }
20182
 
20183
    public void setSuccessIsSet(boolean value) {
20184
      if (!value) {
20185
        this.success = null;
20186
      }
20187
    }
20188
 
20189
    public void setFieldValue(_Fields field, Object value) {
20190
      switch (field) {
20191
      case SUCCESS:
20192
        if (value == null) {
20193
          unsetSuccess();
20194
        } else {
20195
          setSuccess((List<String>)value);
20196
        }
20197
        break;
20198
 
20199
      }
20200
    }
20201
 
20202
    public Object getFieldValue(_Fields field) {
20203
      switch (field) {
20204
      case SUCCESS:
20205
        return getSuccess();
20206
 
20207
      }
20208
      throw new IllegalStateException();
20209
    }
20210
 
20211
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20212
    public boolean isSet(_Fields field) {
20213
      if (field == null) {
20214
        throw new IllegalArgumentException();
20215
      }
20216
 
20217
      switch (field) {
20218
      case SUCCESS:
20219
        return isSetSuccess();
20220
      }
20221
      throw new IllegalStateException();
20222
    }
20223
 
20224
    @Override
20225
    public boolean equals(Object that) {
20226
      if (that == null)
20227
        return false;
20228
      if (that instanceof getRoleNamesForAgent_result)
20229
        return this.equals((getRoleNamesForAgent_result)that);
20230
      return false;
20231
    }
20232
 
20233
    public boolean equals(getRoleNamesForAgent_result that) {
20234
      if (that == null)
20235
        return false;
20236
 
20237
      boolean this_present_success = true && this.isSetSuccess();
20238
      boolean that_present_success = true && that.isSetSuccess();
20239
      if (this_present_success || that_present_success) {
20240
        if (!(this_present_success && that_present_success))
20241
          return false;
20242
        if (!this.success.equals(that.success))
20243
          return false;
20244
      }
20245
 
20246
      return true;
20247
    }
20248
 
20249
    @Override
20250
    public int hashCode() {
20251
      return 0;
20252
    }
20253
 
20254
    public int compareTo(getRoleNamesForAgent_result other) {
20255
      if (!getClass().equals(other.getClass())) {
20256
        return getClass().getName().compareTo(other.getClass().getName());
20257
      }
20258
 
20259
      int lastComparison = 0;
20260
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
20261
 
20262
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20263
      if (lastComparison != 0) {
20264
        return lastComparison;
20265
      }
20266
      if (isSetSuccess()) {
20267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20268
        if (lastComparison != 0) {
20269
          return lastComparison;
20270
        }
20271
      }
20272
      return 0;
20273
    }
20274
 
20275
    public _Fields fieldForId(int fieldId) {
20276
      return _Fields.findByThriftId(fieldId);
20277
    }
20278
 
20279
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20280
      org.apache.thrift.protocol.TField field;
20281
      iprot.readStructBegin();
20282
      while (true)
20283
      {
20284
        field = iprot.readFieldBegin();
20285
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20286
          break;
20287
        }
20288
        switch (field.id) {
20289
          case 0: // SUCCESS
20290
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20291
              {
5864 rajveer 20292
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
20293
                this.success = new ArrayList<String>(_list53.size);
20294
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 20295
                {
5864 rajveer 20296
                  String _elem55; // required
20297
                  _elem55 = iprot.readString();
20298
                  this.success.add(_elem55);
4693 mandeep.dh 20299
                }
20300
                iprot.readListEnd();
20301
              }
20302
            } else { 
20303
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20304
            }
20305
            break;
20306
          default:
20307
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20308
        }
20309
        iprot.readFieldEnd();
20310
      }
20311
      iprot.readStructEnd();
20312
      validate();
20313
    }
20314
 
20315
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20316
      oprot.writeStructBegin(STRUCT_DESC);
20317
 
20318
      if (this.isSetSuccess()) {
20319
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20320
        {
20321
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 20322
          for (String _iter56 : this.success)
4693 mandeep.dh 20323
          {
5864 rajveer 20324
            oprot.writeString(_iter56);
4693 mandeep.dh 20325
          }
20326
          oprot.writeListEnd();
20327
        }
20328
        oprot.writeFieldEnd();
20329
      }
20330
      oprot.writeFieldStop();
20331
      oprot.writeStructEnd();
20332
    }
20333
 
20334
    @Override
20335
    public String toString() {
20336
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
20337
      boolean first = true;
20338
 
20339
      sb.append("success:");
20340
      if (this.success == null) {
20341
        sb.append("null");
20342
      } else {
20343
        sb.append(this.success);
20344
      }
20345
      first = false;
20346
      sb.append(")");
20347
      return sb.toString();
20348
    }
20349
 
20350
    public void validate() throws org.apache.thrift.TException {
20351
      // check for required fields
20352
    }
20353
 
20354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20355
      try {
20356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20357
      } catch (org.apache.thrift.TException te) {
20358
        throw new java.io.IOException(te);
20359
      }
20360
    }
20361
 
20362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20363
      try {
20364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20365
      } catch (org.apache.thrift.TException te) {
20366
        throw new java.io.IOException(te);
20367
      }
20368
    }
20369
 
20370
  }
20371
 
20372
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
20373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
20374
 
20375
    private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
20376
 
20377
    private String roleName; // required
20378
 
20379
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20380
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20381
      ROLE_NAME((short)1, "roleName");
20382
 
20383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20384
 
20385
      static {
20386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20387
          byName.put(field.getFieldName(), field);
20388
        }
20389
      }
20390
 
20391
      /**
20392
       * Find the _Fields constant that matches fieldId, or null if its not found.
20393
       */
20394
      public static _Fields findByThriftId(int fieldId) {
20395
        switch(fieldId) {
20396
          case 1: // ROLE_NAME
20397
            return ROLE_NAME;
20398
          default:
20399
            return null;
20400
        }
20401
      }
20402
 
20403
      /**
20404
       * Find the _Fields constant that matches fieldId, throwing an exception
20405
       * if it is not found.
20406
       */
20407
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20408
        _Fields fields = findByThriftId(fieldId);
20409
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20410
        return fields;
20411
      }
20412
 
20413
      /**
20414
       * Find the _Fields constant that matches name, or null if its not found.
20415
       */
20416
      public static _Fields findByName(String name) {
20417
        return byName.get(name);
20418
      }
20419
 
20420
      private final short _thriftId;
20421
      private final String _fieldName;
20422
 
20423
      _Fields(short thriftId, String fieldName) {
20424
        _thriftId = thriftId;
20425
        _fieldName = fieldName;
20426
      }
20427
 
20428
      public short getThriftFieldId() {
20429
        return _thriftId;
20430
      }
20431
 
20432
      public String getFieldName() {
20433
        return _fieldName;
20434
      }
20435
    }
20436
 
20437
    // isset id assignments
20438
 
20439
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20440
    static {
20441
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20442
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20443
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20444
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20445
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
20446
    }
20447
 
20448
    public getPermissionsForRoleName_args() {
20449
    }
20450
 
20451
    public getPermissionsForRoleName_args(
20452
      String roleName)
20453
    {
20454
      this();
20455
      this.roleName = roleName;
20456
    }
20457
 
20458
    /**
20459
     * Performs a deep copy on <i>other</i>.
20460
     */
20461
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
20462
      if (other.isSetRoleName()) {
20463
        this.roleName = other.roleName;
20464
      }
20465
    }
20466
 
20467
    public getPermissionsForRoleName_args deepCopy() {
20468
      return new getPermissionsForRoleName_args(this);
20469
    }
20470
 
20471
    @Override
20472
    public void clear() {
20473
      this.roleName = null;
20474
    }
20475
 
20476
    public String getRoleName() {
20477
      return this.roleName;
20478
    }
20479
 
20480
    public void setRoleName(String roleName) {
20481
      this.roleName = roleName;
20482
    }
20483
 
20484
    public void unsetRoleName() {
20485
      this.roleName = null;
20486
    }
20487
 
20488
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
20489
    public boolean isSetRoleName() {
20490
      return this.roleName != null;
20491
    }
20492
 
20493
    public void setRoleNameIsSet(boolean value) {
20494
      if (!value) {
20495
        this.roleName = null;
20496
      }
20497
    }
20498
 
20499
    public void setFieldValue(_Fields field, Object value) {
20500
      switch (field) {
20501
      case ROLE_NAME:
20502
        if (value == null) {
20503
          unsetRoleName();
20504
        } else {
20505
          setRoleName((String)value);
20506
        }
20507
        break;
20508
 
20509
      }
20510
    }
20511
 
20512
    public Object getFieldValue(_Fields field) {
20513
      switch (field) {
20514
      case ROLE_NAME:
20515
        return getRoleName();
20516
 
20517
      }
20518
      throw new IllegalStateException();
20519
    }
20520
 
20521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20522
    public boolean isSet(_Fields field) {
20523
      if (field == null) {
20524
        throw new IllegalArgumentException();
20525
      }
20526
 
20527
      switch (field) {
20528
      case ROLE_NAME:
20529
        return isSetRoleName();
20530
      }
20531
      throw new IllegalStateException();
20532
    }
20533
 
20534
    @Override
20535
    public boolean equals(Object that) {
20536
      if (that == null)
20537
        return false;
20538
      if (that instanceof getPermissionsForRoleName_args)
20539
        return this.equals((getPermissionsForRoleName_args)that);
20540
      return false;
20541
    }
20542
 
20543
    public boolean equals(getPermissionsForRoleName_args that) {
20544
      if (that == null)
20545
        return false;
20546
 
20547
      boolean this_present_roleName = true && this.isSetRoleName();
20548
      boolean that_present_roleName = true && that.isSetRoleName();
20549
      if (this_present_roleName || that_present_roleName) {
20550
        if (!(this_present_roleName && that_present_roleName))
20551
          return false;
20552
        if (!this.roleName.equals(that.roleName))
20553
          return false;
20554
      }
20555
 
20556
      return true;
20557
    }
20558
 
20559
    @Override
20560
    public int hashCode() {
20561
      return 0;
20562
    }
20563
 
20564
    public int compareTo(getPermissionsForRoleName_args other) {
20565
      if (!getClass().equals(other.getClass())) {
20566
        return getClass().getName().compareTo(other.getClass().getName());
20567
      }
20568
 
20569
      int lastComparison = 0;
20570
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
20571
 
20572
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
20573
      if (lastComparison != 0) {
20574
        return lastComparison;
20575
      }
20576
      if (isSetRoleName()) {
20577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
20578
        if (lastComparison != 0) {
20579
          return lastComparison;
20580
        }
20581
      }
20582
      return 0;
20583
    }
20584
 
20585
    public _Fields fieldForId(int fieldId) {
20586
      return _Fields.findByThriftId(fieldId);
20587
    }
20588
 
20589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20590
      org.apache.thrift.protocol.TField field;
20591
      iprot.readStructBegin();
20592
      while (true)
20593
      {
20594
        field = iprot.readFieldBegin();
20595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20596
          break;
20597
        }
20598
        switch (field.id) {
20599
          case 1: // ROLE_NAME
20600
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20601
              this.roleName = iprot.readString();
20602
            } else { 
20603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20604
            }
20605
            break;
20606
          default:
20607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20608
        }
20609
        iprot.readFieldEnd();
20610
      }
20611
      iprot.readStructEnd();
20612
      validate();
20613
    }
20614
 
20615
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20616
      validate();
20617
 
20618
      oprot.writeStructBegin(STRUCT_DESC);
20619
      if (this.roleName != null) {
20620
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
20621
        oprot.writeString(this.roleName);
20622
        oprot.writeFieldEnd();
20623
      }
20624
      oprot.writeFieldStop();
20625
      oprot.writeStructEnd();
20626
    }
20627
 
20628
    @Override
20629
    public String toString() {
20630
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
20631
      boolean first = true;
20632
 
20633
      sb.append("roleName:");
20634
      if (this.roleName == null) {
20635
        sb.append("null");
20636
      } else {
20637
        sb.append(this.roleName);
20638
      }
20639
      first = false;
20640
      sb.append(")");
20641
      return sb.toString();
20642
    }
20643
 
20644
    public void validate() throws org.apache.thrift.TException {
20645
      // check for required fields
20646
    }
20647
 
20648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20649
      try {
20650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20651
      } catch (org.apache.thrift.TException te) {
20652
        throw new java.io.IOException(te);
20653
      }
20654
    }
20655
 
20656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20657
      try {
20658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20659
      } catch (org.apache.thrift.TException te) {
20660
        throw new java.io.IOException(te);
20661
      }
20662
    }
20663
 
20664
  }
20665
 
20666
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
20667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
20668
 
20669
    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);
20670
 
20671
    private List<String> success; // required
20672
 
20673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20675
      SUCCESS((short)0, "success");
20676
 
20677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20678
 
20679
      static {
20680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20681
          byName.put(field.getFieldName(), field);
20682
        }
20683
      }
20684
 
20685
      /**
20686
       * Find the _Fields constant that matches fieldId, or null if its not found.
20687
       */
20688
      public static _Fields findByThriftId(int fieldId) {
20689
        switch(fieldId) {
20690
          case 0: // SUCCESS
20691
            return SUCCESS;
20692
          default:
20693
            return null;
20694
        }
20695
      }
20696
 
20697
      /**
20698
       * Find the _Fields constant that matches fieldId, throwing an exception
20699
       * if it is not found.
20700
       */
20701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20702
        _Fields fields = findByThriftId(fieldId);
20703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20704
        return fields;
20705
      }
20706
 
20707
      /**
20708
       * Find the _Fields constant that matches name, or null if its not found.
20709
       */
20710
      public static _Fields findByName(String name) {
20711
        return byName.get(name);
20712
      }
20713
 
20714
      private final short _thriftId;
20715
      private final String _fieldName;
20716
 
20717
      _Fields(short thriftId, String fieldName) {
20718
        _thriftId = thriftId;
20719
        _fieldName = fieldName;
20720
      }
20721
 
20722
      public short getThriftFieldId() {
20723
        return _thriftId;
20724
      }
20725
 
20726
      public String getFieldName() {
20727
        return _fieldName;
20728
      }
20729
    }
20730
 
20731
    // isset id assignments
20732
 
20733
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20734
    static {
20735
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20736
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20737
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20738
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
20741
    }
20742
 
20743
    public getPermissionsForRoleName_result() {
20744
    }
20745
 
20746
    public getPermissionsForRoleName_result(
20747
      List<String> success)
20748
    {
20749
      this();
20750
      this.success = success;
20751
    }
20752
 
20753
    /**
20754
     * Performs a deep copy on <i>other</i>.
20755
     */
20756
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
20757
      if (other.isSetSuccess()) {
20758
        List<String> __this__success = new ArrayList<String>();
20759
        for (String other_element : other.success) {
20760
          __this__success.add(other_element);
20761
        }
20762
        this.success = __this__success;
20763
      }
20764
    }
20765
 
20766
    public getPermissionsForRoleName_result deepCopy() {
20767
      return new getPermissionsForRoleName_result(this);
20768
    }
20769
 
20770
    @Override
20771
    public void clear() {
20772
      this.success = null;
20773
    }
20774
 
20775
    public int getSuccessSize() {
20776
      return (this.success == null) ? 0 : this.success.size();
20777
    }
20778
 
20779
    public java.util.Iterator<String> getSuccessIterator() {
20780
      return (this.success == null) ? null : this.success.iterator();
20781
    }
20782
 
20783
    public void addToSuccess(String elem) {
20784
      if (this.success == null) {
20785
        this.success = new ArrayList<String>();
20786
      }
20787
      this.success.add(elem);
20788
    }
20789
 
20790
    public List<String> getSuccess() {
20791
      return this.success;
20792
    }
20793
 
20794
    public void setSuccess(List<String> success) {
20795
      this.success = success;
20796
    }
20797
 
20798
    public void unsetSuccess() {
20799
      this.success = null;
20800
    }
20801
 
20802
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20803
    public boolean isSetSuccess() {
20804
      return this.success != null;
20805
    }
20806
 
20807
    public void setSuccessIsSet(boolean value) {
20808
      if (!value) {
20809
        this.success = null;
20810
      }
20811
    }
20812
 
20813
    public void setFieldValue(_Fields field, Object value) {
20814
      switch (field) {
20815
      case SUCCESS:
20816
        if (value == null) {
20817
          unsetSuccess();
20818
        } else {
20819
          setSuccess((List<String>)value);
20820
        }
20821
        break;
20822
 
20823
      }
20824
    }
20825
 
20826
    public Object getFieldValue(_Fields field) {
20827
      switch (field) {
20828
      case SUCCESS:
20829
        return getSuccess();
20830
 
20831
      }
20832
      throw new IllegalStateException();
20833
    }
20834
 
20835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20836
    public boolean isSet(_Fields field) {
20837
      if (field == null) {
20838
        throw new IllegalArgumentException();
20839
      }
20840
 
20841
      switch (field) {
20842
      case SUCCESS:
20843
        return isSetSuccess();
20844
      }
20845
      throw new IllegalStateException();
20846
    }
20847
 
20848
    @Override
20849
    public boolean equals(Object that) {
20850
      if (that == null)
20851
        return false;
20852
      if (that instanceof getPermissionsForRoleName_result)
20853
        return this.equals((getPermissionsForRoleName_result)that);
20854
      return false;
20855
    }
20856
 
20857
    public boolean equals(getPermissionsForRoleName_result that) {
20858
      if (that == null)
20859
        return false;
20860
 
20861
      boolean this_present_success = true && this.isSetSuccess();
20862
      boolean that_present_success = true && that.isSetSuccess();
20863
      if (this_present_success || that_present_success) {
20864
        if (!(this_present_success && that_present_success))
20865
          return false;
20866
        if (!this.success.equals(that.success))
20867
          return false;
20868
      }
20869
 
20870
      return true;
20871
    }
20872
 
20873
    @Override
20874
    public int hashCode() {
20875
      return 0;
20876
    }
20877
 
20878
    public int compareTo(getPermissionsForRoleName_result other) {
20879
      if (!getClass().equals(other.getClass())) {
20880
        return getClass().getName().compareTo(other.getClass().getName());
20881
      }
20882
 
20883
      int lastComparison = 0;
20884
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
20885
 
20886
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20887
      if (lastComparison != 0) {
20888
        return lastComparison;
20889
      }
20890
      if (isSetSuccess()) {
20891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20892
        if (lastComparison != 0) {
20893
          return lastComparison;
20894
        }
20895
      }
20896
      return 0;
20897
    }
20898
 
20899
    public _Fields fieldForId(int fieldId) {
20900
      return _Fields.findByThriftId(fieldId);
20901
    }
20902
 
20903
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20904
      org.apache.thrift.protocol.TField field;
20905
      iprot.readStructBegin();
20906
      while (true)
20907
      {
20908
        field = iprot.readFieldBegin();
20909
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20910
          break;
20911
        }
20912
        switch (field.id) {
20913
          case 0: // SUCCESS
20914
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20915
              {
5864 rajveer 20916
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
20917
                this.success = new ArrayList<String>(_list57.size);
20918
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 20919
                {
5864 rajveer 20920
                  String _elem59; // required
20921
                  _elem59 = iprot.readString();
20922
                  this.success.add(_elem59);
4693 mandeep.dh 20923
                }
20924
                iprot.readListEnd();
20925
              }
20926
            } else { 
20927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20928
            }
20929
            break;
20930
          default:
20931
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20932
        }
20933
        iprot.readFieldEnd();
20934
      }
20935
      iprot.readStructEnd();
20936
      validate();
20937
    }
20938
 
20939
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20940
      oprot.writeStructBegin(STRUCT_DESC);
20941
 
20942
      if (this.isSetSuccess()) {
20943
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20944
        {
20945
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 20946
          for (String _iter60 : this.success)
4693 mandeep.dh 20947
          {
5864 rajveer 20948
            oprot.writeString(_iter60);
4693 mandeep.dh 20949
          }
20950
          oprot.writeListEnd();
20951
        }
20952
        oprot.writeFieldEnd();
20953
      }
20954
      oprot.writeFieldStop();
20955
      oprot.writeStructEnd();
20956
    }
20957
 
20958
    @Override
20959
    public String toString() {
20960
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
20961
      boolean first = true;
20962
 
20963
      sb.append("success:");
20964
      if (this.success == null) {
20965
        sb.append("null");
20966
      } else {
20967
        sb.append(this.success);
20968
      }
20969
      first = false;
20970
      sb.append(")");
20971
      return sb.toString();
20972
    }
20973
 
20974
    public void validate() throws org.apache.thrift.TException {
20975
      // check for required fields
20976
    }
20977
 
20978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20979
      try {
20980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20981
      } catch (org.apache.thrift.TException te) {
20982
        throw new java.io.IOException(te);
20983
      }
20984
    }
20985
 
20986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20987
      try {
20988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20989
      } catch (org.apache.thrift.TException te) {
20990
        throw new java.io.IOException(te);
20991
      }
20992
    }
20993
 
20994
  }
20995
 
4806 varun.gupt 20996
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
20997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
20998
 
20999
    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)1);
21000
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)2);
21001
 
21002
    private String url; // required
21003
    private String text; // required
21004
 
21005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21007
      URL((short)1, "url"),
21008
      TEXT((short)2, "text");
21009
 
21010
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21011
 
21012
      static {
21013
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21014
          byName.put(field.getFieldName(), field);
21015
        }
21016
      }
21017
 
21018
      /**
21019
       * Find the _Fields constant that matches fieldId, or null if its not found.
21020
       */
21021
      public static _Fields findByThriftId(int fieldId) {
21022
        switch(fieldId) {
21023
          case 1: // URL
21024
            return URL;
21025
          case 2: // TEXT
21026
            return TEXT;
21027
          default:
21028
            return null;
21029
        }
21030
      }
21031
 
21032
      /**
21033
       * Find the _Fields constant that matches fieldId, throwing an exception
21034
       * if it is not found.
21035
       */
21036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21037
        _Fields fields = findByThriftId(fieldId);
21038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21039
        return fields;
21040
      }
21041
 
21042
      /**
21043
       * Find the _Fields constant that matches name, or null if its not found.
21044
       */
21045
      public static _Fields findByName(String name) {
21046
        return byName.get(name);
21047
      }
21048
 
21049
      private final short _thriftId;
21050
      private final String _fieldName;
21051
 
21052
      _Fields(short thriftId, String fieldName) {
21053
        _thriftId = thriftId;
21054
        _fieldName = fieldName;
21055
      }
21056
 
21057
      public short getThriftFieldId() {
21058
        return _thriftId;
21059
      }
21060
 
21061
      public String getFieldName() {
21062
        return _fieldName;
21063
      }
21064
    }
21065
 
21066
    // isset id assignments
21067
 
21068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21069
    static {
21070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21071
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21073
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
21077
    }
21078
 
21079
    public saveQuickLink_args() {
21080
    }
21081
 
21082
    public saveQuickLink_args(
21083
      String url,
21084
      String text)
21085
    {
21086
      this();
21087
      this.url = url;
21088
      this.text = text;
21089
    }
21090
 
21091
    /**
21092
     * Performs a deep copy on <i>other</i>.
21093
     */
21094
    public saveQuickLink_args(saveQuickLink_args other) {
21095
      if (other.isSetUrl()) {
21096
        this.url = other.url;
21097
      }
21098
      if (other.isSetText()) {
21099
        this.text = other.text;
21100
      }
21101
    }
21102
 
21103
    public saveQuickLink_args deepCopy() {
21104
      return new saveQuickLink_args(this);
21105
    }
21106
 
21107
    @Override
21108
    public void clear() {
21109
      this.url = null;
21110
      this.text = null;
21111
    }
21112
 
21113
    public String getUrl() {
21114
      return this.url;
21115
    }
21116
 
21117
    public void setUrl(String url) {
21118
      this.url = url;
21119
    }
21120
 
21121
    public void unsetUrl() {
21122
      this.url = null;
21123
    }
21124
 
21125
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21126
    public boolean isSetUrl() {
21127
      return this.url != null;
21128
    }
21129
 
21130
    public void setUrlIsSet(boolean value) {
21131
      if (!value) {
21132
        this.url = null;
21133
      }
21134
    }
21135
 
21136
    public String getText() {
21137
      return this.text;
21138
    }
21139
 
21140
    public void setText(String text) {
21141
      this.text = text;
21142
    }
21143
 
21144
    public void unsetText() {
21145
      this.text = null;
21146
    }
21147
 
21148
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21149
    public boolean isSetText() {
21150
      return this.text != null;
21151
    }
21152
 
21153
    public void setTextIsSet(boolean value) {
21154
      if (!value) {
21155
        this.text = null;
21156
      }
21157
    }
21158
 
21159
    public void setFieldValue(_Fields field, Object value) {
21160
      switch (field) {
21161
      case URL:
21162
        if (value == null) {
21163
          unsetUrl();
21164
        } else {
21165
          setUrl((String)value);
21166
        }
21167
        break;
21168
 
21169
      case TEXT:
21170
        if (value == null) {
21171
          unsetText();
21172
        } else {
21173
          setText((String)value);
21174
        }
21175
        break;
21176
 
21177
      }
21178
    }
21179
 
21180
    public Object getFieldValue(_Fields field) {
21181
      switch (field) {
21182
      case URL:
21183
        return getUrl();
21184
 
21185
      case TEXT:
21186
        return getText();
21187
 
21188
      }
21189
      throw new IllegalStateException();
21190
    }
21191
 
21192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21193
    public boolean isSet(_Fields field) {
21194
      if (field == null) {
21195
        throw new IllegalArgumentException();
21196
      }
21197
 
21198
      switch (field) {
21199
      case URL:
21200
        return isSetUrl();
21201
      case TEXT:
21202
        return isSetText();
21203
      }
21204
      throw new IllegalStateException();
21205
    }
21206
 
21207
    @Override
21208
    public boolean equals(Object that) {
21209
      if (that == null)
21210
        return false;
21211
      if (that instanceof saveQuickLink_args)
21212
        return this.equals((saveQuickLink_args)that);
21213
      return false;
21214
    }
21215
 
21216
    public boolean equals(saveQuickLink_args that) {
21217
      if (that == null)
21218
        return false;
21219
 
21220
      boolean this_present_url = true && this.isSetUrl();
21221
      boolean that_present_url = true && that.isSetUrl();
21222
      if (this_present_url || that_present_url) {
21223
        if (!(this_present_url && that_present_url))
21224
          return false;
21225
        if (!this.url.equals(that.url))
21226
          return false;
21227
      }
21228
 
21229
      boolean this_present_text = true && this.isSetText();
21230
      boolean that_present_text = true && that.isSetText();
21231
      if (this_present_text || that_present_text) {
21232
        if (!(this_present_text && that_present_text))
21233
          return false;
21234
        if (!this.text.equals(that.text))
21235
          return false;
21236
      }
21237
 
21238
      return true;
21239
    }
21240
 
21241
    @Override
21242
    public int hashCode() {
21243
      return 0;
21244
    }
21245
 
21246
    public int compareTo(saveQuickLink_args other) {
21247
      if (!getClass().equals(other.getClass())) {
21248
        return getClass().getName().compareTo(other.getClass().getName());
21249
      }
21250
 
21251
      int lastComparison = 0;
21252
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
21253
 
21254
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21255
      if (lastComparison != 0) {
21256
        return lastComparison;
21257
      }
21258
      if (isSetUrl()) {
21259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21260
        if (lastComparison != 0) {
21261
          return lastComparison;
21262
        }
21263
      }
21264
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21265
      if (lastComparison != 0) {
21266
        return lastComparison;
21267
      }
21268
      if (isSetText()) {
21269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21270
        if (lastComparison != 0) {
21271
          return lastComparison;
21272
        }
21273
      }
21274
      return 0;
21275
    }
21276
 
21277
    public _Fields fieldForId(int fieldId) {
21278
      return _Fields.findByThriftId(fieldId);
21279
    }
21280
 
21281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21282
      org.apache.thrift.protocol.TField field;
21283
      iprot.readStructBegin();
21284
      while (true)
21285
      {
21286
        field = iprot.readFieldBegin();
21287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21288
          break;
21289
        }
21290
        switch (field.id) {
21291
          case 1: // URL
21292
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21293
              this.url = iprot.readString();
21294
            } else { 
21295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21296
            }
21297
            break;
21298
          case 2: // TEXT
21299
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21300
              this.text = iprot.readString();
21301
            } else { 
21302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21303
            }
21304
            break;
21305
          default:
21306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21307
        }
21308
        iprot.readFieldEnd();
21309
      }
21310
      iprot.readStructEnd();
21311
      validate();
21312
    }
21313
 
21314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21315
      validate();
21316
 
21317
      oprot.writeStructBegin(STRUCT_DESC);
21318
      if (this.url != null) {
21319
        oprot.writeFieldBegin(URL_FIELD_DESC);
21320
        oprot.writeString(this.url);
21321
        oprot.writeFieldEnd();
21322
      }
21323
      if (this.text != null) {
21324
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21325
        oprot.writeString(this.text);
21326
        oprot.writeFieldEnd();
21327
      }
21328
      oprot.writeFieldStop();
21329
      oprot.writeStructEnd();
21330
    }
21331
 
21332
    @Override
21333
    public String toString() {
21334
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
21335
      boolean first = true;
21336
 
21337
      sb.append("url:");
21338
      if (this.url == null) {
21339
        sb.append("null");
21340
      } else {
21341
        sb.append(this.url);
21342
      }
21343
      first = false;
21344
      if (!first) sb.append(", ");
21345
      sb.append("text:");
21346
      if (this.text == null) {
21347
        sb.append("null");
21348
      } else {
21349
        sb.append(this.text);
21350
      }
21351
      first = false;
21352
      sb.append(")");
21353
      return sb.toString();
21354
    }
21355
 
21356
    public void validate() throws org.apache.thrift.TException {
21357
      // check for required fields
21358
    }
21359
 
21360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21361
      try {
21362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21363
      } catch (org.apache.thrift.TException te) {
21364
        throw new java.io.IOException(te);
21365
      }
21366
    }
21367
 
21368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21369
      try {
21370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21371
      } catch (org.apache.thrift.TException te) {
21372
        throw new java.io.IOException(te);
21373
      }
21374
    }
21375
 
21376
  }
21377
 
21378
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
21380
 
21381
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
21382
 
21383
    private HelperServiceException hse; // required
21384
 
21385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21387
      HSE((short)1, "hse");
21388
 
21389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21390
 
21391
      static {
21392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21393
          byName.put(field.getFieldName(), field);
21394
        }
21395
      }
21396
 
21397
      /**
21398
       * Find the _Fields constant that matches fieldId, or null if its not found.
21399
       */
21400
      public static _Fields findByThriftId(int fieldId) {
21401
        switch(fieldId) {
21402
          case 1: // HSE
21403
            return HSE;
21404
          default:
21405
            return null;
21406
        }
21407
      }
21408
 
21409
      /**
21410
       * Find the _Fields constant that matches fieldId, throwing an exception
21411
       * if it is not found.
21412
       */
21413
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21414
        _Fields fields = findByThriftId(fieldId);
21415
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21416
        return fields;
21417
      }
21418
 
21419
      /**
21420
       * Find the _Fields constant that matches name, or null if its not found.
21421
       */
21422
      public static _Fields findByName(String name) {
21423
        return byName.get(name);
21424
      }
21425
 
21426
      private final short _thriftId;
21427
      private final String _fieldName;
21428
 
21429
      _Fields(short thriftId, String fieldName) {
21430
        _thriftId = thriftId;
21431
        _fieldName = fieldName;
21432
      }
21433
 
21434
      public short getThriftFieldId() {
21435
        return _thriftId;
21436
      }
21437
 
21438
      public String getFieldName() {
21439
        return _fieldName;
21440
      }
21441
    }
21442
 
21443
    // isset id assignments
21444
 
21445
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21446
    static {
21447
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21448
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21449
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21450
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21451
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
21452
    }
21453
 
21454
    public saveQuickLink_result() {
21455
    }
21456
 
21457
    public saveQuickLink_result(
21458
      HelperServiceException hse)
21459
    {
21460
      this();
21461
      this.hse = hse;
21462
    }
21463
 
21464
    /**
21465
     * Performs a deep copy on <i>other</i>.
21466
     */
21467
    public saveQuickLink_result(saveQuickLink_result other) {
21468
      if (other.isSetHse()) {
21469
        this.hse = new HelperServiceException(other.hse);
21470
      }
21471
    }
21472
 
21473
    public saveQuickLink_result deepCopy() {
21474
      return new saveQuickLink_result(this);
21475
    }
21476
 
21477
    @Override
21478
    public void clear() {
21479
      this.hse = null;
21480
    }
21481
 
21482
    public HelperServiceException getHse() {
21483
      return this.hse;
21484
    }
21485
 
21486
    public void setHse(HelperServiceException hse) {
21487
      this.hse = hse;
21488
    }
21489
 
21490
    public void unsetHse() {
21491
      this.hse = null;
21492
    }
21493
 
21494
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21495
    public boolean isSetHse() {
21496
      return this.hse != null;
21497
    }
21498
 
21499
    public void setHseIsSet(boolean value) {
21500
      if (!value) {
21501
        this.hse = null;
21502
      }
21503
    }
21504
 
21505
    public void setFieldValue(_Fields field, Object value) {
21506
      switch (field) {
21507
      case HSE:
21508
        if (value == null) {
21509
          unsetHse();
21510
        } else {
21511
          setHse((HelperServiceException)value);
21512
        }
21513
        break;
21514
 
21515
      }
21516
    }
21517
 
21518
    public Object getFieldValue(_Fields field) {
21519
      switch (field) {
21520
      case HSE:
21521
        return getHse();
21522
 
21523
      }
21524
      throw new IllegalStateException();
21525
    }
21526
 
21527
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21528
    public boolean isSet(_Fields field) {
21529
      if (field == null) {
21530
        throw new IllegalArgumentException();
21531
      }
21532
 
21533
      switch (field) {
21534
      case HSE:
21535
        return isSetHse();
21536
      }
21537
      throw new IllegalStateException();
21538
    }
21539
 
21540
    @Override
21541
    public boolean equals(Object that) {
21542
      if (that == null)
21543
        return false;
21544
      if (that instanceof saveQuickLink_result)
21545
        return this.equals((saveQuickLink_result)that);
21546
      return false;
21547
    }
21548
 
21549
    public boolean equals(saveQuickLink_result that) {
21550
      if (that == null)
21551
        return false;
21552
 
21553
      boolean this_present_hse = true && this.isSetHse();
21554
      boolean that_present_hse = true && that.isSetHse();
21555
      if (this_present_hse || that_present_hse) {
21556
        if (!(this_present_hse && that_present_hse))
21557
          return false;
21558
        if (!this.hse.equals(that.hse))
21559
          return false;
21560
      }
21561
 
21562
      return true;
21563
    }
21564
 
21565
    @Override
21566
    public int hashCode() {
21567
      return 0;
21568
    }
21569
 
21570
    public int compareTo(saveQuickLink_result other) {
21571
      if (!getClass().equals(other.getClass())) {
21572
        return getClass().getName().compareTo(other.getClass().getName());
21573
      }
21574
 
21575
      int lastComparison = 0;
21576
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
21577
 
21578
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21579
      if (lastComparison != 0) {
21580
        return lastComparison;
21581
      }
21582
      if (isSetHse()) {
21583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21584
        if (lastComparison != 0) {
21585
          return lastComparison;
21586
        }
21587
      }
21588
      return 0;
21589
    }
21590
 
21591
    public _Fields fieldForId(int fieldId) {
21592
      return _Fields.findByThriftId(fieldId);
21593
    }
21594
 
21595
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21596
      org.apache.thrift.protocol.TField field;
21597
      iprot.readStructBegin();
21598
      while (true)
21599
      {
21600
        field = iprot.readFieldBegin();
21601
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21602
          break;
21603
        }
21604
        switch (field.id) {
21605
          case 1: // HSE
21606
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21607
              this.hse = new HelperServiceException();
21608
              this.hse.read(iprot);
21609
            } else { 
21610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21611
            }
21612
            break;
21613
          default:
21614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21615
        }
21616
        iprot.readFieldEnd();
21617
      }
21618
      iprot.readStructEnd();
21619
      validate();
21620
    }
21621
 
21622
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21623
      oprot.writeStructBegin(STRUCT_DESC);
21624
 
21625
      if (this.isSetHse()) {
21626
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21627
        this.hse.write(oprot);
21628
        oprot.writeFieldEnd();
21629
      }
21630
      oprot.writeFieldStop();
21631
      oprot.writeStructEnd();
21632
    }
21633
 
21634
    @Override
21635
    public String toString() {
21636
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
21637
      boolean first = true;
21638
 
21639
      sb.append("hse:");
21640
      if (this.hse == null) {
21641
        sb.append("null");
21642
      } else {
21643
        sb.append(this.hse);
21644
      }
21645
      first = false;
21646
      sb.append(")");
21647
      return sb.toString();
21648
    }
21649
 
21650
    public void validate() throws org.apache.thrift.TException {
21651
      // check for required fields
21652
    }
21653
 
21654
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21655
      try {
21656
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21657
      } catch (org.apache.thrift.TException te) {
21658
        throw new java.io.IOException(te);
21659
      }
21660
    }
21661
 
21662
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21663
      try {
21664
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21665
      } catch (org.apache.thrift.TException te) {
21666
        throw new java.io.IOException(te);
21667
      }
21668
    }
21669
 
21670
  }
21671
 
21672
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
21673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
21674
 
21675
 
21676
 
21677
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21678
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21679
;
21680
 
21681
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21682
 
21683
      static {
21684
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21685
          byName.put(field.getFieldName(), field);
21686
        }
21687
      }
21688
 
21689
      /**
21690
       * Find the _Fields constant that matches fieldId, or null if its not found.
21691
       */
21692
      public static _Fields findByThriftId(int fieldId) {
21693
        switch(fieldId) {
21694
          default:
21695
            return null;
21696
        }
21697
      }
21698
 
21699
      /**
21700
       * Find the _Fields constant that matches fieldId, throwing an exception
21701
       * if it is not found.
21702
       */
21703
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21704
        _Fields fields = findByThriftId(fieldId);
21705
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21706
        return fields;
21707
      }
21708
 
21709
      /**
21710
       * Find the _Fields constant that matches name, or null if its not found.
21711
       */
21712
      public static _Fields findByName(String name) {
21713
        return byName.get(name);
21714
      }
21715
 
21716
      private final short _thriftId;
21717
      private final String _fieldName;
21718
 
21719
      _Fields(short thriftId, String fieldName) {
21720
        _thriftId = thriftId;
21721
        _fieldName = fieldName;
21722
      }
21723
 
21724
      public short getThriftFieldId() {
21725
        return _thriftId;
21726
      }
21727
 
21728
      public String getFieldName() {
21729
        return _fieldName;
21730
      }
21731
    }
21732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21733
    static {
21734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21735
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21736
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
21737
    }
21738
 
21739
    public getQuickLinks_args() {
21740
    }
21741
 
21742
    /**
21743
     * Performs a deep copy on <i>other</i>.
21744
     */
21745
    public getQuickLinks_args(getQuickLinks_args other) {
21746
    }
21747
 
21748
    public getQuickLinks_args deepCopy() {
21749
      return new getQuickLinks_args(this);
21750
    }
21751
 
21752
    @Override
21753
    public void clear() {
21754
    }
21755
 
21756
    public void setFieldValue(_Fields field, Object value) {
21757
      switch (field) {
21758
      }
21759
    }
21760
 
21761
    public Object getFieldValue(_Fields field) {
21762
      switch (field) {
21763
      }
21764
      throw new IllegalStateException();
21765
    }
21766
 
21767
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21768
    public boolean isSet(_Fields field) {
21769
      if (field == null) {
21770
        throw new IllegalArgumentException();
21771
      }
21772
 
21773
      switch (field) {
21774
      }
21775
      throw new IllegalStateException();
21776
    }
21777
 
21778
    @Override
21779
    public boolean equals(Object that) {
21780
      if (that == null)
21781
        return false;
21782
      if (that instanceof getQuickLinks_args)
21783
        return this.equals((getQuickLinks_args)that);
21784
      return false;
21785
    }
21786
 
21787
    public boolean equals(getQuickLinks_args that) {
21788
      if (that == null)
21789
        return false;
21790
 
21791
      return true;
21792
    }
21793
 
21794
    @Override
21795
    public int hashCode() {
21796
      return 0;
21797
    }
21798
 
21799
    public int compareTo(getQuickLinks_args other) {
21800
      if (!getClass().equals(other.getClass())) {
21801
        return getClass().getName().compareTo(other.getClass().getName());
21802
      }
21803
 
21804
      int lastComparison = 0;
21805
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
21806
 
21807
      return 0;
21808
    }
21809
 
21810
    public _Fields fieldForId(int fieldId) {
21811
      return _Fields.findByThriftId(fieldId);
21812
    }
21813
 
21814
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21815
      org.apache.thrift.protocol.TField field;
21816
      iprot.readStructBegin();
21817
      while (true)
21818
      {
21819
        field = iprot.readFieldBegin();
21820
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21821
          break;
21822
        }
21823
        switch (field.id) {
21824
          default:
21825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21826
        }
21827
        iprot.readFieldEnd();
21828
      }
21829
      iprot.readStructEnd();
21830
      validate();
21831
    }
21832
 
21833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21834
      validate();
21835
 
21836
      oprot.writeStructBegin(STRUCT_DESC);
21837
      oprot.writeFieldStop();
21838
      oprot.writeStructEnd();
21839
    }
21840
 
21841
    @Override
21842
    public String toString() {
21843
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
21844
      boolean first = true;
21845
 
21846
      sb.append(")");
21847
      return sb.toString();
21848
    }
21849
 
21850
    public void validate() throws org.apache.thrift.TException {
21851
      // check for required fields
21852
    }
21853
 
21854
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21855
      try {
21856
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21857
      } catch (org.apache.thrift.TException te) {
21858
        throw new java.io.IOException(te);
21859
      }
21860
    }
21861
 
21862
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21863
      try {
21864
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21865
      } catch (org.apache.thrift.TException te) {
21866
        throw new java.io.IOException(te);
21867
      }
21868
    }
21869
 
21870
  }
21871
 
21872
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
21873
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
21874
 
21875
    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);
21876
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
21877
 
21878
    private List<QuickLink> success; // required
21879
    private HelperServiceException hse; // required
21880
 
21881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21883
      SUCCESS((short)0, "success"),
21884
      HSE((short)1, "hse");
21885
 
21886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21887
 
21888
      static {
21889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21890
          byName.put(field.getFieldName(), field);
21891
        }
21892
      }
21893
 
21894
      /**
21895
       * Find the _Fields constant that matches fieldId, or null if its not found.
21896
       */
21897
      public static _Fields findByThriftId(int fieldId) {
21898
        switch(fieldId) {
21899
          case 0: // SUCCESS
21900
            return SUCCESS;
21901
          case 1: // HSE
21902
            return HSE;
21903
          default:
21904
            return null;
21905
        }
21906
      }
21907
 
21908
      /**
21909
       * Find the _Fields constant that matches fieldId, throwing an exception
21910
       * if it is not found.
21911
       */
21912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21913
        _Fields fields = findByThriftId(fieldId);
21914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21915
        return fields;
21916
      }
21917
 
21918
      /**
21919
       * Find the _Fields constant that matches name, or null if its not found.
21920
       */
21921
      public static _Fields findByName(String name) {
21922
        return byName.get(name);
21923
      }
21924
 
21925
      private final short _thriftId;
21926
      private final String _fieldName;
21927
 
21928
      _Fields(short thriftId, String fieldName) {
21929
        _thriftId = thriftId;
21930
        _fieldName = fieldName;
21931
      }
21932
 
21933
      public short getThriftFieldId() {
21934
        return _thriftId;
21935
      }
21936
 
21937
      public String getFieldName() {
21938
        return _fieldName;
21939
      }
21940
    }
21941
 
21942
    // isset id assignments
21943
 
21944
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21945
    static {
21946
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21947
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21948
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21949
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
21950
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21952
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21953
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
21954
    }
21955
 
21956
    public getQuickLinks_result() {
21957
    }
21958
 
21959
    public getQuickLinks_result(
21960
      List<QuickLink> success,
21961
      HelperServiceException hse)
21962
    {
21963
      this();
21964
      this.success = success;
21965
      this.hse = hse;
21966
    }
21967
 
21968
    /**
21969
     * Performs a deep copy on <i>other</i>.
21970
     */
21971
    public getQuickLinks_result(getQuickLinks_result other) {
21972
      if (other.isSetSuccess()) {
21973
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
21974
        for (QuickLink other_element : other.success) {
21975
          __this__success.add(new QuickLink(other_element));
21976
        }
21977
        this.success = __this__success;
21978
      }
21979
      if (other.isSetHse()) {
21980
        this.hse = new HelperServiceException(other.hse);
21981
      }
21982
    }
21983
 
21984
    public getQuickLinks_result deepCopy() {
21985
      return new getQuickLinks_result(this);
21986
    }
21987
 
21988
    @Override
21989
    public void clear() {
21990
      this.success = null;
21991
      this.hse = null;
21992
    }
21993
 
21994
    public int getSuccessSize() {
21995
      return (this.success == null) ? 0 : this.success.size();
21996
    }
21997
 
21998
    public java.util.Iterator<QuickLink> getSuccessIterator() {
21999
      return (this.success == null) ? null : this.success.iterator();
22000
    }
22001
 
22002
    public void addToSuccess(QuickLink elem) {
22003
      if (this.success == null) {
22004
        this.success = new ArrayList<QuickLink>();
22005
      }
22006
      this.success.add(elem);
22007
    }
22008
 
22009
    public List<QuickLink> getSuccess() {
22010
      return this.success;
22011
    }
22012
 
22013
    public void setSuccess(List<QuickLink> success) {
22014
      this.success = success;
22015
    }
22016
 
22017
    public void unsetSuccess() {
22018
      this.success = null;
22019
    }
22020
 
22021
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22022
    public boolean isSetSuccess() {
22023
      return this.success != null;
22024
    }
22025
 
22026
    public void setSuccessIsSet(boolean value) {
22027
      if (!value) {
22028
        this.success = null;
22029
      }
22030
    }
22031
 
22032
    public HelperServiceException getHse() {
22033
      return this.hse;
22034
    }
22035
 
22036
    public void setHse(HelperServiceException hse) {
22037
      this.hse = hse;
22038
    }
22039
 
22040
    public void unsetHse() {
22041
      this.hse = null;
22042
    }
22043
 
22044
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22045
    public boolean isSetHse() {
22046
      return this.hse != null;
22047
    }
22048
 
22049
    public void setHseIsSet(boolean value) {
22050
      if (!value) {
22051
        this.hse = null;
22052
      }
22053
    }
22054
 
22055
    public void setFieldValue(_Fields field, Object value) {
22056
      switch (field) {
22057
      case SUCCESS:
22058
        if (value == null) {
22059
          unsetSuccess();
22060
        } else {
22061
          setSuccess((List<QuickLink>)value);
22062
        }
22063
        break;
22064
 
22065
      case HSE:
22066
        if (value == null) {
22067
          unsetHse();
22068
        } else {
22069
          setHse((HelperServiceException)value);
22070
        }
22071
        break;
22072
 
22073
      }
22074
    }
22075
 
22076
    public Object getFieldValue(_Fields field) {
22077
      switch (field) {
22078
      case SUCCESS:
22079
        return getSuccess();
22080
 
22081
      case HSE:
22082
        return getHse();
22083
 
22084
      }
22085
      throw new IllegalStateException();
22086
    }
22087
 
22088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22089
    public boolean isSet(_Fields field) {
22090
      if (field == null) {
22091
        throw new IllegalArgumentException();
22092
      }
22093
 
22094
      switch (field) {
22095
      case SUCCESS:
22096
        return isSetSuccess();
22097
      case HSE:
22098
        return isSetHse();
22099
      }
22100
      throw new IllegalStateException();
22101
    }
22102
 
22103
    @Override
22104
    public boolean equals(Object that) {
22105
      if (that == null)
22106
        return false;
22107
      if (that instanceof getQuickLinks_result)
22108
        return this.equals((getQuickLinks_result)that);
22109
      return false;
22110
    }
22111
 
22112
    public boolean equals(getQuickLinks_result that) {
22113
      if (that == null)
22114
        return false;
22115
 
22116
      boolean this_present_success = true && this.isSetSuccess();
22117
      boolean that_present_success = true && that.isSetSuccess();
22118
      if (this_present_success || that_present_success) {
22119
        if (!(this_present_success && that_present_success))
22120
          return false;
22121
        if (!this.success.equals(that.success))
22122
          return false;
22123
      }
22124
 
22125
      boolean this_present_hse = true && this.isSetHse();
22126
      boolean that_present_hse = true && that.isSetHse();
22127
      if (this_present_hse || that_present_hse) {
22128
        if (!(this_present_hse && that_present_hse))
22129
          return false;
22130
        if (!this.hse.equals(that.hse))
22131
          return false;
22132
      }
22133
 
22134
      return true;
22135
    }
22136
 
22137
    @Override
22138
    public int hashCode() {
22139
      return 0;
22140
    }
22141
 
22142
    public int compareTo(getQuickLinks_result other) {
22143
      if (!getClass().equals(other.getClass())) {
22144
        return getClass().getName().compareTo(other.getClass().getName());
22145
      }
22146
 
22147
      int lastComparison = 0;
22148
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
22149
 
22150
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22151
      if (lastComparison != 0) {
22152
        return lastComparison;
22153
      }
22154
      if (isSetSuccess()) {
22155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22156
        if (lastComparison != 0) {
22157
          return lastComparison;
22158
        }
22159
      }
22160
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22161
      if (lastComparison != 0) {
22162
        return lastComparison;
22163
      }
22164
      if (isSetHse()) {
22165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22166
        if (lastComparison != 0) {
22167
          return lastComparison;
22168
        }
22169
      }
22170
      return 0;
22171
    }
22172
 
22173
    public _Fields fieldForId(int fieldId) {
22174
      return _Fields.findByThriftId(fieldId);
22175
    }
22176
 
22177
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22178
      org.apache.thrift.protocol.TField field;
22179
      iprot.readStructBegin();
22180
      while (true)
22181
      {
22182
        field = iprot.readFieldBegin();
22183
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22184
          break;
22185
        }
22186
        switch (field.id) {
22187
          case 0: // SUCCESS
22188
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22189
              {
5864 rajveer 22190
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
22191
                this.success = new ArrayList<QuickLink>(_list61.size);
22192
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 22193
                {
5864 rajveer 22194
                  QuickLink _elem63; // required
22195
                  _elem63 = new QuickLink();
22196
                  _elem63.read(iprot);
22197
                  this.success.add(_elem63);
4806 varun.gupt 22198
                }
22199
                iprot.readListEnd();
22200
              }
22201
            } else { 
22202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22203
            }
22204
            break;
22205
          case 1: // HSE
22206
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22207
              this.hse = new HelperServiceException();
22208
              this.hse.read(iprot);
22209
            } else { 
22210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22211
            }
22212
            break;
22213
          default:
22214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22215
        }
22216
        iprot.readFieldEnd();
22217
      }
22218
      iprot.readStructEnd();
22219
      validate();
22220
    }
22221
 
22222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22223
      oprot.writeStructBegin(STRUCT_DESC);
22224
 
22225
      if (this.isSetSuccess()) {
22226
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22227
        {
22228
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 22229
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 22230
          {
5864 rajveer 22231
            _iter64.write(oprot);
4806 varun.gupt 22232
          }
22233
          oprot.writeListEnd();
22234
        }
22235
        oprot.writeFieldEnd();
22236
      } else if (this.isSetHse()) {
22237
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22238
        this.hse.write(oprot);
22239
        oprot.writeFieldEnd();
22240
      }
22241
      oprot.writeFieldStop();
22242
      oprot.writeStructEnd();
22243
    }
22244
 
22245
    @Override
22246
    public String toString() {
22247
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
22248
      boolean first = true;
22249
 
22250
      sb.append("success:");
22251
      if (this.success == null) {
22252
        sb.append("null");
22253
      } else {
22254
        sb.append(this.success);
22255
      }
22256
      first = false;
22257
      if (!first) sb.append(", ");
22258
      sb.append("hse:");
22259
      if (this.hse == null) {
22260
        sb.append("null");
22261
      } else {
22262
        sb.append(this.hse);
22263
      }
22264
      first = false;
22265
      sb.append(")");
22266
      return sb.toString();
22267
    }
22268
 
22269
    public void validate() throws org.apache.thrift.TException {
22270
      // check for required fields
22271
    }
22272
 
22273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22274
      try {
22275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22276
      } catch (org.apache.thrift.TException te) {
22277
        throw new java.io.IOException(te);
22278
      }
22279
    }
22280
 
22281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22282
      try {
22283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22284
      } catch (org.apache.thrift.TException te) {
22285
        throw new java.io.IOException(te);
22286
      }
22287
    }
22288
 
22289
  }
22290
 
4996 varun.gupt 22291
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
22292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
22293
 
22294
    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);
22295
    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);
22296
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);
22297
 
22298
    private long id; // required
22299
    private String url; // required
22300
    private String text; // required
22301
 
22302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22304
      ID((short)1, "id"),
22305
      URL((short)2, "url"),
22306
      TEXT((short)3, "text");
22307
 
22308
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22309
 
22310
      static {
22311
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22312
          byName.put(field.getFieldName(), field);
22313
        }
22314
      }
22315
 
22316
      /**
22317
       * Find the _Fields constant that matches fieldId, or null if its not found.
22318
       */
22319
      public static _Fields findByThriftId(int fieldId) {
22320
        switch(fieldId) {
22321
          case 1: // ID
22322
            return ID;
22323
          case 2: // URL
22324
            return URL;
22325
          case 3: // TEXT
22326
            return TEXT;
22327
          default:
22328
            return null;
22329
        }
22330
      }
22331
 
22332
      /**
22333
       * Find the _Fields constant that matches fieldId, throwing an exception
22334
       * if it is not found.
22335
       */
22336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22337
        _Fields fields = findByThriftId(fieldId);
22338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22339
        return fields;
22340
      }
22341
 
22342
      /**
22343
       * Find the _Fields constant that matches name, or null if its not found.
22344
       */
22345
      public static _Fields findByName(String name) {
22346
        return byName.get(name);
22347
      }
22348
 
22349
      private final short _thriftId;
22350
      private final String _fieldName;
22351
 
22352
      _Fields(short thriftId, String fieldName) {
22353
        _thriftId = thriftId;
22354
        _fieldName = fieldName;
22355
      }
22356
 
22357
      public short getThriftFieldId() {
22358
        return _thriftId;
22359
      }
22360
 
22361
      public String getFieldName() {
22362
        return _fieldName;
22363
      }
22364
    }
22365
 
22366
    // isset id assignments
22367
    private static final int __ID_ISSET_ID = 0;
22368
    private BitSet __isset_bit_vector = new BitSet(1);
22369
 
22370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22371
    static {
22372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22373
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22375
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22377
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
22381
    }
22382
 
22383
    public updateQuickLink_args() {
22384
    }
22385
 
22386
    public updateQuickLink_args(
22387
      long id,
22388
      String url,
22389
      String text)
22390
    {
22391
      this();
22392
      this.id = id;
22393
      setIdIsSet(true);
22394
      this.url = url;
22395
      this.text = text;
22396
    }
22397
 
22398
    /**
22399
     * Performs a deep copy on <i>other</i>.
22400
     */
22401
    public updateQuickLink_args(updateQuickLink_args other) {
22402
      __isset_bit_vector.clear();
22403
      __isset_bit_vector.or(other.__isset_bit_vector);
22404
      this.id = other.id;
22405
      if (other.isSetUrl()) {
22406
        this.url = other.url;
22407
      }
22408
      if (other.isSetText()) {
22409
        this.text = other.text;
22410
      }
22411
    }
22412
 
22413
    public updateQuickLink_args deepCopy() {
22414
      return new updateQuickLink_args(this);
22415
    }
22416
 
22417
    @Override
22418
    public void clear() {
22419
      setIdIsSet(false);
22420
      this.id = 0;
22421
      this.url = null;
22422
      this.text = null;
22423
    }
22424
 
22425
    public long getId() {
22426
      return this.id;
22427
    }
22428
 
22429
    public void setId(long id) {
22430
      this.id = id;
22431
      setIdIsSet(true);
22432
    }
22433
 
22434
    public void unsetId() {
22435
      __isset_bit_vector.clear(__ID_ISSET_ID);
22436
    }
22437
 
22438
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
22439
    public boolean isSetId() {
22440
      return __isset_bit_vector.get(__ID_ISSET_ID);
22441
    }
22442
 
22443
    public void setIdIsSet(boolean value) {
22444
      __isset_bit_vector.set(__ID_ISSET_ID, value);
22445
    }
22446
 
22447
    public String getUrl() {
22448
      return this.url;
22449
    }
22450
 
22451
    public void setUrl(String url) {
22452
      this.url = url;
22453
    }
22454
 
22455
    public void unsetUrl() {
22456
      this.url = null;
22457
    }
22458
 
22459
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
22460
    public boolean isSetUrl() {
22461
      return this.url != null;
22462
    }
22463
 
22464
    public void setUrlIsSet(boolean value) {
22465
      if (!value) {
22466
        this.url = null;
22467
      }
22468
    }
22469
 
22470
    public String getText() {
22471
      return this.text;
22472
    }
22473
 
22474
    public void setText(String text) {
22475
      this.text = text;
22476
    }
22477
 
22478
    public void unsetText() {
22479
      this.text = null;
22480
    }
22481
 
22482
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
22483
    public boolean isSetText() {
22484
      return this.text != null;
22485
    }
22486
 
22487
    public void setTextIsSet(boolean value) {
22488
      if (!value) {
22489
        this.text = null;
22490
      }
22491
    }
22492
 
22493
    public void setFieldValue(_Fields field, Object value) {
22494
      switch (field) {
22495
      case ID:
22496
        if (value == null) {
22497
          unsetId();
22498
        } else {
22499
          setId((Long)value);
22500
        }
22501
        break;
22502
 
22503
      case URL:
22504
        if (value == null) {
22505
          unsetUrl();
22506
        } else {
22507
          setUrl((String)value);
22508
        }
22509
        break;
22510
 
22511
      case TEXT:
22512
        if (value == null) {
22513
          unsetText();
22514
        } else {
22515
          setText((String)value);
22516
        }
22517
        break;
22518
 
22519
      }
22520
    }
22521
 
22522
    public Object getFieldValue(_Fields field) {
22523
      switch (field) {
22524
      case ID:
22525
        return Long.valueOf(getId());
22526
 
22527
      case URL:
22528
        return getUrl();
22529
 
22530
      case TEXT:
22531
        return getText();
22532
 
22533
      }
22534
      throw new IllegalStateException();
22535
    }
22536
 
22537
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22538
    public boolean isSet(_Fields field) {
22539
      if (field == null) {
22540
        throw new IllegalArgumentException();
22541
      }
22542
 
22543
      switch (field) {
22544
      case ID:
22545
        return isSetId();
22546
      case URL:
22547
        return isSetUrl();
22548
      case TEXT:
22549
        return isSetText();
22550
      }
22551
      throw new IllegalStateException();
22552
    }
22553
 
22554
    @Override
22555
    public boolean equals(Object that) {
22556
      if (that == null)
22557
        return false;
22558
      if (that instanceof updateQuickLink_args)
22559
        return this.equals((updateQuickLink_args)that);
22560
      return false;
22561
    }
22562
 
22563
    public boolean equals(updateQuickLink_args that) {
22564
      if (that == null)
22565
        return false;
22566
 
22567
      boolean this_present_id = true;
22568
      boolean that_present_id = true;
22569
      if (this_present_id || that_present_id) {
22570
        if (!(this_present_id && that_present_id))
22571
          return false;
22572
        if (this.id != that.id)
22573
          return false;
22574
      }
22575
 
22576
      boolean this_present_url = true && this.isSetUrl();
22577
      boolean that_present_url = true && that.isSetUrl();
22578
      if (this_present_url || that_present_url) {
22579
        if (!(this_present_url && that_present_url))
22580
          return false;
22581
        if (!this.url.equals(that.url))
22582
          return false;
22583
      }
22584
 
22585
      boolean this_present_text = true && this.isSetText();
22586
      boolean that_present_text = true && that.isSetText();
22587
      if (this_present_text || that_present_text) {
22588
        if (!(this_present_text && that_present_text))
22589
          return false;
22590
        if (!this.text.equals(that.text))
22591
          return false;
22592
      }
22593
 
22594
      return true;
22595
    }
22596
 
22597
    @Override
22598
    public int hashCode() {
22599
      return 0;
22600
    }
22601
 
22602
    public int compareTo(updateQuickLink_args other) {
22603
      if (!getClass().equals(other.getClass())) {
22604
        return getClass().getName().compareTo(other.getClass().getName());
22605
      }
22606
 
22607
      int lastComparison = 0;
22608
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
22609
 
22610
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
22611
      if (lastComparison != 0) {
22612
        return lastComparison;
22613
      }
22614
      if (isSetId()) {
22615
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
22616
        if (lastComparison != 0) {
22617
          return lastComparison;
22618
        }
22619
      }
22620
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
22621
      if (lastComparison != 0) {
22622
        return lastComparison;
22623
      }
22624
      if (isSetUrl()) {
22625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
22626
        if (lastComparison != 0) {
22627
          return lastComparison;
22628
        }
22629
      }
22630
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
22631
      if (lastComparison != 0) {
22632
        return lastComparison;
22633
      }
22634
      if (isSetText()) {
22635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
22636
        if (lastComparison != 0) {
22637
          return lastComparison;
22638
        }
22639
      }
22640
      return 0;
22641
    }
22642
 
22643
    public _Fields fieldForId(int fieldId) {
22644
      return _Fields.findByThriftId(fieldId);
22645
    }
22646
 
22647
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22648
      org.apache.thrift.protocol.TField field;
22649
      iprot.readStructBegin();
22650
      while (true)
22651
      {
22652
        field = iprot.readFieldBegin();
22653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22654
          break;
22655
        }
22656
        switch (field.id) {
22657
          case 1: // ID
22658
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22659
              this.id = iprot.readI64();
22660
              setIdIsSet(true);
22661
            } else { 
22662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22663
            }
22664
            break;
22665
          case 2: // URL
22666
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22667
              this.url = iprot.readString();
22668
            } else { 
22669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22670
            }
22671
            break;
22672
          case 3: // TEXT
22673
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22674
              this.text = iprot.readString();
22675
            } else { 
22676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22677
            }
22678
            break;
22679
          default:
22680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22681
        }
22682
        iprot.readFieldEnd();
22683
      }
22684
      iprot.readStructEnd();
22685
      validate();
22686
    }
22687
 
22688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22689
      validate();
22690
 
22691
      oprot.writeStructBegin(STRUCT_DESC);
22692
      oprot.writeFieldBegin(ID_FIELD_DESC);
22693
      oprot.writeI64(this.id);
22694
      oprot.writeFieldEnd();
22695
      if (this.url != null) {
22696
        oprot.writeFieldBegin(URL_FIELD_DESC);
22697
        oprot.writeString(this.url);
22698
        oprot.writeFieldEnd();
22699
      }
22700
      if (this.text != null) {
22701
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
22702
        oprot.writeString(this.text);
22703
        oprot.writeFieldEnd();
22704
      }
22705
      oprot.writeFieldStop();
22706
      oprot.writeStructEnd();
22707
    }
22708
 
22709
    @Override
22710
    public String toString() {
22711
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
22712
      boolean first = true;
22713
 
22714
      sb.append("id:");
22715
      sb.append(this.id);
22716
      first = false;
22717
      if (!first) sb.append(", ");
22718
      sb.append("url:");
22719
      if (this.url == null) {
22720
        sb.append("null");
22721
      } else {
22722
        sb.append(this.url);
22723
      }
22724
      first = false;
22725
      if (!first) sb.append(", ");
22726
      sb.append("text:");
22727
      if (this.text == null) {
22728
        sb.append("null");
22729
      } else {
22730
        sb.append(this.text);
22731
      }
22732
      first = false;
22733
      sb.append(")");
22734
      return sb.toString();
22735
    }
22736
 
22737
    public void validate() throws org.apache.thrift.TException {
22738
      // check for required fields
22739
    }
22740
 
22741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22742
      try {
22743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22744
      } catch (org.apache.thrift.TException te) {
22745
        throw new java.io.IOException(te);
22746
      }
22747
    }
22748
 
22749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22750
      try {
22751
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22752
        __isset_bit_vector = new BitSet(1);
22753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22754
      } catch (org.apache.thrift.TException te) {
22755
        throw new java.io.IOException(te);
22756
      }
22757
    }
22758
 
22759
  }
22760
 
22761
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
22762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
22763
 
22764
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
22765
 
22766
    private HelperServiceException hse; // required
22767
 
22768
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22769
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22770
      HSE((short)1, "hse");
22771
 
22772
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22773
 
22774
      static {
22775
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22776
          byName.put(field.getFieldName(), field);
22777
        }
22778
      }
22779
 
22780
      /**
22781
       * Find the _Fields constant that matches fieldId, or null if its not found.
22782
       */
22783
      public static _Fields findByThriftId(int fieldId) {
22784
        switch(fieldId) {
22785
          case 1: // HSE
22786
            return HSE;
22787
          default:
22788
            return null;
22789
        }
22790
      }
22791
 
22792
      /**
22793
       * Find the _Fields constant that matches fieldId, throwing an exception
22794
       * if it is not found.
22795
       */
22796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22797
        _Fields fields = findByThriftId(fieldId);
22798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22799
        return fields;
22800
      }
22801
 
22802
      /**
22803
       * Find the _Fields constant that matches name, or null if its not found.
22804
       */
22805
      public static _Fields findByName(String name) {
22806
        return byName.get(name);
22807
      }
22808
 
22809
      private final short _thriftId;
22810
      private final String _fieldName;
22811
 
22812
      _Fields(short thriftId, String fieldName) {
22813
        _thriftId = thriftId;
22814
        _fieldName = fieldName;
22815
      }
22816
 
22817
      public short getThriftFieldId() {
22818
        return _thriftId;
22819
      }
22820
 
22821
      public String getFieldName() {
22822
        return _fieldName;
22823
      }
22824
    }
22825
 
22826
    // isset id assignments
22827
 
22828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22829
    static {
22830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22831
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
22835
    }
22836
 
22837
    public updateQuickLink_result() {
22838
    }
22839
 
22840
    public updateQuickLink_result(
22841
      HelperServiceException hse)
22842
    {
22843
      this();
22844
      this.hse = hse;
22845
    }
22846
 
22847
    /**
22848
     * Performs a deep copy on <i>other</i>.
22849
     */
22850
    public updateQuickLink_result(updateQuickLink_result other) {
22851
      if (other.isSetHse()) {
22852
        this.hse = new HelperServiceException(other.hse);
22853
      }
22854
    }
22855
 
22856
    public updateQuickLink_result deepCopy() {
22857
      return new updateQuickLink_result(this);
22858
    }
22859
 
22860
    @Override
22861
    public void clear() {
22862
      this.hse = null;
22863
    }
22864
 
22865
    public HelperServiceException getHse() {
22866
      return this.hse;
22867
    }
22868
 
22869
    public void setHse(HelperServiceException hse) {
22870
      this.hse = hse;
22871
    }
22872
 
22873
    public void unsetHse() {
22874
      this.hse = null;
22875
    }
22876
 
22877
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22878
    public boolean isSetHse() {
22879
      return this.hse != null;
22880
    }
22881
 
22882
    public void setHseIsSet(boolean value) {
22883
      if (!value) {
22884
        this.hse = null;
22885
      }
22886
    }
22887
 
22888
    public void setFieldValue(_Fields field, Object value) {
22889
      switch (field) {
22890
      case HSE:
22891
        if (value == null) {
22892
          unsetHse();
22893
        } else {
22894
          setHse((HelperServiceException)value);
22895
        }
22896
        break;
22897
 
22898
      }
22899
    }
22900
 
22901
    public Object getFieldValue(_Fields field) {
22902
      switch (field) {
22903
      case HSE:
22904
        return getHse();
22905
 
22906
      }
22907
      throw new IllegalStateException();
22908
    }
22909
 
22910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22911
    public boolean isSet(_Fields field) {
22912
      if (field == null) {
22913
        throw new IllegalArgumentException();
22914
      }
22915
 
22916
      switch (field) {
22917
      case HSE:
22918
        return isSetHse();
22919
      }
22920
      throw new IllegalStateException();
22921
    }
22922
 
22923
    @Override
22924
    public boolean equals(Object that) {
22925
      if (that == null)
22926
        return false;
22927
      if (that instanceof updateQuickLink_result)
22928
        return this.equals((updateQuickLink_result)that);
22929
      return false;
22930
    }
22931
 
22932
    public boolean equals(updateQuickLink_result that) {
22933
      if (that == null)
22934
        return false;
22935
 
22936
      boolean this_present_hse = true && this.isSetHse();
22937
      boolean that_present_hse = true && that.isSetHse();
22938
      if (this_present_hse || that_present_hse) {
22939
        if (!(this_present_hse && that_present_hse))
22940
          return false;
22941
        if (!this.hse.equals(that.hse))
22942
          return false;
22943
      }
22944
 
22945
      return true;
22946
    }
22947
 
22948
    @Override
22949
    public int hashCode() {
22950
      return 0;
22951
    }
22952
 
22953
    public int compareTo(updateQuickLink_result other) {
22954
      if (!getClass().equals(other.getClass())) {
22955
        return getClass().getName().compareTo(other.getClass().getName());
22956
      }
22957
 
22958
      int lastComparison = 0;
22959
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
22960
 
22961
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22962
      if (lastComparison != 0) {
22963
        return lastComparison;
22964
      }
22965
      if (isSetHse()) {
22966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22967
        if (lastComparison != 0) {
22968
          return lastComparison;
22969
        }
22970
      }
22971
      return 0;
22972
    }
22973
 
22974
    public _Fields fieldForId(int fieldId) {
22975
      return _Fields.findByThriftId(fieldId);
22976
    }
22977
 
22978
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22979
      org.apache.thrift.protocol.TField field;
22980
      iprot.readStructBegin();
22981
      while (true)
22982
      {
22983
        field = iprot.readFieldBegin();
22984
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22985
          break;
22986
        }
22987
        switch (field.id) {
22988
          case 1: // HSE
22989
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22990
              this.hse = new HelperServiceException();
22991
              this.hse.read(iprot);
22992
            } else { 
22993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22994
            }
22995
            break;
22996
          default:
22997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22998
        }
22999
        iprot.readFieldEnd();
23000
      }
23001
      iprot.readStructEnd();
23002
      validate();
23003
    }
23004
 
23005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23006
      oprot.writeStructBegin(STRUCT_DESC);
23007
 
23008
      if (this.isSetHse()) {
23009
        oprot.writeFieldBegin(HSE_FIELD_DESC);
23010
        this.hse.write(oprot);
23011
        oprot.writeFieldEnd();
23012
      }
23013
      oprot.writeFieldStop();
23014
      oprot.writeStructEnd();
23015
    }
23016
 
23017
    @Override
23018
    public String toString() {
23019
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
23020
      boolean first = true;
23021
 
23022
      sb.append("hse:");
23023
      if (this.hse == null) {
23024
        sb.append("null");
23025
      } else {
23026
        sb.append(this.hse);
23027
      }
23028
      first = false;
23029
      sb.append(")");
23030
      return sb.toString();
23031
    }
23032
 
23033
    public void validate() throws org.apache.thrift.TException {
23034
      // check for required fields
23035
    }
23036
 
23037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23038
      try {
23039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23040
      } catch (org.apache.thrift.TException te) {
23041
        throw new java.io.IOException(te);
23042
      }
23043
    }
23044
 
23045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23046
      try {
23047
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23048
      } catch (org.apache.thrift.TException te) {
23049
        throw new java.io.IOException(te);
23050
      }
23051
    }
23052
 
23053
  }
23054
 
5055 varun.gupt 23055
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
23056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
23057
 
23058
    private static final org.apache.thrift.protocol.TField START_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDatetime", org.apache.thrift.protocol.TType.I64, (short)1);
23059
    private static final org.apache.thrift.protocol.TField END_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endDatetime", org.apache.thrift.protocol.TType.I64, (short)2);
23060
 
23061
    private long startDatetime; // required
23062
    private long endDatetime; // required
23063
 
23064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23065
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23066
      START_DATETIME((short)1, "startDatetime"),
23067
      END_DATETIME((short)2, "endDatetime");
23068
 
23069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23070
 
23071
      static {
23072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23073
          byName.put(field.getFieldName(), field);
23074
        }
23075
      }
23076
 
23077
      /**
23078
       * Find the _Fields constant that matches fieldId, or null if its not found.
23079
       */
23080
      public static _Fields findByThriftId(int fieldId) {
23081
        switch(fieldId) {
23082
          case 1: // START_DATETIME
23083
            return START_DATETIME;
23084
          case 2: // END_DATETIME
23085
            return END_DATETIME;
23086
          default:
23087
            return null;
23088
        }
23089
      }
23090
 
23091
      /**
23092
       * Find the _Fields constant that matches fieldId, throwing an exception
23093
       * if it is not found.
23094
       */
23095
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23096
        _Fields fields = findByThriftId(fieldId);
23097
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23098
        return fields;
23099
      }
23100
 
23101
      /**
23102
       * Find the _Fields constant that matches name, or null if its not found.
23103
       */
23104
      public static _Fields findByName(String name) {
23105
        return byName.get(name);
23106
      }
23107
 
23108
      private final short _thriftId;
23109
      private final String _fieldName;
23110
 
23111
      _Fields(short thriftId, String fieldName) {
23112
        _thriftId = thriftId;
23113
        _fieldName = fieldName;
23114
      }
23115
 
23116
      public short getThriftFieldId() {
23117
        return _thriftId;
23118
      }
23119
 
23120
      public String getFieldName() {
23121
        return _fieldName;
23122
      }
23123
    }
23124
 
23125
    // isset id assignments
23126
    private static final int __STARTDATETIME_ISSET_ID = 0;
23127
    private static final int __ENDDATETIME_ISSET_ID = 1;
23128
    private BitSet __isset_bit_vector = new BitSet(2);
23129
 
23130
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23131
    static {
23132
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23133
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23134
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23135
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23136
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23137
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23138
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
23139
    }
23140
 
23141
    public getEmailsForNotificationsSent_args() {
23142
    }
23143
 
23144
    public getEmailsForNotificationsSent_args(
23145
      long startDatetime,
23146
      long endDatetime)
23147
    {
23148
      this();
23149
      this.startDatetime = startDatetime;
23150
      setStartDatetimeIsSet(true);
23151
      this.endDatetime = endDatetime;
23152
      setEndDatetimeIsSet(true);
23153
    }
23154
 
23155
    /**
23156
     * Performs a deep copy on <i>other</i>.
23157
     */
23158
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
23159
      __isset_bit_vector.clear();
23160
      __isset_bit_vector.or(other.__isset_bit_vector);
23161
      this.startDatetime = other.startDatetime;
23162
      this.endDatetime = other.endDatetime;
23163
    }
23164
 
23165
    public getEmailsForNotificationsSent_args deepCopy() {
23166
      return new getEmailsForNotificationsSent_args(this);
23167
    }
23168
 
23169
    @Override
23170
    public void clear() {
23171
      setStartDatetimeIsSet(false);
23172
      this.startDatetime = 0;
23173
      setEndDatetimeIsSet(false);
23174
      this.endDatetime = 0;
23175
    }
23176
 
23177
    public long getStartDatetime() {
23178
      return this.startDatetime;
23179
    }
23180
 
23181
    public void setStartDatetime(long startDatetime) {
23182
      this.startDatetime = startDatetime;
23183
      setStartDatetimeIsSet(true);
23184
    }
23185
 
23186
    public void unsetStartDatetime() {
23187
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
23188
    }
23189
 
23190
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
23191
    public boolean isSetStartDatetime() {
23192
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
23193
    }
23194
 
23195
    public void setStartDatetimeIsSet(boolean value) {
23196
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
23197
    }
23198
 
23199
    public long getEndDatetime() {
23200
      return this.endDatetime;
23201
    }
23202
 
23203
    public void setEndDatetime(long endDatetime) {
23204
      this.endDatetime = endDatetime;
23205
      setEndDatetimeIsSet(true);
23206
    }
23207
 
23208
    public void unsetEndDatetime() {
23209
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
23210
    }
23211
 
23212
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
23213
    public boolean isSetEndDatetime() {
23214
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
23215
    }
23216
 
23217
    public void setEndDatetimeIsSet(boolean value) {
23218
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
23219
    }
23220
 
23221
    public void setFieldValue(_Fields field, Object value) {
23222
      switch (field) {
23223
      case START_DATETIME:
23224
        if (value == null) {
23225
          unsetStartDatetime();
23226
        } else {
23227
          setStartDatetime((Long)value);
23228
        }
23229
        break;
23230
 
23231
      case END_DATETIME:
23232
        if (value == null) {
23233
          unsetEndDatetime();
23234
        } else {
23235
          setEndDatetime((Long)value);
23236
        }
23237
        break;
23238
 
23239
      }
23240
    }
23241
 
23242
    public Object getFieldValue(_Fields field) {
23243
      switch (field) {
23244
      case START_DATETIME:
23245
        return Long.valueOf(getStartDatetime());
23246
 
23247
      case END_DATETIME:
23248
        return Long.valueOf(getEndDatetime());
23249
 
23250
      }
23251
      throw new IllegalStateException();
23252
    }
23253
 
23254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23255
    public boolean isSet(_Fields field) {
23256
      if (field == null) {
23257
        throw new IllegalArgumentException();
23258
      }
23259
 
23260
      switch (field) {
23261
      case START_DATETIME:
23262
        return isSetStartDatetime();
23263
      case END_DATETIME:
23264
        return isSetEndDatetime();
23265
      }
23266
      throw new IllegalStateException();
23267
    }
23268
 
23269
    @Override
23270
    public boolean equals(Object that) {
23271
      if (that == null)
23272
        return false;
23273
      if (that instanceof getEmailsForNotificationsSent_args)
23274
        return this.equals((getEmailsForNotificationsSent_args)that);
23275
      return false;
23276
    }
23277
 
23278
    public boolean equals(getEmailsForNotificationsSent_args that) {
23279
      if (that == null)
23280
        return false;
23281
 
23282
      boolean this_present_startDatetime = true;
23283
      boolean that_present_startDatetime = true;
23284
      if (this_present_startDatetime || that_present_startDatetime) {
23285
        if (!(this_present_startDatetime && that_present_startDatetime))
23286
          return false;
23287
        if (this.startDatetime != that.startDatetime)
23288
          return false;
23289
      }
23290
 
23291
      boolean this_present_endDatetime = true;
23292
      boolean that_present_endDatetime = true;
23293
      if (this_present_endDatetime || that_present_endDatetime) {
23294
        if (!(this_present_endDatetime && that_present_endDatetime))
23295
          return false;
23296
        if (this.endDatetime != that.endDatetime)
23297
          return false;
23298
      }
23299
 
23300
      return true;
23301
    }
23302
 
23303
    @Override
23304
    public int hashCode() {
23305
      return 0;
23306
    }
23307
 
23308
    public int compareTo(getEmailsForNotificationsSent_args other) {
23309
      if (!getClass().equals(other.getClass())) {
23310
        return getClass().getName().compareTo(other.getClass().getName());
23311
      }
23312
 
23313
      int lastComparison = 0;
23314
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
23315
 
23316
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
23317
      if (lastComparison != 0) {
23318
        return lastComparison;
23319
      }
23320
      if (isSetStartDatetime()) {
23321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
23322
        if (lastComparison != 0) {
23323
          return lastComparison;
23324
        }
23325
      }
23326
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
23327
      if (lastComparison != 0) {
23328
        return lastComparison;
23329
      }
23330
      if (isSetEndDatetime()) {
23331
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
23332
        if (lastComparison != 0) {
23333
          return lastComparison;
23334
        }
23335
      }
23336
      return 0;
23337
    }
23338
 
23339
    public _Fields fieldForId(int fieldId) {
23340
      return _Fields.findByThriftId(fieldId);
23341
    }
23342
 
23343
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23344
      org.apache.thrift.protocol.TField field;
23345
      iprot.readStructBegin();
23346
      while (true)
23347
      {
23348
        field = iprot.readFieldBegin();
23349
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23350
          break;
23351
        }
23352
        switch (field.id) {
23353
          case 1: // START_DATETIME
23354
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23355
              this.startDatetime = iprot.readI64();
23356
              setStartDatetimeIsSet(true);
23357
            } else { 
23358
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23359
            }
23360
            break;
23361
          case 2: // END_DATETIME
23362
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23363
              this.endDatetime = iprot.readI64();
23364
              setEndDatetimeIsSet(true);
23365
            } else { 
23366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23367
            }
23368
            break;
23369
          default:
23370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23371
        }
23372
        iprot.readFieldEnd();
23373
      }
23374
      iprot.readStructEnd();
23375
      validate();
23376
    }
23377
 
23378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23379
      validate();
23380
 
23381
      oprot.writeStructBegin(STRUCT_DESC);
23382
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
23383
      oprot.writeI64(this.startDatetime);
23384
      oprot.writeFieldEnd();
23385
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
23386
      oprot.writeI64(this.endDatetime);
23387
      oprot.writeFieldEnd();
23388
      oprot.writeFieldStop();
23389
      oprot.writeStructEnd();
23390
    }
23391
 
23392
    @Override
23393
    public String toString() {
23394
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
23395
      boolean first = true;
23396
 
23397
      sb.append("startDatetime:");
23398
      sb.append(this.startDatetime);
23399
      first = false;
23400
      if (!first) sb.append(", ");
23401
      sb.append("endDatetime:");
23402
      sb.append(this.endDatetime);
23403
      first = false;
23404
      sb.append(")");
23405
      return sb.toString();
23406
    }
23407
 
23408
    public void validate() throws org.apache.thrift.TException {
23409
      // check for required fields
23410
    }
23411
 
23412
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23413
      try {
23414
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23415
      } catch (org.apache.thrift.TException te) {
23416
        throw new java.io.IOException(te);
23417
      }
23418
    }
23419
 
23420
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23421
      try {
23422
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23423
      } catch (org.apache.thrift.TException te) {
23424
        throw new java.io.IOException(te);
23425
      }
23426
    }
23427
 
23428
  }
23429
 
23430
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
23431
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
23432
 
23433
    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);
23434
    private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23435
 
23436
    private List<String> success; // required
23437
    private HelperServiceException hse; // required
23438
 
23439
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23440
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23441
      SUCCESS((short)0, "success"),
23442
      HSE((short)1, "hse");
23443
 
23444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23445
 
23446
      static {
23447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23448
          byName.put(field.getFieldName(), field);
23449
        }
23450
      }
23451
 
23452
      /**
23453
       * Find the _Fields constant that matches fieldId, or null if its not found.
23454
       */
23455
      public static _Fields findByThriftId(int fieldId) {
23456
        switch(fieldId) {
23457
          case 0: // SUCCESS
23458
            return SUCCESS;
23459
          case 1: // HSE
23460
            return HSE;
23461
          default:
23462
            return null;
23463
        }
23464
      }
23465
 
23466
      /**
23467
       * Find the _Fields constant that matches fieldId, throwing an exception
23468
       * if it is not found.
23469
       */
23470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23471
        _Fields fields = findByThriftId(fieldId);
23472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23473
        return fields;
23474
      }
23475
 
23476
      /**
23477
       * Find the _Fields constant that matches name, or null if its not found.
23478
       */
23479
      public static _Fields findByName(String name) {
23480
        return byName.get(name);
23481
      }
23482
 
23483
      private final short _thriftId;
23484
      private final String _fieldName;
23485
 
23486
      _Fields(short thriftId, String fieldName) {
23487
        _thriftId = thriftId;
23488
        _fieldName = fieldName;
23489
      }
23490
 
23491
      public short getThriftFieldId() {
23492
        return _thriftId;
23493
      }
23494
 
23495
      public String getFieldName() {
23496
        return _fieldName;
23497
      }
23498
    }
23499
 
23500
    // isset id assignments
23501
 
23502
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23503
    static {
23504
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23505
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23506
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23507
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23508
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
23512
    }
23513
 
23514
    public getEmailsForNotificationsSent_result() {
23515
    }
23516
 
23517
    public getEmailsForNotificationsSent_result(
23518
      List<String> success,
23519
      HelperServiceException hse)
23520
    {
23521
      this();
23522
      this.success = success;
23523
      this.hse = hse;
23524
    }
23525
 
23526
    /**
23527
     * Performs a deep copy on <i>other</i>.
23528
     */
23529
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
23530
      if (other.isSetSuccess()) {
23531
        List<String> __this__success = new ArrayList<String>();
23532
        for (String other_element : other.success) {
23533
          __this__success.add(other_element);
23534
        }
23535
        this.success = __this__success;
23536
      }
23537
      if (other.isSetHse()) {
23538
        this.hse = new HelperServiceException(other.hse);
23539
      }
23540
    }
23541
 
23542
    public getEmailsForNotificationsSent_result deepCopy() {
23543
      return new getEmailsForNotificationsSent_result(this);
23544
    }
23545
 
23546
    @Override
23547
    public void clear() {
23548
      this.success = null;
23549
      this.hse = null;
23550
    }
23551
 
23552
    public int getSuccessSize() {
23553
      return (this.success == null) ? 0 : this.success.size();
23554
    }
23555
 
23556
    public java.util.Iterator<String> getSuccessIterator() {
23557
      return (this.success == null) ? null : this.success.iterator();
23558
    }
23559
 
23560
    public void addToSuccess(String elem) {
23561
      if (this.success == null) {
23562
        this.success = new ArrayList<String>();
23563
      }
23564
      this.success.add(elem);
23565
    }
23566
 
23567
    public List<String> getSuccess() {
23568
      return this.success;
23569
    }
23570
 
23571
    public void setSuccess(List<String> success) {
23572
      this.success = success;
23573
    }
23574
 
23575
    public void unsetSuccess() {
23576
      this.success = null;
23577
    }
23578
 
23579
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23580
    public boolean isSetSuccess() {
23581
      return this.success != null;
23582
    }
23583
 
23584
    public void setSuccessIsSet(boolean value) {
23585
      if (!value) {
23586
        this.success = null;
23587
      }
23588
    }
23589
 
23590
    public HelperServiceException getHse() {
23591
      return this.hse;
23592
    }
23593
 
23594
    public void setHse(HelperServiceException hse) {
23595
      this.hse = hse;
23596
    }
23597
 
23598
    public void unsetHse() {
23599
      this.hse = null;
23600
    }
23601
 
23602
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
23603
    public boolean isSetHse() {
23604
      return this.hse != null;
23605
    }
23606
 
23607
    public void setHseIsSet(boolean value) {
23608
      if (!value) {
23609
        this.hse = null;
23610
      }
23611
    }
23612
 
23613
    public void setFieldValue(_Fields field, Object value) {
23614
      switch (field) {
23615
      case SUCCESS:
23616
        if (value == null) {
23617
          unsetSuccess();
23618
        } else {
23619
          setSuccess((List<String>)value);
23620
        }
23621
        break;
23622
 
23623
      case HSE:
23624
        if (value == null) {
23625
          unsetHse();
23626
        } else {
23627
          setHse((HelperServiceException)value);
23628
        }
23629
        break;
23630
 
23631
      }
23632
    }
23633
 
23634
    public Object getFieldValue(_Fields field) {
23635
      switch (field) {
23636
      case SUCCESS:
23637
        return getSuccess();
23638
 
23639
      case HSE:
23640
        return getHse();
23641
 
23642
      }
23643
      throw new IllegalStateException();
23644
    }
23645
 
23646
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23647
    public boolean isSet(_Fields field) {
23648
      if (field == null) {
23649
        throw new IllegalArgumentException();
23650
      }
23651
 
23652
      switch (field) {
23653
      case SUCCESS:
23654
        return isSetSuccess();
23655
      case HSE:
23656
        return isSetHse();
23657
      }
23658
      throw new IllegalStateException();
23659
    }
23660
 
23661
    @Override
23662
    public boolean equals(Object that) {
23663
      if (that == null)
23664
        return false;
23665
      if (that instanceof getEmailsForNotificationsSent_result)
23666
        return this.equals((getEmailsForNotificationsSent_result)that);
23667
      return false;
23668
    }
23669
 
23670
    public boolean equals(getEmailsForNotificationsSent_result that) {
23671
      if (that == null)
23672
        return false;
23673
 
23674
      boolean this_present_success = true && this.isSetSuccess();
23675
      boolean that_present_success = true && that.isSetSuccess();
23676
      if (this_present_success || that_present_success) {
23677
        if (!(this_present_success && that_present_success))
23678
          return false;
23679
        if (!this.success.equals(that.success))
23680
          return false;
23681
      }
23682
 
23683
      boolean this_present_hse = true && this.isSetHse();
23684
      boolean that_present_hse = true && that.isSetHse();
23685
      if (this_present_hse || that_present_hse) {
23686
        if (!(this_present_hse && that_present_hse))
23687
          return false;
23688
        if (!this.hse.equals(that.hse))
23689
          return false;
23690
      }
23691
 
23692
      return true;
23693
    }
23694
 
23695
    @Override
23696
    public int hashCode() {
23697
      return 0;
23698
    }
23699
 
23700
    public int compareTo(getEmailsForNotificationsSent_result other) {
23701
      if (!getClass().equals(other.getClass())) {
23702
        return getClass().getName().compareTo(other.getClass().getName());
23703
      }
23704
 
23705
      int lastComparison = 0;
23706
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
23707
 
23708
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23709
      if (lastComparison != 0) {
23710
        return lastComparison;
23711
      }
23712
      if (isSetSuccess()) {
23713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23714
        if (lastComparison != 0) {
23715
          return lastComparison;
23716
        }
23717
      }
23718
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
23719
      if (lastComparison != 0) {
23720
        return lastComparison;
23721
      }
23722
      if (isSetHse()) {
23723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
23724
        if (lastComparison != 0) {
23725
          return lastComparison;
23726
        }
23727
      }
23728
      return 0;
23729
    }
23730
 
23731
    public _Fields fieldForId(int fieldId) {
23732
      return _Fields.findByThriftId(fieldId);
23733
    }
23734
 
23735
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23736
      org.apache.thrift.protocol.TField field;
23737
      iprot.readStructBegin();
23738
      while (true)
23739
      {
23740
        field = iprot.readFieldBegin();
23741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23742
          break;
23743
        }
23744
        switch (field.id) {
23745
          case 0: // SUCCESS
23746
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23747
              {
5864 rajveer 23748
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
23749
                this.success = new ArrayList<String>(_list65.size);
23750
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 23751
                {
5864 rajveer 23752
                  String _elem67; // required
23753
                  _elem67 = iprot.readString();
23754
                  this.success.add(_elem67);
5055 varun.gupt 23755
                }
23756
                iprot.readListEnd();
23757
              }
23758
            } else { 
23759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23760
            }
23761
            break;
23762
          case 1: // HSE
23763
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23764
              this.hse = new HelperServiceException();
23765
              this.hse.read(iprot);
23766
            } else { 
23767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23768
            }
23769
            break;
23770
          default:
23771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23772
        }
23773
        iprot.readFieldEnd();
23774
      }
23775
      iprot.readStructEnd();
23776
      validate();
23777
    }
23778
 
23779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23780
      oprot.writeStructBegin(STRUCT_DESC);
23781
 
23782
      if (this.isSetSuccess()) {
23783
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23784
        {
23785
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 23786
          for (String _iter68 : this.success)
5055 varun.gupt 23787
          {
5864 rajveer 23788
            oprot.writeString(_iter68);
5055 varun.gupt 23789
          }
23790
          oprot.writeListEnd();
23791
        }
23792
        oprot.writeFieldEnd();
23793
      } else if (this.isSetHse()) {
23794
        oprot.writeFieldBegin(HSE_FIELD_DESC);
23795
        this.hse.write(oprot);
23796
        oprot.writeFieldEnd();
23797
      }
23798
      oprot.writeFieldStop();
23799
      oprot.writeStructEnd();
23800
    }
23801
 
23802
    @Override
23803
    public String toString() {
23804
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
23805
      boolean first = true;
23806
 
23807
      sb.append("success:");
23808
      if (this.success == null) {
23809
        sb.append("null");
23810
      } else {
23811
        sb.append(this.success);
23812
      }
23813
      first = false;
23814
      if (!first) sb.append(", ");
23815
      sb.append("hse:");
23816
      if (this.hse == null) {
23817
        sb.append("null");
23818
      } else {
23819
        sb.append(this.hse);
23820
      }
23821
      first = false;
23822
      sb.append(")");
23823
      return sb.toString();
23824
    }
23825
 
23826
    public void validate() throws org.apache.thrift.TException {
23827
      // check for required fields
23828
    }
23829
 
23830
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23831
      try {
23832
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23833
      } catch (org.apache.thrift.TException te) {
23834
        throw new java.io.IOException(te);
23835
      }
23836
    }
23837
 
23838
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23839
      try {
23840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23841
      } catch (org.apache.thrift.TException te) {
23842
        throw new java.io.IOException(te);
23843
      }
23844
    }
23845
 
23846
  }
23847
 
6322 amar.kumar 23848
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
23849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
23850
 
23851
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
23852
 
23853
    private long orderId; // required
23854
 
23855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23857
      ORDER_ID((short)1, "orderId");
23858
 
23859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23860
 
23861
      static {
23862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23863
          byName.put(field.getFieldName(), field);
23864
        }
23865
      }
23866
 
23867
      /**
23868
       * Find the _Fields constant that matches fieldId, or null if its not found.
23869
       */
23870
      public static _Fields findByThriftId(int fieldId) {
23871
        switch(fieldId) {
23872
          case 1: // ORDER_ID
23873
            return ORDER_ID;
23874
          default:
23875
            return null;
23876
        }
23877
      }
23878
 
23879
      /**
23880
       * Find the _Fields constant that matches fieldId, throwing an exception
23881
       * if it is not found.
23882
       */
23883
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23884
        _Fields fields = findByThriftId(fieldId);
23885
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23886
        return fields;
23887
      }
23888
 
23889
      /**
23890
       * Find the _Fields constant that matches name, or null if its not found.
23891
       */
23892
      public static _Fields findByName(String name) {
23893
        return byName.get(name);
23894
      }
23895
 
23896
      private final short _thriftId;
23897
      private final String _fieldName;
23898
 
23899
      _Fields(short thriftId, String fieldName) {
23900
        _thriftId = thriftId;
23901
        _fieldName = fieldName;
23902
      }
23903
 
23904
      public short getThriftFieldId() {
23905
        return _thriftId;
23906
      }
23907
 
23908
      public String getFieldName() {
23909
        return _fieldName;
23910
      }
23911
    }
23912
 
23913
    // isset id assignments
23914
    private static final int __ORDERID_ISSET_ID = 0;
23915
    private BitSet __isset_bit_vector = new BitSet(1);
23916
 
23917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23918
    static {
23919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23920
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23922
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23923
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
23924
    }
23925
 
23926
    public getOrderConfirmationMail_args() {
23927
    }
23928
 
23929
    public getOrderConfirmationMail_args(
23930
      long orderId)
23931
    {
23932
      this();
23933
      this.orderId = orderId;
23934
      setOrderIdIsSet(true);
23935
    }
23936
 
23937
    /**
23938
     * Performs a deep copy on <i>other</i>.
23939
     */
23940
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
23941
      __isset_bit_vector.clear();
23942
      __isset_bit_vector.or(other.__isset_bit_vector);
23943
      this.orderId = other.orderId;
23944
    }
23945
 
23946
    public getOrderConfirmationMail_args deepCopy() {
23947
      return new getOrderConfirmationMail_args(this);
23948
    }
23949
 
23950
    @Override
23951
    public void clear() {
23952
      setOrderIdIsSet(false);
23953
      this.orderId = 0;
23954
    }
23955
 
23956
    public long getOrderId() {
23957
      return this.orderId;
23958
    }
23959
 
23960
    public void setOrderId(long orderId) {
23961
      this.orderId = orderId;
23962
      setOrderIdIsSet(true);
23963
    }
23964
 
23965
    public void unsetOrderId() {
23966
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23967
    }
23968
 
23969
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23970
    public boolean isSetOrderId() {
23971
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23972
    }
23973
 
23974
    public void setOrderIdIsSet(boolean value) {
23975
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23976
    }
23977
 
23978
    public void setFieldValue(_Fields field, Object value) {
23979
      switch (field) {
23980
      case ORDER_ID:
23981
        if (value == null) {
23982
          unsetOrderId();
23983
        } else {
23984
          setOrderId((Long)value);
23985
        }
23986
        break;
23987
 
23988
      }
23989
    }
23990
 
23991
    public Object getFieldValue(_Fields field) {
23992
      switch (field) {
23993
      case ORDER_ID:
23994
        return Long.valueOf(getOrderId());
23995
 
23996
      }
23997
      throw new IllegalStateException();
23998
    }
23999
 
24000
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24001
    public boolean isSet(_Fields field) {
24002
      if (field == null) {
24003
        throw new IllegalArgumentException();
24004
      }
24005
 
24006
      switch (field) {
24007
      case ORDER_ID:
24008
        return isSetOrderId();
24009
      }
24010
      throw new IllegalStateException();
24011
    }
24012
 
24013
    @Override
24014
    public boolean equals(Object that) {
24015
      if (that == null)
24016
        return false;
24017
      if (that instanceof getOrderConfirmationMail_args)
24018
        return this.equals((getOrderConfirmationMail_args)that);
24019
      return false;
24020
    }
24021
 
24022
    public boolean equals(getOrderConfirmationMail_args that) {
24023
      if (that == null)
24024
        return false;
24025
 
24026
      boolean this_present_orderId = true;
24027
      boolean that_present_orderId = true;
24028
      if (this_present_orderId || that_present_orderId) {
24029
        if (!(this_present_orderId && that_present_orderId))
24030
          return false;
24031
        if (this.orderId != that.orderId)
24032
          return false;
24033
      }
24034
 
24035
      return true;
24036
    }
24037
 
24038
    @Override
24039
    public int hashCode() {
24040
      return 0;
24041
    }
24042
 
24043
    public int compareTo(getOrderConfirmationMail_args other) {
24044
      if (!getClass().equals(other.getClass())) {
24045
        return getClass().getName().compareTo(other.getClass().getName());
24046
      }
24047
 
24048
      int lastComparison = 0;
24049
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
24050
 
24051
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
24052
      if (lastComparison != 0) {
24053
        return lastComparison;
24054
      }
24055
      if (isSetOrderId()) {
24056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24057
        if (lastComparison != 0) {
24058
          return lastComparison;
24059
        }
24060
      }
24061
      return 0;
24062
    }
24063
 
24064
    public _Fields fieldForId(int fieldId) {
24065
      return _Fields.findByThriftId(fieldId);
24066
    }
24067
 
24068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24069
      org.apache.thrift.protocol.TField field;
24070
      iprot.readStructBegin();
24071
      while (true)
24072
      {
24073
        field = iprot.readFieldBegin();
24074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24075
          break;
24076
        }
24077
        switch (field.id) {
24078
          case 1: // ORDER_ID
24079
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24080
              this.orderId = iprot.readI64();
24081
              setOrderIdIsSet(true);
24082
            } else { 
24083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24084
            }
24085
            break;
24086
          default:
24087
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24088
        }
24089
        iprot.readFieldEnd();
24090
      }
24091
      iprot.readStructEnd();
24092
      validate();
24093
    }
24094
 
24095
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24096
      validate();
24097
 
24098
      oprot.writeStructBegin(STRUCT_DESC);
24099
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24100
      oprot.writeI64(this.orderId);
24101
      oprot.writeFieldEnd();
24102
      oprot.writeFieldStop();
24103
      oprot.writeStructEnd();
24104
    }
24105
 
24106
    @Override
24107
    public String toString() {
24108
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
24109
      boolean first = true;
24110
 
24111
      sb.append("orderId:");
24112
      sb.append(this.orderId);
24113
      first = false;
24114
      sb.append(")");
24115
      return sb.toString();
24116
    }
24117
 
24118
    public void validate() throws org.apache.thrift.TException {
24119
      // check for required fields
24120
    }
24121
 
24122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24123
      try {
24124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24125
      } catch (org.apache.thrift.TException te) {
24126
        throw new java.io.IOException(te);
24127
      }
24128
    }
24129
 
24130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24131
      try {
24132
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24133
        __isset_bit_vector = new BitSet(1);
24134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24135
      } catch (org.apache.thrift.TException te) {
24136
        throw new java.io.IOException(te);
24137
      }
24138
    }
24139
 
24140
  }
24141
 
24142
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
24143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
24144
 
24145
    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);
24146
 
24147
    private String success; // required
24148
 
24149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24151
      SUCCESS((short)0, "success");
24152
 
24153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24154
 
24155
      static {
24156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24157
          byName.put(field.getFieldName(), field);
24158
        }
24159
      }
24160
 
24161
      /**
24162
       * Find the _Fields constant that matches fieldId, or null if its not found.
24163
       */
24164
      public static _Fields findByThriftId(int fieldId) {
24165
        switch(fieldId) {
24166
          case 0: // SUCCESS
24167
            return SUCCESS;
24168
          default:
24169
            return null;
24170
        }
24171
      }
24172
 
24173
      /**
24174
       * Find the _Fields constant that matches fieldId, throwing an exception
24175
       * if it is not found.
24176
       */
24177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24178
        _Fields fields = findByThriftId(fieldId);
24179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24180
        return fields;
24181
      }
24182
 
24183
      /**
24184
       * Find the _Fields constant that matches name, or null if its not found.
24185
       */
24186
      public static _Fields findByName(String name) {
24187
        return byName.get(name);
24188
      }
24189
 
24190
      private final short _thriftId;
24191
      private final String _fieldName;
24192
 
24193
      _Fields(short thriftId, String fieldName) {
24194
        _thriftId = thriftId;
24195
        _fieldName = fieldName;
24196
      }
24197
 
24198
      public short getThriftFieldId() {
24199
        return _thriftId;
24200
      }
24201
 
24202
      public String getFieldName() {
24203
        return _fieldName;
24204
      }
24205
    }
24206
 
24207
    // isset id assignments
24208
 
24209
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24210
    static {
24211
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24212
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24213
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24214
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24215
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
24216
    }
24217
 
24218
    public getOrderConfirmationMail_result() {
24219
    }
24220
 
24221
    public getOrderConfirmationMail_result(
24222
      String success)
24223
    {
24224
      this();
24225
      this.success = success;
24226
    }
24227
 
24228
    /**
24229
     * Performs a deep copy on <i>other</i>.
24230
     */
24231
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
24232
      if (other.isSetSuccess()) {
24233
        this.success = other.success;
24234
      }
24235
    }
24236
 
24237
    public getOrderConfirmationMail_result deepCopy() {
24238
      return new getOrderConfirmationMail_result(this);
24239
    }
24240
 
24241
    @Override
24242
    public void clear() {
24243
      this.success = null;
24244
    }
24245
 
24246
    public String getSuccess() {
24247
      return this.success;
24248
    }
24249
 
24250
    public void setSuccess(String success) {
24251
      this.success = success;
24252
    }
24253
 
24254
    public void unsetSuccess() {
24255
      this.success = null;
24256
    }
24257
 
24258
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24259
    public boolean isSetSuccess() {
24260
      return this.success != null;
24261
    }
24262
 
24263
    public void setSuccessIsSet(boolean value) {
24264
      if (!value) {
24265
        this.success = null;
24266
      }
24267
    }
24268
 
24269
    public void setFieldValue(_Fields field, Object value) {
24270
      switch (field) {
24271
      case SUCCESS:
24272
        if (value == null) {
24273
          unsetSuccess();
24274
        } else {
24275
          setSuccess((String)value);
24276
        }
24277
        break;
24278
 
24279
      }
24280
    }
24281
 
24282
    public Object getFieldValue(_Fields field) {
24283
      switch (field) {
24284
      case SUCCESS:
24285
        return getSuccess();
24286
 
24287
      }
24288
      throw new IllegalStateException();
24289
    }
24290
 
24291
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24292
    public boolean isSet(_Fields field) {
24293
      if (field == null) {
24294
        throw new IllegalArgumentException();
24295
      }
24296
 
24297
      switch (field) {
24298
      case SUCCESS:
24299
        return isSetSuccess();
24300
      }
24301
      throw new IllegalStateException();
24302
    }
24303
 
24304
    @Override
24305
    public boolean equals(Object that) {
24306
      if (that == null)
24307
        return false;
24308
      if (that instanceof getOrderConfirmationMail_result)
24309
        return this.equals((getOrderConfirmationMail_result)that);
24310
      return false;
24311
    }
24312
 
24313
    public boolean equals(getOrderConfirmationMail_result that) {
24314
      if (that == null)
24315
        return false;
24316
 
24317
      boolean this_present_success = true && this.isSetSuccess();
24318
      boolean that_present_success = true && that.isSetSuccess();
24319
      if (this_present_success || that_present_success) {
24320
        if (!(this_present_success && that_present_success))
24321
          return false;
24322
        if (!this.success.equals(that.success))
24323
          return false;
24324
      }
24325
 
24326
      return true;
24327
    }
24328
 
24329
    @Override
24330
    public int hashCode() {
24331
      return 0;
24332
    }
24333
 
24334
    public int compareTo(getOrderConfirmationMail_result other) {
24335
      if (!getClass().equals(other.getClass())) {
24336
        return getClass().getName().compareTo(other.getClass().getName());
24337
      }
24338
 
24339
      int lastComparison = 0;
24340
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
24341
 
24342
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24343
      if (lastComparison != 0) {
24344
        return lastComparison;
24345
      }
24346
      if (isSetSuccess()) {
24347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24348
        if (lastComparison != 0) {
24349
          return lastComparison;
24350
        }
24351
      }
24352
      return 0;
24353
    }
24354
 
24355
    public _Fields fieldForId(int fieldId) {
24356
      return _Fields.findByThriftId(fieldId);
24357
    }
24358
 
24359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24360
      org.apache.thrift.protocol.TField field;
24361
      iprot.readStructBegin();
24362
      while (true)
24363
      {
24364
        field = iprot.readFieldBegin();
24365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24366
          break;
24367
        }
24368
        switch (field.id) {
24369
          case 0: // SUCCESS
24370
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24371
              this.success = iprot.readString();
24372
            } else { 
24373
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24374
            }
24375
            break;
24376
          default:
24377
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24378
        }
24379
        iprot.readFieldEnd();
24380
      }
24381
      iprot.readStructEnd();
24382
      validate();
24383
    }
24384
 
24385
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24386
      oprot.writeStructBegin(STRUCT_DESC);
24387
 
24388
      if (this.isSetSuccess()) {
24389
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24390
        oprot.writeString(this.success);
24391
        oprot.writeFieldEnd();
24392
      }
24393
      oprot.writeFieldStop();
24394
      oprot.writeStructEnd();
24395
    }
24396
 
24397
    @Override
24398
    public String toString() {
24399
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
24400
      boolean first = true;
24401
 
24402
      sb.append("success:");
24403
      if (this.success == null) {
24404
        sb.append("null");
24405
      } else {
24406
        sb.append(this.success);
24407
      }
24408
      first = false;
24409
      sb.append(")");
24410
      return sb.toString();
24411
    }
24412
 
24413
    public void validate() throws org.apache.thrift.TException {
24414
      // check for required fields
24415
    }
24416
 
24417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24418
      try {
24419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24420
      } catch (org.apache.thrift.TException te) {
24421
        throw new java.io.IOException(te);
24422
      }
24423
    }
24424
 
24425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24426
      try {
24427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24428
      } catch (org.apache.thrift.TException te) {
24429
        throw new java.io.IOException(te);
24430
      }
24431
    }
24432
 
24433
  }
24434
 
7221 kshitij.so 24435
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
24436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
24437
 
24438
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
24439
 
24440
    private long orderId; // required
24441
 
24442
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24443
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24444
      ORDER_ID((short)1, "orderId");
24445
 
24446
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24447
 
24448
      static {
24449
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24450
          byName.put(field.getFieldName(), field);
24451
        }
24452
      }
24453
 
24454
      /**
24455
       * Find the _Fields constant that matches fieldId, or null if its not found.
24456
       */
24457
      public static _Fields findByThriftId(int fieldId) {
24458
        switch(fieldId) {
24459
          case 1: // ORDER_ID
24460
            return ORDER_ID;
24461
          default:
24462
            return null;
24463
        }
24464
      }
24465
 
24466
      /**
24467
       * Find the _Fields constant that matches fieldId, throwing an exception
24468
       * if it is not found.
24469
       */
24470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24471
        _Fields fields = findByThriftId(fieldId);
24472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24473
        return fields;
24474
      }
24475
 
24476
      /**
24477
       * Find the _Fields constant that matches name, or null if its not found.
24478
       */
24479
      public static _Fields findByName(String name) {
24480
        return byName.get(name);
24481
      }
24482
 
24483
      private final short _thriftId;
24484
      private final String _fieldName;
24485
 
24486
      _Fields(short thriftId, String fieldName) {
24487
        _thriftId = thriftId;
24488
        _fieldName = fieldName;
24489
      }
24490
 
24491
      public short getThriftFieldId() {
24492
        return _thriftId;
24493
      }
24494
 
24495
      public String getFieldName() {
24496
        return _fieldName;
24497
      }
24498
    }
24499
 
24500
    // isset id assignments
24501
    private static final int __ORDERID_ISSET_ID = 0;
24502
    private BitSet __isset_bit_vector = new BitSet(1);
24503
 
24504
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24505
    static {
24506
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24507
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
24511
    }
24512
 
24513
    public getOrderDeliveryMail_args() {
24514
    }
24515
 
24516
    public getOrderDeliveryMail_args(
24517
      long orderId)
24518
    {
24519
      this();
24520
      this.orderId = orderId;
24521
      setOrderIdIsSet(true);
24522
    }
24523
 
24524
    /**
24525
     * Performs a deep copy on <i>other</i>.
24526
     */
24527
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
24528
      __isset_bit_vector.clear();
24529
      __isset_bit_vector.or(other.__isset_bit_vector);
24530
      this.orderId = other.orderId;
24531
    }
24532
 
24533
    public getOrderDeliveryMail_args deepCopy() {
24534
      return new getOrderDeliveryMail_args(this);
24535
    }
24536
 
24537
    @Override
24538
    public void clear() {
24539
      setOrderIdIsSet(false);
24540
      this.orderId = 0;
24541
    }
24542
 
24543
    public long getOrderId() {
24544
      return this.orderId;
24545
    }
24546
 
24547
    public void setOrderId(long orderId) {
24548
      this.orderId = orderId;
24549
      setOrderIdIsSet(true);
24550
    }
24551
 
24552
    public void unsetOrderId() {
24553
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24554
    }
24555
 
24556
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
24557
    public boolean isSetOrderId() {
24558
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24559
    }
24560
 
24561
    public void setOrderIdIsSet(boolean value) {
24562
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24563
    }
24564
 
24565
    public void setFieldValue(_Fields field, Object value) {
24566
      switch (field) {
24567
      case ORDER_ID:
24568
        if (value == null) {
24569
          unsetOrderId();
24570
        } else {
24571
          setOrderId((Long)value);
24572
        }
24573
        break;
24574
 
24575
      }
24576
    }
24577
 
24578
    public Object getFieldValue(_Fields field) {
24579
      switch (field) {
24580
      case ORDER_ID:
24581
        return Long.valueOf(getOrderId());
24582
 
24583
      }
24584
      throw new IllegalStateException();
24585
    }
24586
 
24587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24588
    public boolean isSet(_Fields field) {
24589
      if (field == null) {
24590
        throw new IllegalArgumentException();
24591
      }
24592
 
24593
      switch (field) {
24594
      case ORDER_ID:
24595
        return isSetOrderId();
24596
      }
24597
      throw new IllegalStateException();
24598
    }
24599
 
24600
    @Override
24601
    public boolean equals(Object that) {
24602
      if (that == null)
24603
        return false;
24604
      if (that instanceof getOrderDeliveryMail_args)
24605
        return this.equals((getOrderDeliveryMail_args)that);
24606
      return false;
24607
    }
24608
 
24609
    public boolean equals(getOrderDeliveryMail_args that) {
24610
      if (that == null)
24611
        return false;
24612
 
24613
      boolean this_present_orderId = true;
24614
      boolean that_present_orderId = true;
24615
      if (this_present_orderId || that_present_orderId) {
24616
        if (!(this_present_orderId && that_present_orderId))
24617
          return false;
24618
        if (this.orderId != that.orderId)
24619
          return false;
24620
      }
24621
 
24622
      return true;
24623
    }
24624
 
24625
    @Override
24626
    public int hashCode() {
24627
      return 0;
24628
    }
24629
 
24630
    public int compareTo(getOrderDeliveryMail_args other) {
24631
      if (!getClass().equals(other.getClass())) {
24632
        return getClass().getName().compareTo(other.getClass().getName());
24633
      }
24634
 
24635
      int lastComparison = 0;
24636
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
24637
 
24638
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
24639
      if (lastComparison != 0) {
24640
        return lastComparison;
24641
      }
24642
      if (isSetOrderId()) {
24643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24644
        if (lastComparison != 0) {
24645
          return lastComparison;
24646
        }
24647
      }
24648
      return 0;
24649
    }
24650
 
24651
    public _Fields fieldForId(int fieldId) {
24652
      return _Fields.findByThriftId(fieldId);
24653
    }
24654
 
24655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24656
      org.apache.thrift.protocol.TField field;
24657
      iprot.readStructBegin();
24658
      while (true)
24659
      {
24660
        field = iprot.readFieldBegin();
24661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24662
          break;
24663
        }
24664
        switch (field.id) {
24665
          case 1: // ORDER_ID
24666
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24667
              this.orderId = iprot.readI64();
24668
              setOrderIdIsSet(true);
24669
            } else { 
24670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24671
            }
24672
            break;
24673
          default:
24674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24675
        }
24676
        iprot.readFieldEnd();
24677
      }
24678
      iprot.readStructEnd();
24679
      validate();
24680
    }
24681
 
24682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24683
      validate();
24684
 
24685
      oprot.writeStructBegin(STRUCT_DESC);
24686
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24687
      oprot.writeI64(this.orderId);
24688
      oprot.writeFieldEnd();
24689
      oprot.writeFieldStop();
24690
      oprot.writeStructEnd();
24691
    }
24692
 
24693
    @Override
24694
    public String toString() {
24695
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
24696
      boolean first = true;
24697
 
24698
      sb.append("orderId:");
24699
      sb.append(this.orderId);
24700
      first = false;
24701
      sb.append(")");
24702
      return sb.toString();
24703
    }
24704
 
24705
    public void validate() throws org.apache.thrift.TException {
24706
      // check for required fields
24707
    }
24708
 
24709
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24710
      try {
24711
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24712
      } catch (org.apache.thrift.TException te) {
24713
        throw new java.io.IOException(te);
24714
      }
24715
    }
24716
 
24717
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24718
      try {
24719
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24720
        __isset_bit_vector = new BitSet(1);
24721
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24722
      } catch (org.apache.thrift.TException te) {
24723
        throw new java.io.IOException(te);
24724
      }
24725
    }
24726
 
24727
  }
24728
 
24729
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
24730
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
24731
 
24732
    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);
24733
 
24734
    private String success; // required
24735
 
24736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24738
      SUCCESS((short)0, "success");
24739
 
24740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24741
 
24742
      static {
24743
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24744
          byName.put(field.getFieldName(), field);
24745
        }
24746
      }
24747
 
24748
      /**
24749
       * Find the _Fields constant that matches fieldId, or null if its not found.
24750
       */
24751
      public static _Fields findByThriftId(int fieldId) {
24752
        switch(fieldId) {
24753
          case 0: // SUCCESS
24754
            return SUCCESS;
24755
          default:
24756
            return null;
24757
        }
24758
      }
24759
 
24760
      /**
24761
       * Find the _Fields constant that matches fieldId, throwing an exception
24762
       * if it is not found.
24763
       */
24764
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24765
        _Fields fields = findByThriftId(fieldId);
24766
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24767
        return fields;
24768
      }
24769
 
24770
      /**
24771
       * Find the _Fields constant that matches name, or null if its not found.
24772
       */
24773
      public static _Fields findByName(String name) {
24774
        return byName.get(name);
24775
      }
24776
 
24777
      private final short _thriftId;
24778
      private final String _fieldName;
24779
 
24780
      _Fields(short thriftId, String fieldName) {
24781
        _thriftId = thriftId;
24782
        _fieldName = fieldName;
24783
      }
24784
 
24785
      public short getThriftFieldId() {
24786
        return _thriftId;
24787
      }
24788
 
24789
      public String getFieldName() {
24790
        return _fieldName;
24791
      }
24792
    }
24793
 
24794
    // isset id assignments
24795
 
24796
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24797
    static {
24798
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24799
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24800
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
24803
    }
24804
 
24805
    public getOrderDeliveryMail_result() {
24806
    }
24807
 
24808
    public getOrderDeliveryMail_result(
24809
      String success)
24810
    {
24811
      this();
24812
      this.success = success;
24813
    }
24814
 
24815
    /**
24816
     * Performs a deep copy on <i>other</i>.
24817
     */
24818
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
24819
      if (other.isSetSuccess()) {
24820
        this.success = other.success;
24821
      }
24822
    }
24823
 
24824
    public getOrderDeliveryMail_result deepCopy() {
24825
      return new getOrderDeliveryMail_result(this);
24826
    }
24827
 
24828
    @Override
24829
    public void clear() {
24830
      this.success = null;
24831
    }
24832
 
24833
    public String getSuccess() {
24834
      return this.success;
24835
    }
24836
 
24837
    public void setSuccess(String success) {
24838
      this.success = success;
24839
    }
24840
 
24841
    public void unsetSuccess() {
24842
      this.success = null;
24843
    }
24844
 
24845
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24846
    public boolean isSetSuccess() {
24847
      return this.success != null;
24848
    }
24849
 
24850
    public void setSuccessIsSet(boolean value) {
24851
      if (!value) {
24852
        this.success = null;
24853
      }
24854
    }
24855
 
24856
    public void setFieldValue(_Fields field, Object value) {
24857
      switch (field) {
24858
      case SUCCESS:
24859
        if (value == null) {
24860
          unsetSuccess();
24861
        } else {
24862
          setSuccess((String)value);
24863
        }
24864
        break;
24865
 
24866
      }
24867
    }
24868
 
24869
    public Object getFieldValue(_Fields field) {
24870
      switch (field) {
24871
      case SUCCESS:
24872
        return getSuccess();
24873
 
24874
      }
24875
      throw new IllegalStateException();
24876
    }
24877
 
24878
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24879
    public boolean isSet(_Fields field) {
24880
      if (field == null) {
24881
        throw new IllegalArgumentException();
24882
      }
24883
 
24884
      switch (field) {
24885
      case SUCCESS:
24886
        return isSetSuccess();
24887
      }
24888
      throw new IllegalStateException();
24889
    }
24890
 
24891
    @Override
24892
    public boolean equals(Object that) {
24893
      if (that == null)
24894
        return false;
24895
      if (that instanceof getOrderDeliveryMail_result)
24896
        return this.equals((getOrderDeliveryMail_result)that);
24897
      return false;
24898
    }
24899
 
24900
    public boolean equals(getOrderDeliveryMail_result that) {
24901
      if (that == null)
24902
        return false;
24903
 
24904
      boolean this_present_success = true && this.isSetSuccess();
24905
      boolean that_present_success = true && that.isSetSuccess();
24906
      if (this_present_success || that_present_success) {
24907
        if (!(this_present_success && that_present_success))
24908
          return false;
24909
        if (!this.success.equals(that.success))
24910
          return false;
24911
      }
24912
 
24913
      return true;
24914
    }
24915
 
24916
    @Override
24917
    public int hashCode() {
24918
      return 0;
24919
    }
24920
 
24921
    public int compareTo(getOrderDeliveryMail_result other) {
24922
      if (!getClass().equals(other.getClass())) {
24923
        return getClass().getName().compareTo(other.getClass().getName());
24924
      }
24925
 
24926
      int lastComparison = 0;
24927
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
24928
 
24929
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24930
      if (lastComparison != 0) {
24931
        return lastComparison;
24932
      }
24933
      if (isSetSuccess()) {
24934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24935
        if (lastComparison != 0) {
24936
          return lastComparison;
24937
        }
24938
      }
24939
      return 0;
24940
    }
24941
 
24942
    public _Fields fieldForId(int fieldId) {
24943
      return _Fields.findByThriftId(fieldId);
24944
    }
24945
 
24946
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24947
      org.apache.thrift.protocol.TField field;
24948
      iprot.readStructBegin();
24949
      while (true)
24950
      {
24951
        field = iprot.readFieldBegin();
24952
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24953
          break;
24954
        }
24955
        switch (field.id) {
24956
          case 0: // SUCCESS
24957
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24958
              this.success = iprot.readString();
24959
            } else { 
24960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24961
            }
24962
            break;
24963
          default:
24964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24965
        }
24966
        iprot.readFieldEnd();
24967
      }
24968
      iprot.readStructEnd();
24969
      validate();
24970
    }
24971
 
24972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24973
      oprot.writeStructBegin(STRUCT_DESC);
24974
 
24975
      if (this.isSetSuccess()) {
24976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24977
        oprot.writeString(this.success);
24978
        oprot.writeFieldEnd();
24979
      }
24980
      oprot.writeFieldStop();
24981
      oprot.writeStructEnd();
24982
    }
24983
 
24984
    @Override
24985
    public String toString() {
24986
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
24987
      boolean first = true;
24988
 
24989
      sb.append("success:");
24990
      if (this.success == null) {
24991
        sb.append("null");
24992
      } else {
24993
        sb.append(this.success);
24994
      }
24995
      first = false;
24996
      sb.append(")");
24997
      return sb.toString();
24998
    }
24999
 
25000
    public void validate() throws org.apache.thrift.TException {
25001
      // check for required fields
25002
    }
25003
 
25004
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25005
      try {
25006
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25007
      } catch (org.apache.thrift.TException te) {
25008
        throw new java.io.IOException(te);
25009
      }
25010
    }
25011
 
25012
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25013
      try {
25014
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25015
      } catch (org.apache.thrift.TException te) {
25016
        throw new java.io.IOException(te);
25017
      }
25018
    }
25019
 
25020
  }
25021
 
7410 amar.kumar 25022
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
25023
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
25024
 
25025
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
25026
 
25027
    private String agentEmailId; // required
25028
 
25029
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25030
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25031
      AGENT_EMAIL_ID((short)1, "agentEmailId");
25032
 
25033
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25034
 
25035
      static {
25036
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25037
          byName.put(field.getFieldName(), field);
25038
        }
25039
      }
25040
 
25041
      /**
25042
       * Find the _Fields constant that matches fieldId, or null if its not found.
25043
       */
25044
      public static _Fields findByThriftId(int fieldId) {
25045
        switch(fieldId) {
25046
          case 1: // AGENT_EMAIL_ID
25047
            return AGENT_EMAIL_ID;
25048
          default:
25049
            return null;
25050
        }
25051
      }
25052
 
25053
      /**
25054
       * Find the _Fields constant that matches fieldId, throwing an exception
25055
       * if it is not found.
25056
       */
25057
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25058
        _Fields fields = findByThriftId(fieldId);
25059
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25060
        return fields;
25061
      }
25062
 
25063
      /**
25064
       * Find the _Fields constant that matches name, or null if its not found.
25065
       */
25066
      public static _Fields findByName(String name) {
25067
        return byName.get(name);
25068
      }
25069
 
25070
      private final short _thriftId;
25071
      private final String _fieldName;
25072
 
25073
      _Fields(short thriftId, String fieldName) {
25074
        _thriftId = thriftId;
25075
        _fieldName = fieldName;
25076
      }
25077
 
25078
      public short getThriftFieldId() {
25079
        return _thriftId;
25080
      }
25081
 
25082
      public String getFieldName() {
25083
        return _fieldName;
25084
      }
25085
    }
25086
 
25087
    // isset id assignments
25088
 
25089
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25090
    static {
25091
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25092
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25093
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25094
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25095
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
25096
    }
25097
 
25098
    public getWarehouseIdsForAgent_args() {
25099
    }
25100
 
25101
    public getWarehouseIdsForAgent_args(
25102
      String agentEmailId)
25103
    {
25104
      this();
25105
      this.agentEmailId = agentEmailId;
25106
    }
25107
 
25108
    /**
25109
     * Performs a deep copy on <i>other</i>.
25110
     */
25111
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
25112
      if (other.isSetAgentEmailId()) {
25113
        this.agentEmailId = other.agentEmailId;
25114
      }
25115
    }
25116
 
25117
    public getWarehouseIdsForAgent_args deepCopy() {
25118
      return new getWarehouseIdsForAgent_args(this);
25119
    }
25120
 
25121
    @Override
25122
    public void clear() {
25123
      this.agentEmailId = null;
25124
    }
25125
 
25126
    public String getAgentEmailId() {
25127
      return this.agentEmailId;
25128
    }
25129
 
25130
    public void setAgentEmailId(String agentEmailId) {
25131
      this.agentEmailId = agentEmailId;
25132
    }
25133
 
25134
    public void unsetAgentEmailId() {
25135
      this.agentEmailId = null;
25136
    }
25137
 
25138
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
25139
    public boolean isSetAgentEmailId() {
25140
      return this.agentEmailId != null;
25141
    }
25142
 
25143
    public void setAgentEmailIdIsSet(boolean value) {
25144
      if (!value) {
25145
        this.agentEmailId = null;
25146
      }
25147
    }
25148
 
25149
    public void setFieldValue(_Fields field, Object value) {
25150
      switch (field) {
25151
      case AGENT_EMAIL_ID:
25152
        if (value == null) {
25153
          unsetAgentEmailId();
25154
        } else {
25155
          setAgentEmailId((String)value);
25156
        }
25157
        break;
25158
 
25159
      }
25160
    }
25161
 
25162
    public Object getFieldValue(_Fields field) {
25163
      switch (field) {
25164
      case AGENT_EMAIL_ID:
25165
        return getAgentEmailId();
25166
 
25167
      }
25168
      throw new IllegalStateException();
25169
    }
25170
 
25171
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25172
    public boolean isSet(_Fields field) {
25173
      if (field == null) {
25174
        throw new IllegalArgumentException();
25175
      }
25176
 
25177
      switch (field) {
25178
      case AGENT_EMAIL_ID:
25179
        return isSetAgentEmailId();
25180
      }
25181
      throw new IllegalStateException();
25182
    }
25183
 
25184
    @Override
25185
    public boolean equals(Object that) {
25186
      if (that == null)
25187
        return false;
25188
      if (that instanceof getWarehouseIdsForAgent_args)
25189
        return this.equals((getWarehouseIdsForAgent_args)that);
25190
      return false;
25191
    }
25192
 
25193
    public boolean equals(getWarehouseIdsForAgent_args that) {
25194
      if (that == null)
25195
        return false;
25196
 
25197
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
25198
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
25199
      if (this_present_agentEmailId || that_present_agentEmailId) {
25200
        if (!(this_present_agentEmailId && that_present_agentEmailId))
25201
          return false;
25202
        if (!this.agentEmailId.equals(that.agentEmailId))
25203
          return false;
25204
      }
25205
 
25206
      return true;
25207
    }
25208
 
25209
    @Override
25210
    public int hashCode() {
25211
      return 0;
25212
    }
25213
 
25214
    public int compareTo(getWarehouseIdsForAgent_args other) {
25215
      if (!getClass().equals(other.getClass())) {
25216
        return getClass().getName().compareTo(other.getClass().getName());
25217
      }
25218
 
25219
      int lastComparison = 0;
25220
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
25221
 
25222
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
25223
      if (lastComparison != 0) {
25224
        return lastComparison;
25225
      }
25226
      if (isSetAgentEmailId()) {
25227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
25228
        if (lastComparison != 0) {
25229
          return lastComparison;
25230
        }
25231
      }
25232
      return 0;
25233
    }
25234
 
25235
    public _Fields fieldForId(int fieldId) {
25236
      return _Fields.findByThriftId(fieldId);
25237
    }
25238
 
25239
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25240
      org.apache.thrift.protocol.TField field;
25241
      iprot.readStructBegin();
25242
      while (true)
25243
      {
25244
        field = iprot.readFieldBegin();
25245
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25246
          break;
25247
        }
25248
        switch (field.id) {
25249
          case 1: // AGENT_EMAIL_ID
25250
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25251
              this.agentEmailId = iprot.readString();
25252
            } else { 
25253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25254
            }
25255
            break;
25256
          default:
25257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25258
        }
25259
        iprot.readFieldEnd();
25260
      }
25261
      iprot.readStructEnd();
25262
      validate();
25263
    }
25264
 
25265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25266
      validate();
25267
 
25268
      oprot.writeStructBegin(STRUCT_DESC);
25269
      if (this.agentEmailId != null) {
25270
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
25271
        oprot.writeString(this.agentEmailId);
25272
        oprot.writeFieldEnd();
25273
      }
25274
      oprot.writeFieldStop();
25275
      oprot.writeStructEnd();
25276
    }
25277
 
25278
    @Override
25279
    public String toString() {
25280
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
25281
      boolean first = true;
25282
 
25283
      sb.append("agentEmailId:");
25284
      if (this.agentEmailId == null) {
25285
        sb.append("null");
25286
      } else {
25287
        sb.append(this.agentEmailId);
25288
      }
25289
      first = false;
25290
      sb.append(")");
25291
      return sb.toString();
25292
    }
25293
 
25294
    public void validate() throws org.apache.thrift.TException {
25295
      // check for required fields
25296
    }
25297
 
25298
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25299
      try {
25300
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25301
      } catch (org.apache.thrift.TException te) {
25302
        throw new java.io.IOException(te);
25303
      }
25304
    }
25305
 
25306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25307
      try {
25308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25309
      } catch (org.apache.thrift.TException te) {
25310
        throw new java.io.IOException(te);
25311
      }
25312
    }
25313
 
25314
  }
25315
 
25316
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
25317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
25318
 
25319
    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);
25320
 
25321
    private List<Long> success; // required
25322
 
25323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25325
      SUCCESS((short)0, "success");
25326
 
25327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25328
 
25329
      static {
25330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25331
          byName.put(field.getFieldName(), field);
25332
        }
25333
      }
25334
 
25335
      /**
25336
       * Find the _Fields constant that matches fieldId, or null if its not found.
25337
       */
25338
      public static _Fields findByThriftId(int fieldId) {
25339
        switch(fieldId) {
25340
          case 0: // SUCCESS
25341
            return SUCCESS;
25342
          default:
25343
            return null;
25344
        }
25345
      }
25346
 
25347
      /**
25348
       * Find the _Fields constant that matches fieldId, throwing an exception
25349
       * if it is not found.
25350
       */
25351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25352
        _Fields fields = findByThriftId(fieldId);
25353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25354
        return fields;
25355
      }
25356
 
25357
      /**
25358
       * Find the _Fields constant that matches name, or null if its not found.
25359
       */
25360
      public static _Fields findByName(String name) {
25361
        return byName.get(name);
25362
      }
25363
 
25364
      private final short _thriftId;
25365
      private final String _fieldName;
25366
 
25367
      _Fields(short thriftId, String fieldName) {
25368
        _thriftId = thriftId;
25369
        _fieldName = fieldName;
25370
      }
25371
 
25372
      public short getThriftFieldId() {
25373
        return _thriftId;
25374
      }
25375
 
25376
      public String getFieldName() {
25377
        return _fieldName;
25378
      }
25379
    }
25380
 
25381
    // isset id assignments
25382
 
25383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25384
    static {
25385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25386
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25387
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25388
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
25389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
25391
    }
25392
 
25393
    public getWarehouseIdsForAgent_result() {
25394
    }
25395
 
25396
    public getWarehouseIdsForAgent_result(
25397
      List<Long> success)
25398
    {
25399
      this();
25400
      this.success = success;
25401
    }
25402
 
25403
    /**
25404
     * Performs a deep copy on <i>other</i>.
25405
     */
25406
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
25407
      if (other.isSetSuccess()) {
25408
        List<Long> __this__success = new ArrayList<Long>();
25409
        for (Long other_element : other.success) {
25410
          __this__success.add(other_element);
25411
        }
25412
        this.success = __this__success;
25413
      }
25414
    }
25415
 
25416
    public getWarehouseIdsForAgent_result deepCopy() {
25417
      return new getWarehouseIdsForAgent_result(this);
25418
    }
25419
 
25420
    @Override
25421
    public void clear() {
25422
      this.success = null;
25423
    }
25424
 
25425
    public int getSuccessSize() {
25426
      return (this.success == null) ? 0 : this.success.size();
25427
    }
25428
 
25429
    public java.util.Iterator<Long> getSuccessIterator() {
25430
      return (this.success == null) ? null : this.success.iterator();
25431
    }
25432
 
25433
    public void addToSuccess(long elem) {
25434
      if (this.success == null) {
25435
        this.success = new ArrayList<Long>();
25436
      }
25437
      this.success.add(elem);
25438
    }
25439
 
25440
    public List<Long> getSuccess() {
25441
      return this.success;
25442
    }
25443
 
25444
    public void setSuccess(List<Long> success) {
25445
      this.success = success;
25446
    }
25447
 
25448
    public void unsetSuccess() {
25449
      this.success = null;
25450
    }
25451
 
25452
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25453
    public boolean isSetSuccess() {
25454
      return this.success != null;
25455
    }
25456
 
25457
    public void setSuccessIsSet(boolean value) {
25458
      if (!value) {
25459
        this.success = null;
25460
      }
25461
    }
25462
 
25463
    public void setFieldValue(_Fields field, Object value) {
25464
      switch (field) {
25465
      case SUCCESS:
25466
        if (value == null) {
25467
          unsetSuccess();
25468
        } else {
25469
          setSuccess((List<Long>)value);
25470
        }
25471
        break;
25472
 
25473
      }
25474
    }
25475
 
25476
    public Object getFieldValue(_Fields field) {
25477
      switch (field) {
25478
      case SUCCESS:
25479
        return getSuccess();
25480
 
25481
      }
25482
      throw new IllegalStateException();
25483
    }
25484
 
25485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25486
    public boolean isSet(_Fields field) {
25487
      if (field == null) {
25488
        throw new IllegalArgumentException();
25489
      }
25490
 
25491
      switch (field) {
25492
      case SUCCESS:
25493
        return isSetSuccess();
25494
      }
25495
      throw new IllegalStateException();
25496
    }
25497
 
25498
    @Override
25499
    public boolean equals(Object that) {
25500
      if (that == null)
25501
        return false;
25502
      if (that instanceof getWarehouseIdsForAgent_result)
25503
        return this.equals((getWarehouseIdsForAgent_result)that);
25504
      return false;
25505
    }
25506
 
25507
    public boolean equals(getWarehouseIdsForAgent_result that) {
25508
      if (that == null)
25509
        return false;
25510
 
25511
      boolean this_present_success = true && this.isSetSuccess();
25512
      boolean that_present_success = true && that.isSetSuccess();
25513
      if (this_present_success || that_present_success) {
25514
        if (!(this_present_success && that_present_success))
25515
          return false;
25516
        if (!this.success.equals(that.success))
25517
          return false;
25518
      }
25519
 
25520
      return true;
25521
    }
25522
 
25523
    @Override
25524
    public int hashCode() {
25525
      return 0;
25526
    }
25527
 
25528
    public int compareTo(getWarehouseIdsForAgent_result other) {
25529
      if (!getClass().equals(other.getClass())) {
25530
        return getClass().getName().compareTo(other.getClass().getName());
25531
      }
25532
 
25533
      int lastComparison = 0;
25534
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
25535
 
25536
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25537
      if (lastComparison != 0) {
25538
        return lastComparison;
25539
      }
25540
      if (isSetSuccess()) {
25541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25542
        if (lastComparison != 0) {
25543
          return lastComparison;
25544
        }
25545
      }
25546
      return 0;
25547
    }
25548
 
25549
    public _Fields fieldForId(int fieldId) {
25550
      return _Fields.findByThriftId(fieldId);
25551
    }
25552
 
25553
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25554
      org.apache.thrift.protocol.TField field;
25555
      iprot.readStructBegin();
25556
      while (true)
25557
      {
25558
        field = iprot.readFieldBegin();
25559
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25560
          break;
25561
        }
25562
        switch (field.id) {
25563
          case 0: // SUCCESS
25564
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25565
              {
25566
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
25567
                this.success = new ArrayList<Long>(_list69.size);
25568
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
25569
                {
25570
                  long _elem71; // required
25571
                  _elem71 = iprot.readI64();
25572
                  this.success.add(_elem71);
25573
                }
25574
                iprot.readListEnd();
25575
              }
25576
            } else { 
25577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25578
            }
25579
            break;
25580
          default:
25581
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25582
        }
25583
        iprot.readFieldEnd();
25584
      }
25585
      iprot.readStructEnd();
25586
      validate();
25587
    }
25588
 
25589
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25590
      oprot.writeStructBegin(STRUCT_DESC);
25591
 
25592
      if (this.isSetSuccess()) {
25593
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25594
        {
25595
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
25596
          for (long _iter72 : this.success)
25597
          {
25598
            oprot.writeI64(_iter72);
25599
          }
25600
          oprot.writeListEnd();
25601
        }
25602
        oprot.writeFieldEnd();
25603
      }
25604
      oprot.writeFieldStop();
25605
      oprot.writeStructEnd();
25606
    }
25607
 
25608
    @Override
25609
    public String toString() {
25610
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
25611
      boolean first = true;
25612
 
25613
      sb.append("success:");
25614
      if (this.success == null) {
25615
        sb.append("null");
25616
      } else {
25617
        sb.append(this.success);
25618
      }
25619
      first = false;
25620
      sb.append(")");
25621
      return sb.toString();
25622
    }
25623
 
25624
    public void validate() throws org.apache.thrift.TException {
25625
      // check for required fields
25626
    }
25627
 
25628
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25629
      try {
25630
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25631
      } catch (org.apache.thrift.TException te) {
25632
        throw new java.io.IOException(te);
25633
      }
25634
    }
25635
 
25636
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25637
      try {
25638
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25639
      } catch (org.apache.thrift.TException te) {
25640
        throw new java.io.IOException(te);
25641
      }
25642
    }
25643
 
25644
  }
25645
 
12691 manish.sha 25646
  public static class saveUserSmsForSending_args implements org.apache.thrift.TBase<saveUserSmsForSending_args, saveUserSmsForSending_args._Fields>, java.io.Serializable, Cloneable   {
25647
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_args");
25648
 
25649
    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);
25650
    private static final org.apache.thrift.protocol.TField MOBILE_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNo", org.apache.thrift.protocol.TType.STRING, (short)2);
25651
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);
25652
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
25653
 
25654
    private long userId; // required
25655
    private String mobileNo; // required
25656
    private String text; // required
25657
    private SmsType type; // required
25658
 
25659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25661
      USER_ID((short)1, "userId"),
25662
      MOBILE_NO((short)2, "mobileNo"),
25663
      TEXT((short)3, "text"),
25664
      /**
25665
       * 
25666
       * @see SmsType
25667
       */
25668
      TYPE((short)4, "type");
25669
 
25670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25671
 
25672
      static {
25673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25674
          byName.put(field.getFieldName(), field);
25675
        }
25676
      }
25677
 
25678
      /**
25679
       * Find the _Fields constant that matches fieldId, or null if its not found.
25680
       */
25681
      public static _Fields findByThriftId(int fieldId) {
25682
        switch(fieldId) {
25683
          case 1: // USER_ID
25684
            return USER_ID;
25685
          case 2: // MOBILE_NO
25686
            return MOBILE_NO;
25687
          case 3: // TEXT
25688
            return TEXT;
25689
          case 4: // TYPE
25690
            return TYPE;
25691
          default:
25692
            return null;
25693
        }
25694
      }
25695
 
25696
      /**
25697
       * Find the _Fields constant that matches fieldId, throwing an exception
25698
       * if it is not found.
25699
       */
25700
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25701
        _Fields fields = findByThriftId(fieldId);
25702
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25703
        return fields;
25704
      }
25705
 
25706
      /**
25707
       * Find the _Fields constant that matches name, or null if its not found.
25708
       */
25709
      public static _Fields findByName(String name) {
25710
        return byName.get(name);
25711
      }
25712
 
25713
      private final short _thriftId;
25714
      private final String _fieldName;
25715
 
25716
      _Fields(short thriftId, String fieldName) {
25717
        _thriftId = thriftId;
25718
        _fieldName = fieldName;
25719
      }
25720
 
25721
      public short getThriftFieldId() {
25722
        return _thriftId;
25723
      }
25724
 
25725
      public String getFieldName() {
25726
        return _fieldName;
25727
      }
25728
    }
25729
 
25730
    // isset id assignments
25731
    private static final int __USERID_ISSET_ID = 0;
25732
    private BitSet __isset_bit_vector = new BitSet(1);
25733
 
25734
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25735
    static {
25736
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25737
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25739
      tmpMap.put(_Fields.MOBILE_NO, new org.apache.thrift.meta_data.FieldMetaData("mobileNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25740
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25741
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25742
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25743
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25744
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SmsType.class)));
25745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_args.class, metaDataMap);
25747
    }
25748
 
25749
    public saveUserSmsForSending_args() {
25750
    }
25751
 
25752
    public saveUserSmsForSending_args(
25753
      long userId,
25754
      String mobileNo,
25755
      String text,
25756
      SmsType type)
25757
    {
25758
      this();
25759
      this.userId = userId;
25760
      setUserIdIsSet(true);
25761
      this.mobileNo = mobileNo;
25762
      this.text = text;
25763
      this.type = type;
25764
    }
25765
 
25766
    /**
25767
     * Performs a deep copy on <i>other</i>.
25768
     */
25769
    public saveUserSmsForSending_args(saveUserSmsForSending_args other) {
25770
      __isset_bit_vector.clear();
25771
      __isset_bit_vector.or(other.__isset_bit_vector);
25772
      this.userId = other.userId;
25773
      if (other.isSetMobileNo()) {
25774
        this.mobileNo = other.mobileNo;
25775
      }
25776
      if (other.isSetText()) {
25777
        this.text = other.text;
25778
      }
25779
      if (other.isSetType()) {
25780
        this.type = other.type;
25781
      }
25782
    }
25783
 
25784
    public saveUserSmsForSending_args deepCopy() {
25785
      return new saveUserSmsForSending_args(this);
25786
    }
25787
 
25788
    @Override
25789
    public void clear() {
25790
      setUserIdIsSet(false);
25791
      this.userId = 0;
25792
      this.mobileNo = null;
25793
      this.text = null;
25794
      this.type = null;
25795
    }
25796
 
25797
    public long getUserId() {
25798
      return this.userId;
25799
    }
25800
 
25801
    public void setUserId(long userId) {
25802
      this.userId = userId;
25803
      setUserIdIsSet(true);
25804
    }
25805
 
25806
    public void unsetUserId() {
25807
      __isset_bit_vector.clear(__USERID_ISSET_ID);
25808
    }
25809
 
25810
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
25811
    public boolean isSetUserId() {
25812
      return __isset_bit_vector.get(__USERID_ISSET_ID);
25813
    }
25814
 
25815
    public void setUserIdIsSet(boolean value) {
25816
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
25817
    }
25818
 
25819
    public String getMobileNo() {
25820
      return this.mobileNo;
25821
    }
25822
 
25823
    public void setMobileNo(String mobileNo) {
25824
      this.mobileNo = mobileNo;
25825
    }
25826
 
25827
    public void unsetMobileNo() {
25828
      this.mobileNo = null;
25829
    }
25830
 
25831
    /** Returns true if field mobileNo is set (has been assigned a value) and false otherwise */
25832
    public boolean isSetMobileNo() {
25833
      return this.mobileNo != null;
25834
    }
25835
 
25836
    public void setMobileNoIsSet(boolean value) {
25837
      if (!value) {
25838
        this.mobileNo = null;
25839
      }
25840
    }
25841
 
25842
    public String getText() {
25843
      return this.text;
25844
    }
25845
 
25846
    public void setText(String text) {
25847
      this.text = text;
25848
    }
25849
 
25850
    public void unsetText() {
25851
      this.text = null;
25852
    }
25853
 
25854
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
25855
    public boolean isSetText() {
25856
      return this.text != null;
25857
    }
25858
 
25859
    public void setTextIsSet(boolean value) {
25860
      if (!value) {
25861
        this.text = null;
25862
      }
25863
    }
25864
 
25865
    /**
25866
     * 
25867
     * @see SmsType
25868
     */
25869
    public SmsType getType() {
25870
      return this.type;
25871
    }
25872
 
25873
    /**
25874
     * 
25875
     * @see SmsType
25876
     */
25877
    public void setType(SmsType type) {
25878
      this.type = type;
25879
    }
25880
 
25881
    public void unsetType() {
25882
      this.type = null;
25883
    }
25884
 
25885
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
25886
    public boolean isSetType() {
25887
      return this.type != null;
25888
    }
25889
 
25890
    public void setTypeIsSet(boolean value) {
25891
      if (!value) {
25892
        this.type = null;
25893
      }
25894
    }
25895
 
25896
    public void setFieldValue(_Fields field, Object value) {
25897
      switch (field) {
25898
      case USER_ID:
25899
        if (value == null) {
25900
          unsetUserId();
25901
        } else {
25902
          setUserId((Long)value);
25903
        }
25904
        break;
25905
 
25906
      case MOBILE_NO:
25907
        if (value == null) {
25908
          unsetMobileNo();
25909
        } else {
25910
          setMobileNo((String)value);
25911
        }
25912
        break;
25913
 
25914
      case TEXT:
25915
        if (value == null) {
25916
          unsetText();
25917
        } else {
25918
          setText((String)value);
25919
        }
25920
        break;
25921
 
25922
      case TYPE:
25923
        if (value == null) {
25924
          unsetType();
25925
        } else {
25926
          setType((SmsType)value);
25927
        }
25928
        break;
25929
 
25930
      }
25931
    }
25932
 
25933
    public Object getFieldValue(_Fields field) {
25934
      switch (field) {
25935
      case USER_ID:
25936
        return Long.valueOf(getUserId());
25937
 
25938
      case MOBILE_NO:
25939
        return getMobileNo();
25940
 
25941
      case TEXT:
25942
        return getText();
25943
 
25944
      case TYPE:
25945
        return getType();
25946
 
25947
      }
25948
      throw new IllegalStateException();
25949
    }
25950
 
25951
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25952
    public boolean isSet(_Fields field) {
25953
      if (field == null) {
25954
        throw new IllegalArgumentException();
25955
      }
25956
 
25957
      switch (field) {
25958
      case USER_ID:
25959
        return isSetUserId();
25960
      case MOBILE_NO:
25961
        return isSetMobileNo();
25962
      case TEXT:
25963
        return isSetText();
25964
      case TYPE:
25965
        return isSetType();
25966
      }
25967
      throw new IllegalStateException();
25968
    }
25969
 
25970
    @Override
25971
    public boolean equals(Object that) {
25972
      if (that == null)
25973
        return false;
25974
      if (that instanceof saveUserSmsForSending_args)
25975
        return this.equals((saveUserSmsForSending_args)that);
25976
      return false;
25977
    }
25978
 
25979
    public boolean equals(saveUserSmsForSending_args that) {
25980
      if (that == null)
25981
        return false;
25982
 
25983
      boolean this_present_userId = true;
25984
      boolean that_present_userId = true;
25985
      if (this_present_userId || that_present_userId) {
25986
        if (!(this_present_userId && that_present_userId))
25987
          return false;
25988
        if (this.userId != that.userId)
25989
          return false;
25990
      }
25991
 
25992
      boolean this_present_mobileNo = true && this.isSetMobileNo();
25993
      boolean that_present_mobileNo = true && that.isSetMobileNo();
25994
      if (this_present_mobileNo || that_present_mobileNo) {
25995
        if (!(this_present_mobileNo && that_present_mobileNo))
25996
          return false;
25997
        if (!this.mobileNo.equals(that.mobileNo))
25998
          return false;
25999
      }
26000
 
26001
      boolean this_present_text = true && this.isSetText();
26002
      boolean that_present_text = true && that.isSetText();
26003
      if (this_present_text || that_present_text) {
26004
        if (!(this_present_text && that_present_text))
26005
          return false;
26006
        if (!this.text.equals(that.text))
26007
          return false;
26008
      }
26009
 
26010
      boolean this_present_type = true && this.isSetType();
26011
      boolean that_present_type = true && that.isSetType();
26012
      if (this_present_type || that_present_type) {
26013
        if (!(this_present_type && that_present_type))
26014
          return false;
26015
        if (!this.type.equals(that.type))
26016
          return false;
26017
      }
26018
 
26019
      return true;
26020
    }
26021
 
26022
    @Override
26023
    public int hashCode() {
26024
      return 0;
26025
    }
26026
 
26027
    public int compareTo(saveUserSmsForSending_args other) {
26028
      if (!getClass().equals(other.getClass())) {
26029
        return getClass().getName().compareTo(other.getClass().getName());
26030
      }
26031
 
26032
      int lastComparison = 0;
26033
      saveUserSmsForSending_args typedOther = (saveUserSmsForSending_args)other;
26034
 
26035
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
26036
      if (lastComparison != 0) {
26037
        return lastComparison;
26038
      }
26039
      if (isSetUserId()) {
26040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
26041
        if (lastComparison != 0) {
26042
          return lastComparison;
26043
        }
26044
      }
26045
      lastComparison = Boolean.valueOf(isSetMobileNo()).compareTo(typedOther.isSetMobileNo());
26046
      if (lastComparison != 0) {
26047
        return lastComparison;
26048
      }
26049
      if (isSetMobileNo()) {
26050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNo, typedOther.mobileNo);
26051
        if (lastComparison != 0) {
26052
          return lastComparison;
26053
        }
26054
      }
26055
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
26056
      if (lastComparison != 0) {
26057
        return lastComparison;
26058
      }
26059
      if (isSetText()) {
26060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
26061
        if (lastComparison != 0) {
26062
          return lastComparison;
26063
        }
26064
      }
26065
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
26066
      if (lastComparison != 0) {
26067
        return lastComparison;
26068
      }
26069
      if (isSetType()) {
26070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
26071
        if (lastComparison != 0) {
26072
          return lastComparison;
26073
        }
26074
      }
26075
      return 0;
26076
    }
26077
 
26078
    public _Fields fieldForId(int fieldId) {
26079
      return _Fields.findByThriftId(fieldId);
26080
    }
26081
 
26082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26083
      org.apache.thrift.protocol.TField field;
26084
      iprot.readStructBegin();
26085
      while (true)
26086
      {
26087
        field = iprot.readFieldBegin();
26088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26089
          break;
26090
        }
26091
        switch (field.id) {
26092
          case 1: // USER_ID
26093
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26094
              this.userId = iprot.readI64();
26095
              setUserIdIsSet(true);
26096
            } else { 
26097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26098
            }
26099
            break;
26100
          case 2: // MOBILE_NO
26101
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26102
              this.mobileNo = iprot.readString();
26103
            } else { 
26104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26105
            }
26106
            break;
26107
          case 3: // TEXT
26108
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26109
              this.text = iprot.readString();
26110
            } else { 
26111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26112
            }
26113
            break;
26114
          case 4: // TYPE
26115
            if (field.type == org.apache.thrift.protocol.TType.I32) {
26116
              this.type = SmsType.findByValue(iprot.readI32());
26117
            } else { 
26118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26119
            }
26120
            break;
26121
          default:
26122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26123
        }
26124
        iprot.readFieldEnd();
26125
      }
26126
      iprot.readStructEnd();
26127
      validate();
26128
    }
26129
 
26130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26131
      validate();
26132
 
26133
      oprot.writeStructBegin(STRUCT_DESC);
26134
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
26135
      oprot.writeI64(this.userId);
26136
      oprot.writeFieldEnd();
26137
      if (this.mobileNo != null) {
26138
        oprot.writeFieldBegin(MOBILE_NO_FIELD_DESC);
26139
        oprot.writeString(this.mobileNo);
26140
        oprot.writeFieldEnd();
26141
      }
26142
      if (this.text != null) {
26143
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
26144
        oprot.writeString(this.text);
26145
        oprot.writeFieldEnd();
26146
      }
26147
      if (this.type != null) {
26148
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
26149
        oprot.writeI32(this.type.getValue());
26150
        oprot.writeFieldEnd();
26151
      }
26152
      oprot.writeFieldStop();
26153
      oprot.writeStructEnd();
26154
    }
26155
 
26156
    @Override
26157
    public String toString() {
26158
      StringBuilder sb = new StringBuilder("saveUserSmsForSending_args(");
26159
      boolean first = true;
26160
 
26161
      sb.append("userId:");
26162
      sb.append(this.userId);
26163
      first = false;
26164
      if (!first) sb.append(", ");
26165
      sb.append("mobileNo:");
26166
      if (this.mobileNo == null) {
26167
        sb.append("null");
26168
      } else {
26169
        sb.append(this.mobileNo);
26170
      }
26171
      first = false;
26172
      if (!first) sb.append(", ");
26173
      sb.append("text:");
26174
      if (this.text == null) {
26175
        sb.append("null");
26176
      } else {
26177
        sb.append(this.text);
26178
      }
26179
      first = false;
26180
      if (!first) sb.append(", ");
26181
      sb.append("type:");
26182
      if (this.type == null) {
26183
        sb.append("null");
26184
      } else {
26185
        sb.append(this.type);
26186
      }
26187
      first = false;
26188
      sb.append(")");
26189
      return sb.toString();
26190
    }
26191
 
26192
    public void validate() throws org.apache.thrift.TException {
26193
      // check for required fields
26194
    }
26195
 
26196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26197
      try {
26198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26199
      } catch (org.apache.thrift.TException te) {
26200
        throw new java.io.IOException(te);
26201
      }
26202
    }
26203
 
26204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26205
      try {
26206
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26207
        __isset_bit_vector = new BitSet(1);
26208
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26209
      } catch (org.apache.thrift.TException te) {
26210
        throw new java.io.IOException(te);
26211
      }
26212
    }
26213
 
26214
  }
26215
 
26216
  public static class saveUserSmsForSending_result implements org.apache.thrift.TBase<saveUserSmsForSending_result, saveUserSmsForSending_result._Fields>, java.io.Serializable, Cloneable   {
26217
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_result");
26218
 
26219
    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);
26220
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26221
 
26222
    private long success; // required
26223
    private HelperServiceException se; // required
26224
 
26225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26227
      SUCCESS((short)0, "success"),
26228
      SE((short)1, "se");
26229
 
26230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26231
 
26232
      static {
26233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26234
          byName.put(field.getFieldName(), field);
26235
        }
26236
      }
26237
 
26238
      /**
26239
       * Find the _Fields constant that matches fieldId, or null if its not found.
26240
       */
26241
      public static _Fields findByThriftId(int fieldId) {
26242
        switch(fieldId) {
26243
          case 0: // SUCCESS
26244
            return SUCCESS;
26245
          case 1: // SE
26246
            return SE;
26247
          default:
26248
            return null;
26249
        }
26250
      }
26251
 
26252
      /**
26253
       * Find the _Fields constant that matches fieldId, throwing an exception
26254
       * if it is not found.
26255
       */
26256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26257
        _Fields fields = findByThriftId(fieldId);
26258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26259
        return fields;
26260
      }
26261
 
26262
      /**
26263
       * Find the _Fields constant that matches name, or null if its not found.
26264
       */
26265
      public static _Fields findByName(String name) {
26266
        return byName.get(name);
26267
      }
26268
 
26269
      private final short _thriftId;
26270
      private final String _fieldName;
26271
 
26272
      _Fields(short thriftId, String fieldName) {
26273
        _thriftId = thriftId;
26274
        _fieldName = fieldName;
26275
      }
26276
 
26277
      public short getThriftFieldId() {
26278
        return _thriftId;
26279
      }
26280
 
26281
      public String getFieldName() {
26282
        return _fieldName;
26283
      }
26284
    }
26285
 
26286
    // isset id assignments
26287
    private static final int __SUCCESS_ISSET_ID = 0;
26288
    private BitSet __isset_bit_vector = new BitSet(1);
26289
 
26290
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26291
    static {
26292
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26293
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26294
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26295
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_result.class, metaDataMap);
26299
    }
26300
 
26301
    public saveUserSmsForSending_result() {
26302
    }
26303
 
26304
    public saveUserSmsForSending_result(
26305
      long success,
26306
      HelperServiceException se)
26307
    {
26308
      this();
26309
      this.success = success;
26310
      setSuccessIsSet(true);
26311
      this.se = se;
26312
    }
26313
 
26314
    /**
26315
     * Performs a deep copy on <i>other</i>.
26316
     */
26317
    public saveUserSmsForSending_result(saveUserSmsForSending_result other) {
26318
      __isset_bit_vector.clear();
26319
      __isset_bit_vector.or(other.__isset_bit_vector);
26320
      this.success = other.success;
26321
      if (other.isSetSe()) {
26322
        this.se = new HelperServiceException(other.se);
26323
      }
26324
    }
26325
 
26326
    public saveUserSmsForSending_result deepCopy() {
26327
      return new saveUserSmsForSending_result(this);
26328
    }
26329
 
26330
    @Override
26331
    public void clear() {
26332
      setSuccessIsSet(false);
26333
      this.success = 0;
26334
      this.se = null;
26335
    }
26336
 
26337
    public long getSuccess() {
26338
      return this.success;
26339
    }
26340
 
26341
    public void setSuccess(long success) {
26342
      this.success = success;
26343
      setSuccessIsSet(true);
26344
    }
26345
 
26346
    public void unsetSuccess() {
26347
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
26348
    }
26349
 
26350
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26351
    public boolean isSetSuccess() {
26352
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
26353
    }
26354
 
26355
    public void setSuccessIsSet(boolean value) {
26356
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
26357
    }
26358
 
26359
    public HelperServiceException getSe() {
26360
      return this.se;
26361
    }
26362
 
26363
    public void setSe(HelperServiceException se) {
26364
      this.se = se;
26365
    }
26366
 
26367
    public void unsetSe() {
26368
      this.se = null;
26369
    }
26370
 
26371
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
26372
    public boolean isSetSe() {
26373
      return this.se != null;
26374
    }
26375
 
26376
    public void setSeIsSet(boolean value) {
26377
      if (!value) {
26378
        this.se = null;
26379
      }
26380
    }
26381
 
26382
    public void setFieldValue(_Fields field, Object value) {
26383
      switch (field) {
26384
      case SUCCESS:
26385
        if (value == null) {
26386
          unsetSuccess();
26387
        } else {
26388
          setSuccess((Long)value);
26389
        }
26390
        break;
26391
 
26392
      case SE:
26393
        if (value == null) {
26394
          unsetSe();
26395
        } else {
26396
          setSe((HelperServiceException)value);
26397
        }
26398
        break;
26399
 
26400
      }
26401
    }
26402
 
26403
    public Object getFieldValue(_Fields field) {
26404
      switch (field) {
26405
      case SUCCESS:
26406
        return Long.valueOf(getSuccess());
26407
 
26408
      case SE:
26409
        return getSe();
26410
 
26411
      }
26412
      throw new IllegalStateException();
26413
    }
26414
 
26415
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26416
    public boolean isSet(_Fields field) {
26417
      if (field == null) {
26418
        throw new IllegalArgumentException();
26419
      }
26420
 
26421
      switch (field) {
26422
      case SUCCESS:
26423
        return isSetSuccess();
26424
      case SE:
26425
        return isSetSe();
26426
      }
26427
      throw new IllegalStateException();
26428
    }
26429
 
26430
    @Override
26431
    public boolean equals(Object that) {
26432
      if (that == null)
26433
        return false;
26434
      if (that instanceof saveUserSmsForSending_result)
26435
        return this.equals((saveUserSmsForSending_result)that);
26436
      return false;
26437
    }
26438
 
26439
    public boolean equals(saveUserSmsForSending_result that) {
26440
      if (that == null)
26441
        return false;
26442
 
26443
      boolean this_present_success = true;
26444
      boolean that_present_success = true;
26445
      if (this_present_success || that_present_success) {
26446
        if (!(this_present_success && that_present_success))
26447
          return false;
26448
        if (this.success != that.success)
26449
          return false;
26450
      }
26451
 
26452
      boolean this_present_se = true && this.isSetSe();
26453
      boolean that_present_se = true && that.isSetSe();
26454
      if (this_present_se || that_present_se) {
26455
        if (!(this_present_se && that_present_se))
26456
          return false;
26457
        if (!this.se.equals(that.se))
26458
          return false;
26459
      }
26460
 
26461
      return true;
26462
    }
26463
 
26464
    @Override
26465
    public int hashCode() {
26466
      return 0;
26467
    }
26468
 
26469
    public int compareTo(saveUserSmsForSending_result other) {
26470
      if (!getClass().equals(other.getClass())) {
26471
        return getClass().getName().compareTo(other.getClass().getName());
26472
      }
26473
 
26474
      int lastComparison = 0;
26475
      saveUserSmsForSending_result typedOther = (saveUserSmsForSending_result)other;
26476
 
26477
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26478
      if (lastComparison != 0) {
26479
        return lastComparison;
26480
      }
26481
      if (isSetSuccess()) {
26482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26483
        if (lastComparison != 0) {
26484
          return lastComparison;
26485
        }
26486
      }
26487
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
26488
      if (lastComparison != 0) {
26489
        return lastComparison;
26490
      }
26491
      if (isSetSe()) {
26492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
26493
        if (lastComparison != 0) {
26494
          return lastComparison;
26495
        }
26496
      }
26497
      return 0;
26498
    }
26499
 
26500
    public _Fields fieldForId(int fieldId) {
26501
      return _Fields.findByThriftId(fieldId);
26502
    }
26503
 
26504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26505
      org.apache.thrift.protocol.TField field;
26506
      iprot.readStructBegin();
26507
      while (true)
26508
      {
26509
        field = iprot.readFieldBegin();
26510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26511
          break;
26512
        }
26513
        switch (field.id) {
26514
          case 0: // SUCCESS
26515
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26516
              this.success = iprot.readI64();
26517
              setSuccessIsSet(true);
26518
            } else { 
26519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26520
            }
26521
            break;
26522
          case 1: // SE
26523
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26524
              this.se = new HelperServiceException();
26525
              this.se.read(iprot);
26526
            } else { 
26527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26528
            }
26529
            break;
26530
          default:
26531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26532
        }
26533
        iprot.readFieldEnd();
26534
      }
26535
      iprot.readStructEnd();
26536
      validate();
26537
    }
26538
 
26539
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26540
      oprot.writeStructBegin(STRUCT_DESC);
26541
 
26542
      if (this.isSetSuccess()) {
26543
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26544
        oprot.writeI64(this.success);
26545
        oprot.writeFieldEnd();
26546
      } else if (this.isSetSe()) {
26547
        oprot.writeFieldBegin(SE_FIELD_DESC);
26548
        this.se.write(oprot);
26549
        oprot.writeFieldEnd();
26550
      }
26551
      oprot.writeFieldStop();
26552
      oprot.writeStructEnd();
26553
    }
26554
 
26555
    @Override
26556
    public String toString() {
26557
      StringBuilder sb = new StringBuilder("saveUserSmsForSending_result(");
26558
      boolean first = true;
26559
 
26560
      sb.append("success:");
26561
      sb.append(this.success);
26562
      first = false;
26563
      if (!first) sb.append(", ");
26564
      sb.append("se:");
26565
      if (this.se == null) {
26566
        sb.append("null");
26567
      } else {
26568
        sb.append(this.se);
26569
      }
26570
      first = false;
26571
      sb.append(")");
26572
      return sb.toString();
26573
    }
26574
 
26575
    public void validate() throws org.apache.thrift.TException {
26576
      // check for required fields
26577
    }
26578
 
26579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26580
      try {
26581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26582
      } catch (org.apache.thrift.TException te) {
26583
        throw new java.io.IOException(te);
26584
      }
26585
    }
26586
 
26587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26588
      try {
26589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26590
      } catch (org.apache.thrift.TException te) {
26591
        throw new java.io.IOException(te);
26592
      }
26593
    }
26594
 
26595
  }
26596
 
26597
  public static class getSmsToBeSent_args implements org.apache.thrift.TBase<getSmsToBeSent_args, getSmsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
26598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_args");
26599
 
26600
 
26601
 
26602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26604
;
26605
 
26606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26607
 
26608
      static {
26609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26610
          byName.put(field.getFieldName(), field);
26611
        }
26612
      }
26613
 
26614
      /**
26615
       * Find the _Fields constant that matches fieldId, or null if its not found.
26616
       */
26617
      public static _Fields findByThriftId(int fieldId) {
26618
        switch(fieldId) {
26619
          default:
26620
            return null;
26621
        }
26622
      }
26623
 
26624
      /**
26625
       * Find the _Fields constant that matches fieldId, throwing an exception
26626
       * if it is not found.
26627
       */
26628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26629
        _Fields fields = findByThriftId(fieldId);
26630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26631
        return fields;
26632
      }
26633
 
26634
      /**
26635
       * Find the _Fields constant that matches name, or null if its not found.
26636
       */
26637
      public static _Fields findByName(String name) {
26638
        return byName.get(name);
26639
      }
26640
 
26641
      private final short _thriftId;
26642
      private final String _fieldName;
26643
 
26644
      _Fields(short thriftId, String fieldName) {
26645
        _thriftId = thriftId;
26646
        _fieldName = fieldName;
26647
      }
26648
 
26649
      public short getThriftFieldId() {
26650
        return _thriftId;
26651
      }
26652
 
26653
      public String getFieldName() {
26654
        return _fieldName;
26655
      }
26656
    }
26657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26658
    static {
26659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_args.class, metaDataMap);
26662
    }
26663
 
26664
    public getSmsToBeSent_args() {
26665
    }
26666
 
26667
    /**
26668
     * Performs a deep copy on <i>other</i>.
26669
     */
26670
    public getSmsToBeSent_args(getSmsToBeSent_args other) {
26671
    }
26672
 
26673
    public getSmsToBeSent_args deepCopy() {
26674
      return new getSmsToBeSent_args(this);
26675
    }
26676
 
26677
    @Override
26678
    public void clear() {
26679
    }
26680
 
26681
    public void setFieldValue(_Fields field, Object value) {
26682
      switch (field) {
26683
      }
26684
    }
26685
 
26686
    public Object getFieldValue(_Fields field) {
26687
      switch (field) {
26688
      }
26689
      throw new IllegalStateException();
26690
    }
26691
 
26692
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26693
    public boolean isSet(_Fields field) {
26694
      if (field == null) {
26695
        throw new IllegalArgumentException();
26696
      }
26697
 
26698
      switch (field) {
26699
      }
26700
      throw new IllegalStateException();
26701
    }
26702
 
26703
    @Override
26704
    public boolean equals(Object that) {
26705
      if (that == null)
26706
        return false;
26707
      if (that instanceof getSmsToBeSent_args)
26708
        return this.equals((getSmsToBeSent_args)that);
26709
      return false;
26710
    }
26711
 
26712
    public boolean equals(getSmsToBeSent_args that) {
26713
      if (that == null)
26714
        return false;
26715
 
26716
      return true;
26717
    }
26718
 
26719
    @Override
26720
    public int hashCode() {
26721
      return 0;
26722
    }
26723
 
26724
    public int compareTo(getSmsToBeSent_args other) {
26725
      if (!getClass().equals(other.getClass())) {
26726
        return getClass().getName().compareTo(other.getClass().getName());
26727
      }
26728
 
26729
      int lastComparison = 0;
26730
      getSmsToBeSent_args typedOther = (getSmsToBeSent_args)other;
26731
 
26732
      return 0;
26733
    }
26734
 
26735
    public _Fields fieldForId(int fieldId) {
26736
      return _Fields.findByThriftId(fieldId);
26737
    }
26738
 
26739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26740
      org.apache.thrift.protocol.TField field;
26741
      iprot.readStructBegin();
26742
      while (true)
26743
      {
26744
        field = iprot.readFieldBegin();
26745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26746
          break;
26747
        }
26748
        switch (field.id) {
26749
          default:
26750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26751
        }
26752
        iprot.readFieldEnd();
26753
      }
26754
      iprot.readStructEnd();
26755
      validate();
26756
    }
26757
 
26758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26759
      validate();
26760
 
26761
      oprot.writeStructBegin(STRUCT_DESC);
26762
      oprot.writeFieldStop();
26763
      oprot.writeStructEnd();
26764
    }
26765
 
26766
    @Override
26767
    public String toString() {
26768
      StringBuilder sb = new StringBuilder("getSmsToBeSent_args(");
26769
      boolean first = true;
26770
 
26771
      sb.append(")");
26772
      return sb.toString();
26773
    }
26774
 
26775
    public void validate() throws org.apache.thrift.TException {
26776
      // check for required fields
26777
    }
26778
 
26779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26780
      try {
26781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26782
      } catch (org.apache.thrift.TException te) {
26783
        throw new java.io.IOException(te);
26784
      }
26785
    }
26786
 
26787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26788
      try {
26789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26790
      } catch (org.apache.thrift.TException te) {
26791
        throw new java.io.IOException(te);
26792
      }
26793
    }
26794
 
26795
  }
26796
 
26797
  public static class getSmsToBeSent_result implements org.apache.thrift.TBase<getSmsToBeSent_result, getSmsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
26798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_result");
26799
 
26800
    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);
26801
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26802
 
26803
    private List<UserSms> success; // required
26804
    private HelperServiceException se; // required
26805
 
26806
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26807
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26808
      SUCCESS((short)0, "success"),
26809
      SE((short)1, "se");
26810
 
26811
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26812
 
26813
      static {
26814
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26815
          byName.put(field.getFieldName(), field);
26816
        }
26817
      }
26818
 
26819
      /**
26820
       * Find the _Fields constant that matches fieldId, or null if its not found.
26821
       */
26822
      public static _Fields findByThriftId(int fieldId) {
26823
        switch(fieldId) {
26824
          case 0: // SUCCESS
26825
            return SUCCESS;
26826
          case 1: // SE
26827
            return SE;
26828
          default:
26829
            return null;
26830
        }
26831
      }
26832
 
26833
      /**
26834
       * Find the _Fields constant that matches fieldId, throwing an exception
26835
       * if it is not found.
26836
       */
26837
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26838
        _Fields fields = findByThriftId(fieldId);
26839
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26840
        return fields;
26841
      }
26842
 
26843
      /**
26844
       * Find the _Fields constant that matches name, or null if its not found.
26845
       */
26846
      public static _Fields findByName(String name) {
26847
        return byName.get(name);
26848
      }
26849
 
26850
      private final short _thriftId;
26851
      private final String _fieldName;
26852
 
26853
      _Fields(short thriftId, String fieldName) {
26854
        _thriftId = thriftId;
26855
        _fieldName = fieldName;
26856
      }
26857
 
26858
      public short getThriftFieldId() {
26859
        return _thriftId;
26860
      }
26861
 
26862
      public String getFieldName() {
26863
        return _fieldName;
26864
      }
26865
    }
26866
 
26867
    // isset id assignments
26868
 
26869
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26870
    static {
26871
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26872
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26873
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26874
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
26875
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_result.class, metaDataMap);
26879
    }
26880
 
26881
    public getSmsToBeSent_result() {
26882
    }
26883
 
26884
    public getSmsToBeSent_result(
26885
      List<UserSms> success,
26886
      HelperServiceException se)
26887
    {
26888
      this();
26889
      this.success = success;
26890
      this.se = se;
26891
    }
26892
 
26893
    /**
26894
     * Performs a deep copy on <i>other</i>.
26895
     */
26896
    public getSmsToBeSent_result(getSmsToBeSent_result other) {
26897
      if (other.isSetSuccess()) {
26898
        List<UserSms> __this__success = new ArrayList<UserSms>();
26899
        for (UserSms other_element : other.success) {
26900
          __this__success.add(new UserSms(other_element));
26901
        }
26902
        this.success = __this__success;
26903
      }
26904
      if (other.isSetSe()) {
26905
        this.se = new HelperServiceException(other.se);
26906
      }
26907
    }
26908
 
26909
    public getSmsToBeSent_result deepCopy() {
26910
      return new getSmsToBeSent_result(this);
26911
    }
26912
 
26913
    @Override
26914
    public void clear() {
26915
      this.success = null;
26916
      this.se = null;
26917
    }
26918
 
26919
    public int getSuccessSize() {
26920
      return (this.success == null) ? 0 : this.success.size();
26921
    }
26922
 
26923
    public java.util.Iterator<UserSms> getSuccessIterator() {
26924
      return (this.success == null) ? null : this.success.iterator();
26925
    }
26926
 
26927
    public void addToSuccess(UserSms elem) {
26928
      if (this.success == null) {
26929
        this.success = new ArrayList<UserSms>();
26930
      }
26931
      this.success.add(elem);
26932
    }
26933
 
26934
    public List<UserSms> getSuccess() {
26935
      return this.success;
26936
    }
26937
 
26938
    public void setSuccess(List<UserSms> success) {
26939
      this.success = success;
26940
    }
26941
 
26942
    public void unsetSuccess() {
26943
      this.success = null;
26944
    }
26945
 
26946
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26947
    public boolean isSetSuccess() {
26948
      return this.success != null;
26949
    }
26950
 
26951
    public void setSuccessIsSet(boolean value) {
26952
      if (!value) {
26953
        this.success = null;
26954
      }
26955
    }
26956
 
26957
    public HelperServiceException getSe() {
26958
      return this.se;
26959
    }
26960
 
26961
    public void setSe(HelperServiceException se) {
26962
      this.se = se;
26963
    }
26964
 
26965
    public void unsetSe() {
26966
      this.se = null;
26967
    }
26968
 
26969
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
26970
    public boolean isSetSe() {
26971
      return this.se != null;
26972
    }
26973
 
26974
    public void setSeIsSet(boolean value) {
26975
      if (!value) {
26976
        this.se = null;
26977
      }
26978
    }
26979
 
26980
    public void setFieldValue(_Fields field, Object value) {
26981
      switch (field) {
26982
      case SUCCESS:
26983
        if (value == null) {
26984
          unsetSuccess();
26985
        } else {
26986
          setSuccess((List<UserSms>)value);
26987
        }
26988
        break;
26989
 
26990
      case SE:
26991
        if (value == null) {
26992
          unsetSe();
26993
        } else {
26994
          setSe((HelperServiceException)value);
26995
        }
26996
        break;
26997
 
26998
      }
26999
    }
27000
 
27001
    public Object getFieldValue(_Fields field) {
27002
      switch (field) {
27003
      case SUCCESS:
27004
        return getSuccess();
27005
 
27006
      case SE:
27007
        return getSe();
27008
 
27009
      }
27010
      throw new IllegalStateException();
27011
    }
27012
 
27013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27014
    public boolean isSet(_Fields field) {
27015
      if (field == null) {
27016
        throw new IllegalArgumentException();
27017
      }
27018
 
27019
      switch (field) {
27020
      case SUCCESS:
27021
        return isSetSuccess();
27022
      case SE:
27023
        return isSetSe();
27024
      }
27025
      throw new IllegalStateException();
27026
    }
27027
 
27028
    @Override
27029
    public boolean equals(Object that) {
27030
      if (that == null)
27031
        return false;
27032
      if (that instanceof getSmsToBeSent_result)
27033
        return this.equals((getSmsToBeSent_result)that);
27034
      return false;
27035
    }
27036
 
27037
    public boolean equals(getSmsToBeSent_result that) {
27038
      if (that == null)
27039
        return false;
27040
 
27041
      boolean this_present_success = true && this.isSetSuccess();
27042
      boolean that_present_success = true && that.isSetSuccess();
27043
      if (this_present_success || that_present_success) {
27044
        if (!(this_present_success && that_present_success))
27045
          return false;
27046
        if (!this.success.equals(that.success))
27047
          return false;
27048
      }
27049
 
27050
      boolean this_present_se = true && this.isSetSe();
27051
      boolean that_present_se = true && that.isSetSe();
27052
      if (this_present_se || that_present_se) {
27053
        if (!(this_present_se && that_present_se))
27054
          return false;
27055
        if (!this.se.equals(that.se))
27056
          return false;
27057
      }
27058
 
27059
      return true;
27060
    }
27061
 
27062
    @Override
27063
    public int hashCode() {
27064
      return 0;
27065
    }
27066
 
27067
    public int compareTo(getSmsToBeSent_result other) {
27068
      if (!getClass().equals(other.getClass())) {
27069
        return getClass().getName().compareTo(other.getClass().getName());
27070
      }
27071
 
27072
      int lastComparison = 0;
27073
      getSmsToBeSent_result typedOther = (getSmsToBeSent_result)other;
27074
 
27075
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27076
      if (lastComparison != 0) {
27077
        return lastComparison;
27078
      }
27079
      if (isSetSuccess()) {
27080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27081
        if (lastComparison != 0) {
27082
          return lastComparison;
27083
        }
27084
      }
27085
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
27086
      if (lastComparison != 0) {
27087
        return lastComparison;
27088
      }
27089
      if (isSetSe()) {
27090
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
27091
        if (lastComparison != 0) {
27092
          return lastComparison;
27093
        }
27094
      }
27095
      return 0;
27096
    }
27097
 
27098
    public _Fields fieldForId(int fieldId) {
27099
      return _Fields.findByThriftId(fieldId);
27100
    }
27101
 
27102
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27103
      org.apache.thrift.protocol.TField field;
27104
      iprot.readStructBegin();
27105
      while (true)
27106
      {
27107
        field = iprot.readFieldBegin();
27108
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27109
          break;
27110
        }
27111
        switch (field.id) {
27112
          case 0: // SUCCESS
27113
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27114
              {
27115
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
27116
                this.success = new ArrayList<UserSms>(_list73.size);
27117
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
27118
                {
27119
                  UserSms _elem75; // required
27120
                  _elem75 = new UserSms();
27121
                  _elem75.read(iprot);
27122
                  this.success.add(_elem75);
27123
                }
27124
                iprot.readListEnd();
27125
              }
27126
            } else { 
27127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27128
            }
27129
            break;
27130
          case 1: // SE
27131
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27132
              this.se = new HelperServiceException();
27133
              this.se.read(iprot);
27134
            } else { 
27135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27136
            }
27137
            break;
27138
          default:
27139
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27140
        }
27141
        iprot.readFieldEnd();
27142
      }
27143
      iprot.readStructEnd();
27144
      validate();
27145
    }
27146
 
27147
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27148
      oprot.writeStructBegin(STRUCT_DESC);
27149
 
27150
      if (this.isSetSuccess()) {
27151
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27152
        {
27153
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27154
          for (UserSms _iter76 : this.success)
27155
          {
27156
            _iter76.write(oprot);
27157
          }
27158
          oprot.writeListEnd();
27159
        }
27160
        oprot.writeFieldEnd();
27161
      } else if (this.isSetSe()) {
27162
        oprot.writeFieldBegin(SE_FIELD_DESC);
27163
        this.se.write(oprot);
27164
        oprot.writeFieldEnd();
27165
      }
27166
      oprot.writeFieldStop();
27167
      oprot.writeStructEnd();
27168
    }
27169
 
27170
    @Override
27171
    public String toString() {
27172
      StringBuilder sb = new StringBuilder("getSmsToBeSent_result(");
27173
      boolean first = true;
27174
 
27175
      sb.append("success:");
27176
      if (this.success == null) {
27177
        sb.append("null");
27178
      } else {
27179
        sb.append(this.success);
27180
      }
27181
      first = false;
27182
      if (!first) sb.append(", ");
27183
      sb.append("se:");
27184
      if (this.se == null) {
27185
        sb.append("null");
27186
      } else {
27187
        sb.append(this.se);
27188
      }
27189
      first = false;
27190
      sb.append(")");
27191
      return sb.toString();
27192
    }
27193
 
27194
    public void validate() throws org.apache.thrift.TException {
27195
      // check for required fields
27196
    }
27197
 
27198
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27199
      try {
27200
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27201
      } catch (org.apache.thrift.TException te) {
27202
        throw new java.io.IOException(te);
27203
      }
27204
    }
27205
 
27206
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27207
      try {
27208
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27209
      } catch (org.apache.thrift.TException te) {
27210
        throw new java.io.IOException(te);
27211
      }
27212
    }
27213
 
27214
  }
27215
 
27216
  public static class addUserSmsInfo_args implements org.apache.thrift.TBase<addUserSmsInfo_args, addUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
27217
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_args");
27218
 
27219
    private static final org.apache.thrift.protocol.TField USER_SMS_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27220
 
27221
    private UserSmsInfo userSmsInfo; // required
27222
 
27223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27224
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27225
      USER_SMS_INFO((short)1, "userSmsInfo");
27226
 
27227
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27228
 
27229
      static {
27230
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27231
          byName.put(field.getFieldName(), field);
27232
        }
27233
      }
27234
 
27235
      /**
27236
       * Find the _Fields constant that matches fieldId, or null if its not found.
27237
       */
27238
      public static _Fields findByThriftId(int fieldId) {
27239
        switch(fieldId) {
27240
          case 1: // USER_SMS_INFO
27241
            return USER_SMS_INFO;
27242
          default:
27243
            return null;
27244
        }
27245
      }
27246
 
27247
      /**
27248
       * Find the _Fields constant that matches fieldId, throwing an exception
27249
       * if it is not found.
27250
       */
27251
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27252
        _Fields fields = findByThriftId(fieldId);
27253
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27254
        return fields;
27255
      }
27256
 
27257
      /**
27258
       * Find the _Fields constant that matches name, or null if its not found.
27259
       */
27260
      public static _Fields findByName(String name) {
27261
        return byName.get(name);
27262
      }
27263
 
27264
      private final short _thriftId;
27265
      private final String _fieldName;
27266
 
27267
      _Fields(short thriftId, String fieldName) {
27268
        _thriftId = thriftId;
27269
        _fieldName = fieldName;
27270
      }
27271
 
27272
      public short getThriftFieldId() {
27273
        return _thriftId;
27274
      }
27275
 
27276
      public String getFieldName() {
27277
        return _fieldName;
27278
      }
27279
    }
27280
 
27281
    // isset id assignments
27282
 
27283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27284
    static {
27285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27286
      tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27287
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
27288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_args.class, metaDataMap);
27290
    }
27291
 
27292
    public addUserSmsInfo_args() {
27293
    }
27294
 
27295
    public addUserSmsInfo_args(
27296
      UserSmsInfo userSmsInfo)
27297
    {
27298
      this();
27299
      this.userSmsInfo = userSmsInfo;
27300
    }
27301
 
27302
    /**
27303
     * Performs a deep copy on <i>other</i>.
27304
     */
27305
    public addUserSmsInfo_args(addUserSmsInfo_args other) {
27306
      if (other.isSetUserSmsInfo()) {
27307
        this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);
27308
      }
27309
    }
27310
 
27311
    public addUserSmsInfo_args deepCopy() {
27312
      return new addUserSmsInfo_args(this);
27313
    }
27314
 
27315
    @Override
27316
    public void clear() {
27317
      this.userSmsInfo = null;
27318
    }
27319
 
27320
    public UserSmsInfo getUserSmsInfo() {
27321
      return this.userSmsInfo;
27322
    }
27323
 
27324
    public void setUserSmsInfo(UserSmsInfo userSmsInfo) {
27325
      this.userSmsInfo = userSmsInfo;
27326
    }
27327
 
27328
    public void unsetUserSmsInfo() {
27329
      this.userSmsInfo = null;
27330
    }
27331
 
27332
    /** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */
27333
    public boolean isSetUserSmsInfo() {
27334
      return this.userSmsInfo != null;
27335
    }
27336
 
27337
    public void setUserSmsInfoIsSet(boolean value) {
27338
      if (!value) {
27339
        this.userSmsInfo = null;
27340
      }
27341
    }
27342
 
27343
    public void setFieldValue(_Fields field, Object value) {
27344
      switch (field) {
27345
      case USER_SMS_INFO:
27346
        if (value == null) {
27347
          unsetUserSmsInfo();
27348
        } else {
27349
          setUserSmsInfo((UserSmsInfo)value);
27350
        }
27351
        break;
27352
 
27353
      }
27354
    }
27355
 
27356
    public Object getFieldValue(_Fields field) {
27357
      switch (field) {
27358
      case USER_SMS_INFO:
27359
        return getUserSmsInfo();
27360
 
27361
      }
27362
      throw new IllegalStateException();
27363
    }
27364
 
27365
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27366
    public boolean isSet(_Fields field) {
27367
      if (field == null) {
27368
        throw new IllegalArgumentException();
27369
      }
27370
 
27371
      switch (field) {
27372
      case USER_SMS_INFO:
27373
        return isSetUserSmsInfo();
27374
      }
27375
      throw new IllegalStateException();
27376
    }
27377
 
27378
    @Override
27379
    public boolean equals(Object that) {
27380
      if (that == null)
27381
        return false;
27382
      if (that instanceof addUserSmsInfo_args)
27383
        return this.equals((addUserSmsInfo_args)that);
27384
      return false;
27385
    }
27386
 
27387
    public boolean equals(addUserSmsInfo_args that) {
27388
      if (that == null)
27389
        return false;
27390
 
27391
      boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();
27392
      boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();
27393
      if (this_present_userSmsInfo || that_present_userSmsInfo) {
27394
        if (!(this_present_userSmsInfo && that_present_userSmsInfo))
27395
          return false;
27396
        if (!this.userSmsInfo.equals(that.userSmsInfo))
27397
          return false;
27398
      }
27399
 
27400
      return true;
27401
    }
27402
 
27403
    @Override
27404
    public int hashCode() {
27405
      return 0;
27406
    }
27407
 
27408
    public int compareTo(addUserSmsInfo_args other) {
27409
      if (!getClass().equals(other.getClass())) {
27410
        return getClass().getName().compareTo(other.getClass().getName());
27411
      }
27412
 
27413
      int lastComparison = 0;
27414
      addUserSmsInfo_args typedOther = (addUserSmsInfo_args)other;
27415
 
27416
      lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());
27417
      if (lastComparison != 0) {
27418
        return lastComparison;
27419
      }
27420
      if (isSetUserSmsInfo()) {
27421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);
27422
        if (lastComparison != 0) {
27423
          return lastComparison;
27424
        }
27425
      }
27426
      return 0;
27427
    }
27428
 
27429
    public _Fields fieldForId(int fieldId) {
27430
      return _Fields.findByThriftId(fieldId);
27431
    }
27432
 
27433
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27434
      org.apache.thrift.protocol.TField field;
27435
      iprot.readStructBegin();
27436
      while (true)
27437
      {
27438
        field = iprot.readFieldBegin();
27439
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27440
          break;
27441
        }
27442
        switch (field.id) {
27443
          case 1: // USER_SMS_INFO
27444
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27445
              this.userSmsInfo = new UserSmsInfo();
27446
              this.userSmsInfo.read(iprot);
27447
            } else { 
27448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27449
            }
27450
            break;
27451
          default:
27452
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27453
        }
27454
        iprot.readFieldEnd();
27455
      }
27456
      iprot.readStructEnd();
27457
      validate();
27458
    }
27459
 
27460
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27461
      validate();
27462
 
27463
      oprot.writeStructBegin(STRUCT_DESC);
27464
      if (this.userSmsInfo != null) {
27465
        oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);
27466
        this.userSmsInfo.write(oprot);
27467
        oprot.writeFieldEnd();
27468
      }
27469
      oprot.writeFieldStop();
27470
      oprot.writeStructEnd();
27471
    }
27472
 
27473
    @Override
27474
    public String toString() {
27475
      StringBuilder sb = new StringBuilder("addUserSmsInfo_args(");
27476
      boolean first = true;
27477
 
27478
      sb.append("userSmsInfo:");
27479
      if (this.userSmsInfo == null) {
27480
        sb.append("null");
27481
      } else {
27482
        sb.append(this.userSmsInfo);
27483
      }
27484
      first = false;
27485
      sb.append(")");
27486
      return sb.toString();
27487
    }
27488
 
27489
    public void validate() throws org.apache.thrift.TException {
27490
      // check for required fields
27491
    }
27492
 
27493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27494
      try {
27495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27496
      } catch (org.apache.thrift.TException te) {
27497
        throw new java.io.IOException(te);
27498
      }
27499
    }
27500
 
27501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27502
      try {
27503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27504
      } catch (org.apache.thrift.TException te) {
27505
        throw new java.io.IOException(te);
27506
      }
27507
    }
27508
 
27509
  }
27510
 
27511
  public static class addUserSmsInfo_result implements org.apache.thrift.TBase<addUserSmsInfo_result, addUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
27512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_result");
27513
 
27514
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27515
 
27516
    private HelperServiceException se; // required
27517
 
27518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27520
      SE((short)1, "se");
27521
 
27522
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27523
 
27524
      static {
27525
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27526
          byName.put(field.getFieldName(), field);
27527
        }
27528
      }
27529
 
27530
      /**
27531
       * Find the _Fields constant that matches fieldId, or null if its not found.
27532
       */
27533
      public static _Fields findByThriftId(int fieldId) {
27534
        switch(fieldId) {
27535
          case 1: // SE
27536
            return SE;
27537
          default:
27538
            return null;
27539
        }
27540
      }
27541
 
27542
      /**
27543
       * Find the _Fields constant that matches fieldId, throwing an exception
27544
       * if it is not found.
27545
       */
27546
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27547
        _Fields fields = findByThriftId(fieldId);
27548
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27549
        return fields;
27550
      }
27551
 
27552
      /**
27553
       * Find the _Fields constant that matches name, or null if its not found.
27554
       */
27555
      public static _Fields findByName(String name) {
27556
        return byName.get(name);
27557
      }
27558
 
27559
      private final short _thriftId;
27560
      private final String _fieldName;
27561
 
27562
      _Fields(short thriftId, String fieldName) {
27563
        _thriftId = thriftId;
27564
        _fieldName = fieldName;
27565
      }
27566
 
27567
      public short getThriftFieldId() {
27568
        return _thriftId;
27569
      }
27570
 
27571
      public String getFieldName() {
27572
        return _fieldName;
27573
      }
27574
    }
27575
 
27576
    // isset id assignments
27577
 
27578
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27579
    static {
27580
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27581
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27582
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27583
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27584
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_result.class, metaDataMap);
27585
    }
27586
 
27587
    public addUserSmsInfo_result() {
27588
    }
27589
 
27590
    public addUserSmsInfo_result(
27591
      HelperServiceException se)
27592
    {
27593
      this();
27594
      this.se = se;
27595
    }
27596
 
27597
    /**
27598
     * Performs a deep copy on <i>other</i>.
27599
     */
27600
    public addUserSmsInfo_result(addUserSmsInfo_result other) {
27601
      if (other.isSetSe()) {
27602
        this.se = new HelperServiceException(other.se);
27603
      }
27604
    }
27605
 
27606
    public addUserSmsInfo_result deepCopy() {
27607
      return new addUserSmsInfo_result(this);
27608
    }
27609
 
27610
    @Override
27611
    public void clear() {
27612
      this.se = null;
27613
    }
27614
 
27615
    public HelperServiceException getSe() {
27616
      return this.se;
27617
    }
27618
 
27619
    public void setSe(HelperServiceException se) {
27620
      this.se = se;
27621
    }
27622
 
27623
    public void unsetSe() {
27624
      this.se = null;
27625
    }
27626
 
27627
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
27628
    public boolean isSetSe() {
27629
      return this.se != null;
27630
    }
27631
 
27632
    public void setSeIsSet(boolean value) {
27633
      if (!value) {
27634
        this.se = null;
27635
      }
27636
    }
27637
 
27638
    public void setFieldValue(_Fields field, Object value) {
27639
      switch (field) {
27640
      case SE:
27641
        if (value == null) {
27642
          unsetSe();
27643
        } else {
27644
          setSe((HelperServiceException)value);
27645
        }
27646
        break;
27647
 
27648
      }
27649
    }
27650
 
27651
    public Object getFieldValue(_Fields field) {
27652
      switch (field) {
27653
      case SE:
27654
        return getSe();
27655
 
27656
      }
27657
      throw new IllegalStateException();
27658
    }
27659
 
27660
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27661
    public boolean isSet(_Fields field) {
27662
      if (field == null) {
27663
        throw new IllegalArgumentException();
27664
      }
27665
 
27666
      switch (field) {
27667
      case SE:
27668
        return isSetSe();
27669
      }
27670
      throw new IllegalStateException();
27671
    }
27672
 
27673
    @Override
27674
    public boolean equals(Object that) {
27675
      if (that == null)
27676
        return false;
27677
      if (that instanceof addUserSmsInfo_result)
27678
        return this.equals((addUserSmsInfo_result)that);
27679
      return false;
27680
    }
27681
 
27682
    public boolean equals(addUserSmsInfo_result that) {
27683
      if (that == null)
27684
        return false;
27685
 
27686
      boolean this_present_se = true && this.isSetSe();
27687
      boolean that_present_se = true && that.isSetSe();
27688
      if (this_present_se || that_present_se) {
27689
        if (!(this_present_se && that_present_se))
27690
          return false;
27691
        if (!this.se.equals(that.se))
27692
          return false;
27693
      }
27694
 
27695
      return true;
27696
    }
27697
 
27698
    @Override
27699
    public int hashCode() {
27700
      return 0;
27701
    }
27702
 
27703
    public int compareTo(addUserSmsInfo_result other) {
27704
      if (!getClass().equals(other.getClass())) {
27705
        return getClass().getName().compareTo(other.getClass().getName());
27706
      }
27707
 
27708
      int lastComparison = 0;
27709
      addUserSmsInfo_result typedOther = (addUserSmsInfo_result)other;
27710
 
27711
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
27712
      if (lastComparison != 0) {
27713
        return lastComparison;
27714
      }
27715
      if (isSetSe()) {
27716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
27717
        if (lastComparison != 0) {
27718
          return lastComparison;
27719
        }
27720
      }
27721
      return 0;
27722
    }
27723
 
27724
    public _Fields fieldForId(int fieldId) {
27725
      return _Fields.findByThriftId(fieldId);
27726
    }
27727
 
27728
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27729
      org.apache.thrift.protocol.TField field;
27730
      iprot.readStructBegin();
27731
      while (true)
27732
      {
27733
        field = iprot.readFieldBegin();
27734
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27735
          break;
27736
        }
27737
        switch (field.id) {
27738
          case 1: // SE
27739
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27740
              this.se = new HelperServiceException();
27741
              this.se.read(iprot);
27742
            } else { 
27743
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27744
            }
27745
            break;
27746
          default:
27747
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27748
        }
27749
        iprot.readFieldEnd();
27750
      }
27751
      iprot.readStructEnd();
27752
      validate();
27753
    }
27754
 
27755
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27756
      oprot.writeStructBegin(STRUCT_DESC);
27757
 
27758
      if (this.isSetSe()) {
27759
        oprot.writeFieldBegin(SE_FIELD_DESC);
27760
        this.se.write(oprot);
27761
        oprot.writeFieldEnd();
27762
      }
27763
      oprot.writeFieldStop();
27764
      oprot.writeStructEnd();
27765
    }
27766
 
27767
    @Override
27768
    public String toString() {
27769
      StringBuilder sb = new StringBuilder("addUserSmsInfo_result(");
27770
      boolean first = true;
27771
 
27772
      sb.append("se:");
27773
      if (this.se == null) {
27774
        sb.append("null");
27775
      } else {
27776
        sb.append(this.se);
27777
      }
27778
      first = false;
27779
      sb.append(")");
27780
      return sb.toString();
27781
    }
27782
 
27783
    public void validate() throws org.apache.thrift.TException {
27784
      // check for required fields
27785
    }
27786
 
27787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27788
      try {
27789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27790
      } catch (org.apache.thrift.TException te) {
27791
        throw new java.io.IOException(te);
27792
      }
27793
    }
27794
 
27795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27796
      try {
27797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27798
      } catch (org.apache.thrift.TException te) {
27799
        throw new java.io.IOException(te);
27800
      }
27801
    }
27802
 
27803
  }
27804
 
27805
  public static class updateUserSmsInfo_args implements org.apache.thrift.TBase<updateUserSmsInfo_args, updateUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
27806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_args");
27807
 
27808
    private static final org.apache.thrift.protocol.TField USER_SMS_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27809
 
27810
    private UserSmsInfo userSmsInfo; // required
27811
 
27812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27814
      USER_SMS_INFO((short)1, "userSmsInfo");
27815
 
27816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27817
 
27818
      static {
27819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27820
          byName.put(field.getFieldName(), field);
27821
        }
27822
      }
27823
 
27824
      /**
27825
       * Find the _Fields constant that matches fieldId, or null if its not found.
27826
       */
27827
      public static _Fields findByThriftId(int fieldId) {
27828
        switch(fieldId) {
27829
          case 1: // USER_SMS_INFO
27830
            return USER_SMS_INFO;
27831
          default:
27832
            return null;
27833
        }
27834
      }
27835
 
27836
      /**
27837
       * Find the _Fields constant that matches fieldId, throwing an exception
27838
       * if it is not found.
27839
       */
27840
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27841
        _Fields fields = findByThriftId(fieldId);
27842
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27843
        return fields;
27844
      }
27845
 
27846
      /**
27847
       * Find the _Fields constant that matches name, or null if its not found.
27848
       */
27849
      public static _Fields findByName(String name) {
27850
        return byName.get(name);
27851
      }
27852
 
27853
      private final short _thriftId;
27854
      private final String _fieldName;
27855
 
27856
      _Fields(short thriftId, String fieldName) {
27857
        _thriftId = thriftId;
27858
        _fieldName = fieldName;
27859
      }
27860
 
27861
      public short getThriftFieldId() {
27862
        return _thriftId;
27863
      }
27864
 
27865
      public String getFieldName() {
27866
        return _fieldName;
27867
      }
27868
    }
27869
 
27870
    // isset id assignments
27871
 
27872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27873
    static {
27874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27875
      tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27876
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
27877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_args.class, metaDataMap);
27879
    }
27880
 
27881
    public updateUserSmsInfo_args() {
27882
    }
27883
 
27884
    public updateUserSmsInfo_args(
27885
      UserSmsInfo userSmsInfo)
27886
    {
27887
      this();
27888
      this.userSmsInfo = userSmsInfo;
27889
    }
27890
 
27891
    /**
27892
     * Performs a deep copy on <i>other</i>.
27893
     */
27894
    public updateUserSmsInfo_args(updateUserSmsInfo_args other) {
27895
      if (other.isSetUserSmsInfo()) {
27896
        this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);
27897
      }
27898
    }
27899
 
27900
    public updateUserSmsInfo_args deepCopy() {
27901
      return new updateUserSmsInfo_args(this);
27902
    }
27903
 
27904
    @Override
27905
    public void clear() {
27906
      this.userSmsInfo = null;
27907
    }
27908
 
27909
    public UserSmsInfo getUserSmsInfo() {
27910
      return this.userSmsInfo;
27911
    }
27912
 
27913
    public void setUserSmsInfo(UserSmsInfo userSmsInfo) {
27914
      this.userSmsInfo = userSmsInfo;
27915
    }
27916
 
27917
    public void unsetUserSmsInfo() {
27918
      this.userSmsInfo = null;
27919
    }
27920
 
27921
    /** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */
27922
    public boolean isSetUserSmsInfo() {
27923
      return this.userSmsInfo != null;
27924
    }
27925
 
27926
    public void setUserSmsInfoIsSet(boolean value) {
27927
      if (!value) {
27928
        this.userSmsInfo = null;
27929
      }
27930
    }
27931
 
27932
    public void setFieldValue(_Fields field, Object value) {
27933
      switch (field) {
27934
      case USER_SMS_INFO:
27935
        if (value == null) {
27936
          unsetUserSmsInfo();
27937
        } else {
27938
          setUserSmsInfo((UserSmsInfo)value);
27939
        }
27940
        break;
27941
 
27942
      }
27943
    }
27944
 
27945
    public Object getFieldValue(_Fields field) {
27946
      switch (field) {
27947
      case USER_SMS_INFO:
27948
        return getUserSmsInfo();
27949
 
27950
      }
27951
      throw new IllegalStateException();
27952
    }
27953
 
27954
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27955
    public boolean isSet(_Fields field) {
27956
      if (field == null) {
27957
        throw new IllegalArgumentException();
27958
      }
27959
 
27960
      switch (field) {
27961
      case USER_SMS_INFO:
27962
        return isSetUserSmsInfo();
27963
      }
27964
      throw new IllegalStateException();
27965
    }
27966
 
27967
    @Override
27968
    public boolean equals(Object that) {
27969
      if (that == null)
27970
        return false;
27971
      if (that instanceof updateUserSmsInfo_args)
27972
        return this.equals((updateUserSmsInfo_args)that);
27973
      return false;
27974
    }
27975
 
27976
    public boolean equals(updateUserSmsInfo_args that) {
27977
      if (that == null)
27978
        return false;
27979
 
27980
      boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();
27981
      boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();
27982
      if (this_present_userSmsInfo || that_present_userSmsInfo) {
27983
        if (!(this_present_userSmsInfo && that_present_userSmsInfo))
27984
          return false;
27985
        if (!this.userSmsInfo.equals(that.userSmsInfo))
27986
          return false;
27987
      }
27988
 
27989
      return true;
27990
    }
27991
 
27992
    @Override
27993
    public int hashCode() {
27994
      return 0;
27995
    }
27996
 
27997
    public int compareTo(updateUserSmsInfo_args other) {
27998
      if (!getClass().equals(other.getClass())) {
27999
        return getClass().getName().compareTo(other.getClass().getName());
28000
      }
28001
 
28002
      int lastComparison = 0;
28003
      updateUserSmsInfo_args typedOther = (updateUserSmsInfo_args)other;
28004
 
28005
      lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());
28006
      if (lastComparison != 0) {
28007
        return lastComparison;
28008
      }
28009
      if (isSetUserSmsInfo()) {
28010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);
28011
        if (lastComparison != 0) {
28012
          return lastComparison;
28013
        }
28014
      }
28015
      return 0;
28016
    }
28017
 
28018
    public _Fields fieldForId(int fieldId) {
28019
      return _Fields.findByThriftId(fieldId);
28020
    }
28021
 
28022
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28023
      org.apache.thrift.protocol.TField field;
28024
      iprot.readStructBegin();
28025
      while (true)
28026
      {
28027
        field = iprot.readFieldBegin();
28028
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28029
          break;
28030
        }
28031
        switch (field.id) {
28032
          case 1: // USER_SMS_INFO
28033
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28034
              this.userSmsInfo = new UserSmsInfo();
28035
              this.userSmsInfo.read(iprot);
28036
            } else { 
28037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28038
            }
28039
            break;
28040
          default:
28041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28042
        }
28043
        iprot.readFieldEnd();
28044
      }
28045
      iprot.readStructEnd();
28046
      validate();
28047
    }
28048
 
28049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28050
      validate();
28051
 
28052
      oprot.writeStructBegin(STRUCT_DESC);
28053
      if (this.userSmsInfo != null) {
28054
        oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);
28055
        this.userSmsInfo.write(oprot);
28056
        oprot.writeFieldEnd();
28057
      }
28058
      oprot.writeFieldStop();
28059
      oprot.writeStructEnd();
28060
    }
28061
 
28062
    @Override
28063
    public String toString() {
28064
      StringBuilder sb = new StringBuilder("updateUserSmsInfo_args(");
28065
      boolean first = true;
28066
 
28067
      sb.append("userSmsInfo:");
28068
      if (this.userSmsInfo == null) {
28069
        sb.append("null");
28070
      } else {
28071
        sb.append(this.userSmsInfo);
28072
      }
28073
      first = false;
28074
      sb.append(")");
28075
      return sb.toString();
28076
    }
28077
 
28078
    public void validate() throws org.apache.thrift.TException {
28079
      // check for required fields
28080
    }
28081
 
28082
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28083
      try {
28084
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28085
      } catch (org.apache.thrift.TException te) {
28086
        throw new java.io.IOException(te);
28087
      }
28088
    }
28089
 
28090
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28091
      try {
28092
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28093
      } catch (org.apache.thrift.TException te) {
28094
        throw new java.io.IOException(te);
28095
      }
28096
    }
28097
 
28098
  }
28099
 
28100
  public static class updateUserSmsInfo_result implements org.apache.thrift.TBase<updateUserSmsInfo_result, updateUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
28101
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_result");
28102
 
28103
    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);
28104
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28105
 
28106
    private boolean success; // required
28107
    private HelperServiceException se; // required
28108
 
28109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28111
      SUCCESS((short)0, "success"),
28112
      SE((short)1, "se");
28113
 
28114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28115
 
28116
      static {
28117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28118
          byName.put(field.getFieldName(), field);
28119
        }
28120
      }
28121
 
28122
      /**
28123
       * Find the _Fields constant that matches fieldId, or null if its not found.
28124
       */
28125
      public static _Fields findByThriftId(int fieldId) {
28126
        switch(fieldId) {
28127
          case 0: // SUCCESS
28128
            return SUCCESS;
28129
          case 1: // SE
28130
            return SE;
28131
          default:
28132
            return null;
28133
        }
28134
      }
28135
 
28136
      /**
28137
       * Find the _Fields constant that matches fieldId, throwing an exception
28138
       * if it is not found.
28139
       */
28140
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28141
        _Fields fields = findByThriftId(fieldId);
28142
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28143
        return fields;
28144
      }
28145
 
28146
      /**
28147
       * Find the _Fields constant that matches name, or null if its not found.
28148
       */
28149
      public static _Fields findByName(String name) {
28150
        return byName.get(name);
28151
      }
28152
 
28153
      private final short _thriftId;
28154
      private final String _fieldName;
28155
 
28156
      _Fields(short thriftId, String fieldName) {
28157
        _thriftId = thriftId;
28158
        _fieldName = fieldName;
28159
      }
28160
 
28161
      public short getThriftFieldId() {
28162
        return _thriftId;
28163
      }
28164
 
28165
      public String getFieldName() {
28166
        return _fieldName;
28167
      }
28168
    }
28169
 
28170
    // isset id assignments
28171
    private static final int __SUCCESS_ISSET_ID = 0;
28172
    private BitSet __isset_bit_vector = new BitSet(1);
28173
 
28174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28175
    static {
28176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28177
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28178
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28179
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28181
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28182
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_result.class, metaDataMap);
28183
    }
28184
 
28185
    public updateUserSmsInfo_result() {
28186
    }
28187
 
28188
    public updateUserSmsInfo_result(
28189
      boolean success,
28190
      HelperServiceException se)
28191
    {
28192
      this();
28193
      this.success = success;
28194
      setSuccessIsSet(true);
28195
      this.se = se;
28196
    }
28197
 
28198
    /**
28199
     * Performs a deep copy on <i>other</i>.
28200
     */
28201
    public updateUserSmsInfo_result(updateUserSmsInfo_result other) {
28202
      __isset_bit_vector.clear();
28203
      __isset_bit_vector.or(other.__isset_bit_vector);
28204
      this.success = other.success;
28205
      if (other.isSetSe()) {
28206
        this.se = new HelperServiceException(other.se);
28207
      }
28208
    }
28209
 
28210
    public updateUserSmsInfo_result deepCopy() {
28211
      return new updateUserSmsInfo_result(this);
28212
    }
28213
 
28214
    @Override
28215
    public void clear() {
28216
      setSuccessIsSet(false);
28217
      this.success = false;
28218
      this.se = null;
28219
    }
28220
 
28221
    public boolean isSuccess() {
28222
      return this.success;
28223
    }
28224
 
28225
    public void setSuccess(boolean success) {
28226
      this.success = success;
28227
      setSuccessIsSet(true);
28228
    }
28229
 
28230
    public void unsetSuccess() {
28231
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28232
    }
28233
 
28234
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28235
    public boolean isSetSuccess() {
28236
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28237
    }
28238
 
28239
    public void setSuccessIsSet(boolean value) {
28240
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28241
    }
28242
 
28243
    public HelperServiceException getSe() {
28244
      return this.se;
28245
    }
28246
 
28247
    public void setSe(HelperServiceException se) {
28248
      this.se = se;
28249
    }
28250
 
28251
    public void unsetSe() {
28252
      this.se = null;
28253
    }
28254
 
28255
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
28256
    public boolean isSetSe() {
28257
      return this.se != null;
28258
    }
28259
 
28260
    public void setSeIsSet(boolean value) {
28261
      if (!value) {
28262
        this.se = null;
28263
      }
28264
    }
28265
 
28266
    public void setFieldValue(_Fields field, Object value) {
28267
      switch (field) {
28268
      case SUCCESS:
28269
        if (value == null) {
28270
          unsetSuccess();
28271
        } else {
28272
          setSuccess((Boolean)value);
28273
        }
28274
        break;
28275
 
28276
      case SE:
28277
        if (value == null) {
28278
          unsetSe();
28279
        } else {
28280
          setSe((HelperServiceException)value);
28281
        }
28282
        break;
28283
 
28284
      }
28285
    }
28286
 
28287
    public Object getFieldValue(_Fields field) {
28288
      switch (field) {
28289
      case SUCCESS:
28290
        return Boolean.valueOf(isSuccess());
28291
 
28292
      case SE:
28293
        return getSe();
28294
 
28295
      }
28296
      throw new IllegalStateException();
28297
    }
28298
 
28299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28300
    public boolean isSet(_Fields field) {
28301
      if (field == null) {
28302
        throw new IllegalArgumentException();
28303
      }
28304
 
28305
      switch (field) {
28306
      case SUCCESS:
28307
        return isSetSuccess();
28308
      case SE:
28309
        return isSetSe();
28310
      }
28311
      throw new IllegalStateException();
28312
    }
28313
 
28314
    @Override
28315
    public boolean equals(Object that) {
28316
      if (that == null)
28317
        return false;
28318
      if (that instanceof updateUserSmsInfo_result)
28319
        return this.equals((updateUserSmsInfo_result)that);
28320
      return false;
28321
    }
28322
 
28323
    public boolean equals(updateUserSmsInfo_result that) {
28324
      if (that == null)
28325
        return false;
28326
 
28327
      boolean this_present_success = true;
28328
      boolean that_present_success = true;
28329
      if (this_present_success || that_present_success) {
28330
        if (!(this_present_success && that_present_success))
28331
          return false;
28332
        if (this.success != that.success)
28333
          return false;
28334
      }
28335
 
28336
      boolean this_present_se = true && this.isSetSe();
28337
      boolean that_present_se = true && that.isSetSe();
28338
      if (this_present_se || that_present_se) {
28339
        if (!(this_present_se && that_present_se))
28340
          return false;
28341
        if (!this.se.equals(that.se))
28342
          return false;
28343
      }
28344
 
28345
      return true;
28346
    }
28347
 
28348
    @Override
28349
    public int hashCode() {
28350
      return 0;
28351
    }
28352
 
28353
    public int compareTo(updateUserSmsInfo_result other) {
28354
      if (!getClass().equals(other.getClass())) {
28355
        return getClass().getName().compareTo(other.getClass().getName());
28356
      }
28357
 
28358
      int lastComparison = 0;
28359
      updateUserSmsInfo_result typedOther = (updateUserSmsInfo_result)other;
28360
 
28361
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28362
      if (lastComparison != 0) {
28363
        return lastComparison;
28364
      }
28365
      if (isSetSuccess()) {
28366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28367
        if (lastComparison != 0) {
28368
          return lastComparison;
28369
        }
28370
      }
28371
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
28372
      if (lastComparison != 0) {
28373
        return lastComparison;
28374
      }
28375
      if (isSetSe()) {
28376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
28377
        if (lastComparison != 0) {
28378
          return lastComparison;
28379
        }
28380
      }
28381
      return 0;
28382
    }
28383
 
28384
    public _Fields fieldForId(int fieldId) {
28385
      return _Fields.findByThriftId(fieldId);
28386
    }
28387
 
28388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28389
      org.apache.thrift.protocol.TField field;
28390
      iprot.readStructBegin();
28391
      while (true)
28392
      {
28393
        field = iprot.readFieldBegin();
28394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28395
          break;
28396
        }
28397
        switch (field.id) {
28398
          case 0: // SUCCESS
28399
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28400
              this.success = iprot.readBool();
28401
              setSuccessIsSet(true);
28402
            } else { 
28403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28404
            }
28405
            break;
28406
          case 1: // SE
28407
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28408
              this.se = new HelperServiceException();
28409
              this.se.read(iprot);
28410
            } else { 
28411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28412
            }
28413
            break;
28414
          default:
28415
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28416
        }
28417
        iprot.readFieldEnd();
28418
      }
28419
      iprot.readStructEnd();
28420
      validate();
28421
    }
28422
 
28423
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28424
      oprot.writeStructBegin(STRUCT_DESC);
28425
 
28426
      if (this.isSetSuccess()) {
28427
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28428
        oprot.writeBool(this.success);
28429
        oprot.writeFieldEnd();
28430
      } else if (this.isSetSe()) {
28431
        oprot.writeFieldBegin(SE_FIELD_DESC);
28432
        this.se.write(oprot);
28433
        oprot.writeFieldEnd();
28434
      }
28435
      oprot.writeFieldStop();
28436
      oprot.writeStructEnd();
28437
    }
28438
 
28439
    @Override
28440
    public String toString() {
28441
      StringBuilder sb = new StringBuilder("updateUserSmsInfo_result(");
28442
      boolean first = true;
28443
 
28444
      sb.append("success:");
28445
      sb.append(this.success);
28446
      first = false;
28447
      if (!first) sb.append(", ");
28448
      sb.append("se:");
28449
      if (this.se == null) {
28450
        sb.append("null");
28451
      } else {
28452
        sb.append(this.se);
28453
      }
28454
      first = false;
28455
      sb.append(")");
28456
      return sb.toString();
28457
    }
28458
 
28459
    public void validate() throws org.apache.thrift.TException {
28460
      // check for required fields
28461
    }
28462
 
28463
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28464
      try {
28465
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28466
      } catch (org.apache.thrift.TException te) {
28467
        throw new java.io.IOException(te);
28468
      }
28469
    }
28470
 
28471
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28472
      try {
28473
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28474
      } catch (org.apache.thrift.TException te) {
28475
        throw new java.io.IOException(te);
28476
      }
28477
    }
28478
 
28479
  }
28480
 
28481
  public static class getUserSmsInfo_args implements org.apache.thrift.TBase<getUserSmsInfo_args, getUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
28482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_args");
28483
 
28484
    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);
28485
 
28486
    private long userId; // required
28487
 
28488
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28489
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28490
      USER_ID((short)1, "userId");
28491
 
28492
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28493
 
28494
      static {
28495
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28496
          byName.put(field.getFieldName(), field);
28497
        }
28498
      }
28499
 
28500
      /**
28501
       * Find the _Fields constant that matches fieldId, or null if its not found.
28502
       */
28503
      public static _Fields findByThriftId(int fieldId) {
28504
        switch(fieldId) {
28505
          case 1: // USER_ID
28506
            return USER_ID;
28507
          default:
28508
            return null;
28509
        }
28510
      }
28511
 
28512
      /**
28513
       * Find the _Fields constant that matches fieldId, throwing an exception
28514
       * if it is not found.
28515
       */
28516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28517
        _Fields fields = findByThriftId(fieldId);
28518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28519
        return fields;
28520
      }
28521
 
28522
      /**
28523
       * Find the _Fields constant that matches name, or null if its not found.
28524
       */
28525
      public static _Fields findByName(String name) {
28526
        return byName.get(name);
28527
      }
28528
 
28529
      private final short _thriftId;
28530
      private final String _fieldName;
28531
 
28532
      _Fields(short thriftId, String fieldName) {
28533
        _thriftId = thriftId;
28534
        _fieldName = fieldName;
28535
      }
28536
 
28537
      public short getThriftFieldId() {
28538
        return _thriftId;
28539
      }
28540
 
28541
      public String getFieldName() {
28542
        return _fieldName;
28543
      }
28544
    }
28545
 
28546
    // isset id assignments
28547
    private static final int __USERID_ISSET_ID = 0;
28548
    private BitSet __isset_bit_vector = new BitSet(1);
28549
 
28550
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28551
    static {
28552
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28553
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28555
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28556
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_args.class, metaDataMap);
28557
    }
28558
 
28559
    public getUserSmsInfo_args() {
28560
    }
28561
 
28562
    public getUserSmsInfo_args(
28563
      long userId)
28564
    {
28565
      this();
28566
      this.userId = userId;
28567
      setUserIdIsSet(true);
28568
    }
28569
 
28570
    /**
28571
     * Performs a deep copy on <i>other</i>.
28572
     */
28573
    public getUserSmsInfo_args(getUserSmsInfo_args other) {
28574
      __isset_bit_vector.clear();
28575
      __isset_bit_vector.or(other.__isset_bit_vector);
28576
      this.userId = other.userId;
28577
    }
28578
 
28579
    public getUserSmsInfo_args deepCopy() {
28580
      return new getUserSmsInfo_args(this);
28581
    }
28582
 
28583
    @Override
28584
    public void clear() {
28585
      setUserIdIsSet(false);
28586
      this.userId = 0;
28587
    }
28588
 
28589
    public long getUserId() {
28590
      return this.userId;
28591
    }
28592
 
28593
    public void setUserId(long userId) {
28594
      this.userId = userId;
28595
      setUserIdIsSet(true);
28596
    }
28597
 
28598
    public void unsetUserId() {
28599
      __isset_bit_vector.clear(__USERID_ISSET_ID);
28600
    }
28601
 
28602
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
28603
    public boolean isSetUserId() {
28604
      return __isset_bit_vector.get(__USERID_ISSET_ID);
28605
    }
28606
 
28607
    public void setUserIdIsSet(boolean value) {
28608
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
28609
    }
28610
 
28611
    public void setFieldValue(_Fields field, Object value) {
28612
      switch (field) {
28613
      case USER_ID:
28614
        if (value == null) {
28615
          unsetUserId();
28616
        } else {
28617
          setUserId((Long)value);
28618
        }
28619
        break;
28620
 
28621
      }
28622
    }
28623
 
28624
    public Object getFieldValue(_Fields field) {
28625
      switch (field) {
28626
      case USER_ID:
28627
        return Long.valueOf(getUserId());
28628
 
28629
      }
28630
      throw new IllegalStateException();
28631
    }
28632
 
28633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28634
    public boolean isSet(_Fields field) {
28635
      if (field == null) {
28636
        throw new IllegalArgumentException();
28637
      }
28638
 
28639
      switch (field) {
28640
      case USER_ID:
28641
        return isSetUserId();
28642
      }
28643
      throw new IllegalStateException();
28644
    }
28645
 
28646
    @Override
28647
    public boolean equals(Object that) {
28648
      if (that == null)
28649
        return false;
28650
      if (that instanceof getUserSmsInfo_args)
28651
        return this.equals((getUserSmsInfo_args)that);
28652
      return false;
28653
    }
28654
 
28655
    public boolean equals(getUserSmsInfo_args that) {
28656
      if (that == null)
28657
        return false;
28658
 
28659
      boolean this_present_userId = true;
28660
      boolean that_present_userId = true;
28661
      if (this_present_userId || that_present_userId) {
28662
        if (!(this_present_userId && that_present_userId))
28663
          return false;
28664
        if (this.userId != that.userId)
28665
          return false;
28666
      }
28667
 
28668
      return true;
28669
    }
28670
 
28671
    @Override
28672
    public int hashCode() {
28673
      return 0;
28674
    }
28675
 
28676
    public int compareTo(getUserSmsInfo_args other) {
28677
      if (!getClass().equals(other.getClass())) {
28678
        return getClass().getName().compareTo(other.getClass().getName());
28679
      }
28680
 
28681
      int lastComparison = 0;
28682
      getUserSmsInfo_args typedOther = (getUserSmsInfo_args)other;
28683
 
28684
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
28685
      if (lastComparison != 0) {
28686
        return lastComparison;
28687
      }
28688
      if (isSetUserId()) {
28689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
28690
        if (lastComparison != 0) {
28691
          return lastComparison;
28692
        }
28693
      }
28694
      return 0;
28695
    }
28696
 
28697
    public _Fields fieldForId(int fieldId) {
28698
      return _Fields.findByThriftId(fieldId);
28699
    }
28700
 
28701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28702
      org.apache.thrift.protocol.TField field;
28703
      iprot.readStructBegin();
28704
      while (true)
28705
      {
28706
        field = iprot.readFieldBegin();
28707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28708
          break;
28709
        }
28710
        switch (field.id) {
28711
          case 1: // USER_ID
28712
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28713
              this.userId = iprot.readI64();
28714
              setUserIdIsSet(true);
28715
            } else { 
28716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28717
            }
28718
            break;
28719
          default:
28720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28721
        }
28722
        iprot.readFieldEnd();
28723
      }
28724
      iprot.readStructEnd();
28725
      validate();
28726
    }
28727
 
28728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28729
      validate();
28730
 
28731
      oprot.writeStructBegin(STRUCT_DESC);
28732
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28733
      oprot.writeI64(this.userId);
28734
      oprot.writeFieldEnd();
28735
      oprot.writeFieldStop();
28736
      oprot.writeStructEnd();
28737
    }
28738
 
28739
    @Override
28740
    public String toString() {
28741
      StringBuilder sb = new StringBuilder("getUserSmsInfo_args(");
28742
      boolean first = true;
28743
 
28744
      sb.append("userId:");
28745
      sb.append(this.userId);
28746
      first = false;
28747
      sb.append(")");
28748
      return sb.toString();
28749
    }
28750
 
28751
    public void validate() throws org.apache.thrift.TException {
28752
      // check for required fields
28753
    }
28754
 
28755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28756
      try {
28757
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28758
      } catch (org.apache.thrift.TException te) {
28759
        throw new java.io.IOException(te);
28760
      }
28761
    }
28762
 
28763
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28764
      try {
28765
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28766
        __isset_bit_vector = new BitSet(1);
28767
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28768
      } catch (org.apache.thrift.TException te) {
28769
        throw new java.io.IOException(te);
28770
      }
28771
    }
28772
 
28773
  }
28774
 
28775
  public static class getUserSmsInfo_result implements org.apache.thrift.TBase<getUserSmsInfo_result, getUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
28776
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_result");
28777
 
28778
    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);
28779
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28780
 
28781
    private UserSmsInfo success; // required
28782
    private HelperServiceException se; // required
28783
 
28784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28786
      SUCCESS((short)0, "success"),
28787
      SE((short)1, "se");
28788
 
28789
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28790
 
28791
      static {
28792
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28793
          byName.put(field.getFieldName(), field);
28794
        }
28795
      }
28796
 
28797
      /**
28798
       * Find the _Fields constant that matches fieldId, or null if its not found.
28799
       */
28800
      public static _Fields findByThriftId(int fieldId) {
28801
        switch(fieldId) {
28802
          case 0: // SUCCESS
28803
            return SUCCESS;
28804
          case 1: // SE
28805
            return SE;
28806
          default:
28807
            return null;
28808
        }
28809
      }
28810
 
28811
      /**
28812
       * Find the _Fields constant that matches fieldId, throwing an exception
28813
       * if it is not found.
28814
       */
28815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28816
        _Fields fields = findByThriftId(fieldId);
28817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28818
        return fields;
28819
      }
28820
 
28821
      /**
28822
       * Find the _Fields constant that matches name, or null if its not found.
28823
       */
28824
      public static _Fields findByName(String name) {
28825
        return byName.get(name);
28826
      }
28827
 
28828
      private final short _thriftId;
28829
      private final String _fieldName;
28830
 
28831
      _Fields(short thriftId, String fieldName) {
28832
        _thriftId = thriftId;
28833
        _fieldName = fieldName;
28834
      }
28835
 
28836
      public short getThriftFieldId() {
28837
        return _thriftId;
28838
      }
28839
 
28840
      public String getFieldName() {
28841
        return _fieldName;
28842
      }
28843
    }
28844
 
28845
    // isset id assignments
28846
 
28847
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28848
    static {
28849
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28850
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28851
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
28852
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_result.class, metaDataMap);
28856
    }
28857
 
28858
    public getUserSmsInfo_result() {
28859
    }
28860
 
28861
    public getUserSmsInfo_result(
28862
      UserSmsInfo success,
28863
      HelperServiceException se)
28864
    {
28865
      this();
28866
      this.success = success;
28867
      this.se = se;
28868
    }
28869
 
28870
    /**
28871
     * Performs a deep copy on <i>other</i>.
28872
     */
28873
    public getUserSmsInfo_result(getUserSmsInfo_result other) {
28874
      if (other.isSetSuccess()) {
28875
        this.success = new UserSmsInfo(other.success);
28876
      }
28877
      if (other.isSetSe()) {
28878
        this.se = new HelperServiceException(other.se);
28879
      }
28880
    }
28881
 
28882
    public getUserSmsInfo_result deepCopy() {
28883
      return new getUserSmsInfo_result(this);
28884
    }
28885
 
28886
    @Override
28887
    public void clear() {
28888
      this.success = null;
28889
      this.se = null;
28890
    }
28891
 
28892
    public UserSmsInfo getSuccess() {
28893
      return this.success;
28894
    }
28895
 
28896
    public void setSuccess(UserSmsInfo success) {
28897
      this.success = success;
28898
    }
28899
 
28900
    public void unsetSuccess() {
28901
      this.success = null;
28902
    }
28903
 
28904
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28905
    public boolean isSetSuccess() {
28906
      return this.success != null;
28907
    }
28908
 
28909
    public void setSuccessIsSet(boolean value) {
28910
      if (!value) {
28911
        this.success = null;
28912
      }
28913
    }
28914
 
28915
    public HelperServiceException getSe() {
28916
      return this.se;
28917
    }
28918
 
28919
    public void setSe(HelperServiceException se) {
28920
      this.se = se;
28921
    }
28922
 
28923
    public void unsetSe() {
28924
      this.se = null;
28925
    }
28926
 
28927
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
28928
    public boolean isSetSe() {
28929
      return this.se != null;
28930
    }
28931
 
28932
    public void setSeIsSet(boolean value) {
28933
      if (!value) {
28934
        this.se = null;
28935
      }
28936
    }
28937
 
28938
    public void setFieldValue(_Fields field, Object value) {
28939
      switch (field) {
28940
      case SUCCESS:
28941
        if (value == null) {
28942
          unsetSuccess();
28943
        } else {
28944
          setSuccess((UserSmsInfo)value);
28945
        }
28946
        break;
28947
 
28948
      case SE:
28949
        if (value == null) {
28950
          unsetSe();
28951
        } else {
28952
          setSe((HelperServiceException)value);
28953
        }
28954
        break;
28955
 
28956
      }
28957
    }
28958
 
28959
    public Object getFieldValue(_Fields field) {
28960
      switch (field) {
28961
      case SUCCESS:
28962
        return getSuccess();
28963
 
28964
      case SE:
28965
        return getSe();
28966
 
28967
      }
28968
      throw new IllegalStateException();
28969
    }
28970
 
28971
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28972
    public boolean isSet(_Fields field) {
28973
      if (field == null) {
28974
        throw new IllegalArgumentException();
28975
      }
28976
 
28977
      switch (field) {
28978
      case SUCCESS:
28979
        return isSetSuccess();
28980
      case SE:
28981
        return isSetSe();
28982
      }
28983
      throw new IllegalStateException();
28984
    }
28985
 
28986
    @Override
28987
    public boolean equals(Object that) {
28988
      if (that == null)
28989
        return false;
28990
      if (that instanceof getUserSmsInfo_result)
28991
        return this.equals((getUserSmsInfo_result)that);
28992
      return false;
28993
    }
28994
 
28995
    public boolean equals(getUserSmsInfo_result that) {
28996
      if (that == null)
28997
        return false;
28998
 
28999
      boolean this_present_success = true && this.isSetSuccess();
29000
      boolean that_present_success = true && that.isSetSuccess();
29001
      if (this_present_success || that_present_success) {
29002
        if (!(this_present_success && that_present_success))
29003
          return false;
29004
        if (!this.success.equals(that.success))
29005
          return false;
29006
      }
29007
 
29008
      boolean this_present_se = true && this.isSetSe();
29009
      boolean that_present_se = true && that.isSetSe();
29010
      if (this_present_se || that_present_se) {
29011
        if (!(this_present_se && that_present_se))
29012
          return false;
29013
        if (!this.se.equals(that.se))
29014
          return false;
29015
      }
29016
 
29017
      return true;
29018
    }
29019
 
29020
    @Override
29021
    public int hashCode() {
29022
      return 0;
29023
    }
29024
 
29025
    public int compareTo(getUserSmsInfo_result other) {
29026
      if (!getClass().equals(other.getClass())) {
29027
        return getClass().getName().compareTo(other.getClass().getName());
29028
      }
29029
 
29030
      int lastComparison = 0;
29031
      getUserSmsInfo_result typedOther = (getUserSmsInfo_result)other;
29032
 
29033
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29034
      if (lastComparison != 0) {
29035
        return lastComparison;
29036
      }
29037
      if (isSetSuccess()) {
29038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29039
        if (lastComparison != 0) {
29040
          return lastComparison;
29041
        }
29042
      }
29043
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
29044
      if (lastComparison != 0) {
29045
        return lastComparison;
29046
      }
29047
      if (isSetSe()) {
29048
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
29049
        if (lastComparison != 0) {
29050
          return lastComparison;
29051
        }
29052
      }
29053
      return 0;
29054
    }
29055
 
29056
    public _Fields fieldForId(int fieldId) {
29057
      return _Fields.findByThriftId(fieldId);
29058
    }
29059
 
29060
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29061
      org.apache.thrift.protocol.TField field;
29062
      iprot.readStructBegin();
29063
      while (true)
29064
      {
29065
        field = iprot.readFieldBegin();
29066
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29067
          break;
29068
        }
29069
        switch (field.id) {
29070
          case 0: // SUCCESS
29071
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29072
              this.success = new UserSmsInfo();
29073
              this.success.read(iprot);
29074
            } else { 
29075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29076
            }
29077
            break;
29078
          case 1: // SE
29079
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29080
              this.se = new HelperServiceException();
29081
              this.se.read(iprot);
29082
            } else { 
29083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29084
            }
29085
            break;
29086
          default:
29087
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29088
        }
29089
        iprot.readFieldEnd();
29090
      }
29091
      iprot.readStructEnd();
29092
      validate();
29093
    }
29094
 
29095
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29096
      oprot.writeStructBegin(STRUCT_DESC);
29097
 
29098
      if (this.isSetSuccess()) {
29099
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29100
        this.success.write(oprot);
29101
        oprot.writeFieldEnd();
29102
      } else if (this.isSetSe()) {
29103
        oprot.writeFieldBegin(SE_FIELD_DESC);
29104
        this.se.write(oprot);
29105
        oprot.writeFieldEnd();
29106
      }
29107
      oprot.writeFieldStop();
29108
      oprot.writeStructEnd();
29109
    }
29110
 
29111
    @Override
29112
    public String toString() {
29113
      StringBuilder sb = new StringBuilder("getUserSmsInfo_result(");
29114
      boolean first = true;
29115
 
29116
      sb.append("success:");
29117
      if (this.success == null) {
29118
        sb.append("null");
29119
      } else {
29120
        sb.append(this.success);
29121
      }
29122
      first = false;
29123
      if (!first) sb.append(", ");
29124
      sb.append("se:");
29125
      if (this.se == null) {
29126
        sb.append("null");
29127
      } else {
29128
        sb.append(this.se);
29129
      }
29130
      first = false;
29131
      sb.append(")");
29132
      return sb.toString();
29133
    }
29134
 
29135
    public void validate() throws org.apache.thrift.TException {
29136
      // check for required fields
29137
    }
29138
 
29139
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29140
      try {
29141
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29142
      } catch (org.apache.thrift.TException te) {
29143
        throw new java.io.IOException(te);
29144
      }
29145
    }
29146
 
29147
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29148
      try {
29149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29150
      } catch (org.apache.thrift.TException te) {
29151
        throw new java.io.IOException(te);
29152
      }
29153
    }
29154
 
29155
  }
29156
 
29157
  public static class getAllUsersSmsInfo_args implements org.apache.thrift.TBase<getAllUsersSmsInfo_args, getAllUsersSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
29158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_args");
29159
 
29160
    private static final org.apache.thrift.protocol.TField DND_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("dndStatus", org.apache.thrift.protocol.TType.BOOL, (short)1);
29161
    private static final org.apache.thrift.protocol.TField SMS_SUBSCRIBED_FIELD_DESC = new org.apache.thrift.protocol.TField("smsSubscribed", org.apache.thrift.protocol.TType.BOOL, (short)2);
29162
 
29163
    private boolean dndStatus; // required
29164
    private boolean smsSubscribed; // required
29165
 
29166
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29167
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29168
      DND_STATUS((short)1, "dndStatus"),
29169
      SMS_SUBSCRIBED((short)2, "smsSubscribed");
29170
 
29171
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29172
 
29173
      static {
29174
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29175
          byName.put(field.getFieldName(), field);
29176
        }
29177
      }
29178
 
29179
      /**
29180
       * Find the _Fields constant that matches fieldId, or null if its not found.
29181
       */
29182
      public static _Fields findByThriftId(int fieldId) {
29183
        switch(fieldId) {
29184
          case 1: // DND_STATUS
29185
            return DND_STATUS;
29186
          case 2: // SMS_SUBSCRIBED
29187
            return SMS_SUBSCRIBED;
29188
          default:
29189
            return null;
29190
        }
29191
      }
29192
 
29193
      /**
29194
       * Find the _Fields constant that matches fieldId, throwing an exception
29195
       * if it is not found.
29196
       */
29197
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29198
        _Fields fields = findByThriftId(fieldId);
29199
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29200
        return fields;
29201
      }
29202
 
29203
      /**
29204
       * Find the _Fields constant that matches name, or null if its not found.
29205
       */
29206
      public static _Fields findByName(String name) {
29207
        return byName.get(name);
29208
      }
29209
 
29210
      private final short _thriftId;
29211
      private final String _fieldName;
29212
 
29213
      _Fields(short thriftId, String fieldName) {
29214
        _thriftId = thriftId;
29215
        _fieldName = fieldName;
29216
      }
29217
 
29218
      public short getThriftFieldId() {
29219
        return _thriftId;
29220
      }
29221
 
29222
      public String getFieldName() {
29223
        return _fieldName;
29224
      }
29225
    }
29226
 
29227
    // isset id assignments
29228
    private static final int __DNDSTATUS_ISSET_ID = 0;
29229
    private static final int __SMSSUBSCRIBED_ISSET_ID = 1;
29230
    private BitSet __isset_bit_vector = new BitSet(2);
29231
 
29232
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29233
    static {
29234
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29235
      tmpMap.put(_Fields.DND_STATUS, new org.apache.thrift.meta_data.FieldMetaData("dndStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29236
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29237
      tmpMap.put(_Fields.SMS_SUBSCRIBED, new org.apache.thrift.meta_data.FieldMetaData("smsSubscribed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29238
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29239
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29240
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_args.class, metaDataMap);
29241
    }
29242
 
29243
    public getAllUsersSmsInfo_args() {
29244
    }
29245
 
29246
    public getAllUsersSmsInfo_args(
29247
      boolean dndStatus,
29248
      boolean smsSubscribed)
29249
    {
29250
      this();
29251
      this.dndStatus = dndStatus;
29252
      setDndStatusIsSet(true);
29253
      this.smsSubscribed = smsSubscribed;
29254
      setSmsSubscribedIsSet(true);
29255
    }
29256
 
29257
    /**
29258
     * Performs a deep copy on <i>other</i>.
29259
     */
29260
    public getAllUsersSmsInfo_args(getAllUsersSmsInfo_args other) {
29261
      __isset_bit_vector.clear();
29262
      __isset_bit_vector.or(other.__isset_bit_vector);
29263
      this.dndStatus = other.dndStatus;
29264
      this.smsSubscribed = other.smsSubscribed;
29265
    }
29266
 
29267
    public getAllUsersSmsInfo_args deepCopy() {
29268
      return new getAllUsersSmsInfo_args(this);
29269
    }
29270
 
29271
    @Override
29272
    public void clear() {
29273
      setDndStatusIsSet(false);
29274
      this.dndStatus = false;
29275
      setSmsSubscribedIsSet(false);
29276
      this.smsSubscribed = false;
29277
    }
29278
 
29279
    public boolean isDndStatus() {
29280
      return this.dndStatus;
29281
    }
29282
 
29283
    public void setDndStatus(boolean dndStatus) {
29284
      this.dndStatus = dndStatus;
29285
      setDndStatusIsSet(true);
29286
    }
29287
 
29288
    public void unsetDndStatus() {
29289
      __isset_bit_vector.clear(__DNDSTATUS_ISSET_ID);
29290
    }
29291
 
29292
    /** Returns true if field dndStatus is set (has been assigned a value) and false otherwise */
29293
    public boolean isSetDndStatus() {
29294
      return __isset_bit_vector.get(__DNDSTATUS_ISSET_ID);
29295
    }
29296
 
29297
    public void setDndStatusIsSet(boolean value) {
29298
      __isset_bit_vector.set(__DNDSTATUS_ISSET_ID, value);
29299
    }
29300
 
29301
    public boolean isSmsSubscribed() {
29302
      return this.smsSubscribed;
29303
    }
29304
 
29305
    public void setSmsSubscribed(boolean smsSubscribed) {
29306
      this.smsSubscribed = smsSubscribed;
29307
      setSmsSubscribedIsSet(true);
29308
    }
29309
 
29310
    public void unsetSmsSubscribed() {
29311
      __isset_bit_vector.clear(__SMSSUBSCRIBED_ISSET_ID);
29312
    }
29313
 
29314
    /** Returns true if field smsSubscribed is set (has been assigned a value) and false otherwise */
29315
    public boolean isSetSmsSubscribed() {
29316
      return __isset_bit_vector.get(__SMSSUBSCRIBED_ISSET_ID);
29317
    }
29318
 
29319
    public void setSmsSubscribedIsSet(boolean value) {
29320
      __isset_bit_vector.set(__SMSSUBSCRIBED_ISSET_ID, value);
29321
    }
29322
 
29323
    public void setFieldValue(_Fields field, Object value) {
29324
      switch (field) {
29325
      case DND_STATUS:
29326
        if (value == null) {
29327
          unsetDndStatus();
29328
        } else {
29329
          setDndStatus((Boolean)value);
29330
        }
29331
        break;
29332
 
29333
      case SMS_SUBSCRIBED:
29334
        if (value == null) {
29335
          unsetSmsSubscribed();
29336
        } else {
29337
          setSmsSubscribed((Boolean)value);
29338
        }
29339
        break;
29340
 
29341
      }
29342
    }
29343
 
29344
    public Object getFieldValue(_Fields field) {
29345
      switch (field) {
29346
      case DND_STATUS:
29347
        return Boolean.valueOf(isDndStatus());
29348
 
29349
      case SMS_SUBSCRIBED:
29350
        return Boolean.valueOf(isSmsSubscribed());
29351
 
29352
      }
29353
      throw new IllegalStateException();
29354
    }
29355
 
29356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29357
    public boolean isSet(_Fields field) {
29358
      if (field == null) {
29359
        throw new IllegalArgumentException();
29360
      }
29361
 
29362
      switch (field) {
29363
      case DND_STATUS:
29364
        return isSetDndStatus();
29365
      case SMS_SUBSCRIBED:
29366
        return isSetSmsSubscribed();
29367
      }
29368
      throw new IllegalStateException();
29369
    }
29370
 
29371
    @Override
29372
    public boolean equals(Object that) {
29373
      if (that == null)
29374
        return false;
29375
      if (that instanceof getAllUsersSmsInfo_args)
29376
        return this.equals((getAllUsersSmsInfo_args)that);
29377
      return false;
29378
    }
29379
 
29380
    public boolean equals(getAllUsersSmsInfo_args that) {
29381
      if (that == null)
29382
        return false;
29383
 
29384
      boolean this_present_dndStatus = true;
29385
      boolean that_present_dndStatus = true;
29386
      if (this_present_dndStatus || that_present_dndStatus) {
29387
        if (!(this_present_dndStatus && that_present_dndStatus))
29388
          return false;
29389
        if (this.dndStatus != that.dndStatus)
29390
          return false;
29391
      }
29392
 
29393
      boolean this_present_smsSubscribed = true;
29394
      boolean that_present_smsSubscribed = true;
29395
      if (this_present_smsSubscribed || that_present_smsSubscribed) {
29396
        if (!(this_present_smsSubscribed && that_present_smsSubscribed))
29397
          return false;
29398
        if (this.smsSubscribed != that.smsSubscribed)
29399
          return false;
29400
      }
29401
 
29402
      return true;
29403
    }
29404
 
29405
    @Override
29406
    public int hashCode() {
29407
      return 0;
29408
    }
29409
 
29410
    public int compareTo(getAllUsersSmsInfo_args other) {
29411
      if (!getClass().equals(other.getClass())) {
29412
        return getClass().getName().compareTo(other.getClass().getName());
29413
      }
29414
 
29415
      int lastComparison = 0;
29416
      getAllUsersSmsInfo_args typedOther = (getAllUsersSmsInfo_args)other;
29417
 
29418
      lastComparison = Boolean.valueOf(isSetDndStatus()).compareTo(typedOther.isSetDndStatus());
29419
      if (lastComparison != 0) {
29420
        return lastComparison;
29421
      }
29422
      if (isSetDndStatus()) {
29423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dndStatus, typedOther.dndStatus);
29424
        if (lastComparison != 0) {
29425
          return lastComparison;
29426
        }
29427
      }
29428
      lastComparison = Boolean.valueOf(isSetSmsSubscribed()).compareTo(typedOther.isSetSmsSubscribed());
29429
      if (lastComparison != 0) {
29430
        return lastComparison;
29431
      }
29432
      if (isSetSmsSubscribed()) {
29433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsSubscribed, typedOther.smsSubscribed);
29434
        if (lastComparison != 0) {
29435
          return lastComparison;
29436
        }
29437
      }
29438
      return 0;
29439
    }
29440
 
29441
    public _Fields fieldForId(int fieldId) {
29442
      return _Fields.findByThriftId(fieldId);
29443
    }
29444
 
29445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29446
      org.apache.thrift.protocol.TField field;
29447
      iprot.readStructBegin();
29448
      while (true)
29449
      {
29450
        field = iprot.readFieldBegin();
29451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29452
          break;
29453
        }
29454
        switch (field.id) {
29455
          case 1: // DND_STATUS
29456
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29457
              this.dndStatus = iprot.readBool();
29458
              setDndStatusIsSet(true);
29459
            } else { 
29460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29461
            }
29462
            break;
29463
          case 2: // SMS_SUBSCRIBED
29464
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29465
              this.smsSubscribed = iprot.readBool();
29466
              setSmsSubscribedIsSet(true);
29467
            } else { 
29468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29469
            }
29470
            break;
29471
          default:
29472
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29473
        }
29474
        iprot.readFieldEnd();
29475
      }
29476
      iprot.readStructEnd();
29477
      validate();
29478
    }
29479
 
29480
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29481
      validate();
29482
 
29483
      oprot.writeStructBegin(STRUCT_DESC);
29484
      oprot.writeFieldBegin(DND_STATUS_FIELD_DESC);
29485
      oprot.writeBool(this.dndStatus);
29486
      oprot.writeFieldEnd();
29487
      oprot.writeFieldBegin(SMS_SUBSCRIBED_FIELD_DESC);
29488
      oprot.writeBool(this.smsSubscribed);
29489
      oprot.writeFieldEnd();
29490
      oprot.writeFieldStop();
29491
      oprot.writeStructEnd();
29492
    }
29493
 
29494
    @Override
29495
    public String toString() {
29496
      StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_args(");
29497
      boolean first = true;
29498
 
29499
      sb.append("dndStatus:");
29500
      sb.append(this.dndStatus);
29501
      first = false;
29502
      if (!first) sb.append(", ");
29503
      sb.append("smsSubscribed:");
29504
      sb.append(this.smsSubscribed);
29505
      first = false;
29506
      sb.append(")");
29507
      return sb.toString();
29508
    }
29509
 
29510
    public void validate() throws org.apache.thrift.TException {
29511
      // check for required fields
29512
    }
29513
 
29514
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29515
      try {
29516
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29517
      } catch (org.apache.thrift.TException te) {
29518
        throw new java.io.IOException(te);
29519
      }
29520
    }
29521
 
29522
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29523
      try {
29524
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29525
        __isset_bit_vector = new BitSet(1);
29526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29527
      } catch (org.apache.thrift.TException te) {
29528
        throw new java.io.IOException(te);
29529
      }
29530
    }
29531
 
29532
  }
29533
 
29534
  public static class getAllUsersSmsInfo_result implements org.apache.thrift.TBase<getAllUsersSmsInfo_result, getAllUsersSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
29535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_result");
29536
 
29537
    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);
29538
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
29539
 
29540
    private List<UserSmsInfo> success; // required
29541
    private HelperServiceException se; // required
29542
 
29543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29545
      SUCCESS((short)0, "success"),
29546
      SE((short)1, "se");
29547
 
29548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29549
 
29550
      static {
29551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29552
          byName.put(field.getFieldName(), field);
29553
        }
29554
      }
29555
 
29556
      /**
29557
       * Find the _Fields constant that matches fieldId, or null if its not found.
29558
       */
29559
      public static _Fields findByThriftId(int fieldId) {
29560
        switch(fieldId) {
29561
          case 0: // SUCCESS
29562
            return SUCCESS;
29563
          case 1: // SE
29564
            return SE;
29565
          default:
29566
            return null;
29567
        }
29568
      }
29569
 
29570
      /**
29571
       * Find the _Fields constant that matches fieldId, throwing an exception
29572
       * if it is not found.
29573
       */
29574
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29575
        _Fields fields = findByThriftId(fieldId);
29576
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29577
        return fields;
29578
      }
29579
 
29580
      /**
29581
       * Find the _Fields constant that matches name, or null if its not found.
29582
       */
29583
      public static _Fields findByName(String name) {
29584
        return byName.get(name);
29585
      }
29586
 
29587
      private final short _thriftId;
29588
      private final String _fieldName;
29589
 
29590
      _Fields(short thriftId, String fieldName) {
29591
        _thriftId = thriftId;
29592
        _fieldName = fieldName;
29593
      }
29594
 
29595
      public short getThriftFieldId() {
29596
        return _thriftId;
29597
      }
29598
 
29599
      public String getFieldName() {
29600
        return _fieldName;
29601
      }
29602
    }
29603
 
29604
    // isset id assignments
29605
 
29606
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29607
    static {
29608
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29609
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29610
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29611
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class))));
29612
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_result.class, metaDataMap);
29616
    }
29617
 
29618
    public getAllUsersSmsInfo_result() {
29619
    }
29620
 
29621
    public getAllUsersSmsInfo_result(
29622
      List<UserSmsInfo> success,
29623
      HelperServiceException se)
29624
    {
29625
      this();
29626
      this.success = success;
29627
      this.se = se;
29628
    }
29629
 
29630
    /**
29631
     * Performs a deep copy on <i>other</i>.
29632
     */
29633
    public getAllUsersSmsInfo_result(getAllUsersSmsInfo_result other) {
29634
      if (other.isSetSuccess()) {
29635
        List<UserSmsInfo> __this__success = new ArrayList<UserSmsInfo>();
29636
        for (UserSmsInfo other_element : other.success) {
29637
          __this__success.add(new UserSmsInfo(other_element));
29638
        }
29639
        this.success = __this__success;
29640
      }
29641
      if (other.isSetSe()) {
29642
        this.se = new HelperServiceException(other.se);
29643
      }
29644
    }
29645
 
29646
    public getAllUsersSmsInfo_result deepCopy() {
29647
      return new getAllUsersSmsInfo_result(this);
29648
    }
29649
 
29650
    @Override
29651
    public void clear() {
29652
      this.success = null;
29653
      this.se = null;
29654
    }
29655
 
29656
    public int getSuccessSize() {
29657
      return (this.success == null) ? 0 : this.success.size();
29658
    }
29659
 
29660
    public java.util.Iterator<UserSmsInfo> getSuccessIterator() {
29661
      return (this.success == null) ? null : this.success.iterator();
29662
    }
29663
 
29664
    public void addToSuccess(UserSmsInfo elem) {
29665
      if (this.success == null) {
29666
        this.success = new ArrayList<UserSmsInfo>();
29667
      }
29668
      this.success.add(elem);
29669
    }
29670
 
29671
    public List<UserSmsInfo> getSuccess() {
29672
      return this.success;
29673
    }
29674
 
29675
    public void setSuccess(List<UserSmsInfo> success) {
29676
      this.success = success;
29677
    }
29678
 
29679
    public void unsetSuccess() {
29680
      this.success = null;
29681
    }
29682
 
29683
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29684
    public boolean isSetSuccess() {
29685
      return this.success != null;
29686
    }
29687
 
29688
    public void setSuccessIsSet(boolean value) {
29689
      if (!value) {
29690
        this.success = null;
29691
      }
29692
    }
29693
 
29694
    public HelperServiceException getSe() {
29695
      return this.se;
29696
    }
29697
 
29698
    public void setSe(HelperServiceException se) {
29699
      this.se = se;
29700
    }
29701
 
29702
    public void unsetSe() {
29703
      this.se = null;
29704
    }
29705
 
29706
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
29707
    public boolean isSetSe() {
29708
      return this.se != null;
29709
    }
29710
 
29711
    public void setSeIsSet(boolean value) {
29712
      if (!value) {
29713
        this.se = null;
29714
      }
29715
    }
29716
 
29717
    public void setFieldValue(_Fields field, Object value) {
29718
      switch (field) {
29719
      case SUCCESS:
29720
        if (value == null) {
29721
          unsetSuccess();
29722
        } else {
29723
          setSuccess((List<UserSmsInfo>)value);
29724
        }
29725
        break;
29726
 
29727
      case SE:
29728
        if (value == null) {
29729
          unsetSe();
29730
        } else {
29731
          setSe((HelperServiceException)value);
29732
        }
29733
        break;
29734
 
29735
      }
29736
    }
29737
 
29738
    public Object getFieldValue(_Fields field) {
29739
      switch (field) {
29740
      case SUCCESS:
29741
        return getSuccess();
29742
 
29743
      case SE:
29744
        return getSe();
29745
 
29746
      }
29747
      throw new IllegalStateException();
29748
    }
29749
 
29750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29751
    public boolean isSet(_Fields field) {
29752
      if (field == null) {
29753
        throw new IllegalArgumentException();
29754
      }
29755
 
29756
      switch (field) {
29757
      case SUCCESS:
29758
        return isSetSuccess();
29759
      case SE:
29760
        return isSetSe();
29761
      }
29762
      throw new IllegalStateException();
29763
    }
29764
 
29765
    @Override
29766
    public boolean equals(Object that) {
29767
      if (that == null)
29768
        return false;
29769
      if (that instanceof getAllUsersSmsInfo_result)
29770
        return this.equals((getAllUsersSmsInfo_result)that);
29771
      return false;
29772
    }
29773
 
29774
    public boolean equals(getAllUsersSmsInfo_result that) {
29775
      if (that == null)
29776
        return false;
29777
 
29778
      boolean this_present_success = true && this.isSetSuccess();
29779
      boolean that_present_success = true && that.isSetSuccess();
29780
      if (this_present_success || that_present_success) {
29781
        if (!(this_present_success && that_present_success))
29782
          return false;
29783
        if (!this.success.equals(that.success))
29784
          return false;
29785
      }
29786
 
29787
      boolean this_present_se = true && this.isSetSe();
29788
      boolean that_present_se = true && that.isSetSe();
29789
      if (this_present_se || that_present_se) {
29790
        if (!(this_present_se && that_present_se))
29791
          return false;
29792
        if (!this.se.equals(that.se))
29793
          return false;
29794
      }
29795
 
29796
      return true;
29797
    }
29798
 
29799
    @Override
29800
    public int hashCode() {
29801
      return 0;
29802
    }
29803
 
29804
    public int compareTo(getAllUsersSmsInfo_result other) {
29805
      if (!getClass().equals(other.getClass())) {
29806
        return getClass().getName().compareTo(other.getClass().getName());
29807
      }
29808
 
29809
      int lastComparison = 0;
29810
      getAllUsersSmsInfo_result typedOther = (getAllUsersSmsInfo_result)other;
29811
 
29812
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29813
      if (lastComparison != 0) {
29814
        return lastComparison;
29815
      }
29816
      if (isSetSuccess()) {
29817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29818
        if (lastComparison != 0) {
29819
          return lastComparison;
29820
        }
29821
      }
29822
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
29823
      if (lastComparison != 0) {
29824
        return lastComparison;
29825
      }
29826
      if (isSetSe()) {
29827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
29828
        if (lastComparison != 0) {
29829
          return lastComparison;
29830
        }
29831
      }
29832
      return 0;
29833
    }
29834
 
29835
    public _Fields fieldForId(int fieldId) {
29836
      return _Fields.findByThriftId(fieldId);
29837
    }
29838
 
29839
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29840
      org.apache.thrift.protocol.TField field;
29841
      iprot.readStructBegin();
29842
      while (true)
29843
      {
29844
        field = iprot.readFieldBegin();
29845
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29846
          break;
29847
        }
29848
        switch (field.id) {
29849
          case 0: // SUCCESS
29850
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29851
              {
29852
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
29853
                this.success = new ArrayList<UserSmsInfo>(_list77.size);
29854
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
29855
                {
29856
                  UserSmsInfo _elem79; // required
29857
                  _elem79 = new UserSmsInfo();
29858
                  _elem79.read(iprot);
29859
                  this.success.add(_elem79);
29860
                }
29861
                iprot.readListEnd();
29862
              }
29863
            } else { 
29864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29865
            }
29866
            break;
29867
          case 1: // SE
29868
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29869
              this.se = new HelperServiceException();
29870
              this.se.read(iprot);
29871
            } else { 
29872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29873
            }
29874
            break;
29875
          default:
29876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29877
        }
29878
        iprot.readFieldEnd();
29879
      }
29880
      iprot.readStructEnd();
29881
      validate();
29882
    }
29883
 
29884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29885
      oprot.writeStructBegin(STRUCT_DESC);
29886
 
29887
      if (this.isSetSuccess()) {
29888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29889
        {
29890
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29891
          for (UserSmsInfo _iter80 : this.success)
29892
          {
29893
            _iter80.write(oprot);
29894
          }
29895
          oprot.writeListEnd();
29896
        }
29897
        oprot.writeFieldEnd();
29898
      } else if (this.isSetSe()) {
29899
        oprot.writeFieldBegin(SE_FIELD_DESC);
29900
        this.se.write(oprot);
29901
        oprot.writeFieldEnd();
29902
      }
29903
      oprot.writeFieldStop();
29904
      oprot.writeStructEnd();
29905
    }
29906
 
29907
    @Override
29908
    public String toString() {
29909
      StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_result(");
29910
      boolean first = true;
29911
 
29912
      sb.append("success:");
29913
      if (this.success == null) {
29914
        sb.append("null");
29915
      } else {
29916
        sb.append(this.success);
29917
      }
29918
      first = false;
29919
      if (!first) sb.append(", ");
29920
      sb.append("se:");
29921
      if (this.se == null) {
29922
        sb.append("null");
29923
      } else {
29924
        sb.append(this.se);
29925
      }
29926
      first = false;
29927
      sb.append(")");
29928
      return sb.toString();
29929
    }
29930
 
29931
    public void validate() throws org.apache.thrift.TException {
29932
      // check for required fields
29933
    }
29934
 
29935
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29936
      try {
29937
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29938
      } catch (org.apache.thrift.TException te) {
29939
        throw new java.io.IOException(te);
29940
      }
29941
    }
29942
 
29943
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29944
      try {
29945
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29946
      } catch (org.apache.thrift.TException te) {
29947
        throw new java.io.IOException(te);
29948
      }
29949
    }
29950
 
29951
  }
29952
 
29953
  public static class listSmsToGetDeliveryInfo_args implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_args, listSmsToGetDeliveryInfo_args._Fields>, java.io.Serializable, Cloneable   {
29954
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_args");
29955
 
29956
 
29957
 
29958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29959
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29960
;
29961
 
29962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29963
 
29964
      static {
29965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29966
          byName.put(field.getFieldName(), field);
29967
        }
29968
      }
29969
 
29970
      /**
29971
       * Find the _Fields constant that matches fieldId, or null if its not found.
29972
       */
29973
      public static _Fields findByThriftId(int fieldId) {
29974
        switch(fieldId) {
29975
          default:
29976
            return null;
29977
        }
29978
      }
29979
 
29980
      /**
29981
       * Find the _Fields constant that matches fieldId, throwing an exception
29982
       * if it is not found.
29983
       */
29984
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29985
        _Fields fields = findByThriftId(fieldId);
29986
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29987
        return fields;
29988
      }
29989
 
29990
      /**
29991
       * Find the _Fields constant that matches name, or null if its not found.
29992
       */
29993
      public static _Fields findByName(String name) {
29994
        return byName.get(name);
29995
      }
29996
 
29997
      private final short _thriftId;
29998
      private final String _fieldName;
29999
 
30000
      _Fields(short thriftId, String fieldName) {
30001
        _thriftId = thriftId;
30002
        _fieldName = fieldName;
30003
      }
30004
 
30005
      public short getThriftFieldId() {
30006
        return _thriftId;
30007
      }
30008
 
30009
      public String getFieldName() {
30010
        return _fieldName;
30011
      }
30012
    }
30013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30014
    static {
30015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30016
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30017
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_args.class, metaDataMap);
30018
    }
30019
 
30020
    public listSmsToGetDeliveryInfo_args() {
30021
    }
30022
 
30023
    /**
30024
     * Performs a deep copy on <i>other</i>.
30025
     */
30026
    public listSmsToGetDeliveryInfo_args(listSmsToGetDeliveryInfo_args other) {
30027
    }
30028
 
30029
    public listSmsToGetDeliveryInfo_args deepCopy() {
30030
      return new listSmsToGetDeliveryInfo_args(this);
30031
    }
30032
 
30033
    @Override
30034
    public void clear() {
30035
    }
30036
 
30037
    public void setFieldValue(_Fields field, Object value) {
30038
      switch (field) {
30039
      }
30040
    }
30041
 
30042
    public Object getFieldValue(_Fields field) {
30043
      switch (field) {
30044
      }
30045
      throw new IllegalStateException();
30046
    }
30047
 
30048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30049
    public boolean isSet(_Fields field) {
30050
      if (field == null) {
30051
        throw new IllegalArgumentException();
30052
      }
30053
 
30054
      switch (field) {
30055
      }
30056
      throw new IllegalStateException();
30057
    }
30058
 
30059
    @Override
30060
    public boolean equals(Object that) {
30061
      if (that == null)
30062
        return false;
30063
      if (that instanceof listSmsToGetDeliveryInfo_args)
30064
        return this.equals((listSmsToGetDeliveryInfo_args)that);
30065
      return false;
30066
    }
30067
 
30068
    public boolean equals(listSmsToGetDeliveryInfo_args that) {
30069
      if (that == null)
30070
        return false;
30071
 
30072
      return true;
30073
    }
30074
 
30075
    @Override
30076
    public int hashCode() {
30077
      return 0;
30078
    }
30079
 
30080
    public int compareTo(listSmsToGetDeliveryInfo_args other) {
30081
      if (!getClass().equals(other.getClass())) {
30082
        return getClass().getName().compareTo(other.getClass().getName());
30083
      }
30084
 
30085
      int lastComparison = 0;
30086
      listSmsToGetDeliveryInfo_args typedOther = (listSmsToGetDeliveryInfo_args)other;
30087
 
30088
      return 0;
30089
    }
30090
 
30091
    public _Fields fieldForId(int fieldId) {
30092
      return _Fields.findByThriftId(fieldId);
30093
    }
30094
 
30095
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30096
      org.apache.thrift.protocol.TField field;
30097
      iprot.readStructBegin();
30098
      while (true)
30099
      {
30100
        field = iprot.readFieldBegin();
30101
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30102
          break;
30103
        }
30104
        switch (field.id) {
30105
          default:
30106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30107
        }
30108
        iprot.readFieldEnd();
30109
      }
30110
      iprot.readStructEnd();
30111
      validate();
30112
    }
30113
 
30114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30115
      validate();
30116
 
30117
      oprot.writeStructBegin(STRUCT_DESC);
30118
      oprot.writeFieldStop();
30119
      oprot.writeStructEnd();
30120
    }
30121
 
30122
    @Override
30123
    public String toString() {
30124
      StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_args(");
30125
      boolean first = true;
30126
 
30127
      sb.append(")");
30128
      return sb.toString();
30129
    }
30130
 
30131
    public void validate() throws org.apache.thrift.TException {
30132
      // check for required fields
30133
    }
30134
 
30135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30136
      try {
30137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30138
      } catch (org.apache.thrift.TException te) {
30139
        throw new java.io.IOException(te);
30140
      }
30141
    }
30142
 
30143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30144
      try {
30145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30146
      } catch (org.apache.thrift.TException te) {
30147
        throw new java.io.IOException(te);
30148
      }
30149
    }
30150
 
30151
  }
30152
 
30153
  public static class listSmsToGetDeliveryInfo_result implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_result, listSmsToGetDeliveryInfo_result._Fields>, java.io.Serializable, Cloneable   {
30154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_result");
30155
 
30156
    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);
30157
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30158
 
30159
    private List<UserSms> success; // required
30160
    private HelperServiceException se; // required
30161
 
30162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30164
      SUCCESS((short)0, "success"),
30165
      SE((short)1, "se");
30166
 
30167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30168
 
30169
      static {
30170
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30171
          byName.put(field.getFieldName(), field);
30172
        }
30173
      }
30174
 
30175
      /**
30176
       * Find the _Fields constant that matches fieldId, or null if its not found.
30177
       */
30178
      public static _Fields findByThriftId(int fieldId) {
30179
        switch(fieldId) {
30180
          case 0: // SUCCESS
30181
            return SUCCESS;
30182
          case 1: // SE
30183
            return SE;
30184
          default:
30185
            return null;
30186
        }
30187
      }
30188
 
30189
      /**
30190
       * Find the _Fields constant that matches fieldId, throwing an exception
30191
       * if it is not found.
30192
       */
30193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30194
        _Fields fields = findByThriftId(fieldId);
30195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30196
        return fields;
30197
      }
30198
 
30199
      /**
30200
       * Find the _Fields constant that matches name, or null if its not found.
30201
       */
30202
      public static _Fields findByName(String name) {
30203
        return byName.get(name);
30204
      }
30205
 
30206
      private final short _thriftId;
30207
      private final String _fieldName;
30208
 
30209
      _Fields(short thriftId, String fieldName) {
30210
        _thriftId = thriftId;
30211
        _fieldName = fieldName;
30212
      }
30213
 
30214
      public short getThriftFieldId() {
30215
        return _thriftId;
30216
      }
30217
 
30218
      public String getFieldName() {
30219
        return _fieldName;
30220
      }
30221
    }
30222
 
30223
    // isset id assignments
30224
 
30225
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30226
    static {
30227
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30228
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30229
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30230
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
30231
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_result.class, metaDataMap);
30235
    }
30236
 
30237
    public listSmsToGetDeliveryInfo_result() {
30238
    }
30239
 
30240
    public listSmsToGetDeliveryInfo_result(
30241
      List<UserSms> success,
30242
      HelperServiceException se)
30243
    {
30244
      this();
30245
      this.success = success;
30246
      this.se = se;
30247
    }
30248
 
30249
    /**
30250
     * Performs a deep copy on <i>other</i>.
30251
     */
30252
    public listSmsToGetDeliveryInfo_result(listSmsToGetDeliveryInfo_result other) {
30253
      if (other.isSetSuccess()) {
30254
        List<UserSms> __this__success = new ArrayList<UserSms>();
30255
        for (UserSms other_element : other.success) {
30256
          __this__success.add(new UserSms(other_element));
30257
        }
30258
        this.success = __this__success;
30259
      }
30260
      if (other.isSetSe()) {
30261
        this.se = new HelperServiceException(other.se);
30262
      }
30263
    }
30264
 
30265
    public listSmsToGetDeliveryInfo_result deepCopy() {
30266
      return new listSmsToGetDeliveryInfo_result(this);
30267
    }
30268
 
30269
    @Override
30270
    public void clear() {
30271
      this.success = null;
30272
      this.se = null;
30273
    }
30274
 
30275
    public int getSuccessSize() {
30276
      return (this.success == null) ? 0 : this.success.size();
30277
    }
30278
 
30279
    public java.util.Iterator<UserSms> getSuccessIterator() {
30280
      return (this.success == null) ? null : this.success.iterator();
30281
    }
30282
 
30283
    public void addToSuccess(UserSms elem) {
30284
      if (this.success == null) {
30285
        this.success = new ArrayList<UserSms>();
30286
      }
30287
      this.success.add(elem);
30288
    }
30289
 
30290
    public List<UserSms> getSuccess() {
30291
      return this.success;
30292
    }
30293
 
30294
    public void setSuccess(List<UserSms> success) {
30295
      this.success = success;
30296
    }
30297
 
30298
    public void unsetSuccess() {
30299
      this.success = null;
30300
    }
30301
 
30302
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30303
    public boolean isSetSuccess() {
30304
      return this.success != null;
30305
    }
30306
 
30307
    public void setSuccessIsSet(boolean value) {
30308
      if (!value) {
30309
        this.success = null;
30310
      }
30311
    }
30312
 
30313
    public HelperServiceException getSe() {
30314
      return this.se;
30315
    }
30316
 
30317
    public void setSe(HelperServiceException se) {
30318
      this.se = se;
30319
    }
30320
 
30321
    public void unsetSe() {
30322
      this.se = null;
30323
    }
30324
 
30325
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
30326
    public boolean isSetSe() {
30327
      return this.se != null;
30328
    }
30329
 
30330
    public void setSeIsSet(boolean value) {
30331
      if (!value) {
30332
        this.se = null;
30333
      }
30334
    }
30335
 
30336
    public void setFieldValue(_Fields field, Object value) {
30337
      switch (field) {
30338
      case SUCCESS:
30339
        if (value == null) {
30340
          unsetSuccess();
30341
        } else {
30342
          setSuccess((List<UserSms>)value);
30343
        }
30344
        break;
30345
 
30346
      case SE:
30347
        if (value == null) {
30348
          unsetSe();
30349
        } else {
30350
          setSe((HelperServiceException)value);
30351
        }
30352
        break;
30353
 
30354
      }
30355
    }
30356
 
30357
    public Object getFieldValue(_Fields field) {
30358
      switch (field) {
30359
      case SUCCESS:
30360
        return getSuccess();
30361
 
30362
      case SE:
30363
        return getSe();
30364
 
30365
      }
30366
      throw new IllegalStateException();
30367
    }
30368
 
30369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30370
    public boolean isSet(_Fields field) {
30371
      if (field == null) {
30372
        throw new IllegalArgumentException();
30373
      }
30374
 
30375
      switch (field) {
30376
      case SUCCESS:
30377
        return isSetSuccess();
30378
      case SE:
30379
        return isSetSe();
30380
      }
30381
      throw new IllegalStateException();
30382
    }
30383
 
30384
    @Override
30385
    public boolean equals(Object that) {
30386
      if (that == null)
30387
        return false;
30388
      if (that instanceof listSmsToGetDeliveryInfo_result)
30389
        return this.equals((listSmsToGetDeliveryInfo_result)that);
30390
      return false;
30391
    }
30392
 
30393
    public boolean equals(listSmsToGetDeliveryInfo_result that) {
30394
      if (that == null)
30395
        return false;
30396
 
30397
      boolean this_present_success = true && this.isSetSuccess();
30398
      boolean that_present_success = true && that.isSetSuccess();
30399
      if (this_present_success || that_present_success) {
30400
        if (!(this_present_success && that_present_success))
30401
          return false;
30402
        if (!this.success.equals(that.success))
30403
          return false;
30404
      }
30405
 
30406
      boolean this_present_se = true && this.isSetSe();
30407
      boolean that_present_se = true && that.isSetSe();
30408
      if (this_present_se || that_present_se) {
30409
        if (!(this_present_se && that_present_se))
30410
          return false;
30411
        if (!this.se.equals(that.se))
30412
          return false;
30413
      }
30414
 
30415
      return true;
30416
    }
30417
 
30418
    @Override
30419
    public int hashCode() {
30420
      return 0;
30421
    }
30422
 
30423
    public int compareTo(listSmsToGetDeliveryInfo_result other) {
30424
      if (!getClass().equals(other.getClass())) {
30425
        return getClass().getName().compareTo(other.getClass().getName());
30426
      }
30427
 
30428
      int lastComparison = 0;
30429
      listSmsToGetDeliveryInfo_result typedOther = (listSmsToGetDeliveryInfo_result)other;
30430
 
30431
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30432
      if (lastComparison != 0) {
30433
        return lastComparison;
30434
      }
30435
      if (isSetSuccess()) {
30436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30437
        if (lastComparison != 0) {
30438
          return lastComparison;
30439
        }
30440
      }
30441
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
30442
      if (lastComparison != 0) {
30443
        return lastComparison;
30444
      }
30445
      if (isSetSe()) {
30446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
30447
        if (lastComparison != 0) {
30448
          return lastComparison;
30449
        }
30450
      }
30451
      return 0;
30452
    }
30453
 
30454
    public _Fields fieldForId(int fieldId) {
30455
      return _Fields.findByThriftId(fieldId);
30456
    }
30457
 
30458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30459
      org.apache.thrift.protocol.TField field;
30460
      iprot.readStructBegin();
30461
      while (true)
30462
      {
30463
        field = iprot.readFieldBegin();
30464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30465
          break;
30466
        }
30467
        switch (field.id) {
30468
          case 0: // SUCCESS
30469
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30470
              {
30471
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
30472
                this.success = new ArrayList<UserSms>(_list81.size);
30473
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
30474
                {
30475
                  UserSms _elem83; // required
30476
                  _elem83 = new UserSms();
30477
                  _elem83.read(iprot);
30478
                  this.success.add(_elem83);
30479
                }
30480
                iprot.readListEnd();
30481
              }
30482
            } else { 
30483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30484
            }
30485
            break;
30486
          case 1: // SE
30487
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30488
              this.se = new HelperServiceException();
30489
              this.se.read(iprot);
30490
            } else { 
30491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30492
            }
30493
            break;
30494
          default:
30495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30496
        }
30497
        iprot.readFieldEnd();
30498
      }
30499
      iprot.readStructEnd();
30500
      validate();
30501
    }
30502
 
30503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30504
      oprot.writeStructBegin(STRUCT_DESC);
30505
 
30506
      if (this.isSetSuccess()) {
30507
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30508
        {
30509
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30510
          for (UserSms _iter84 : this.success)
30511
          {
30512
            _iter84.write(oprot);
30513
          }
30514
          oprot.writeListEnd();
30515
        }
30516
        oprot.writeFieldEnd();
30517
      } else if (this.isSetSe()) {
30518
        oprot.writeFieldBegin(SE_FIELD_DESC);
30519
        this.se.write(oprot);
30520
        oprot.writeFieldEnd();
30521
      }
30522
      oprot.writeFieldStop();
30523
      oprot.writeStructEnd();
30524
    }
30525
 
30526
    @Override
30527
    public String toString() {
30528
      StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_result(");
30529
      boolean first = true;
30530
 
30531
      sb.append("success:");
30532
      if (this.success == null) {
30533
        sb.append("null");
30534
      } else {
30535
        sb.append(this.success);
30536
      }
30537
      first = false;
30538
      if (!first) sb.append(", ");
30539
      sb.append("se:");
30540
      if (this.se == null) {
30541
        sb.append("null");
30542
      } else {
30543
        sb.append(this.se);
30544
      }
30545
      first = false;
30546
      sb.append(")");
30547
      return sb.toString();
30548
    }
30549
 
30550
    public void validate() throws org.apache.thrift.TException {
30551
      // check for required fields
30552
    }
30553
 
30554
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30555
      try {
30556
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30557
      } catch (org.apache.thrift.TException te) {
30558
        throw new java.io.IOException(te);
30559
      }
30560
    }
30561
 
30562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30563
      try {
30564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30565
      } catch (org.apache.thrift.TException te) {
30566
        throw new java.io.IOException(te);
30567
      }
30568
    }
30569
 
30570
  }
30571
 
30572
  public static class markMessagesAsSentToOperator_args implements org.apache.thrift.TBase<markMessagesAsSentToOperator_args, markMessagesAsSentToOperator_args._Fields>, java.io.Serializable, Cloneable   {
30573
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_args");
30574
 
30575
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
30576
 
30577
    private List<UserSms> userSmsList; // required
30578
 
30579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30581
      USER_SMS_LIST((short)-1, "userSmsList");
30582
 
30583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30584
 
30585
      static {
30586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30587
          byName.put(field.getFieldName(), field);
30588
        }
30589
      }
30590
 
30591
      /**
30592
       * Find the _Fields constant that matches fieldId, or null if its not found.
30593
       */
30594
      public static _Fields findByThriftId(int fieldId) {
30595
        switch(fieldId) {
30596
          case -1: // USER_SMS_LIST
30597
            return USER_SMS_LIST;
30598
          default:
30599
            return null;
30600
        }
30601
      }
30602
 
30603
      /**
30604
       * Find the _Fields constant that matches fieldId, throwing an exception
30605
       * if it is not found.
30606
       */
30607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30608
        _Fields fields = findByThriftId(fieldId);
30609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30610
        return fields;
30611
      }
30612
 
30613
      /**
30614
       * Find the _Fields constant that matches name, or null if its not found.
30615
       */
30616
      public static _Fields findByName(String name) {
30617
        return byName.get(name);
30618
      }
30619
 
30620
      private final short _thriftId;
30621
      private final String _fieldName;
30622
 
30623
      _Fields(short thriftId, String fieldName) {
30624
        _thriftId = thriftId;
30625
        _fieldName = fieldName;
30626
      }
30627
 
30628
      public short getThriftFieldId() {
30629
        return _thriftId;
30630
      }
30631
 
30632
      public String getFieldName() {
30633
        return _fieldName;
30634
      }
30635
    }
30636
 
30637
    // isset id assignments
30638
 
30639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30640
    static {
30641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30642
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30643
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30644
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
30645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_args.class, metaDataMap);
30647
    }
30648
 
30649
    public markMessagesAsSentToOperator_args() {
30650
    }
30651
 
30652
    public markMessagesAsSentToOperator_args(
30653
      List<UserSms> userSmsList)
30654
    {
30655
      this();
30656
      this.userSmsList = userSmsList;
30657
    }
30658
 
30659
    /**
30660
     * Performs a deep copy on <i>other</i>.
30661
     */
30662
    public markMessagesAsSentToOperator_args(markMessagesAsSentToOperator_args other) {
30663
      if (other.isSetUserSmsList()) {
30664
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
30665
        for (UserSms other_element : other.userSmsList) {
30666
          __this__userSmsList.add(new UserSms(other_element));
30667
        }
30668
        this.userSmsList = __this__userSmsList;
30669
      }
30670
    }
30671
 
30672
    public markMessagesAsSentToOperator_args deepCopy() {
30673
      return new markMessagesAsSentToOperator_args(this);
30674
    }
30675
 
30676
    @Override
30677
    public void clear() {
30678
      this.userSmsList = null;
30679
    }
30680
 
30681
    public int getUserSmsListSize() {
30682
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
30683
    }
30684
 
30685
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
30686
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
30687
    }
30688
 
30689
    public void addToUserSmsList(UserSms elem) {
30690
      if (this.userSmsList == null) {
30691
        this.userSmsList = new ArrayList<UserSms>();
30692
      }
30693
      this.userSmsList.add(elem);
30694
    }
30695
 
30696
    public List<UserSms> getUserSmsList() {
30697
      return this.userSmsList;
30698
    }
30699
 
30700
    public void setUserSmsList(List<UserSms> userSmsList) {
30701
      this.userSmsList = userSmsList;
30702
    }
30703
 
30704
    public void unsetUserSmsList() {
30705
      this.userSmsList = null;
30706
    }
30707
 
30708
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
30709
    public boolean isSetUserSmsList() {
30710
      return this.userSmsList != null;
30711
    }
30712
 
30713
    public void setUserSmsListIsSet(boolean value) {
30714
      if (!value) {
30715
        this.userSmsList = null;
30716
      }
30717
    }
30718
 
30719
    public void setFieldValue(_Fields field, Object value) {
30720
      switch (field) {
30721
      case USER_SMS_LIST:
30722
        if (value == null) {
30723
          unsetUserSmsList();
30724
        } else {
30725
          setUserSmsList((List<UserSms>)value);
30726
        }
30727
        break;
30728
 
30729
      }
30730
    }
30731
 
30732
    public Object getFieldValue(_Fields field) {
30733
      switch (field) {
30734
      case USER_SMS_LIST:
30735
        return getUserSmsList();
30736
 
30737
      }
30738
      throw new IllegalStateException();
30739
    }
30740
 
30741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30742
    public boolean isSet(_Fields field) {
30743
      if (field == null) {
30744
        throw new IllegalArgumentException();
30745
      }
30746
 
30747
      switch (field) {
30748
      case USER_SMS_LIST:
30749
        return isSetUserSmsList();
30750
      }
30751
      throw new IllegalStateException();
30752
    }
30753
 
30754
    @Override
30755
    public boolean equals(Object that) {
30756
      if (that == null)
30757
        return false;
30758
      if (that instanceof markMessagesAsSentToOperator_args)
30759
        return this.equals((markMessagesAsSentToOperator_args)that);
30760
      return false;
30761
    }
30762
 
30763
    public boolean equals(markMessagesAsSentToOperator_args that) {
30764
      if (that == null)
30765
        return false;
30766
 
30767
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
30768
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
30769
      if (this_present_userSmsList || that_present_userSmsList) {
30770
        if (!(this_present_userSmsList && that_present_userSmsList))
30771
          return false;
30772
        if (!this.userSmsList.equals(that.userSmsList))
30773
          return false;
30774
      }
30775
 
30776
      return true;
30777
    }
30778
 
30779
    @Override
30780
    public int hashCode() {
30781
      return 0;
30782
    }
30783
 
30784
    public int compareTo(markMessagesAsSentToOperator_args other) {
30785
      if (!getClass().equals(other.getClass())) {
30786
        return getClass().getName().compareTo(other.getClass().getName());
30787
      }
30788
 
30789
      int lastComparison = 0;
30790
      markMessagesAsSentToOperator_args typedOther = (markMessagesAsSentToOperator_args)other;
30791
 
30792
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
30793
      if (lastComparison != 0) {
30794
        return lastComparison;
30795
      }
30796
      if (isSetUserSmsList()) {
30797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
30798
        if (lastComparison != 0) {
30799
          return lastComparison;
30800
        }
30801
      }
30802
      return 0;
30803
    }
30804
 
30805
    public _Fields fieldForId(int fieldId) {
30806
      return _Fields.findByThriftId(fieldId);
30807
    }
30808
 
30809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30810
      org.apache.thrift.protocol.TField field;
30811
      iprot.readStructBegin();
30812
      while (true)
30813
      {
30814
        field = iprot.readFieldBegin();
30815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30816
          break;
30817
        }
30818
        switch (field.id) {
30819
          case -1: // USER_SMS_LIST
30820
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30821
              {
30822
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
30823
                this.userSmsList = new ArrayList<UserSms>(_list85.size);
30824
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
30825
                {
30826
                  UserSms _elem87; // required
30827
                  _elem87 = new UserSms();
30828
                  _elem87.read(iprot);
30829
                  this.userSmsList.add(_elem87);
30830
                }
30831
                iprot.readListEnd();
30832
              }
30833
            } else { 
30834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30835
            }
30836
            break;
30837
          default:
30838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30839
        }
30840
        iprot.readFieldEnd();
30841
      }
30842
      iprot.readStructEnd();
30843
      validate();
30844
    }
30845
 
30846
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30847
      validate();
30848
 
30849
      oprot.writeStructBegin(STRUCT_DESC);
30850
      if (this.userSmsList != null) {
30851
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
30852
        {
30853
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
30854
          for (UserSms _iter88 : this.userSmsList)
30855
          {
30856
            _iter88.write(oprot);
30857
          }
30858
          oprot.writeListEnd();
30859
        }
30860
        oprot.writeFieldEnd();
30861
      }
30862
      oprot.writeFieldStop();
30863
      oprot.writeStructEnd();
30864
    }
30865
 
30866
    @Override
30867
    public String toString() {
30868
      StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_args(");
30869
      boolean first = true;
30870
 
30871
      sb.append("userSmsList:");
30872
      if (this.userSmsList == null) {
30873
        sb.append("null");
30874
      } else {
30875
        sb.append(this.userSmsList);
30876
      }
30877
      first = false;
30878
      sb.append(")");
30879
      return sb.toString();
30880
    }
30881
 
30882
    public void validate() throws org.apache.thrift.TException {
30883
      // check for required fields
30884
    }
30885
 
30886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30887
      try {
30888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30889
      } catch (org.apache.thrift.TException te) {
30890
        throw new java.io.IOException(te);
30891
      }
30892
    }
30893
 
30894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30895
      try {
30896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30897
      } catch (org.apache.thrift.TException te) {
30898
        throw new java.io.IOException(te);
30899
      }
30900
    }
30901
 
30902
  }
30903
 
30904
  public static class markMessagesAsSentToOperator_result implements org.apache.thrift.TBase<markMessagesAsSentToOperator_result, markMessagesAsSentToOperator_result._Fields>, java.io.Serializable, Cloneable   {
30905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_result");
30906
 
30907
    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);
30908
 
30909
    private boolean success; // required
30910
 
30911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30913
      SUCCESS((short)0, "success");
30914
 
30915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30916
 
30917
      static {
30918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30919
          byName.put(field.getFieldName(), field);
30920
        }
30921
      }
30922
 
30923
      /**
30924
       * Find the _Fields constant that matches fieldId, or null if its not found.
30925
       */
30926
      public static _Fields findByThriftId(int fieldId) {
30927
        switch(fieldId) {
30928
          case 0: // SUCCESS
30929
            return SUCCESS;
30930
          default:
30931
            return null;
30932
        }
30933
      }
30934
 
30935
      /**
30936
       * Find the _Fields constant that matches fieldId, throwing an exception
30937
       * if it is not found.
30938
       */
30939
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30940
        _Fields fields = findByThriftId(fieldId);
30941
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30942
        return fields;
30943
      }
30944
 
30945
      /**
30946
       * Find the _Fields constant that matches name, or null if its not found.
30947
       */
30948
      public static _Fields findByName(String name) {
30949
        return byName.get(name);
30950
      }
30951
 
30952
      private final short _thriftId;
30953
      private final String _fieldName;
30954
 
30955
      _Fields(short thriftId, String fieldName) {
30956
        _thriftId = thriftId;
30957
        _fieldName = fieldName;
30958
      }
30959
 
30960
      public short getThriftFieldId() {
30961
        return _thriftId;
30962
      }
30963
 
30964
      public String getFieldName() {
30965
        return _fieldName;
30966
      }
30967
    }
30968
 
30969
    // isset id assignments
30970
    private static final int __SUCCESS_ISSET_ID = 0;
30971
    private BitSet __isset_bit_vector = new BitSet(1);
30972
 
30973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30974
    static {
30975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30977
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30978
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30979
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_result.class, metaDataMap);
30980
    }
30981
 
30982
    public markMessagesAsSentToOperator_result() {
30983
    }
30984
 
30985
    public markMessagesAsSentToOperator_result(
30986
      boolean success)
30987
    {
30988
      this();
30989
      this.success = success;
30990
      setSuccessIsSet(true);
30991
    }
30992
 
30993
    /**
30994
     * Performs a deep copy on <i>other</i>.
30995
     */
30996
    public markMessagesAsSentToOperator_result(markMessagesAsSentToOperator_result other) {
30997
      __isset_bit_vector.clear();
30998
      __isset_bit_vector.or(other.__isset_bit_vector);
30999
      this.success = other.success;
31000
    }
31001
 
31002
    public markMessagesAsSentToOperator_result deepCopy() {
31003
      return new markMessagesAsSentToOperator_result(this);
31004
    }
31005
 
31006
    @Override
31007
    public void clear() {
31008
      setSuccessIsSet(false);
31009
      this.success = false;
31010
    }
31011
 
31012
    public boolean isSuccess() {
31013
      return this.success;
31014
    }
31015
 
31016
    public void setSuccess(boolean success) {
31017
      this.success = success;
31018
      setSuccessIsSet(true);
31019
    }
31020
 
31021
    public void unsetSuccess() {
31022
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31023
    }
31024
 
31025
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31026
    public boolean isSetSuccess() {
31027
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31028
    }
31029
 
31030
    public void setSuccessIsSet(boolean value) {
31031
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31032
    }
31033
 
31034
    public void setFieldValue(_Fields field, Object value) {
31035
      switch (field) {
31036
      case SUCCESS:
31037
        if (value == null) {
31038
          unsetSuccess();
31039
        } else {
31040
          setSuccess((Boolean)value);
31041
        }
31042
        break;
31043
 
31044
      }
31045
    }
31046
 
31047
    public Object getFieldValue(_Fields field) {
31048
      switch (field) {
31049
      case SUCCESS:
31050
        return Boolean.valueOf(isSuccess());
31051
 
31052
      }
31053
      throw new IllegalStateException();
31054
    }
31055
 
31056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31057
    public boolean isSet(_Fields field) {
31058
      if (field == null) {
31059
        throw new IllegalArgumentException();
31060
      }
31061
 
31062
      switch (field) {
31063
      case SUCCESS:
31064
        return isSetSuccess();
31065
      }
31066
      throw new IllegalStateException();
31067
    }
31068
 
31069
    @Override
31070
    public boolean equals(Object that) {
31071
      if (that == null)
31072
        return false;
31073
      if (that instanceof markMessagesAsSentToOperator_result)
31074
        return this.equals((markMessagesAsSentToOperator_result)that);
31075
      return false;
31076
    }
31077
 
31078
    public boolean equals(markMessagesAsSentToOperator_result that) {
31079
      if (that == null)
31080
        return false;
31081
 
31082
      boolean this_present_success = true;
31083
      boolean that_present_success = true;
31084
      if (this_present_success || that_present_success) {
31085
        if (!(this_present_success && that_present_success))
31086
          return false;
31087
        if (this.success != that.success)
31088
          return false;
31089
      }
31090
 
31091
      return true;
31092
    }
31093
 
31094
    @Override
31095
    public int hashCode() {
31096
      return 0;
31097
    }
31098
 
31099
    public int compareTo(markMessagesAsSentToOperator_result other) {
31100
      if (!getClass().equals(other.getClass())) {
31101
        return getClass().getName().compareTo(other.getClass().getName());
31102
      }
31103
 
31104
      int lastComparison = 0;
31105
      markMessagesAsSentToOperator_result typedOther = (markMessagesAsSentToOperator_result)other;
31106
 
31107
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31108
      if (lastComparison != 0) {
31109
        return lastComparison;
31110
      }
31111
      if (isSetSuccess()) {
31112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31113
        if (lastComparison != 0) {
31114
          return lastComparison;
31115
        }
31116
      }
31117
      return 0;
31118
    }
31119
 
31120
    public _Fields fieldForId(int fieldId) {
31121
      return _Fields.findByThriftId(fieldId);
31122
    }
31123
 
31124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31125
      org.apache.thrift.protocol.TField field;
31126
      iprot.readStructBegin();
31127
      while (true)
31128
      {
31129
        field = iprot.readFieldBegin();
31130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31131
          break;
31132
        }
31133
        switch (field.id) {
31134
          case 0: // SUCCESS
31135
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31136
              this.success = iprot.readBool();
31137
              setSuccessIsSet(true);
31138
            } else { 
31139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31140
            }
31141
            break;
31142
          default:
31143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31144
        }
31145
        iprot.readFieldEnd();
31146
      }
31147
      iprot.readStructEnd();
31148
      validate();
31149
    }
31150
 
31151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31152
      oprot.writeStructBegin(STRUCT_DESC);
31153
 
31154
      if (this.isSetSuccess()) {
31155
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31156
        oprot.writeBool(this.success);
31157
        oprot.writeFieldEnd();
31158
      }
31159
      oprot.writeFieldStop();
31160
      oprot.writeStructEnd();
31161
    }
31162
 
31163
    @Override
31164
    public String toString() {
31165
      StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_result(");
31166
      boolean first = true;
31167
 
31168
      sb.append("success:");
31169
      sb.append(this.success);
31170
      first = false;
31171
      sb.append(")");
31172
      return sb.toString();
31173
    }
31174
 
31175
    public void validate() throws org.apache.thrift.TException {
31176
      // check for required fields
31177
    }
31178
 
31179
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31180
      try {
31181
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31182
      } catch (org.apache.thrift.TException te) {
31183
        throw new java.io.IOException(te);
31184
      }
31185
    }
31186
 
31187
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31188
      try {
31189
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31190
      } catch (org.apache.thrift.TException te) {
31191
        throw new java.io.IOException(te);
31192
      }
31193
    }
31194
 
31195
  }
31196
 
31197
  public static class markMessagesAsSubmittedToSmsc_args implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_args, markMessagesAsSubmittedToSmsc_args._Fields>, java.io.Serializable, Cloneable   {
31198
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_args");
31199
 
31200
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
31201
 
31202
    private List<UserSms> userSmsList; // required
31203
 
31204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31206
      USER_SMS_LIST((short)-1, "userSmsList");
31207
 
31208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31209
 
31210
      static {
31211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31212
          byName.put(field.getFieldName(), field);
31213
        }
31214
      }
31215
 
31216
      /**
31217
       * Find the _Fields constant that matches fieldId, or null if its not found.
31218
       */
31219
      public static _Fields findByThriftId(int fieldId) {
31220
        switch(fieldId) {
31221
          case -1: // USER_SMS_LIST
31222
            return USER_SMS_LIST;
31223
          default:
31224
            return null;
31225
        }
31226
      }
31227
 
31228
      /**
31229
       * Find the _Fields constant that matches fieldId, throwing an exception
31230
       * if it is not found.
31231
       */
31232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31233
        _Fields fields = findByThriftId(fieldId);
31234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31235
        return fields;
31236
      }
31237
 
31238
      /**
31239
       * Find the _Fields constant that matches name, or null if its not found.
31240
       */
31241
      public static _Fields findByName(String name) {
31242
        return byName.get(name);
31243
      }
31244
 
31245
      private final short _thriftId;
31246
      private final String _fieldName;
31247
 
31248
      _Fields(short thriftId, String fieldName) {
31249
        _thriftId = thriftId;
31250
        _fieldName = fieldName;
31251
      }
31252
 
31253
      public short getThriftFieldId() {
31254
        return _thriftId;
31255
      }
31256
 
31257
      public String getFieldName() {
31258
        return _fieldName;
31259
      }
31260
    }
31261
 
31262
    // isset id assignments
31263
 
31264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31265
    static {
31266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31267
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31268
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31269
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
31270
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31271
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_args.class, metaDataMap);
31272
    }
31273
 
31274
    public markMessagesAsSubmittedToSmsc_args() {
31275
    }
31276
 
31277
    public markMessagesAsSubmittedToSmsc_args(
31278
      List<UserSms> userSmsList)
31279
    {
31280
      this();
31281
      this.userSmsList = userSmsList;
31282
    }
31283
 
31284
    /**
31285
     * Performs a deep copy on <i>other</i>.
31286
     */
31287
    public markMessagesAsSubmittedToSmsc_args(markMessagesAsSubmittedToSmsc_args other) {
31288
      if (other.isSetUserSmsList()) {
31289
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
31290
        for (UserSms other_element : other.userSmsList) {
31291
          __this__userSmsList.add(new UserSms(other_element));
31292
        }
31293
        this.userSmsList = __this__userSmsList;
31294
      }
31295
    }
31296
 
31297
    public markMessagesAsSubmittedToSmsc_args deepCopy() {
31298
      return new markMessagesAsSubmittedToSmsc_args(this);
31299
    }
31300
 
31301
    @Override
31302
    public void clear() {
31303
      this.userSmsList = null;
31304
    }
31305
 
31306
    public int getUserSmsListSize() {
31307
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
31308
    }
31309
 
31310
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
31311
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
31312
    }
31313
 
31314
    public void addToUserSmsList(UserSms elem) {
31315
      if (this.userSmsList == null) {
31316
        this.userSmsList = new ArrayList<UserSms>();
31317
      }
31318
      this.userSmsList.add(elem);
31319
    }
31320
 
31321
    public List<UserSms> getUserSmsList() {
31322
      return this.userSmsList;
31323
    }
31324
 
31325
    public void setUserSmsList(List<UserSms> userSmsList) {
31326
      this.userSmsList = userSmsList;
31327
    }
31328
 
31329
    public void unsetUserSmsList() {
31330
      this.userSmsList = null;
31331
    }
31332
 
31333
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
31334
    public boolean isSetUserSmsList() {
31335
      return this.userSmsList != null;
31336
    }
31337
 
31338
    public void setUserSmsListIsSet(boolean value) {
31339
      if (!value) {
31340
        this.userSmsList = null;
31341
      }
31342
    }
31343
 
31344
    public void setFieldValue(_Fields field, Object value) {
31345
      switch (field) {
31346
      case USER_SMS_LIST:
31347
        if (value == null) {
31348
          unsetUserSmsList();
31349
        } else {
31350
          setUserSmsList((List<UserSms>)value);
31351
        }
31352
        break;
31353
 
31354
      }
31355
    }
31356
 
31357
    public Object getFieldValue(_Fields field) {
31358
      switch (field) {
31359
      case USER_SMS_LIST:
31360
        return getUserSmsList();
31361
 
31362
      }
31363
      throw new IllegalStateException();
31364
    }
31365
 
31366
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31367
    public boolean isSet(_Fields field) {
31368
      if (field == null) {
31369
        throw new IllegalArgumentException();
31370
      }
31371
 
31372
      switch (field) {
31373
      case USER_SMS_LIST:
31374
        return isSetUserSmsList();
31375
      }
31376
      throw new IllegalStateException();
31377
    }
31378
 
31379
    @Override
31380
    public boolean equals(Object that) {
31381
      if (that == null)
31382
        return false;
31383
      if (that instanceof markMessagesAsSubmittedToSmsc_args)
31384
        return this.equals((markMessagesAsSubmittedToSmsc_args)that);
31385
      return false;
31386
    }
31387
 
31388
    public boolean equals(markMessagesAsSubmittedToSmsc_args that) {
31389
      if (that == null)
31390
        return false;
31391
 
31392
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
31393
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
31394
      if (this_present_userSmsList || that_present_userSmsList) {
31395
        if (!(this_present_userSmsList && that_present_userSmsList))
31396
          return false;
31397
        if (!this.userSmsList.equals(that.userSmsList))
31398
          return false;
31399
      }
31400
 
31401
      return true;
31402
    }
31403
 
31404
    @Override
31405
    public int hashCode() {
31406
      return 0;
31407
    }
31408
 
31409
    public int compareTo(markMessagesAsSubmittedToSmsc_args other) {
31410
      if (!getClass().equals(other.getClass())) {
31411
        return getClass().getName().compareTo(other.getClass().getName());
31412
      }
31413
 
31414
      int lastComparison = 0;
31415
      markMessagesAsSubmittedToSmsc_args typedOther = (markMessagesAsSubmittedToSmsc_args)other;
31416
 
31417
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
31418
      if (lastComparison != 0) {
31419
        return lastComparison;
31420
      }
31421
      if (isSetUserSmsList()) {
31422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
31423
        if (lastComparison != 0) {
31424
          return lastComparison;
31425
        }
31426
      }
31427
      return 0;
31428
    }
31429
 
31430
    public _Fields fieldForId(int fieldId) {
31431
      return _Fields.findByThriftId(fieldId);
31432
    }
31433
 
31434
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31435
      org.apache.thrift.protocol.TField field;
31436
      iprot.readStructBegin();
31437
      while (true)
31438
      {
31439
        field = iprot.readFieldBegin();
31440
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31441
          break;
31442
        }
31443
        switch (field.id) {
31444
          case -1: // USER_SMS_LIST
31445
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31446
              {
31447
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
31448
                this.userSmsList = new ArrayList<UserSms>(_list89.size);
31449
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
31450
                {
31451
                  UserSms _elem91; // required
31452
                  _elem91 = new UserSms();
31453
                  _elem91.read(iprot);
31454
                  this.userSmsList.add(_elem91);
31455
                }
31456
                iprot.readListEnd();
31457
              }
31458
            } else { 
31459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31460
            }
31461
            break;
31462
          default:
31463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31464
        }
31465
        iprot.readFieldEnd();
31466
      }
31467
      iprot.readStructEnd();
31468
      validate();
31469
    }
31470
 
31471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31472
      validate();
31473
 
31474
      oprot.writeStructBegin(STRUCT_DESC);
31475
      if (this.userSmsList != null) {
31476
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
31477
        {
31478
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
31479
          for (UserSms _iter92 : this.userSmsList)
31480
          {
31481
            _iter92.write(oprot);
31482
          }
31483
          oprot.writeListEnd();
31484
        }
31485
        oprot.writeFieldEnd();
31486
      }
31487
      oprot.writeFieldStop();
31488
      oprot.writeStructEnd();
31489
    }
31490
 
31491
    @Override
31492
    public String toString() {
31493
      StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_args(");
31494
      boolean first = true;
31495
 
31496
      sb.append("userSmsList:");
31497
      if (this.userSmsList == null) {
31498
        sb.append("null");
31499
      } else {
31500
        sb.append(this.userSmsList);
31501
      }
31502
      first = false;
31503
      sb.append(")");
31504
      return sb.toString();
31505
    }
31506
 
31507
    public void validate() throws org.apache.thrift.TException {
31508
      // check for required fields
31509
    }
31510
 
31511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31512
      try {
31513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31514
      } catch (org.apache.thrift.TException te) {
31515
        throw new java.io.IOException(te);
31516
      }
31517
    }
31518
 
31519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31520
      try {
31521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31522
      } catch (org.apache.thrift.TException te) {
31523
        throw new java.io.IOException(te);
31524
      }
31525
    }
31526
 
31527
  }
31528
 
31529
  public static class markMessagesAsSubmittedToSmsc_result implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_result, markMessagesAsSubmittedToSmsc_result._Fields>, java.io.Serializable, Cloneable   {
31530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_result");
31531
 
31532
    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);
31533
 
31534
    private boolean success; // required
31535
 
31536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31538
      SUCCESS((short)0, "success");
31539
 
31540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31541
 
31542
      static {
31543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31544
          byName.put(field.getFieldName(), field);
31545
        }
31546
      }
31547
 
31548
      /**
31549
       * Find the _Fields constant that matches fieldId, or null if its not found.
31550
       */
31551
      public static _Fields findByThriftId(int fieldId) {
31552
        switch(fieldId) {
31553
          case 0: // SUCCESS
31554
            return SUCCESS;
31555
          default:
31556
            return null;
31557
        }
31558
      }
31559
 
31560
      /**
31561
       * Find the _Fields constant that matches fieldId, throwing an exception
31562
       * if it is not found.
31563
       */
31564
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31565
        _Fields fields = findByThriftId(fieldId);
31566
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31567
        return fields;
31568
      }
31569
 
31570
      /**
31571
       * Find the _Fields constant that matches name, or null if its not found.
31572
       */
31573
      public static _Fields findByName(String name) {
31574
        return byName.get(name);
31575
      }
31576
 
31577
      private final short _thriftId;
31578
      private final String _fieldName;
31579
 
31580
      _Fields(short thriftId, String fieldName) {
31581
        _thriftId = thriftId;
31582
        _fieldName = fieldName;
31583
      }
31584
 
31585
      public short getThriftFieldId() {
31586
        return _thriftId;
31587
      }
31588
 
31589
      public String getFieldName() {
31590
        return _fieldName;
31591
      }
31592
    }
31593
 
31594
    // isset id assignments
31595
    private static final int __SUCCESS_ISSET_ID = 0;
31596
    private BitSet __isset_bit_vector = new BitSet(1);
31597
 
31598
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31599
    static {
31600
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31601
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31602
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_result.class, metaDataMap);
31605
    }
31606
 
31607
    public markMessagesAsSubmittedToSmsc_result() {
31608
    }
31609
 
31610
    public markMessagesAsSubmittedToSmsc_result(
31611
      boolean success)
31612
    {
31613
      this();
31614
      this.success = success;
31615
      setSuccessIsSet(true);
31616
    }
31617
 
31618
    /**
31619
     * Performs a deep copy on <i>other</i>.
31620
     */
31621
    public markMessagesAsSubmittedToSmsc_result(markMessagesAsSubmittedToSmsc_result other) {
31622
      __isset_bit_vector.clear();
31623
      __isset_bit_vector.or(other.__isset_bit_vector);
31624
      this.success = other.success;
31625
    }
31626
 
31627
    public markMessagesAsSubmittedToSmsc_result deepCopy() {
31628
      return new markMessagesAsSubmittedToSmsc_result(this);
31629
    }
31630
 
31631
    @Override
31632
    public void clear() {
31633
      setSuccessIsSet(false);
31634
      this.success = false;
31635
    }
31636
 
31637
    public boolean isSuccess() {
31638
      return this.success;
31639
    }
31640
 
31641
    public void setSuccess(boolean success) {
31642
      this.success = success;
31643
      setSuccessIsSet(true);
31644
    }
31645
 
31646
    public void unsetSuccess() {
31647
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31648
    }
31649
 
31650
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31651
    public boolean isSetSuccess() {
31652
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31653
    }
31654
 
31655
    public void setSuccessIsSet(boolean value) {
31656
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31657
    }
31658
 
31659
    public void setFieldValue(_Fields field, Object value) {
31660
      switch (field) {
31661
      case SUCCESS:
31662
        if (value == null) {
31663
          unsetSuccess();
31664
        } else {
31665
          setSuccess((Boolean)value);
31666
        }
31667
        break;
31668
 
31669
      }
31670
    }
31671
 
31672
    public Object getFieldValue(_Fields field) {
31673
      switch (field) {
31674
      case SUCCESS:
31675
        return Boolean.valueOf(isSuccess());
31676
 
31677
      }
31678
      throw new IllegalStateException();
31679
    }
31680
 
31681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31682
    public boolean isSet(_Fields field) {
31683
      if (field == null) {
31684
        throw new IllegalArgumentException();
31685
      }
31686
 
31687
      switch (field) {
31688
      case SUCCESS:
31689
        return isSetSuccess();
31690
      }
31691
      throw new IllegalStateException();
31692
    }
31693
 
31694
    @Override
31695
    public boolean equals(Object that) {
31696
      if (that == null)
31697
        return false;
31698
      if (that instanceof markMessagesAsSubmittedToSmsc_result)
31699
        return this.equals((markMessagesAsSubmittedToSmsc_result)that);
31700
      return false;
31701
    }
31702
 
31703
    public boolean equals(markMessagesAsSubmittedToSmsc_result that) {
31704
      if (that == null)
31705
        return false;
31706
 
31707
      boolean this_present_success = true;
31708
      boolean that_present_success = true;
31709
      if (this_present_success || that_present_success) {
31710
        if (!(this_present_success && that_present_success))
31711
          return false;
31712
        if (this.success != that.success)
31713
          return false;
31714
      }
31715
 
31716
      return true;
31717
    }
31718
 
31719
    @Override
31720
    public int hashCode() {
31721
      return 0;
31722
    }
31723
 
31724
    public int compareTo(markMessagesAsSubmittedToSmsc_result other) {
31725
      if (!getClass().equals(other.getClass())) {
31726
        return getClass().getName().compareTo(other.getClass().getName());
31727
      }
31728
 
31729
      int lastComparison = 0;
31730
      markMessagesAsSubmittedToSmsc_result typedOther = (markMessagesAsSubmittedToSmsc_result)other;
31731
 
31732
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31733
      if (lastComparison != 0) {
31734
        return lastComparison;
31735
      }
31736
      if (isSetSuccess()) {
31737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31738
        if (lastComparison != 0) {
31739
          return lastComparison;
31740
        }
31741
      }
31742
      return 0;
31743
    }
31744
 
31745
    public _Fields fieldForId(int fieldId) {
31746
      return _Fields.findByThriftId(fieldId);
31747
    }
31748
 
31749
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31750
      org.apache.thrift.protocol.TField field;
31751
      iprot.readStructBegin();
31752
      while (true)
31753
      {
31754
        field = iprot.readFieldBegin();
31755
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31756
          break;
31757
        }
31758
        switch (field.id) {
31759
          case 0: // SUCCESS
31760
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31761
              this.success = iprot.readBool();
31762
              setSuccessIsSet(true);
31763
            } else { 
31764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31765
            }
31766
            break;
31767
          default:
31768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31769
        }
31770
        iprot.readFieldEnd();
31771
      }
31772
      iprot.readStructEnd();
31773
      validate();
31774
    }
31775
 
31776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31777
      oprot.writeStructBegin(STRUCT_DESC);
31778
 
31779
      if (this.isSetSuccess()) {
31780
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31781
        oprot.writeBool(this.success);
31782
        oprot.writeFieldEnd();
31783
      }
31784
      oprot.writeFieldStop();
31785
      oprot.writeStructEnd();
31786
    }
31787
 
31788
    @Override
31789
    public String toString() {
31790
      StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_result(");
31791
      boolean first = true;
31792
 
31793
      sb.append("success:");
31794
      sb.append(this.success);
31795
      first = false;
31796
      sb.append(")");
31797
      return sb.toString();
31798
    }
31799
 
31800
    public void validate() throws org.apache.thrift.TException {
31801
      // check for required fields
31802
    }
31803
 
31804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31805
      try {
31806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31807
      } catch (org.apache.thrift.TException te) {
31808
        throw new java.io.IOException(te);
31809
      }
31810
    }
31811
 
31812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31813
      try {
31814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31815
      } catch (org.apache.thrift.TException te) {
31816
        throw new java.io.IOException(te);
31817
      }
31818
    }
31819
 
31820
  }
31821
 
31822
  public static class markMessagesAsSent_args implements org.apache.thrift.TBase<markMessagesAsSent_args, markMessagesAsSent_args._Fields>, java.io.Serializable, Cloneable   {
31823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_args");
31824
 
31825
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
31826
 
31827
    private List<UserSms> userSmsList; // required
31828
 
31829
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31830
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31831
      USER_SMS_LIST((short)-1, "userSmsList");
31832
 
31833
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31834
 
31835
      static {
31836
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31837
          byName.put(field.getFieldName(), field);
31838
        }
31839
      }
31840
 
31841
      /**
31842
       * Find the _Fields constant that matches fieldId, or null if its not found.
31843
       */
31844
      public static _Fields findByThriftId(int fieldId) {
31845
        switch(fieldId) {
31846
          case -1: // USER_SMS_LIST
31847
            return USER_SMS_LIST;
31848
          default:
31849
            return null;
31850
        }
31851
      }
31852
 
31853
      /**
31854
       * Find the _Fields constant that matches fieldId, throwing an exception
31855
       * if it is not found.
31856
       */
31857
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31858
        _Fields fields = findByThriftId(fieldId);
31859
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31860
        return fields;
31861
      }
31862
 
31863
      /**
31864
       * Find the _Fields constant that matches name, or null if its not found.
31865
       */
31866
      public static _Fields findByName(String name) {
31867
        return byName.get(name);
31868
      }
31869
 
31870
      private final short _thriftId;
31871
      private final String _fieldName;
31872
 
31873
      _Fields(short thriftId, String fieldName) {
31874
        _thriftId = thriftId;
31875
        _fieldName = fieldName;
31876
      }
31877
 
31878
      public short getThriftFieldId() {
31879
        return _thriftId;
31880
      }
31881
 
31882
      public String getFieldName() {
31883
        return _fieldName;
31884
      }
31885
    }
31886
 
31887
    // isset id assignments
31888
 
31889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31890
    static {
31891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31892
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31893
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31894
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
31895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_args.class, metaDataMap);
31897
    }
31898
 
31899
    public markMessagesAsSent_args() {
31900
    }
31901
 
31902
    public markMessagesAsSent_args(
31903
      List<UserSms> userSmsList)
31904
    {
31905
      this();
31906
      this.userSmsList = userSmsList;
31907
    }
31908
 
31909
    /**
31910
     * Performs a deep copy on <i>other</i>.
31911
     */
31912
    public markMessagesAsSent_args(markMessagesAsSent_args other) {
31913
      if (other.isSetUserSmsList()) {
31914
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
31915
        for (UserSms other_element : other.userSmsList) {
31916
          __this__userSmsList.add(new UserSms(other_element));
31917
        }
31918
        this.userSmsList = __this__userSmsList;
31919
      }
31920
    }
31921
 
31922
    public markMessagesAsSent_args deepCopy() {
31923
      return new markMessagesAsSent_args(this);
31924
    }
31925
 
31926
    @Override
31927
    public void clear() {
31928
      this.userSmsList = null;
31929
    }
31930
 
31931
    public int getUserSmsListSize() {
31932
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
31933
    }
31934
 
31935
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
31936
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
31937
    }
31938
 
31939
    public void addToUserSmsList(UserSms elem) {
31940
      if (this.userSmsList == null) {
31941
        this.userSmsList = new ArrayList<UserSms>();
31942
      }
31943
      this.userSmsList.add(elem);
31944
    }
31945
 
31946
    public List<UserSms> getUserSmsList() {
31947
      return this.userSmsList;
31948
    }
31949
 
31950
    public void setUserSmsList(List<UserSms> userSmsList) {
31951
      this.userSmsList = userSmsList;
31952
    }
31953
 
31954
    public void unsetUserSmsList() {
31955
      this.userSmsList = null;
31956
    }
31957
 
31958
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
31959
    public boolean isSetUserSmsList() {
31960
      return this.userSmsList != null;
31961
    }
31962
 
31963
    public void setUserSmsListIsSet(boolean value) {
31964
      if (!value) {
31965
        this.userSmsList = null;
31966
      }
31967
    }
31968
 
31969
    public void setFieldValue(_Fields field, Object value) {
31970
      switch (field) {
31971
      case USER_SMS_LIST:
31972
        if (value == null) {
31973
          unsetUserSmsList();
31974
        } else {
31975
          setUserSmsList((List<UserSms>)value);
31976
        }
31977
        break;
31978
 
31979
      }
31980
    }
31981
 
31982
    public Object getFieldValue(_Fields field) {
31983
      switch (field) {
31984
      case USER_SMS_LIST:
31985
        return getUserSmsList();
31986
 
31987
      }
31988
      throw new IllegalStateException();
31989
    }
31990
 
31991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31992
    public boolean isSet(_Fields field) {
31993
      if (field == null) {
31994
        throw new IllegalArgumentException();
31995
      }
31996
 
31997
      switch (field) {
31998
      case USER_SMS_LIST:
31999
        return isSetUserSmsList();
32000
      }
32001
      throw new IllegalStateException();
32002
    }
32003
 
32004
    @Override
32005
    public boolean equals(Object that) {
32006
      if (that == null)
32007
        return false;
32008
      if (that instanceof markMessagesAsSent_args)
32009
        return this.equals((markMessagesAsSent_args)that);
32010
      return false;
32011
    }
32012
 
32013
    public boolean equals(markMessagesAsSent_args that) {
32014
      if (that == null)
32015
        return false;
32016
 
32017
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
32018
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
32019
      if (this_present_userSmsList || that_present_userSmsList) {
32020
        if (!(this_present_userSmsList && that_present_userSmsList))
32021
          return false;
32022
        if (!this.userSmsList.equals(that.userSmsList))
32023
          return false;
32024
      }
32025
 
32026
      return true;
32027
    }
32028
 
32029
    @Override
32030
    public int hashCode() {
32031
      return 0;
32032
    }
32033
 
32034
    public int compareTo(markMessagesAsSent_args other) {
32035
      if (!getClass().equals(other.getClass())) {
32036
        return getClass().getName().compareTo(other.getClass().getName());
32037
      }
32038
 
32039
      int lastComparison = 0;
32040
      markMessagesAsSent_args typedOther = (markMessagesAsSent_args)other;
32041
 
32042
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
32043
      if (lastComparison != 0) {
32044
        return lastComparison;
32045
      }
32046
      if (isSetUserSmsList()) {
32047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
32048
        if (lastComparison != 0) {
32049
          return lastComparison;
32050
        }
32051
      }
32052
      return 0;
32053
    }
32054
 
32055
    public _Fields fieldForId(int fieldId) {
32056
      return _Fields.findByThriftId(fieldId);
32057
    }
32058
 
32059
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32060
      org.apache.thrift.protocol.TField field;
32061
      iprot.readStructBegin();
32062
      while (true)
32063
      {
32064
        field = iprot.readFieldBegin();
32065
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32066
          break;
32067
        }
32068
        switch (field.id) {
32069
          case -1: // USER_SMS_LIST
32070
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32071
              {
32072
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
32073
                this.userSmsList = new ArrayList<UserSms>(_list93.size);
32074
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
32075
                {
32076
                  UserSms _elem95; // required
32077
                  _elem95 = new UserSms();
32078
                  _elem95.read(iprot);
32079
                  this.userSmsList.add(_elem95);
32080
                }
32081
                iprot.readListEnd();
32082
              }
32083
            } else { 
32084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32085
            }
32086
            break;
32087
          default:
32088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32089
        }
32090
        iprot.readFieldEnd();
32091
      }
32092
      iprot.readStructEnd();
32093
      validate();
32094
    }
32095
 
32096
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32097
      validate();
32098
 
32099
      oprot.writeStructBegin(STRUCT_DESC);
32100
      if (this.userSmsList != null) {
32101
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
32102
        {
32103
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
32104
          for (UserSms _iter96 : this.userSmsList)
32105
          {
32106
            _iter96.write(oprot);
32107
          }
32108
          oprot.writeListEnd();
32109
        }
32110
        oprot.writeFieldEnd();
32111
      }
32112
      oprot.writeFieldStop();
32113
      oprot.writeStructEnd();
32114
    }
32115
 
32116
    @Override
32117
    public String toString() {
32118
      StringBuilder sb = new StringBuilder("markMessagesAsSent_args(");
32119
      boolean first = true;
32120
 
32121
      sb.append("userSmsList:");
32122
      if (this.userSmsList == null) {
32123
        sb.append("null");
32124
      } else {
32125
        sb.append(this.userSmsList);
32126
      }
32127
      first = false;
32128
      sb.append(")");
32129
      return sb.toString();
32130
    }
32131
 
32132
    public void validate() throws org.apache.thrift.TException {
32133
      // check for required fields
32134
    }
32135
 
32136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32137
      try {
32138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32139
      } catch (org.apache.thrift.TException te) {
32140
        throw new java.io.IOException(te);
32141
      }
32142
    }
32143
 
32144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32145
      try {
32146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32147
      } catch (org.apache.thrift.TException te) {
32148
        throw new java.io.IOException(te);
32149
      }
32150
    }
32151
 
32152
  }
32153
 
32154
  public static class markMessagesAsSent_result implements org.apache.thrift.TBase<markMessagesAsSent_result, markMessagesAsSent_result._Fields>, java.io.Serializable, Cloneable   {
32155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_result");
32156
 
32157
    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);
32158
 
32159
    private boolean success; // required
32160
 
32161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32163
      SUCCESS((short)0, "success");
32164
 
32165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32166
 
32167
      static {
32168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32169
          byName.put(field.getFieldName(), field);
32170
        }
32171
      }
32172
 
32173
      /**
32174
       * Find the _Fields constant that matches fieldId, or null if its not found.
32175
       */
32176
      public static _Fields findByThriftId(int fieldId) {
32177
        switch(fieldId) {
32178
          case 0: // SUCCESS
32179
            return SUCCESS;
32180
          default:
32181
            return null;
32182
        }
32183
      }
32184
 
32185
      /**
32186
       * Find the _Fields constant that matches fieldId, throwing an exception
32187
       * if it is not found.
32188
       */
32189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32190
        _Fields fields = findByThriftId(fieldId);
32191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32192
        return fields;
32193
      }
32194
 
32195
      /**
32196
       * Find the _Fields constant that matches name, or null if its not found.
32197
       */
32198
      public static _Fields findByName(String name) {
32199
        return byName.get(name);
32200
      }
32201
 
32202
      private final short _thriftId;
32203
      private final String _fieldName;
32204
 
32205
      _Fields(short thriftId, String fieldName) {
32206
        _thriftId = thriftId;
32207
        _fieldName = fieldName;
32208
      }
32209
 
32210
      public short getThriftFieldId() {
32211
        return _thriftId;
32212
      }
32213
 
32214
      public String getFieldName() {
32215
        return _fieldName;
32216
      }
32217
    }
32218
 
32219
    // isset id assignments
32220
    private static final int __SUCCESS_ISSET_ID = 0;
32221
    private BitSet __isset_bit_vector = new BitSet(1);
32222
 
32223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32224
    static {
32225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32226
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32228
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32229
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_result.class, metaDataMap);
32230
    }
32231
 
32232
    public markMessagesAsSent_result() {
32233
    }
32234
 
32235
    public markMessagesAsSent_result(
32236
      boolean success)
32237
    {
32238
      this();
32239
      this.success = success;
32240
      setSuccessIsSet(true);
32241
    }
32242
 
32243
    /**
32244
     * Performs a deep copy on <i>other</i>.
32245
     */
32246
    public markMessagesAsSent_result(markMessagesAsSent_result other) {
32247
      __isset_bit_vector.clear();
32248
      __isset_bit_vector.or(other.__isset_bit_vector);
32249
      this.success = other.success;
32250
    }
32251
 
32252
    public markMessagesAsSent_result deepCopy() {
32253
      return new markMessagesAsSent_result(this);
32254
    }
32255
 
32256
    @Override
32257
    public void clear() {
32258
      setSuccessIsSet(false);
32259
      this.success = false;
32260
    }
32261
 
32262
    public boolean isSuccess() {
32263
      return this.success;
32264
    }
32265
 
32266
    public void setSuccess(boolean success) {
32267
      this.success = success;
32268
      setSuccessIsSet(true);
32269
    }
32270
 
32271
    public void unsetSuccess() {
32272
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32273
    }
32274
 
32275
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32276
    public boolean isSetSuccess() {
32277
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32278
    }
32279
 
32280
    public void setSuccessIsSet(boolean value) {
32281
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32282
    }
32283
 
32284
    public void setFieldValue(_Fields field, Object value) {
32285
      switch (field) {
32286
      case SUCCESS:
32287
        if (value == null) {
32288
          unsetSuccess();
32289
        } else {
32290
          setSuccess((Boolean)value);
32291
        }
32292
        break;
32293
 
32294
      }
32295
    }
32296
 
32297
    public Object getFieldValue(_Fields field) {
32298
      switch (field) {
32299
      case SUCCESS:
32300
        return Boolean.valueOf(isSuccess());
32301
 
32302
      }
32303
      throw new IllegalStateException();
32304
    }
32305
 
32306
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32307
    public boolean isSet(_Fields field) {
32308
      if (field == null) {
32309
        throw new IllegalArgumentException();
32310
      }
32311
 
32312
      switch (field) {
32313
      case SUCCESS:
32314
        return isSetSuccess();
32315
      }
32316
      throw new IllegalStateException();
32317
    }
32318
 
32319
    @Override
32320
    public boolean equals(Object that) {
32321
      if (that == null)
32322
        return false;
32323
      if (that instanceof markMessagesAsSent_result)
32324
        return this.equals((markMessagesAsSent_result)that);
32325
      return false;
32326
    }
32327
 
32328
    public boolean equals(markMessagesAsSent_result that) {
32329
      if (that == null)
32330
        return false;
32331
 
32332
      boolean this_present_success = true;
32333
      boolean that_present_success = true;
32334
      if (this_present_success || that_present_success) {
32335
        if (!(this_present_success && that_present_success))
32336
          return false;
32337
        if (this.success != that.success)
32338
          return false;
32339
      }
32340
 
32341
      return true;
32342
    }
32343
 
32344
    @Override
32345
    public int hashCode() {
32346
      return 0;
32347
    }
32348
 
32349
    public int compareTo(markMessagesAsSent_result other) {
32350
      if (!getClass().equals(other.getClass())) {
32351
        return getClass().getName().compareTo(other.getClass().getName());
32352
      }
32353
 
32354
      int lastComparison = 0;
32355
      markMessagesAsSent_result typedOther = (markMessagesAsSent_result)other;
32356
 
32357
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32358
      if (lastComparison != 0) {
32359
        return lastComparison;
32360
      }
32361
      if (isSetSuccess()) {
32362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32363
        if (lastComparison != 0) {
32364
          return lastComparison;
32365
        }
32366
      }
32367
      return 0;
32368
    }
32369
 
32370
    public _Fields fieldForId(int fieldId) {
32371
      return _Fields.findByThriftId(fieldId);
32372
    }
32373
 
32374
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32375
      org.apache.thrift.protocol.TField field;
32376
      iprot.readStructBegin();
32377
      while (true)
32378
      {
32379
        field = iprot.readFieldBegin();
32380
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32381
          break;
32382
        }
32383
        switch (field.id) {
32384
          case 0: // SUCCESS
32385
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32386
              this.success = iprot.readBool();
32387
              setSuccessIsSet(true);
32388
            } else { 
32389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32390
            }
32391
            break;
32392
          default:
32393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32394
        }
32395
        iprot.readFieldEnd();
32396
      }
32397
      iprot.readStructEnd();
32398
      validate();
32399
    }
32400
 
32401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32402
      oprot.writeStructBegin(STRUCT_DESC);
32403
 
32404
      if (this.isSetSuccess()) {
32405
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32406
        oprot.writeBool(this.success);
32407
        oprot.writeFieldEnd();
32408
      }
32409
      oprot.writeFieldStop();
32410
      oprot.writeStructEnd();
32411
    }
32412
 
32413
    @Override
32414
    public String toString() {
32415
      StringBuilder sb = new StringBuilder("markMessagesAsSent_result(");
32416
      boolean first = true;
32417
 
32418
      sb.append("success:");
32419
      sb.append(this.success);
32420
      first = false;
32421
      sb.append(")");
32422
      return sb.toString();
32423
    }
32424
 
32425
    public void validate() throws org.apache.thrift.TException {
32426
      // check for required fields
32427
    }
32428
 
32429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32430
      try {
32431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32432
      } catch (org.apache.thrift.TException te) {
32433
        throw new java.io.IOException(te);
32434
      }
32435
    }
32436
 
32437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32438
      try {
32439
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32440
      } catch (org.apache.thrift.TException te) {
32441
        throw new java.io.IOException(te);
32442
      }
32443
    }
32444
 
32445
  }
32446
 
32447
  public static class markMessagesAsRetry_args implements org.apache.thrift.TBase<markMessagesAsRetry_args, markMessagesAsRetry_args._Fields>, java.io.Serializable, Cloneable   {
32448
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_args");
32449
 
32450
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
32451
 
32452
    private List<UserSms> userSmsList; // required
32453
 
32454
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32455
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32456
      USER_SMS_LIST((short)-1, "userSmsList");
32457
 
32458
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32459
 
32460
      static {
32461
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32462
          byName.put(field.getFieldName(), field);
32463
        }
32464
      }
32465
 
32466
      /**
32467
       * Find the _Fields constant that matches fieldId, or null if its not found.
32468
       */
32469
      public static _Fields findByThriftId(int fieldId) {
32470
        switch(fieldId) {
32471
          case -1: // USER_SMS_LIST
32472
            return USER_SMS_LIST;
32473
          default:
32474
            return null;
32475
        }
32476
      }
32477
 
32478
      /**
32479
       * Find the _Fields constant that matches fieldId, throwing an exception
32480
       * if it is not found.
32481
       */
32482
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32483
        _Fields fields = findByThriftId(fieldId);
32484
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32485
        return fields;
32486
      }
32487
 
32488
      /**
32489
       * Find the _Fields constant that matches name, or null if its not found.
32490
       */
32491
      public static _Fields findByName(String name) {
32492
        return byName.get(name);
32493
      }
32494
 
32495
      private final short _thriftId;
32496
      private final String _fieldName;
32497
 
32498
      _Fields(short thriftId, String fieldName) {
32499
        _thriftId = thriftId;
32500
        _fieldName = fieldName;
32501
      }
32502
 
32503
      public short getThriftFieldId() {
32504
        return _thriftId;
32505
      }
32506
 
32507
      public String getFieldName() {
32508
        return _fieldName;
32509
      }
32510
    }
32511
 
32512
    // isset id assignments
32513
 
32514
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32515
    static {
32516
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32517
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32518
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32519
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
32520
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32521
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_args.class, metaDataMap);
32522
    }
32523
 
32524
    public markMessagesAsRetry_args() {
32525
    }
32526
 
32527
    public markMessagesAsRetry_args(
32528
      List<UserSms> userSmsList)
32529
    {
32530
      this();
32531
      this.userSmsList = userSmsList;
32532
    }
32533
 
32534
    /**
32535
     * Performs a deep copy on <i>other</i>.
32536
     */
32537
    public markMessagesAsRetry_args(markMessagesAsRetry_args other) {
32538
      if (other.isSetUserSmsList()) {
32539
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
32540
        for (UserSms other_element : other.userSmsList) {
32541
          __this__userSmsList.add(new UserSms(other_element));
32542
        }
32543
        this.userSmsList = __this__userSmsList;
32544
      }
32545
    }
32546
 
32547
    public markMessagesAsRetry_args deepCopy() {
32548
      return new markMessagesAsRetry_args(this);
32549
    }
32550
 
32551
    @Override
32552
    public void clear() {
32553
      this.userSmsList = null;
32554
    }
32555
 
32556
    public int getUserSmsListSize() {
32557
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
32558
    }
32559
 
32560
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
32561
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
32562
    }
32563
 
32564
    public void addToUserSmsList(UserSms elem) {
32565
      if (this.userSmsList == null) {
32566
        this.userSmsList = new ArrayList<UserSms>();
32567
      }
32568
      this.userSmsList.add(elem);
32569
    }
32570
 
32571
    public List<UserSms> getUserSmsList() {
32572
      return this.userSmsList;
32573
    }
32574
 
32575
    public void setUserSmsList(List<UserSms> userSmsList) {
32576
      this.userSmsList = userSmsList;
32577
    }
32578
 
32579
    public void unsetUserSmsList() {
32580
      this.userSmsList = null;
32581
    }
32582
 
32583
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
32584
    public boolean isSetUserSmsList() {
32585
      return this.userSmsList != null;
32586
    }
32587
 
32588
    public void setUserSmsListIsSet(boolean value) {
32589
      if (!value) {
32590
        this.userSmsList = null;
32591
      }
32592
    }
32593
 
32594
    public void setFieldValue(_Fields field, Object value) {
32595
      switch (field) {
32596
      case USER_SMS_LIST:
32597
        if (value == null) {
32598
          unsetUserSmsList();
32599
        } else {
32600
          setUserSmsList((List<UserSms>)value);
32601
        }
32602
        break;
32603
 
32604
      }
32605
    }
32606
 
32607
    public Object getFieldValue(_Fields field) {
32608
      switch (field) {
32609
      case USER_SMS_LIST:
32610
        return getUserSmsList();
32611
 
32612
      }
32613
      throw new IllegalStateException();
32614
    }
32615
 
32616
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32617
    public boolean isSet(_Fields field) {
32618
      if (field == null) {
32619
        throw new IllegalArgumentException();
32620
      }
32621
 
32622
      switch (field) {
32623
      case USER_SMS_LIST:
32624
        return isSetUserSmsList();
32625
      }
32626
      throw new IllegalStateException();
32627
    }
32628
 
32629
    @Override
32630
    public boolean equals(Object that) {
32631
      if (that == null)
32632
        return false;
32633
      if (that instanceof markMessagesAsRetry_args)
32634
        return this.equals((markMessagesAsRetry_args)that);
32635
      return false;
32636
    }
32637
 
32638
    public boolean equals(markMessagesAsRetry_args that) {
32639
      if (that == null)
32640
        return false;
32641
 
32642
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
32643
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
32644
      if (this_present_userSmsList || that_present_userSmsList) {
32645
        if (!(this_present_userSmsList && that_present_userSmsList))
32646
          return false;
32647
        if (!this.userSmsList.equals(that.userSmsList))
32648
          return false;
32649
      }
32650
 
32651
      return true;
32652
    }
32653
 
32654
    @Override
32655
    public int hashCode() {
32656
      return 0;
32657
    }
32658
 
32659
    public int compareTo(markMessagesAsRetry_args other) {
32660
      if (!getClass().equals(other.getClass())) {
32661
        return getClass().getName().compareTo(other.getClass().getName());
32662
      }
32663
 
32664
      int lastComparison = 0;
32665
      markMessagesAsRetry_args typedOther = (markMessagesAsRetry_args)other;
32666
 
32667
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
32668
      if (lastComparison != 0) {
32669
        return lastComparison;
32670
      }
32671
      if (isSetUserSmsList()) {
32672
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
32673
        if (lastComparison != 0) {
32674
          return lastComparison;
32675
        }
32676
      }
32677
      return 0;
32678
    }
32679
 
32680
    public _Fields fieldForId(int fieldId) {
32681
      return _Fields.findByThriftId(fieldId);
32682
    }
32683
 
32684
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32685
      org.apache.thrift.protocol.TField field;
32686
      iprot.readStructBegin();
32687
      while (true)
32688
      {
32689
        field = iprot.readFieldBegin();
32690
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32691
          break;
32692
        }
32693
        switch (field.id) {
32694
          case -1: // USER_SMS_LIST
32695
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32696
              {
32697
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
32698
                this.userSmsList = new ArrayList<UserSms>(_list97.size);
32699
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
32700
                {
32701
                  UserSms _elem99; // required
32702
                  _elem99 = new UserSms();
32703
                  _elem99.read(iprot);
32704
                  this.userSmsList.add(_elem99);
32705
                }
32706
                iprot.readListEnd();
32707
              }
32708
            } else { 
32709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32710
            }
32711
            break;
32712
          default:
32713
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32714
        }
32715
        iprot.readFieldEnd();
32716
      }
32717
      iprot.readStructEnd();
32718
      validate();
32719
    }
32720
 
32721
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32722
      validate();
32723
 
32724
      oprot.writeStructBegin(STRUCT_DESC);
32725
      if (this.userSmsList != null) {
32726
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
32727
        {
32728
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
32729
          for (UserSms _iter100 : this.userSmsList)
32730
          {
32731
            _iter100.write(oprot);
32732
          }
32733
          oprot.writeListEnd();
32734
        }
32735
        oprot.writeFieldEnd();
32736
      }
32737
      oprot.writeFieldStop();
32738
      oprot.writeStructEnd();
32739
    }
32740
 
32741
    @Override
32742
    public String toString() {
32743
      StringBuilder sb = new StringBuilder("markMessagesAsRetry_args(");
32744
      boolean first = true;
32745
 
32746
      sb.append("userSmsList:");
32747
      if (this.userSmsList == null) {
32748
        sb.append("null");
32749
      } else {
32750
        sb.append(this.userSmsList);
32751
      }
32752
      first = false;
32753
      sb.append(")");
32754
      return sb.toString();
32755
    }
32756
 
32757
    public void validate() throws org.apache.thrift.TException {
32758
      // check for required fields
32759
    }
32760
 
32761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32762
      try {
32763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32764
      } catch (org.apache.thrift.TException te) {
32765
        throw new java.io.IOException(te);
32766
      }
32767
    }
32768
 
32769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32770
      try {
32771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32772
      } catch (org.apache.thrift.TException te) {
32773
        throw new java.io.IOException(te);
32774
      }
32775
    }
32776
 
32777
  }
32778
 
32779
  public static class markMessagesAsRetry_result implements org.apache.thrift.TBase<markMessagesAsRetry_result, markMessagesAsRetry_result._Fields>, java.io.Serializable, Cloneable   {
32780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_result");
32781
 
32782
    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);
32783
 
32784
    private boolean success; // required
32785
 
32786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32788
      SUCCESS((short)0, "success");
32789
 
32790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32791
 
32792
      static {
32793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32794
          byName.put(field.getFieldName(), field);
32795
        }
32796
      }
32797
 
32798
      /**
32799
       * Find the _Fields constant that matches fieldId, or null if its not found.
32800
       */
32801
      public static _Fields findByThriftId(int fieldId) {
32802
        switch(fieldId) {
32803
          case 0: // SUCCESS
32804
            return SUCCESS;
32805
          default:
32806
            return null;
32807
        }
32808
      }
32809
 
32810
      /**
32811
       * Find the _Fields constant that matches fieldId, throwing an exception
32812
       * if it is not found.
32813
       */
32814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32815
        _Fields fields = findByThriftId(fieldId);
32816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32817
        return fields;
32818
      }
32819
 
32820
      /**
32821
       * Find the _Fields constant that matches name, or null if its not found.
32822
       */
32823
      public static _Fields findByName(String name) {
32824
        return byName.get(name);
32825
      }
32826
 
32827
      private final short _thriftId;
32828
      private final String _fieldName;
32829
 
32830
      _Fields(short thriftId, String fieldName) {
32831
        _thriftId = thriftId;
32832
        _fieldName = fieldName;
32833
      }
32834
 
32835
      public short getThriftFieldId() {
32836
        return _thriftId;
32837
      }
32838
 
32839
      public String getFieldName() {
32840
        return _fieldName;
32841
      }
32842
    }
32843
 
32844
    // isset id assignments
32845
    private static final int __SUCCESS_ISSET_ID = 0;
32846
    private BitSet __isset_bit_vector = new BitSet(1);
32847
 
32848
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32849
    static {
32850
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32851
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32852
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32853
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32854
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_result.class, metaDataMap);
32855
    }
32856
 
32857
    public markMessagesAsRetry_result() {
32858
    }
32859
 
32860
    public markMessagesAsRetry_result(
32861
      boolean success)
32862
    {
32863
      this();
32864
      this.success = success;
32865
      setSuccessIsSet(true);
32866
    }
32867
 
32868
    /**
32869
     * Performs a deep copy on <i>other</i>.
32870
     */
32871
    public markMessagesAsRetry_result(markMessagesAsRetry_result other) {
32872
      __isset_bit_vector.clear();
32873
      __isset_bit_vector.or(other.__isset_bit_vector);
32874
      this.success = other.success;
32875
    }
32876
 
32877
    public markMessagesAsRetry_result deepCopy() {
32878
      return new markMessagesAsRetry_result(this);
32879
    }
32880
 
32881
    @Override
32882
    public void clear() {
32883
      setSuccessIsSet(false);
32884
      this.success = false;
32885
    }
32886
 
32887
    public boolean isSuccess() {
32888
      return this.success;
32889
    }
32890
 
32891
    public void setSuccess(boolean success) {
32892
      this.success = success;
32893
      setSuccessIsSet(true);
32894
    }
32895
 
32896
    public void unsetSuccess() {
32897
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32898
    }
32899
 
32900
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32901
    public boolean isSetSuccess() {
32902
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32903
    }
32904
 
32905
    public void setSuccessIsSet(boolean value) {
32906
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32907
    }
32908
 
32909
    public void setFieldValue(_Fields field, Object value) {
32910
      switch (field) {
32911
      case SUCCESS:
32912
        if (value == null) {
32913
          unsetSuccess();
32914
        } else {
32915
          setSuccess((Boolean)value);
32916
        }
32917
        break;
32918
 
32919
      }
32920
    }
32921
 
32922
    public Object getFieldValue(_Fields field) {
32923
      switch (field) {
32924
      case SUCCESS:
32925
        return Boolean.valueOf(isSuccess());
32926
 
32927
      }
32928
      throw new IllegalStateException();
32929
    }
32930
 
32931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32932
    public boolean isSet(_Fields field) {
32933
      if (field == null) {
32934
        throw new IllegalArgumentException();
32935
      }
32936
 
32937
      switch (field) {
32938
      case SUCCESS:
32939
        return isSetSuccess();
32940
      }
32941
      throw new IllegalStateException();
32942
    }
32943
 
32944
    @Override
32945
    public boolean equals(Object that) {
32946
      if (that == null)
32947
        return false;
32948
      if (that instanceof markMessagesAsRetry_result)
32949
        return this.equals((markMessagesAsRetry_result)that);
32950
      return false;
32951
    }
32952
 
32953
    public boolean equals(markMessagesAsRetry_result that) {
32954
      if (that == null)
32955
        return false;
32956
 
32957
      boolean this_present_success = true;
32958
      boolean that_present_success = true;
32959
      if (this_present_success || that_present_success) {
32960
        if (!(this_present_success && that_present_success))
32961
          return false;
32962
        if (this.success != that.success)
32963
          return false;
32964
      }
32965
 
32966
      return true;
32967
    }
32968
 
32969
    @Override
32970
    public int hashCode() {
32971
      return 0;
32972
    }
32973
 
32974
    public int compareTo(markMessagesAsRetry_result other) {
32975
      if (!getClass().equals(other.getClass())) {
32976
        return getClass().getName().compareTo(other.getClass().getName());
32977
      }
32978
 
32979
      int lastComparison = 0;
32980
      markMessagesAsRetry_result typedOther = (markMessagesAsRetry_result)other;
32981
 
32982
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32983
      if (lastComparison != 0) {
32984
        return lastComparison;
32985
      }
32986
      if (isSetSuccess()) {
32987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32988
        if (lastComparison != 0) {
32989
          return lastComparison;
32990
        }
32991
      }
32992
      return 0;
32993
    }
32994
 
32995
    public _Fields fieldForId(int fieldId) {
32996
      return _Fields.findByThriftId(fieldId);
32997
    }
32998
 
32999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33000
      org.apache.thrift.protocol.TField field;
33001
      iprot.readStructBegin();
33002
      while (true)
33003
      {
33004
        field = iprot.readFieldBegin();
33005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33006
          break;
33007
        }
33008
        switch (field.id) {
33009
          case 0: // SUCCESS
33010
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
33011
              this.success = iprot.readBool();
33012
              setSuccessIsSet(true);
33013
            } else { 
33014
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33015
            }
33016
            break;
33017
          default:
33018
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33019
        }
33020
        iprot.readFieldEnd();
33021
      }
33022
      iprot.readStructEnd();
33023
      validate();
33024
    }
33025
 
33026
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33027
      oprot.writeStructBegin(STRUCT_DESC);
33028
 
33029
      if (this.isSetSuccess()) {
33030
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33031
        oprot.writeBool(this.success);
33032
        oprot.writeFieldEnd();
33033
      }
33034
      oprot.writeFieldStop();
33035
      oprot.writeStructEnd();
33036
    }
33037
 
33038
    @Override
33039
    public String toString() {
33040
      StringBuilder sb = new StringBuilder("markMessagesAsRetry_result(");
33041
      boolean first = true;
33042
 
33043
      sb.append("success:");
33044
      sb.append(this.success);
33045
      first = false;
33046
      sb.append(")");
33047
      return sb.toString();
33048
    }
33049
 
33050
    public void validate() throws org.apache.thrift.TException {
33051
      // check for required fields
33052
    }
33053
 
33054
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33055
      try {
33056
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33057
      } catch (org.apache.thrift.TException te) {
33058
        throw new java.io.IOException(te);
33059
      }
33060
    }
33061
 
33062
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33063
      try {
33064
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33065
      } catch (org.apache.thrift.TException te) {
33066
        throw new java.io.IOException(te);
33067
      }
33068
    }
33069
 
33070
  }
33071
 
12696 amit.gupta 33072
  public static class authoriseDealer_args implements org.apache.thrift.TBase<authoriseDealer_args, authoriseDealer_args._Fields>, java.io.Serializable, Cloneable   {
33073
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_args");
33074
 
33075
    private static final org.apache.thrift.protocol.TField DEALER_FIELD_DESC = new org.apache.thrift.protocol.TField("dealer", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33076
 
33077
    private DealerAuth dealer; // required
33078
 
33079
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33080
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33081
      DEALER((short)1, "dealer");
33082
 
33083
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33084
 
33085
      static {
33086
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33087
          byName.put(field.getFieldName(), field);
33088
        }
33089
      }
33090
 
33091
      /**
33092
       * Find the _Fields constant that matches fieldId, or null if its not found.
33093
       */
33094
      public static _Fields findByThriftId(int fieldId) {
33095
        switch(fieldId) {
33096
          case 1: // DEALER
33097
            return DEALER;
33098
          default:
33099
            return null;
33100
        }
33101
      }
33102
 
33103
      /**
33104
       * Find the _Fields constant that matches fieldId, throwing an exception
33105
       * if it is not found.
33106
       */
33107
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33108
        _Fields fields = findByThriftId(fieldId);
33109
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33110
        return fields;
33111
      }
33112
 
33113
      /**
33114
       * Find the _Fields constant that matches name, or null if its not found.
33115
       */
33116
      public static _Fields findByName(String name) {
33117
        return byName.get(name);
33118
      }
33119
 
33120
      private final short _thriftId;
33121
      private final String _fieldName;
33122
 
33123
      _Fields(short thriftId, String fieldName) {
33124
        _thriftId = thriftId;
33125
        _fieldName = fieldName;
33126
      }
33127
 
33128
      public short getThriftFieldId() {
33129
        return _thriftId;
33130
      }
33131
 
33132
      public String getFieldName() {
33133
        return _fieldName;
33134
      }
33135
    }
33136
 
33137
    // isset id assignments
33138
 
33139
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33140
    static {
33141
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33142
      tmpMap.put(_Fields.DEALER, new org.apache.thrift.meta_data.FieldMetaData("dealer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33143
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));
33144
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33145
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_args.class, metaDataMap);
33146
    }
33147
 
33148
    public authoriseDealer_args() {
33149
    }
33150
 
33151
    public authoriseDealer_args(
33152
      DealerAuth dealer)
33153
    {
33154
      this();
33155
      this.dealer = dealer;
33156
    }
33157
 
33158
    /**
33159
     * Performs a deep copy on <i>other</i>.
33160
     */
33161
    public authoriseDealer_args(authoriseDealer_args other) {
33162
      if (other.isSetDealer()) {
33163
        this.dealer = new DealerAuth(other.dealer);
33164
      }
33165
    }
33166
 
33167
    public authoriseDealer_args deepCopy() {
33168
      return new authoriseDealer_args(this);
33169
    }
33170
 
33171
    @Override
33172
    public void clear() {
33173
      this.dealer = null;
33174
    }
33175
 
33176
    public DealerAuth getDealer() {
33177
      return this.dealer;
33178
    }
33179
 
33180
    public void setDealer(DealerAuth dealer) {
33181
      this.dealer = dealer;
33182
    }
33183
 
33184
    public void unsetDealer() {
33185
      this.dealer = null;
33186
    }
33187
 
33188
    /** Returns true if field dealer is set (has been assigned a value) and false otherwise */
33189
    public boolean isSetDealer() {
33190
      return this.dealer != null;
33191
    }
33192
 
33193
    public void setDealerIsSet(boolean value) {
33194
      if (!value) {
33195
        this.dealer = null;
33196
      }
33197
    }
33198
 
33199
    public void setFieldValue(_Fields field, Object value) {
33200
      switch (field) {
33201
      case DEALER:
33202
        if (value == null) {
33203
          unsetDealer();
33204
        } else {
33205
          setDealer((DealerAuth)value);
33206
        }
33207
        break;
33208
 
33209
      }
33210
    }
33211
 
33212
    public Object getFieldValue(_Fields field) {
33213
      switch (field) {
33214
      case DEALER:
33215
        return getDealer();
33216
 
33217
      }
33218
      throw new IllegalStateException();
33219
    }
33220
 
33221
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33222
    public boolean isSet(_Fields field) {
33223
      if (field == null) {
33224
        throw new IllegalArgumentException();
33225
      }
33226
 
33227
      switch (field) {
33228
      case DEALER:
33229
        return isSetDealer();
33230
      }
33231
      throw new IllegalStateException();
33232
    }
33233
 
33234
    @Override
33235
    public boolean equals(Object that) {
33236
      if (that == null)
33237
        return false;
33238
      if (that instanceof authoriseDealer_args)
33239
        return this.equals((authoriseDealer_args)that);
33240
      return false;
33241
    }
33242
 
33243
    public boolean equals(authoriseDealer_args that) {
33244
      if (that == null)
33245
        return false;
33246
 
33247
      boolean this_present_dealer = true && this.isSetDealer();
33248
      boolean that_present_dealer = true && that.isSetDealer();
33249
      if (this_present_dealer || that_present_dealer) {
33250
        if (!(this_present_dealer && that_present_dealer))
33251
          return false;
33252
        if (!this.dealer.equals(that.dealer))
33253
          return false;
33254
      }
33255
 
33256
      return true;
33257
    }
33258
 
33259
    @Override
33260
    public int hashCode() {
33261
      return 0;
33262
    }
33263
 
33264
    public int compareTo(authoriseDealer_args other) {
33265
      if (!getClass().equals(other.getClass())) {
33266
        return getClass().getName().compareTo(other.getClass().getName());
33267
      }
33268
 
33269
      int lastComparison = 0;
33270
      authoriseDealer_args typedOther = (authoriseDealer_args)other;
33271
 
33272
      lastComparison = Boolean.valueOf(isSetDealer()).compareTo(typedOther.isSetDealer());
33273
      if (lastComparison != 0) {
33274
        return lastComparison;
33275
      }
33276
      if (isSetDealer()) {
33277
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealer, typedOther.dealer);
33278
        if (lastComparison != 0) {
33279
          return lastComparison;
33280
        }
33281
      }
33282
      return 0;
33283
    }
33284
 
33285
    public _Fields fieldForId(int fieldId) {
33286
      return _Fields.findByThriftId(fieldId);
33287
    }
33288
 
33289
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33290
      org.apache.thrift.protocol.TField field;
33291
      iprot.readStructBegin();
33292
      while (true)
33293
      {
33294
        field = iprot.readFieldBegin();
33295
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33296
          break;
33297
        }
33298
        switch (field.id) {
33299
          case 1: // DEALER
33300
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33301
              this.dealer = new DealerAuth();
33302
              this.dealer.read(iprot);
33303
            } else { 
33304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33305
            }
33306
            break;
33307
          default:
33308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33309
        }
33310
        iprot.readFieldEnd();
33311
      }
33312
      iprot.readStructEnd();
33313
      validate();
33314
    }
33315
 
33316
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33317
      validate();
33318
 
33319
      oprot.writeStructBegin(STRUCT_DESC);
33320
      if (this.dealer != null) {
33321
        oprot.writeFieldBegin(DEALER_FIELD_DESC);
33322
        this.dealer.write(oprot);
33323
        oprot.writeFieldEnd();
33324
      }
33325
      oprot.writeFieldStop();
33326
      oprot.writeStructEnd();
33327
    }
33328
 
33329
    @Override
33330
    public String toString() {
33331
      StringBuilder sb = new StringBuilder("authoriseDealer_args(");
33332
      boolean first = true;
33333
 
33334
      sb.append("dealer:");
33335
      if (this.dealer == null) {
33336
        sb.append("null");
33337
      } else {
33338
        sb.append(this.dealer);
33339
      }
33340
      first = false;
33341
      sb.append(")");
33342
      return sb.toString();
33343
    }
33344
 
33345
    public void validate() throws org.apache.thrift.TException {
33346
      // check for required fields
33347
    }
33348
 
33349
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33350
      try {
33351
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33352
      } catch (org.apache.thrift.TException te) {
33353
        throw new java.io.IOException(te);
33354
      }
33355
    }
33356
 
33357
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33358
      try {
33359
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33360
      } catch (org.apache.thrift.TException te) {
33361
        throw new java.io.IOException(te);
33362
      }
33363
    }
33364
 
33365
  }
33366
 
33367
  public static class authoriseDealer_result implements org.apache.thrift.TBase<authoriseDealer_result, authoriseDealer_result._Fields>, java.io.Serializable, Cloneable   {
33368
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_result");
33369
 
33370
    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);
33371
 
33372
    private DealerAuth success; // required
33373
 
33374
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33375
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33376
      SUCCESS((short)0, "success");
33377
 
33378
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33379
 
33380
      static {
33381
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33382
          byName.put(field.getFieldName(), field);
33383
        }
33384
      }
33385
 
33386
      /**
33387
       * Find the _Fields constant that matches fieldId, or null if its not found.
33388
       */
33389
      public static _Fields findByThriftId(int fieldId) {
33390
        switch(fieldId) {
33391
          case 0: // SUCCESS
33392
            return SUCCESS;
33393
          default:
33394
            return null;
33395
        }
33396
      }
33397
 
33398
      /**
33399
       * Find the _Fields constant that matches fieldId, throwing an exception
33400
       * if it is not found.
33401
       */
33402
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33403
        _Fields fields = findByThriftId(fieldId);
33404
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33405
        return fields;
33406
      }
33407
 
33408
      /**
33409
       * Find the _Fields constant that matches name, or null if its not found.
33410
       */
33411
      public static _Fields findByName(String name) {
33412
        return byName.get(name);
33413
      }
33414
 
33415
      private final short _thriftId;
33416
      private final String _fieldName;
33417
 
33418
      _Fields(short thriftId, String fieldName) {
33419
        _thriftId = thriftId;
33420
        _fieldName = fieldName;
33421
      }
33422
 
33423
      public short getThriftFieldId() {
33424
        return _thriftId;
33425
      }
33426
 
33427
      public String getFieldName() {
33428
        return _fieldName;
33429
      }
33430
    }
33431
 
33432
    // isset id assignments
33433
 
33434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33435
    static {
33436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33437
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33438
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));
33439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_result.class, metaDataMap);
33441
    }
33442
 
33443
    public authoriseDealer_result() {
33444
    }
33445
 
33446
    public authoriseDealer_result(
33447
      DealerAuth success)
33448
    {
33449
      this();
33450
      this.success = success;
33451
    }
33452
 
33453
    /**
33454
     * Performs a deep copy on <i>other</i>.
33455
     */
33456
    public authoriseDealer_result(authoriseDealer_result other) {
33457
      if (other.isSetSuccess()) {
33458
        this.success = new DealerAuth(other.success);
33459
      }
33460
    }
33461
 
33462
    public authoriseDealer_result deepCopy() {
33463
      return new authoriseDealer_result(this);
33464
    }
33465
 
33466
    @Override
33467
    public void clear() {
33468
      this.success = null;
33469
    }
33470
 
33471
    public DealerAuth getSuccess() {
33472
      return this.success;
33473
    }
33474
 
33475
    public void setSuccess(DealerAuth success) {
33476
      this.success = success;
33477
    }
33478
 
33479
    public void unsetSuccess() {
33480
      this.success = null;
33481
    }
33482
 
33483
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33484
    public boolean isSetSuccess() {
33485
      return this.success != null;
33486
    }
33487
 
33488
    public void setSuccessIsSet(boolean value) {
33489
      if (!value) {
33490
        this.success = null;
33491
      }
33492
    }
33493
 
33494
    public void setFieldValue(_Fields field, Object value) {
33495
      switch (field) {
33496
      case SUCCESS:
33497
        if (value == null) {
33498
          unsetSuccess();
33499
        } else {
33500
          setSuccess((DealerAuth)value);
33501
        }
33502
        break;
33503
 
33504
      }
33505
    }
33506
 
33507
    public Object getFieldValue(_Fields field) {
33508
      switch (field) {
33509
      case SUCCESS:
33510
        return getSuccess();
33511
 
33512
      }
33513
      throw new IllegalStateException();
33514
    }
33515
 
33516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33517
    public boolean isSet(_Fields field) {
33518
      if (field == null) {
33519
        throw new IllegalArgumentException();
33520
      }
33521
 
33522
      switch (field) {
33523
      case SUCCESS:
33524
        return isSetSuccess();
33525
      }
33526
      throw new IllegalStateException();
33527
    }
33528
 
33529
    @Override
33530
    public boolean equals(Object that) {
33531
      if (that == null)
33532
        return false;
33533
      if (that instanceof authoriseDealer_result)
33534
        return this.equals((authoriseDealer_result)that);
33535
      return false;
33536
    }
33537
 
33538
    public boolean equals(authoriseDealer_result that) {
33539
      if (that == null)
33540
        return false;
33541
 
33542
      boolean this_present_success = true && this.isSetSuccess();
33543
      boolean that_present_success = true && that.isSetSuccess();
33544
      if (this_present_success || that_present_success) {
33545
        if (!(this_present_success && that_present_success))
33546
          return false;
33547
        if (!this.success.equals(that.success))
33548
          return false;
33549
      }
33550
 
33551
      return true;
33552
    }
33553
 
33554
    @Override
33555
    public int hashCode() {
33556
      return 0;
33557
    }
33558
 
33559
    public int compareTo(authoriseDealer_result other) {
33560
      if (!getClass().equals(other.getClass())) {
33561
        return getClass().getName().compareTo(other.getClass().getName());
33562
      }
33563
 
33564
      int lastComparison = 0;
33565
      authoriseDealer_result typedOther = (authoriseDealer_result)other;
33566
 
33567
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33568
      if (lastComparison != 0) {
33569
        return lastComparison;
33570
      }
33571
      if (isSetSuccess()) {
33572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33573
        if (lastComparison != 0) {
33574
          return lastComparison;
33575
        }
33576
      }
33577
      return 0;
33578
    }
33579
 
33580
    public _Fields fieldForId(int fieldId) {
33581
      return _Fields.findByThriftId(fieldId);
33582
    }
33583
 
33584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33585
      org.apache.thrift.protocol.TField field;
33586
      iprot.readStructBegin();
33587
      while (true)
33588
      {
33589
        field = iprot.readFieldBegin();
33590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33591
          break;
33592
        }
33593
        switch (field.id) {
33594
          case 0: // SUCCESS
33595
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33596
              this.success = new DealerAuth();
33597
              this.success.read(iprot);
33598
            } else { 
33599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33600
            }
33601
            break;
33602
          default:
33603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33604
        }
33605
        iprot.readFieldEnd();
33606
      }
33607
      iprot.readStructEnd();
33608
      validate();
33609
    }
33610
 
33611
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33612
      oprot.writeStructBegin(STRUCT_DESC);
33613
 
33614
      if (this.isSetSuccess()) {
33615
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33616
        this.success.write(oprot);
33617
        oprot.writeFieldEnd();
33618
      }
33619
      oprot.writeFieldStop();
33620
      oprot.writeStructEnd();
33621
    }
33622
 
33623
    @Override
33624
    public String toString() {
33625
      StringBuilder sb = new StringBuilder("authoriseDealer_result(");
33626
      boolean first = true;
33627
 
33628
      sb.append("success:");
33629
      if (this.success == null) {
33630
        sb.append("null");
33631
      } else {
33632
        sb.append(this.success);
33633
      }
33634
      first = false;
33635
      sb.append(")");
33636
      return sb.toString();
33637
    }
33638
 
33639
    public void validate() throws org.apache.thrift.TException {
33640
      // check for required fields
33641
    }
33642
 
33643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33644
      try {
33645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33646
      } catch (org.apache.thrift.TException te) {
33647
        throw new java.io.IOException(te);
33648
      }
33649
    }
33650
 
33651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33652
      try {
33653
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33654
      } catch (org.apache.thrift.TException te) {
33655
        throw new java.io.IOException(te);
33656
      }
33657
    }
33658
 
33659
  }
33660
 
13214 kshitij.so 33661
  public static class addCampaignNotification_args implements org.apache.thrift.TBase<addCampaignNotification_args, addCampaignNotification_args._Fields>, java.io.Serializable, Cloneable   {
33662
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCampaignNotification_args");
33663
 
33664
    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);
33665
    private static final org.apache.thrift.protocol.TField CAMPAIGN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("campaignType", org.apache.thrift.protocol.TType.I64, (short)2);
33666
 
33667
    private String email; // required
33668
    private long campaignType; // required
33669
 
33670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33672
      EMAIL((short)1, "email"),
33673
      CAMPAIGN_TYPE((short)2, "campaignType");
33674
 
33675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33676
 
33677
      static {
33678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33679
          byName.put(field.getFieldName(), field);
33680
        }
33681
      }
33682
 
33683
      /**
33684
       * Find the _Fields constant that matches fieldId, or null if its not found.
33685
       */
33686
      public static _Fields findByThriftId(int fieldId) {
33687
        switch(fieldId) {
33688
          case 1: // EMAIL
33689
            return EMAIL;
33690
          case 2: // CAMPAIGN_TYPE
33691
            return CAMPAIGN_TYPE;
33692
          default:
33693
            return null;
33694
        }
33695
      }
33696
 
33697
      /**
33698
       * Find the _Fields constant that matches fieldId, throwing an exception
33699
       * if it is not found.
33700
       */
33701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33702
        _Fields fields = findByThriftId(fieldId);
33703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33704
        return fields;
33705
      }
33706
 
33707
      /**
33708
       * Find the _Fields constant that matches name, or null if its not found.
33709
       */
33710
      public static _Fields findByName(String name) {
33711
        return byName.get(name);
33712
      }
33713
 
33714
      private final short _thriftId;
33715
      private final String _fieldName;
33716
 
33717
      _Fields(short thriftId, String fieldName) {
33718
        _thriftId = thriftId;
33719
        _fieldName = fieldName;
33720
      }
33721
 
33722
      public short getThriftFieldId() {
33723
        return _thriftId;
33724
      }
33725
 
33726
      public String getFieldName() {
33727
        return _fieldName;
33728
      }
33729
    }
33730
 
33731
    // isset id assignments
33732
    private static final int __CAMPAIGNTYPE_ISSET_ID = 0;
33733
    private BitSet __isset_bit_vector = new BitSet(1);
33734
 
33735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33736
    static {
33737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33738
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
33740
      tmpMap.put(_Fields.CAMPAIGN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("campaignType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCampaignNotification_args.class, metaDataMap);
33744
    }
33745
 
33746
    public addCampaignNotification_args() {
33747
    }
33748
 
33749
    public addCampaignNotification_args(
33750
      String email,
33751
      long campaignType)
33752
    {
33753
      this();
33754
      this.email = email;
33755
      this.campaignType = campaignType;
33756
      setCampaignTypeIsSet(true);
33757
    }
33758
 
33759
    /**
33760
     * Performs a deep copy on <i>other</i>.
33761
     */
33762
    public addCampaignNotification_args(addCampaignNotification_args other) {
33763
      __isset_bit_vector.clear();
33764
      __isset_bit_vector.or(other.__isset_bit_vector);
33765
      if (other.isSetEmail()) {
33766
        this.email = other.email;
33767
      }
33768
      this.campaignType = other.campaignType;
33769
    }
33770
 
33771
    public addCampaignNotification_args deepCopy() {
33772
      return new addCampaignNotification_args(this);
33773
    }
33774
 
33775
    @Override
33776
    public void clear() {
33777
      this.email = null;
33778
      setCampaignTypeIsSet(false);
33779
      this.campaignType = 0;
33780
    }
33781
 
33782
    public String getEmail() {
33783
      return this.email;
33784
    }
33785
 
33786
    public void setEmail(String email) {
33787
      this.email = email;
33788
    }
33789
 
33790
    public void unsetEmail() {
33791
      this.email = null;
33792
    }
33793
 
33794
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
33795
    public boolean isSetEmail() {
33796
      return this.email != null;
33797
    }
33798
 
33799
    public void setEmailIsSet(boolean value) {
33800
      if (!value) {
33801
        this.email = null;
33802
      }
33803
    }
33804
 
33805
    public long getCampaignType() {
33806
      return this.campaignType;
33807
    }
33808
 
33809
    public void setCampaignType(long campaignType) {
33810
      this.campaignType = campaignType;
33811
      setCampaignTypeIsSet(true);
33812
    }
33813
 
33814
    public void unsetCampaignType() {
33815
      __isset_bit_vector.clear(__CAMPAIGNTYPE_ISSET_ID);
33816
    }
33817
 
33818
    /** Returns true if field campaignType is set (has been assigned a value) and false otherwise */
33819
    public boolean isSetCampaignType() {
33820
      return __isset_bit_vector.get(__CAMPAIGNTYPE_ISSET_ID);
33821
    }
33822
 
33823
    public void setCampaignTypeIsSet(boolean value) {
33824
      __isset_bit_vector.set(__CAMPAIGNTYPE_ISSET_ID, value);
33825
    }
33826
 
33827
    public void setFieldValue(_Fields field, Object value) {
33828
      switch (field) {
33829
      case EMAIL:
33830
        if (value == null) {
33831
          unsetEmail();
33832
        } else {
33833
          setEmail((String)value);
33834
        }
33835
        break;
33836
 
33837
      case CAMPAIGN_TYPE:
33838
        if (value == null) {
33839
          unsetCampaignType();
33840
        } else {
33841
          setCampaignType((Long)value);
33842
        }
33843
        break;
33844
 
33845
      }
33846
    }
33847
 
33848
    public Object getFieldValue(_Fields field) {
33849
      switch (field) {
33850
      case EMAIL:
33851
        return getEmail();
33852
 
33853
      case CAMPAIGN_TYPE:
33854
        return Long.valueOf(getCampaignType());
33855
 
33856
      }
33857
      throw new IllegalStateException();
33858
    }
33859
 
33860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33861
    public boolean isSet(_Fields field) {
33862
      if (field == null) {
33863
        throw new IllegalArgumentException();
33864
      }
33865
 
33866
      switch (field) {
33867
      case EMAIL:
33868
        return isSetEmail();
33869
      case CAMPAIGN_TYPE:
33870
        return isSetCampaignType();
33871
      }
33872
      throw new IllegalStateException();
33873
    }
33874
 
33875
    @Override
33876
    public boolean equals(Object that) {
33877
      if (that == null)
33878
        return false;
33879
      if (that instanceof addCampaignNotification_args)
33880
        return this.equals((addCampaignNotification_args)that);
33881
      return false;
33882
    }
33883
 
33884
    public boolean equals(addCampaignNotification_args that) {
33885
      if (that == null)
33886
        return false;
33887
 
33888
      boolean this_present_email = true && this.isSetEmail();
33889
      boolean that_present_email = true && that.isSetEmail();
33890
      if (this_present_email || that_present_email) {
33891
        if (!(this_present_email && that_present_email))
33892
          return false;
33893
        if (!this.email.equals(that.email))
33894
          return false;
33895
      }
33896
 
33897
      boolean this_present_campaignType = true;
33898
      boolean that_present_campaignType = true;
33899
      if (this_present_campaignType || that_present_campaignType) {
33900
        if (!(this_present_campaignType && that_present_campaignType))
33901
          return false;
33902
        if (this.campaignType != that.campaignType)
33903
          return false;
33904
      }
33905
 
33906
      return true;
33907
    }
33908
 
33909
    @Override
33910
    public int hashCode() {
33911
      return 0;
33912
    }
33913
 
33914
    public int compareTo(addCampaignNotification_args other) {
33915
      if (!getClass().equals(other.getClass())) {
33916
        return getClass().getName().compareTo(other.getClass().getName());
33917
      }
33918
 
33919
      int lastComparison = 0;
33920
      addCampaignNotification_args typedOther = (addCampaignNotification_args)other;
33921
 
33922
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
33923
      if (lastComparison != 0) {
33924
        return lastComparison;
33925
      }
33926
      if (isSetEmail()) {
33927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
33928
        if (lastComparison != 0) {
33929
          return lastComparison;
33930
        }
33931
      }
33932
      lastComparison = Boolean.valueOf(isSetCampaignType()).compareTo(typedOther.isSetCampaignType());
33933
      if (lastComparison != 0) {
33934
        return lastComparison;
33935
      }
33936
      if (isSetCampaignType()) {
33937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.campaignType, typedOther.campaignType);
33938
        if (lastComparison != 0) {
33939
          return lastComparison;
33940
        }
33941
      }
33942
      return 0;
33943
    }
33944
 
33945
    public _Fields fieldForId(int fieldId) {
33946
      return _Fields.findByThriftId(fieldId);
33947
    }
33948
 
33949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33950
      org.apache.thrift.protocol.TField field;
33951
      iprot.readStructBegin();
33952
      while (true)
33953
      {
33954
        field = iprot.readFieldBegin();
33955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33956
          break;
33957
        }
33958
        switch (field.id) {
33959
          case 1: // EMAIL
33960
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
33961
              this.email = iprot.readString();
33962
            } else { 
33963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33964
            }
33965
            break;
33966
          case 2: // CAMPAIGN_TYPE
33967
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33968
              this.campaignType = iprot.readI64();
33969
              setCampaignTypeIsSet(true);
33970
            } else { 
33971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33972
            }
33973
            break;
33974
          default:
33975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33976
        }
33977
        iprot.readFieldEnd();
33978
      }
33979
      iprot.readStructEnd();
33980
      validate();
33981
    }
33982
 
33983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33984
      validate();
33985
 
33986
      oprot.writeStructBegin(STRUCT_DESC);
33987
      if (this.email != null) {
33988
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
33989
        oprot.writeString(this.email);
33990
        oprot.writeFieldEnd();
33991
      }
33992
      oprot.writeFieldBegin(CAMPAIGN_TYPE_FIELD_DESC);
33993
      oprot.writeI64(this.campaignType);
33994
      oprot.writeFieldEnd();
33995
      oprot.writeFieldStop();
33996
      oprot.writeStructEnd();
33997
    }
33998
 
33999
    @Override
34000
    public String toString() {
34001
      StringBuilder sb = new StringBuilder("addCampaignNotification_args(");
34002
      boolean first = true;
34003
 
34004
      sb.append("email:");
34005
      if (this.email == null) {
34006
        sb.append("null");
34007
      } else {
34008
        sb.append(this.email);
34009
      }
34010
      first = false;
34011
      if (!first) sb.append(", ");
34012
      sb.append("campaignType:");
34013
      sb.append(this.campaignType);
34014
      first = false;
34015
      sb.append(")");
34016
      return sb.toString();
34017
    }
34018
 
34019
    public void validate() throws org.apache.thrift.TException {
34020
      // check for required fields
34021
    }
34022
 
34023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34024
      try {
34025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34026
      } catch (org.apache.thrift.TException te) {
34027
        throw new java.io.IOException(te);
34028
      }
34029
    }
34030
 
34031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34032
      try {
34033
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34034
        __isset_bit_vector = new BitSet(1);
34035
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34036
      } catch (org.apache.thrift.TException te) {
34037
        throw new java.io.IOException(te);
34038
      }
34039
    }
34040
 
34041
  }
34042
 
34043
  public static class addCampaignNotification_result implements org.apache.thrift.TBase<addCampaignNotification_result, addCampaignNotification_result._Fields>, java.io.Serializable, Cloneable   {
34044
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCampaignNotification_result");
34045
 
34046
    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);
34047
 
34048
    private String success; // required
34049
 
34050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34052
      SUCCESS((short)0, "success");
34053
 
34054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34055
 
34056
      static {
34057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34058
          byName.put(field.getFieldName(), field);
34059
        }
34060
      }
34061
 
34062
      /**
34063
       * Find the _Fields constant that matches fieldId, or null if its not found.
34064
       */
34065
      public static _Fields findByThriftId(int fieldId) {
34066
        switch(fieldId) {
34067
          case 0: // SUCCESS
34068
            return SUCCESS;
34069
          default:
34070
            return null;
34071
        }
34072
      }
34073
 
34074
      /**
34075
       * Find the _Fields constant that matches fieldId, throwing an exception
34076
       * if it is not found.
34077
       */
34078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34079
        _Fields fields = findByThriftId(fieldId);
34080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34081
        return fields;
34082
      }
34083
 
34084
      /**
34085
       * Find the _Fields constant that matches name, or null if its not found.
34086
       */
34087
      public static _Fields findByName(String name) {
34088
        return byName.get(name);
34089
      }
34090
 
34091
      private final short _thriftId;
34092
      private final String _fieldName;
34093
 
34094
      _Fields(short thriftId, String fieldName) {
34095
        _thriftId = thriftId;
34096
        _fieldName = fieldName;
34097
      }
34098
 
34099
      public short getThriftFieldId() {
34100
        return _thriftId;
34101
      }
34102
 
34103
      public String getFieldName() {
34104
        return _fieldName;
34105
      }
34106
    }
34107
 
34108
    // isset id assignments
34109
 
34110
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34111
    static {
34112
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34113
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCampaignNotification_result.class, metaDataMap);
34117
    }
34118
 
34119
    public addCampaignNotification_result() {
34120
    }
34121
 
34122
    public addCampaignNotification_result(
34123
      String success)
34124
    {
34125
      this();
34126
      this.success = success;
34127
    }
34128
 
34129
    /**
34130
     * Performs a deep copy on <i>other</i>.
34131
     */
34132
    public addCampaignNotification_result(addCampaignNotification_result other) {
34133
      if (other.isSetSuccess()) {
34134
        this.success = other.success;
34135
      }
34136
    }
34137
 
34138
    public addCampaignNotification_result deepCopy() {
34139
      return new addCampaignNotification_result(this);
34140
    }
34141
 
34142
    @Override
34143
    public void clear() {
34144
      this.success = null;
34145
    }
34146
 
34147
    public String getSuccess() {
34148
      return this.success;
34149
    }
34150
 
34151
    public void setSuccess(String success) {
34152
      this.success = success;
34153
    }
34154
 
34155
    public void unsetSuccess() {
34156
      this.success = null;
34157
    }
34158
 
34159
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34160
    public boolean isSetSuccess() {
34161
      return this.success != null;
34162
    }
34163
 
34164
    public void setSuccessIsSet(boolean value) {
34165
      if (!value) {
34166
        this.success = null;
34167
      }
34168
    }
34169
 
34170
    public void setFieldValue(_Fields field, Object value) {
34171
      switch (field) {
34172
      case SUCCESS:
34173
        if (value == null) {
34174
          unsetSuccess();
34175
        } else {
34176
          setSuccess((String)value);
34177
        }
34178
        break;
34179
 
34180
      }
34181
    }
34182
 
34183
    public Object getFieldValue(_Fields field) {
34184
      switch (field) {
34185
      case SUCCESS:
34186
        return getSuccess();
34187
 
34188
      }
34189
      throw new IllegalStateException();
34190
    }
34191
 
34192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34193
    public boolean isSet(_Fields field) {
34194
      if (field == null) {
34195
        throw new IllegalArgumentException();
34196
      }
34197
 
34198
      switch (field) {
34199
      case SUCCESS:
34200
        return isSetSuccess();
34201
      }
34202
      throw new IllegalStateException();
34203
    }
34204
 
34205
    @Override
34206
    public boolean equals(Object that) {
34207
      if (that == null)
34208
        return false;
34209
      if (that instanceof addCampaignNotification_result)
34210
        return this.equals((addCampaignNotification_result)that);
34211
      return false;
34212
    }
34213
 
34214
    public boolean equals(addCampaignNotification_result that) {
34215
      if (that == null)
34216
        return false;
34217
 
34218
      boolean this_present_success = true && this.isSetSuccess();
34219
      boolean that_present_success = true && that.isSetSuccess();
34220
      if (this_present_success || that_present_success) {
34221
        if (!(this_present_success && that_present_success))
34222
          return false;
34223
        if (!this.success.equals(that.success))
34224
          return false;
34225
      }
34226
 
34227
      return true;
34228
    }
34229
 
34230
    @Override
34231
    public int hashCode() {
34232
      return 0;
34233
    }
34234
 
34235
    public int compareTo(addCampaignNotification_result other) {
34236
      if (!getClass().equals(other.getClass())) {
34237
        return getClass().getName().compareTo(other.getClass().getName());
34238
      }
34239
 
34240
      int lastComparison = 0;
34241
      addCampaignNotification_result typedOther = (addCampaignNotification_result)other;
34242
 
34243
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34244
      if (lastComparison != 0) {
34245
        return lastComparison;
34246
      }
34247
      if (isSetSuccess()) {
34248
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34249
        if (lastComparison != 0) {
34250
          return lastComparison;
34251
        }
34252
      }
34253
      return 0;
34254
    }
34255
 
34256
    public _Fields fieldForId(int fieldId) {
34257
      return _Fields.findByThriftId(fieldId);
34258
    }
34259
 
34260
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34261
      org.apache.thrift.protocol.TField field;
34262
      iprot.readStructBegin();
34263
      while (true)
34264
      {
34265
        field = iprot.readFieldBegin();
34266
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34267
          break;
34268
        }
34269
        switch (field.id) {
34270
          case 0: // SUCCESS
34271
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34272
              this.success = iprot.readString();
34273
            } else { 
34274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34275
            }
34276
            break;
34277
          default:
34278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34279
        }
34280
        iprot.readFieldEnd();
34281
      }
34282
      iprot.readStructEnd();
34283
      validate();
34284
    }
34285
 
34286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34287
      oprot.writeStructBegin(STRUCT_DESC);
34288
 
34289
      if (this.isSetSuccess()) {
34290
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34291
        oprot.writeString(this.success);
34292
        oprot.writeFieldEnd();
34293
      }
34294
      oprot.writeFieldStop();
34295
      oprot.writeStructEnd();
34296
    }
34297
 
34298
    @Override
34299
    public String toString() {
34300
      StringBuilder sb = new StringBuilder("addCampaignNotification_result(");
34301
      boolean first = true;
34302
 
34303
      sb.append("success:");
34304
      if (this.success == null) {
34305
        sb.append("null");
34306
      } else {
34307
        sb.append(this.success);
34308
      }
34309
      first = false;
34310
      sb.append(")");
34311
      return sb.toString();
34312
    }
34313
 
34314
    public void validate() throws org.apache.thrift.TException {
34315
      // check for required fields
34316
    }
34317
 
34318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34319
      try {
34320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34321
      } catch (org.apache.thrift.TException te) {
34322
        throw new java.io.IOException(te);
34323
      }
34324
    }
34325
 
34326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34327
      try {
34328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34329
      } catch (org.apache.thrift.TException te) {
34330
        throw new java.io.IOException(te);
34331
      }
34332
    }
34333
 
34334
  }
34335
 
352 ashish 34336
}