Subversion Repositories SmartDukaan

Rev

Rev 4996 | Rev 5864 | Go to most recent revision | 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
36
     */
3430 rajveer 37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 38
 
2779 chandransh 39
    /**
40
     * Retreives all the emails pending for dispatch
41
     */
3430 rajveer 42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 43
 
2779 chandransh 44
    /**
45
     * Marks email as sent after successful dispatch
46
     * 
47
     * @param emailId
48
     */
3430 rajveer 49
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 50
 
3430 rajveer 51
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 52
 
3430 rajveer 53
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 64
 
3430 rajveer 65
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
750 chandransh 67
    /**
2443 chandransh 68
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
69
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 70
     * 
71
     * @param username
72
     * @param password
73
     */
3430 rajveer 74
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 75
 
2443 chandransh 76
    /**
77
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
78
     * 
79
     * @param username
80
     * @param oldPassword
81
     * @param newPassword
82
     */
3430 rajveer 83
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 84
 
750 chandransh 85
    /**
86
     * Returns the LogisticsUser struct associated with the given username and password if they match.
87
     * Throws an exception otherwise.
88
     * 
89
     * @param username
90
     * @param password
91
     */
3430 rajveer 92
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 93
 
1611 ankur.sing 94
    /**
95
     * Returns the StatisticsUser struct associated with the given username and password if they match.
96
     * Throws an exception otherwise.
97
     * 
98
     * @param username
99
     * @param password
100
     */
3430 rajveer 101
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 102
 
1891 ankur.sing 103
    /**
104
     * Returns the ReportUser struct associated with the given username and password if they match.
105
     * Throws an exception otherwise.
106
     * 
107
     * @param username
108
     * @param password
109
     */
3430 rajveer 110
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 111
 
112
    /**
113
     * Returns list of reports which are configured for the given role.
114
     * 
115
     * @param role
116
     */
3430 rajveer 117
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 118
 
2024 ankur.sing 119
    /**
2357 ankur.sing 120
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 121
     * Throws an exception otherwise.
122
     * 
123
     * @param username
124
     * @param password
2357 ankur.sing 125
     * @param role
2024 ankur.sing 126
     */
3430 rajveer 127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 128
 
4544 varun.gupt 129
    /**
130
     * Saves the list of entity Ids to be shared with an email address
131
     * 
132
     * @param entityIds
133
     * @param email
134
     */
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
136
 
4693 mandeep.dh 137
    public List<Agent> getAgents() throws org.apache.thrift.TException;
138
 
139
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
140
 
141
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
142
 
143
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
144
 
145
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
146
 
4806 varun.gupt 147
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
148
 
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
150
 
4996 varun.gupt 151
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
152
 
5055 varun.gupt 153
    /**
154
     * Returns a list of emails to which product notifications have been sent in a given date range
155
     * 
156
     * @param startDatetime
157
     * @param endDatetime
158
     */
159
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
160
 
352 ashish 161
  }
162
 
3430 rajveer 163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
164
 
165
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
192
 
193
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
200
 
4544 varun.gupt 201
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
202
 
4693 mandeep.dh 203
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
204
 
205
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
206
 
207
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
208
 
209
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
212
 
4806 varun.gupt 213
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
216
 
4996 varun.gupt 217
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
218
 
5055 varun.gupt 219
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
220
 
3430 rajveer 221
  }
222
 
3374 rajveer 223
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 224
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
225
      public Factory() {}
226
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
227
        return new Client(prot);
228
      }
229
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
230
        return new Client(iprot, oprot);
231
      }
232
    }
233
 
234
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 235
    {
3430 rajveer 236
      super(prot, prot);
352 ashish 237
    }
238
 
3430 rajveer 239
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 240
      super(iprot, oprot);
352 ashish 241
    }
242
 
3430 rajveer 243
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 244
    {
245
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
3206 mandeep.dh 246
      return recv_saveUserEmailForSending();
1395 varun.gupt 247
    }
248
 
3430 rajveer 249
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
1395 varun.gupt 250
    {
251
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 252
      args.setEmailTo(emailTo);
253
      args.setEmailFrom(emailFrom);
254
      args.setSubject(subject);
255
      args.setBody(body);
256
      args.setSource(source);
257
      args.setEmailType(emailType);
258
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 259
    }
260
 
3430 rajveer 261
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 262
    {
263
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 264
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 265
      if (result.isSetSuccess()) {
266
        return result.success;
267
      }
1395 varun.gupt 268
      if (result.se != null) {
269
        throw result.se;
270
      }
3430 rajveer 271
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 272
    }
273
 
3430 rajveer 274
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 275
    {
3086 rajveer 276
      send_getEmailsToBeSent();
1422 varun.gupt 277
      return recv_getEmailsToBeSent();
278
    }
279
 
3430 rajveer 280
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 281
    {
282
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 283
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 284
    }
285
 
3430 rajveer 286
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 287
    {
288
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 289
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 290
      if (result.isSetSuccess()) {
291
        return result.success;
292
      }
293
      if (result.se != null) {
294
        throw result.se;
295
      }
3430 rajveer 296
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 297
    }
298
 
3430 rajveer 299
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 300
    {
301
      send_markEmailAsSent(emailId);
302
      recv_markEmailAsSent();
303
    }
304
 
3430 rajveer 305
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 306
    {
307
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 308
      args.setEmailId(emailId);
309
      sendBase("markEmailAsSent", args);
1422 varun.gupt 310
    }
311
 
3430 rajveer 312
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 313
    {
314
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 315
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 316
      if (result.se != null) {
317
        throw result.se;
318
      }
319
      return;
320
    }
321
 
3430 rajveer 322
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 323
    {
324
      send_sendMail(mail);
325
      recv_sendMail();
326
    }
327
 
3430 rajveer 328
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 329
    {
330
      sendMail_args args = new sendMail_args();
3430 rajveer 331
      args.setMail(mail);
332
      sendBase("sendMail", args);
352 ashish 333
    }
334
 
3430 rajveer 335
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 336
    {
337
      sendMail_result result = new sendMail_result();
3430 rajveer 338
      receiveBase(result, "sendMail");
352 ashish 339
      if (result.se != null) {
340
        throw result.se;
341
      }
342
      return;
343
    }
344
 
3430 rajveer 345
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 346
    {
347
      send_sendText(message);
348
      recv_sendText();
349
    }
350
 
3430 rajveer 351
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 352
    {
353
      sendText_args args = new sendText_args();
3430 rajveer 354
      args.setMessage(message);
355
      sendBase("sendText", args);
352 ashish 356
    }
357
 
3430 rajveer 358
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 359
    {
360
      sendText_result result = new sendText_result();
3430 rajveer 361
      receiveBase(result, "sendText");
352 ashish 362
      if (result.se != null) {
363
        throw result.se;
364
      }
365
      return;
366
    }
367
 
3430 rajveer 368
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 369
    {
370
      send_addMessage(message);
371
      recv_addMessage();
372
    }
373
 
3430 rajveer 374
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 375
    {
376
      addMessage_args args = new addMessage_args();
3430 rajveer 377
      args.setMessage(message);
378
      sendBase("addMessage", args);
352 ashish 379
    }
380
 
3430 rajveer 381
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 382
    {
383
      addMessage_result result = new addMessage_result();
3430 rajveer 384
      receiveBase(result, "addMessage");
352 ashish 385
      if (result.se != null) {
386
        throw result.se;
387
      }
388
      return;
389
    }
390
 
3430 rajveer 391
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 392
    {
393
      send_updateMessage(id, message);
394
      recv_updateMessage();
395
    }
396
 
3430 rajveer 397
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 398
    {
399
      updateMessage_args args = new updateMessage_args();
3430 rajveer 400
      args.setId(id);
401
      args.setMessage(message);
402
      sendBase("updateMessage", args);
352 ashish 403
    }
404
 
3430 rajveer 405
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 406
    {
407
      updateMessage_result result = new updateMessage_result();
3430 rajveer 408
      receiveBase(result, "updateMessage");
352 ashish 409
      if (result.se != null) {
410
        throw result.se;
411
      }
412
      return;
413
    }
414
 
3430 rajveer 415
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 416
    {
417
      send_getMessage(id);
418
      return recv_getMessage();
419
    }
420
 
3430 rajveer 421
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 422
    {
423
      getMessage_args args = new getMessage_args();
3430 rajveer 424
      args.setId(id);
425
      sendBase("getMessage", args);
352 ashish 426
    }
427
 
3430 rajveer 428
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 429
    {
430
      getMessage_result result = new getMessage_result();
3430 rajveer 431
      receiveBase(result, "getMessage");
352 ashish 432
      if (result.isSetSuccess()) {
433
        return result.success;
434
      }
435
      if (result.se != null) {
436
        throw result.se;
437
      }
3430 rajveer 438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 439
    }
440
 
3430 rajveer 441
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 442
    {
443
      send_getSubstitutedMessage(id, params);
444
      return recv_getSubstitutedMessage();
445
    }
446
 
3430 rajveer 447
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 448
    {
449
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 450
      args.setId(id);
451
      args.setParams(params);
452
      sendBase("getSubstitutedMessage", args);
352 ashish 453
    }
454
 
3430 rajveer 455
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 456
    {
457
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 458
      receiveBase(result, "getSubstitutedMessage");
352 ashish 459
      if (result.isSetSuccess()) {
460
        return result.success;
461
      }
462
      if (result.se != null) {
463
        throw result.se;
464
      }
3430 rajveer 465
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 466
    }
467
 
3430 rajveer 468
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 469
    {
470
      send_addUser(username, password, warehouseId);
471
      return recv_addUser();
472
    }
473
 
3430 rajveer 474
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 475
    {
476
      addUser_args args = new addUser_args();
3430 rajveer 477
      args.setUsername(username);
478
      args.setPassword(password);
479
      args.setWarehouseId(warehouseId);
480
      sendBase("addUser", args);
495 rajveer 481
    }
482
 
3430 rajveer 483
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 484
    {
485
      addUser_result result = new addUser_result();
3430 rajveer 486
      receiveBase(result, "addUser");
495 rajveer 487
      if (result.isSetSuccess()) {
488
        return result.success;
489
      }
490
      if (result.se != null) {
491
        throw result.se;
492
      }
3430 rajveer 493
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 494
    }
495
 
3430 rajveer 496
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 497
    {
498
      send_deleteUser(username);
499
      return recv_deleteUser();
500
    }
501
 
3430 rajveer 502
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 503
    {
504
      deleteUser_args args = new deleteUser_args();
3430 rajveer 505
      args.setUsername(username);
506
      sendBase("deleteUser", args);
495 rajveer 507
    }
508
 
3430 rajveer 509
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 510
    {
511
      deleteUser_result result = new deleteUser_result();
3430 rajveer 512
      receiveBase(result, "deleteUser");
495 rajveer 513
      if (result.isSetSuccess()) {
514
        return result.success;
515
      }
516
      if (result.se != null) {
517
        throw result.se;
518
      }
3430 rajveer 519
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 520
    }
521
 
3430 rajveer 522
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 523
    {
2443 chandransh 524
      send_authenticateDashboardUser(username, password);
525
      return recv_authenticateDashboardUser();
495 rajveer 526
    }
527
 
3430 rajveer 528
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 529
    {
2443 chandransh 530
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 531
      args.setUsername(username);
532
      args.setPassword(password);
533
      sendBase("authenticateDashboardUser", args);
495 rajveer 534
    }
535
 
3430 rajveer 536
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 537
    {
2443 chandransh 538
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 539
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 540
      if (result.isSetSuccess()) {
541
        return result.success;
542
      }
543
      if (result.se != null) {
544
        throw result.se;
545
      }
3430 rajveer 546
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 547
    }
548
 
3430 rajveer 549
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 550
    {
551
      send_updatePassword(username, oldPassword, newPassword);
552
      return recv_updatePassword();
553
    }
554
 
3430 rajveer 555
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 556
    {
557
      updatePassword_args args = new updatePassword_args();
3430 rajveer 558
      args.setUsername(username);
559
      args.setOldPassword(oldPassword);
560
      args.setNewPassword(newPassword);
561
      sendBase("updatePassword", args);
495 rajveer 562
    }
563
 
3430 rajveer 564
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 565
    {
566
      updatePassword_result result = new updatePassword_result();
3430 rajveer 567
      receiveBase(result, "updatePassword");
495 rajveer 568
      if (result.isSetSuccess()) {
569
        return result.success;
570
      }
571
      if (result.se != null) {
572
        throw result.se;
573
      }
3430 rajveer 574
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 575
    }
576
 
3430 rajveer 577
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 578
    {
579
      send_authenticateLogisticsUser(username, password);
580
      return recv_authenticateLogisticsUser();
581
    }
582
 
3430 rajveer 583
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 584
    {
585
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 586
      args.setUsername(username);
587
      args.setPassword(password);
588
      sendBase("authenticateLogisticsUser", args);
750 chandransh 589
    }
590
 
3430 rajveer 591
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 592
    {
593
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 594
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 595
      if (result.isSetSuccess()) {
596
        return result.success;
597
      }
598
      if (result.hse != null) {
599
        throw result.hse;
600
      }
3430 rajveer 601
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 602
    }
603
 
3430 rajveer 604
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 605
    {
606
      send_authenticateStatisticsUser(username, password);
607
      return recv_authenticateStatisticsUser();
608
    }
609
 
3430 rajveer 610
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 611
    {
612
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 613
      args.setUsername(username);
614
      args.setPassword(password);
615
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 616
    }
617
 
3430 rajveer 618
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 619
    {
620
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 621
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 622
      if (result.isSetSuccess()) {
623
        return result.success;
624
      }
625
      if (result.hse != null) {
626
        throw result.hse;
627
      }
3430 rajveer 628
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 629
    }
630
 
3430 rajveer 631
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 632
    {
633
      send_authenticateReportUser(username, password);
634
      return recv_authenticateReportUser();
635
    }
636
 
3430 rajveer 637
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 638
    {
639
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 640
      args.setUsername(username);
641
      args.setPassword(password);
642
      sendBase("authenticateReportUser", args);
1891 ankur.sing 643
    }
644
 
3430 rajveer 645
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 646
    {
647
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 648
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 649
      if (result.isSetSuccess()) {
650
        return result.success;
651
      }
652
      if (result.hse != null) {
653
        throw result.hse;
654
      }
3430 rajveer 655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 656
    }
657
 
3430 rajveer 658
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 659
    {
660
      send_getReports(role);
661
      return recv_getReports();
662
    }
663
 
3430 rajveer 664
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 665
    {
666
      getReports_args args = new getReports_args();
3430 rajveer 667
      args.setRole(role);
668
      sendBase("getReports", args);
1891 ankur.sing 669
    }
670
 
3430 rajveer 671
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 672
    {
673
      getReports_result result = new getReports_result();
3430 rajveer 674
      receiveBase(result, "getReports");
1891 ankur.sing 675
      if (result.isSetSuccess()) {
676
        return result.success;
677
      }
3430 rajveer 678
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 679
    }
680
 
3430 rajveer 681
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 682
    {
2357 ankur.sing 683
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 684
      return recv_authenticateCatalogUser();
685
    }
686
 
3430 rajveer 687
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 688
    {
689
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 690
      args.setUsername(username);
691
      args.setPassword(password);
692
      args.setRole(role);
693
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 694
    }
695
 
3430 rajveer 696
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 697
    {
698
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 699
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 700
      if (result.isSetSuccess()) {
701
        return result.success;
702
      }
703
      if (result.hse != null) {
704
        throw result.hse;
705
      }
3430 rajveer 706
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 707
    }
708
 
4544 varun.gupt 709
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
710
    {
711
      send_shareEntities(entityIds, email);
712
      recv_shareEntities();
713
    }
714
 
715
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
716
    {
717
      shareEntities_args args = new shareEntities_args();
718
      args.setEntityIds(entityIds);
719
      args.setEmail(email);
720
      sendBase("shareEntities", args);
721
    }
722
 
723
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
724
    {
725
      shareEntities_result result = new shareEntities_result();
726
      receiveBase(result, "shareEntities");
727
      if (result.hse != null) {
728
        throw result.hse;
729
      }
730
      return;
731
    }
732
 
4693 mandeep.dh 733
    public List<Agent> getAgents() throws org.apache.thrift.TException
734
    {
735
      send_getAgents();
736
      return recv_getAgents();
737
    }
738
 
739
    public void send_getAgents() throws org.apache.thrift.TException
740
    {
741
      getAgents_args args = new getAgents_args();
742
      sendBase("getAgents", args);
743
    }
744
 
745
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
746
    {
747
      getAgents_result result = new getAgents_result();
748
      receiveBase(result, "getAgents");
749
      if (result.isSetSuccess()) {
750
        return result.success;
751
      }
752
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
753
    }
754
 
755
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
756
    {
757
      send_validateLogIn(emailId, password);
758
      return recv_validateLogIn();
759
    }
760
 
761
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
762
    {
763
      validateLogIn_args args = new validateLogIn_args();
764
      args.setEmailId(emailId);
765
      args.setPassword(password);
766
      sendBase("validateLogIn", args);
767
    }
768
 
769
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
770
    {
771
      validateLogIn_result result = new validateLogIn_result();
772
      receiveBase(result, "validateLogIn");
773
      if (result.isSetSuccess()) {
774
        return result.success;
775
      }
776
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
777
    }
778
 
779
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
780
    {
781
      send_updatePasswordForAgent(agentEmailId, password);
782
      recv_updatePasswordForAgent();
783
    }
784
 
785
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
786
    {
787
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
788
      args.setAgentEmailId(agentEmailId);
789
      args.setPassword(password);
790
      sendBase("updatePasswordForAgent", args);
791
    }
792
 
793
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
794
    {
795
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
796
      receiveBase(result, "updatePasswordForAgent");
797
      return;
798
    }
799
 
800
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
801
    {
802
      send_getRoleNamesForAgent(agentEmailId);
803
      return recv_getRoleNamesForAgent();
804
    }
805
 
806
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
807
    {
808
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
809
      args.setAgentEmailId(agentEmailId);
810
      sendBase("getRoleNamesForAgent", args);
811
    }
812
 
813
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
814
    {
815
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
816
      receiveBase(result, "getRoleNamesForAgent");
817
      if (result.isSetSuccess()) {
818
        return result.success;
819
      }
820
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
821
    }
822
 
823
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
824
    {
825
      send_getPermissionsForRoleName(roleName);
826
      return recv_getPermissionsForRoleName();
827
    }
828
 
829
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
830
    {
831
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
832
      args.setRoleName(roleName);
833
      sendBase("getPermissionsForRoleName", args);
834
    }
835
 
836
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
837
    {
838
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
839
      receiveBase(result, "getPermissionsForRoleName");
840
      if (result.isSetSuccess()) {
841
        return result.success;
842
      }
843
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
844
    }
845
 
4806 varun.gupt 846
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
847
    {
848
      send_saveQuickLink(url, text);
849
      recv_saveQuickLink();
850
    }
851
 
852
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
853
    {
854
      saveQuickLink_args args = new saveQuickLink_args();
855
      args.setUrl(url);
856
      args.setText(text);
857
      sendBase("saveQuickLink", args);
858
    }
859
 
860
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
861
    {
862
      saveQuickLink_result result = new saveQuickLink_result();
863
      receiveBase(result, "saveQuickLink");
864
      if (result.hse != null) {
865
        throw result.hse;
866
      }
867
      return;
868
    }
869
 
870
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
871
    {
872
      send_getQuickLinks();
873
      return recv_getQuickLinks();
874
    }
875
 
876
    public void send_getQuickLinks() throws org.apache.thrift.TException
877
    {
878
      getQuickLinks_args args = new getQuickLinks_args();
879
      sendBase("getQuickLinks", args);
880
    }
881
 
882
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
883
    {
884
      getQuickLinks_result result = new getQuickLinks_result();
885
      receiveBase(result, "getQuickLinks");
886
      if (result.isSetSuccess()) {
887
        return result.success;
888
      }
889
      if (result.hse != null) {
890
        throw result.hse;
891
      }
892
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
893
    }
894
 
4996 varun.gupt 895
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
896
    {
897
      send_updateQuickLink(id, url, text);
898
      recv_updateQuickLink();
899
    }
900
 
901
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
902
    {
903
      updateQuickLink_args args = new updateQuickLink_args();
904
      args.setId(id);
905
      args.setUrl(url);
906
      args.setText(text);
907
      sendBase("updateQuickLink", args);
908
    }
909
 
910
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
911
    {
912
      updateQuickLink_result result = new updateQuickLink_result();
913
      receiveBase(result, "updateQuickLink");
914
      if (result.hse != null) {
915
        throw result.hse;
916
      }
917
      return;
918
    }
919
 
5055 varun.gupt 920
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
921
    {
922
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
923
      return recv_getEmailsForNotificationsSent();
924
    }
925
 
926
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
927
    {
928
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
929
      args.setStartDatetime(startDatetime);
930
      args.setEndDatetime(endDatetime);
931
      sendBase("getEmailsForNotificationsSent", args);
932
    }
933
 
934
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
935
    {
936
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
937
      receiveBase(result, "getEmailsForNotificationsSent");
938
      if (result.isSetSuccess()) {
939
        return result.success;
940
      }
941
      if (result.hse != null) {
942
        throw result.hse;
943
      }
944
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
945
    }
946
 
352 ashish 947
  }
3430 rajveer 948
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
949
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
950
      private org.apache.thrift.async.TAsyncClientManager clientManager;
951
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
952
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
953
        this.clientManager = clientManager;
954
        this.protocolFactory = protocolFactory;
955
      }
956
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
957
        return new AsyncClient(protocolFactory, clientManager, transport);
958
      }
352 ashish 959
    }
960
 
3430 rajveer 961
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
962
      super(protocolFactory, clientManager, transport);
963
    }
352 ashish 964
 
3430 rajveer 965
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
966
      checkReady();
967
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
968
      this.___currentMethod = method_call;
969
      ___manager.call(method_call);
970
    }
971
 
972
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
973
      private String emailTo;
974
      private String emailFrom;
975
      private String subject;
976
      private String body;
977
      private String source;
978
      private String emailType;
979
      public saveUserEmailForSending_call(String emailTo, String emailFrom, String subject, String body, String source, String emailType, 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 {
980
        super(client, protocolFactory, transport, resultHandler, false);
981
        this.emailTo = emailTo;
982
        this.emailFrom = emailFrom;
983
        this.subject = subject;
984
        this.body = body;
985
        this.source = source;
986
        this.emailType = emailType;
352 ashish 987
      }
3430 rajveer 988
 
989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
991
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
992
        args.setEmailTo(emailTo);
993
        args.setEmailFrom(emailFrom);
994
        args.setSubject(subject);
995
        args.setBody(body);
996
        args.setSource(source);
997
        args.setEmailType(emailType);
998
        args.write(prot);
999
        prot.writeMessageEnd();
1000
      }
1001
 
1002
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1004
          throw new IllegalStateException("Method call not finished!");
1005
        }
1006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1008
        return (new Client(prot)).recv_saveUserEmailForSending();
1009
      }
352 ashish 1010
    }
1011
 
3430 rajveer 1012
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1013
      checkReady();
1014
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1015
      this.___currentMethod = method_call;
1016
      ___manager.call(method_call);
1017
    }
1018
 
1019
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1020
      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 {
1021
        super(client, protocolFactory, transport, resultHandler, false);
1022
      }
1023
 
1024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1026
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1027
        args.write(prot);
1028
        prot.writeMessageEnd();
1029
      }
1030
 
1031
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1032
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1033
          throw new IllegalStateException("Method call not finished!");
1034
        }
1035
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1036
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1037
        return (new Client(prot)).recv_getEmailsToBeSent();
1038
      }
1039
    }
1040
 
1041
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1042
      checkReady();
1043
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1044
      this.___currentMethod = method_call;
1045
      ___manager.call(method_call);
1046
    }
1047
 
1048
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1049
      private long emailId;
1050
      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 {
1051
        super(client, protocolFactory, transport, resultHandler, false);
1052
        this.emailId = emailId;
1053
      }
1054
 
1055
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1056
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1057
        markEmailAsSent_args args = new markEmailAsSent_args();
1058
        args.setEmailId(emailId);
1059
        args.write(prot);
1060
        prot.writeMessageEnd();
1061
      }
1062
 
1063
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1064
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1065
          throw new IllegalStateException("Method call not finished!");
1066
        }
1067
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1068
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1069
        (new Client(prot)).recv_markEmailAsSent();
1070
      }
1071
    }
1072
 
1073
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1074
      checkReady();
1075
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1076
      this.___currentMethod = method_call;
1077
      ___manager.call(method_call);
1078
    }
1079
 
1080
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1081
      private Mail mail;
1082
      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 {
1083
        super(client, protocolFactory, transport, resultHandler, false);
1084
        this.mail = mail;
1085
      }
1086
 
1087
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1088
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1089
        sendMail_args args = new sendMail_args();
1090
        args.setMail(mail);
1091
        args.write(prot);
1092
        prot.writeMessageEnd();
1093
      }
1094
 
1095
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1096
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1097
          throw new IllegalStateException("Method call not finished!");
1098
        }
1099
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1100
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1101
        (new Client(prot)).recv_sendMail();
1102
      }
1103
    }
1104
 
1105
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1106
      checkReady();
1107
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1108
      this.___currentMethod = method_call;
1109
      ___manager.call(method_call);
1110
    }
1111
 
1112
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1113
      private TextMessage message;
1114
      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 {
1115
        super(client, protocolFactory, transport, resultHandler, false);
1116
        this.message = message;
1117
      }
1118
 
1119
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1120
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1121
        sendText_args args = new sendText_args();
1122
        args.setMessage(message);
1123
        args.write(prot);
1124
        prot.writeMessageEnd();
1125
      }
1126
 
1127
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1128
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1129
          throw new IllegalStateException("Method call not finished!");
1130
        }
1131
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1132
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1133
        (new Client(prot)).recv_sendText();
1134
      }
1135
    }
1136
 
1137
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1138
      checkReady();
1139
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1140
      this.___currentMethod = method_call;
1141
      ___manager.call(method_call);
1142
    }
1143
 
1144
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1145
      private Message message;
1146
      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 {
1147
        super(client, protocolFactory, transport, resultHandler, false);
1148
        this.message = message;
1149
      }
1150
 
1151
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1152
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1153
        addMessage_args args = new addMessage_args();
1154
        args.setMessage(message);
1155
        args.write(prot);
1156
        prot.writeMessageEnd();
1157
      }
1158
 
1159
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1160
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1161
          throw new IllegalStateException("Method call not finished!");
1162
        }
1163
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1164
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1165
        (new Client(prot)).recv_addMessage();
1166
      }
1167
    }
1168
 
1169
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1170
      checkReady();
1171
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1172
      this.___currentMethod = method_call;
1173
      ___manager.call(method_call);
1174
    }
1175
 
1176
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1177
      private long id;
1178
      private String message;
1179
      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 {
1180
        super(client, protocolFactory, transport, resultHandler, false);
1181
        this.id = id;
1182
        this.message = message;
1183
      }
1184
 
1185
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1186
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1187
        updateMessage_args args = new updateMessage_args();
1188
        args.setId(id);
1189
        args.setMessage(message);
1190
        args.write(prot);
1191
        prot.writeMessageEnd();
1192
      }
1193
 
1194
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1195
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1196
          throw new IllegalStateException("Method call not finished!");
1197
        }
1198
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1199
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1200
        (new Client(prot)).recv_updateMessage();
1201
      }
1202
    }
1203
 
1204
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1205
      checkReady();
1206
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1207
      this.___currentMethod = method_call;
1208
      ___manager.call(method_call);
1209
    }
1210
 
1211
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1212
      private long id;
1213
      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 {
1214
        super(client, protocolFactory, transport, resultHandler, false);
1215
        this.id = id;
1216
      }
1217
 
1218
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1219
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1220
        getMessage_args args = new getMessage_args();
1221
        args.setId(id);
1222
        args.write(prot);
1223
        prot.writeMessageEnd();
1224
      }
1225
 
1226
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1227
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1228
          throw new IllegalStateException("Method call not finished!");
1229
        }
1230
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1231
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1232
        return (new Client(prot)).recv_getMessage();
1233
      }
1234
    }
1235
 
1236
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1237
      checkReady();
1238
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1239
      this.___currentMethod = method_call;
1240
      ___manager.call(method_call);
1241
    }
1242
 
1243
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1244
      private long id;
1245
      private Map<String,String> params;
1246
      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 {
1247
        super(client, protocolFactory, transport, resultHandler, false);
1248
        this.id = id;
1249
        this.params = params;
1250
      }
1251
 
1252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1254
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1255
        args.setId(id);
1256
        args.setParams(params);
1257
        args.write(prot);
1258
        prot.writeMessageEnd();
1259
      }
1260
 
1261
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1263
          throw new IllegalStateException("Method call not finished!");
1264
        }
1265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        return (new Client(prot)).recv_getSubstitutedMessage();
1268
      }
1269
    }
1270
 
1271
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1272
      checkReady();
1273
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1274
      this.___currentMethod = method_call;
1275
      ___manager.call(method_call);
1276
    }
1277
 
1278
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1279
      private String username;
1280
      private String password;
1281
      private long warehouseId;
1282
      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 {
1283
        super(client, protocolFactory, transport, resultHandler, false);
1284
        this.username = username;
1285
        this.password = password;
1286
        this.warehouseId = warehouseId;
1287
      }
1288
 
1289
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1290
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1291
        addUser_args args = new addUser_args();
1292
        args.setUsername(username);
1293
        args.setPassword(password);
1294
        args.setWarehouseId(warehouseId);
1295
        args.write(prot);
1296
        prot.writeMessageEnd();
1297
      }
1298
 
1299
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1300
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1301
          throw new IllegalStateException("Method call not finished!");
1302
        }
1303
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1304
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1305
        return (new Client(prot)).recv_addUser();
1306
      }
1307
    }
1308
 
1309
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1310
      checkReady();
1311
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1312
      this.___currentMethod = method_call;
1313
      ___manager.call(method_call);
1314
    }
1315
 
1316
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1317
      private String username;
1318
      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 {
1319
        super(client, protocolFactory, transport, resultHandler, false);
1320
        this.username = username;
1321
      }
1322
 
1323
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1324
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1325
        deleteUser_args args = new deleteUser_args();
1326
        args.setUsername(username);
1327
        args.write(prot);
1328
        prot.writeMessageEnd();
1329
      }
1330
 
1331
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1332
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1333
          throw new IllegalStateException("Method call not finished!");
1334
        }
1335
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1336
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1337
        return (new Client(prot)).recv_deleteUser();
1338
      }
1339
    }
1340
 
1341
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1342
      checkReady();
1343
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1344
      this.___currentMethod = method_call;
1345
      ___manager.call(method_call);
1346
    }
1347
 
1348
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1349
      private String username;
1350
      private String password;
1351
      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 {
1352
        super(client, protocolFactory, transport, resultHandler, false);
1353
        this.username = username;
1354
        this.password = password;
1355
      }
1356
 
1357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1359
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1360
        args.setUsername(username);
1361
        args.setPassword(password);
1362
        args.write(prot);
1363
        prot.writeMessageEnd();
1364
      }
1365
 
1366
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1367
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1368
          throw new IllegalStateException("Method call not finished!");
1369
        }
1370
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1371
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1372
        return (new Client(prot)).recv_authenticateDashboardUser();
1373
      }
1374
    }
1375
 
1376
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1377
      checkReady();
1378
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1379
      this.___currentMethod = method_call;
1380
      ___manager.call(method_call);
1381
    }
1382
 
1383
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1384
      private String username;
1385
      private String oldPassword;
1386
      private String newPassword;
1387
      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 {
1388
        super(client, protocolFactory, transport, resultHandler, false);
1389
        this.username = username;
1390
        this.oldPassword = oldPassword;
1391
        this.newPassword = newPassword;
1392
      }
1393
 
1394
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1395
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1396
        updatePassword_args args = new updatePassword_args();
1397
        args.setUsername(username);
1398
        args.setOldPassword(oldPassword);
1399
        args.setNewPassword(newPassword);
1400
        args.write(prot);
1401
        prot.writeMessageEnd();
1402
      }
1403
 
1404
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1405
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1406
          throw new IllegalStateException("Method call not finished!");
1407
        }
1408
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1409
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1410
        return (new Client(prot)).recv_updatePassword();
1411
      }
1412
    }
1413
 
1414
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1415
      checkReady();
1416
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1417
      this.___currentMethod = method_call;
1418
      ___manager.call(method_call);
1419
    }
1420
 
1421
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1422
      private String username;
1423
      private String password;
1424
      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 {
1425
        super(client, protocolFactory, transport, resultHandler, false);
1426
        this.username = username;
1427
        this.password = password;
1428
      }
1429
 
1430
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1431
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1432
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1433
        args.setUsername(username);
1434
        args.setPassword(password);
1435
        args.write(prot);
1436
        prot.writeMessageEnd();
1437
      }
1438
 
1439
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1440
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1441
          throw new IllegalStateException("Method call not finished!");
1442
        }
1443
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1444
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1445
        return (new Client(prot)).recv_authenticateLogisticsUser();
1446
      }
1447
    }
1448
 
1449
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1450
      checkReady();
1451
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1452
      this.___currentMethod = method_call;
1453
      ___manager.call(method_call);
1454
    }
1455
 
1456
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1457
      private String username;
1458
      private String password;
1459
      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 {
1460
        super(client, protocolFactory, transport, resultHandler, false);
1461
        this.username = username;
1462
        this.password = password;
1463
      }
1464
 
1465
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1466
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1467
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1468
        args.setUsername(username);
1469
        args.setPassword(password);
1470
        args.write(prot);
1471
        prot.writeMessageEnd();
1472
      }
1473
 
1474
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1475
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1476
          throw new IllegalStateException("Method call not finished!");
1477
        }
1478
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1479
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1480
        return (new Client(prot)).recv_authenticateStatisticsUser();
1481
      }
1482
    }
1483
 
1484
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1485
      checkReady();
1486
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1487
      this.___currentMethod = method_call;
1488
      ___manager.call(method_call);
1489
    }
1490
 
1491
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1492
      private String username;
1493
      private String password;
1494
      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 {
1495
        super(client, protocolFactory, transport, resultHandler, false);
1496
        this.username = username;
1497
        this.password = password;
1498
      }
1499
 
1500
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1501
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1502
        authenticateReportUser_args args = new authenticateReportUser_args();
1503
        args.setUsername(username);
1504
        args.setPassword(password);
1505
        args.write(prot);
1506
        prot.writeMessageEnd();
1507
      }
1508
 
1509
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1510
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1511
          throw new IllegalStateException("Method call not finished!");
1512
        }
1513
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1514
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1515
        return (new Client(prot)).recv_authenticateReportUser();
1516
      }
1517
    }
1518
 
1519
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1520
      checkReady();
1521
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1522
      this.___currentMethod = method_call;
1523
      ___manager.call(method_call);
1524
    }
1525
 
1526
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1527
      private long role;
1528
      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 {
1529
        super(client, protocolFactory, transport, resultHandler, false);
1530
        this.role = role;
1531
      }
1532
 
1533
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1534
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1535
        getReports_args args = new getReports_args();
1536
        args.setRole(role);
1537
        args.write(prot);
1538
        prot.writeMessageEnd();
1539
      }
1540
 
1541
      public List<Report> getResult() throws org.apache.thrift.TException {
1542
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1543
          throw new IllegalStateException("Method call not finished!");
1544
        }
1545
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1546
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1547
        return (new Client(prot)).recv_getReports();
1548
      }
1549
    }
1550
 
1551
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1552
      checkReady();
1553
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1554
      this.___currentMethod = method_call;
1555
      ___manager.call(method_call);
1556
    }
1557
 
1558
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1559
      private String username;
1560
      private String password;
1561
      private long role;
1562
      public authenticateCatalogUser_call(String username, String password, long role, 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 {
1563
        super(client, protocolFactory, transport, resultHandler, false);
1564
        this.username = username;
1565
        this.password = password;
1566
        this.role = role;
1567
      }
1568
 
1569
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1570
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1571
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1572
        args.setUsername(username);
1573
        args.setPassword(password);
1574
        args.setRole(role);
1575
        args.write(prot);
1576
        prot.writeMessageEnd();
1577
      }
1578
 
1579
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1580
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1581
          throw new IllegalStateException("Method call not finished!");
1582
        }
1583
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1584
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1585
        return (new Client(prot)).recv_authenticateCatalogUser();
1586
      }
1587
    }
1588
 
4544 varun.gupt 1589
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1590
      checkReady();
1591
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1592
      this.___currentMethod = method_call;
1593
      ___manager.call(method_call);
1594
    }
1595
 
1596
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1597
      private List<Long> entityIds;
1598
      private String email;
1599
      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 {
1600
        super(client, protocolFactory, transport, resultHandler, false);
1601
        this.entityIds = entityIds;
1602
        this.email = email;
1603
      }
1604
 
1605
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1606
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1607
        shareEntities_args args = new shareEntities_args();
1608
        args.setEntityIds(entityIds);
1609
        args.setEmail(email);
1610
        args.write(prot);
1611
        prot.writeMessageEnd();
1612
      }
1613
 
1614
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1615
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1616
          throw new IllegalStateException("Method call not finished!");
1617
        }
1618
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1619
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1620
        (new Client(prot)).recv_shareEntities();
1621
      }
1622
    }
1623
 
4693 mandeep.dh 1624
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1625
      checkReady();
1626
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1627
      this.___currentMethod = method_call;
1628
      ___manager.call(method_call);
1629
    }
1630
 
1631
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1632
      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 {
1633
        super(client, protocolFactory, transport, resultHandler, false);
1634
      }
1635
 
1636
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1637
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1638
        getAgents_args args = new getAgents_args();
1639
        args.write(prot);
1640
        prot.writeMessageEnd();
1641
      }
1642
 
1643
      public List<Agent> getResult() throws org.apache.thrift.TException {
1644
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1645
          throw new IllegalStateException("Method call not finished!");
1646
        }
1647
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1648
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1649
        return (new Client(prot)).recv_getAgents();
1650
      }
1651
    }
1652
 
1653
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1654
      checkReady();
1655
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1656
      this.___currentMethod = method_call;
1657
      ___manager.call(method_call);
1658
    }
1659
 
1660
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1661
      private String emailId;
1662
      private String password;
1663
      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 {
1664
        super(client, protocolFactory, transport, resultHandler, false);
1665
        this.emailId = emailId;
1666
        this.password = password;
1667
      }
1668
 
1669
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1670
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1671
        validateLogIn_args args = new validateLogIn_args();
1672
        args.setEmailId(emailId);
1673
        args.setPassword(password);
1674
        args.write(prot);
1675
        prot.writeMessageEnd();
1676
      }
1677
 
1678
      public boolean getResult() throws org.apache.thrift.TException {
1679
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1680
          throw new IllegalStateException("Method call not finished!");
1681
        }
1682
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1683
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1684
        return (new Client(prot)).recv_validateLogIn();
1685
      }
1686
    }
1687
 
1688
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1689
      checkReady();
1690
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1691
      this.___currentMethod = method_call;
1692
      ___manager.call(method_call);
1693
    }
1694
 
1695
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1696
      private String agentEmailId;
1697
      private String password;
1698
      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 {
1699
        super(client, protocolFactory, transport, resultHandler, false);
1700
        this.agentEmailId = agentEmailId;
1701
        this.password = password;
1702
      }
1703
 
1704
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1705
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1706
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1707
        args.setAgentEmailId(agentEmailId);
1708
        args.setPassword(password);
1709
        args.write(prot);
1710
        prot.writeMessageEnd();
1711
      }
1712
 
1713
      public void getResult() throws org.apache.thrift.TException {
1714
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1715
          throw new IllegalStateException("Method call not finished!");
1716
        }
1717
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1718
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1719
        (new Client(prot)).recv_updatePasswordForAgent();
1720
      }
1721
    }
1722
 
1723
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1724
      checkReady();
1725
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1726
      this.___currentMethod = method_call;
1727
      ___manager.call(method_call);
1728
    }
1729
 
1730
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1731
      private String agentEmailId;
1732
      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 {
1733
        super(client, protocolFactory, transport, resultHandler, false);
1734
        this.agentEmailId = agentEmailId;
1735
      }
1736
 
1737
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1738
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1739
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1740
        args.setAgentEmailId(agentEmailId);
1741
        args.write(prot);
1742
        prot.writeMessageEnd();
1743
      }
1744
 
1745
      public List<String> getResult() throws org.apache.thrift.TException {
1746
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1747
          throw new IllegalStateException("Method call not finished!");
1748
        }
1749
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1750
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1751
        return (new Client(prot)).recv_getRoleNamesForAgent();
1752
      }
1753
    }
1754
 
1755
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1756
      checkReady();
1757
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1758
      this.___currentMethod = method_call;
1759
      ___manager.call(method_call);
1760
    }
1761
 
1762
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1763
      private String roleName;
1764
      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 {
1765
        super(client, protocolFactory, transport, resultHandler, false);
1766
        this.roleName = roleName;
1767
      }
1768
 
1769
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1770
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1771
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1772
        args.setRoleName(roleName);
1773
        args.write(prot);
1774
        prot.writeMessageEnd();
1775
      }
1776
 
1777
      public List<String> getResult() throws org.apache.thrift.TException {
1778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1779
          throw new IllegalStateException("Method call not finished!");
1780
        }
1781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1783
        return (new Client(prot)).recv_getPermissionsForRoleName();
1784
      }
1785
    }
1786
 
4806 varun.gupt 1787
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1788
      checkReady();
1789
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1790
      this.___currentMethod = method_call;
1791
      ___manager.call(method_call);
1792
    }
1793
 
1794
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1795
      private String url;
1796
      private String text;
1797
      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 {
1798
        super(client, protocolFactory, transport, resultHandler, false);
1799
        this.url = url;
1800
        this.text = text;
1801
      }
1802
 
1803
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1804
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1805
        saveQuickLink_args args = new saveQuickLink_args();
1806
        args.setUrl(url);
1807
        args.setText(text);
1808
        args.write(prot);
1809
        prot.writeMessageEnd();
1810
      }
1811
 
1812
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1813
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1814
          throw new IllegalStateException("Method call not finished!");
1815
        }
1816
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1818
        (new Client(prot)).recv_saveQuickLink();
1819
      }
1820
    }
1821
 
1822
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1823
      checkReady();
1824
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1825
      this.___currentMethod = method_call;
1826
      ___manager.call(method_call);
1827
    }
1828
 
1829
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1830
      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 {
1831
        super(client, protocolFactory, transport, resultHandler, false);
1832
      }
1833
 
1834
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1835
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1836
        getQuickLinks_args args = new getQuickLinks_args();
1837
        args.write(prot);
1838
        prot.writeMessageEnd();
1839
      }
1840
 
1841
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1842
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1843
          throw new IllegalStateException("Method call not finished!");
1844
        }
1845
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1846
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1847
        return (new Client(prot)).recv_getQuickLinks();
1848
      }
1849
    }
1850
 
4996 varun.gupt 1851
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1852
      checkReady();
1853
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1854
      this.___currentMethod = method_call;
1855
      ___manager.call(method_call);
1856
    }
1857
 
1858
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1859
      private long id;
1860
      private String url;
1861
      private String text;
1862
      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 {
1863
        super(client, protocolFactory, transport, resultHandler, false);
1864
        this.id = id;
1865
        this.url = url;
1866
        this.text = text;
1867
      }
1868
 
1869
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1870
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1871
        updateQuickLink_args args = new updateQuickLink_args();
1872
        args.setId(id);
1873
        args.setUrl(url);
1874
        args.setText(text);
1875
        args.write(prot);
1876
        prot.writeMessageEnd();
1877
      }
1878
 
1879
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1880
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1881
          throw new IllegalStateException("Method call not finished!");
1882
        }
1883
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1885
        (new Client(prot)).recv_updateQuickLink();
1886
      }
1887
    }
1888
 
5055 varun.gupt 1889
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1890
      checkReady();
1891
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1892
      this.___currentMethod = method_call;
1893
      ___manager.call(method_call);
1894
    }
1895
 
1896
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1897
      private long startDatetime;
1898
      private long endDatetime;
1899
      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 {
1900
        super(client, protocolFactory, transport, resultHandler, false);
1901
        this.startDatetime = startDatetime;
1902
        this.endDatetime = endDatetime;
1903
      }
1904
 
1905
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1906
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1907
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1908
        args.setStartDatetime(startDatetime);
1909
        args.setEndDatetime(endDatetime);
1910
        args.write(prot);
1911
        prot.writeMessageEnd();
1912
      }
1913
 
1914
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
1915
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1916
          throw new IllegalStateException("Method call not finished!");
1917
        }
1918
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1919
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1920
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1921
      }
1922
    }
1923
 
3430 rajveer 1924
  }
1925
 
1926
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1927
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1928
    public Processor(I iface) {
1929
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1930
    }
1931
 
1932
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1933
      super(iface, getProcessMap(processMap));
1934
    }
1935
 
1936
    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) {
1937
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1938
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1939
      processMap.put("markEmailAsSent", new markEmailAsSent());
1940
      processMap.put("sendMail", new sendMail());
1941
      processMap.put("sendText", new sendText());
1942
      processMap.put("addMessage", new addMessage());
1943
      processMap.put("updateMessage", new updateMessage());
1944
      processMap.put("getMessage", new getMessage());
1945
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1946
      processMap.put("addUser", new addUser());
1947
      processMap.put("deleteUser", new deleteUser());
1948
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1949
      processMap.put("updatePassword", new updatePassword());
1950
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1951
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1952
      processMap.put("authenticateReportUser", new authenticateReportUser());
1953
      processMap.put("getReports", new getReports());
1954
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 1955
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 1956
      processMap.put("getAgents", new getAgents());
1957
      processMap.put("validateLogIn", new validateLogIn());
1958
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1959
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1960
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 1961
      processMap.put("saveQuickLink", new saveQuickLink());
1962
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 1963
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 1964
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
3430 rajveer 1965
      return processMap;
1966
    }
1967
 
1968
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1969
      public saveUserEmailForSending() {
1970
        super("saveUserEmailForSending");
1971
      }
1972
 
1973
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1974
        return new saveUserEmailForSending_args();
1975
      }
1976
 
1977
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1978
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1979
        try {
3430 rajveer 1980
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
3206 mandeep.dh 1981
          result.setSuccessIsSet(true);
1395 varun.gupt 1982
        } catch (HelperServiceException se) {
1983
          result.se = se;
1984
        }
3430 rajveer 1985
        return result;
1395 varun.gupt 1986
      }
1987
    }
1988
 
3430 rajveer 1989
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
1990
      public getEmailsToBeSent() {
1991
        super("getEmailsToBeSent");
1992
      }
1993
 
1994
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
1995
        return new getEmailsToBeSent_args();
1996
      }
1997
 
1998
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1999
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2000
        try {
3430 rajveer 2001
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2002
        } catch (HelperServiceException se) {
2003
          result.se = se;
2004
        }
3430 rajveer 2005
        return result;
1422 varun.gupt 2006
      }
2007
    }
2008
 
3430 rajveer 2009
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2010
      public markEmailAsSent() {
2011
        super("markEmailAsSent");
2012
      }
2013
 
2014
      protected markEmailAsSent_args getEmptyArgsInstance() {
2015
        return new markEmailAsSent_args();
2016
      }
2017
 
2018
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2019
        markEmailAsSent_result result = new markEmailAsSent_result();
2020
        try {
3430 rajveer 2021
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2022
        } catch (HelperServiceException se) {
2023
          result.se = se;
2024
        }
3430 rajveer 2025
        return result;
1422 varun.gupt 2026
      }
2027
    }
2028
 
3430 rajveer 2029
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2030
      public sendMail() {
2031
        super("sendMail");
2032
      }
2033
 
2034
      protected sendMail_args getEmptyArgsInstance() {
2035
        return new sendMail_args();
2036
      }
2037
 
2038
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2039
        sendMail_result result = new sendMail_result();
2040
        try {
3430 rajveer 2041
          iface.sendMail(args.mail);
352 ashish 2042
        } catch (HelperServiceException se) {
2043
          result.se = se;
2044
        }
3430 rajveer 2045
        return result;
352 ashish 2046
      }
2047
    }
2048
 
3430 rajveer 2049
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2050
      public sendText() {
2051
        super("sendText");
2052
      }
2053
 
2054
      protected sendText_args getEmptyArgsInstance() {
2055
        return new sendText_args();
2056
      }
2057
 
2058
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2059
        sendText_result result = new sendText_result();
2060
        try {
3430 rajveer 2061
          iface.sendText(args.message);
352 ashish 2062
        } catch (HelperServiceException se) {
2063
          result.se = se;
2064
        }
3430 rajveer 2065
        return result;
352 ashish 2066
      }
2067
    }
2068
 
3430 rajveer 2069
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2070
      public addMessage() {
2071
        super("addMessage");
2072
      }
2073
 
2074
      protected addMessage_args getEmptyArgsInstance() {
2075
        return new addMessage_args();
2076
      }
2077
 
2078
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2079
        addMessage_result result = new addMessage_result();
2080
        try {
3430 rajveer 2081
          iface.addMessage(args.message);
352 ashish 2082
        } catch (HelperServiceException se) {
2083
          result.se = se;
2084
        }
3430 rajveer 2085
        return result;
352 ashish 2086
      }
2087
    }
2088
 
3430 rajveer 2089
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2090
      public updateMessage() {
2091
        super("updateMessage");
2092
      }
2093
 
2094
      protected updateMessage_args getEmptyArgsInstance() {
2095
        return new updateMessage_args();
2096
      }
2097
 
2098
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2099
        updateMessage_result result = new updateMessage_result();
2100
        try {
3430 rajveer 2101
          iface.updateMessage(args.id, args.message);
352 ashish 2102
        } catch (HelperServiceException se) {
2103
          result.se = se;
2104
        }
3430 rajveer 2105
        return result;
352 ashish 2106
      }
2107
    }
2108
 
3430 rajveer 2109
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2110
      public getMessage() {
2111
        super("getMessage");
2112
      }
2113
 
2114
      protected getMessage_args getEmptyArgsInstance() {
2115
        return new getMessage_args();
2116
      }
2117
 
2118
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2119
        getMessage_result result = new getMessage_result();
2120
        try {
3430 rajveer 2121
          result.success = iface.getMessage(args.id);
352 ashish 2122
        } catch (HelperServiceException se) {
2123
          result.se = se;
2124
        }
3430 rajveer 2125
        return result;
352 ashish 2126
      }
2127
    }
2128
 
3430 rajveer 2129
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2130
      public getSubstitutedMessage() {
2131
        super("getSubstitutedMessage");
2132
      }
2133
 
2134
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2135
        return new getSubstitutedMessage_args();
2136
      }
2137
 
2138
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2139
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2140
        try {
3430 rajveer 2141
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2142
        } catch (HelperServiceException se) {
2143
          result.se = se;
2144
        }
3430 rajveer 2145
        return result;
352 ashish 2146
      }
2147
    }
2148
 
3430 rajveer 2149
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2150
      public addUser() {
2151
        super("addUser");
2152
      }
2153
 
2154
      protected addUser_args getEmptyArgsInstance() {
2155
        return new addUser_args();
2156
      }
2157
 
2158
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2159
        addUser_result result = new addUser_result();
2160
        try {
3430 rajveer 2161
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2162
          result.setSuccessIsSet(true);
2163
        } catch (HelperServiceException se) {
2164
          result.se = se;
2165
        }
3430 rajveer 2166
        return result;
495 rajveer 2167
      }
2168
    }
2169
 
3430 rajveer 2170
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2171
      public deleteUser() {
2172
        super("deleteUser");
2173
      }
2174
 
2175
      protected deleteUser_args getEmptyArgsInstance() {
2176
        return new deleteUser_args();
2177
      }
2178
 
2179
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2180
        deleteUser_result result = new deleteUser_result();
2181
        try {
3430 rajveer 2182
          result.success = iface.deleteUser(args.username);
495 rajveer 2183
          result.setSuccessIsSet(true);
2184
        } catch (HelperServiceException se) {
2185
          result.se = se;
2186
        }
3430 rajveer 2187
        return result;
495 rajveer 2188
      }
2189
    }
2190
 
3430 rajveer 2191
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2192
      public authenticateDashboardUser() {
2193
        super("authenticateDashboardUser");
2194
      }
2195
 
2196
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2197
        return new authenticateDashboardUser_args();
2198
      }
2199
 
2200
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2201
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2202
        try {
3430 rajveer 2203
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2204
        } catch (HelperServiceException se) {
2205
          result.se = se;
2206
        }
3430 rajveer 2207
        return result;
495 rajveer 2208
      }
2209
    }
2210
 
3430 rajveer 2211
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2212
      public updatePassword() {
2213
        super("updatePassword");
2214
      }
2215
 
2216
      protected updatePassword_args getEmptyArgsInstance() {
2217
        return new updatePassword_args();
2218
      }
2219
 
2220
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2221
        updatePassword_result result = new updatePassword_result();
2222
        try {
3430 rajveer 2223
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2224
          result.setSuccessIsSet(true);
2225
        } catch (HelperServiceException se) {
2226
          result.se = se;
2227
        }
3430 rajveer 2228
        return result;
495 rajveer 2229
      }
2230
    }
2231
 
3430 rajveer 2232
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2233
      public authenticateLogisticsUser() {
2234
        super("authenticateLogisticsUser");
2235
      }
2236
 
2237
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2238
        return new authenticateLogisticsUser_args();
2239
      }
2240
 
2241
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2242
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2243
        try {
3430 rajveer 2244
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2245
        } catch (HelperServiceException hse) {
2246
          result.hse = hse;
2247
        }
3430 rajveer 2248
        return result;
750 chandransh 2249
      }
2250
    }
2251
 
3430 rajveer 2252
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2253
      public authenticateStatisticsUser() {
2254
        super("authenticateStatisticsUser");
2255
      }
2256
 
2257
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2258
        return new authenticateStatisticsUser_args();
2259
      }
2260
 
2261
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2262
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2263
        try {
3430 rajveer 2264
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2265
        } catch (HelperServiceException hse) {
2266
          result.hse = hse;
2267
        }
3430 rajveer 2268
        return result;
1611 ankur.sing 2269
      }
2270
    }
2271
 
3430 rajveer 2272
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2273
      public authenticateReportUser() {
2274
        super("authenticateReportUser");
2275
      }
2276
 
2277
      protected authenticateReportUser_args getEmptyArgsInstance() {
2278
        return new authenticateReportUser_args();
2279
      }
2280
 
2281
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2282
        authenticateReportUser_result result = new authenticateReportUser_result();
2283
        try {
3430 rajveer 2284
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2285
        } catch (HelperServiceException hse) {
2286
          result.hse = hse;
2287
        }
3430 rajveer 2288
        return result;
1891 ankur.sing 2289
      }
2290
    }
2291
 
3430 rajveer 2292
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2293
      public getReports() {
2294
        super("getReports");
2295
      }
2296
 
2297
      protected getReports_args getEmptyArgsInstance() {
2298
        return new getReports_args();
2299
      }
2300
 
2301
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2302
        getReports_result result = new getReports_result();
3430 rajveer 2303
        result.success = iface.getReports(args.role);
2304
        return result;
1891 ankur.sing 2305
      }
2306
    }
2307
 
3430 rajveer 2308
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2309
      public authenticateCatalogUser() {
2310
        super("authenticateCatalogUser");
2311
      }
2312
 
2313
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2314
        return new authenticateCatalogUser_args();
2315
      }
2316
 
2317
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2318
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2319
        try {
3430 rajveer 2320
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 2321
        } catch (HelperServiceException hse) {
2322
          result.hse = hse;
2323
        }
3430 rajveer 2324
        return result;
2024 ankur.sing 2325
      }
2326
    }
2327
 
4544 varun.gupt 2328
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2329
      public shareEntities() {
2330
        super("shareEntities");
2331
      }
2332
 
2333
      protected shareEntities_args getEmptyArgsInstance() {
2334
        return new shareEntities_args();
2335
      }
2336
 
2337
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2338
        shareEntities_result result = new shareEntities_result();
2339
        try {
2340
          iface.shareEntities(args.entityIds, args.email);
2341
        } catch (HelperServiceException hse) {
2342
          result.hse = hse;
2343
        }
2344
        return result;
2345
      }
2346
    }
2347
 
4693 mandeep.dh 2348
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2349
      public getAgents() {
2350
        super("getAgents");
2351
      }
2352
 
2353
      protected getAgents_args getEmptyArgsInstance() {
2354
        return new getAgents_args();
2355
      }
2356
 
2357
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2358
        getAgents_result result = new getAgents_result();
2359
        result.success = iface.getAgents();
2360
        return result;
2361
      }
2362
    }
2363
 
2364
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2365
      public validateLogIn() {
2366
        super("validateLogIn");
2367
      }
2368
 
2369
      protected validateLogIn_args getEmptyArgsInstance() {
2370
        return new validateLogIn_args();
2371
      }
2372
 
2373
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2374
        validateLogIn_result result = new validateLogIn_result();
2375
        result.success = iface.validateLogIn(args.emailId, args.password);
2376
        result.setSuccessIsSet(true);
2377
        return result;
2378
      }
2379
    }
2380
 
2381
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2382
      public updatePasswordForAgent() {
2383
        super("updatePasswordForAgent");
2384
      }
2385
 
2386
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2387
        return new updatePasswordForAgent_args();
2388
      }
2389
 
2390
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2391
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2392
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2393
        return result;
2394
      }
2395
    }
2396
 
2397
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2398
      public getRoleNamesForAgent() {
2399
        super("getRoleNamesForAgent");
2400
      }
2401
 
2402
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2403
        return new getRoleNamesForAgent_args();
2404
      }
2405
 
2406
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2407
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2408
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2409
        return result;
2410
      }
2411
    }
2412
 
2413
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2414
      public getPermissionsForRoleName() {
2415
        super("getPermissionsForRoleName");
2416
      }
2417
 
2418
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2419
        return new getPermissionsForRoleName_args();
2420
      }
2421
 
2422
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2423
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2424
        result.success = iface.getPermissionsForRoleName(args.roleName);
2425
        return result;
2426
      }
2427
    }
2428
 
4806 varun.gupt 2429
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2430
      public saveQuickLink() {
2431
        super("saveQuickLink");
2432
      }
2433
 
2434
      protected saveQuickLink_args getEmptyArgsInstance() {
2435
        return new saveQuickLink_args();
2436
      }
2437
 
2438
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2439
        saveQuickLink_result result = new saveQuickLink_result();
2440
        try {
2441
          iface.saveQuickLink(args.url, args.text);
2442
        } catch (HelperServiceException hse) {
2443
          result.hse = hse;
2444
        }
2445
        return result;
2446
      }
2447
    }
2448
 
2449
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2450
      public getQuickLinks() {
2451
        super("getQuickLinks");
2452
      }
2453
 
2454
      protected getQuickLinks_args getEmptyArgsInstance() {
2455
        return new getQuickLinks_args();
2456
      }
2457
 
2458
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2459
        getQuickLinks_result result = new getQuickLinks_result();
2460
        try {
2461
          result.success = iface.getQuickLinks();
2462
        } catch (HelperServiceException hse) {
2463
          result.hse = hse;
2464
        }
2465
        return result;
2466
      }
2467
    }
2468
 
4996 varun.gupt 2469
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2470
      public updateQuickLink() {
2471
        super("updateQuickLink");
2472
      }
2473
 
2474
      protected updateQuickLink_args getEmptyArgsInstance() {
2475
        return new updateQuickLink_args();
2476
      }
2477
 
2478
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2479
        updateQuickLink_result result = new updateQuickLink_result();
2480
        try {
2481
          iface.updateQuickLink(args.id, args.url, args.text);
2482
        } catch (HelperServiceException hse) {
2483
          result.hse = hse;
2484
        }
2485
        return result;
2486
      }
2487
    }
2488
 
5055 varun.gupt 2489
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2490
      public getEmailsForNotificationsSent() {
2491
        super("getEmailsForNotificationsSent");
2492
      }
2493
 
2494
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2495
        return new getEmailsForNotificationsSent_args();
2496
      }
2497
 
2498
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2499
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2500
        try {
2501
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2502
        } catch (HelperServiceException hse) {
2503
          result.hse = hse;
2504
        }
2505
        return result;
2506
      }
2507
    }
2508
 
352 ashish 2509
  }
2510
 
3430 rajveer 2511
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2513
 
3430 rajveer 2514
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.STRING, (short)1);
2515
    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);
2516
    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);
2517
    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);
2518
    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);
2519
    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);
1395 varun.gupt 2520
 
3430 rajveer 2521
    private String emailTo; // required
2522
    private String emailFrom; // required
2523
    private String subject; // required
2524
    private String body; // required
2525
    private String source; // required
2526
    private String emailType; // required
1395 varun.gupt 2527
 
2528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2530
      EMAIL_TO((short)1, "emailTo"),
2531
      EMAIL_FROM((short)2, "emailFrom"),
2532
      SUBJECT((short)3, "subject"),
2533
      BODY((short)4, "body"),
2534
      SOURCE((short)5, "source"),
2535
      EMAIL_TYPE((short)6, "emailType");
2536
 
2537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2538
 
2539
      static {
2540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2541
          byName.put(field.getFieldName(), field);
2542
        }
2543
      }
2544
 
2545
      /**
2546
       * Find the _Fields constant that matches fieldId, or null if its not found.
2547
       */
2548
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2549
        switch(fieldId) {
2550
          case 1: // EMAIL_TO
2551
            return EMAIL_TO;
2552
          case 2: // EMAIL_FROM
2553
            return EMAIL_FROM;
2554
          case 3: // SUBJECT
2555
            return SUBJECT;
2556
          case 4: // BODY
2557
            return BODY;
2558
          case 5: // SOURCE
2559
            return SOURCE;
2560
          case 6: // EMAIL_TYPE
2561
            return EMAIL_TYPE;
2562
          default:
2563
            return null;
2564
        }
1395 varun.gupt 2565
      }
2566
 
2567
      /**
2568
       * Find the _Fields constant that matches fieldId, throwing an exception
2569
       * if it is not found.
2570
       */
2571
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2572
        _Fields fields = findByThriftId(fieldId);
2573
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2574
        return fields;
2575
      }
2576
 
2577
      /**
2578
       * Find the _Fields constant that matches name, or null if its not found.
2579
       */
2580
      public static _Fields findByName(String name) {
2581
        return byName.get(name);
2582
      }
2583
 
2584
      private final short _thriftId;
2585
      private final String _fieldName;
2586
 
2587
      _Fields(short thriftId, String fieldName) {
2588
        _thriftId = thriftId;
2589
        _fieldName = fieldName;
2590
      }
2591
 
2592
      public short getThriftFieldId() {
2593
        return _thriftId;
2594
      }
2595
 
2596
      public String getFieldName() {
2597
        return _fieldName;
2598
      }
2599
    }
2600
 
2601
    // isset id assignments
2602
 
3430 rajveer 2603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2604
    static {
3430 rajveer 2605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2606
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2608
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2610
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2611
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2612
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2614
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2616
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2617
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2618
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2619
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2620
    }
2621
 
2622
    public saveUserEmailForSending_args() {
2623
    }
2624
 
2625
    public saveUserEmailForSending_args(
2626
      String emailTo,
2627
      String emailFrom,
2628
      String subject,
2629
      String body,
2630
      String source,
2631
      String emailType)
2632
    {
2633
      this();
2634
      this.emailTo = emailTo;
2635
      this.emailFrom = emailFrom;
2636
      this.subject = subject;
2637
      this.body = body;
2638
      this.source = source;
2639
      this.emailType = emailType;
2640
    }
2641
 
2642
    /**
2643
     * Performs a deep copy on <i>other</i>.
2644
     */
2645
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2646
      if (other.isSetEmailTo()) {
2647
        this.emailTo = other.emailTo;
2648
      }
2649
      if (other.isSetEmailFrom()) {
2650
        this.emailFrom = other.emailFrom;
2651
      }
2652
      if (other.isSetSubject()) {
2653
        this.subject = other.subject;
2654
      }
2655
      if (other.isSetBody()) {
2656
        this.body = other.body;
2657
      }
2658
      if (other.isSetSource()) {
2659
        this.source = other.source;
2660
      }
2661
      if (other.isSetEmailType()) {
2662
        this.emailType = other.emailType;
2663
      }
2664
    }
2665
 
2666
    public saveUserEmailForSending_args deepCopy() {
2667
      return new saveUserEmailForSending_args(this);
2668
    }
2669
 
3430 rajveer 2670
    @Override
2671
    public void clear() {
2672
      this.emailTo = null;
2673
      this.emailFrom = null;
2674
      this.subject = null;
2675
      this.body = null;
2676
      this.source = null;
2677
      this.emailType = null;
1395 varun.gupt 2678
    }
2679
 
2680
    public String getEmailTo() {
2681
      return this.emailTo;
2682
    }
2683
 
3430 rajveer 2684
    public void setEmailTo(String emailTo) {
1395 varun.gupt 2685
      this.emailTo = emailTo;
2686
    }
2687
 
2688
    public void unsetEmailTo() {
2689
      this.emailTo = null;
2690
    }
2691
 
3430 rajveer 2692
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2693
    public boolean isSetEmailTo() {
2694
      return this.emailTo != null;
2695
    }
2696
 
2697
    public void setEmailToIsSet(boolean value) {
2698
      if (!value) {
2699
        this.emailTo = null;
2700
      }
2701
    }
2702
 
2703
    public String getEmailFrom() {
2704
      return this.emailFrom;
2705
    }
2706
 
3430 rajveer 2707
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2708
      this.emailFrom = emailFrom;
2709
    }
2710
 
2711
    public void unsetEmailFrom() {
2712
      this.emailFrom = null;
2713
    }
2714
 
3430 rajveer 2715
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2716
    public boolean isSetEmailFrom() {
2717
      return this.emailFrom != null;
2718
    }
2719
 
2720
    public void setEmailFromIsSet(boolean value) {
2721
      if (!value) {
2722
        this.emailFrom = null;
2723
      }
2724
    }
2725
 
2726
    public String getSubject() {
2727
      return this.subject;
2728
    }
2729
 
3430 rajveer 2730
    public void setSubject(String subject) {
1395 varun.gupt 2731
      this.subject = subject;
2732
    }
2733
 
2734
    public void unsetSubject() {
2735
      this.subject = null;
2736
    }
2737
 
3430 rajveer 2738
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2739
    public boolean isSetSubject() {
2740
      return this.subject != null;
2741
    }
2742
 
2743
    public void setSubjectIsSet(boolean value) {
2744
      if (!value) {
2745
        this.subject = null;
2746
      }
2747
    }
2748
 
2749
    public String getBody() {
2750
      return this.body;
2751
    }
2752
 
3430 rajveer 2753
    public void setBody(String body) {
1395 varun.gupt 2754
      this.body = body;
2755
    }
2756
 
2757
    public void unsetBody() {
2758
      this.body = null;
2759
    }
2760
 
3430 rajveer 2761
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2762
    public boolean isSetBody() {
2763
      return this.body != null;
2764
    }
2765
 
2766
    public void setBodyIsSet(boolean value) {
2767
      if (!value) {
2768
        this.body = null;
2769
      }
2770
    }
2771
 
2772
    public String getSource() {
2773
      return this.source;
2774
    }
2775
 
3430 rajveer 2776
    public void setSource(String source) {
1395 varun.gupt 2777
      this.source = source;
2778
    }
2779
 
2780
    public void unsetSource() {
2781
      this.source = null;
2782
    }
2783
 
3430 rajveer 2784
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2785
    public boolean isSetSource() {
2786
      return this.source != null;
2787
    }
2788
 
2789
    public void setSourceIsSet(boolean value) {
2790
      if (!value) {
2791
        this.source = null;
2792
      }
2793
    }
2794
 
2795
    public String getEmailType() {
2796
      return this.emailType;
2797
    }
2798
 
3430 rajveer 2799
    public void setEmailType(String emailType) {
1395 varun.gupt 2800
      this.emailType = emailType;
2801
    }
2802
 
2803
    public void unsetEmailType() {
2804
      this.emailType = null;
2805
    }
2806
 
3430 rajveer 2807
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2808
    public boolean isSetEmailType() {
2809
      return this.emailType != null;
2810
    }
2811
 
2812
    public void setEmailTypeIsSet(boolean value) {
2813
      if (!value) {
2814
        this.emailType = null;
2815
      }
2816
    }
2817
 
2818
    public void setFieldValue(_Fields field, Object value) {
2819
      switch (field) {
2820
      case EMAIL_TO:
2821
        if (value == null) {
2822
          unsetEmailTo();
2823
        } else {
2824
          setEmailTo((String)value);
2825
        }
2826
        break;
2827
 
2828
      case EMAIL_FROM:
2829
        if (value == null) {
2830
          unsetEmailFrom();
2831
        } else {
2832
          setEmailFrom((String)value);
2833
        }
2834
        break;
2835
 
2836
      case SUBJECT:
2837
        if (value == null) {
2838
          unsetSubject();
2839
        } else {
2840
          setSubject((String)value);
2841
        }
2842
        break;
2843
 
2844
      case BODY:
2845
        if (value == null) {
2846
          unsetBody();
2847
        } else {
2848
          setBody((String)value);
2849
        }
2850
        break;
2851
 
2852
      case SOURCE:
2853
        if (value == null) {
2854
          unsetSource();
2855
        } else {
2856
          setSource((String)value);
2857
        }
2858
        break;
2859
 
2860
      case EMAIL_TYPE:
2861
        if (value == null) {
2862
          unsetEmailType();
2863
        } else {
2864
          setEmailType((String)value);
2865
        }
2866
        break;
2867
 
2868
      }
2869
    }
2870
 
2871
    public Object getFieldValue(_Fields field) {
2872
      switch (field) {
2873
      case EMAIL_TO:
2874
        return getEmailTo();
2875
 
2876
      case EMAIL_FROM:
2877
        return getEmailFrom();
2878
 
2879
      case SUBJECT:
2880
        return getSubject();
2881
 
2882
      case BODY:
2883
        return getBody();
2884
 
2885
      case SOURCE:
2886
        return getSource();
2887
 
2888
      case EMAIL_TYPE:
2889
        return getEmailType();
2890
 
2891
      }
2892
      throw new IllegalStateException();
2893
    }
2894
 
3430 rajveer 2895
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2896
    public boolean isSet(_Fields field) {
2897
      if (field == null) {
2898
        throw new IllegalArgumentException();
2899
      }
1395 varun.gupt 2900
 
2901
      switch (field) {
2902
      case EMAIL_TO:
2903
        return isSetEmailTo();
2904
      case EMAIL_FROM:
2905
        return isSetEmailFrom();
2906
      case SUBJECT:
2907
        return isSetSubject();
2908
      case BODY:
2909
        return isSetBody();
2910
      case SOURCE:
2911
        return isSetSource();
2912
      case EMAIL_TYPE:
2913
        return isSetEmailType();
2914
      }
2915
      throw new IllegalStateException();
2916
    }
2917
 
2918
    @Override
2919
    public boolean equals(Object that) {
2920
      if (that == null)
2921
        return false;
2922
      if (that instanceof saveUserEmailForSending_args)
2923
        return this.equals((saveUserEmailForSending_args)that);
2924
      return false;
2925
    }
2926
 
2927
    public boolean equals(saveUserEmailForSending_args that) {
2928
      if (that == null)
2929
        return false;
2930
 
2931
      boolean this_present_emailTo = true && this.isSetEmailTo();
2932
      boolean that_present_emailTo = true && that.isSetEmailTo();
2933
      if (this_present_emailTo || that_present_emailTo) {
2934
        if (!(this_present_emailTo && that_present_emailTo))
2935
          return false;
2936
        if (!this.emailTo.equals(that.emailTo))
2937
          return false;
2938
      }
2939
 
2940
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
2941
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
2942
      if (this_present_emailFrom || that_present_emailFrom) {
2943
        if (!(this_present_emailFrom && that_present_emailFrom))
2944
          return false;
2945
        if (!this.emailFrom.equals(that.emailFrom))
2946
          return false;
2947
      }
2948
 
2949
      boolean this_present_subject = true && this.isSetSubject();
2950
      boolean that_present_subject = true && that.isSetSubject();
2951
      if (this_present_subject || that_present_subject) {
2952
        if (!(this_present_subject && that_present_subject))
2953
          return false;
2954
        if (!this.subject.equals(that.subject))
2955
          return false;
2956
      }
2957
 
2958
      boolean this_present_body = true && this.isSetBody();
2959
      boolean that_present_body = true && that.isSetBody();
2960
      if (this_present_body || that_present_body) {
2961
        if (!(this_present_body && that_present_body))
2962
          return false;
2963
        if (!this.body.equals(that.body))
2964
          return false;
2965
      }
2966
 
2967
      boolean this_present_source = true && this.isSetSource();
2968
      boolean that_present_source = true && that.isSetSource();
2969
      if (this_present_source || that_present_source) {
2970
        if (!(this_present_source && that_present_source))
2971
          return false;
2972
        if (!this.source.equals(that.source))
2973
          return false;
2974
      }
2975
 
2976
      boolean this_present_emailType = true && this.isSetEmailType();
2977
      boolean that_present_emailType = true && that.isSetEmailType();
2978
      if (this_present_emailType || that_present_emailType) {
2979
        if (!(this_present_emailType && that_present_emailType))
2980
          return false;
2981
        if (!this.emailType.equals(that.emailType))
2982
          return false;
2983
      }
2984
 
2985
      return true;
2986
    }
2987
 
2988
    @Override
2989
    public int hashCode() {
2990
      return 0;
2991
    }
2992
 
2993
    public int compareTo(saveUserEmailForSending_args other) {
2994
      if (!getClass().equals(other.getClass())) {
2995
        return getClass().getName().compareTo(other.getClass().getName());
2996
      }
2997
 
2998
      int lastComparison = 0;
2999
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3000
 
3430 rajveer 3001
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3002
      if (lastComparison != 0) {
3003
        return lastComparison;
3004
      }
3430 rajveer 3005
      if (isSetEmailTo()) {
3006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3007
        if (lastComparison != 0) {
3008
          return lastComparison;
3009
        }
1395 varun.gupt 3010
      }
3430 rajveer 3011
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3012
      if (lastComparison != 0) {
3013
        return lastComparison;
3014
      }
3430 rajveer 3015
      if (isSetEmailFrom()) {
3016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3017
        if (lastComparison != 0) {
3018
          return lastComparison;
3019
        }
1395 varun.gupt 3020
      }
3430 rajveer 3021
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3022
      if (lastComparison != 0) {
3023
        return lastComparison;
3024
      }
3430 rajveer 3025
      if (isSetSubject()) {
3026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3027
        if (lastComparison != 0) {
3028
          return lastComparison;
3029
        }
1395 varun.gupt 3030
      }
3430 rajveer 3031
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3032
      if (lastComparison != 0) {
3033
        return lastComparison;
3034
      }
3430 rajveer 3035
      if (isSetBody()) {
3036
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3037
        if (lastComparison != 0) {
3038
          return lastComparison;
3039
        }
1395 varun.gupt 3040
      }
3430 rajveer 3041
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3042
      if (lastComparison != 0) {
3043
        return lastComparison;
3044
      }
3430 rajveer 3045
      if (isSetSource()) {
3046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3047
        if (lastComparison != 0) {
3048
          return lastComparison;
3049
        }
1395 varun.gupt 3050
      }
3430 rajveer 3051
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3052
      if (lastComparison != 0) {
3053
        return lastComparison;
3054
      }
3430 rajveer 3055
      if (isSetEmailType()) {
3056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3057
        if (lastComparison != 0) {
3058
          return lastComparison;
3059
        }
1395 varun.gupt 3060
      }
3061
      return 0;
3062
    }
3063
 
3430 rajveer 3064
    public _Fields fieldForId(int fieldId) {
3065
      return _Fields.findByThriftId(fieldId);
3066
    }
3067
 
3068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3069
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3070
      iprot.readStructBegin();
3071
      while (true)
3072
      {
3073
        field = iprot.readFieldBegin();
3430 rajveer 3074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3075
          break;
3076
        }
3430 rajveer 3077
        switch (field.id) {
3078
          case 1: // EMAIL_TO
3079
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3080
              this.emailTo = iprot.readString();
3081
            } else { 
3082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3083
            }
3084
            break;
3085
          case 2: // EMAIL_FROM
3086
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3087
              this.emailFrom = iprot.readString();
3088
            } else { 
3089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3090
            }
3091
            break;
3092
          case 3: // SUBJECT
3093
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3094
              this.subject = iprot.readString();
3095
            } else { 
3096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3097
            }
3098
            break;
3099
          case 4: // BODY
3100
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3101
              this.body = iprot.readString();
3102
            } else { 
3103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3104
            }
3105
            break;
3106
          case 5: // SOURCE
3107
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3108
              this.source = iprot.readString();
3109
            } else { 
3110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3111
            }
3112
            break;
3113
          case 6: // EMAIL_TYPE
3114
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3115
              this.emailType = iprot.readString();
3116
            } else { 
3117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3118
            }
3119
            break;
3120
          default:
3121
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3122
        }
3430 rajveer 3123
        iprot.readFieldEnd();
1395 varun.gupt 3124
      }
3125
      iprot.readStructEnd();
3126
      validate();
3127
    }
3128
 
3430 rajveer 3129
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3130
      validate();
3131
 
3132
      oprot.writeStructBegin(STRUCT_DESC);
3133
      if (this.emailTo != null) {
3134
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
3135
        oprot.writeString(this.emailTo);
3136
        oprot.writeFieldEnd();
3137
      }
3138
      if (this.emailFrom != null) {
3139
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3140
        oprot.writeString(this.emailFrom);
3141
        oprot.writeFieldEnd();
3142
      }
3143
      if (this.subject != null) {
3144
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3145
        oprot.writeString(this.subject);
3146
        oprot.writeFieldEnd();
3147
      }
3148
      if (this.body != null) {
3149
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3150
        oprot.writeString(this.body);
3151
        oprot.writeFieldEnd();
3152
      }
3153
      if (this.source != null) {
3154
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3155
        oprot.writeString(this.source);
3156
        oprot.writeFieldEnd();
3157
      }
3158
      if (this.emailType != null) {
3159
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3160
        oprot.writeString(this.emailType);
3161
        oprot.writeFieldEnd();
3162
      }
3163
      oprot.writeFieldStop();
3164
      oprot.writeStructEnd();
3165
    }
3166
 
3167
    @Override
3168
    public String toString() {
3169
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3170
      boolean first = true;
3171
 
3172
      sb.append("emailTo:");
3173
      if (this.emailTo == null) {
3174
        sb.append("null");
3175
      } else {
3176
        sb.append(this.emailTo);
3177
      }
3178
      first = false;
3179
      if (!first) sb.append(", ");
3180
      sb.append("emailFrom:");
3181
      if (this.emailFrom == null) {
3182
        sb.append("null");
3183
      } else {
3184
        sb.append(this.emailFrom);
3185
      }
3186
      first = false;
3187
      if (!first) sb.append(", ");
3188
      sb.append("subject:");
3189
      if (this.subject == null) {
3190
        sb.append("null");
3191
      } else {
3192
        sb.append(this.subject);
3193
      }
3194
      first = false;
3195
      if (!first) sb.append(", ");
3196
      sb.append("body:");
3197
      if (this.body == null) {
3198
        sb.append("null");
3199
      } else {
3200
        sb.append(this.body);
3201
      }
3202
      first = false;
3203
      if (!first) sb.append(", ");
3204
      sb.append("source:");
3205
      if (this.source == null) {
3206
        sb.append("null");
3207
      } else {
3208
        sb.append(this.source);
3209
      }
3210
      first = false;
3211
      if (!first) sb.append(", ");
3212
      sb.append("emailType:");
3213
      if (this.emailType == null) {
3214
        sb.append("null");
3215
      } else {
3216
        sb.append(this.emailType);
3217
      }
3218
      first = false;
3219
      sb.append(")");
3220
      return sb.toString();
3221
    }
3222
 
3430 rajveer 3223
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3224
      // check for required fields
3225
    }
3226
 
3430 rajveer 3227
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3228
      try {
3229
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3230
      } catch (org.apache.thrift.TException te) {
3231
        throw new java.io.IOException(te);
3232
      }
3233
    }
3234
 
3235
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3236
      try {
3237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3238
      } catch (org.apache.thrift.TException te) {
3239
        throw new java.io.IOException(te);
3240
      }
3241
    }
3242
 
1395 varun.gupt 3243
  }
3244
 
3430 rajveer 3245
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3247
 
3430 rajveer 3248
    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);
3249
    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 3250
 
3430 rajveer 3251
    private long success; // required
3252
    private HelperServiceException se; // required
1395 varun.gupt 3253
 
3254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3255
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3256
      SUCCESS((short)0, "success"),
1395 varun.gupt 3257
      SE((short)1, "se");
3258
 
3259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3260
 
3261
      static {
3262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3263
          byName.put(field.getFieldName(), field);
3264
        }
3265
      }
3266
 
3267
      /**
3268
       * Find the _Fields constant that matches fieldId, or null if its not found.
3269
       */
3270
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3271
        switch(fieldId) {
3272
          case 0: // SUCCESS
3273
            return SUCCESS;
3274
          case 1: // SE
3275
            return SE;
3276
          default:
3277
            return null;
3278
        }
1395 varun.gupt 3279
      }
3280
 
3281
      /**
3282
       * Find the _Fields constant that matches fieldId, throwing an exception
3283
       * if it is not found.
3284
       */
3285
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3286
        _Fields fields = findByThriftId(fieldId);
3287
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3288
        return fields;
3289
      }
3290
 
3291
      /**
3292
       * Find the _Fields constant that matches name, or null if its not found.
3293
       */
3294
      public static _Fields findByName(String name) {
3295
        return byName.get(name);
3296
      }
3297
 
3298
      private final short _thriftId;
3299
      private final String _fieldName;
3300
 
3301
      _Fields(short thriftId, String fieldName) {
3302
        _thriftId = thriftId;
3303
        _fieldName = fieldName;
3304
      }
3305
 
3306
      public short getThriftFieldId() {
3307
        return _thriftId;
3308
      }
3309
 
3310
      public String getFieldName() {
3311
        return _fieldName;
3312
      }
3313
    }
3314
 
3315
    // isset id assignments
3206 mandeep.dh 3316
    private static final int __SUCCESS_ISSET_ID = 0;
3317
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3318
 
3430 rajveer 3319
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3320
    static {
3430 rajveer 3321
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3322
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3324
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3326
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3327
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3328
    }
3329
 
3330
    public saveUserEmailForSending_result() {
3331
    }
3332
 
3333
    public saveUserEmailForSending_result(
3206 mandeep.dh 3334
      long success,
1395 varun.gupt 3335
      HelperServiceException se)
3336
    {
3337
      this();
3206 mandeep.dh 3338
      this.success = success;
3339
      setSuccessIsSet(true);
1395 varun.gupt 3340
      this.se = se;
3341
    }
3342
 
3343
    /**
3344
     * Performs a deep copy on <i>other</i>.
3345
     */
3346
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3347
      __isset_bit_vector.clear();
3348
      __isset_bit_vector.or(other.__isset_bit_vector);
3349
      this.success = other.success;
1395 varun.gupt 3350
      if (other.isSetSe()) {
3351
        this.se = new HelperServiceException(other.se);
3352
      }
3353
    }
3354
 
3355
    public saveUserEmailForSending_result deepCopy() {
3356
      return new saveUserEmailForSending_result(this);
3357
    }
3358
 
3430 rajveer 3359
    @Override
3360
    public void clear() {
3361
      setSuccessIsSet(false);
3362
      this.success = 0;
3363
      this.se = null;
1395 varun.gupt 3364
    }
3365
 
3206 mandeep.dh 3366
    public long getSuccess() {
3367
      return this.success;
3368
    }
3369
 
3430 rajveer 3370
    public void setSuccess(long success) {
3206 mandeep.dh 3371
      this.success = success;
3372
      setSuccessIsSet(true);
3373
    }
3374
 
3375
    public void unsetSuccess() {
3376
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3377
    }
3378
 
3430 rajveer 3379
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3380
    public boolean isSetSuccess() {
3381
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3382
    }
3383
 
3384
    public void setSuccessIsSet(boolean value) {
3385
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3386
    }
3387
 
1395 varun.gupt 3388
    public HelperServiceException getSe() {
3389
      return this.se;
3390
    }
3391
 
3430 rajveer 3392
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3393
      this.se = se;
3394
    }
3395
 
3396
    public void unsetSe() {
3397
      this.se = null;
3398
    }
3399
 
3430 rajveer 3400
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3401
    public boolean isSetSe() {
3402
      return this.se != null;
3403
    }
3404
 
3405
    public void setSeIsSet(boolean value) {
3406
      if (!value) {
3407
        this.se = null;
3408
      }
3409
    }
3410
 
3411
    public void setFieldValue(_Fields field, Object value) {
3412
      switch (field) {
3206 mandeep.dh 3413
      case SUCCESS:
3414
        if (value == null) {
3415
          unsetSuccess();
3416
        } else {
3417
          setSuccess((Long)value);
3418
        }
3419
        break;
3420
 
1395 varun.gupt 3421
      case SE:
3422
        if (value == null) {
3423
          unsetSe();
3424
        } else {
3425
          setSe((HelperServiceException)value);
3426
        }
3427
        break;
3428
 
3429
      }
3430
    }
3431
 
3432
    public Object getFieldValue(_Fields field) {
3433
      switch (field) {
3206 mandeep.dh 3434
      case SUCCESS:
3430 rajveer 3435
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3436
 
1395 varun.gupt 3437
      case SE:
3438
        return getSe();
3439
 
3440
      }
3441
      throw new IllegalStateException();
3442
    }
3443
 
3430 rajveer 3444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3445
    public boolean isSet(_Fields field) {
3446
      if (field == null) {
3447
        throw new IllegalArgumentException();
3448
      }
1395 varun.gupt 3449
 
3450
      switch (field) {
3206 mandeep.dh 3451
      case SUCCESS:
3452
        return isSetSuccess();
1395 varun.gupt 3453
      case SE:
3454
        return isSetSe();
3455
      }
3456
      throw new IllegalStateException();
3457
    }
3458
 
3459
    @Override
3460
    public boolean equals(Object that) {
3461
      if (that == null)
3462
        return false;
3463
      if (that instanceof saveUserEmailForSending_result)
3464
        return this.equals((saveUserEmailForSending_result)that);
3465
      return false;
3466
    }
3467
 
3468
    public boolean equals(saveUserEmailForSending_result that) {
3469
      if (that == null)
3470
        return false;
3471
 
3206 mandeep.dh 3472
      boolean this_present_success = true;
3473
      boolean that_present_success = true;
3474
      if (this_present_success || that_present_success) {
3475
        if (!(this_present_success && that_present_success))
3476
          return false;
3477
        if (this.success != that.success)
3478
          return false;
3479
      }
3480
 
1395 varun.gupt 3481
      boolean this_present_se = true && this.isSetSe();
3482
      boolean that_present_se = true && that.isSetSe();
3483
      if (this_present_se || that_present_se) {
3484
        if (!(this_present_se && that_present_se))
3485
          return false;
3486
        if (!this.se.equals(that.se))
3487
          return false;
3488
      }
3489
 
3490
      return true;
3491
    }
3492
 
3493
    @Override
3494
    public int hashCode() {
3495
      return 0;
3496
    }
3497
 
3498
    public int compareTo(saveUserEmailForSending_result other) {
3499
      if (!getClass().equals(other.getClass())) {
3500
        return getClass().getName().compareTo(other.getClass().getName());
3501
      }
3502
 
3503
      int lastComparison = 0;
3504
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3505
 
3430 rajveer 3506
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3507
      if (lastComparison != 0) {
3508
        return lastComparison;
3509
      }
3430 rajveer 3510
      if (isSetSuccess()) {
3511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3512
        if (lastComparison != 0) {
3513
          return lastComparison;
3514
        }
3206 mandeep.dh 3515
      }
3430 rajveer 3516
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3517
      if (lastComparison != 0) {
3518
        return lastComparison;
3519
      }
3430 rajveer 3520
      if (isSetSe()) {
3521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3522
        if (lastComparison != 0) {
3523
          return lastComparison;
3524
        }
1395 varun.gupt 3525
      }
3526
      return 0;
3527
    }
3528
 
3430 rajveer 3529
    public _Fields fieldForId(int fieldId) {
3530
      return _Fields.findByThriftId(fieldId);
3531
    }
3532
 
3533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3534
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3535
      iprot.readStructBegin();
3536
      while (true)
3537
      {
3538
        field = iprot.readFieldBegin();
3430 rajveer 3539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3540
          break;
3541
        }
3430 rajveer 3542
        switch (field.id) {
3543
          case 0: // SUCCESS
3544
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3545
              this.success = iprot.readI64();
3546
              setSuccessIsSet(true);
3547
            } else { 
3548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3549
            }
3550
            break;
3551
          case 1: // SE
3552
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3553
              this.se = new HelperServiceException();
3554
              this.se.read(iprot);
3555
            } else { 
3556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3557
            }
3558
            break;
3559
          default:
3560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3561
        }
3430 rajveer 3562
        iprot.readFieldEnd();
1395 varun.gupt 3563
      }
3564
      iprot.readStructEnd();
3565
      validate();
3566
    }
3567
 
3430 rajveer 3568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3569
      oprot.writeStructBegin(STRUCT_DESC);
3570
 
3206 mandeep.dh 3571
      if (this.isSetSuccess()) {
3572
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3573
        oprot.writeI64(this.success);
3574
        oprot.writeFieldEnd();
3575
      } else if (this.isSetSe()) {
1395 varun.gupt 3576
        oprot.writeFieldBegin(SE_FIELD_DESC);
3577
        this.se.write(oprot);
3578
        oprot.writeFieldEnd();
3579
      }
3580
      oprot.writeFieldStop();
3581
      oprot.writeStructEnd();
3582
    }
3583
 
3584
    @Override
3585
    public String toString() {
3586
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3587
      boolean first = true;
3588
 
3206 mandeep.dh 3589
      sb.append("success:");
3590
      sb.append(this.success);
3591
      first = false;
3592
      if (!first) sb.append(", ");
1395 varun.gupt 3593
      sb.append("se:");
3594
      if (this.se == null) {
3595
        sb.append("null");
3596
      } else {
3597
        sb.append(this.se);
3598
      }
3599
      first = false;
3600
      sb.append(")");
3601
      return sb.toString();
3602
    }
3603
 
3430 rajveer 3604
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3605
      // check for required fields
3606
    }
3607
 
3430 rajveer 3608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3609
      try {
3610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3611
      } catch (org.apache.thrift.TException te) {
3612
        throw new java.io.IOException(te);
3613
      }
3614
    }
3615
 
3616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3617
      try {
3618
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3619
      } catch (org.apache.thrift.TException te) {
3620
        throw new java.io.IOException(te);
3621
      }
3622
    }
3623
 
1395 varun.gupt 3624
  }
3625
 
3430 rajveer 3626
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
3627
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 3628
 
3629
 
3630
 
3631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 3633
;
1422 varun.gupt 3634
 
3635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3636
 
3637
      static {
3638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3639
          byName.put(field.getFieldName(), field);
3640
        }
3641
      }
3642
 
3643
      /**
3644
       * Find the _Fields constant that matches fieldId, or null if its not found.
3645
       */
3646
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3647
        switch(fieldId) {
3648
          default:
3649
            return null;
3650
        }
1422 varun.gupt 3651
      }
3652
 
3653
      /**
3654
       * Find the _Fields constant that matches fieldId, throwing an exception
3655
       * if it is not found.
3656
       */
3657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3658
        _Fields fields = findByThriftId(fieldId);
3659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3660
        return fields;
3661
      }
3662
 
3663
      /**
3664
       * Find the _Fields constant that matches name, or null if its not found.
3665
       */
3666
      public static _Fields findByName(String name) {
3667
        return byName.get(name);
3668
      }
3669
 
3670
      private final short _thriftId;
3671
      private final String _fieldName;
3672
 
3673
      _Fields(short thriftId, String fieldName) {
3674
        _thriftId = thriftId;
3675
        _fieldName = fieldName;
3676
      }
3677
 
3678
      public short getThriftFieldId() {
3679
        return _thriftId;
3680
      }
3681
 
3682
      public String getFieldName() {
3683
        return _fieldName;
3684
      }
3685
    }
3430 rajveer 3686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3687
    static {
3430 rajveer 3688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 3691
    }
3692
 
3693
    public getEmailsToBeSent_args() {
3694
    }
3695
 
3696
    /**
3697
     * Performs a deep copy on <i>other</i>.
3698
     */
3699
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
3700
    }
3701
 
3702
    public getEmailsToBeSent_args deepCopy() {
3703
      return new getEmailsToBeSent_args(this);
3704
    }
3705
 
3430 rajveer 3706
    @Override
3707
    public void clear() {
1422 varun.gupt 3708
    }
3709
 
3710
    public void setFieldValue(_Fields field, Object value) {
3711
      switch (field) {
3712
      }
3713
    }
3714
 
3715
    public Object getFieldValue(_Fields field) {
3716
      switch (field) {
3717
      }
3718
      throw new IllegalStateException();
3719
    }
3720
 
3430 rajveer 3721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3722
    public boolean isSet(_Fields field) {
3723
      if (field == null) {
3724
        throw new IllegalArgumentException();
3725
      }
1422 varun.gupt 3726
 
3727
      switch (field) {
3728
      }
3729
      throw new IllegalStateException();
3730
    }
3731
 
3732
    @Override
3733
    public boolean equals(Object that) {
3734
      if (that == null)
3735
        return false;
3736
      if (that instanceof getEmailsToBeSent_args)
3737
        return this.equals((getEmailsToBeSent_args)that);
3738
      return false;
3739
    }
3740
 
3741
    public boolean equals(getEmailsToBeSent_args that) {
3742
      if (that == null)
3743
        return false;
3744
 
3745
      return true;
3746
    }
3747
 
3748
    @Override
3749
    public int hashCode() {
3750
      return 0;
3751
    }
3752
 
3753
    public int compareTo(getEmailsToBeSent_args other) {
3754
      if (!getClass().equals(other.getClass())) {
3755
        return getClass().getName().compareTo(other.getClass().getName());
3756
      }
3757
 
3758
      int lastComparison = 0;
3759
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
3760
 
3761
      return 0;
3762
    }
3763
 
3430 rajveer 3764
    public _Fields fieldForId(int fieldId) {
3765
      return _Fields.findByThriftId(fieldId);
3766
    }
3767
 
3768
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3769
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3770
      iprot.readStructBegin();
3771
      while (true)
3772
      {
3773
        field = iprot.readFieldBegin();
3430 rajveer 3774
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3775
          break;
3776
        }
3430 rajveer 3777
        switch (field.id) {
3778
          default:
3779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3780
        }
3430 rajveer 3781
        iprot.readFieldEnd();
1422 varun.gupt 3782
      }
3783
      iprot.readStructEnd();
3784
      validate();
3785
    }
3786
 
3430 rajveer 3787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3788
      validate();
3789
 
3790
      oprot.writeStructBegin(STRUCT_DESC);
3791
      oprot.writeFieldStop();
3792
      oprot.writeStructEnd();
3793
    }
3794
 
3795
    @Override
3796
    public String toString() {
3797
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
3798
      boolean first = true;
3799
 
3800
      sb.append(")");
3801
      return sb.toString();
3802
    }
3803
 
3430 rajveer 3804
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3805
      // check for required fields
3806
    }
3807
 
3430 rajveer 3808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3809
      try {
3810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3811
      } catch (org.apache.thrift.TException te) {
3812
        throw new java.io.IOException(te);
3813
      }
3814
    }
3815
 
3816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3817
      try {
3818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3819
      } catch (org.apache.thrift.TException te) {
3820
        throw new java.io.IOException(te);
3821
      }
3822
    }
3823
 
1422 varun.gupt 3824
  }
3825
 
3430 rajveer 3826
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
3827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 3828
 
3430 rajveer 3829
    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);
3830
    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 3831
 
3430 rajveer 3832
    private List<UserEmail> success; // required
3833
    private HelperServiceException se; // required
1422 varun.gupt 3834
 
3835
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3836
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3837
      SUCCESS((short)0, "success"),
3838
      SE((short)1, "se");
3839
 
3840
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3841
 
3842
      static {
3843
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3844
          byName.put(field.getFieldName(), field);
3845
        }
3846
      }
3847
 
3848
      /**
3849
       * Find the _Fields constant that matches fieldId, or null if its not found.
3850
       */
3851
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3852
        switch(fieldId) {
3853
          case 0: // SUCCESS
3854
            return SUCCESS;
3855
          case 1: // SE
3856
            return SE;
3857
          default:
3858
            return null;
3859
        }
1422 varun.gupt 3860
      }
3861
 
3862
      /**
3863
       * Find the _Fields constant that matches fieldId, throwing an exception
3864
       * if it is not found.
3865
       */
3866
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3867
        _Fields fields = findByThriftId(fieldId);
3868
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3869
        return fields;
3870
      }
3871
 
3872
      /**
3873
       * Find the _Fields constant that matches name, or null if its not found.
3874
       */
3875
      public static _Fields findByName(String name) {
3876
        return byName.get(name);
3877
      }
3878
 
3879
      private final short _thriftId;
3880
      private final String _fieldName;
3881
 
3882
      _Fields(short thriftId, String fieldName) {
3883
        _thriftId = thriftId;
3884
        _fieldName = fieldName;
3885
      }
3886
 
3887
      public short getThriftFieldId() {
3888
        return _thriftId;
3889
      }
3890
 
3891
      public String getFieldName() {
3892
        return _fieldName;
3893
      }
3894
    }
3895
 
3896
    // isset id assignments
3897
 
3430 rajveer 3898
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3899
    static {
3430 rajveer 3900
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3901
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3902
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3903
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
3904
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3905
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3906
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3907
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 3908
    }
3909
 
3910
    public getEmailsToBeSent_result() {
3911
    }
3912
 
3913
    public getEmailsToBeSent_result(
3914
      List<UserEmail> success,
3915
      HelperServiceException se)
3916
    {
3917
      this();
3918
      this.success = success;
3919
      this.se = se;
3920
    }
3921
 
3922
    /**
3923
     * Performs a deep copy on <i>other</i>.
3924
     */
3925
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
3926
      if (other.isSetSuccess()) {
3927
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
3928
        for (UserEmail other_element : other.success) {
3929
          __this__success.add(new UserEmail(other_element));
3930
        }
3931
        this.success = __this__success;
3932
      }
3933
      if (other.isSetSe()) {
3934
        this.se = new HelperServiceException(other.se);
3935
      }
3936
    }
3937
 
3938
    public getEmailsToBeSent_result deepCopy() {
3939
      return new getEmailsToBeSent_result(this);
3940
    }
3941
 
3430 rajveer 3942
    @Override
3943
    public void clear() {
3944
      this.success = null;
3945
      this.se = null;
1422 varun.gupt 3946
    }
3947
 
3948
    public int getSuccessSize() {
3949
      return (this.success == null) ? 0 : this.success.size();
3950
    }
3951
 
3952
    public java.util.Iterator<UserEmail> getSuccessIterator() {
3953
      return (this.success == null) ? null : this.success.iterator();
3954
    }
3955
 
3956
    public void addToSuccess(UserEmail elem) {
3957
      if (this.success == null) {
3958
        this.success = new ArrayList<UserEmail>();
3959
      }
3960
      this.success.add(elem);
3961
    }
3962
 
3963
    public List<UserEmail> getSuccess() {
3964
      return this.success;
3965
    }
3966
 
3430 rajveer 3967
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 3968
      this.success = success;
3969
    }
3970
 
3971
    public void unsetSuccess() {
3972
      this.success = null;
3973
    }
3974
 
3430 rajveer 3975
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3976
    public boolean isSetSuccess() {
3977
      return this.success != null;
3978
    }
3979
 
3980
    public void setSuccessIsSet(boolean value) {
3981
      if (!value) {
3982
        this.success = null;
3983
      }
3984
    }
3985
 
3986
    public HelperServiceException getSe() {
3987
      return this.se;
3988
    }
3989
 
3430 rajveer 3990
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3991
      this.se = se;
3992
    }
3993
 
3994
    public void unsetSe() {
3995
      this.se = null;
3996
    }
3997
 
3430 rajveer 3998
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3999
    public boolean isSetSe() {
4000
      return this.se != null;
4001
    }
4002
 
4003
    public void setSeIsSet(boolean value) {
4004
      if (!value) {
4005
        this.se = null;
4006
      }
4007
    }
4008
 
4009
    public void setFieldValue(_Fields field, Object value) {
4010
      switch (field) {
4011
      case SUCCESS:
4012
        if (value == null) {
4013
          unsetSuccess();
4014
        } else {
4015
          setSuccess((List<UserEmail>)value);
4016
        }
4017
        break;
4018
 
4019
      case SE:
4020
        if (value == null) {
4021
          unsetSe();
4022
        } else {
4023
          setSe((HelperServiceException)value);
4024
        }
4025
        break;
4026
 
4027
      }
4028
    }
4029
 
4030
    public Object getFieldValue(_Fields field) {
4031
      switch (field) {
4032
      case SUCCESS:
4033
        return getSuccess();
4034
 
4035
      case SE:
4036
        return getSe();
4037
 
4038
      }
4039
      throw new IllegalStateException();
4040
    }
4041
 
3430 rajveer 4042
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4043
    public boolean isSet(_Fields field) {
4044
      if (field == null) {
4045
        throw new IllegalArgumentException();
4046
      }
1422 varun.gupt 4047
 
4048
      switch (field) {
4049
      case SUCCESS:
4050
        return isSetSuccess();
4051
      case SE:
4052
        return isSetSe();
4053
      }
4054
      throw new IllegalStateException();
4055
    }
4056
 
4057
    @Override
4058
    public boolean equals(Object that) {
4059
      if (that == null)
4060
        return false;
4061
      if (that instanceof getEmailsToBeSent_result)
4062
        return this.equals((getEmailsToBeSent_result)that);
4063
      return false;
4064
    }
4065
 
4066
    public boolean equals(getEmailsToBeSent_result that) {
4067
      if (that == null)
4068
        return false;
4069
 
4070
      boolean this_present_success = true && this.isSetSuccess();
4071
      boolean that_present_success = true && that.isSetSuccess();
4072
      if (this_present_success || that_present_success) {
4073
        if (!(this_present_success && that_present_success))
4074
          return false;
4075
        if (!this.success.equals(that.success))
4076
          return false;
4077
      }
4078
 
4079
      boolean this_present_se = true && this.isSetSe();
4080
      boolean that_present_se = true && that.isSetSe();
4081
      if (this_present_se || that_present_se) {
4082
        if (!(this_present_se && that_present_se))
4083
          return false;
4084
        if (!this.se.equals(that.se))
4085
          return false;
4086
      }
4087
 
4088
      return true;
4089
    }
4090
 
4091
    @Override
4092
    public int hashCode() {
4093
      return 0;
4094
    }
4095
 
4096
    public int compareTo(getEmailsToBeSent_result other) {
4097
      if (!getClass().equals(other.getClass())) {
4098
        return getClass().getName().compareTo(other.getClass().getName());
4099
      }
4100
 
4101
      int lastComparison = 0;
4102
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4103
 
3430 rajveer 4104
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4105
      if (lastComparison != 0) {
4106
        return lastComparison;
4107
      }
3430 rajveer 4108
      if (isSetSuccess()) {
4109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4110
        if (lastComparison != 0) {
4111
          return lastComparison;
4112
        }
1422 varun.gupt 4113
      }
3430 rajveer 4114
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4115
      if (lastComparison != 0) {
4116
        return lastComparison;
4117
      }
3430 rajveer 4118
      if (isSetSe()) {
4119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4120
        if (lastComparison != 0) {
4121
          return lastComparison;
4122
        }
1422 varun.gupt 4123
      }
4124
      return 0;
4125
    }
4126
 
3430 rajveer 4127
    public _Fields fieldForId(int fieldId) {
4128
      return _Fields.findByThriftId(fieldId);
4129
    }
4130
 
4131
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4132
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4133
      iprot.readStructBegin();
4134
      while (true)
4135
      {
4136
        field = iprot.readFieldBegin();
3430 rajveer 4137
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4138
          break;
4139
        }
3430 rajveer 4140
        switch (field.id) {
4141
          case 0: // SUCCESS
4142
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4143
              {
4144
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
4145
                this.success = new ArrayList<UserEmail>(_list8.size);
4146
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1422 varun.gupt 4147
                {
3430 rajveer 4148
                  UserEmail _elem10; // required
4149
                  _elem10 = new UserEmail();
4150
                  _elem10.read(iprot);
4151
                  this.success.add(_elem10);
1422 varun.gupt 4152
                }
3430 rajveer 4153
                iprot.readListEnd();
1422 varun.gupt 4154
              }
3430 rajveer 4155
            } else { 
4156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4157
            }
4158
            break;
4159
          case 1: // SE
4160
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4161
              this.se = new HelperServiceException();
4162
              this.se.read(iprot);
4163
            } else { 
4164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4165
            }
4166
            break;
4167
          default:
4168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4169
        }
3430 rajveer 4170
        iprot.readFieldEnd();
1422 varun.gupt 4171
      }
4172
      iprot.readStructEnd();
4173
      validate();
4174
    }
4175
 
3430 rajveer 4176
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4177
      oprot.writeStructBegin(STRUCT_DESC);
4178
 
4179
      if (this.isSetSuccess()) {
4180
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4181
        {
3430 rajveer 4182
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1422 varun.gupt 4183
          for (UserEmail _iter11 : this.success)
4184
          {
4185
            _iter11.write(oprot);
4186
          }
4187
          oprot.writeListEnd();
4188
        }
4189
        oprot.writeFieldEnd();
4190
      } else if (this.isSetSe()) {
4191
        oprot.writeFieldBegin(SE_FIELD_DESC);
4192
        this.se.write(oprot);
4193
        oprot.writeFieldEnd();
4194
      }
4195
      oprot.writeFieldStop();
4196
      oprot.writeStructEnd();
4197
    }
4198
 
4199
    @Override
4200
    public String toString() {
4201
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4202
      boolean first = true;
4203
 
4204
      sb.append("success:");
4205
      if (this.success == null) {
4206
        sb.append("null");
4207
      } else {
4208
        sb.append(this.success);
4209
      }
4210
      first = false;
4211
      if (!first) sb.append(", ");
4212
      sb.append("se:");
4213
      if (this.se == null) {
4214
        sb.append("null");
4215
      } else {
4216
        sb.append(this.se);
4217
      }
4218
      first = false;
4219
      sb.append(")");
4220
      return sb.toString();
4221
    }
4222
 
3430 rajveer 4223
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4224
      // check for required fields
4225
    }
4226
 
3430 rajveer 4227
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4228
      try {
4229
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4230
      } catch (org.apache.thrift.TException te) {
4231
        throw new java.io.IOException(te);
4232
      }
4233
    }
4234
 
4235
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4236
      try {
4237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4238
      } catch (org.apache.thrift.TException te) {
4239
        throw new java.io.IOException(te);
4240
      }
4241
    }
4242
 
1422 varun.gupt 4243
  }
4244
 
3430 rajveer 4245
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4247
 
3430 rajveer 4248
    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 4249
 
3430 rajveer 4250
    private long emailId; // required
1422 varun.gupt 4251
 
4252
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4253
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4254
      EMAIL_ID((short)1, "emailId");
4255
 
4256
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4257
 
4258
      static {
4259
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4260
          byName.put(field.getFieldName(), field);
4261
        }
4262
      }
4263
 
4264
      /**
4265
       * Find the _Fields constant that matches fieldId, or null if its not found.
4266
       */
4267
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4268
        switch(fieldId) {
4269
          case 1: // EMAIL_ID
4270
            return EMAIL_ID;
4271
          default:
4272
            return null;
4273
        }
1422 varun.gupt 4274
      }
4275
 
4276
      /**
4277
       * Find the _Fields constant that matches fieldId, throwing an exception
4278
       * if it is not found.
4279
       */
4280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4281
        _Fields fields = findByThriftId(fieldId);
4282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4283
        return fields;
4284
      }
4285
 
4286
      /**
4287
       * Find the _Fields constant that matches name, or null if its not found.
4288
       */
4289
      public static _Fields findByName(String name) {
4290
        return byName.get(name);
4291
      }
4292
 
4293
      private final short _thriftId;
4294
      private final String _fieldName;
4295
 
4296
      _Fields(short thriftId, String fieldName) {
4297
        _thriftId = thriftId;
4298
        _fieldName = fieldName;
4299
      }
4300
 
4301
      public short getThriftFieldId() {
4302
        return _thriftId;
4303
      }
4304
 
4305
      public String getFieldName() {
4306
        return _fieldName;
4307
      }
4308
    }
4309
 
4310
    // isset id assignments
4311
    private static final int __EMAILID_ISSET_ID = 0;
4312
    private BitSet __isset_bit_vector = new BitSet(1);
4313
 
3430 rajveer 4314
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4315
    static {
3430 rajveer 4316
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4317
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4319
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4320
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4321
    }
4322
 
4323
    public markEmailAsSent_args() {
4324
    }
4325
 
4326
    public markEmailAsSent_args(
4327
      long emailId)
4328
    {
4329
      this();
4330
      this.emailId = emailId;
4331
      setEmailIdIsSet(true);
4332
    }
4333
 
4334
    /**
4335
     * Performs a deep copy on <i>other</i>.
4336
     */
4337
    public markEmailAsSent_args(markEmailAsSent_args other) {
4338
      __isset_bit_vector.clear();
4339
      __isset_bit_vector.or(other.__isset_bit_vector);
4340
      this.emailId = other.emailId;
4341
    }
4342
 
4343
    public markEmailAsSent_args deepCopy() {
4344
      return new markEmailAsSent_args(this);
4345
    }
4346
 
3430 rajveer 4347
    @Override
4348
    public void clear() {
4349
      setEmailIdIsSet(false);
4350
      this.emailId = 0;
1422 varun.gupt 4351
    }
4352
 
4353
    public long getEmailId() {
4354
      return this.emailId;
4355
    }
4356
 
3430 rajveer 4357
    public void setEmailId(long emailId) {
1422 varun.gupt 4358
      this.emailId = emailId;
4359
      setEmailIdIsSet(true);
4360
    }
4361
 
4362
    public void unsetEmailId() {
4363
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4364
    }
4365
 
3430 rajveer 4366
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4367
    public boolean isSetEmailId() {
4368
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4369
    }
4370
 
4371
    public void setEmailIdIsSet(boolean value) {
4372
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4373
    }
4374
 
4375
    public void setFieldValue(_Fields field, Object value) {
4376
      switch (field) {
4377
      case EMAIL_ID:
4378
        if (value == null) {
4379
          unsetEmailId();
4380
        } else {
4381
          setEmailId((Long)value);
4382
        }
4383
        break;
4384
 
4385
      }
4386
    }
4387
 
4388
    public Object getFieldValue(_Fields field) {
4389
      switch (field) {
4390
      case EMAIL_ID:
3430 rajveer 4391
        return Long.valueOf(getEmailId());
1422 varun.gupt 4392
 
4393
      }
4394
      throw new IllegalStateException();
4395
    }
4396
 
3430 rajveer 4397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4398
    public boolean isSet(_Fields field) {
4399
      if (field == null) {
4400
        throw new IllegalArgumentException();
4401
      }
1422 varun.gupt 4402
 
4403
      switch (field) {
4404
      case EMAIL_ID:
4405
        return isSetEmailId();
4406
      }
4407
      throw new IllegalStateException();
4408
    }
4409
 
4410
    @Override
4411
    public boolean equals(Object that) {
4412
      if (that == null)
4413
        return false;
4414
      if (that instanceof markEmailAsSent_args)
4415
        return this.equals((markEmailAsSent_args)that);
4416
      return false;
4417
    }
4418
 
4419
    public boolean equals(markEmailAsSent_args that) {
4420
      if (that == null)
4421
        return false;
4422
 
4423
      boolean this_present_emailId = true;
4424
      boolean that_present_emailId = true;
4425
      if (this_present_emailId || that_present_emailId) {
4426
        if (!(this_present_emailId && that_present_emailId))
4427
          return false;
4428
        if (this.emailId != that.emailId)
4429
          return false;
4430
      }
4431
 
4432
      return true;
4433
    }
4434
 
4435
    @Override
4436
    public int hashCode() {
4437
      return 0;
4438
    }
4439
 
4440
    public int compareTo(markEmailAsSent_args other) {
4441
      if (!getClass().equals(other.getClass())) {
4442
        return getClass().getName().compareTo(other.getClass().getName());
4443
      }
4444
 
4445
      int lastComparison = 0;
4446
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4447
 
3430 rajveer 4448
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4449
      if (lastComparison != 0) {
4450
        return lastComparison;
4451
      }
3430 rajveer 4452
      if (isSetEmailId()) {
4453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4454
        if (lastComparison != 0) {
4455
          return lastComparison;
4456
        }
1422 varun.gupt 4457
      }
4458
      return 0;
4459
    }
4460
 
3430 rajveer 4461
    public _Fields fieldForId(int fieldId) {
4462
      return _Fields.findByThriftId(fieldId);
4463
    }
4464
 
4465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4466
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4467
      iprot.readStructBegin();
4468
      while (true)
4469
      {
4470
        field = iprot.readFieldBegin();
3430 rajveer 4471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4472
          break;
4473
        }
3430 rajveer 4474
        switch (field.id) {
4475
          case 1: // EMAIL_ID
4476
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4477
              this.emailId = iprot.readI64();
4478
              setEmailIdIsSet(true);
4479
            } else { 
4480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4481
            }
4482
            break;
4483
          default:
4484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4485
        }
3430 rajveer 4486
        iprot.readFieldEnd();
1422 varun.gupt 4487
      }
4488
      iprot.readStructEnd();
4489
      validate();
4490
    }
4491
 
3430 rajveer 4492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4493
      validate();
4494
 
4495
      oprot.writeStructBegin(STRUCT_DESC);
4496
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4497
      oprot.writeI64(this.emailId);
4498
      oprot.writeFieldEnd();
4499
      oprot.writeFieldStop();
4500
      oprot.writeStructEnd();
4501
    }
4502
 
4503
    @Override
4504
    public String toString() {
4505
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4506
      boolean first = true;
4507
 
4508
      sb.append("emailId:");
4509
      sb.append(this.emailId);
4510
      first = false;
4511
      sb.append(")");
4512
      return sb.toString();
4513
    }
4514
 
3430 rajveer 4515
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4516
      // check for required fields
4517
    }
4518
 
3430 rajveer 4519
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4520
      try {
4521
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4522
      } catch (org.apache.thrift.TException te) {
4523
        throw new java.io.IOException(te);
4524
      }
4525
    }
4526
 
4527
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4528
      try {
4529
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4530
        __isset_bit_vector = new BitSet(1);
4531
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4532
      } catch (org.apache.thrift.TException te) {
4533
        throw new java.io.IOException(te);
4534
      }
4535
    }
4536
 
1422 varun.gupt 4537
  }
4538
 
3430 rajveer 4539
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4540
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4541
 
3430 rajveer 4542
    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 4543
 
3430 rajveer 4544
    private HelperServiceException se; // required
1422 varun.gupt 4545
 
4546
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4547
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4548
      SE((short)1, "se");
4549
 
4550
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4551
 
4552
      static {
4553
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4554
          byName.put(field.getFieldName(), field);
4555
        }
4556
      }
4557
 
4558
      /**
4559
       * Find the _Fields constant that matches fieldId, or null if its not found.
4560
       */
4561
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4562
        switch(fieldId) {
4563
          case 1: // SE
4564
            return SE;
4565
          default:
4566
            return null;
4567
        }
1422 varun.gupt 4568
      }
4569
 
4570
      /**
4571
       * Find the _Fields constant that matches fieldId, throwing an exception
4572
       * if it is not found.
4573
       */
4574
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4575
        _Fields fields = findByThriftId(fieldId);
4576
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4577
        return fields;
4578
      }
4579
 
4580
      /**
4581
       * Find the _Fields constant that matches name, or null if its not found.
4582
       */
4583
      public static _Fields findByName(String name) {
4584
        return byName.get(name);
4585
      }
4586
 
4587
      private final short _thriftId;
4588
      private final String _fieldName;
4589
 
4590
      _Fields(short thriftId, String fieldName) {
4591
        _thriftId = thriftId;
4592
        _fieldName = fieldName;
4593
      }
4594
 
4595
      public short getThriftFieldId() {
4596
        return _thriftId;
4597
      }
4598
 
4599
      public String getFieldName() {
4600
        return _fieldName;
4601
      }
4602
    }
4603
 
4604
    // isset id assignments
4605
 
3430 rajveer 4606
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4607
    static {
3430 rajveer 4608
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4609
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4613
    }
4614
 
4615
    public markEmailAsSent_result() {
4616
    }
4617
 
4618
    public markEmailAsSent_result(
4619
      HelperServiceException se)
4620
    {
4621
      this();
4622
      this.se = se;
4623
    }
4624
 
4625
    /**
4626
     * Performs a deep copy on <i>other</i>.
4627
     */
4628
    public markEmailAsSent_result(markEmailAsSent_result other) {
4629
      if (other.isSetSe()) {
4630
        this.se = new HelperServiceException(other.se);
4631
      }
4632
    }
4633
 
4634
    public markEmailAsSent_result deepCopy() {
4635
      return new markEmailAsSent_result(this);
4636
    }
4637
 
3430 rajveer 4638
    @Override
4639
    public void clear() {
4640
      this.se = null;
1422 varun.gupt 4641
    }
4642
 
4643
    public HelperServiceException getSe() {
4644
      return this.se;
4645
    }
4646
 
3430 rajveer 4647
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4648
      this.se = se;
4649
    }
4650
 
4651
    public void unsetSe() {
4652
      this.se = null;
4653
    }
4654
 
3430 rajveer 4655
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4656
    public boolean isSetSe() {
4657
      return this.se != null;
4658
    }
4659
 
4660
    public void setSeIsSet(boolean value) {
4661
      if (!value) {
4662
        this.se = null;
4663
      }
4664
    }
4665
 
4666
    public void setFieldValue(_Fields field, Object value) {
4667
      switch (field) {
4668
      case SE:
4669
        if (value == null) {
4670
          unsetSe();
4671
        } else {
4672
          setSe((HelperServiceException)value);
4673
        }
4674
        break;
4675
 
4676
      }
4677
    }
4678
 
4679
    public Object getFieldValue(_Fields field) {
4680
      switch (field) {
4681
      case SE:
4682
        return getSe();
4683
 
4684
      }
4685
      throw new IllegalStateException();
4686
    }
4687
 
3430 rajveer 4688
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4689
    public boolean isSet(_Fields field) {
4690
      if (field == null) {
4691
        throw new IllegalArgumentException();
4692
      }
1422 varun.gupt 4693
 
4694
      switch (field) {
4695
      case SE:
4696
        return isSetSe();
4697
      }
4698
      throw new IllegalStateException();
4699
    }
4700
 
4701
    @Override
4702
    public boolean equals(Object that) {
4703
      if (that == null)
4704
        return false;
4705
      if (that instanceof markEmailAsSent_result)
4706
        return this.equals((markEmailAsSent_result)that);
4707
      return false;
4708
    }
4709
 
4710
    public boolean equals(markEmailAsSent_result that) {
4711
      if (that == null)
4712
        return false;
4713
 
4714
      boolean this_present_se = true && this.isSetSe();
4715
      boolean that_present_se = true && that.isSetSe();
4716
      if (this_present_se || that_present_se) {
4717
        if (!(this_present_se && that_present_se))
4718
          return false;
4719
        if (!this.se.equals(that.se))
4720
          return false;
4721
      }
4722
 
4723
      return true;
4724
    }
4725
 
4726
    @Override
4727
    public int hashCode() {
4728
      return 0;
4729
    }
4730
 
4731
    public int compareTo(markEmailAsSent_result other) {
4732
      if (!getClass().equals(other.getClass())) {
4733
        return getClass().getName().compareTo(other.getClass().getName());
4734
      }
4735
 
4736
      int lastComparison = 0;
4737
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
4738
 
3430 rajveer 4739
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4740
      if (lastComparison != 0) {
4741
        return lastComparison;
4742
      }
3430 rajveer 4743
      if (isSetSe()) {
4744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4745
        if (lastComparison != 0) {
4746
          return lastComparison;
4747
        }
1422 varun.gupt 4748
      }
4749
      return 0;
4750
    }
4751
 
3430 rajveer 4752
    public _Fields fieldForId(int fieldId) {
4753
      return _Fields.findByThriftId(fieldId);
4754
    }
4755
 
4756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4757
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4758
      iprot.readStructBegin();
4759
      while (true)
4760
      {
4761
        field = iprot.readFieldBegin();
3430 rajveer 4762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4763
          break;
4764
        }
3430 rajveer 4765
        switch (field.id) {
4766
          case 1: // SE
4767
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4768
              this.se = new HelperServiceException();
4769
              this.se.read(iprot);
4770
            } else { 
4771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4772
            }
4773
            break;
4774
          default:
4775
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4776
        }
3430 rajveer 4777
        iprot.readFieldEnd();
1422 varun.gupt 4778
      }
4779
      iprot.readStructEnd();
4780
      validate();
4781
    }
4782
 
3430 rajveer 4783
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4784
      oprot.writeStructBegin(STRUCT_DESC);
4785
 
4786
      if (this.isSetSe()) {
4787
        oprot.writeFieldBegin(SE_FIELD_DESC);
4788
        this.se.write(oprot);
4789
        oprot.writeFieldEnd();
4790
      }
4791
      oprot.writeFieldStop();
4792
      oprot.writeStructEnd();
4793
    }
4794
 
4795
    @Override
4796
    public String toString() {
4797
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
4798
      boolean first = true;
4799
 
4800
      sb.append("se:");
4801
      if (this.se == null) {
4802
        sb.append("null");
4803
      } else {
4804
        sb.append(this.se);
4805
      }
4806
      first = false;
4807
      sb.append(")");
4808
      return sb.toString();
4809
    }
4810
 
3430 rajveer 4811
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4812
      // check for required fields
4813
    }
4814
 
3430 rajveer 4815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4816
      try {
4817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4818
      } catch (org.apache.thrift.TException te) {
4819
        throw new java.io.IOException(te);
4820
      }
4821
    }
4822
 
4823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4824
      try {
4825
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4826
      } catch (org.apache.thrift.TException te) {
4827
        throw new java.io.IOException(te);
4828
      }
4829
    }
4830
 
1422 varun.gupt 4831
  }
4832
 
3430 rajveer 4833
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
4834
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 4835
 
3430 rajveer 4836
    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 4837
 
3430 rajveer 4838
    private Mail mail; // required
352 ashish 4839
 
4840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4842
      MAIL((short)1, "mail");
4843
 
4844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4845
 
4846
      static {
4847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4848
          byName.put(field.getFieldName(), field);
4849
        }
4850
      }
4851
 
4852
      /**
4853
       * Find the _Fields constant that matches fieldId, or null if its not found.
4854
       */
4855
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4856
        switch(fieldId) {
4857
          case 1: // MAIL
4858
            return MAIL;
4859
          default:
4860
            return null;
4861
        }
352 ashish 4862
      }
4863
 
4864
      /**
4865
       * Find the _Fields constant that matches fieldId, throwing an exception
4866
       * if it is not found.
4867
       */
4868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4869
        _Fields fields = findByThriftId(fieldId);
4870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4871
        return fields;
4872
      }
4873
 
4874
      /**
4875
       * Find the _Fields constant that matches name, or null if its not found.
4876
       */
4877
      public static _Fields findByName(String name) {
4878
        return byName.get(name);
4879
      }
4880
 
4881
      private final short _thriftId;
4882
      private final String _fieldName;
4883
 
4884
      _Fields(short thriftId, String fieldName) {
4885
        _thriftId = thriftId;
4886
        _fieldName = fieldName;
4887
      }
4888
 
4889
      public short getThriftFieldId() {
4890
        return _thriftId;
4891
      }
4892
 
4893
      public String getFieldName() {
4894
        return _fieldName;
4895
      }
4896
    }
4897
 
4898
    // isset id assignments
4899
 
3430 rajveer 4900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4901
    static {
3430 rajveer 4902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4903
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4904
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
4905
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4906
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 4907
    }
4908
 
4909
    public sendMail_args() {
4910
    }
4911
 
4912
    public sendMail_args(
4913
      Mail mail)
4914
    {
4915
      this();
4916
      this.mail = mail;
4917
    }
4918
 
4919
    /**
4920
     * Performs a deep copy on <i>other</i>.
4921
     */
4922
    public sendMail_args(sendMail_args other) {
4923
      if (other.isSetMail()) {
4924
        this.mail = new Mail(other.mail);
4925
      }
4926
    }
4927
 
4928
    public sendMail_args deepCopy() {
4929
      return new sendMail_args(this);
4930
    }
4931
 
3430 rajveer 4932
    @Override
4933
    public void clear() {
4934
      this.mail = null;
352 ashish 4935
    }
4936
 
4937
    public Mail getMail() {
4938
      return this.mail;
4939
    }
4940
 
3430 rajveer 4941
    public void setMail(Mail mail) {
352 ashish 4942
      this.mail = mail;
4943
    }
4944
 
4945
    public void unsetMail() {
4946
      this.mail = null;
4947
    }
4948
 
3430 rajveer 4949
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 4950
    public boolean isSetMail() {
4951
      return this.mail != null;
4952
    }
4953
 
4954
    public void setMailIsSet(boolean value) {
4955
      if (!value) {
4956
        this.mail = null;
4957
      }
4958
    }
4959
 
4960
    public void setFieldValue(_Fields field, Object value) {
4961
      switch (field) {
4962
      case MAIL:
4963
        if (value == null) {
4964
          unsetMail();
4965
        } else {
4966
          setMail((Mail)value);
4967
        }
4968
        break;
4969
 
4970
      }
4971
    }
4972
 
4973
    public Object getFieldValue(_Fields field) {
4974
      switch (field) {
4975
      case MAIL:
4976
        return getMail();
4977
 
4978
      }
4979
      throw new IllegalStateException();
4980
    }
4981
 
3430 rajveer 4982
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4983
    public boolean isSet(_Fields field) {
4984
      if (field == null) {
4985
        throw new IllegalArgumentException();
4986
      }
352 ashish 4987
 
4988
      switch (field) {
4989
      case MAIL:
4990
        return isSetMail();
4991
      }
4992
      throw new IllegalStateException();
4993
    }
4994
 
4995
    @Override
4996
    public boolean equals(Object that) {
4997
      if (that == null)
4998
        return false;
4999
      if (that instanceof sendMail_args)
5000
        return this.equals((sendMail_args)that);
5001
      return false;
5002
    }
5003
 
5004
    public boolean equals(sendMail_args that) {
5005
      if (that == null)
5006
        return false;
5007
 
5008
      boolean this_present_mail = true && this.isSetMail();
5009
      boolean that_present_mail = true && that.isSetMail();
5010
      if (this_present_mail || that_present_mail) {
5011
        if (!(this_present_mail && that_present_mail))
5012
          return false;
5013
        if (!this.mail.equals(that.mail))
5014
          return false;
5015
      }
5016
 
5017
      return true;
5018
    }
5019
 
5020
    @Override
5021
    public int hashCode() {
5022
      return 0;
5023
    }
5024
 
5025
    public int compareTo(sendMail_args other) {
5026
      if (!getClass().equals(other.getClass())) {
5027
        return getClass().getName().compareTo(other.getClass().getName());
5028
      }
5029
 
5030
      int lastComparison = 0;
5031
      sendMail_args typedOther = (sendMail_args)other;
5032
 
3430 rajveer 5033
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5034
      if (lastComparison != 0) {
5035
        return lastComparison;
5036
      }
3430 rajveer 5037
      if (isSetMail()) {
5038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5039
        if (lastComparison != 0) {
5040
          return lastComparison;
5041
        }
352 ashish 5042
      }
5043
      return 0;
5044
    }
5045
 
3430 rajveer 5046
    public _Fields fieldForId(int fieldId) {
5047
      return _Fields.findByThriftId(fieldId);
5048
    }
5049
 
5050
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5051
      org.apache.thrift.protocol.TField field;
352 ashish 5052
      iprot.readStructBegin();
5053
      while (true)
5054
      {
5055
        field = iprot.readFieldBegin();
3430 rajveer 5056
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5057
          break;
5058
        }
3430 rajveer 5059
        switch (field.id) {
5060
          case 1: // MAIL
5061
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5062
              this.mail = new Mail();
5063
              this.mail.read(iprot);
5064
            } else { 
5065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5066
            }
5067
            break;
5068
          default:
5069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5070
        }
3430 rajveer 5071
        iprot.readFieldEnd();
352 ashish 5072
      }
5073
      iprot.readStructEnd();
5074
      validate();
5075
    }
5076
 
3430 rajveer 5077
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5078
      validate();
5079
 
5080
      oprot.writeStructBegin(STRUCT_DESC);
5081
      if (this.mail != null) {
5082
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5083
        this.mail.write(oprot);
5084
        oprot.writeFieldEnd();
5085
      }
5086
      oprot.writeFieldStop();
5087
      oprot.writeStructEnd();
5088
    }
5089
 
5090
    @Override
5091
    public String toString() {
5092
      StringBuilder sb = new StringBuilder("sendMail_args(");
5093
      boolean first = true;
5094
 
5095
      sb.append("mail:");
5096
      if (this.mail == null) {
5097
        sb.append("null");
5098
      } else {
5099
        sb.append(this.mail);
5100
      }
5101
      first = false;
5102
      sb.append(")");
5103
      return sb.toString();
5104
    }
5105
 
3430 rajveer 5106
    public void validate() throws org.apache.thrift.TException {
352 ashish 5107
      // check for required fields
5108
    }
5109
 
3430 rajveer 5110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5111
      try {
5112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5113
      } catch (org.apache.thrift.TException te) {
5114
        throw new java.io.IOException(te);
5115
      }
5116
    }
5117
 
5118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5119
      try {
5120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5121
      } catch (org.apache.thrift.TException te) {
5122
        throw new java.io.IOException(te);
5123
      }
5124
    }
5125
 
352 ashish 5126
  }
5127
 
3430 rajveer 5128
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5130
 
3430 rajveer 5131
    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 5132
 
3430 rajveer 5133
    private HelperServiceException se; // required
352 ashish 5134
 
5135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5137
      SE((short)1, "se");
5138
 
5139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5140
 
5141
      static {
5142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5143
          byName.put(field.getFieldName(), field);
5144
        }
5145
      }
5146
 
5147
      /**
5148
       * Find the _Fields constant that matches fieldId, or null if its not found.
5149
       */
5150
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5151
        switch(fieldId) {
5152
          case 1: // SE
5153
            return SE;
5154
          default:
5155
            return null;
5156
        }
352 ashish 5157
      }
5158
 
5159
      /**
5160
       * Find the _Fields constant that matches fieldId, throwing an exception
5161
       * if it is not found.
5162
       */
5163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5164
        _Fields fields = findByThriftId(fieldId);
5165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5166
        return fields;
5167
      }
5168
 
5169
      /**
5170
       * Find the _Fields constant that matches name, or null if its not found.
5171
       */
5172
      public static _Fields findByName(String name) {
5173
        return byName.get(name);
5174
      }
5175
 
5176
      private final short _thriftId;
5177
      private final String _fieldName;
5178
 
5179
      _Fields(short thriftId, String fieldName) {
5180
        _thriftId = thriftId;
5181
        _fieldName = fieldName;
5182
      }
5183
 
5184
      public short getThriftFieldId() {
5185
        return _thriftId;
5186
      }
5187
 
5188
      public String getFieldName() {
5189
        return _fieldName;
5190
      }
5191
    }
5192
 
5193
    // isset id assignments
5194
 
3430 rajveer 5195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5196
    static {
3430 rajveer 5197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5198
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5199
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5202
    }
5203
 
5204
    public sendMail_result() {
5205
    }
5206
 
5207
    public sendMail_result(
5208
      HelperServiceException se)
5209
    {
5210
      this();
5211
      this.se = se;
5212
    }
5213
 
5214
    /**
5215
     * Performs a deep copy on <i>other</i>.
5216
     */
5217
    public sendMail_result(sendMail_result other) {
5218
      if (other.isSetSe()) {
5219
        this.se = new HelperServiceException(other.se);
5220
      }
5221
    }
5222
 
5223
    public sendMail_result deepCopy() {
5224
      return new sendMail_result(this);
5225
    }
5226
 
3430 rajveer 5227
    @Override
5228
    public void clear() {
5229
      this.se = null;
352 ashish 5230
    }
5231
 
5232
    public HelperServiceException getSe() {
5233
      return this.se;
5234
    }
5235
 
3430 rajveer 5236
    public void setSe(HelperServiceException se) {
352 ashish 5237
      this.se = se;
5238
    }
5239
 
5240
    public void unsetSe() {
5241
      this.se = null;
5242
    }
5243
 
3430 rajveer 5244
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5245
    public boolean isSetSe() {
5246
      return this.se != null;
5247
    }
5248
 
5249
    public void setSeIsSet(boolean value) {
5250
      if (!value) {
5251
        this.se = null;
5252
      }
5253
    }
5254
 
5255
    public void setFieldValue(_Fields field, Object value) {
5256
      switch (field) {
5257
      case SE:
5258
        if (value == null) {
5259
          unsetSe();
5260
        } else {
5261
          setSe((HelperServiceException)value);
5262
        }
5263
        break;
5264
 
5265
      }
5266
    }
5267
 
5268
    public Object getFieldValue(_Fields field) {
5269
      switch (field) {
5270
      case SE:
5271
        return getSe();
5272
 
5273
      }
5274
      throw new IllegalStateException();
5275
    }
5276
 
3430 rajveer 5277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5278
    public boolean isSet(_Fields field) {
5279
      if (field == null) {
5280
        throw new IllegalArgumentException();
5281
      }
352 ashish 5282
 
5283
      switch (field) {
5284
      case SE:
5285
        return isSetSe();
5286
      }
5287
      throw new IllegalStateException();
5288
    }
5289
 
5290
    @Override
5291
    public boolean equals(Object that) {
5292
      if (that == null)
5293
        return false;
5294
      if (that instanceof sendMail_result)
5295
        return this.equals((sendMail_result)that);
5296
      return false;
5297
    }
5298
 
5299
    public boolean equals(sendMail_result that) {
5300
      if (that == null)
5301
        return false;
5302
 
5303
      boolean this_present_se = true && this.isSetSe();
5304
      boolean that_present_se = true && that.isSetSe();
5305
      if (this_present_se || that_present_se) {
5306
        if (!(this_present_se && that_present_se))
5307
          return false;
5308
        if (!this.se.equals(that.se))
5309
          return false;
5310
      }
5311
 
5312
      return true;
5313
    }
5314
 
5315
    @Override
5316
    public int hashCode() {
5317
      return 0;
5318
    }
5319
 
5320
    public int compareTo(sendMail_result other) {
5321
      if (!getClass().equals(other.getClass())) {
5322
        return getClass().getName().compareTo(other.getClass().getName());
5323
      }
5324
 
5325
      int lastComparison = 0;
5326
      sendMail_result typedOther = (sendMail_result)other;
5327
 
3430 rajveer 5328
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5329
      if (lastComparison != 0) {
5330
        return lastComparison;
5331
      }
3430 rajveer 5332
      if (isSetSe()) {
5333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5334
        if (lastComparison != 0) {
5335
          return lastComparison;
5336
        }
352 ashish 5337
      }
5338
      return 0;
5339
    }
5340
 
3430 rajveer 5341
    public _Fields fieldForId(int fieldId) {
5342
      return _Fields.findByThriftId(fieldId);
5343
    }
5344
 
5345
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5346
      org.apache.thrift.protocol.TField field;
352 ashish 5347
      iprot.readStructBegin();
5348
      while (true)
5349
      {
5350
        field = iprot.readFieldBegin();
3430 rajveer 5351
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5352
          break;
5353
        }
3430 rajveer 5354
        switch (field.id) {
5355
          case 1: // SE
5356
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5357
              this.se = new HelperServiceException();
5358
              this.se.read(iprot);
5359
            } else { 
5360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5361
            }
5362
            break;
5363
          default:
5364
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5365
        }
3430 rajveer 5366
        iprot.readFieldEnd();
352 ashish 5367
      }
5368
      iprot.readStructEnd();
5369
      validate();
5370
    }
5371
 
3430 rajveer 5372
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5373
      oprot.writeStructBegin(STRUCT_DESC);
5374
 
5375
      if (this.isSetSe()) {
5376
        oprot.writeFieldBegin(SE_FIELD_DESC);
5377
        this.se.write(oprot);
5378
        oprot.writeFieldEnd();
5379
      }
5380
      oprot.writeFieldStop();
5381
      oprot.writeStructEnd();
5382
    }
5383
 
5384
    @Override
5385
    public String toString() {
5386
      StringBuilder sb = new StringBuilder("sendMail_result(");
5387
      boolean first = true;
5388
 
5389
      sb.append("se:");
5390
      if (this.se == null) {
5391
        sb.append("null");
5392
      } else {
5393
        sb.append(this.se);
5394
      }
5395
      first = false;
5396
      sb.append(")");
5397
      return sb.toString();
5398
    }
5399
 
3430 rajveer 5400
    public void validate() throws org.apache.thrift.TException {
352 ashish 5401
      // check for required fields
5402
    }
5403
 
3430 rajveer 5404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5405
      try {
5406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5407
      } catch (org.apache.thrift.TException te) {
5408
        throw new java.io.IOException(te);
5409
      }
5410
    }
5411
 
5412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5413
      try {
5414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5415
      } catch (org.apache.thrift.TException te) {
5416
        throw new java.io.IOException(te);
5417
      }
5418
    }
5419
 
352 ashish 5420
  }
5421
 
3430 rajveer 5422
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5424
 
3430 rajveer 5425
    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 5426
 
3430 rajveer 5427
    private TextMessage message; // required
352 ashish 5428
 
5429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5431
      MESSAGE((short)1, "message");
5432
 
5433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5434
 
5435
      static {
5436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5437
          byName.put(field.getFieldName(), field);
5438
        }
5439
      }
5440
 
5441
      /**
5442
       * Find the _Fields constant that matches fieldId, or null if its not found.
5443
       */
5444
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5445
        switch(fieldId) {
5446
          case 1: // MESSAGE
5447
            return MESSAGE;
5448
          default:
5449
            return null;
5450
        }
352 ashish 5451
      }
5452
 
5453
      /**
5454
       * Find the _Fields constant that matches fieldId, throwing an exception
5455
       * if it is not found.
5456
       */
5457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5458
        _Fields fields = findByThriftId(fieldId);
5459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5460
        return fields;
5461
      }
5462
 
5463
      /**
5464
       * Find the _Fields constant that matches name, or null if its not found.
5465
       */
5466
      public static _Fields findByName(String name) {
5467
        return byName.get(name);
5468
      }
5469
 
5470
      private final short _thriftId;
5471
      private final String _fieldName;
5472
 
5473
      _Fields(short thriftId, String fieldName) {
5474
        _thriftId = thriftId;
5475
        _fieldName = fieldName;
5476
      }
5477
 
5478
      public short getThriftFieldId() {
5479
        return _thriftId;
5480
      }
5481
 
5482
      public String getFieldName() {
5483
        return _fieldName;
5484
      }
5485
    }
5486
 
5487
    // isset id assignments
5488
 
3430 rajveer 5489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5490
    static {
3430 rajveer 5491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5492
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5493
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5494
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5495
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5496
    }
5497
 
5498
    public sendText_args() {
5499
    }
5500
 
5501
    public sendText_args(
5502
      TextMessage message)
5503
    {
5504
      this();
5505
      this.message = message;
5506
    }
5507
 
5508
    /**
5509
     * Performs a deep copy on <i>other</i>.
5510
     */
5511
    public sendText_args(sendText_args other) {
5512
      if (other.isSetMessage()) {
5513
        this.message = new TextMessage(other.message);
5514
      }
5515
    }
5516
 
5517
    public sendText_args deepCopy() {
5518
      return new sendText_args(this);
5519
    }
5520
 
3430 rajveer 5521
    @Override
5522
    public void clear() {
5523
      this.message = null;
352 ashish 5524
    }
5525
 
5526
    public TextMessage getMessage() {
5527
      return this.message;
5528
    }
5529
 
3430 rajveer 5530
    public void setMessage(TextMessage message) {
352 ashish 5531
      this.message = message;
5532
    }
5533
 
5534
    public void unsetMessage() {
5535
      this.message = null;
5536
    }
5537
 
3430 rajveer 5538
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5539
    public boolean isSetMessage() {
5540
      return this.message != null;
5541
    }
5542
 
5543
    public void setMessageIsSet(boolean value) {
5544
      if (!value) {
5545
        this.message = null;
5546
      }
5547
    }
5548
 
5549
    public void setFieldValue(_Fields field, Object value) {
5550
      switch (field) {
5551
      case MESSAGE:
5552
        if (value == null) {
5553
          unsetMessage();
5554
        } else {
5555
          setMessage((TextMessage)value);
5556
        }
5557
        break;
5558
 
5559
      }
5560
    }
5561
 
5562
    public Object getFieldValue(_Fields field) {
5563
      switch (field) {
5564
      case MESSAGE:
5565
        return getMessage();
5566
 
5567
      }
5568
      throw new IllegalStateException();
5569
    }
5570
 
3430 rajveer 5571
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5572
    public boolean isSet(_Fields field) {
5573
      if (field == null) {
5574
        throw new IllegalArgumentException();
5575
      }
352 ashish 5576
 
5577
      switch (field) {
5578
      case MESSAGE:
5579
        return isSetMessage();
5580
      }
5581
      throw new IllegalStateException();
5582
    }
5583
 
5584
    @Override
5585
    public boolean equals(Object that) {
5586
      if (that == null)
5587
        return false;
5588
      if (that instanceof sendText_args)
5589
        return this.equals((sendText_args)that);
5590
      return false;
5591
    }
5592
 
5593
    public boolean equals(sendText_args that) {
5594
      if (that == null)
5595
        return false;
5596
 
5597
      boolean this_present_message = true && this.isSetMessage();
5598
      boolean that_present_message = true && that.isSetMessage();
5599
      if (this_present_message || that_present_message) {
5600
        if (!(this_present_message && that_present_message))
5601
          return false;
5602
        if (!this.message.equals(that.message))
5603
          return false;
5604
      }
5605
 
5606
      return true;
5607
    }
5608
 
5609
    @Override
5610
    public int hashCode() {
5611
      return 0;
5612
    }
5613
 
5614
    public int compareTo(sendText_args other) {
5615
      if (!getClass().equals(other.getClass())) {
5616
        return getClass().getName().compareTo(other.getClass().getName());
5617
      }
5618
 
5619
      int lastComparison = 0;
5620
      sendText_args typedOther = (sendText_args)other;
5621
 
3430 rajveer 5622
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5623
      if (lastComparison != 0) {
5624
        return lastComparison;
5625
      }
3430 rajveer 5626
      if (isSetMessage()) {
5627
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5628
        if (lastComparison != 0) {
5629
          return lastComparison;
5630
        }
352 ashish 5631
      }
5632
      return 0;
5633
    }
5634
 
3430 rajveer 5635
    public _Fields fieldForId(int fieldId) {
5636
      return _Fields.findByThriftId(fieldId);
5637
    }
5638
 
5639
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5640
      org.apache.thrift.protocol.TField field;
352 ashish 5641
      iprot.readStructBegin();
5642
      while (true)
5643
      {
5644
        field = iprot.readFieldBegin();
3430 rajveer 5645
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5646
          break;
5647
        }
3430 rajveer 5648
        switch (field.id) {
5649
          case 1: // MESSAGE
5650
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5651
              this.message = new TextMessage();
5652
              this.message.read(iprot);
5653
            } else { 
5654
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5655
            }
5656
            break;
5657
          default:
5658
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5659
        }
3430 rajveer 5660
        iprot.readFieldEnd();
352 ashish 5661
      }
5662
      iprot.readStructEnd();
5663
      validate();
5664
    }
5665
 
3430 rajveer 5666
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5667
      validate();
5668
 
5669
      oprot.writeStructBegin(STRUCT_DESC);
5670
      if (this.message != null) {
5671
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5672
        this.message.write(oprot);
5673
        oprot.writeFieldEnd();
5674
      }
5675
      oprot.writeFieldStop();
5676
      oprot.writeStructEnd();
5677
    }
5678
 
5679
    @Override
5680
    public String toString() {
5681
      StringBuilder sb = new StringBuilder("sendText_args(");
5682
      boolean first = true;
5683
 
5684
      sb.append("message:");
5685
      if (this.message == null) {
5686
        sb.append("null");
5687
      } else {
5688
        sb.append(this.message);
5689
      }
5690
      first = false;
5691
      sb.append(")");
5692
      return sb.toString();
5693
    }
5694
 
3430 rajveer 5695
    public void validate() throws org.apache.thrift.TException {
352 ashish 5696
      // check for required fields
5697
    }
5698
 
3430 rajveer 5699
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5700
      try {
5701
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5702
      } catch (org.apache.thrift.TException te) {
5703
        throw new java.io.IOException(te);
5704
      }
5705
    }
5706
 
5707
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5708
      try {
5709
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5710
      } catch (org.apache.thrift.TException te) {
5711
        throw new java.io.IOException(te);
5712
      }
5713
    }
5714
 
352 ashish 5715
  }
5716
 
3430 rajveer 5717
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
5718
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 5719
 
3430 rajveer 5720
    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 5721
 
3430 rajveer 5722
    private HelperServiceException se; // required
352 ashish 5723
 
5724
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5725
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5726
      SE((short)1, "se");
5727
 
5728
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5729
 
5730
      static {
5731
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5732
          byName.put(field.getFieldName(), field);
5733
        }
5734
      }
5735
 
5736
      /**
5737
       * Find the _Fields constant that matches fieldId, or null if its not found.
5738
       */
5739
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5740
        switch(fieldId) {
5741
          case 1: // SE
5742
            return SE;
5743
          default:
5744
            return null;
5745
        }
352 ashish 5746
      }
5747
 
5748
      /**
5749
       * Find the _Fields constant that matches fieldId, throwing an exception
5750
       * if it is not found.
5751
       */
5752
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5753
        _Fields fields = findByThriftId(fieldId);
5754
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5755
        return fields;
5756
      }
5757
 
5758
      /**
5759
       * Find the _Fields constant that matches name, or null if its not found.
5760
       */
5761
      public static _Fields findByName(String name) {
5762
        return byName.get(name);
5763
      }
5764
 
5765
      private final short _thriftId;
5766
      private final String _fieldName;
5767
 
5768
      _Fields(short thriftId, String fieldName) {
5769
        _thriftId = thriftId;
5770
        _fieldName = fieldName;
5771
      }
5772
 
5773
      public short getThriftFieldId() {
5774
        return _thriftId;
5775
      }
5776
 
5777
      public String getFieldName() {
5778
        return _fieldName;
5779
      }
5780
    }
5781
 
5782
    // isset id assignments
5783
 
3430 rajveer 5784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5785
    static {
3430 rajveer 5786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5787
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 5791
    }
5792
 
5793
    public sendText_result() {
5794
    }
5795
 
5796
    public sendText_result(
5797
      HelperServiceException se)
5798
    {
5799
      this();
5800
      this.se = se;
5801
    }
5802
 
5803
    /**
5804
     * Performs a deep copy on <i>other</i>.
5805
     */
5806
    public sendText_result(sendText_result other) {
5807
      if (other.isSetSe()) {
5808
        this.se = new HelperServiceException(other.se);
5809
      }
5810
    }
5811
 
5812
    public sendText_result deepCopy() {
5813
      return new sendText_result(this);
5814
    }
5815
 
3430 rajveer 5816
    @Override
5817
    public void clear() {
5818
      this.se = null;
352 ashish 5819
    }
5820
 
5821
    public HelperServiceException getSe() {
5822
      return this.se;
5823
    }
5824
 
3430 rajveer 5825
    public void setSe(HelperServiceException se) {
352 ashish 5826
      this.se = se;
5827
    }
5828
 
5829
    public void unsetSe() {
5830
      this.se = null;
5831
    }
5832
 
3430 rajveer 5833
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5834
    public boolean isSetSe() {
5835
      return this.se != null;
5836
    }
5837
 
5838
    public void setSeIsSet(boolean value) {
5839
      if (!value) {
5840
        this.se = null;
5841
      }
5842
    }
5843
 
5844
    public void setFieldValue(_Fields field, Object value) {
5845
      switch (field) {
5846
      case SE:
5847
        if (value == null) {
5848
          unsetSe();
5849
        } else {
5850
          setSe((HelperServiceException)value);
5851
        }
5852
        break;
5853
 
5854
      }
5855
    }
5856
 
5857
    public Object getFieldValue(_Fields field) {
5858
      switch (field) {
5859
      case SE:
5860
        return getSe();
5861
 
5862
      }
5863
      throw new IllegalStateException();
5864
    }
5865
 
3430 rajveer 5866
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5867
    public boolean isSet(_Fields field) {
5868
      if (field == null) {
5869
        throw new IllegalArgumentException();
5870
      }
352 ashish 5871
 
5872
      switch (field) {
5873
      case SE:
5874
        return isSetSe();
5875
      }
5876
      throw new IllegalStateException();
5877
    }
5878
 
5879
    @Override
5880
    public boolean equals(Object that) {
5881
      if (that == null)
5882
        return false;
5883
      if (that instanceof sendText_result)
5884
        return this.equals((sendText_result)that);
5885
      return false;
5886
    }
5887
 
5888
    public boolean equals(sendText_result that) {
5889
      if (that == null)
5890
        return false;
5891
 
5892
      boolean this_present_se = true && this.isSetSe();
5893
      boolean that_present_se = true && that.isSetSe();
5894
      if (this_present_se || that_present_se) {
5895
        if (!(this_present_se && that_present_se))
5896
          return false;
5897
        if (!this.se.equals(that.se))
5898
          return false;
5899
      }
5900
 
5901
      return true;
5902
    }
5903
 
5904
    @Override
5905
    public int hashCode() {
5906
      return 0;
5907
    }
5908
 
5909
    public int compareTo(sendText_result other) {
5910
      if (!getClass().equals(other.getClass())) {
5911
        return getClass().getName().compareTo(other.getClass().getName());
5912
      }
5913
 
5914
      int lastComparison = 0;
5915
      sendText_result typedOther = (sendText_result)other;
5916
 
3430 rajveer 5917
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5918
      if (lastComparison != 0) {
5919
        return lastComparison;
5920
      }
3430 rajveer 5921
      if (isSetSe()) {
5922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5923
        if (lastComparison != 0) {
5924
          return lastComparison;
5925
        }
352 ashish 5926
      }
5927
      return 0;
5928
    }
5929
 
3430 rajveer 5930
    public _Fields fieldForId(int fieldId) {
5931
      return _Fields.findByThriftId(fieldId);
5932
    }
5933
 
5934
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5935
      org.apache.thrift.protocol.TField field;
352 ashish 5936
      iprot.readStructBegin();
5937
      while (true)
5938
      {
5939
        field = iprot.readFieldBegin();
3430 rajveer 5940
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5941
          break;
5942
        }
3430 rajveer 5943
        switch (field.id) {
5944
          case 1: // SE
5945
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5946
              this.se = new HelperServiceException();
5947
              this.se.read(iprot);
5948
            } else { 
5949
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5950
            }
5951
            break;
5952
          default:
5953
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5954
        }
3430 rajveer 5955
        iprot.readFieldEnd();
352 ashish 5956
      }
5957
      iprot.readStructEnd();
5958
      validate();
5959
    }
5960
 
3430 rajveer 5961
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5962
      oprot.writeStructBegin(STRUCT_DESC);
5963
 
5964
      if (this.isSetSe()) {
5965
        oprot.writeFieldBegin(SE_FIELD_DESC);
5966
        this.se.write(oprot);
5967
        oprot.writeFieldEnd();
5968
      }
5969
      oprot.writeFieldStop();
5970
      oprot.writeStructEnd();
5971
    }
5972
 
5973
    @Override
5974
    public String toString() {
5975
      StringBuilder sb = new StringBuilder("sendText_result(");
5976
      boolean first = true;
5977
 
5978
      sb.append("se:");
5979
      if (this.se == null) {
5980
        sb.append("null");
5981
      } else {
5982
        sb.append(this.se);
5983
      }
5984
      first = false;
5985
      sb.append(")");
5986
      return sb.toString();
5987
    }
5988
 
3430 rajveer 5989
    public void validate() throws org.apache.thrift.TException {
352 ashish 5990
      // check for required fields
5991
    }
5992
 
3430 rajveer 5993
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5994
      try {
5995
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5996
      } catch (org.apache.thrift.TException te) {
5997
        throw new java.io.IOException(te);
5998
      }
5999
    }
6000
 
6001
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6002
      try {
6003
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6004
      } catch (org.apache.thrift.TException te) {
6005
        throw new java.io.IOException(te);
6006
      }
6007
    }
6008
 
352 ashish 6009
  }
6010
 
3430 rajveer 6011
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6012
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6013
 
3430 rajveer 6014
    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 6015
 
3430 rajveer 6016
    private Message message; // required
352 ashish 6017
 
6018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6020
      MESSAGE((short)1, "message");
6021
 
6022
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6023
 
6024
      static {
6025
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6026
          byName.put(field.getFieldName(), field);
6027
        }
6028
      }
6029
 
6030
      /**
6031
       * Find the _Fields constant that matches fieldId, or null if its not found.
6032
       */
6033
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6034
        switch(fieldId) {
6035
          case 1: // MESSAGE
6036
            return MESSAGE;
6037
          default:
6038
            return null;
6039
        }
352 ashish 6040
      }
6041
 
6042
      /**
6043
       * Find the _Fields constant that matches fieldId, throwing an exception
6044
       * if it is not found.
6045
       */
6046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6047
        _Fields fields = findByThriftId(fieldId);
6048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6049
        return fields;
6050
      }
6051
 
6052
      /**
6053
       * Find the _Fields constant that matches name, or null if its not found.
6054
       */
6055
      public static _Fields findByName(String name) {
6056
        return byName.get(name);
6057
      }
6058
 
6059
      private final short _thriftId;
6060
      private final String _fieldName;
6061
 
6062
      _Fields(short thriftId, String fieldName) {
6063
        _thriftId = thriftId;
6064
        _fieldName = fieldName;
6065
      }
6066
 
6067
      public short getThriftFieldId() {
6068
        return _thriftId;
6069
      }
6070
 
6071
      public String getFieldName() {
6072
        return _fieldName;
6073
      }
6074
    }
6075
 
6076
    // isset id assignments
6077
 
3430 rajveer 6078
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6079
    static {
3430 rajveer 6080
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6081
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6082
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6083
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6084
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6085
    }
6086
 
6087
    public addMessage_args() {
6088
    }
6089
 
6090
    public addMessage_args(
6091
      Message message)
6092
    {
6093
      this();
6094
      this.message = message;
6095
    }
6096
 
6097
    /**
6098
     * Performs a deep copy on <i>other</i>.
6099
     */
6100
    public addMessage_args(addMessage_args other) {
6101
      if (other.isSetMessage()) {
6102
        this.message = new Message(other.message);
6103
      }
6104
    }
6105
 
6106
    public addMessage_args deepCopy() {
6107
      return new addMessage_args(this);
6108
    }
6109
 
3430 rajveer 6110
    @Override
6111
    public void clear() {
6112
      this.message = null;
352 ashish 6113
    }
6114
 
6115
    public Message getMessage() {
6116
      return this.message;
6117
    }
6118
 
3430 rajveer 6119
    public void setMessage(Message message) {
352 ashish 6120
      this.message = message;
6121
    }
6122
 
6123
    public void unsetMessage() {
6124
      this.message = null;
6125
    }
6126
 
3430 rajveer 6127
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6128
    public boolean isSetMessage() {
6129
      return this.message != null;
6130
    }
6131
 
6132
    public void setMessageIsSet(boolean value) {
6133
      if (!value) {
6134
        this.message = null;
6135
      }
6136
    }
6137
 
6138
    public void setFieldValue(_Fields field, Object value) {
6139
      switch (field) {
6140
      case MESSAGE:
6141
        if (value == null) {
6142
          unsetMessage();
6143
        } else {
6144
          setMessage((Message)value);
6145
        }
6146
        break;
6147
 
6148
      }
6149
    }
6150
 
6151
    public Object getFieldValue(_Fields field) {
6152
      switch (field) {
6153
      case MESSAGE:
6154
        return getMessage();
6155
 
6156
      }
6157
      throw new IllegalStateException();
6158
    }
6159
 
3430 rajveer 6160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6161
    public boolean isSet(_Fields field) {
6162
      if (field == null) {
6163
        throw new IllegalArgumentException();
6164
      }
352 ashish 6165
 
6166
      switch (field) {
6167
      case MESSAGE:
6168
        return isSetMessage();
6169
      }
6170
      throw new IllegalStateException();
6171
    }
6172
 
6173
    @Override
6174
    public boolean equals(Object that) {
6175
      if (that == null)
6176
        return false;
6177
      if (that instanceof addMessage_args)
6178
        return this.equals((addMessage_args)that);
6179
      return false;
6180
    }
6181
 
6182
    public boolean equals(addMessage_args that) {
6183
      if (that == null)
6184
        return false;
6185
 
6186
      boolean this_present_message = true && this.isSetMessage();
6187
      boolean that_present_message = true && that.isSetMessage();
6188
      if (this_present_message || that_present_message) {
6189
        if (!(this_present_message && that_present_message))
6190
          return false;
6191
        if (!this.message.equals(that.message))
6192
          return false;
6193
      }
6194
 
6195
      return true;
6196
    }
6197
 
6198
    @Override
6199
    public int hashCode() {
6200
      return 0;
6201
    }
6202
 
6203
    public int compareTo(addMessage_args other) {
6204
      if (!getClass().equals(other.getClass())) {
6205
        return getClass().getName().compareTo(other.getClass().getName());
6206
      }
6207
 
6208
      int lastComparison = 0;
6209
      addMessage_args typedOther = (addMessage_args)other;
6210
 
3430 rajveer 6211
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6212
      if (lastComparison != 0) {
6213
        return lastComparison;
6214
      }
3430 rajveer 6215
      if (isSetMessage()) {
6216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6217
        if (lastComparison != 0) {
6218
          return lastComparison;
6219
        }
352 ashish 6220
      }
6221
      return 0;
6222
    }
6223
 
3430 rajveer 6224
    public _Fields fieldForId(int fieldId) {
6225
      return _Fields.findByThriftId(fieldId);
6226
    }
6227
 
6228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6229
      org.apache.thrift.protocol.TField field;
352 ashish 6230
      iprot.readStructBegin();
6231
      while (true)
6232
      {
6233
        field = iprot.readFieldBegin();
3430 rajveer 6234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6235
          break;
6236
        }
3430 rajveer 6237
        switch (field.id) {
6238
          case 1: // MESSAGE
6239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6240
              this.message = new Message();
6241
              this.message.read(iprot);
6242
            } else { 
6243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6244
            }
6245
            break;
6246
          default:
6247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6248
        }
3430 rajveer 6249
        iprot.readFieldEnd();
352 ashish 6250
      }
6251
      iprot.readStructEnd();
6252
      validate();
6253
    }
6254
 
3430 rajveer 6255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6256
      validate();
6257
 
6258
      oprot.writeStructBegin(STRUCT_DESC);
6259
      if (this.message != null) {
6260
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6261
        this.message.write(oprot);
6262
        oprot.writeFieldEnd();
6263
      }
6264
      oprot.writeFieldStop();
6265
      oprot.writeStructEnd();
6266
    }
6267
 
6268
    @Override
6269
    public String toString() {
6270
      StringBuilder sb = new StringBuilder("addMessage_args(");
6271
      boolean first = true;
6272
 
6273
      sb.append("message:");
6274
      if (this.message == null) {
6275
        sb.append("null");
6276
      } else {
6277
        sb.append(this.message);
6278
      }
6279
      first = false;
6280
      sb.append(")");
6281
      return sb.toString();
6282
    }
6283
 
3430 rajveer 6284
    public void validate() throws org.apache.thrift.TException {
352 ashish 6285
      // check for required fields
6286
    }
6287
 
3430 rajveer 6288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6289
      try {
6290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6291
      } catch (org.apache.thrift.TException te) {
6292
        throw new java.io.IOException(te);
6293
      }
6294
    }
6295
 
6296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6297
      try {
6298
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6299
      } catch (org.apache.thrift.TException te) {
6300
        throw new java.io.IOException(te);
6301
      }
6302
    }
6303
 
352 ashish 6304
  }
6305
 
3430 rajveer 6306
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6308
 
3430 rajveer 6309
    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 6310
 
3430 rajveer 6311
    private HelperServiceException se; // required
352 ashish 6312
 
6313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6315
      SE((short)1, "se");
6316
 
6317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6318
 
6319
      static {
6320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6321
          byName.put(field.getFieldName(), field);
6322
        }
6323
      }
6324
 
6325
      /**
6326
       * Find the _Fields constant that matches fieldId, or null if its not found.
6327
       */
6328
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6329
        switch(fieldId) {
6330
          case 1: // SE
6331
            return SE;
6332
          default:
6333
            return null;
6334
        }
352 ashish 6335
      }
6336
 
6337
      /**
6338
       * Find the _Fields constant that matches fieldId, throwing an exception
6339
       * if it is not found.
6340
       */
6341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6342
        _Fields fields = findByThriftId(fieldId);
6343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6344
        return fields;
6345
      }
6346
 
6347
      /**
6348
       * Find the _Fields constant that matches name, or null if its not found.
6349
       */
6350
      public static _Fields findByName(String name) {
6351
        return byName.get(name);
6352
      }
6353
 
6354
      private final short _thriftId;
6355
      private final String _fieldName;
6356
 
6357
      _Fields(short thriftId, String fieldName) {
6358
        _thriftId = thriftId;
6359
        _fieldName = fieldName;
6360
      }
6361
 
6362
      public short getThriftFieldId() {
6363
        return _thriftId;
6364
      }
6365
 
6366
      public String getFieldName() {
6367
        return _fieldName;
6368
      }
6369
    }
6370
 
6371
    // isset id assignments
6372
 
3430 rajveer 6373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6374
    static {
3430 rajveer 6375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6376
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6378
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6379
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6380
    }
6381
 
6382
    public addMessage_result() {
6383
    }
6384
 
6385
    public addMessage_result(
6386
      HelperServiceException se)
6387
    {
6388
      this();
6389
      this.se = se;
6390
    }
6391
 
6392
    /**
6393
     * Performs a deep copy on <i>other</i>.
6394
     */
6395
    public addMessage_result(addMessage_result other) {
6396
      if (other.isSetSe()) {
6397
        this.se = new HelperServiceException(other.se);
6398
      }
6399
    }
6400
 
6401
    public addMessage_result deepCopy() {
6402
      return new addMessage_result(this);
6403
    }
6404
 
3430 rajveer 6405
    @Override
6406
    public void clear() {
6407
      this.se = null;
352 ashish 6408
    }
6409
 
6410
    public HelperServiceException getSe() {
6411
      return this.se;
6412
    }
6413
 
3430 rajveer 6414
    public void setSe(HelperServiceException se) {
352 ashish 6415
      this.se = se;
6416
    }
6417
 
6418
    public void unsetSe() {
6419
      this.se = null;
6420
    }
6421
 
3430 rajveer 6422
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6423
    public boolean isSetSe() {
6424
      return this.se != null;
6425
    }
6426
 
6427
    public void setSeIsSet(boolean value) {
6428
      if (!value) {
6429
        this.se = null;
6430
      }
6431
    }
6432
 
6433
    public void setFieldValue(_Fields field, Object value) {
6434
      switch (field) {
6435
      case SE:
6436
        if (value == null) {
6437
          unsetSe();
6438
        } else {
6439
          setSe((HelperServiceException)value);
6440
        }
6441
        break;
6442
 
6443
      }
6444
    }
6445
 
6446
    public Object getFieldValue(_Fields field) {
6447
      switch (field) {
6448
      case SE:
6449
        return getSe();
6450
 
6451
      }
6452
      throw new IllegalStateException();
6453
    }
6454
 
3430 rajveer 6455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6456
    public boolean isSet(_Fields field) {
6457
      if (field == null) {
6458
        throw new IllegalArgumentException();
6459
      }
352 ashish 6460
 
6461
      switch (field) {
6462
      case SE:
6463
        return isSetSe();
6464
      }
6465
      throw new IllegalStateException();
6466
    }
6467
 
6468
    @Override
6469
    public boolean equals(Object that) {
6470
      if (that == null)
6471
        return false;
6472
      if (that instanceof addMessage_result)
6473
        return this.equals((addMessage_result)that);
6474
      return false;
6475
    }
6476
 
6477
    public boolean equals(addMessage_result that) {
6478
      if (that == null)
6479
        return false;
6480
 
6481
      boolean this_present_se = true && this.isSetSe();
6482
      boolean that_present_se = true && that.isSetSe();
6483
      if (this_present_se || that_present_se) {
6484
        if (!(this_present_se && that_present_se))
6485
          return false;
6486
        if (!this.se.equals(that.se))
6487
          return false;
6488
      }
6489
 
6490
      return true;
6491
    }
6492
 
6493
    @Override
6494
    public int hashCode() {
6495
      return 0;
6496
    }
6497
 
6498
    public int compareTo(addMessage_result other) {
6499
      if (!getClass().equals(other.getClass())) {
6500
        return getClass().getName().compareTo(other.getClass().getName());
6501
      }
6502
 
6503
      int lastComparison = 0;
6504
      addMessage_result typedOther = (addMessage_result)other;
6505
 
3430 rajveer 6506
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6507
      if (lastComparison != 0) {
6508
        return lastComparison;
6509
      }
3430 rajveer 6510
      if (isSetSe()) {
6511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6512
        if (lastComparison != 0) {
6513
          return lastComparison;
6514
        }
352 ashish 6515
      }
6516
      return 0;
6517
    }
6518
 
3430 rajveer 6519
    public _Fields fieldForId(int fieldId) {
6520
      return _Fields.findByThriftId(fieldId);
6521
    }
6522
 
6523
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6524
      org.apache.thrift.protocol.TField field;
352 ashish 6525
      iprot.readStructBegin();
6526
      while (true)
6527
      {
6528
        field = iprot.readFieldBegin();
3430 rajveer 6529
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6530
          break;
6531
        }
3430 rajveer 6532
        switch (field.id) {
6533
          case 1: // SE
6534
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6535
              this.se = new HelperServiceException();
6536
              this.se.read(iprot);
6537
            } else { 
6538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6539
            }
6540
            break;
6541
          default:
6542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6543
        }
3430 rajveer 6544
        iprot.readFieldEnd();
352 ashish 6545
      }
6546
      iprot.readStructEnd();
6547
      validate();
6548
    }
6549
 
3430 rajveer 6550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6551
      oprot.writeStructBegin(STRUCT_DESC);
6552
 
6553
      if (this.isSetSe()) {
6554
        oprot.writeFieldBegin(SE_FIELD_DESC);
6555
        this.se.write(oprot);
6556
        oprot.writeFieldEnd();
6557
      }
6558
      oprot.writeFieldStop();
6559
      oprot.writeStructEnd();
6560
    }
6561
 
6562
    @Override
6563
    public String toString() {
6564
      StringBuilder sb = new StringBuilder("addMessage_result(");
6565
      boolean first = true;
6566
 
6567
      sb.append("se:");
6568
      if (this.se == null) {
6569
        sb.append("null");
6570
      } else {
6571
        sb.append(this.se);
6572
      }
6573
      first = false;
6574
      sb.append(")");
6575
      return sb.toString();
6576
    }
6577
 
3430 rajveer 6578
    public void validate() throws org.apache.thrift.TException {
352 ashish 6579
      // check for required fields
6580
    }
6581
 
3430 rajveer 6582
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6583
      try {
6584
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6585
      } catch (org.apache.thrift.TException te) {
6586
        throw new java.io.IOException(te);
6587
      }
6588
    }
6589
 
6590
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6591
      try {
6592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6593
      } catch (org.apache.thrift.TException te) {
6594
        throw new java.io.IOException(te);
6595
      }
6596
    }
6597
 
352 ashish 6598
  }
6599
 
3430 rajveer 6600
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6602
 
3430 rajveer 6603
    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);
6604
    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 6605
 
3430 rajveer 6606
    private long id; // required
6607
    private String message; // required
352 ashish 6608
 
6609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6610
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6611
      ID((short)1, "id"),
6612
      MESSAGE((short)2, "message");
6613
 
6614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6615
 
6616
      static {
6617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6618
          byName.put(field.getFieldName(), field);
6619
        }
6620
      }
6621
 
6622
      /**
6623
       * Find the _Fields constant that matches fieldId, or null if its not found.
6624
       */
6625
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6626
        switch(fieldId) {
6627
          case 1: // ID
6628
            return ID;
6629
          case 2: // MESSAGE
6630
            return MESSAGE;
6631
          default:
6632
            return null;
6633
        }
352 ashish 6634
      }
6635
 
6636
      /**
6637
       * Find the _Fields constant that matches fieldId, throwing an exception
6638
       * if it is not found.
6639
       */
6640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6641
        _Fields fields = findByThriftId(fieldId);
6642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6643
        return fields;
6644
      }
6645
 
6646
      /**
6647
       * Find the _Fields constant that matches name, or null if its not found.
6648
       */
6649
      public static _Fields findByName(String name) {
6650
        return byName.get(name);
6651
      }
6652
 
6653
      private final short _thriftId;
6654
      private final String _fieldName;
6655
 
6656
      _Fields(short thriftId, String fieldName) {
6657
        _thriftId = thriftId;
6658
        _fieldName = fieldName;
6659
      }
6660
 
6661
      public short getThriftFieldId() {
6662
        return _thriftId;
6663
      }
6664
 
6665
      public String getFieldName() {
6666
        return _fieldName;
6667
      }
6668
    }
6669
 
6670
    // isset id assignments
6671
    private static final int __ID_ISSET_ID = 0;
6672
    private BitSet __isset_bit_vector = new BitSet(1);
6673
 
3430 rajveer 6674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6675
    static {
3430 rajveer 6676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6677
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6679
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6680
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6681
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6682
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 6683
    }
6684
 
6685
    public updateMessage_args() {
6686
    }
6687
 
6688
    public updateMessage_args(
6689
      long id,
6690
      String message)
6691
    {
6692
      this();
6693
      this.id = id;
6694
      setIdIsSet(true);
6695
      this.message = message;
6696
    }
6697
 
6698
    /**
6699
     * Performs a deep copy on <i>other</i>.
6700
     */
6701
    public updateMessage_args(updateMessage_args other) {
6702
      __isset_bit_vector.clear();
6703
      __isset_bit_vector.or(other.__isset_bit_vector);
6704
      this.id = other.id;
6705
      if (other.isSetMessage()) {
6706
        this.message = other.message;
6707
      }
6708
    }
6709
 
6710
    public updateMessage_args deepCopy() {
6711
      return new updateMessage_args(this);
6712
    }
6713
 
3430 rajveer 6714
    @Override
6715
    public void clear() {
6716
      setIdIsSet(false);
6717
      this.id = 0;
6718
      this.message = null;
352 ashish 6719
    }
6720
 
6721
    public long getId() {
6722
      return this.id;
6723
    }
6724
 
3430 rajveer 6725
    public void setId(long id) {
352 ashish 6726
      this.id = id;
6727
      setIdIsSet(true);
6728
    }
6729
 
6730
    public void unsetId() {
6731
      __isset_bit_vector.clear(__ID_ISSET_ID);
6732
    }
6733
 
3430 rajveer 6734
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6735
    public boolean isSetId() {
6736
      return __isset_bit_vector.get(__ID_ISSET_ID);
6737
    }
6738
 
6739
    public void setIdIsSet(boolean value) {
6740
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6741
    }
6742
 
6743
    public String getMessage() {
6744
      return this.message;
6745
    }
6746
 
3430 rajveer 6747
    public void setMessage(String message) {
352 ashish 6748
      this.message = message;
6749
    }
6750
 
6751
    public void unsetMessage() {
6752
      this.message = null;
6753
    }
6754
 
3430 rajveer 6755
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6756
    public boolean isSetMessage() {
6757
      return this.message != null;
6758
    }
6759
 
6760
    public void setMessageIsSet(boolean value) {
6761
      if (!value) {
6762
        this.message = null;
6763
      }
6764
    }
6765
 
6766
    public void setFieldValue(_Fields field, Object value) {
6767
      switch (field) {
6768
      case ID:
6769
        if (value == null) {
6770
          unsetId();
6771
        } else {
6772
          setId((Long)value);
6773
        }
6774
        break;
6775
 
6776
      case MESSAGE:
6777
        if (value == null) {
6778
          unsetMessage();
6779
        } else {
6780
          setMessage((String)value);
6781
        }
6782
        break;
6783
 
6784
      }
6785
    }
6786
 
6787
    public Object getFieldValue(_Fields field) {
6788
      switch (field) {
6789
      case ID:
3430 rajveer 6790
        return Long.valueOf(getId());
352 ashish 6791
 
6792
      case MESSAGE:
6793
        return getMessage();
6794
 
6795
      }
6796
      throw new IllegalStateException();
6797
    }
6798
 
3430 rajveer 6799
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6800
    public boolean isSet(_Fields field) {
6801
      if (field == null) {
6802
        throw new IllegalArgumentException();
6803
      }
352 ashish 6804
 
6805
      switch (field) {
6806
      case ID:
6807
        return isSetId();
6808
      case MESSAGE:
6809
        return isSetMessage();
6810
      }
6811
      throw new IllegalStateException();
6812
    }
6813
 
6814
    @Override
6815
    public boolean equals(Object that) {
6816
      if (that == null)
6817
        return false;
6818
      if (that instanceof updateMessage_args)
6819
        return this.equals((updateMessage_args)that);
6820
      return false;
6821
    }
6822
 
6823
    public boolean equals(updateMessage_args that) {
6824
      if (that == null)
6825
        return false;
6826
 
6827
      boolean this_present_id = true;
6828
      boolean that_present_id = true;
6829
      if (this_present_id || that_present_id) {
6830
        if (!(this_present_id && that_present_id))
6831
          return false;
6832
        if (this.id != that.id)
6833
          return false;
6834
      }
6835
 
6836
      boolean this_present_message = true && this.isSetMessage();
6837
      boolean that_present_message = true && that.isSetMessage();
6838
      if (this_present_message || that_present_message) {
6839
        if (!(this_present_message && that_present_message))
6840
          return false;
6841
        if (!this.message.equals(that.message))
6842
          return false;
6843
      }
6844
 
6845
      return true;
6846
    }
6847
 
6848
    @Override
6849
    public int hashCode() {
6850
      return 0;
6851
    }
6852
 
6853
    public int compareTo(updateMessage_args other) {
6854
      if (!getClass().equals(other.getClass())) {
6855
        return getClass().getName().compareTo(other.getClass().getName());
6856
      }
6857
 
6858
      int lastComparison = 0;
6859
      updateMessage_args typedOther = (updateMessage_args)other;
6860
 
3430 rajveer 6861
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6862
      if (lastComparison != 0) {
6863
        return lastComparison;
6864
      }
3430 rajveer 6865
      if (isSetId()) {
6866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6867
        if (lastComparison != 0) {
6868
          return lastComparison;
6869
        }
352 ashish 6870
      }
3430 rajveer 6871
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6872
      if (lastComparison != 0) {
6873
        return lastComparison;
6874
      }
3430 rajveer 6875
      if (isSetMessage()) {
6876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6877
        if (lastComparison != 0) {
6878
          return lastComparison;
6879
        }
352 ashish 6880
      }
6881
      return 0;
6882
    }
6883
 
3430 rajveer 6884
    public _Fields fieldForId(int fieldId) {
6885
      return _Fields.findByThriftId(fieldId);
6886
    }
6887
 
6888
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6889
      org.apache.thrift.protocol.TField field;
352 ashish 6890
      iprot.readStructBegin();
6891
      while (true)
6892
      {
6893
        field = iprot.readFieldBegin();
3430 rajveer 6894
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6895
          break;
6896
        }
3430 rajveer 6897
        switch (field.id) {
6898
          case 1: // ID
6899
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6900
              this.id = iprot.readI64();
6901
              setIdIsSet(true);
6902
            } else { 
6903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6904
            }
6905
            break;
6906
          case 2: // MESSAGE
6907
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6908
              this.message = iprot.readString();
6909
            } else { 
6910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6911
            }
6912
            break;
6913
          default:
6914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6915
        }
3430 rajveer 6916
        iprot.readFieldEnd();
352 ashish 6917
      }
6918
      iprot.readStructEnd();
6919
      validate();
6920
    }
6921
 
3430 rajveer 6922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6923
      validate();
6924
 
6925
      oprot.writeStructBegin(STRUCT_DESC);
6926
      oprot.writeFieldBegin(ID_FIELD_DESC);
6927
      oprot.writeI64(this.id);
6928
      oprot.writeFieldEnd();
6929
      if (this.message != null) {
6930
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6931
        oprot.writeString(this.message);
6932
        oprot.writeFieldEnd();
6933
      }
6934
      oprot.writeFieldStop();
6935
      oprot.writeStructEnd();
6936
    }
6937
 
6938
    @Override
6939
    public String toString() {
6940
      StringBuilder sb = new StringBuilder("updateMessage_args(");
6941
      boolean first = true;
6942
 
6943
      sb.append("id:");
6944
      sb.append(this.id);
6945
      first = false;
6946
      if (!first) sb.append(", ");
6947
      sb.append("message:");
6948
      if (this.message == null) {
6949
        sb.append("null");
6950
      } else {
6951
        sb.append(this.message);
6952
      }
6953
      first = false;
6954
      sb.append(")");
6955
      return sb.toString();
6956
    }
6957
 
3430 rajveer 6958
    public void validate() throws org.apache.thrift.TException {
352 ashish 6959
      // check for required fields
6960
    }
6961
 
3430 rajveer 6962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6963
      try {
6964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6965
      } catch (org.apache.thrift.TException te) {
6966
        throw new java.io.IOException(te);
6967
      }
6968
    }
6969
 
6970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6971
      try {
6972
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6973
        __isset_bit_vector = new BitSet(1);
6974
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6975
      } catch (org.apache.thrift.TException te) {
6976
        throw new java.io.IOException(te);
6977
      }
6978
    }
6979
 
352 ashish 6980
  }
6981
 
3430 rajveer 6982
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
6983
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 6984
 
3430 rajveer 6985
    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 6986
 
3430 rajveer 6987
    private HelperServiceException se; // required
352 ashish 6988
 
6989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6990
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6991
      SE((short)1, "se");
6992
 
6993
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6994
 
6995
      static {
6996
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6997
          byName.put(field.getFieldName(), field);
6998
        }
6999
      }
7000
 
7001
      /**
7002
       * Find the _Fields constant that matches fieldId, or null if its not found.
7003
       */
7004
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7005
        switch(fieldId) {
7006
          case 1: // SE
7007
            return SE;
7008
          default:
7009
            return null;
7010
        }
352 ashish 7011
      }
7012
 
7013
      /**
7014
       * Find the _Fields constant that matches fieldId, throwing an exception
7015
       * if it is not found.
7016
       */
7017
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7018
        _Fields fields = findByThriftId(fieldId);
7019
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7020
        return fields;
7021
      }
7022
 
7023
      /**
7024
       * Find the _Fields constant that matches name, or null if its not found.
7025
       */
7026
      public static _Fields findByName(String name) {
7027
        return byName.get(name);
7028
      }
7029
 
7030
      private final short _thriftId;
7031
      private final String _fieldName;
7032
 
7033
      _Fields(short thriftId, String fieldName) {
7034
        _thriftId = thriftId;
7035
        _fieldName = fieldName;
7036
      }
7037
 
7038
      public short getThriftFieldId() {
7039
        return _thriftId;
7040
      }
7041
 
7042
      public String getFieldName() {
7043
        return _fieldName;
7044
      }
7045
    }
7046
 
7047
    // isset id assignments
7048
 
3430 rajveer 7049
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7050
    static {
3430 rajveer 7051
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7052
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7056
    }
7057
 
7058
    public updateMessage_result() {
7059
    }
7060
 
7061
    public updateMessage_result(
7062
      HelperServiceException se)
7063
    {
7064
      this();
7065
      this.se = se;
7066
    }
7067
 
7068
    /**
7069
     * Performs a deep copy on <i>other</i>.
7070
     */
7071
    public updateMessage_result(updateMessage_result other) {
7072
      if (other.isSetSe()) {
7073
        this.se = new HelperServiceException(other.se);
7074
      }
7075
    }
7076
 
7077
    public updateMessage_result deepCopy() {
7078
      return new updateMessage_result(this);
7079
    }
7080
 
3430 rajveer 7081
    @Override
7082
    public void clear() {
7083
      this.se = null;
352 ashish 7084
    }
7085
 
7086
    public HelperServiceException getSe() {
7087
      return this.se;
7088
    }
7089
 
3430 rajveer 7090
    public void setSe(HelperServiceException se) {
352 ashish 7091
      this.se = se;
7092
    }
7093
 
7094
    public void unsetSe() {
7095
      this.se = null;
7096
    }
7097
 
3430 rajveer 7098
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7099
    public boolean isSetSe() {
7100
      return this.se != null;
7101
    }
7102
 
7103
    public void setSeIsSet(boolean value) {
7104
      if (!value) {
7105
        this.se = null;
7106
      }
7107
    }
7108
 
7109
    public void setFieldValue(_Fields field, Object value) {
7110
      switch (field) {
7111
      case SE:
7112
        if (value == null) {
7113
          unsetSe();
7114
        } else {
7115
          setSe((HelperServiceException)value);
7116
        }
7117
        break;
7118
 
7119
      }
7120
    }
7121
 
7122
    public Object getFieldValue(_Fields field) {
7123
      switch (field) {
7124
      case SE:
7125
        return getSe();
7126
 
7127
      }
7128
      throw new IllegalStateException();
7129
    }
7130
 
3430 rajveer 7131
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7132
    public boolean isSet(_Fields field) {
7133
      if (field == null) {
7134
        throw new IllegalArgumentException();
7135
      }
352 ashish 7136
 
7137
      switch (field) {
7138
      case SE:
7139
        return isSetSe();
7140
      }
7141
      throw new IllegalStateException();
7142
    }
7143
 
7144
    @Override
7145
    public boolean equals(Object that) {
7146
      if (that == null)
7147
        return false;
7148
      if (that instanceof updateMessage_result)
7149
        return this.equals((updateMessage_result)that);
7150
      return false;
7151
    }
7152
 
7153
    public boolean equals(updateMessage_result that) {
7154
      if (that == null)
7155
        return false;
7156
 
7157
      boolean this_present_se = true && this.isSetSe();
7158
      boolean that_present_se = true && that.isSetSe();
7159
      if (this_present_se || that_present_se) {
7160
        if (!(this_present_se && that_present_se))
7161
          return false;
7162
        if (!this.se.equals(that.se))
7163
          return false;
7164
      }
7165
 
7166
      return true;
7167
    }
7168
 
7169
    @Override
7170
    public int hashCode() {
7171
      return 0;
7172
    }
7173
 
7174
    public int compareTo(updateMessage_result other) {
7175
      if (!getClass().equals(other.getClass())) {
7176
        return getClass().getName().compareTo(other.getClass().getName());
7177
      }
7178
 
7179
      int lastComparison = 0;
7180
      updateMessage_result typedOther = (updateMessage_result)other;
7181
 
3430 rajveer 7182
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7183
      if (lastComparison != 0) {
7184
        return lastComparison;
7185
      }
3430 rajveer 7186
      if (isSetSe()) {
7187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7188
        if (lastComparison != 0) {
7189
          return lastComparison;
7190
        }
352 ashish 7191
      }
7192
      return 0;
7193
    }
7194
 
3430 rajveer 7195
    public _Fields fieldForId(int fieldId) {
7196
      return _Fields.findByThriftId(fieldId);
7197
    }
7198
 
7199
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7200
      org.apache.thrift.protocol.TField field;
352 ashish 7201
      iprot.readStructBegin();
7202
      while (true)
7203
      {
7204
        field = iprot.readFieldBegin();
3430 rajveer 7205
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7206
          break;
7207
        }
3430 rajveer 7208
        switch (field.id) {
7209
          case 1: // SE
7210
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7211
              this.se = new HelperServiceException();
7212
              this.se.read(iprot);
7213
            } else { 
7214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7215
            }
7216
            break;
7217
          default:
7218
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7219
        }
3430 rajveer 7220
        iprot.readFieldEnd();
352 ashish 7221
      }
7222
      iprot.readStructEnd();
7223
      validate();
7224
    }
7225
 
3430 rajveer 7226
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7227
      oprot.writeStructBegin(STRUCT_DESC);
7228
 
7229
      if (this.isSetSe()) {
7230
        oprot.writeFieldBegin(SE_FIELD_DESC);
7231
        this.se.write(oprot);
7232
        oprot.writeFieldEnd();
7233
      }
7234
      oprot.writeFieldStop();
7235
      oprot.writeStructEnd();
7236
    }
7237
 
7238
    @Override
7239
    public String toString() {
7240
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7241
      boolean first = true;
7242
 
7243
      sb.append("se:");
7244
      if (this.se == null) {
7245
        sb.append("null");
7246
      } else {
7247
        sb.append(this.se);
7248
      }
7249
      first = false;
7250
      sb.append(")");
7251
      return sb.toString();
7252
    }
7253
 
3430 rajveer 7254
    public void validate() throws org.apache.thrift.TException {
352 ashish 7255
      // check for required fields
7256
    }
7257
 
3430 rajveer 7258
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7259
      try {
7260
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7261
      } catch (org.apache.thrift.TException te) {
7262
        throw new java.io.IOException(te);
7263
      }
7264
    }
7265
 
7266
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7267
      try {
7268
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7269
      } catch (org.apache.thrift.TException te) {
7270
        throw new java.io.IOException(te);
7271
      }
7272
    }
7273
 
352 ashish 7274
  }
7275
 
3430 rajveer 7276
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7277
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7278
 
3430 rajveer 7279
    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 7280
 
3430 rajveer 7281
    private long id; // required
352 ashish 7282
 
7283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7284
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7285
      ID((short)1, "id");
7286
 
7287
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7288
 
7289
      static {
7290
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7291
          byName.put(field.getFieldName(), field);
7292
        }
7293
      }
7294
 
7295
      /**
7296
       * Find the _Fields constant that matches fieldId, or null if its not found.
7297
       */
7298
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7299
        switch(fieldId) {
7300
          case 1: // ID
7301
            return ID;
7302
          default:
7303
            return null;
7304
        }
352 ashish 7305
      }
7306
 
7307
      /**
7308
       * Find the _Fields constant that matches fieldId, throwing an exception
7309
       * if it is not found.
7310
       */
7311
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7312
        _Fields fields = findByThriftId(fieldId);
7313
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7314
        return fields;
7315
      }
7316
 
7317
      /**
7318
       * Find the _Fields constant that matches name, or null if its not found.
7319
       */
7320
      public static _Fields findByName(String name) {
7321
        return byName.get(name);
7322
      }
7323
 
7324
      private final short _thriftId;
7325
      private final String _fieldName;
7326
 
7327
      _Fields(short thriftId, String fieldName) {
7328
        _thriftId = thriftId;
7329
        _fieldName = fieldName;
7330
      }
7331
 
7332
      public short getThriftFieldId() {
7333
        return _thriftId;
7334
      }
7335
 
7336
      public String getFieldName() {
7337
        return _fieldName;
7338
      }
7339
    }
7340
 
7341
    // isset id assignments
7342
    private static final int __ID_ISSET_ID = 0;
7343
    private BitSet __isset_bit_vector = new BitSet(1);
7344
 
3430 rajveer 7345
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7346
    static {
3430 rajveer 7347
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7348
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7350
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7351
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7352
    }
7353
 
7354
    public getMessage_args() {
7355
    }
7356
 
7357
    public getMessage_args(
7358
      long id)
7359
    {
7360
      this();
7361
      this.id = id;
7362
      setIdIsSet(true);
7363
    }
7364
 
7365
    /**
7366
     * Performs a deep copy on <i>other</i>.
7367
     */
7368
    public getMessage_args(getMessage_args other) {
7369
      __isset_bit_vector.clear();
7370
      __isset_bit_vector.or(other.__isset_bit_vector);
7371
      this.id = other.id;
7372
    }
7373
 
7374
    public getMessage_args deepCopy() {
7375
      return new getMessage_args(this);
7376
    }
7377
 
3430 rajveer 7378
    @Override
7379
    public void clear() {
7380
      setIdIsSet(false);
7381
      this.id = 0;
352 ashish 7382
    }
7383
 
7384
    public long getId() {
7385
      return this.id;
7386
    }
7387
 
3430 rajveer 7388
    public void setId(long id) {
352 ashish 7389
      this.id = id;
7390
      setIdIsSet(true);
7391
    }
7392
 
7393
    public void unsetId() {
7394
      __isset_bit_vector.clear(__ID_ISSET_ID);
7395
    }
7396
 
3430 rajveer 7397
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7398
    public boolean isSetId() {
7399
      return __isset_bit_vector.get(__ID_ISSET_ID);
7400
    }
7401
 
7402
    public void setIdIsSet(boolean value) {
7403
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7404
    }
7405
 
7406
    public void setFieldValue(_Fields field, Object value) {
7407
      switch (field) {
7408
      case ID:
7409
        if (value == null) {
7410
          unsetId();
7411
        } else {
7412
          setId((Long)value);
7413
        }
7414
        break;
7415
 
7416
      }
7417
    }
7418
 
7419
    public Object getFieldValue(_Fields field) {
7420
      switch (field) {
7421
      case ID:
3430 rajveer 7422
        return Long.valueOf(getId());
352 ashish 7423
 
7424
      }
7425
      throw new IllegalStateException();
7426
    }
7427
 
3430 rajveer 7428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7429
    public boolean isSet(_Fields field) {
7430
      if (field == null) {
7431
        throw new IllegalArgumentException();
7432
      }
352 ashish 7433
 
7434
      switch (field) {
7435
      case ID:
7436
        return isSetId();
7437
      }
7438
      throw new IllegalStateException();
7439
    }
7440
 
7441
    @Override
7442
    public boolean equals(Object that) {
7443
      if (that == null)
7444
        return false;
7445
      if (that instanceof getMessage_args)
7446
        return this.equals((getMessage_args)that);
7447
      return false;
7448
    }
7449
 
7450
    public boolean equals(getMessage_args that) {
7451
      if (that == null)
7452
        return false;
7453
 
7454
      boolean this_present_id = true;
7455
      boolean that_present_id = true;
7456
      if (this_present_id || that_present_id) {
7457
        if (!(this_present_id && that_present_id))
7458
          return false;
7459
        if (this.id != that.id)
7460
          return false;
7461
      }
7462
 
7463
      return true;
7464
    }
7465
 
7466
    @Override
7467
    public int hashCode() {
7468
      return 0;
7469
    }
7470
 
7471
    public int compareTo(getMessage_args other) {
7472
      if (!getClass().equals(other.getClass())) {
7473
        return getClass().getName().compareTo(other.getClass().getName());
7474
      }
7475
 
7476
      int lastComparison = 0;
7477
      getMessage_args typedOther = (getMessage_args)other;
7478
 
3430 rajveer 7479
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7480
      if (lastComparison != 0) {
7481
        return lastComparison;
7482
      }
3430 rajveer 7483
      if (isSetId()) {
7484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7485
        if (lastComparison != 0) {
7486
          return lastComparison;
7487
        }
352 ashish 7488
      }
7489
      return 0;
7490
    }
7491
 
3430 rajveer 7492
    public _Fields fieldForId(int fieldId) {
7493
      return _Fields.findByThriftId(fieldId);
7494
    }
7495
 
7496
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7497
      org.apache.thrift.protocol.TField field;
352 ashish 7498
      iprot.readStructBegin();
7499
      while (true)
7500
      {
7501
        field = iprot.readFieldBegin();
3430 rajveer 7502
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7503
          break;
7504
        }
3430 rajveer 7505
        switch (field.id) {
7506
          case 1: // ID
7507
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7508
              this.id = iprot.readI64();
7509
              setIdIsSet(true);
7510
            } else { 
7511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7512
            }
7513
            break;
7514
          default:
7515
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7516
        }
3430 rajveer 7517
        iprot.readFieldEnd();
352 ashish 7518
      }
7519
      iprot.readStructEnd();
7520
      validate();
7521
    }
7522
 
3430 rajveer 7523
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7524
      validate();
7525
 
7526
      oprot.writeStructBegin(STRUCT_DESC);
7527
      oprot.writeFieldBegin(ID_FIELD_DESC);
7528
      oprot.writeI64(this.id);
7529
      oprot.writeFieldEnd();
7530
      oprot.writeFieldStop();
7531
      oprot.writeStructEnd();
7532
    }
7533
 
7534
    @Override
7535
    public String toString() {
7536
      StringBuilder sb = new StringBuilder("getMessage_args(");
7537
      boolean first = true;
7538
 
7539
      sb.append("id:");
7540
      sb.append(this.id);
7541
      first = false;
7542
      sb.append(")");
7543
      return sb.toString();
7544
    }
7545
 
3430 rajveer 7546
    public void validate() throws org.apache.thrift.TException {
352 ashish 7547
      // check for required fields
7548
    }
7549
 
3430 rajveer 7550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7551
      try {
7552
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7553
      } catch (org.apache.thrift.TException te) {
7554
        throw new java.io.IOException(te);
7555
      }
7556
    }
7557
 
7558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7559
      try {
7560
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7561
        __isset_bit_vector = new BitSet(1);
7562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7563
      } catch (org.apache.thrift.TException te) {
7564
        throw new java.io.IOException(te);
7565
      }
7566
    }
7567
 
352 ashish 7568
  }
7569
 
3430 rajveer 7570
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7572
 
3430 rajveer 7573
    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);
7574
    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 7575
 
3430 rajveer 7576
    private Message success; // required
7577
    private HelperServiceException se; // required
352 ashish 7578
 
7579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7581
      SUCCESS((short)0, "success"),
7582
      SE((short)1, "se");
7583
 
7584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7585
 
7586
      static {
7587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7588
          byName.put(field.getFieldName(), field);
7589
        }
7590
      }
7591
 
7592
      /**
7593
       * Find the _Fields constant that matches fieldId, or null if its not found.
7594
       */
7595
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7596
        switch(fieldId) {
7597
          case 0: // SUCCESS
7598
            return SUCCESS;
7599
          case 1: // SE
7600
            return SE;
7601
          default:
7602
            return null;
7603
        }
352 ashish 7604
      }
7605
 
7606
      /**
7607
       * Find the _Fields constant that matches fieldId, throwing an exception
7608
       * if it is not found.
7609
       */
7610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7611
        _Fields fields = findByThriftId(fieldId);
7612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7613
        return fields;
7614
      }
7615
 
7616
      /**
7617
       * Find the _Fields constant that matches name, or null if its not found.
7618
       */
7619
      public static _Fields findByName(String name) {
7620
        return byName.get(name);
7621
      }
7622
 
7623
      private final short _thriftId;
7624
      private final String _fieldName;
7625
 
7626
      _Fields(short thriftId, String fieldName) {
7627
        _thriftId = thriftId;
7628
        _fieldName = fieldName;
7629
      }
7630
 
7631
      public short getThriftFieldId() {
7632
        return _thriftId;
7633
      }
7634
 
7635
      public String getFieldName() {
7636
        return _fieldName;
7637
      }
7638
    }
7639
 
7640
    // isset id assignments
7641
 
3430 rajveer 7642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7643
    static {
3430 rajveer 7644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7645
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7646
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7647
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 7651
    }
7652
 
7653
    public getMessage_result() {
7654
    }
7655
 
7656
    public getMessage_result(
7657
      Message success,
7658
      HelperServiceException se)
7659
    {
7660
      this();
7661
      this.success = success;
7662
      this.se = se;
7663
    }
7664
 
7665
    /**
7666
     * Performs a deep copy on <i>other</i>.
7667
     */
7668
    public getMessage_result(getMessage_result other) {
7669
      if (other.isSetSuccess()) {
7670
        this.success = new Message(other.success);
7671
      }
7672
      if (other.isSetSe()) {
7673
        this.se = new HelperServiceException(other.se);
7674
      }
7675
    }
7676
 
7677
    public getMessage_result deepCopy() {
7678
      return new getMessage_result(this);
7679
    }
7680
 
3430 rajveer 7681
    @Override
7682
    public void clear() {
7683
      this.success = null;
7684
      this.se = null;
352 ashish 7685
    }
7686
 
7687
    public Message getSuccess() {
7688
      return this.success;
7689
    }
7690
 
3430 rajveer 7691
    public void setSuccess(Message success) {
352 ashish 7692
      this.success = success;
7693
    }
7694
 
7695
    public void unsetSuccess() {
7696
      this.success = null;
7697
    }
7698
 
3430 rajveer 7699
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7700
    public boolean isSetSuccess() {
7701
      return this.success != null;
7702
    }
7703
 
7704
    public void setSuccessIsSet(boolean value) {
7705
      if (!value) {
7706
        this.success = null;
7707
      }
7708
    }
7709
 
7710
    public HelperServiceException getSe() {
7711
      return this.se;
7712
    }
7713
 
3430 rajveer 7714
    public void setSe(HelperServiceException se) {
352 ashish 7715
      this.se = se;
7716
    }
7717
 
7718
    public void unsetSe() {
7719
      this.se = null;
7720
    }
7721
 
3430 rajveer 7722
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7723
    public boolean isSetSe() {
7724
      return this.se != null;
7725
    }
7726
 
7727
    public void setSeIsSet(boolean value) {
7728
      if (!value) {
7729
        this.se = null;
7730
      }
7731
    }
7732
 
7733
    public void setFieldValue(_Fields field, Object value) {
7734
      switch (field) {
7735
      case SUCCESS:
7736
        if (value == null) {
7737
          unsetSuccess();
7738
        } else {
7739
          setSuccess((Message)value);
7740
        }
7741
        break;
7742
 
7743
      case SE:
7744
        if (value == null) {
7745
          unsetSe();
7746
        } else {
7747
          setSe((HelperServiceException)value);
7748
        }
7749
        break;
7750
 
7751
      }
7752
    }
7753
 
7754
    public Object getFieldValue(_Fields field) {
7755
      switch (field) {
7756
      case SUCCESS:
7757
        return getSuccess();
7758
 
7759
      case SE:
7760
        return getSe();
7761
 
7762
      }
7763
      throw new IllegalStateException();
7764
    }
7765
 
3430 rajveer 7766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7767
    public boolean isSet(_Fields field) {
7768
      if (field == null) {
7769
        throw new IllegalArgumentException();
7770
      }
352 ashish 7771
 
7772
      switch (field) {
7773
      case SUCCESS:
7774
        return isSetSuccess();
7775
      case SE:
7776
        return isSetSe();
7777
      }
7778
      throw new IllegalStateException();
7779
    }
7780
 
7781
    @Override
7782
    public boolean equals(Object that) {
7783
      if (that == null)
7784
        return false;
7785
      if (that instanceof getMessage_result)
7786
        return this.equals((getMessage_result)that);
7787
      return false;
7788
    }
7789
 
7790
    public boolean equals(getMessage_result that) {
7791
      if (that == null)
7792
        return false;
7793
 
7794
      boolean this_present_success = true && this.isSetSuccess();
7795
      boolean that_present_success = true && that.isSetSuccess();
7796
      if (this_present_success || that_present_success) {
7797
        if (!(this_present_success && that_present_success))
7798
          return false;
7799
        if (!this.success.equals(that.success))
7800
          return false;
7801
      }
7802
 
7803
      boolean this_present_se = true && this.isSetSe();
7804
      boolean that_present_se = true && that.isSetSe();
7805
      if (this_present_se || that_present_se) {
7806
        if (!(this_present_se && that_present_se))
7807
          return false;
7808
        if (!this.se.equals(that.se))
7809
          return false;
7810
      }
7811
 
7812
      return true;
7813
    }
7814
 
7815
    @Override
7816
    public int hashCode() {
7817
      return 0;
7818
    }
7819
 
7820
    public int compareTo(getMessage_result other) {
7821
      if (!getClass().equals(other.getClass())) {
7822
        return getClass().getName().compareTo(other.getClass().getName());
7823
      }
7824
 
7825
      int lastComparison = 0;
7826
      getMessage_result typedOther = (getMessage_result)other;
7827
 
3430 rajveer 7828
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7829
      if (lastComparison != 0) {
7830
        return lastComparison;
7831
      }
3430 rajveer 7832
      if (isSetSuccess()) {
7833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7834
        if (lastComparison != 0) {
7835
          return lastComparison;
7836
        }
352 ashish 7837
      }
3430 rajveer 7838
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7839
      if (lastComparison != 0) {
7840
        return lastComparison;
7841
      }
3430 rajveer 7842
      if (isSetSe()) {
7843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7844
        if (lastComparison != 0) {
7845
          return lastComparison;
7846
        }
352 ashish 7847
      }
7848
      return 0;
7849
    }
7850
 
3430 rajveer 7851
    public _Fields fieldForId(int fieldId) {
7852
      return _Fields.findByThriftId(fieldId);
7853
    }
7854
 
7855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7856
      org.apache.thrift.protocol.TField field;
352 ashish 7857
      iprot.readStructBegin();
7858
      while (true)
7859
      {
7860
        field = iprot.readFieldBegin();
3430 rajveer 7861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7862
          break;
7863
        }
3430 rajveer 7864
        switch (field.id) {
7865
          case 0: // SUCCESS
7866
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7867
              this.success = new Message();
7868
              this.success.read(iprot);
7869
            } else { 
7870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7871
            }
7872
            break;
7873
          case 1: // SE
7874
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7875
              this.se = new HelperServiceException();
7876
              this.se.read(iprot);
7877
            } else { 
7878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7879
            }
7880
            break;
7881
          default:
7882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7883
        }
3430 rajveer 7884
        iprot.readFieldEnd();
352 ashish 7885
      }
7886
      iprot.readStructEnd();
7887
      validate();
7888
    }
7889
 
3430 rajveer 7890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7891
      oprot.writeStructBegin(STRUCT_DESC);
7892
 
7893
      if (this.isSetSuccess()) {
7894
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7895
        this.success.write(oprot);
7896
        oprot.writeFieldEnd();
7897
      } else if (this.isSetSe()) {
7898
        oprot.writeFieldBegin(SE_FIELD_DESC);
7899
        this.se.write(oprot);
7900
        oprot.writeFieldEnd();
7901
      }
7902
      oprot.writeFieldStop();
7903
      oprot.writeStructEnd();
7904
    }
7905
 
7906
    @Override
7907
    public String toString() {
7908
      StringBuilder sb = new StringBuilder("getMessage_result(");
7909
      boolean first = true;
7910
 
7911
      sb.append("success:");
7912
      if (this.success == null) {
7913
        sb.append("null");
7914
      } else {
7915
        sb.append(this.success);
7916
      }
7917
      first = false;
7918
      if (!first) sb.append(", ");
7919
      sb.append("se:");
7920
      if (this.se == null) {
7921
        sb.append("null");
7922
      } else {
7923
        sb.append(this.se);
7924
      }
7925
      first = false;
7926
      sb.append(")");
7927
      return sb.toString();
7928
    }
7929
 
3430 rajveer 7930
    public void validate() throws org.apache.thrift.TException {
352 ashish 7931
      // check for required fields
7932
    }
7933
 
3430 rajveer 7934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7935
      try {
7936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7937
      } catch (org.apache.thrift.TException te) {
7938
        throw new java.io.IOException(te);
7939
      }
7940
    }
7941
 
7942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7943
      try {
7944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7945
      } catch (org.apache.thrift.TException te) {
7946
        throw new java.io.IOException(te);
7947
      }
7948
    }
7949
 
352 ashish 7950
  }
7951
 
3430 rajveer 7952
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 7954
 
3430 rajveer 7955
    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);
7956
    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 7957
 
3430 rajveer 7958
    private long id; // required
7959
    private Map<String,String> params; // required
352 ashish 7960
 
7961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7963
      ID((short)1, "id"),
7964
      PARAMS((short)2, "params");
7965
 
7966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7967
 
7968
      static {
7969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7970
          byName.put(field.getFieldName(), field);
7971
        }
7972
      }
7973
 
7974
      /**
7975
       * Find the _Fields constant that matches fieldId, or null if its not found.
7976
       */
7977
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7978
        switch(fieldId) {
7979
          case 1: // ID
7980
            return ID;
7981
          case 2: // PARAMS
7982
            return PARAMS;
7983
          default:
7984
            return null;
7985
        }
352 ashish 7986
      }
7987
 
7988
      /**
7989
       * Find the _Fields constant that matches fieldId, throwing an exception
7990
       * if it is not found.
7991
       */
7992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7993
        _Fields fields = findByThriftId(fieldId);
7994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7995
        return fields;
7996
      }
7997
 
7998
      /**
7999
       * Find the _Fields constant that matches name, or null if its not found.
8000
       */
8001
      public static _Fields findByName(String name) {
8002
        return byName.get(name);
8003
      }
8004
 
8005
      private final short _thriftId;
8006
      private final String _fieldName;
8007
 
8008
      _Fields(short thriftId, String fieldName) {
8009
        _thriftId = thriftId;
8010
        _fieldName = fieldName;
8011
      }
8012
 
8013
      public short getThriftFieldId() {
8014
        return _thriftId;
8015
      }
8016
 
8017
      public String getFieldName() {
8018
        return _fieldName;
8019
      }
8020
    }
8021
 
8022
    // isset id assignments
8023
    private static final int __ID_ISSET_ID = 0;
8024
    private BitSet __isset_bit_vector = new BitSet(1);
8025
 
3430 rajveer 8026
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8027
    static {
3430 rajveer 8028
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8029
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8031
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8032
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8033
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8034
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8037
    }
8038
 
8039
    public getSubstitutedMessage_args() {
8040
    }
8041
 
8042
    public getSubstitutedMessage_args(
8043
      long id,
8044
      Map<String,String> params)
8045
    {
8046
      this();
8047
      this.id = id;
8048
      setIdIsSet(true);
8049
      this.params = params;
8050
    }
8051
 
8052
    /**
8053
     * Performs a deep copy on <i>other</i>.
8054
     */
8055
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8056
      __isset_bit_vector.clear();
8057
      __isset_bit_vector.or(other.__isset_bit_vector);
8058
      this.id = other.id;
8059
      if (other.isSetParams()) {
8060
        Map<String,String> __this__params = new HashMap<String,String>();
8061
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8062
 
8063
          String other_element_key = other_element.getKey();
8064
          String other_element_value = other_element.getValue();
8065
 
8066
          String __this__params_copy_key = other_element_key;
8067
 
8068
          String __this__params_copy_value = other_element_value;
8069
 
8070
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8071
        }
8072
        this.params = __this__params;
8073
      }
8074
    }
8075
 
8076
    public getSubstitutedMessage_args deepCopy() {
8077
      return new getSubstitutedMessage_args(this);
8078
    }
8079
 
3430 rajveer 8080
    @Override
8081
    public void clear() {
8082
      setIdIsSet(false);
8083
      this.id = 0;
8084
      this.params = null;
352 ashish 8085
    }
8086
 
8087
    public long getId() {
8088
      return this.id;
8089
    }
8090
 
3430 rajveer 8091
    public void setId(long id) {
352 ashish 8092
      this.id = id;
8093
      setIdIsSet(true);
8094
    }
8095
 
8096
    public void unsetId() {
8097
      __isset_bit_vector.clear(__ID_ISSET_ID);
8098
    }
8099
 
3430 rajveer 8100
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8101
    public boolean isSetId() {
8102
      return __isset_bit_vector.get(__ID_ISSET_ID);
8103
    }
8104
 
8105
    public void setIdIsSet(boolean value) {
8106
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8107
    }
8108
 
8109
    public int getParamsSize() {
8110
      return (this.params == null) ? 0 : this.params.size();
8111
    }
8112
 
8113
    public void putToParams(String key, String val) {
8114
      if (this.params == null) {
8115
        this.params = new HashMap<String,String>();
8116
      }
8117
      this.params.put(key, val);
8118
    }
8119
 
8120
    public Map<String,String> getParams() {
8121
      return this.params;
8122
    }
8123
 
3430 rajveer 8124
    public void setParams(Map<String,String> params) {
352 ashish 8125
      this.params = params;
8126
    }
8127
 
8128
    public void unsetParams() {
8129
      this.params = null;
8130
    }
8131
 
3430 rajveer 8132
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8133
    public boolean isSetParams() {
8134
      return this.params != null;
8135
    }
8136
 
8137
    public void setParamsIsSet(boolean value) {
8138
      if (!value) {
8139
        this.params = null;
8140
      }
8141
    }
8142
 
8143
    public void setFieldValue(_Fields field, Object value) {
8144
      switch (field) {
8145
      case ID:
8146
        if (value == null) {
8147
          unsetId();
8148
        } else {
8149
          setId((Long)value);
8150
        }
8151
        break;
8152
 
8153
      case PARAMS:
8154
        if (value == null) {
8155
          unsetParams();
8156
        } else {
8157
          setParams((Map<String,String>)value);
8158
        }
8159
        break;
8160
 
8161
      }
8162
    }
8163
 
8164
    public Object getFieldValue(_Fields field) {
8165
      switch (field) {
8166
      case ID:
3430 rajveer 8167
        return Long.valueOf(getId());
352 ashish 8168
 
8169
      case PARAMS:
8170
        return getParams();
8171
 
8172
      }
8173
      throw new IllegalStateException();
8174
    }
8175
 
3430 rajveer 8176
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8177
    public boolean isSet(_Fields field) {
8178
      if (field == null) {
8179
        throw new IllegalArgumentException();
8180
      }
352 ashish 8181
 
8182
      switch (field) {
8183
      case ID:
8184
        return isSetId();
8185
      case PARAMS:
8186
        return isSetParams();
8187
      }
8188
      throw new IllegalStateException();
8189
    }
8190
 
8191
    @Override
8192
    public boolean equals(Object that) {
8193
      if (that == null)
8194
        return false;
8195
      if (that instanceof getSubstitutedMessage_args)
8196
        return this.equals((getSubstitutedMessage_args)that);
8197
      return false;
8198
    }
8199
 
8200
    public boolean equals(getSubstitutedMessage_args that) {
8201
      if (that == null)
8202
        return false;
8203
 
8204
      boolean this_present_id = true;
8205
      boolean that_present_id = true;
8206
      if (this_present_id || that_present_id) {
8207
        if (!(this_present_id && that_present_id))
8208
          return false;
8209
        if (this.id != that.id)
8210
          return false;
8211
      }
8212
 
8213
      boolean this_present_params = true && this.isSetParams();
8214
      boolean that_present_params = true && that.isSetParams();
8215
      if (this_present_params || that_present_params) {
8216
        if (!(this_present_params && that_present_params))
8217
          return false;
8218
        if (!this.params.equals(that.params))
8219
          return false;
8220
      }
8221
 
8222
      return true;
8223
    }
8224
 
8225
    @Override
8226
    public int hashCode() {
8227
      return 0;
8228
    }
8229
 
3430 rajveer 8230
    public int compareTo(getSubstitutedMessage_args other) {
8231
      if (!getClass().equals(other.getClass())) {
8232
        return getClass().getName().compareTo(other.getClass().getName());
8233
      }
8234
 
8235
      int lastComparison = 0;
8236
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8237
 
8238
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8239
      if (lastComparison != 0) {
8240
        return lastComparison;
8241
      }
8242
      if (isSetId()) {
8243
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8244
        if (lastComparison != 0) {
8245
          return lastComparison;
8246
        }
8247
      }
8248
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8249
      if (lastComparison != 0) {
8250
        return lastComparison;
8251
      }
8252
      if (isSetParams()) {
8253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8254
        if (lastComparison != 0) {
8255
          return lastComparison;
8256
        }
8257
      }
8258
      return 0;
8259
    }
8260
 
8261
    public _Fields fieldForId(int fieldId) {
8262
      return _Fields.findByThriftId(fieldId);
8263
    }
8264
 
8265
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8266
      org.apache.thrift.protocol.TField field;
352 ashish 8267
      iprot.readStructBegin();
8268
      while (true)
8269
      {
8270
        field = iprot.readFieldBegin();
3430 rajveer 8271
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8272
          break;
8273
        }
3430 rajveer 8274
        switch (field.id) {
8275
          case 1: // ID
8276
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8277
              this.id = iprot.readI64();
8278
              setIdIsSet(true);
8279
            } else { 
8280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8281
            }
8282
            break;
8283
          case 2: // PARAMS
8284
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8285
              {
8286
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
8287
                this.params = new HashMap<String,String>(2*_map12.size);
8288
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
352 ashish 8289
                {
3430 rajveer 8290
                  String _key14; // required
8291
                  String _val15; // required
8292
                  _key14 = iprot.readString();
8293
                  _val15 = iprot.readString();
8294
                  this.params.put(_key14, _val15);
352 ashish 8295
                }
3430 rajveer 8296
                iprot.readMapEnd();
352 ashish 8297
              }
3430 rajveer 8298
            } else { 
8299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8300
            }
8301
            break;
8302
          default:
8303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8304
        }
3430 rajveer 8305
        iprot.readFieldEnd();
352 ashish 8306
      }
8307
      iprot.readStructEnd();
8308
      validate();
8309
    }
8310
 
3430 rajveer 8311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8312
      validate();
8313
 
8314
      oprot.writeStructBegin(STRUCT_DESC);
8315
      oprot.writeFieldBegin(ID_FIELD_DESC);
8316
      oprot.writeI64(this.id);
8317
      oprot.writeFieldEnd();
8318
      if (this.params != null) {
8319
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8320
        {
3430 rajveer 8321
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
1422 varun.gupt 8322
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
352 ashish 8323
          {
1422 varun.gupt 8324
            oprot.writeString(_iter16.getKey());
8325
            oprot.writeString(_iter16.getValue());
352 ashish 8326
          }
8327
          oprot.writeMapEnd();
8328
        }
8329
        oprot.writeFieldEnd();
8330
      }
8331
      oprot.writeFieldStop();
8332
      oprot.writeStructEnd();
8333
    }
8334
 
8335
    @Override
8336
    public String toString() {
8337
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8338
      boolean first = true;
8339
 
8340
      sb.append("id:");
8341
      sb.append(this.id);
8342
      first = false;
8343
      if (!first) sb.append(", ");
8344
      sb.append("params:");
8345
      if (this.params == null) {
8346
        sb.append("null");
8347
      } else {
8348
        sb.append(this.params);
8349
      }
8350
      first = false;
8351
      sb.append(")");
8352
      return sb.toString();
8353
    }
8354
 
3430 rajveer 8355
    public void validate() throws org.apache.thrift.TException {
352 ashish 8356
      // check for required fields
8357
    }
8358
 
3430 rajveer 8359
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8360
      try {
8361
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8362
      } catch (org.apache.thrift.TException te) {
8363
        throw new java.io.IOException(te);
8364
      }
8365
    }
8366
 
8367
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8368
      try {
8369
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8370
        __isset_bit_vector = new BitSet(1);
8371
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8372
      } catch (org.apache.thrift.TException te) {
8373
        throw new java.io.IOException(te);
8374
      }
8375
    }
8376
 
352 ashish 8377
  }
8378
 
3430 rajveer 8379
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8381
 
3430 rajveer 8382
    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);
8383
    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 8384
 
3430 rajveer 8385
    private Message success; // required
8386
    private HelperServiceException se; // required
352 ashish 8387
 
8388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8389
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8390
      SUCCESS((short)0, "success"),
8391
      SE((short)1, "se");
8392
 
8393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8394
 
8395
      static {
8396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8397
          byName.put(field.getFieldName(), field);
8398
        }
8399
      }
8400
 
8401
      /**
8402
       * Find the _Fields constant that matches fieldId, or null if its not found.
8403
       */
8404
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8405
        switch(fieldId) {
8406
          case 0: // SUCCESS
8407
            return SUCCESS;
8408
          case 1: // SE
8409
            return SE;
8410
          default:
8411
            return null;
8412
        }
352 ashish 8413
      }
8414
 
8415
      /**
8416
       * Find the _Fields constant that matches fieldId, throwing an exception
8417
       * if it is not found.
8418
       */
8419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8420
        _Fields fields = findByThriftId(fieldId);
8421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8422
        return fields;
8423
      }
8424
 
8425
      /**
8426
       * Find the _Fields constant that matches name, or null if its not found.
8427
       */
8428
      public static _Fields findByName(String name) {
8429
        return byName.get(name);
8430
      }
8431
 
8432
      private final short _thriftId;
8433
      private final String _fieldName;
8434
 
8435
      _Fields(short thriftId, String fieldName) {
8436
        _thriftId = thriftId;
8437
        _fieldName = fieldName;
8438
      }
8439
 
8440
      public short getThriftFieldId() {
8441
        return _thriftId;
8442
      }
8443
 
8444
      public String getFieldName() {
8445
        return _fieldName;
8446
      }
8447
    }
8448
 
8449
    // isset id assignments
8450
 
3430 rajveer 8451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8452
    static {
3430 rajveer 8453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8454
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8455
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8456
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8457
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8458
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8459
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8460
    }
8461
 
8462
    public getSubstitutedMessage_result() {
8463
    }
8464
 
8465
    public getSubstitutedMessage_result(
8466
      Message success,
8467
      HelperServiceException se)
8468
    {
8469
      this();
8470
      this.success = success;
8471
      this.se = se;
8472
    }
8473
 
8474
    /**
8475
     * Performs a deep copy on <i>other</i>.
8476
     */
8477
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8478
      if (other.isSetSuccess()) {
8479
        this.success = new Message(other.success);
8480
      }
8481
      if (other.isSetSe()) {
8482
        this.se = new HelperServiceException(other.se);
8483
      }
8484
    }
8485
 
8486
    public getSubstitutedMessage_result deepCopy() {
8487
      return new getSubstitutedMessage_result(this);
8488
    }
8489
 
3430 rajveer 8490
    @Override
8491
    public void clear() {
8492
      this.success = null;
8493
      this.se = null;
352 ashish 8494
    }
8495
 
8496
    public Message getSuccess() {
8497
      return this.success;
8498
    }
8499
 
3430 rajveer 8500
    public void setSuccess(Message success) {
352 ashish 8501
      this.success = success;
8502
    }
8503
 
8504
    public void unsetSuccess() {
8505
      this.success = null;
8506
    }
8507
 
3430 rajveer 8508
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8509
    public boolean isSetSuccess() {
8510
      return this.success != null;
8511
    }
8512
 
8513
    public void setSuccessIsSet(boolean value) {
8514
      if (!value) {
8515
        this.success = null;
8516
      }
8517
    }
8518
 
8519
    public HelperServiceException getSe() {
8520
      return this.se;
8521
    }
8522
 
3430 rajveer 8523
    public void setSe(HelperServiceException se) {
352 ashish 8524
      this.se = se;
8525
    }
8526
 
8527
    public void unsetSe() {
8528
      this.se = null;
8529
    }
8530
 
3430 rajveer 8531
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8532
    public boolean isSetSe() {
8533
      return this.se != null;
8534
    }
8535
 
8536
    public void setSeIsSet(boolean value) {
8537
      if (!value) {
8538
        this.se = null;
8539
      }
8540
    }
8541
 
8542
    public void setFieldValue(_Fields field, Object value) {
8543
      switch (field) {
8544
      case SUCCESS:
8545
        if (value == null) {
8546
          unsetSuccess();
8547
        } else {
8548
          setSuccess((Message)value);
8549
        }
8550
        break;
8551
 
8552
      case SE:
8553
        if (value == null) {
8554
          unsetSe();
8555
        } else {
8556
          setSe((HelperServiceException)value);
8557
        }
8558
        break;
8559
 
8560
      }
8561
    }
8562
 
8563
    public Object getFieldValue(_Fields field) {
8564
      switch (field) {
8565
      case SUCCESS:
8566
        return getSuccess();
8567
 
8568
      case SE:
8569
        return getSe();
8570
 
8571
      }
8572
      throw new IllegalStateException();
8573
    }
8574
 
3430 rajveer 8575
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8576
    public boolean isSet(_Fields field) {
8577
      if (field == null) {
8578
        throw new IllegalArgumentException();
8579
      }
352 ashish 8580
 
8581
      switch (field) {
8582
      case SUCCESS:
8583
        return isSetSuccess();
8584
      case SE:
8585
        return isSetSe();
8586
      }
8587
      throw new IllegalStateException();
8588
    }
8589
 
8590
    @Override
8591
    public boolean equals(Object that) {
8592
      if (that == null)
8593
        return false;
8594
      if (that instanceof getSubstitutedMessage_result)
8595
        return this.equals((getSubstitutedMessage_result)that);
8596
      return false;
8597
    }
8598
 
8599
    public boolean equals(getSubstitutedMessage_result that) {
8600
      if (that == null)
8601
        return false;
8602
 
8603
      boolean this_present_success = true && this.isSetSuccess();
8604
      boolean that_present_success = true && that.isSetSuccess();
8605
      if (this_present_success || that_present_success) {
8606
        if (!(this_present_success && that_present_success))
8607
          return false;
8608
        if (!this.success.equals(that.success))
8609
          return false;
8610
      }
8611
 
8612
      boolean this_present_se = true && this.isSetSe();
8613
      boolean that_present_se = true && that.isSetSe();
8614
      if (this_present_se || that_present_se) {
8615
        if (!(this_present_se && that_present_se))
8616
          return false;
8617
        if (!this.se.equals(that.se))
8618
          return false;
8619
      }
8620
 
8621
      return true;
8622
    }
8623
 
8624
    @Override
8625
    public int hashCode() {
8626
      return 0;
8627
    }
8628
 
8629
    public int compareTo(getSubstitutedMessage_result other) {
8630
      if (!getClass().equals(other.getClass())) {
8631
        return getClass().getName().compareTo(other.getClass().getName());
8632
      }
8633
 
8634
      int lastComparison = 0;
8635
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
8636
 
3430 rajveer 8637
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8638
      if (lastComparison != 0) {
8639
        return lastComparison;
8640
      }
3430 rajveer 8641
      if (isSetSuccess()) {
8642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8643
        if (lastComparison != 0) {
8644
          return lastComparison;
8645
        }
352 ashish 8646
      }
3430 rajveer 8647
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8648
      if (lastComparison != 0) {
8649
        return lastComparison;
8650
      }
3430 rajveer 8651
      if (isSetSe()) {
8652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8653
        if (lastComparison != 0) {
8654
          return lastComparison;
8655
        }
352 ashish 8656
      }
8657
      return 0;
8658
    }
8659
 
3430 rajveer 8660
    public _Fields fieldForId(int fieldId) {
8661
      return _Fields.findByThriftId(fieldId);
8662
    }
8663
 
8664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8665
      org.apache.thrift.protocol.TField field;
352 ashish 8666
      iprot.readStructBegin();
8667
      while (true)
8668
      {
8669
        field = iprot.readFieldBegin();
3430 rajveer 8670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8671
          break;
8672
        }
3430 rajveer 8673
        switch (field.id) {
8674
          case 0: // SUCCESS
8675
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8676
              this.success = new Message();
8677
              this.success.read(iprot);
8678
            } else { 
8679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8680
            }
8681
            break;
8682
          case 1: // SE
8683
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8684
              this.se = new HelperServiceException();
8685
              this.se.read(iprot);
8686
            } else { 
8687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8688
            }
8689
            break;
8690
          default:
8691
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8692
        }
3430 rajveer 8693
        iprot.readFieldEnd();
352 ashish 8694
      }
8695
      iprot.readStructEnd();
8696
      validate();
8697
    }
8698
 
3430 rajveer 8699
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8700
      oprot.writeStructBegin(STRUCT_DESC);
8701
 
8702
      if (this.isSetSuccess()) {
8703
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8704
        this.success.write(oprot);
8705
        oprot.writeFieldEnd();
8706
      } else if (this.isSetSe()) {
8707
        oprot.writeFieldBegin(SE_FIELD_DESC);
8708
        this.se.write(oprot);
8709
        oprot.writeFieldEnd();
8710
      }
8711
      oprot.writeFieldStop();
8712
      oprot.writeStructEnd();
8713
    }
8714
 
8715
    @Override
8716
    public String toString() {
8717
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
8718
      boolean first = true;
8719
 
8720
      sb.append("success:");
8721
      if (this.success == null) {
8722
        sb.append("null");
8723
      } else {
8724
        sb.append(this.success);
8725
      }
8726
      first = false;
8727
      if (!first) sb.append(", ");
8728
      sb.append("se:");
8729
      if (this.se == null) {
8730
        sb.append("null");
8731
      } else {
8732
        sb.append(this.se);
8733
      }
8734
      first = false;
8735
      sb.append(")");
8736
      return sb.toString();
8737
    }
8738
 
3430 rajveer 8739
    public void validate() throws org.apache.thrift.TException {
352 ashish 8740
      // check for required fields
8741
    }
8742
 
3430 rajveer 8743
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8744
      try {
8745
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8746
      } catch (org.apache.thrift.TException te) {
8747
        throw new java.io.IOException(te);
8748
      }
8749
    }
8750
 
8751
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8752
      try {
8753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8754
      } catch (org.apache.thrift.TException te) {
8755
        throw new java.io.IOException(te);
8756
      }
8757
    }
8758
 
352 ashish 8759
  }
8760
 
3430 rajveer 8761
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
8762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 8763
 
3430 rajveer 8764
    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);
8765
    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);
8766
    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 8767
 
3430 rajveer 8768
    private String username; // required
8769
    private String password; // required
8770
    private long warehouseId; // required
495 rajveer 8771
 
8772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8774
      USERNAME((short)1, "username"),
8775
      PASSWORD((short)2, "password"),
8776
      WAREHOUSE_ID((short)3, "warehouseId");
8777
 
8778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8779
 
8780
      static {
8781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8782
          byName.put(field.getFieldName(), field);
8783
        }
8784
      }
8785
 
8786
      /**
8787
       * Find the _Fields constant that matches fieldId, or null if its not found.
8788
       */
8789
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8790
        switch(fieldId) {
8791
          case 1: // USERNAME
8792
            return USERNAME;
8793
          case 2: // PASSWORD
8794
            return PASSWORD;
8795
          case 3: // WAREHOUSE_ID
8796
            return WAREHOUSE_ID;
8797
          default:
8798
            return null;
8799
        }
495 rajveer 8800
      }
8801
 
8802
      /**
8803
       * Find the _Fields constant that matches fieldId, throwing an exception
8804
       * if it is not found.
8805
       */
8806
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8807
        _Fields fields = findByThriftId(fieldId);
8808
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8809
        return fields;
8810
      }
8811
 
8812
      /**
8813
       * Find the _Fields constant that matches name, or null if its not found.
8814
       */
8815
      public static _Fields findByName(String name) {
8816
        return byName.get(name);
8817
      }
8818
 
8819
      private final short _thriftId;
8820
      private final String _fieldName;
8821
 
8822
      _Fields(short thriftId, String fieldName) {
8823
        _thriftId = thriftId;
8824
        _fieldName = fieldName;
8825
      }
8826
 
8827
      public short getThriftFieldId() {
8828
        return _thriftId;
8829
      }
8830
 
8831
      public String getFieldName() {
8832
        return _fieldName;
8833
      }
8834
    }
8835
 
8836
    // isset id assignments
8837
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8838
    private BitSet __isset_bit_vector = new BitSet(1);
8839
 
3430 rajveer 8840
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8841
    static {
3430 rajveer 8842
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8843
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8844
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8845
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8846
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8847
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8849
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8850
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 8851
    }
8852
 
8853
    public addUser_args() {
8854
    }
8855
 
8856
    public addUser_args(
8857
      String username,
8858
      String password,
8859
      long warehouseId)
8860
    {
8861
      this();
8862
      this.username = username;
8863
      this.password = password;
8864
      this.warehouseId = warehouseId;
8865
      setWarehouseIdIsSet(true);
8866
    }
8867
 
8868
    /**
8869
     * Performs a deep copy on <i>other</i>.
8870
     */
8871
    public addUser_args(addUser_args other) {
8872
      __isset_bit_vector.clear();
8873
      __isset_bit_vector.or(other.__isset_bit_vector);
8874
      if (other.isSetUsername()) {
8875
        this.username = other.username;
8876
      }
8877
      if (other.isSetPassword()) {
8878
        this.password = other.password;
8879
      }
8880
      this.warehouseId = other.warehouseId;
8881
    }
8882
 
8883
    public addUser_args deepCopy() {
8884
      return new addUser_args(this);
8885
    }
8886
 
3430 rajveer 8887
    @Override
8888
    public void clear() {
8889
      this.username = null;
8890
      this.password = null;
8891
      setWarehouseIdIsSet(false);
8892
      this.warehouseId = 0;
495 rajveer 8893
    }
8894
 
8895
    public String getUsername() {
8896
      return this.username;
8897
    }
8898
 
3430 rajveer 8899
    public void setUsername(String username) {
495 rajveer 8900
      this.username = username;
8901
    }
8902
 
8903
    public void unsetUsername() {
8904
      this.username = null;
8905
    }
8906
 
3430 rajveer 8907
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8908
    public boolean isSetUsername() {
8909
      return this.username != null;
8910
    }
8911
 
8912
    public void setUsernameIsSet(boolean value) {
8913
      if (!value) {
8914
        this.username = null;
8915
      }
8916
    }
8917
 
8918
    public String getPassword() {
8919
      return this.password;
8920
    }
8921
 
3430 rajveer 8922
    public void setPassword(String password) {
495 rajveer 8923
      this.password = password;
8924
    }
8925
 
8926
    public void unsetPassword() {
8927
      this.password = null;
8928
    }
8929
 
3430 rajveer 8930
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 8931
    public boolean isSetPassword() {
8932
      return this.password != null;
8933
    }
8934
 
8935
    public void setPasswordIsSet(boolean value) {
8936
      if (!value) {
8937
        this.password = null;
8938
      }
8939
    }
8940
 
8941
    public long getWarehouseId() {
8942
      return this.warehouseId;
8943
    }
8944
 
3430 rajveer 8945
    public void setWarehouseId(long warehouseId) {
495 rajveer 8946
      this.warehouseId = warehouseId;
8947
      setWarehouseIdIsSet(true);
8948
    }
8949
 
8950
    public void unsetWarehouseId() {
8951
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8952
    }
8953
 
3430 rajveer 8954
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 8955
    public boolean isSetWarehouseId() {
8956
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8957
    }
8958
 
8959
    public void setWarehouseIdIsSet(boolean value) {
8960
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8961
    }
8962
 
8963
    public void setFieldValue(_Fields field, Object value) {
8964
      switch (field) {
8965
      case USERNAME:
8966
        if (value == null) {
8967
          unsetUsername();
8968
        } else {
8969
          setUsername((String)value);
8970
        }
8971
        break;
8972
 
8973
      case PASSWORD:
8974
        if (value == null) {
8975
          unsetPassword();
8976
        } else {
8977
          setPassword((String)value);
8978
        }
8979
        break;
8980
 
8981
      case WAREHOUSE_ID:
8982
        if (value == null) {
8983
          unsetWarehouseId();
8984
        } else {
8985
          setWarehouseId((Long)value);
8986
        }
8987
        break;
8988
 
8989
      }
8990
    }
8991
 
8992
    public Object getFieldValue(_Fields field) {
8993
      switch (field) {
8994
      case USERNAME:
8995
        return getUsername();
8996
 
8997
      case PASSWORD:
8998
        return getPassword();
8999
 
9000
      case WAREHOUSE_ID:
3430 rajveer 9001
        return Long.valueOf(getWarehouseId());
495 rajveer 9002
 
9003
      }
9004
      throw new IllegalStateException();
9005
    }
9006
 
3430 rajveer 9007
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9008
    public boolean isSet(_Fields field) {
9009
      if (field == null) {
9010
        throw new IllegalArgumentException();
9011
      }
495 rajveer 9012
 
9013
      switch (field) {
9014
      case USERNAME:
9015
        return isSetUsername();
9016
      case PASSWORD:
9017
        return isSetPassword();
9018
      case WAREHOUSE_ID:
9019
        return isSetWarehouseId();
9020
      }
9021
      throw new IllegalStateException();
9022
    }
9023
 
9024
    @Override
9025
    public boolean equals(Object that) {
9026
      if (that == null)
9027
        return false;
9028
      if (that instanceof addUser_args)
9029
        return this.equals((addUser_args)that);
9030
      return false;
9031
    }
9032
 
9033
    public boolean equals(addUser_args that) {
9034
      if (that == null)
9035
        return false;
9036
 
9037
      boolean this_present_username = true && this.isSetUsername();
9038
      boolean that_present_username = true && that.isSetUsername();
9039
      if (this_present_username || that_present_username) {
9040
        if (!(this_present_username && that_present_username))
9041
          return false;
9042
        if (!this.username.equals(that.username))
9043
          return false;
9044
      }
9045
 
9046
      boolean this_present_password = true && this.isSetPassword();
9047
      boolean that_present_password = true && that.isSetPassword();
9048
      if (this_present_password || that_present_password) {
9049
        if (!(this_present_password && that_present_password))
9050
          return false;
9051
        if (!this.password.equals(that.password))
9052
          return false;
9053
      }
9054
 
9055
      boolean this_present_warehouseId = true;
9056
      boolean that_present_warehouseId = true;
9057
      if (this_present_warehouseId || that_present_warehouseId) {
9058
        if (!(this_present_warehouseId && that_present_warehouseId))
9059
          return false;
9060
        if (this.warehouseId != that.warehouseId)
9061
          return false;
9062
      }
9063
 
9064
      return true;
9065
    }
9066
 
9067
    @Override
9068
    public int hashCode() {
9069
      return 0;
9070
    }
9071
 
9072
    public int compareTo(addUser_args other) {
9073
      if (!getClass().equals(other.getClass())) {
9074
        return getClass().getName().compareTo(other.getClass().getName());
9075
      }
9076
 
9077
      int lastComparison = 0;
9078
      addUser_args typedOther = (addUser_args)other;
9079
 
3430 rajveer 9080
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9081
      if (lastComparison != 0) {
9082
        return lastComparison;
9083
      }
3430 rajveer 9084
      if (isSetUsername()) {
9085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9086
        if (lastComparison != 0) {
9087
          return lastComparison;
9088
        }
495 rajveer 9089
      }
3430 rajveer 9090
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9091
      if (lastComparison != 0) {
9092
        return lastComparison;
9093
      }
3430 rajveer 9094
      if (isSetPassword()) {
9095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9096
        if (lastComparison != 0) {
9097
          return lastComparison;
9098
        }
495 rajveer 9099
      }
3430 rajveer 9100
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9101
      if (lastComparison != 0) {
9102
        return lastComparison;
9103
      }
3430 rajveer 9104
      if (isSetWarehouseId()) {
9105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9106
        if (lastComparison != 0) {
9107
          return lastComparison;
9108
        }
495 rajveer 9109
      }
9110
      return 0;
9111
    }
9112
 
3430 rajveer 9113
    public _Fields fieldForId(int fieldId) {
9114
      return _Fields.findByThriftId(fieldId);
9115
    }
9116
 
9117
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9118
      org.apache.thrift.protocol.TField field;
495 rajveer 9119
      iprot.readStructBegin();
9120
      while (true)
9121
      {
9122
        field = iprot.readFieldBegin();
3430 rajveer 9123
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9124
          break;
9125
        }
3430 rajveer 9126
        switch (field.id) {
9127
          case 1: // USERNAME
9128
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9129
              this.username = iprot.readString();
9130
            } else { 
9131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9132
            }
9133
            break;
9134
          case 2: // PASSWORD
9135
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9136
              this.password = iprot.readString();
9137
            } else { 
9138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9139
            }
9140
            break;
9141
          case 3: // WAREHOUSE_ID
9142
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9143
              this.warehouseId = iprot.readI64();
9144
              setWarehouseIdIsSet(true);
9145
            } else { 
9146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9147
            }
9148
            break;
9149
          default:
9150
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9151
        }
3430 rajveer 9152
        iprot.readFieldEnd();
495 rajveer 9153
      }
9154
      iprot.readStructEnd();
9155
      validate();
9156
    }
9157
 
3430 rajveer 9158
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9159
      validate();
9160
 
9161
      oprot.writeStructBegin(STRUCT_DESC);
9162
      if (this.username != null) {
9163
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9164
        oprot.writeString(this.username);
9165
        oprot.writeFieldEnd();
9166
      }
9167
      if (this.password != null) {
9168
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9169
        oprot.writeString(this.password);
9170
        oprot.writeFieldEnd();
9171
      }
9172
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9173
      oprot.writeI64(this.warehouseId);
9174
      oprot.writeFieldEnd();
9175
      oprot.writeFieldStop();
9176
      oprot.writeStructEnd();
9177
    }
9178
 
9179
    @Override
9180
    public String toString() {
9181
      StringBuilder sb = new StringBuilder("addUser_args(");
9182
      boolean first = true;
9183
 
9184
      sb.append("username:");
9185
      if (this.username == null) {
9186
        sb.append("null");
9187
      } else {
9188
        sb.append(this.username);
9189
      }
9190
      first = false;
9191
      if (!first) sb.append(", ");
9192
      sb.append("password:");
9193
      if (this.password == null) {
9194
        sb.append("null");
9195
      } else {
9196
        sb.append(this.password);
9197
      }
9198
      first = false;
9199
      if (!first) sb.append(", ");
9200
      sb.append("warehouseId:");
9201
      sb.append(this.warehouseId);
9202
      first = false;
9203
      sb.append(")");
9204
      return sb.toString();
9205
    }
9206
 
3430 rajveer 9207
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9208
      // check for required fields
9209
    }
9210
 
3430 rajveer 9211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9212
      try {
9213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9214
      } catch (org.apache.thrift.TException te) {
9215
        throw new java.io.IOException(te);
9216
      }
9217
    }
9218
 
9219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9220
      try {
9221
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9222
        __isset_bit_vector = new BitSet(1);
9223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9224
      } catch (org.apache.thrift.TException te) {
9225
        throw new java.io.IOException(te);
9226
      }
9227
    }
9228
 
495 rajveer 9229
  }
9230
 
3430 rajveer 9231
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9233
 
3430 rajveer 9234
    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);
9235
    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 9236
 
3430 rajveer 9237
    private boolean success; // required
9238
    private HelperServiceException se; // required
495 rajveer 9239
 
9240
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9241
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9242
      SUCCESS((short)0, "success"),
9243
      SE((short)1, "se");
9244
 
9245
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9246
 
9247
      static {
9248
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9249
          byName.put(field.getFieldName(), field);
9250
        }
9251
      }
9252
 
9253
      /**
9254
       * Find the _Fields constant that matches fieldId, or null if its not found.
9255
       */
9256
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9257
        switch(fieldId) {
9258
          case 0: // SUCCESS
9259
            return SUCCESS;
9260
          case 1: // SE
9261
            return SE;
9262
          default:
9263
            return null;
9264
        }
495 rajveer 9265
      }
9266
 
9267
      /**
9268
       * Find the _Fields constant that matches fieldId, throwing an exception
9269
       * if it is not found.
9270
       */
9271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9272
        _Fields fields = findByThriftId(fieldId);
9273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9274
        return fields;
9275
      }
9276
 
9277
      /**
9278
       * Find the _Fields constant that matches name, or null if its not found.
9279
       */
9280
      public static _Fields findByName(String name) {
9281
        return byName.get(name);
9282
      }
9283
 
9284
      private final short _thriftId;
9285
      private final String _fieldName;
9286
 
9287
      _Fields(short thriftId, String fieldName) {
9288
        _thriftId = thriftId;
9289
        _fieldName = fieldName;
9290
      }
9291
 
9292
      public short getThriftFieldId() {
9293
        return _thriftId;
9294
      }
9295
 
9296
      public String getFieldName() {
9297
        return _fieldName;
9298
      }
9299
    }
9300
 
9301
    // isset id assignments
9302
    private static final int __SUCCESS_ISSET_ID = 0;
9303
    private BitSet __isset_bit_vector = new BitSet(1);
9304
 
3430 rajveer 9305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9306
    static {
3430 rajveer 9307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9308
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9310
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9314
    }
9315
 
9316
    public addUser_result() {
9317
    }
9318
 
9319
    public addUser_result(
9320
      boolean success,
9321
      HelperServiceException se)
9322
    {
9323
      this();
9324
      this.success = success;
9325
      setSuccessIsSet(true);
9326
      this.se = se;
9327
    }
9328
 
9329
    /**
9330
     * Performs a deep copy on <i>other</i>.
9331
     */
9332
    public addUser_result(addUser_result other) {
9333
      __isset_bit_vector.clear();
9334
      __isset_bit_vector.or(other.__isset_bit_vector);
9335
      this.success = other.success;
9336
      if (other.isSetSe()) {
9337
        this.se = new HelperServiceException(other.se);
9338
      }
9339
    }
9340
 
9341
    public addUser_result deepCopy() {
9342
      return new addUser_result(this);
9343
    }
9344
 
3430 rajveer 9345
    @Override
9346
    public void clear() {
9347
      setSuccessIsSet(false);
9348
      this.success = false;
9349
      this.se = null;
495 rajveer 9350
    }
9351
 
9352
    public boolean isSuccess() {
9353
      return this.success;
9354
    }
9355
 
3430 rajveer 9356
    public void setSuccess(boolean success) {
495 rajveer 9357
      this.success = success;
9358
      setSuccessIsSet(true);
9359
    }
9360
 
9361
    public void unsetSuccess() {
9362
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9363
    }
9364
 
3430 rajveer 9365
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9366
    public boolean isSetSuccess() {
9367
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9368
    }
9369
 
9370
    public void setSuccessIsSet(boolean value) {
9371
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9372
    }
9373
 
9374
    public HelperServiceException getSe() {
9375
      return this.se;
9376
    }
9377
 
3430 rajveer 9378
    public void setSe(HelperServiceException se) {
495 rajveer 9379
      this.se = se;
9380
    }
9381
 
9382
    public void unsetSe() {
9383
      this.se = null;
9384
    }
9385
 
3430 rajveer 9386
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9387
    public boolean isSetSe() {
9388
      return this.se != null;
9389
    }
9390
 
9391
    public void setSeIsSet(boolean value) {
9392
      if (!value) {
9393
        this.se = null;
9394
      }
9395
    }
9396
 
9397
    public void setFieldValue(_Fields field, Object value) {
9398
      switch (field) {
9399
      case SUCCESS:
9400
        if (value == null) {
9401
          unsetSuccess();
9402
        } else {
9403
          setSuccess((Boolean)value);
9404
        }
9405
        break;
9406
 
9407
      case SE:
9408
        if (value == null) {
9409
          unsetSe();
9410
        } else {
9411
          setSe((HelperServiceException)value);
9412
        }
9413
        break;
9414
 
9415
      }
9416
    }
9417
 
9418
    public Object getFieldValue(_Fields field) {
9419
      switch (field) {
9420
      case SUCCESS:
3430 rajveer 9421
        return Boolean.valueOf(isSuccess());
495 rajveer 9422
 
9423
      case SE:
9424
        return getSe();
9425
 
9426
      }
9427
      throw new IllegalStateException();
9428
    }
9429
 
3430 rajveer 9430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9431
    public boolean isSet(_Fields field) {
9432
      if (field == null) {
9433
        throw new IllegalArgumentException();
9434
      }
495 rajveer 9435
 
9436
      switch (field) {
9437
      case SUCCESS:
9438
        return isSetSuccess();
9439
      case SE:
9440
        return isSetSe();
9441
      }
9442
      throw new IllegalStateException();
9443
    }
9444
 
9445
    @Override
9446
    public boolean equals(Object that) {
9447
      if (that == null)
9448
        return false;
9449
      if (that instanceof addUser_result)
9450
        return this.equals((addUser_result)that);
9451
      return false;
9452
    }
9453
 
9454
    public boolean equals(addUser_result that) {
9455
      if (that == null)
9456
        return false;
9457
 
9458
      boolean this_present_success = true;
9459
      boolean that_present_success = true;
9460
      if (this_present_success || that_present_success) {
9461
        if (!(this_present_success && that_present_success))
9462
          return false;
9463
        if (this.success != that.success)
9464
          return false;
9465
      }
9466
 
9467
      boolean this_present_se = true && this.isSetSe();
9468
      boolean that_present_se = true && that.isSetSe();
9469
      if (this_present_se || that_present_se) {
9470
        if (!(this_present_se && that_present_se))
9471
          return false;
9472
        if (!this.se.equals(that.se))
9473
          return false;
9474
      }
9475
 
9476
      return true;
9477
    }
9478
 
9479
    @Override
9480
    public int hashCode() {
9481
      return 0;
9482
    }
9483
 
9484
    public int compareTo(addUser_result other) {
9485
      if (!getClass().equals(other.getClass())) {
9486
        return getClass().getName().compareTo(other.getClass().getName());
9487
      }
9488
 
9489
      int lastComparison = 0;
9490
      addUser_result typedOther = (addUser_result)other;
9491
 
3430 rajveer 9492
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9493
      if (lastComparison != 0) {
9494
        return lastComparison;
9495
      }
3430 rajveer 9496
      if (isSetSuccess()) {
9497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9498
        if (lastComparison != 0) {
9499
          return lastComparison;
9500
        }
495 rajveer 9501
      }
3430 rajveer 9502
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9503
      if (lastComparison != 0) {
9504
        return lastComparison;
9505
      }
3430 rajveer 9506
      if (isSetSe()) {
9507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9508
        if (lastComparison != 0) {
9509
          return lastComparison;
9510
        }
495 rajveer 9511
      }
9512
      return 0;
9513
    }
9514
 
3430 rajveer 9515
    public _Fields fieldForId(int fieldId) {
9516
      return _Fields.findByThriftId(fieldId);
9517
    }
9518
 
9519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9520
      org.apache.thrift.protocol.TField field;
495 rajveer 9521
      iprot.readStructBegin();
9522
      while (true)
9523
      {
9524
        field = iprot.readFieldBegin();
3430 rajveer 9525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9526
          break;
9527
        }
3430 rajveer 9528
        switch (field.id) {
9529
          case 0: // SUCCESS
9530
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9531
              this.success = iprot.readBool();
9532
              setSuccessIsSet(true);
9533
            } else { 
9534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9535
            }
9536
            break;
9537
          case 1: // SE
9538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9539
              this.se = new HelperServiceException();
9540
              this.se.read(iprot);
9541
            } else { 
9542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9543
            }
9544
            break;
9545
          default:
9546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9547
        }
3430 rajveer 9548
        iprot.readFieldEnd();
495 rajveer 9549
      }
9550
      iprot.readStructEnd();
9551
      validate();
9552
    }
9553
 
3430 rajveer 9554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9555
      oprot.writeStructBegin(STRUCT_DESC);
9556
 
9557
      if (this.isSetSuccess()) {
9558
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9559
        oprot.writeBool(this.success);
9560
        oprot.writeFieldEnd();
9561
      } else if (this.isSetSe()) {
9562
        oprot.writeFieldBegin(SE_FIELD_DESC);
9563
        this.se.write(oprot);
9564
        oprot.writeFieldEnd();
9565
      }
9566
      oprot.writeFieldStop();
9567
      oprot.writeStructEnd();
9568
    }
9569
 
9570
    @Override
9571
    public String toString() {
9572
      StringBuilder sb = new StringBuilder("addUser_result(");
9573
      boolean first = true;
9574
 
9575
      sb.append("success:");
9576
      sb.append(this.success);
9577
      first = false;
9578
      if (!first) sb.append(", ");
9579
      sb.append("se:");
9580
      if (this.se == null) {
9581
        sb.append("null");
9582
      } else {
9583
        sb.append(this.se);
9584
      }
9585
      first = false;
9586
      sb.append(")");
9587
      return sb.toString();
9588
    }
9589
 
3430 rajveer 9590
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9591
      // check for required fields
9592
    }
9593
 
3430 rajveer 9594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9595
      try {
9596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9597
      } catch (org.apache.thrift.TException te) {
9598
        throw new java.io.IOException(te);
9599
      }
9600
    }
9601
 
9602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9603
      try {
9604
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9605
      } catch (org.apache.thrift.TException te) {
9606
        throw new java.io.IOException(te);
9607
      }
9608
    }
9609
 
495 rajveer 9610
  }
9611
 
3430 rajveer 9612
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9613
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9614
 
3430 rajveer 9615
    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 9616
 
3430 rajveer 9617
    private String username; // required
495 rajveer 9618
 
9619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9621
      USERNAME((short)1, "username");
9622
 
9623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9624
 
9625
      static {
9626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9627
          byName.put(field.getFieldName(), field);
9628
        }
9629
      }
9630
 
9631
      /**
9632
       * Find the _Fields constant that matches fieldId, or null if its not found.
9633
       */
9634
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9635
        switch(fieldId) {
9636
          case 1: // USERNAME
9637
            return USERNAME;
9638
          default:
9639
            return null;
9640
        }
495 rajveer 9641
      }
9642
 
9643
      /**
9644
       * Find the _Fields constant that matches fieldId, throwing an exception
9645
       * if it is not found.
9646
       */
9647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9648
        _Fields fields = findByThriftId(fieldId);
9649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9650
        return fields;
9651
      }
9652
 
9653
      /**
9654
       * Find the _Fields constant that matches name, or null if its not found.
9655
       */
9656
      public static _Fields findByName(String name) {
9657
        return byName.get(name);
9658
      }
9659
 
9660
      private final short _thriftId;
9661
      private final String _fieldName;
9662
 
9663
      _Fields(short thriftId, String fieldName) {
9664
        _thriftId = thriftId;
9665
        _fieldName = fieldName;
9666
      }
9667
 
9668
      public short getThriftFieldId() {
9669
        return _thriftId;
9670
      }
9671
 
9672
      public String getFieldName() {
9673
        return _fieldName;
9674
      }
9675
    }
9676
 
9677
    // isset id assignments
9678
 
3430 rajveer 9679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9680
    static {
3430 rajveer 9681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9682
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 9686
    }
9687
 
9688
    public deleteUser_args() {
9689
    }
9690
 
9691
    public deleteUser_args(
9692
      String username)
9693
    {
9694
      this();
9695
      this.username = username;
9696
    }
9697
 
9698
    /**
9699
     * Performs a deep copy on <i>other</i>.
9700
     */
9701
    public deleteUser_args(deleteUser_args other) {
9702
      if (other.isSetUsername()) {
9703
        this.username = other.username;
9704
      }
9705
    }
9706
 
9707
    public deleteUser_args deepCopy() {
9708
      return new deleteUser_args(this);
9709
    }
9710
 
3430 rajveer 9711
    @Override
9712
    public void clear() {
9713
      this.username = null;
495 rajveer 9714
    }
9715
 
9716
    public String getUsername() {
9717
      return this.username;
9718
    }
9719
 
3430 rajveer 9720
    public void setUsername(String username) {
495 rajveer 9721
      this.username = username;
9722
    }
9723
 
9724
    public void unsetUsername() {
9725
      this.username = null;
9726
    }
9727
 
3430 rajveer 9728
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9729
    public boolean isSetUsername() {
9730
      return this.username != null;
9731
    }
9732
 
9733
    public void setUsernameIsSet(boolean value) {
9734
      if (!value) {
9735
        this.username = null;
9736
      }
9737
    }
9738
 
9739
    public void setFieldValue(_Fields field, Object value) {
9740
      switch (field) {
9741
      case USERNAME:
9742
        if (value == null) {
9743
          unsetUsername();
9744
        } else {
9745
          setUsername((String)value);
9746
        }
9747
        break;
9748
 
9749
      }
9750
    }
9751
 
9752
    public Object getFieldValue(_Fields field) {
9753
      switch (field) {
9754
      case USERNAME:
9755
        return getUsername();
9756
 
9757
      }
9758
      throw new IllegalStateException();
9759
    }
9760
 
3430 rajveer 9761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9762
    public boolean isSet(_Fields field) {
9763
      if (field == null) {
9764
        throw new IllegalArgumentException();
9765
      }
495 rajveer 9766
 
9767
      switch (field) {
9768
      case USERNAME:
9769
        return isSetUsername();
9770
      }
9771
      throw new IllegalStateException();
9772
    }
9773
 
9774
    @Override
9775
    public boolean equals(Object that) {
9776
      if (that == null)
9777
        return false;
9778
      if (that instanceof deleteUser_args)
9779
        return this.equals((deleteUser_args)that);
9780
      return false;
9781
    }
9782
 
9783
    public boolean equals(deleteUser_args that) {
9784
      if (that == null)
9785
        return false;
9786
 
9787
      boolean this_present_username = true && this.isSetUsername();
9788
      boolean that_present_username = true && that.isSetUsername();
9789
      if (this_present_username || that_present_username) {
9790
        if (!(this_present_username && that_present_username))
9791
          return false;
9792
        if (!this.username.equals(that.username))
9793
          return false;
9794
      }
9795
 
9796
      return true;
9797
    }
9798
 
9799
    @Override
9800
    public int hashCode() {
9801
      return 0;
9802
    }
9803
 
9804
    public int compareTo(deleteUser_args other) {
9805
      if (!getClass().equals(other.getClass())) {
9806
        return getClass().getName().compareTo(other.getClass().getName());
9807
      }
9808
 
9809
      int lastComparison = 0;
9810
      deleteUser_args typedOther = (deleteUser_args)other;
9811
 
3430 rajveer 9812
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9813
      if (lastComparison != 0) {
9814
        return lastComparison;
9815
      }
3430 rajveer 9816
      if (isSetUsername()) {
9817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9818
        if (lastComparison != 0) {
9819
          return lastComparison;
9820
        }
495 rajveer 9821
      }
9822
      return 0;
9823
    }
9824
 
3430 rajveer 9825
    public _Fields fieldForId(int fieldId) {
9826
      return _Fields.findByThriftId(fieldId);
9827
    }
9828
 
9829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9830
      org.apache.thrift.protocol.TField field;
495 rajveer 9831
      iprot.readStructBegin();
9832
      while (true)
9833
      {
9834
        field = iprot.readFieldBegin();
3430 rajveer 9835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9836
          break;
9837
        }
3430 rajveer 9838
        switch (field.id) {
9839
          case 1: // USERNAME
9840
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9841
              this.username = iprot.readString();
9842
            } else { 
9843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9844
            }
9845
            break;
9846
          default:
9847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9848
        }
3430 rajveer 9849
        iprot.readFieldEnd();
495 rajveer 9850
      }
9851
      iprot.readStructEnd();
9852
      validate();
9853
    }
9854
 
3430 rajveer 9855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9856
      validate();
9857
 
9858
      oprot.writeStructBegin(STRUCT_DESC);
9859
      if (this.username != null) {
9860
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9861
        oprot.writeString(this.username);
9862
        oprot.writeFieldEnd();
9863
      }
9864
      oprot.writeFieldStop();
9865
      oprot.writeStructEnd();
9866
    }
9867
 
9868
    @Override
9869
    public String toString() {
9870
      StringBuilder sb = new StringBuilder("deleteUser_args(");
9871
      boolean first = true;
9872
 
9873
      sb.append("username:");
9874
      if (this.username == null) {
9875
        sb.append("null");
9876
      } else {
9877
        sb.append(this.username);
9878
      }
9879
      first = false;
9880
      sb.append(")");
9881
      return sb.toString();
9882
    }
9883
 
3430 rajveer 9884
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9885
      // check for required fields
9886
    }
9887
 
3430 rajveer 9888
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9889
      try {
9890
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9891
      } catch (org.apache.thrift.TException te) {
9892
        throw new java.io.IOException(te);
9893
      }
9894
    }
9895
 
9896
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9897
      try {
9898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9899
      } catch (org.apache.thrift.TException te) {
9900
        throw new java.io.IOException(te);
9901
      }
9902
    }
9903
 
495 rajveer 9904
  }
9905
 
3430 rajveer 9906
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
9907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 9908
 
3430 rajveer 9909
    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);
9910
    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 9911
 
3430 rajveer 9912
    private boolean success; // required
9913
    private HelperServiceException se; // required
495 rajveer 9914
 
9915
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9916
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9917
      SUCCESS((short)0, "success"),
9918
      SE((short)1, "se");
9919
 
9920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9921
 
9922
      static {
9923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9924
          byName.put(field.getFieldName(), field);
9925
        }
9926
      }
9927
 
9928
      /**
9929
       * Find the _Fields constant that matches fieldId, or null if its not found.
9930
       */
9931
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9932
        switch(fieldId) {
9933
          case 0: // SUCCESS
9934
            return SUCCESS;
9935
          case 1: // SE
9936
            return SE;
9937
          default:
9938
            return null;
9939
        }
495 rajveer 9940
      }
9941
 
9942
      /**
9943
       * Find the _Fields constant that matches fieldId, throwing an exception
9944
       * if it is not found.
9945
       */
9946
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9947
        _Fields fields = findByThriftId(fieldId);
9948
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9949
        return fields;
9950
      }
9951
 
9952
      /**
9953
       * Find the _Fields constant that matches name, or null if its not found.
9954
       */
9955
      public static _Fields findByName(String name) {
9956
        return byName.get(name);
9957
      }
9958
 
9959
      private final short _thriftId;
9960
      private final String _fieldName;
9961
 
9962
      _Fields(short thriftId, String fieldName) {
9963
        _thriftId = thriftId;
9964
        _fieldName = fieldName;
9965
      }
9966
 
9967
      public short getThriftFieldId() {
9968
        return _thriftId;
9969
      }
9970
 
9971
      public String getFieldName() {
9972
        return _fieldName;
9973
      }
9974
    }
9975
 
9976
    // isset id assignments
9977
    private static final int __SUCCESS_ISSET_ID = 0;
9978
    private BitSet __isset_bit_vector = new BitSet(1);
9979
 
3430 rajveer 9980
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9981
    static {
3430 rajveer 9982
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9983
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9985
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9986
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9987
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9988
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 9989
    }
9990
 
9991
    public deleteUser_result() {
9992
    }
9993
 
9994
    public deleteUser_result(
9995
      boolean success,
9996
      HelperServiceException se)
9997
    {
9998
      this();
9999
      this.success = success;
10000
      setSuccessIsSet(true);
10001
      this.se = se;
10002
    }
10003
 
10004
    /**
10005
     * Performs a deep copy on <i>other</i>.
10006
     */
10007
    public deleteUser_result(deleteUser_result other) {
10008
      __isset_bit_vector.clear();
10009
      __isset_bit_vector.or(other.__isset_bit_vector);
10010
      this.success = other.success;
10011
      if (other.isSetSe()) {
10012
        this.se = new HelperServiceException(other.se);
10013
      }
10014
    }
10015
 
10016
    public deleteUser_result deepCopy() {
10017
      return new deleteUser_result(this);
10018
    }
10019
 
3430 rajveer 10020
    @Override
10021
    public void clear() {
10022
      setSuccessIsSet(false);
10023
      this.success = false;
10024
      this.se = null;
495 rajveer 10025
    }
10026
 
10027
    public boolean isSuccess() {
10028
      return this.success;
10029
    }
10030
 
3430 rajveer 10031
    public void setSuccess(boolean success) {
495 rajveer 10032
      this.success = success;
10033
      setSuccessIsSet(true);
10034
    }
10035
 
10036
    public void unsetSuccess() {
10037
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10038
    }
10039
 
3430 rajveer 10040
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10041
    public boolean isSetSuccess() {
10042
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10043
    }
10044
 
10045
    public void setSuccessIsSet(boolean value) {
10046
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10047
    }
10048
 
10049
    public HelperServiceException getSe() {
10050
      return this.se;
10051
    }
10052
 
3430 rajveer 10053
    public void setSe(HelperServiceException se) {
495 rajveer 10054
      this.se = se;
10055
    }
10056
 
10057
    public void unsetSe() {
10058
      this.se = null;
10059
    }
10060
 
3430 rajveer 10061
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10062
    public boolean isSetSe() {
10063
      return this.se != null;
10064
    }
10065
 
10066
    public void setSeIsSet(boolean value) {
10067
      if (!value) {
10068
        this.se = null;
10069
      }
10070
    }
10071
 
10072
    public void setFieldValue(_Fields field, Object value) {
10073
      switch (field) {
10074
      case SUCCESS:
10075
        if (value == null) {
10076
          unsetSuccess();
10077
        } else {
10078
          setSuccess((Boolean)value);
10079
        }
10080
        break;
10081
 
10082
      case SE:
10083
        if (value == null) {
10084
          unsetSe();
10085
        } else {
10086
          setSe((HelperServiceException)value);
10087
        }
10088
        break;
10089
 
10090
      }
10091
    }
10092
 
10093
    public Object getFieldValue(_Fields field) {
10094
      switch (field) {
10095
      case SUCCESS:
3430 rajveer 10096
        return Boolean.valueOf(isSuccess());
495 rajveer 10097
 
10098
      case SE:
10099
        return getSe();
10100
 
10101
      }
10102
      throw new IllegalStateException();
10103
    }
10104
 
3430 rajveer 10105
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10106
    public boolean isSet(_Fields field) {
10107
      if (field == null) {
10108
        throw new IllegalArgumentException();
10109
      }
495 rajveer 10110
 
10111
      switch (field) {
10112
      case SUCCESS:
10113
        return isSetSuccess();
10114
      case SE:
10115
        return isSetSe();
10116
      }
10117
      throw new IllegalStateException();
10118
    }
10119
 
10120
    @Override
10121
    public boolean equals(Object that) {
10122
      if (that == null)
10123
        return false;
10124
      if (that instanceof deleteUser_result)
10125
        return this.equals((deleteUser_result)that);
10126
      return false;
10127
    }
10128
 
10129
    public boolean equals(deleteUser_result that) {
10130
      if (that == null)
10131
        return false;
10132
 
10133
      boolean this_present_success = true;
10134
      boolean that_present_success = true;
10135
      if (this_present_success || that_present_success) {
10136
        if (!(this_present_success && that_present_success))
10137
          return false;
10138
        if (this.success != that.success)
10139
          return false;
10140
      }
10141
 
10142
      boolean this_present_se = true && this.isSetSe();
10143
      boolean that_present_se = true && that.isSetSe();
10144
      if (this_present_se || that_present_se) {
10145
        if (!(this_present_se && that_present_se))
10146
          return false;
10147
        if (!this.se.equals(that.se))
10148
          return false;
10149
      }
10150
 
10151
      return true;
10152
    }
10153
 
10154
    @Override
10155
    public int hashCode() {
10156
      return 0;
10157
    }
10158
 
10159
    public int compareTo(deleteUser_result other) {
10160
      if (!getClass().equals(other.getClass())) {
10161
        return getClass().getName().compareTo(other.getClass().getName());
10162
      }
10163
 
10164
      int lastComparison = 0;
10165
      deleteUser_result typedOther = (deleteUser_result)other;
10166
 
3430 rajveer 10167
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10168
      if (lastComparison != 0) {
10169
        return lastComparison;
10170
      }
3430 rajveer 10171
      if (isSetSuccess()) {
10172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10173
        if (lastComparison != 0) {
10174
          return lastComparison;
10175
        }
495 rajveer 10176
      }
3430 rajveer 10177
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10178
      if (lastComparison != 0) {
10179
        return lastComparison;
10180
      }
3430 rajveer 10181
      if (isSetSe()) {
10182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10183
        if (lastComparison != 0) {
10184
          return lastComparison;
10185
        }
495 rajveer 10186
      }
10187
      return 0;
10188
    }
10189
 
3430 rajveer 10190
    public _Fields fieldForId(int fieldId) {
10191
      return _Fields.findByThriftId(fieldId);
10192
    }
10193
 
10194
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10195
      org.apache.thrift.protocol.TField field;
495 rajveer 10196
      iprot.readStructBegin();
10197
      while (true)
10198
      {
10199
        field = iprot.readFieldBegin();
3430 rajveer 10200
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10201
          break;
10202
        }
3430 rajveer 10203
        switch (field.id) {
10204
          case 0: // SUCCESS
10205
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10206
              this.success = iprot.readBool();
10207
              setSuccessIsSet(true);
10208
            } else { 
10209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10210
            }
10211
            break;
10212
          case 1: // SE
10213
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10214
              this.se = new HelperServiceException();
10215
              this.se.read(iprot);
10216
            } else { 
10217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10218
            }
10219
            break;
10220
          default:
10221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10222
        }
3430 rajveer 10223
        iprot.readFieldEnd();
495 rajveer 10224
      }
10225
      iprot.readStructEnd();
10226
      validate();
10227
    }
10228
 
3430 rajveer 10229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10230
      oprot.writeStructBegin(STRUCT_DESC);
10231
 
10232
      if (this.isSetSuccess()) {
10233
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10234
        oprot.writeBool(this.success);
10235
        oprot.writeFieldEnd();
10236
      } else if (this.isSetSe()) {
10237
        oprot.writeFieldBegin(SE_FIELD_DESC);
10238
        this.se.write(oprot);
10239
        oprot.writeFieldEnd();
10240
      }
10241
      oprot.writeFieldStop();
10242
      oprot.writeStructEnd();
10243
    }
10244
 
10245
    @Override
10246
    public String toString() {
10247
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10248
      boolean first = true;
10249
 
10250
      sb.append("success:");
10251
      sb.append(this.success);
10252
      first = false;
10253
      if (!first) sb.append(", ");
10254
      sb.append("se:");
10255
      if (this.se == null) {
10256
        sb.append("null");
10257
      } else {
10258
        sb.append(this.se);
10259
      }
10260
      first = false;
10261
      sb.append(")");
10262
      return sb.toString();
10263
    }
10264
 
3430 rajveer 10265
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10266
      // check for required fields
10267
    }
10268
 
3430 rajveer 10269
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10270
      try {
10271
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10272
      } catch (org.apache.thrift.TException te) {
10273
        throw new java.io.IOException(te);
10274
      }
10275
    }
10276
 
10277
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10278
      try {
10279
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10280
      } catch (org.apache.thrift.TException te) {
10281
        throw new java.io.IOException(te);
10282
      }
10283
    }
10284
 
495 rajveer 10285
  }
10286
 
3430 rajveer 10287
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10288
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10289
 
3430 rajveer 10290
    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);
10291
    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 10292
 
3430 rajveer 10293
    private String username; // required
10294
    private String password; // required
495 rajveer 10295
 
10296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10298
      USERNAME((short)1, "username"),
10299
      PASSWORD((short)2, "password");
10300
 
10301
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10302
 
10303
      static {
10304
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10305
          byName.put(field.getFieldName(), field);
10306
        }
10307
      }
10308
 
10309
      /**
10310
       * Find the _Fields constant that matches fieldId, or null if its not found.
10311
       */
10312
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10313
        switch(fieldId) {
10314
          case 1: // USERNAME
10315
            return USERNAME;
10316
          case 2: // PASSWORD
10317
            return PASSWORD;
10318
          default:
10319
            return null;
10320
        }
495 rajveer 10321
      }
10322
 
10323
      /**
10324
       * Find the _Fields constant that matches fieldId, throwing an exception
10325
       * if it is not found.
10326
       */
10327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10328
        _Fields fields = findByThriftId(fieldId);
10329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10330
        return fields;
10331
      }
10332
 
10333
      /**
10334
       * Find the _Fields constant that matches name, or null if its not found.
10335
       */
10336
      public static _Fields findByName(String name) {
10337
        return byName.get(name);
10338
      }
10339
 
10340
      private final short _thriftId;
10341
      private final String _fieldName;
10342
 
10343
      _Fields(short thriftId, String fieldName) {
10344
        _thriftId = thriftId;
10345
        _fieldName = fieldName;
10346
      }
10347
 
10348
      public short getThriftFieldId() {
10349
        return _thriftId;
10350
      }
10351
 
10352
      public String getFieldName() {
10353
        return _fieldName;
10354
      }
10355
    }
10356
 
10357
    // isset id assignments
10358
 
3430 rajveer 10359
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10360
    static {
3430 rajveer 10361
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10362
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10364
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10368
    }
10369
 
2443 chandransh 10370
    public authenticateDashboardUser_args() {
495 rajveer 10371
    }
10372
 
2443 chandransh 10373
    public authenticateDashboardUser_args(
495 rajveer 10374
      String username,
10375
      String password)
10376
    {
10377
      this();
10378
      this.username = username;
10379
      this.password = password;
10380
    }
10381
 
10382
    /**
10383
     * Performs a deep copy on <i>other</i>.
10384
     */
2443 chandransh 10385
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10386
      if (other.isSetUsername()) {
10387
        this.username = other.username;
10388
      }
10389
      if (other.isSetPassword()) {
10390
        this.password = other.password;
10391
      }
10392
    }
10393
 
2443 chandransh 10394
    public authenticateDashboardUser_args deepCopy() {
10395
      return new authenticateDashboardUser_args(this);
495 rajveer 10396
    }
10397
 
3430 rajveer 10398
    @Override
10399
    public void clear() {
10400
      this.username = null;
10401
      this.password = null;
495 rajveer 10402
    }
10403
 
10404
    public String getUsername() {
10405
      return this.username;
10406
    }
10407
 
3430 rajveer 10408
    public void setUsername(String username) {
495 rajveer 10409
      this.username = username;
10410
    }
10411
 
10412
    public void unsetUsername() {
10413
      this.username = null;
10414
    }
10415
 
3430 rajveer 10416
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10417
    public boolean isSetUsername() {
10418
      return this.username != null;
10419
    }
10420
 
10421
    public void setUsernameIsSet(boolean value) {
10422
      if (!value) {
10423
        this.username = null;
10424
      }
10425
    }
10426
 
10427
    public String getPassword() {
10428
      return this.password;
10429
    }
10430
 
3430 rajveer 10431
    public void setPassword(String password) {
495 rajveer 10432
      this.password = password;
10433
    }
10434
 
10435
    public void unsetPassword() {
10436
      this.password = null;
10437
    }
10438
 
3430 rajveer 10439
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10440
    public boolean isSetPassword() {
10441
      return this.password != null;
10442
    }
10443
 
10444
    public void setPasswordIsSet(boolean value) {
10445
      if (!value) {
10446
        this.password = null;
10447
      }
10448
    }
10449
 
10450
    public void setFieldValue(_Fields field, Object value) {
10451
      switch (field) {
10452
      case USERNAME:
10453
        if (value == null) {
10454
          unsetUsername();
10455
        } else {
10456
          setUsername((String)value);
10457
        }
10458
        break;
10459
 
10460
      case PASSWORD:
10461
        if (value == null) {
10462
          unsetPassword();
10463
        } else {
10464
          setPassword((String)value);
10465
        }
10466
        break;
10467
 
10468
      }
10469
    }
10470
 
10471
    public Object getFieldValue(_Fields field) {
10472
      switch (field) {
10473
      case USERNAME:
10474
        return getUsername();
10475
 
10476
      case PASSWORD:
10477
        return getPassword();
10478
 
10479
      }
10480
      throw new IllegalStateException();
10481
    }
10482
 
3430 rajveer 10483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10484
    public boolean isSet(_Fields field) {
10485
      if (field == null) {
10486
        throw new IllegalArgumentException();
10487
      }
495 rajveer 10488
 
10489
      switch (field) {
10490
      case USERNAME:
10491
        return isSetUsername();
10492
      case PASSWORD:
10493
        return isSetPassword();
10494
      }
10495
      throw new IllegalStateException();
10496
    }
10497
 
10498
    @Override
10499
    public boolean equals(Object that) {
10500
      if (that == null)
10501
        return false;
2443 chandransh 10502
      if (that instanceof authenticateDashboardUser_args)
10503
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10504
      return false;
10505
    }
10506
 
2443 chandransh 10507
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10508
      if (that == null)
10509
        return false;
10510
 
10511
      boolean this_present_username = true && this.isSetUsername();
10512
      boolean that_present_username = true && that.isSetUsername();
10513
      if (this_present_username || that_present_username) {
10514
        if (!(this_present_username && that_present_username))
10515
          return false;
10516
        if (!this.username.equals(that.username))
10517
          return false;
10518
      }
10519
 
10520
      boolean this_present_password = true && this.isSetPassword();
10521
      boolean that_present_password = true && that.isSetPassword();
10522
      if (this_present_password || that_present_password) {
10523
        if (!(this_present_password && that_present_password))
10524
          return false;
10525
        if (!this.password.equals(that.password))
10526
          return false;
10527
      }
10528
 
10529
      return true;
10530
    }
10531
 
10532
    @Override
10533
    public int hashCode() {
10534
      return 0;
10535
    }
10536
 
2443 chandransh 10537
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10538
      if (!getClass().equals(other.getClass())) {
10539
        return getClass().getName().compareTo(other.getClass().getName());
10540
      }
10541
 
10542
      int lastComparison = 0;
2443 chandransh 10543
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10544
 
3430 rajveer 10545
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10546
      if (lastComparison != 0) {
10547
        return lastComparison;
10548
      }
3430 rajveer 10549
      if (isSetUsername()) {
10550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10551
        if (lastComparison != 0) {
10552
          return lastComparison;
10553
        }
495 rajveer 10554
      }
3430 rajveer 10555
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10556
      if (lastComparison != 0) {
10557
        return lastComparison;
10558
      }
3430 rajveer 10559
      if (isSetPassword()) {
10560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10561
        if (lastComparison != 0) {
10562
          return lastComparison;
10563
        }
495 rajveer 10564
      }
10565
      return 0;
10566
    }
10567
 
3430 rajveer 10568
    public _Fields fieldForId(int fieldId) {
10569
      return _Fields.findByThriftId(fieldId);
10570
    }
10571
 
10572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10573
      org.apache.thrift.protocol.TField field;
495 rajveer 10574
      iprot.readStructBegin();
10575
      while (true)
10576
      {
10577
        field = iprot.readFieldBegin();
3430 rajveer 10578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10579
          break;
10580
        }
3430 rajveer 10581
        switch (field.id) {
10582
          case 1: // USERNAME
10583
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10584
              this.username = iprot.readString();
10585
            } else { 
10586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10587
            }
10588
            break;
10589
          case 2: // PASSWORD
10590
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10591
              this.password = iprot.readString();
10592
            } else { 
10593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10594
            }
10595
            break;
10596
          default:
10597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10598
        }
3430 rajveer 10599
        iprot.readFieldEnd();
495 rajveer 10600
      }
10601
      iprot.readStructEnd();
10602
      validate();
10603
    }
10604
 
3430 rajveer 10605
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10606
      validate();
10607
 
10608
      oprot.writeStructBegin(STRUCT_DESC);
10609
      if (this.username != null) {
10610
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10611
        oprot.writeString(this.username);
10612
        oprot.writeFieldEnd();
10613
      }
10614
      if (this.password != null) {
10615
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10616
        oprot.writeString(this.password);
10617
        oprot.writeFieldEnd();
10618
      }
10619
      oprot.writeFieldStop();
10620
      oprot.writeStructEnd();
10621
    }
10622
 
10623
    @Override
10624
    public String toString() {
2443 chandransh 10625
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10626
      boolean first = true;
10627
 
10628
      sb.append("username:");
10629
      if (this.username == null) {
10630
        sb.append("null");
10631
      } else {
10632
        sb.append(this.username);
10633
      }
10634
      first = false;
10635
      if (!first) sb.append(", ");
10636
      sb.append("password:");
10637
      if (this.password == null) {
10638
        sb.append("null");
10639
      } else {
10640
        sb.append(this.password);
10641
      }
10642
      first = false;
10643
      sb.append(")");
10644
      return sb.toString();
10645
    }
10646
 
3430 rajveer 10647
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10648
      // check for required fields
10649
    }
10650
 
3430 rajveer 10651
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10652
      try {
10653
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10654
      } catch (org.apache.thrift.TException te) {
10655
        throw new java.io.IOException(te);
10656
      }
10657
    }
10658
 
10659
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10660
      try {
10661
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10662
      } catch (org.apache.thrift.TException te) {
10663
        throw new java.io.IOException(te);
10664
      }
10665
    }
10666
 
495 rajveer 10667
  }
10668
 
3430 rajveer 10669
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
10670
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 10671
 
3430 rajveer 10672
    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);
10673
    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 10674
 
3430 rajveer 10675
    private DashboardUser success; // required
10676
    private HelperServiceException se; // required
495 rajveer 10677
 
10678
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10679
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10680
      SUCCESS((short)0, "success"),
10681
      SE((short)1, "se");
10682
 
10683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10684
 
10685
      static {
10686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10687
          byName.put(field.getFieldName(), field);
10688
        }
10689
      }
10690
 
10691
      /**
10692
       * Find the _Fields constant that matches fieldId, or null if its not found.
10693
       */
10694
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10695
        switch(fieldId) {
10696
          case 0: // SUCCESS
10697
            return SUCCESS;
10698
          case 1: // SE
10699
            return SE;
10700
          default:
10701
            return null;
10702
        }
495 rajveer 10703
      }
10704
 
10705
      /**
10706
       * Find the _Fields constant that matches fieldId, throwing an exception
10707
       * if it is not found.
10708
       */
10709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10710
        _Fields fields = findByThriftId(fieldId);
10711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10712
        return fields;
10713
      }
10714
 
10715
      /**
10716
       * Find the _Fields constant that matches name, or null if its not found.
10717
       */
10718
      public static _Fields findByName(String name) {
10719
        return byName.get(name);
10720
      }
10721
 
10722
      private final short _thriftId;
10723
      private final String _fieldName;
10724
 
10725
      _Fields(short thriftId, String fieldName) {
10726
        _thriftId = thriftId;
10727
        _fieldName = fieldName;
10728
      }
10729
 
10730
      public short getThriftFieldId() {
10731
        return _thriftId;
10732
      }
10733
 
10734
      public String getFieldName() {
10735
        return _fieldName;
10736
      }
10737
    }
10738
 
10739
    // isset id assignments
10740
 
3430 rajveer 10741
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10742
    static {
3430 rajveer 10743
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10744
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10745
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
10746
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 10750
    }
10751
 
2443 chandransh 10752
    public authenticateDashboardUser_result() {
495 rajveer 10753
    }
10754
 
2443 chandransh 10755
    public authenticateDashboardUser_result(
10756
      DashboardUser success,
495 rajveer 10757
      HelperServiceException se)
10758
    {
10759
      this();
10760
      this.success = success;
10761
      this.se = se;
10762
    }
10763
 
10764
    /**
10765
     * Performs a deep copy on <i>other</i>.
10766
     */
2443 chandransh 10767
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
10768
      if (other.isSetSuccess()) {
10769
        this.success = new DashboardUser(other.success);
10770
      }
495 rajveer 10771
      if (other.isSetSe()) {
10772
        this.se = new HelperServiceException(other.se);
10773
      }
10774
    }
10775
 
2443 chandransh 10776
    public authenticateDashboardUser_result deepCopy() {
10777
      return new authenticateDashboardUser_result(this);
495 rajveer 10778
    }
10779
 
3430 rajveer 10780
    @Override
10781
    public void clear() {
10782
      this.success = null;
10783
      this.se = null;
495 rajveer 10784
    }
10785
 
2443 chandransh 10786
    public DashboardUser getSuccess() {
495 rajveer 10787
      return this.success;
10788
    }
10789
 
3430 rajveer 10790
    public void setSuccess(DashboardUser success) {
495 rajveer 10791
      this.success = success;
10792
    }
10793
 
10794
    public void unsetSuccess() {
2443 chandransh 10795
      this.success = null;
495 rajveer 10796
    }
10797
 
3430 rajveer 10798
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10799
    public boolean isSetSuccess() {
2443 chandransh 10800
      return this.success != null;
495 rajveer 10801
    }
10802
 
10803
    public void setSuccessIsSet(boolean value) {
2443 chandransh 10804
      if (!value) {
10805
        this.success = null;
10806
      }
495 rajveer 10807
    }
10808
 
10809
    public HelperServiceException getSe() {
10810
      return this.se;
10811
    }
10812
 
3430 rajveer 10813
    public void setSe(HelperServiceException se) {
495 rajveer 10814
      this.se = se;
10815
    }
10816
 
10817
    public void unsetSe() {
10818
      this.se = null;
10819
    }
10820
 
3430 rajveer 10821
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10822
    public boolean isSetSe() {
10823
      return this.se != null;
10824
    }
10825
 
10826
    public void setSeIsSet(boolean value) {
10827
      if (!value) {
10828
        this.se = null;
10829
      }
10830
    }
10831
 
10832
    public void setFieldValue(_Fields field, Object value) {
10833
      switch (field) {
10834
      case SUCCESS:
10835
        if (value == null) {
10836
          unsetSuccess();
10837
        } else {
2443 chandransh 10838
          setSuccess((DashboardUser)value);
495 rajveer 10839
        }
10840
        break;
10841
 
10842
      case SE:
10843
        if (value == null) {
10844
          unsetSe();
10845
        } else {
10846
          setSe((HelperServiceException)value);
10847
        }
10848
        break;
10849
 
10850
      }
10851
    }
10852
 
10853
    public Object getFieldValue(_Fields field) {
10854
      switch (field) {
10855
      case SUCCESS:
2443 chandransh 10856
        return getSuccess();
495 rajveer 10857
 
10858
      case SE:
10859
        return getSe();
10860
 
10861
      }
10862
      throw new IllegalStateException();
10863
    }
10864
 
3430 rajveer 10865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10866
    public boolean isSet(_Fields field) {
10867
      if (field == null) {
10868
        throw new IllegalArgumentException();
10869
      }
495 rajveer 10870
 
10871
      switch (field) {
10872
      case SUCCESS:
10873
        return isSetSuccess();
10874
      case SE:
10875
        return isSetSe();
10876
      }
10877
      throw new IllegalStateException();
10878
    }
10879
 
10880
    @Override
10881
    public boolean equals(Object that) {
10882
      if (that == null)
10883
        return false;
2443 chandransh 10884
      if (that instanceof authenticateDashboardUser_result)
10885
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 10886
      return false;
10887
    }
10888
 
2443 chandransh 10889
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 10890
      if (that == null)
10891
        return false;
10892
 
2443 chandransh 10893
      boolean this_present_success = true && this.isSetSuccess();
10894
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 10895
      if (this_present_success || that_present_success) {
10896
        if (!(this_present_success && that_present_success))
10897
          return false;
2443 chandransh 10898
        if (!this.success.equals(that.success))
495 rajveer 10899
          return false;
10900
      }
10901
 
10902
      boolean this_present_se = true && this.isSetSe();
10903
      boolean that_present_se = true && that.isSetSe();
10904
      if (this_present_se || that_present_se) {
10905
        if (!(this_present_se && that_present_se))
10906
          return false;
10907
        if (!this.se.equals(that.se))
10908
          return false;
10909
      }
10910
 
10911
      return true;
10912
    }
10913
 
10914
    @Override
10915
    public int hashCode() {
10916
      return 0;
10917
    }
10918
 
2443 chandransh 10919
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 10920
      if (!getClass().equals(other.getClass())) {
10921
        return getClass().getName().compareTo(other.getClass().getName());
10922
      }
10923
 
10924
      int lastComparison = 0;
2443 chandransh 10925
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 10926
 
3430 rajveer 10927
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10928
      if (lastComparison != 0) {
10929
        return lastComparison;
10930
      }
3430 rajveer 10931
      if (isSetSuccess()) {
10932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10933
        if (lastComparison != 0) {
10934
          return lastComparison;
10935
        }
495 rajveer 10936
      }
3430 rajveer 10937
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10938
      if (lastComparison != 0) {
10939
        return lastComparison;
10940
      }
3430 rajveer 10941
      if (isSetSe()) {
10942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10943
        if (lastComparison != 0) {
10944
          return lastComparison;
10945
        }
495 rajveer 10946
      }
10947
      return 0;
10948
    }
10949
 
3430 rajveer 10950
    public _Fields fieldForId(int fieldId) {
10951
      return _Fields.findByThriftId(fieldId);
10952
    }
10953
 
10954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10955
      org.apache.thrift.protocol.TField field;
495 rajveer 10956
      iprot.readStructBegin();
10957
      while (true)
10958
      {
10959
        field = iprot.readFieldBegin();
3430 rajveer 10960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10961
          break;
10962
        }
3430 rajveer 10963
        switch (field.id) {
10964
          case 0: // SUCCESS
10965
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10966
              this.success = new DashboardUser();
10967
              this.success.read(iprot);
10968
            } else { 
10969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10970
            }
10971
            break;
10972
          case 1: // SE
10973
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10974
              this.se = new HelperServiceException();
10975
              this.se.read(iprot);
10976
            } else { 
10977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10978
            }
10979
            break;
10980
          default:
10981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10982
        }
3430 rajveer 10983
        iprot.readFieldEnd();
495 rajveer 10984
      }
10985
      iprot.readStructEnd();
10986
      validate();
10987
    }
10988
 
3430 rajveer 10989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10990
      oprot.writeStructBegin(STRUCT_DESC);
10991
 
10992
      if (this.isSetSuccess()) {
10993
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 10994
        this.success.write(oprot);
495 rajveer 10995
        oprot.writeFieldEnd();
10996
      } else if (this.isSetSe()) {
10997
        oprot.writeFieldBegin(SE_FIELD_DESC);
10998
        this.se.write(oprot);
10999
        oprot.writeFieldEnd();
11000
      }
11001
      oprot.writeFieldStop();
11002
      oprot.writeStructEnd();
11003
    }
11004
 
11005
    @Override
11006
    public String toString() {
2443 chandransh 11007
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11008
      boolean first = true;
11009
 
11010
      sb.append("success:");
2443 chandransh 11011
      if (this.success == null) {
11012
        sb.append("null");
11013
      } else {
11014
        sb.append(this.success);
11015
      }
495 rajveer 11016
      first = false;
11017
      if (!first) sb.append(", ");
11018
      sb.append("se:");
11019
      if (this.se == null) {
11020
        sb.append("null");
11021
      } else {
11022
        sb.append(this.se);
11023
      }
11024
      first = false;
11025
      sb.append(")");
11026
      return sb.toString();
11027
    }
11028
 
3430 rajveer 11029
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11030
      // check for required fields
11031
    }
11032
 
3430 rajveer 11033
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11034
      try {
11035
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11036
      } catch (org.apache.thrift.TException te) {
11037
        throw new java.io.IOException(te);
11038
      }
11039
    }
11040
 
11041
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11042
      try {
11043
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11044
      } catch (org.apache.thrift.TException te) {
11045
        throw new java.io.IOException(te);
11046
      }
11047
    }
11048
 
495 rajveer 11049
  }
11050
 
3430 rajveer 11051
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11052
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11053
 
3430 rajveer 11054
    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);
11055
    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);
11056
    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 11057
 
3430 rajveer 11058
    private String username; // required
11059
    private String oldPassword; // required
11060
    private String newPassword; // required
495 rajveer 11061
 
11062
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11063
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11064
      USERNAME((short)1, "username"),
11065
      OLD_PASSWORD((short)2, "oldPassword"),
11066
      NEW_PASSWORD((short)3, "newPassword");
11067
 
11068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11069
 
11070
      static {
11071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11072
          byName.put(field.getFieldName(), field);
11073
        }
11074
      }
11075
 
11076
      /**
11077
       * Find the _Fields constant that matches fieldId, or null if its not found.
11078
       */
11079
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11080
        switch(fieldId) {
11081
          case 1: // USERNAME
11082
            return USERNAME;
11083
          case 2: // OLD_PASSWORD
11084
            return OLD_PASSWORD;
11085
          case 3: // NEW_PASSWORD
11086
            return NEW_PASSWORD;
11087
          default:
11088
            return null;
11089
        }
495 rajveer 11090
      }
11091
 
11092
      /**
11093
       * Find the _Fields constant that matches fieldId, throwing an exception
11094
       * if it is not found.
11095
       */
11096
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11097
        _Fields fields = findByThriftId(fieldId);
11098
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11099
        return fields;
11100
      }
11101
 
11102
      /**
11103
       * Find the _Fields constant that matches name, or null if its not found.
11104
       */
11105
      public static _Fields findByName(String name) {
11106
        return byName.get(name);
11107
      }
11108
 
11109
      private final short _thriftId;
11110
      private final String _fieldName;
11111
 
11112
      _Fields(short thriftId, String fieldName) {
11113
        _thriftId = thriftId;
11114
        _fieldName = fieldName;
11115
      }
11116
 
11117
      public short getThriftFieldId() {
11118
        return _thriftId;
11119
      }
11120
 
11121
      public String getFieldName() {
11122
        return _fieldName;
11123
      }
11124
    }
11125
 
11126
    // isset id assignments
11127
 
3430 rajveer 11128
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11129
    static {
3430 rajveer 11130
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11131
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11132
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11133
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11134
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11135
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11136
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11137
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11138
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11139
    }
11140
 
11141
    public updatePassword_args() {
11142
    }
11143
 
11144
    public updatePassword_args(
11145
      String username,
11146
      String oldPassword,
11147
      String newPassword)
11148
    {
11149
      this();
11150
      this.username = username;
11151
      this.oldPassword = oldPassword;
11152
      this.newPassword = newPassword;
11153
    }
11154
 
11155
    /**
11156
     * Performs a deep copy on <i>other</i>.
11157
     */
11158
    public updatePassword_args(updatePassword_args other) {
11159
      if (other.isSetUsername()) {
11160
        this.username = other.username;
11161
      }
11162
      if (other.isSetOldPassword()) {
11163
        this.oldPassword = other.oldPassword;
11164
      }
11165
      if (other.isSetNewPassword()) {
11166
        this.newPassword = other.newPassword;
11167
      }
11168
    }
11169
 
11170
    public updatePassword_args deepCopy() {
11171
      return new updatePassword_args(this);
11172
    }
11173
 
3430 rajveer 11174
    @Override
11175
    public void clear() {
11176
      this.username = null;
11177
      this.oldPassword = null;
11178
      this.newPassword = null;
495 rajveer 11179
    }
11180
 
11181
    public String getUsername() {
11182
      return this.username;
11183
    }
11184
 
3430 rajveer 11185
    public void setUsername(String username) {
495 rajveer 11186
      this.username = username;
11187
    }
11188
 
11189
    public void unsetUsername() {
11190
      this.username = null;
11191
    }
11192
 
3430 rajveer 11193
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11194
    public boolean isSetUsername() {
11195
      return this.username != null;
11196
    }
11197
 
11198
    public void setUsernameIsSet(boolean value) {
11199
      if (!value) {
11200
        this.username = null;
11201
      }
11202
    }
11203
 
11204
    public String getOldPassword() {
11205
      return this.oldPassword;
11206
    }
11207
 
3430 rajveer 11208
    public void setOldPassword(String oldPassword) {
495 rajveer 11209
      this.oldPassword = oldPassword;
11210
    }
11211
 
11212
    public void unsetOldPassword() {
11213
      this.oldPassword = null;
11214
    }
11215
 
3430 rajveer 11216
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11217
    public boolean isSetOldPassword() {
11218
      return this.oldPassword != null;
11219
    }
11220
 
11221
    public void setOldPasswordIsSet(boolean value) {
11222
      if (!value) {
11223
        this.oldPassword = null;
11224
      }
11225
    }
11226
 
11227
    public String getNewPassword() {
11228
      return this.newPassword;
11229
    }
11230
 
3430 rajveer 11231
    public void setNewPassword(String newPassword) {
495 rajveer 11232
      this.newPassword = newPassword;
11233
    }
11234
 
11235
    public void unsetNewPassword() {
11236
      this.newPassword = null;
11237
    }
11238
 
3430 rajveer 11239
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11240
    public boolean isSetNewPassword() {
11241
      return this.newPassword != null;
11242
    }
11243
 
11244
    public void setNewPasswordIsSet(boolean value) {
11245
      if (!value) {
11246
        this.newPassword = null;
11247
      }
11248
    }
11249
 
11250
    public void setFieldValue(_Fields field, Object value) {
11251
      switch (field) {
11252
      case USERNAME:
11253
        if (value == null) {
11254
          unsetUsername();
11255
        } else {
11256
          setUsername((String)value);
11257
        }
11258
        break;
11259
 
11260
      case OLD_PASSWORD:
11261
        if (value == null) {
11262
          unsetOldPassword();
11263
        } else {
11264
          setOldPassword((String)value);
11265
        }
11266
        break;
11267
 
11268
      case NEW_PASSWORD:
11269
        if (value == null) {
11270
          unsetNewPassword();
11271
        } else {
11272
          setNewPassword((String)value);
11273
        }
11274
        break;
11275
 
11276
      }
11277
    }
11278
 
11279
    public Object getFieldValue(_Fields field) {
11280
      switch (field) {
11281
      case USERNAME:
11282
        return getUsername();
11283
 
11284
      case OLD_PASSWORD:
11285
        return getOldPassword();
11286
 
11287
      case NEW_PASSWORD:
11288
        return getNewPassword();
11289
 
11290
      }
11291
      throw new IllegalStateException();
11292
    }
11293
 
3430 rajveer 11294
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11295
    public boolean isSet(_Fields field) {
11296
      if (field == null) {
11297
        throw new IllegalArgumentException();
11298
      }
495 rajveer 11299
 
11300
      switch (field) {
11301
      case USERNAME:
11302
        return isSetUsername();
11303
      case OLD_PASSWORD:
11304
        return isSetOldPassword();
11305
      case NEW_PASSWORD:
11306
        return isSetNewPassword();
11307
      }
11308
      throw new IllegalStateException();
11309
    }
11310
 
11311
    @Override
11312
    public boolean equals(Object that) {
11313
      if (that == null)
11314
        return false;
11315
      if (that instanceof updatePassword_args)
11316
        return this.equals((updatePassword_args)that);
11317
      return false;
11318
    }
11319
 
11320
    public boolean equals(updatePassword_args that) {
11321
      if (that == null)
11322
        return false;
11323
 
11324
      boolean this_present_username = true && this.isSetUsername();
11325
      boolean that_present_username = true && that.isSetUsername();
11326
      if (this_present_username || that_present_username) {
11327
        if (!(this_present_username && that_present_username))
11328
          return false;
11329
        if (!this.username.equals(that.username))
11330
          return false;
11331
      }
11332
 
11333
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11334
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11335
      if (this_present_oldPassword || that_present_oldPassword) {
11336
        if (!(this_present_oldPassword && that_present_oldPassword))
11337
          return false;
11338
        if (!this.oldPassword.equals(that.oldPassword))
11339
          return false;
11340
      }
11341
 
11342
      boolean this_present_newPassword = true && this.isSetNewPassword();
11343
      boolean that_present_newPassword = true && that.isSetNewPassword();
11344
      if (this_present_newPassword || that_present_newPassword) {
11345
        if (!(this_present_newPassword && that_present_newPassword))
11346
          return false;
11347
        if (!this.newPassword.equals(that.newPassword))
11348
          return false;
11349
      }
11350
 
11351
      return true;
11352
    }
11353
 
11354
    @Override
11355
    public int hashCode() {
11356
      return 0;
11357
    }
11358
 
11359
    public int compareTo(updatePassword_args other) {
11360
      if (!getClass().equals(other.getClass())) {
11361
        return getClass().getName().compareTo(other.getClass().getName());
11362
      }
11363
 
11364
      int lastComparison = 0;
11365
      updatePassword_args typedOther = (updatePassword_args)other;
11366
 
3430 rajveer 11367
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11368
      if (lastComparison != 0) {
11369
        return lastComparison;
11370
      }
3430 rajveer 11371
      if (isSetUsername()) {
11372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11373
        if (lastComparison != 0) {
11374
          return lastComparison;
11375
        }
495 rajveer 11376
      }
3430 rajveer 11377
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11378
      if (lastComparison != 0) {
11379
        return lastComparison;
11380
      }
3430 rajveer 11381
      if (isSetOldPassword()) {
11382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11383
        if (lastComparison != 0) {
11384
          return lastComparison;
11385
        }
495 rajveer 11386
      }
3430 rajveer 11387
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11388
      if (lastComparison != 0) {
11389
        return lastComparison;
11390
      }
3430 rajveer 11391
      if (isSetNewPassword()) {
11392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11393
        if (lastComparison != 0) {
11394
          return lastComparison;
11395
        }
495 rajveer 11396
      }
11397
      return 0;
11398
    }
11399
 
3430 rajveer 11400
    public _Fields fieldForId(int fieldId) {
11401
      return _Fields.findByThriftId(fieldId);
11402
    }
11403
 
11404
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11405
      org.apache.thrift.protocol.TField field;
495 rajveer 11406
      iprot.readStructBegin();
11407
      while (true)
11408
      {
11409
        field = iprot.readFieldBegin();
3430 rajveer 11410
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11411
          break;
11412
        }
3430 rajveer 11413
        switch (field.id) {
11414
          case 1: // USERNAME
11415
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11416
              this.username = iprot.readString();
11417
            } else { 
11418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11419
            }
11420
            break;
11421
          case 2: // OLD_PASSWORD
11422
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11423
              this.oldPassword = iprot.readString();
11424
            } else { 
11425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11426
            }
11427
            break;
11428
          case 3: // NEW_PASSWORD
11429
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11430
              this.newPassword = iprot.readString();
11431
            } else { 
11432
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11433
            }
11434
            break;
11435
          default:
11436
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11437
        }
3430 rajveer 11438
        iprot.readFieldEnd();
495 rajveer 11439
      }
11440
      iprot.readStructEnd();
11441
      validate();
11442
    }
11443
 
3430 rajveer 11444
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11445
      validate();
11446
 
11447
      oprot.writeStructBegin(STRUCT_DESC);
11448
      if (this.username != null) {
11449
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11450
        oprot.writeString(this.username);
11451
        oprot.writeFieldEnd();
11452
      }
11453
      if (this.oldPassword != null) {
11454
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11455
        oprot.writeString(this.oldPassword);
11456
        oprot.writeFieldEnd();
11457
      }
11458
      if (this.newPassword != null) {
11459
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11460
        oprot.writeString(this.newPassword);
11461
        oprot.writeFieldEnd();
11462
      }
11463
      oprot.writeFieldStop();
11464
      oprot.writeStructEnd();
11465
    }
11466
 
11467
    @Override
11468
    public String toString() {
11469
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11470
      boolean first = true;
11471
 
11472
      sb.append("username:");
11473
      if (this.username == null) {
11474
        sb.append("null");
11475
      } else {
11476
        sb.append(this.username);
11477
      }
11478
      first = false;
11479
      if (!first) sb.append(", ");
11480
      sb.append("oldPassword:");
11481
      if (this.oldPassword == null) {
11482
        sb.append("null");
11483
      } else {
11484
        sb.append(this.oldPassword);
11485
      }
11486
      first = false;
11487
      if (!first) sb.append(", ");
11488
      sb.append("newPassword:");
11489
      if (this.newPassword == null) {
11490
        sb.append("null");
11491
      } else {
11492
        sb.append(this.newPassword);
11493
      }
11494
      first = false;
11495
      sb.append(")");
11496
      return sb.toString();
11497
    }
11498
 
3430 rajveer 11499
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11500
      // check for required fields
11501
    }
11502
 
3430 rajveer 11503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11504
      try {
11505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11506
      } catch (org.apache.thrift.TException te) {
11507
        throw new java.io.IOException(te);
11508
      }
11509
    }
11510
 
11511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11512
      try {
11513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11514
      } catch (org.apache.thrift.TException te) {
11515
        throw new java.io.IOException(te);
11516
      }
11517
    }
11518
 
495 rajveer 11519
  }
11520
 
3430 rajveer 11521
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11523
 
3430 rajveer 11524
    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);
11525
    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 11526
 
3430 rajveer 11527
    private boolean success; // required
11528
    private HelperServiceException se; // required
495 rajveer 11529
 
11530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11532
      SUCCESS((short)0, "success"),
11533
      SE((short)1, "se");
11534
 
11535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11536
 
11537
      static {
11538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11539
          byName.put(field.getFieldName(), field);
11540
        }
11541
      }
11542
 
11543
      /**
11544
       * Find the _Fields constant that matches fieldId, or null if its not found.
11545
       */
11546
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11547
        switch(fieldId) {
11548
          case 0: // SUCCESS
11549
            return SUCCESS;
11550
          case 1: // SE
11551
            return SE;
11552
          default:
11553
            return null;
11554
        }
495 rajveer 11555
      }
11556
 
11557
      /**
11558
       * Find the _Fields constant that matches fieldId, throwing an exception
11559
       * if it is not found.
11560
       */
11561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11562
        _Fields fields = findByThriftId(fieldId);
11563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11564
        return fields;
11565
      }
11566
 
11567
      /**
11568
       * Find the _Fields constant that matches name, or null if its not found.
11569
       */
11570
      public static _Fields findByName(String name) {
11571
        return byName.get(name);
11572
      }
11573
 
11574
      private final short _thriftId;
11575
      private final String _fieldName;
11576
 
11577
      _Fields(short thriftId, String fieldName) {
11578
        _thriftId = thriftId;
11579
        _fieldName = fieldName;
11580
      }
11581
 
11582
      public short getThriftFieldId() {
11583
        return _thriftId;
11584
      }
11585
 
11586
      public String getFieldName() {
11587
        return _fieldName;
11588
      }
11589
    }
11590
 
11591
    // isset id assignments
11592
    private static final int __SUCCESS_ISSET_ID = 0;
11593
    private BitSet __isset_bit_vector = new BitSet(1);
11594
 
3430 rajveer 11595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11596
    static {
3430 rajveer 11597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11598
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11600
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11604
    }
11605
 
11606
    public updatePassword_result() {
11607
    }
11608
 
11609
    public updatePassword_result(
11610
      boolean success,
11611
      HelperServiceException se)
11612
    {
11613
      this();
11614
      this.success = success;
11615
      setSuccessIsSet(true);
11616
      this.se = se;
11617
    }
11618
 
11619
    /**
11620
     * Performs a deep copy on <i>other</i>.
11621
     */
11622
    public updatePassword_result(updatePassword_result other) {
11623
      __isset_bit_vector.clear();
11624
      __isset_bit_vector.or(other.__isset_bit_vector);
11625
      this.success = other.success;
11626
      if (other.isSetSe()) {
11627
        this.se = new HelperServiceException(other.se);
11628
      }
11629
    }
11630
 
11631
    public updatePassword_result deepCopy() {
11632
      return new updatePassword_result(this);
11633
    }
11634
 
3430 rajveer 11635
    @Override
11636
    public void clear() {
11637
      setSuccessIsSet(false);
11638
      this.success = false;
11639
      this.se = null;
495 rajveer 11640
    }
11641
 
11642
    public boolean isSuccess() {
11643
      return this.success;
11644
    }
11645
 
3430 rajveer 11646
    public void setSuccess(boolean success) {
495 rajveer 11647
      this.success = success;
11648
      setSuccessIsSet(true);
11649
    }
11650
 
11651
    public void unsetSuccess() {
11652
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11653
    }
11654
 
3430 rajveer 11655
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11656
    public boolean isSetSuccess() {
11657
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11658
    }
11659
 
11660
    public void setSuccessIsSet(boolean value) {
11661
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11662
    }
11663
 
11664
    public HelperServiceException getSe() {
11665
      return this.se;
11666
    }
11667
 
3430 rajveer 11668
    public void setSe(HelperServiceException se) {
495 rajveer 11669
      this.se = se;
11670
    }
11671
 
11672
    public void unsetSe() {
11673
      this.se = null;
11674
    }
11675
 
3430 rajveer 11676
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11677
    public boolean isSetSe() {
11678
      return this.se != null;
11679
    }
11680
 
11681
    public void setSeIsSet(boolean value) {
11682
      if (!value) {
11683
        this.se = null;
11684
      }
11685
    }
11686
 
11687
    public void setFieldValue(_Fields field, Object value) {
11688
      switch (field) {
11689
      case SUCCESS:
11690
        if (value == null) {
11691
          unsetSuccess();
11692
        } else {
11693
          setSuccess((Boolean)value);
11694
        }
11695
        break;
11696
 
11697
      case SE:
11698
        if (value == null) {
11699
          unsetSe();
11700
        } else {
11701
          setSe((HelperServiceException)value);
11702
        }
11703
        break;
11704
 
11705
      }
11706
    }
11707
 
11708
    public Object getFieldValue(_Fields field) {
11709
      switch (field) {
11710
      case SUCCESS:
3430 rajveer 11711
        return Boolean.valueOf(isSuccess());
495 rajveer 11712
 
11713
      case SE:
11714
        return getSe();
11715
 
11716
      }
11717
      throw new IllegalStateException();
11718
    }
11719
 
3430 rajveer 11720
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11721
    public boolean isSet(_Fields field) {
11722
      if (field == null) {
11723
        throw new IllegalArgumentException();
11724
      }
495 rajveer 11725
 
11726
      switch (field) {
11727
      case SUCCESS:
11728
        return isSetSuccess();
11729
      case SE:
11730
        return isSetSe();
11731
      }
11732
      throw new IllegalStateException();
11733
    }
11734
 
11735
    @Override
11736
    public boolean equals(Object that) {
11737
      if (that == null)
11738
        return false;
11739
      if (that instanceof updatePassword_result)
11740
        return this.equals((updatePassword_result)that);
11741
      return false;
11742
    }
11743
 
11744
    public boolean equals(updatePassword_result that) {
11745
      if (that == null)
11746
        return false;
11747
 
11748
      boolean this_present_success = true;
11749
      boolean that_present_success = true;
11750
      if (this_present_success || that_present_success) {
11751
        if (!(this_present_success && that_present_success))
11752
          return false;
11753
        if (this.success != that.success)
11754
          return false;
11755
      }
11756
 
11757
      boolean this_present_se = true && this.isSetSe();
11758
      boolean that_present_se = true && that.isSetSe();
11759
      if (this_present_se || that_present_se) {
11760
        if (!(this_present_se && that_present_se))
11761
          return false;
11762
        if (!this.se.equals(that.se))
11763
          return false;
11764
      }
11765
 
11766
      return true;
11767
    }
11768
 
11769
    @Override
11770
    public int hashCode() {
11771
      return 0;
11772
    }
11773
 
11774
    public int compareTo(updatePassword_result other) {
11775
      if (!getClass().equals(other.getClass())) {
11776
        return getClass().getName().compareTo(other.getClass().getName());
11777
      }
11778
 
11779
      int lastComparison = 0;
11780
      updatePassword_result typedOther = (updatePassword_result)other;
11781
 
3430 rajveer 11782
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11783
      if (lastComparison != 0) {
11784
        return lastComparison;
11785
      }
3430 rajveer 11786
      if (isSetSuccess()) {
11787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11788
        if (lastComparison != 0) {
11789
          return lastComparison;
11790
        }
495 rajveer 11791
      }
3430 rajveer 11792
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11793
      if (lastComparison != 0) {
11794
        return lastComparison;
11795
      }
3430 rajveer 11796
      if (isSetSe()) {
11797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11798
        if (lastComparison != 0) {
11799
          return lastComparison;
11800
        }
495 rajveer 11801
      }
11802
      return 0;
11803
    }
11804
 
3430 rajveer 11805
    public _Fields fieldForId(int fieldId) {
11806
      return _Fields.findByThriftId(fieldId);
11807
    }
11808
 
11809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11810
      org.apache.thrift.protocol.TField field;
495 rajveer 11811
      iprot.readStructBegin();
11812
      while (true)
11813
      {
11814
        field = iprot.readFieldBegin();
3430 rajveer 11815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11816
          break;
11817
        }
3430 rajveer 11818
        switch (field.id) {
11819
          case 0: // SUCCESS
11820
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11821
              this.success = iprot.readBool();
11822
              setSuccessIsSet(true);
11823
            } else { 
11824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11825
            }
11826
            break;
11827
          case 1: // SE
11828
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11829
              this.se = new HelperServiceException();
11830
              this.se.read(iprot);
11831
            } else { 
11832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11833
            }
11834
            break;
11835
          default:
11836
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11837
        }
3430 rajveer 11838
        iprot.readFieldEnd();
495 rajveer 11839
      }
11840
      iprot.readStructEnd();
11841
      validate();
11842
    }
11843
 
3430 rajveer 11844
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11845
      oprot.writeStructBegin(STRUCT_DESC);
11846
 
11847
      if (this.isSetSuccess()) {
11848
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11849
        oprot.writeBool(this.success);
11850
        oprot.writeFieldEnd();
11851
      } else if (this.isSetSe()) {
11852
        oprot.writeFieldBegin(SE_FIELD_DESC);
11853
        this.se.write(oprot);
11854
        oprot.writeFieldEnd();
11855
      }
11856
      oprot.writeFieldStop();
11857
      oprot.writeStructEnd();
11858
    }
11859
 
11860
    @Override
11861
    public String toString() {
11862
      StringBuilder sb = new StringBuilder("updatePassword_result(");
11863
      boolean first = true;
11864
 
11865
      sb.append("success:");
11866
      sb.append(this.success);
11867
      first = false;
11868
      if (!first) sb.append(", ");
11869
      sb.append("se:");
11870
      if (this.se == null) {
11871
        sb.append("null");
11872
      } else {
11873
        sb.append(this.se);
11874
      }
11875
      first = false;
11876
      sb.append(")");
11877
      return sb.toString();
11878
    }
11879
 
3430 rajveer 11880
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11881
      // check for required fields
11882
    }
11883
 
3430 rajveer 11884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11885
      try {
11886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11887
      } catch (org.apache.thrift.TException te) {
11888
        throw new java.io.IOException(te);
11889
      }
11890
    }
11891
 
11892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11893
      try {
11894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11895
      } catch (org.apache.thrift.TException te) {
11896
        throw new java.io.IOException(te);
11897
      }
11898
    }
11899
 
495 rajveer 11900
  }
11901
 
3430 rajveer 11902
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 11904
 
3430 rajveer 11905
    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);
11906
    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 11907
 
3430 rajveer 11908
    private String username; // required
11909
    private String password; // required
750 chandransh 11910
 
11911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11913
      USERNAME((short)1, "username"),
11914
      PASSWORD((short)2, "password");
11915
 
11916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11917
 
11918
      static {
11919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11920
          byName.put(field.getFieldName(), field);
11921
        }
11922
      }
11923
 
11924
      /**
11925
       * Find the _Fields constant that matches fieldId, or null if its not found.
11926
       */
11927
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11928
        switch(fieldId) {
11929
          case 1: // USERNAME
11930
            return USERNAME;
11931
          case 2: // PASSWORD
11932
            return PASSWORD;
11933
          default:
11934
            return null;
11935
        }
750 chandransh 11936
      }
11937
 
11938
      /**
11939
       * Find the _Fields constant that matches fieldId, throwing an exception
11940
       * if it is not found.
11941
       */
11942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11943
        _Fields fields = findByThriftId(fieldId);
11944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11945
        return fields;
11946
      }
11947
 
11948
      /**
11949
       * Find the _Fields constant that matches name, or null if its not found.
11950
       */
11951
      public static _Fields findByName(String name) {
11952
        return byName.get(name);
11953
      }
11954
 
11955
      private final short _thriftId;
11956
      private final String _fieldName;
11957
 
11958
      _Fields(short thriftId, String fieldName) {
11959
        _thriftId = thriftId;
11960
        _fieldName = fieldName;
11961
      }
11962
 
11963
      public short getThriftFieldId() {
11964
        return _thriftId;
11965
      }
11966
 
11967
      public String getFieldName() {
11968
        return _fieldName;
11969
      }
11970
    }
11971
 
11972
    // isset id assignments
11973
 
3430 rajveer 11974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11975
    static {
3430 rajveer 11976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11977
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11979
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 11983
    }
11984
 
11985
    public authenticateLogisticsUser_args() {
11986
    }
11987
 
11988
    public authenticateLogisticsUser_args(
11989
      String username,
11990
      String password)
11991
    {
11992
      this();
11993
      this.username = username;
11994
      this.password = password;
11995
    }
11996
 
11997
    /**
11998
     * Performs a deep copy on <i>other</i>.
11999
     */
12000
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12001
      if (other.isSetUsername()) {
12002
        this.username = other.username;
12003
      }
12004
      if (other.isSetPassword()) {
12005
        this.password = other.password;
12006
      }
12007
    }
12008
 
12009
    public authenticateLogisticsUser_args deepCopy() {
12010
      return new authenticateLogisticsUser_args(this);
12011
    }
12012
 
3430 rajveer 12013
    @Override
12014
    public void clear() {
12015
      this.username = null;
12016
      this.password = null;
750 chandransh 12017
    }
12018
 
12019
    public String getUsername() {
12020
      return this.username;
12021
    }
12022
 
3430 rajveer 12023
    public void setUsername(String username) {
750 chandransh 12024
      this.username = username;
12025
    }
12026
 
12027
    public void unsetUsername() {
12028
      this.username = null;
12029
    }
12030
 
3430 rajveer 12031
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12032
    public boolean isSetUsername() {
12033
      return this.username != null;
12034
    }
12035
 
12036
    public void setUsernameIsSet(boolean value) {
12037
      if (!value) {
12038
        this.username = null;
12039
      }
12040
    }
12041
 
12042
    public String getPassword() {
12043
      return this.password;
12044
    }
12045
 
3430 rajveer 12046
    public void setPassword(String password) {
750 chandransh 12047
      this.password = password;
12048
    }
12049
 
12050
    public void unsetPassword() {
12051
      this.password = null;
12052
    }
12053
 
3430 rajveer 12054
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12055
    public boolean isSetPassword() {
12056
      return this.password != null;
12057
    }
12058
 
12059
    public void setPasswordIsSet(boolean value) {
12060
      if (!value) {
12061
        this.password = null;
12062
      }
12063
    }
12064
 
12065
    public void setFieldValue(_Fields field, Object value) {
12066
      switch (field) {
12067
      case USERNAME:
12068
        if (value == null) {
12069
          unsetUsername();
12070
        } else {
12071
          setUsername((String)value);
12072
        }
12073
        break;
12074
 
12075
      case PASSWORD:
12076
        if (value == null) {
12077
          unsetPassword();
12078
        } else {
12079
          setPassword((String)value);
12080
        }
12081
        break;
12082
 
12083
      }
12084
    }
12085
 
12086
    public Object getFieldValue(_Fields field) {
12087
      switch (field) {
12088
      case USERNAME:
12089
        return getUsername();
12090
 
12091
      case PASSWORD:
12092
        return getPassword();
12093
 
12094
      }
12095
      throw new IllegalStateException();
12096
    }
12097
 
3430 rajveer 12098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12099
    public boolean isSet(_Fields field) {
12100
      if (field == null) {
12101
        throw new IllegalArgumentException();
12102
      }
750 chandransh 12103
 
12104
      switch (field) {
12105
      case USERNAME:
12106
        return isSetUsername();
12107
      case PASSWORD:
12108
        return isSetPassword();
12109
      }
12110
      throw new IllegalStateException();
12111
    }
12112
 
12113
    @Override
12114
    public boolean equals(Object that) {
12115
      if (that == null)
12116
        return false;
12117
      if (that instanceof authenticateLogisticsUser_args)
12118
        return this.equals((authenticateLogisticsUser_args)that);
12119
      return false;
12120
    }
12121
 
12122
    public boolean equals(authenticateLogisticsUser_args that) {
12123
      if (that == null)
12124
        return false;
12125
 
12126
      boolean this_present_username = true && this.isSetUsername();
12127
      boolean that_present_username = true && that.isSetUsername();
12128
      if (this_present_username || that_present_username) {
12129
        if (!(this_present_username && that_present_username))
12130
          return false;
12131
        if (!this.username.equals(that.username))
12132
          return false;
12133
      }
12134
 
12135
      boolean this_present_password = true && this.isSetPassword();
12136
      boolean that_present_password = true && that.isSetPassword();
12137
      if (this_present_password || that_present_password) {
12138
        if (!(this_present_password && that_present_password))
12139
          return false;
12140
        if (!this.password.equals(that.password))
12141
          return false;
12142
      }
12143
 
12144
      return true;
12145
    }
12146
 
12147
    @Override
12148
    public int hashCode() {
12149
      return 0;
12150
    }
12151
 
12152
    public int compareTo(authenticateLogisticsUser_args other) {
12153
      if (!getClass().equals(other.getClass())) {
12154
        return getClass().getName().compareTo(other.getClass().getName());
12155
      }
12156
 
12157
      int lastComparison = 0;
12158
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12159
 
3430 rajveer 12160
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12161
      if (lastComparison != 0) {
12162
        return lastComparison;
12163
      }
3430 rajveer 12164
      if (isSetUsername()) {
12165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12166
        if (lastComparison != 0) {
12167
          return lastComparison;
12168
        }
750 chandransh 12169
      }
3430 rajveer 12170
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12171
      if (lastComparison != 0) {
12172
        return lastComparison;
12173
      }
3430 rajveer 12174
      if (isSetPassword()) {
12175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12176
        if (lastComparison != 0) {
12177
          return lastComparison;
12178
        }
750 chandransh 12179
      }
12180
      return 0;
12181
    }
12182
 
3430 rajveer 12183
    public _Fields fieldForId(int fieldId) {
12184
      return _Fields.findByThriftId(fieldId);
12185
    }
12186
 
12187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12188
      org.apache.thrift.protocol.TField field;
750 chandransh 12189
      iprot.readStructBegin();
12190
      while (true)
12191
      {
12192
        field = iprot.readFieldBegin();
3430 rajveer 12193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12194
          break;
12195
        }
3430 rajveer 12196
        switch (field.id) {
12197
          case 1: // USERNAME
12198
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12199
              this.username = iprot.readString();
12200
            } else { 
12201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12202
            }
12203
            break;
12204
          case 2: // PASSWORD
12205
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12206
              this.password = iprot.readString();
12207
            } else { 
12208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12209
            }
12210
            break;
12211
          default:
12212
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12213
        }
3430 rajveer 12214
        iprot.readFieldEnd();
750 chandransh 12215
      }
12216
      iprot.readStructEnd();
12217
      validate();
12218
    }
12219
 
3430 rajveer 12220
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12221
      validate();
12222
 
12223
      oprot.writeStructBegin(STRUCT_DESC);
12224
      if (this.username != null) {
12225
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12226
        oprot.writeString(this.username);
12227
        oprot.writeFieldEnd();
12228
      }
12229
      if (this.password != null) {
12230
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12231
        oprot.writeString(this.password);
12232
        oprot.writeFieldEnd();
12233
      }
12234
      oprot.writeFieldStop();
12235
      oprot.writeStructEnd();
12236
    }
12237
 
12238
    @Override
12239
    public String toString() {
12240
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12241
      boolean first = true;
12242
 
12243
      sb.append("username:");
12244
      if (this.username == null) {
12245
        sb.append("null");
12246
      } else {
12247
        sb.append(this.username);
12248
      }
12249
      first = false;
12250
      if (!first) sb.append(", ");
12251
      sb.append("password:");
12252
      if (this.password == null) {
12253
        sb.append("null");
12254
      } else {
12255
        sb.append(this.password);
12256
      }
12257
      first = false;
12258
      sb.append(")");
12259
      return sb.toString();
12260
    }
12261
 
3430 rajveer 12262
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12263
      // check for required fields
12264
    }
12265
 
3430 rajveer 12266
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12267
      try {
12268
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12269
      } catch (org.apache.thrift.TException te) {
12270
        throw new java.io.IOException(te);
12271
      }
12272
    }
12273
 
12274
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12275
      try {
12276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12277
      } catch (org.apache.thrift.TException te) {
12278
        throw new java.io.IOException(te);
12279
      }
12280
    }
12281
 
750 chandransh 12282
  }
12283
 
3430 rajveer 12284
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12286
 
3430 rajveer 12287
    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);
12288
    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 12289
 
3430 rajveer 12290
    private LogisticsUser success; // required
12291
    private HelperServiceException hse; // required
750 chandransh 12292
 
12293
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12294
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12295
      SUCCESS((short)0, "success"),
12296
      HSE((short)1, "hse");
12297
 
12298
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12299
 
12300
      static {
12301
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12302
          byName.put(field.getFieldName(), field);
12303
        }
12304
      }
12305
 
12306
      /**
12307
       * Find the _Fields constant that matches fieldId, or null if its not found.
12308
       */
12309
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12310
        switch(fieldId) {
12311
          case 0: // SUCCESS
12312
            return SUCCESS;
12313
          case 1: // HSE
12314
            return HSE;
12315
          default:
12316
            return null;
12317
        }
750 chandransh 12318
      }
12319
 
12320
      /**
12321
       * Find the _Fields constant that matches fieldId, throwing an exception
12322
       * if it is not found.
12323
       */
12324
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12325
        _Fields fields = findByThriftId(fieldId);
12326
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12327
        return fields;
12328
      }
12329
 
12330
      /**
12331
       * Find the _Fields constant that matches name, or null if its not found.
12332
       */
12333
      public static _Fields findByName(String name) {
12334
        return byName.get(name);
12335
      }
12336
 
12337
      private final short _thriftId;
12338
      private final String _fieldName;
12339
 
12340
      _Fields(short thriftId, String fieldName) {
12341
        _thriftId = thriftId;
12342
        _fieldName = fieldName;
12343
      }
12344
 
12345
      public short getThriftFieldId() {
12346
        return _thriftId;
12347
      }
12348
 
12349
      public String getFieldName() {
12350
        return _fieldName;
12351
      }
12352
    }
12353
 
12354
    // isset id assignments
12355
 
3430 rajveer 12356
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12357
    static {
3430 rajveer 12358
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12359
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12360
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12361
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12365
    }
12366
 
12367
    public authenticateLogisticsUser_result() {
12368
    }
12369
 
12370
    public authenticateLogisticsUser_result(
12371
      LogisticsUser success,
12372
      HelperServiceException hse)
12373
    {
12374
      this();
12375
      this.success = success;
12376
      this.hse = hse;
12377
    }
12378
 
12379
    /**
12380
     * Performs a deep copy on <i>other</i>.
12381
     */
12382
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12383
      if (other.isSetSuccess()) {
12384
        this.success = new LogisticsUser(other.success);
12385
      }
12386
      if (other.isSetHse()) {
12387
        this.hse = new HelperServiceException(other.hse);
12388
      }
12389
    }
12390
 
12391
    public authenticateLogisticsUser_result deepCopy() {
12392
      return new authenticateLogisticsUser_result(this);
12393
    }
12394
 
3430 rajveer 12395
    @Override
12396
    public void clear() {
12397
      this.success = null;
12398
      this.hse = null;
750 chandransh 12399
    }
12400
 
12401
    public LogisticsUser getSuccess() {
12402
      return this.success;
12403
    }
12404
 
3430 rajveer 12405
    public void setSuccess(LogisticsUser success) {
750 chandransh 12406
      this.success = success;
12407
    }
12408
 
12409
    public void unsetSuccess() {
12410
      this.success = null;
12411
    }
12412
 
3430 rajveer 12413
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12414
    public boolean isSetSuccess() {
12415
      return this.success != null;
12416
    }
12417
 
12418
    public void setSuccessIsSet(boolean value) {
12419
      if (!value) {
12420
        this.success = null;
12421
      }
12422
    }
12423
 
12424
    public HelperServiceException getHse() {
12425
      return this.hse;
12426
    }
12427
 
3430 rajveer 12428
    public void setHse(HelperServiceException hse) {
750 chandransh 12429
      this.hse = hse;
12430
    }
12431
 
12432
    public void unsetHse() {
12433
      this.hse = null;
12434
    }
12435
 
3430 rajveer 12436
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12437
    public boolean isSetHse() {
12438
      return this.hse != null;
12439
    }
12440
 
12441
    public void setHseIsSet(boolean value) {
12442
      if (!value) {
12443
        this.hse = null;
12444
      }
12445
    }
12446
 
12447
    public void setFieldValue(_Fields field, Object value) {
12448
      switch (field) {
12449
      case SUCCESS:
12450
        if (value == null) {
12451
          unsetSuccess();
12452
        } else {
12453
          setSuccess((LogisticsUser)value);
12454
        }
12455
        break;
12456
 
12457
      case HSE:
12458
        if (value == null) {
12459
          unsetHse();
12460
        } else {
12461
          setHse((HelperServiceException)value);
12462
        }
12463
        break;
12464
 
12465
      }
12466
    }
12467
 
12468
    public Object getFieldValue(_Fields field) {
12469
      switch (field) {
12470
      case SUCCESS:
12471
        return getSuccess();
12472
 
12473
      case HSE:
12474
        return getHse();
12475
 
12476
      }
12477
      throw new IllegalStateException();
12478
    }
12479
 
3430 rajveer 12480
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12481
    public boolean isSet(_Fields field) {
12482
      if (field == null) {
12483
        throw new IllegalArgumentException();
12484
      }
750 chandransh 12485
 
12486
      switch (field) {
12487
      case SUCCESS:
12488
        return isSetSuccess();
12489
      case HSE:
12490
        return isSetHse();
12491
      }
12492
      throw new IllegalStateException();
12493
    }
12494
 
12495
    @Override
12496
    public boolean equals(Object that) {
12497
      if (that == null)
12498
        return false;
12499
      if (that instanceof authenticateLogisticsUser_result)
12500
        return this.equals((authenticateLogisticsUser_result)that);
12501
      return false;
12502
    }
12503
 
12504
    public boolean equals(authenticateLogisticsUser_result that) {
12505
      if (that == null)
12506
        return false;
12507
 
12508
      boolean this_present_success = true && this.isSetSuccess();
12509
      boolean that_present_success = true && that.isSetSuccess();
12510
      if (this_present_success || that_present_success) {
12511
        if (!(this_present_success && that_present_success))
12512
          return false;
12513
        if (!this.success.equals(that.success))
12514
          return false;
12515
      }
12516
 
12517
      boolean this_present_hse = true && this.isSetHse();
12518
      boolean that_present_hse = true && that.isSetHse();
12519
      if (this_present_hse || that_present_hse) {
12520
        if (!(this_present_hse && that_present_hse))
12521
          return false;
12522
        if (!this.hse.equals(that.hse))
12523
          return false;
12524
      }
12525
 
12526
      return true;
12527
    }
12528
 
12529
    @Override
12530
    public int hashCode() {
12531
      return 0;
12532
    }
12533
 
12534
    public int compareTo(authenticateLogisticsUser_result other) {
12535
      if (!getClass().equals(other.getClass())) {
12536
        return getClass().getName().compareTo(other.getClass().getName());
12537
      }
12538
 
12539
      int lastComparison = 0;
12540
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12541
 
3430 rajveer 12542
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12543
      if (lastComparison != 0) {
12544
        return lastComparison;
12545
      }
3430 rajveer 12546
      if (isSetSuccess()) {
12547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12548
        if (lastComparison != 0) {
12549
          return lastComparison;
12550
        }
750 chandransh 12551
      }
3430 rajveer 12552
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12553
      if (lastComparison != 0) {
12554
        return lastComparison;
12555
      }
3430 rajveer 12556
      if (isSetHse()) {
12557
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12558
        if (lastComparison != 0) {
12559
          return lastComparison;
12560
        }
750 chandransh 12561
      }
12562
      return 0;
12563
    }
12564
 
3430 rajveer 12565
    public _Fields fieldForId(int fieldId) {
12566
      return _Fields.findByThriftId(fieldId);
12567
    }
12568
 
12569
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12570
      org.apache.thrift.protocol.TField field;
750 chandransh 12571
      iprot.readStructBegin();
12572
      while (true)
12573
      {
12574
        field = iprot.readFieldBegin();
3430 rajveer 12575
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12576
          break;
12577
        }
3430 rajveer 12578
        switch (field.id) {
12579
          case 0: // SUCCESS
12580
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12581
              this.success = new LogisticsUser();
12582
              this.success.read(iprot);
12583
            } else { 
12584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12585
            }
12586
            break;
12587
          case 1: // HSE
12588
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12589
              this.hse = new HelperServiceException();
12590
              this.hse.read(iprot);
12591
            } else { 
12592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12593
            }
12594
            break;
12595
          default:
12596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12597
        }
3430 rajveer 12598
        iprot.readFieldEnd();
750 chandransh 12599
      }
12600
      iprot.readStructEnd();
12601
      validate();
12602
    }
12603
 
3430 rajveer 12604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12605
      oprot.writeStructBegin(STRUCT_DESC);
12606
 
12607
      if (this.isSetSuccess()) {
12608
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12609
        this.success.write(oprot);
12610
        oprot.writeFieldEnd();
12611
      } else if (this.isSetHse()) {
12612
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12613
        this.hse.write(oprot);
12614
        oprot.writeFieldEnd();
12615
      }
12616
      oprot.writeFieldStop();
12617
      oprot.writeStructEnd();
12618
    }
12619
 
12620
    @Override
12621
    public String toString() {
12622
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12623
      boolean first = true;
12624
 
12625
      sb.append("success:");
12626
      if (this.success == null) {
12627
        sb.append("null");
12628
      } else {
12629
        sb.append(this.success);
12630
      }
12631
      first = false;
12632
      if (!first) sb.append(", ");
12633
      sb.append("hse:");
12634
      if (this.hse == null) {
12635
        sb.append("null");
12636
      } else {
12637
        sb.append(this.hse);
12638
      }
12639
      first = false;
12640
      sb.append(")");
12641
      return sb.toString();
12642
    }
12643
 
3430 rajveer 12644
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12645
      // check for required fields
12646
    }
12647
 
3430 rajveer 12648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12649
      try {
12650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12651
      } catch (org.apache.thrift.TException te) {
12652
        throw new java.io.IOException(te);
12653
      }
12654
    }
12655
 
12656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12657
      try {
12658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12659
      } catch (org.apache.thrift.TException te) {
12660
        throw new java.io.IOException(te);
12661
      }
12662
    }
12663
 
750 chandransh 12664
  }
12665
 
3430 rajveer 12666
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 12668
 
3430 rajveer 12669
    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);
12670
    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 12671
 
3430 rajveer 12672
    private String username; // required
12673
    private String password; // required
1611 ankur.sing 12674
 
12675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12677
      USERNAME((short)1, "username"),
12678
      PASSWORD((short)2, "password");
12679
 
12680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12681
 
12682
      static {
12683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12684
          byName.put(field.getFieldName(), field);
12685
        }
12686
      }
12687
 
12688
      /**
12689
       * Find the _Fields constant that matches fieldId, or null if its not found.
12690
       */
12691
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12692
        switch(fieldId) {
12693
          case 1: // USERNAME
12694
            return USERNAME;
12695
          case 2: // PASSWORD
12696
            return PASSWORD;
12697
          default:
12698
            return null;
12699
        }
1611 ankur.sing 12700
      }
12701
 
12702
      /**
12703
       * Find the _Fields constant that matches fieldId, throwing an exception
12704
       * if it is not found.
12705
       */
12706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12707
        _Fields fields = findByThriftId(fieldId);
12708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12709
        return fields;
12710
      }
12711
 
12712
      /**
12713
       * Find the _Fields constant that matches name, or null if its not found.
12714
       */
12715
      public static _Fields findByName(String name) {
12716
        return byName.get(name);
12717
      }
12718
 
12719
      private final short _thriftId;
12720
      private final String _fieldName;
12721
 
12722
      _Fields(short thriftId, String fieldName) {
12723
        _thriftId = thriftId;
12724
        _fieldName = fieldName;
12725
      }
12726
 
12727
      public short getThriftFieldId() {
12728
        return _thriftId;
12729
      }
12730
 
12731
      public String getFieldName() {
12732
        return _fieldName;
12733
      }
12734
    }
12735
 
12736
    // isset id assignments
12737
 
3430 rajveer 12738
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12739
    static {
3430 rajveer 12740
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12741
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12742
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12743
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 12747
    }
12748
 
12749
    public authenticateStatisticsUser_args() {
12750
    }
12751
 
12752
    public authenticateStatisticsUser_args(
12753
      String username,
12754
      String password)
12755
    {
12756
      this();
12757
      this.username = username;
12758
      this.password = password;
12759
    }
12760
 
12761
    /**
12762
     * Performs a deep copy on <i>other</i>.
12763
     */
12764
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
12765
      if (other.isSetUsername()) {
12766
        this.username = other.username;
12767
      }
12768
      if (other.isSetPassword()) {
12769
        this.password = other.password;
12770
      }
12771
    }
12772
 
12773
    public authenticateStatisticsUser_args deepCopy() {
12774
      return new authenticateStatisticsUser_args(this);
12775
    }
12776
 
3430 rajveer 12777
    @Override
12778
    public void clear() {
12779
      this.username = null;
12780
      this.password = null;
1611 ankur.sing 12781
    }
12782
 
12783
    public String getUsername() {
12784
      return this.username;
12785
    }
12786
 
3430 rajveer 12787
    public void setUsername(String username) {
1611 ankur.sing 12788
      this.username = username;
12789
    }
12790
 
12791
    public void unsetUsername() {
12792
      this.username = null;
12793
    }
12794
 
3430 rajveer 12795
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12796
    public boolean isSetUsername() {
12797
      return this.username != null;
12798
    }
12799
 
12800
    public void setUsernameIsSet(boolean value) {
12801
      if (!value) {
12802
        this.username = null;
12803
      }
12804
    }
12805
 
12806
    public String getPassword() {
12807
      return this.password;
12808
    }
12809
 
3430 rajveer 12810
    public void setPassword(String password) {
1611 ankur.sing 12811
      this.password = password;
12812
    }
12813
 
12814
    public void unsetPassword() {
12815
      this.password = null;
12816
    }
12817
 
3430 rajveer 12818
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12819
    public boolean isSetPassword() {
12820
      return this.password != null;
12821
    }
12822
 
12823
    public void setPasswordIsSet(boolean value) {
12824
      if (!value) {
12825
        this.password = null;
12826
      }
12827
    }
12828
 
12829
    public void setFieldValue(_Fields field, Object value) {
12830
      switch (field) {
12831
      case USERNAME:
12832
        if (value == null) {
12833
          unsetUsername();
12834
        } else {
12835
          setUsername((String)value);
12836
        }
12837
        break;
12838
 
12839
      case PASSWORD:
12840
        if (value == null) {
12841
          unsetPassword();
12842
        } else {
12843
          setPassword((String)value);
12844
        }
12845
        break;
12846
 
12847
      }
12848
    }
12849
 
12850
    public Object getFieldValue(_Fields field) {
12851
      switch (field) {
12852
      case USERNAME:
12853
        return getUsername();
12854
 
12855
      case PASSWORD:
12856
        return getPassword();
12857
 
12858
      }
12859
      throw new IllegalStateException();
12860
    }
12861
 
3430 rajveer 12862
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12863
    public boolean isSet(_Fields field) {
12864
      if (field == null) {
12865
        throw new IllegalArgumentException();
12866
      }
1611 ankur.sing 12867
 
12868
      switch (field) {
12869
      case USERNAME:
12870
        return isSetUsername();
12871
      case PASSWORD:
12872
        return isSetPassword();
12873
      }
12874
      throw new IllegalStateException();
12875
    }
12876
 
12877
    @Override
12878
    public boolean equals(Object that) {
12879
      if (that == null)
12880
        return false;
12881
      if (that instanceof authenticateStatisticsUser_args)
12882
        return this.equals((authenticateStatisticsUser_args)that);
12883
      return false;
12884
    }
12885
 
12886
    public boolean equals(authenticateStatisticsUser_args that) {
12887
      if (that == null)
12888
        return false;
12889
 
12890
      boolean this_present_username = true && this.isSetUsername();
12891
      boolean that_present_username = true && that.isSetUsername();
12892
      if (this_present_username || that_present_username) {
12893
        if (!(this_present_username && that_present_username))
12894
          return false;
12895
        if (!this.username.equals(that.username))
12896
          return false;
12897
      }
12898
 
12899
      boolean this_present_password = true && this.isSetPassword();
12900
      boolean that_present_password = true && that.isSetPassword();
12901
      if (this_present_password || that_present_password) {
12902
        if (!(this_present_password && that_present_password))
12903
          return false;
12904
        if (!this.password.equals(that.password))
12905
          return false;
12906
      }
12907
 
12908
      return true;
12909
    }
12910
 
12911
    @Override
12912
    public int hashCode() {
12913
      return 0;
12914
    }
12915
 
12916
    public int compareTo(authenticateStatisticsUser_args other) {
12917
      if (!getClass().equals(other.getClass())) {
12918
        return getClass().getName().compareTo(other.getClass().getName());
12919
      }
12920
 
12921
      int lastComparison = 0;
12922
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12923
 
3430 rajveer 12924
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 12925
      if (lastComparison != 0) {
12926
        return lastComparison;
12927
      }
3430 rajveer 12928
      if (isSetUsername()) {
12929
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12930
        if (lastComparison != 0) {
12931
          return lastComparison;
12932
        }
1611 ankur.sing 12933
      }
3430 rajveer 12934
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 12935
      if (lastComparison != 0) {
12936
        return lastComparison;
12937
      }
3430 rajveer 12938
      if (isSetPassword()) {
12939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12940
        if (lastComparison != 0) {
12941
          return lastComparison;
12942
        }
1611 ankur.sing 12943
      }
12944
      return 0;
12945
    }
12946
 
3430 rajveer 12947
    public _Fields fieldForId(int fieldId) {
12948
      return _Fields.findByThriftId(fieldId);
12949
    }
12950
 
12951
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12952
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12953
      iprot.readStructBegin();
12954
      while (true)
12955
      {
12956
        field = iprot.readFieldBegin();
3430 rajveer 12957
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12958
          break;
12959
        }
3430 rajveer 12960
        switch (field.id) {
12961
          case 1: // USERNAME
12962
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12963
              this.username = iprot.readString();
12964
            } else { 
12965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12966
            }
12967
            break;
12968
          case 2: // PASSWORD
12969
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12970
              this.password = iprot.readString();
12971
            } else { 
12972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12973
            }
12974
            break;
12975
          default:
12976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12977
        }
3430 rajveer 12978
        iprot.readFieldEnd();
1611 ankur.sing 12979
      }
12980
      iprot.readStructEnd();
12981
      validate();
12982
    }
12983
 
3430 rajveer 12984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12985
      validate();
12986
 
12987
      oprot.writeStructBegin(STRUCT_DESC);
12988
      if (this.username != null) {
12989
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12990
        oprot.writeString(this.username);
12991
        oprot.writeFieldEnd();
12992
      }
12993
      if (this.password != null) {
12994
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12995
        oprot.writeString(this.password);
12996
        oprot.writeFieldEnd();
12997
      }
12998
      oprot.writeFieldStop();
12999
      oprot.writeStructEnd();
13000
    }
13001
 
13002
    @Override
13003
    public String toString() {
13004
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13005
      boolean first = true;
13006
 
13007
      sb.append("username:");
13008
      if (this.username == null) {
13009
        sb.append("null");
13010
      } else {
13011
        sb.append(this.username);
13012
      }
13013
      first = false;
13014
      if (!first) sb.append(", ");
13015
      sb.append("password:");
13016
      if (this.password == null) {
13017
        sb.append("null");
13018
      } else {
13019
        sb.append(this.password);
13020
      }
13021
      first = false;
13022
      sb.append(")");
13023
      return sb.toString();
13024
    }
13025
 
3430 rajveer 13026
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13027
      // check for required fields
13028
    }
13029
 
3430 rajveer 13030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13031
      try {
13032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13033
      } catch (org.apache.thrift.TException te) {
13034
        throw new java.io.IOException(te);
13035
      }
13036
    }
13037
 
13038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13039
      try {
13040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13041
      } catch (org.apache.thrift.TException te) {
13042
        throw new java.io.IOException(te);
13043
      }
13044
    }
13045
 
1611 ankur.sing 13046
  }
13047
 
3430 rajveer 13048
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13049
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13050
 
3430 rajveer 13051
    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);
13052
    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 13053
 
3430 rajveer 13054
    private StatisticsUser success; // required
13055
    private HelperServiceException hse; // required
1611 ankur.sing 13056
 
13057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13059
      SUCCESS((short)0, "success"),
13060
      HSE((short)1, "hse");
13061
 
13062
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13063
 
13064
      static {
13065
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13066
          byName.put(field.getFieldName(), field);
13067
        }
13068
      }
13069
 
13070
      /**
13071
       * Find the _Fields constant that matches fieldId, or null if its not found.
13072
       */
13073
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13074
        switch(fieldId) {
13075
          case 0: // SUCCESS
13076
            return SUCCESS;
13077
          case 1: // HSE
13078
            return HSE;
13079
          default:
13080
            return null;
13081
        }
1611 ankur.sing 13082
      }
13083
 
13084
      /**
13085
       * Find the _Fields constant that matches fieldId, throwing an exception
13086
       * if it is not found.
13087
       */
13088
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13089
        _Fields fields = findByThriftId(fieldId);
13090
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13091
        return fields;
13092
      }
13093
 
13094
      /**
13095
       * Find the _Fields constant that matches name, or null if its not found.
13096
       */
13097
      public static _Fields findByName(String name) {
13098
        return byName.get(name);
13099
      }
13100
 
13101
      private final short _thriftId;
13102
      private final String _fieldName;
13103
 
13104
      _Fields(short thriftId, String fieldName) {
13105
        _thriftId = thriftId;
13106
        _fieldName = fieldName;
13107
      }
13108
 
13109
      public short getThriftFieldId() {
13110
        return _thriftId;
13111
      }
13112
 
13113
      public String getFieldName() {
13114
        return _fieldName;
13115
      }
13116
    }
13117
 
13118
    // isset id assignments
13119
 
3430 rajveer 13120
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13121
    static {
3430 rajveer 13122
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13123
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13124
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13125
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13129
    }
13130
 
13131
    public authenticateStatisticsUser_result() {
13132
    }
13133
 
13134
    public authenticateStatisticsUser_result(
13135
      StatisticsUser success,
13136
      HelperServiceException hse)
13137
    {
13138
      this();
13139
      this.success = success;
13140
      this.hse = hse;
13141
    }
13142
 
13143
    /**
13144
     * Performs a deep copy on <i>other</i>.
13145
     */
13146
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13147
      if (other.isSetSuccess()) {
13148
        this.success = new StatisticsUser(other.success);
13149
      }
13150
      if (other.isSetHse()) {
13151
        this.hse = new HelperServiceException(other.hse);
13152
      }
13153
    }
13154
 
13155
    public authenticateStatisticsUser_result deepCopy() {
13156
      return new authenticateStatisticsUser_result(this);
13157
    }
13158
 
3430 rajveer 13159
    @Override
13160
    public void clear() {
13161
      this.success = null;
13162
      this.hse = null;
1611 ankur.sing 13163
    }
13164
 
13165
    public StatisticsUser getSuccess() {
13166
      return this.success;
13167
    }
13168
 
3430 rajveer 13169
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13170
      this.success = success;
13171
    }
13172
 
13173
    public void unsetSuccess() {
13174
      this.success = null;
13175
    }
13176
 
3430 rajveer 13177
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13178
    public boolean isSetSuccess() {
13179
      return this.success != null;
13180
    }
13181
 
13182
    public void setSuccessIsSet(boolean value) {
13183
      if (!value) {
13184
        this.success = null;
13185
      }
13186
    }
13187
 
13188
    public HelperServiceException getHse() {
13189
      return this.hse;
13190
    }
13191
 
3430 rajveer 13192
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13193
      this.hse = hse;
13194
    }
13195
 
13196
    public void unsetHse() {
13197
      this.hse = null;
13198
    }
13199
 
3430 rajveer 13200
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13201
    public boolean isSetHse() {
13202
      return this.hse != null;
13203
    }
13204
 
13205
    public void setHseIsSet(boolean value) {
13206
      if (!value) {
13207
        this.hse = null;
13208
      }
13209
    }
13210
 
13211
    public void setFieldValue(_Fields field, Object value) {
13212
      switch (field) {
13213
      case SUCCESS:
13214
        if (value == null) {
13215
          unsetSuccess();
13216
        } else {
13217
          setSuccess((StatisticsUser)value);
13218
        }
13219
        break;
13220
 
13221
      case HSE:
13222
        if (value == null) {
13223
          unsetHse();
13224
        } else {
13225
          setHse((HelperServiceException)value);
13226
        }
13227
        break;
13228
 
13229
      }
13230
    }
13231
 
13232
    public Object getFieldValue(_Fields field) {
13233
      switch (field) {
13234
      case SUCCESS:
13235
        return getSuccess();
13236
 
13237
      case HSE:
13238
        return getHse();
13239
 
13240
      }
13241
      throw new IllegalStateException();
13242
    }
13243
 
3430 rajveer 13244
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13245
    public boolean isSet(_Fields field) {
13246
      if (field == null) {
13247
        throw new IllegalArgumentException();
13248
      }
1611 ankur.sing 13249
 
13250
      switch (field) {
13251
      case SUCCESS:
13252
        return isSetSuccess();
13253
      case HSE:
13254
        return isSetHse();
13255
      }
13256
      throw new IllegalStateException();
13257
    }
13258
 
13259
    @Override
13260
    public boolean equals(Object that) {
13261
      if (that == null)
13262
        return false;
13263
      if (that instanceof authenticateStatisticsUser_result)
13264
        return this.equals((authenticateStatisticsUser_result)that);
13265
      return false;
13266
    }
13267
 
13268
    public boolean equals(authenticateStatisticsUser_result that) {
13269
      if (that == null)
13270
        return false;
13271
 
13272
      boolean this_present_success = true && this.isSetSuccess();
13273
      boolean that_present_success = true && that.isSetSuccess();
13274
      if (this_present_success || that_present_success) {
13275
        if (!(this_present_success && that_present_success))
13276
          return false;
13277
        if (!this.success.equals(that.success))
13278
          return false;
13279
      }
13280
 
13281
      boolean this_present_hse = true && this.isSetHse();
13282
      boolean that_present_hse = true && that.isSetHse();
13283
      if (this_present_hse || that_present_hse) {
13284
        if (!(this_present_hse && that_present_hse))
13285
          return false;
13286
        if (!this.hse.equals(that.hse))
13287
          return false;
13288
      }
13289
 
13290
      return true;
13291
    }
13292
 
13293
    @Override
13294
    public int hashCode() {
13295
      return 0;
13296
    }
13297
 
13298
    public int compareTo(authenticateStatisticsUser_result other) {
13299
      if (!getClass().equals(other.getClass())) {
13300
        return getClass().getName().compareTo(other.getClass().getName());
13301
      }
13302
 
13303
      int lastComparison = 0;
13304
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13305
 
3430 rajveer 13306
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13307
      if (lastComparison != 0) {
13308
        return lastComparison;
13309
      }
3430 rajveer 13310
      if (isSetSuccess()) {
13311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13312
        if (lastComparison != 0) {
13313
          return lastComparison;
13314
        }
1611 ankur.sing 13315
      }
3430 rajveer 13316
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13317
      if (lastComparison != 0) {
13318
        return lastComparison;
13319
      }
3430 rajveer 13320
      if (isSetHse()) {
13321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13322
        if (lastComparison != 0) {
13323
          return lastComparison;
13324
        }
1611 ankur.sing 13325
      }
13326
      return 0;
13327
    }
13328
 
3430 rajveer 13329
    public _Fields fieldForId(int fieldId) {
13330
      return _Fields.findByThriftId(fieldId);
13331
    }
13332
 
13333
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13334
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13335
      iprot.readStructBegin();
13336
      while (true)
13337
      {
13338
        field = iprot.readFieldBegin();
3430 rajveer 13339
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13340
          break;
13341
        }
3430 rajveer 13342
        switch (field.id) {
13343
          case 0: // SUCCESS
13344
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13345
              this.success = new StatisticsUser();
13346
              this.success.read(iprot);
13347
            } else { 
13348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13349
            }
13350
            break;
13351
          case 1: // HSE
13352
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13353
              this.hse = new HelperServiceException();
13354
              this.hse.read(iprot);
13355
            } else { 
13356
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13357
            }
13358
            break;
13359
          default:
13360
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13361
        }
3430 rajveer 13362
        iprot.readFieldEnd();
1611 ankur.sing 13363
      }
13364
      iprot.readStructEnd();
13365
      validate();
13366
    }
13367
 
3430 rajveer 13368
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13369
      oprot.writeStructBegin(STRUCT_DESC);
13370
 
13371
      if (this.isSetSuccess()) {
13372
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13373
        this.success.write(oprot);
13374
        oprot.writeFieldEnd();
13375
      } else if (this.isSetHse()) {
13376
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13377
        this.hse.write(oprot);
13378
        oprot.writeFieldEnd();
13379
      }
13380
      oprot.writeFieldStop();
13381
      oprot.writeStructEnd();
13382
    }
13383
 
13384
    @Override
13385
    public String toString() {
13386
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13387
      boolean first = true;
13388
 
13389
      sb.append("success:");
13390
      if (this.success == null) {
13391
        sb.append("null");
13392
      } else {
13393
        sb.append(this.success);
13394
      }
13395
      first = false;
13396
      if (!first) sb.append(", ");
13397
      sb.append("hse:");
13398
      if (this.hse == null) {
13399
        sb.append("null");
13400
      } else {
13401
        sb.append(this.hse);
13402
      }
13403
      first = false;
13404
      sb.append(")");
13405
      return sb.toString();
13406
    }
13407
 
3430 rajveer 13408
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13409
      // check for required fields
13410
    }
13411
 
3430 rajveer 13412
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13413
      try {
13414
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13415
      } catch (org.apache.thrift.TException te) {
13416
        throw new java.io.IOException(te);
13417
      }
13418
    }
13419
 
13420
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13421
      try {
13422
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13423
      } catch (org.apache.thrift.TException te) {
13424
        throw new java.io.IOException(te);
13425
      }
13426
    }
13427
 
1611 ankur.sing 13428
  }
13429
 
3430 rajveer 13430
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13431
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13432
 
3430 rajveer 13433
    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);
13434
    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 13435
 
3430 rajveer 13436
    private String username; // required
13437
    private String password; // required
1891 ankur.sing 13438
 
13439
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13440
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13441
      USERNAME((short)1, "username"),
13442
      PASSWORD((short)2, "password");
13443
 
13444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13445
 
13446
      static {
13447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13448
          byName.put(field.getFieldName(), field);
13449
        }
13450
      }
13451
 
13452
      /**
13453
       * Find the _Fields constant that matches fieldId, or null if its not found.
13454
       */
13455
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13456
        switch(fieldId) {
13457
          case 1: // USERNAME
13458
            return USERNAME;
13459
          case 2: // PASSWORD
13460
            return PASSWORD;
13461
          default:
13462
            return null;
13463
        }
1891 ankur.sing 13464
      }
13465
 
13466
      /**
13467
       * Find the _Fields constant that matches fieldId, throwing an exception
13468
       * if it is not found.
13469
       */
13470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13471
        _Fields fields = findByThriftId(fieldId);
13472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13473
        return fields;
13474
      }
13475
 
13476
      /**
13477
       * Find the _Fields constant that matches name, or null if its not found.
13478
       */
13479
      public static _Fields findByName(String name) {
13480
        return byName.get(name);
13481
      }
13482
 
13483
      private final short _thriftId;
13484
      private final String _fieldName;
13485
 
13486
      _Fields(short thriftId, String fieldName) {
13487
        _thriftId = thriftId;
13488
        _fieldName = fieldName;
13489
      }
13490
 
13491
      public short getThriftFieldId() {
13492
        return _thriftId;
13493
      }
13494
 
13495
      public String getFieldName() {
13496
        return _fieldName;
13497
      }
13498
    }
13499
 
13500
    // isset id assignments
13501
 
3430 rajveer 13502
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13503
    static {
3430 rajveer 13504
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13505
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13507
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13511
    }
13512
 
13513
    public authenticateReportUser_args() {
13514
    }
13515
 
13516
    public authenticateReportUser_args(
13517
      String username,
13518
      String password)
13519
    {
13520
      this();
13521
      this.username = username;
13522
      this.password = password;
13523
    }
13524
 
13525
    /**
13526
     * Performs a deep copy on <i>other</i>.
13527
     */
13528
    public authenticateReportUser_args(authenticateReportUser_args other) {
13529
      if (other.isSetUsername()) {
13530
        this.username = other.username;
13531
      }
13532
      if (other.isSetPassword()) {
13533
        this.password = other.password;
13534
      }
13535
    }
13536
 
13537
    public authenticateReportUser_args deepCopy() {
13538
      return new authenticateReportUser_args(this);
13539
    }
13540
 
3430 rajveer 13541
    @Override
13542
    public void clear() {
13543
      this.username = null;
13544
      this.password = null;
1891 ankur.sing 13545
    }
13546
 
13547
    public String getUsername() {
13548
      return this.username;
13549
    }
13550
 
3430 rajveer 13551
    public void setUsername(String username) {
1891 ankur.sing 13552
      this.username = username;
13553
    }
13554
 
13555
    public void unsetUsername() {
13556
      this.username = null;
13557
    }
13558
 
3430 rajveer 13559
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13560
    public boolean isSetUsername() {
13561
      return this.username != null;
13562
    }
13563
 
13564
    public void setUsernameIsSet(boolean value) {
13565
      if (!value) {
13566
        this.username = null;
13567
      }
13568
    }
13569
 
13570
    public String getPassword() {
13571
      return this.password;
13572
    }
13573
 
3430 rajveer 13574
    public void setPassword(String password) {
1891 ankur.sing 13575
      this.password = password;
13576
    }
13577
 
13578
    public void unsetPassword() {
13579
      this.password = null;
13580
    }
13581
 
3430 rajveer 13582
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13583
    public boolean isSetPassword() {
13584
      return this.password != null;
13585
    }
13586
 
13587
    public void setPasswordIsSet(boolean value) {
13588
      if (!value) {
13589
        this.password = null;
13590
      }
13591
    }
13592
 
13593
    public void setFieldValue(_Fields field, Object value) {
13594
      switch (field) {
13595
      case USERNAME:
13596
        if (value == null) {
13597
          unsetUsername();
13598
        } else {
13599
          setUsername((String)value);
13600
        }
13601
        break;
13602
 
13603
      case PASSWORD:
13604
        if (value == null) {
13605
          unsetPassword();
13606
        } else {
13607
          setPassword((String)value);
13608
        }
13609
        break;
13610
 
13611
      }
13612
    }
13613
 
13614
    public Object getFieldValue(_Fields field) {
13615
      switch (field) {
13616
      case USERNAME:
13617
        return getUsername();
13618
 
13619
      case PASSWORD:
13620
        return getPassword();
13621
 
13622
      }
13623
      throw new IllegalStateException();
13624
    }
13625
 
3430 rajveer 13626
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13627
    public boolean isSet(_Fields field) {
13628
      if (field == null) {
13629
        throw new IllegalArgumentException();
13630
      }
1891 ankur.sing 13631
 
13632
      switch (field) {
13633
      case USERNAME:
13634
        return isSetUsername();
13635
      case PASSWORD:
13636
        return isSetPassword();
13637
      }
13638
      throw new IllegalStateException();
13639
    }
13640
 
13641
    @Override
13642
    public boolean equals(Object that) {
13643
      if (that == null)
13644
        return false;
13645
      if (that instanceof authenticateReportUser_args)
13646
        return this.equals((authenticateReportUser_args)that);
13647
      return false;
13648
    }
13649
 
13650
    public boolean equals(authenticateReportUser_args that) {
13651
      if (that == null)
13652
        return false;
13653
 
13654
      boolean this_present_username = true && this.isSetUsername();
13655
      boolean that_present_username = true && that.isSetUsername();
13656
      if (this_present_username || that_present_username) {
13657
        if (!(this_present_username && that_present_username))
13658
          return false;
13659
        if (!this.username.equals(that.username))
13660
          return false;
13661
      }
13662
 
13663
      boolean this_present_password = true && this.isSetPassword();
13664
      boolean that_present_password = true && that.isSetPassword();
13665
      if (this_present_password || that_present_password) {
13666
        if (!(this_present_password && that_present_password))
13667
          return false;
13668
        if (!this.password.equals(that.password))
13669
          return false;
13670
      }
13671
 
13672
      return true;
13673
    }
13674
 
13675
    @Override
13676
    public int hashCode() {
13677
      return 0;
13678
    }
13679
 
13680
    public int compareTo(authenticateReportUser_args other) {
13681
      if (!getClass().equals(other.getClass())) {
13682
        return getClass().getName().compareTo(other.getClass().getName());
13683
      }
13684
 
13685
      int lastComparison = 0;
13686
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
13687
 
3430 rajveer 13688
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 13689
      if (lastComparison != 0) {
13690
        return lastComparison;
13691
      }
3430 rajveer 13692
      if (isSetUsername()) {
13693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13694
        if (lastComparison != 0) {
13695
          return lastComparison;
13696
        }
1891 ankur.sing 13697
      }
3430 rajveer 13698
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 13699
      if (lastComparison != 0) {
13700
        return lastComparison;
13701
      }
3430 rajveer 13702
      if (isSetPassword()) {
13703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13704
        if (lastComparison != 0) {
13705
          return lastComparison;
13706
        }
1891 ankur.sing 13707
      }
13708
      return 0;
13709
    }
13710
 
3430 rajveer 13711
    public _Fields fieldForId(int fieldId) {
13712
      return _Fields.findByThriftId(fieldId);
13713
    }
13714
 
13715
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13716
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13717
      iprot.readStructBegin();
13718
      while (true)
13719
      {
13720
        field = iprot.readFieldBegin();
3430 rajveer 13721
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13722
          break;
13723
        }
3430 rajveer 13724
        switch (field.id) {
13725
          case 1: // USERNAME
13726
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13727
              this.username = iprot.readString();
13728
            } else { 
13729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13730
            }
13731
            break;
13732
          case 2: // PASSWORD
13733
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13734
              this.password = iprot.readString();
13735
            } else { 
13736
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13737
            }
13738
            break;
13739
          default:
13740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13741
        }
3430 rajveer 13742
        iprot.readFieldEnd();
1891 ankur.sing 13743
      }
13744
      iprot.readStructEnd();
13745
      validate();
13746
    }
13747
 
3430 rajveer 13748
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13749
      validate();
13750
 
13751
      oprot.writeStructBegin(STRUCT_DESC);
13752
      if (this.username != null) {
13753
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13754
        oprot.writeString(this.username);
13755
        oprot.writeFieldEnd();
13756
      }
13757
      if (this.password != null) {
13758
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13759
        oprot.writeString(this.password);
13760
        oprot.writeFieldEnd();
13761
      }
13762
      oprot.writeFieldStop();
13763
      oprot.writeStructEnd();
13764
    }
13765
 
13766
    @Override
13767
    public String toString() {
13768
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
13769
      boolean first = true;
13770
 
13771
      sb.append("username:");
13772
      if (this.username == null) {
13773
        sb.append("null");
13774
      } else {
13775
        sb.append(this.username);
13776
      }
13777
      first = false;
13778
      if (!first) sb.append(", ");
13779
      sb.append("password:");
13780
      if (this.password == null) {
13781
        sb.append("null");
13782
      } else {
13783
        sb.append(this.password);
13784
      }
13785
      first = false;
13786
      sb.append(")");
13787
      return sb.toString();
13788
    }
13789
 
3430 rajveer 13790
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13791
      // check for required fields
13792
    }
13793
 
3430 rajveer 13794
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13795
      try {
13796
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13797
      } catch (org.apache.thrift.TException te) {
13798
        throw new java.io.IOException(te);
13799
      }
13800
    }
13801
 
13802
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13803
      try {
13804
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13805
      } catch (org.apache.thrift.TException te) {
13806
        throw new java.io.IOException(te);
13807
      }
13808
    }
13809
 
1891 ankur.sing 13810
  }
13811
 
3430 rajveer 13812
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
13813
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 13814
 
3430 rajveer 13815
    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);
13816
    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 13817
 
3430 rajveer 13818
    private ReportUser success; // required
13819
    private HelperServiceException hse; // required
1891 ankur.sing 13820
 
13821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13823
      SUCCESS((short)0, "success"),
13824
      HSE((short)1, "hse");
13825
 
13826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13827
 
13828
      static {
13829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13830
          byName.put(field.getFieldName(), field);
13831
        }
13832
      }
13833
 
13834
      /**
13835
       * Find the _Fields constant that matches fieldId, or null if its not found.
13836
       */
13837
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13838
        switch(fieldId) {
13839
          case 0: // SUCCESS
13840
            return SUCCESS;
13841
          case 1: // HSE
13842
            return HSE;
13843
          default:
13844
            return null;
13845
        }
1891 ankur.sing 13846
      }
13847
 
13848
      /**
13849
       * Find the _Fields constant that matches fieldId, throwing an exception
13850
       * if it is not found.
13851
       */
13852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13853
        _Fields fields = findByThriftId(fieldId);
13854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13855
        return fields;
13856
      }
13857
 
13858
      /**
13859
       * Find the _Fields constant that matches name, or null if its not found.
13860
       */
13861
      public static _Fields findByName(String name) {
13862
        return byName.get(name);
13863
      }
13864
 
13865
      private final short _thriftId;
13866
      private final String _fieldName;
13867
 
13868
      _Fields(short thriftId, String fieldName) {
13869
        _thriftId = thriftId;
13870
        _fieldName = fieldName;
13871
      }
13872
 
13873
      public short getThriftFieldId() {
13874
        return _thriftId;
13875
      }
13876
 
13877
      public String getFieldName() {
13878
        return _fieldName;
13879
      }
13880
    }
13881
 
13882
    // isset id assignments
13883
 
3430 rajveer 13884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13885
    static {
3430 rajveer 13886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13887
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13888
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
13889
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13891
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13892
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 13893
    }
13894
 
13895
    public authenticateReportUser_result() {
13896
    }
13897
 
13898
    public authenticateReportUser_result(
13899
      ReportUser success,
13900
      HelperServiceException hse)
13901
    {
13902
      this();
13903
      this.success = success;
13904
      this.hse = hse;
13905
    }
13906
 
13907
    /**
13908
     * Performs a deep copy on <i>other</i>.
13909
     */
13910
    public authenticateReportUser_result(authenticateReportUser_result other) {
13911
      if (other.isSetSuccess()) {
13912
        this.success = new ReportUser(other.success);
13913
      }
13914
      if (other.isSetHse()) {
13915
        this.hse = new HelperServiceException(other.hse);
13916
      }
13917
    }
13918
 
13919
    public authenticateReportUser_result deepCopy() {
13920
      return new authenticateReportUser_result(this);
13921
    }
13922
 
3430 rajveer 13923
    @Override
13924
    public void clear() {
13925
      this.success = null;
13926
      this.hse = null;
1891 ankur.sing 13927
    }
13928
 
13929
    public ReportUser getSuccess() {
13930
      return this.success;
13931
    }
13932
 
3430 rajveer 13933
    public void setSuccess(ReportUser success) {
1891 ankur.sing 13934
      this.success = success;
13935
    }
13936
 
13937
    public void unsetSuccess() {
13938
      this.success = null;
13939
    }
13940
 
3430 rajveer 13941
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13942
    public boolean isSetSuccess() {
13943
      return this.success != null;
13944
    }
13945
 
13946
    public void setSuccessIsSet(boolean value) {
13947
      if (!value) {
13948
        this.success = null;
13949
      }
13950
    }
13951
 
13952
    public HelperServiceException getHse() {
13953
      return this.hse;
13954
    }
13955
 
3430 rajveer 13956
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 13957
      this.hse = hse;
13958
    }
13959
 
13960
    public void unsetHse() {
13961
      this.hse = null;
13962
    }
13963
 
3430 rajveer 13964
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13965
    public boolean isSetHse() {
13966
      return this.hse != null;
13967
    }
13968
 
13969
    public void setHseIsSet(boolean value) {
13970
      if (!value) {
13971
        this.hse = null;
13972
      }
13973
    }
13974
 
13975
    public void setFieldValue(_Fields field, Object value) {
13976
      switch (field) {
13977
      case SUCCESS:
13978
        if (value == null) {
13979
          unsetSuccess();
13980
        } else {
13981
          setSuccess((ReportUser)value);
13982
        }
13983
        break;
13984
 
13985
      case HSE:
13986
        if (value == null) {
13987
          unsetHse();
13988
        } else {
13989
          setHse((HelperServiceException)value);
13990
        }
13991
        break;
13992
 
13993
      }
13994
    }
13995
 
13996
    public Object getFieldValue(_Fields field) {
13997
      switch (field) {
13998
      case SUCCESS:
13999
        return getSuccess();
14000
 
14001
      case HSE:
14002
        return getHse();
14003
 
14004
      }
14005
      throw new IllegalStateException();
14006
    }
14007
 
3430 rajveer 14008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14009
    public boolean isSet(_Fields field) {
14010
      if (field == null) {
14011
        throw new IllegalArgumentException();
14012
      }
1891 ankur.sing 14013
 
14014
      switch (field) {
14015
      case SUCCESS:
14016
        return isSetSuccess();
14017
      case HSE:
14018
        return isSetHse();
14019
      }
14020
      throw new IllegalStateException();
14021
    }
14022
 
14023
    @Override
14024
    public boolean equals(Object that) {
14025
      if (that == null)
14026
        return false;
14027
      if (that instanceof authenticateReportUser_result)
14028
        return this.equals((authenticateReportUser_result)that);
14029
      return false;
14030
    }
14031
 
14032
    public boolean equals(authenticateReportUser_result that) {
14033
      if (that == null)
14034
        return false;
14035
 
14036
      boolean this_present_success = true && this.isSetSuccess();
14037
      boolean that_present_success = true && that.isSetSuccess();
14038
      if (this_present_success || that_present_success) {
14039
        if (!(this_present_success && that_present_success))
14040
          return false;
14041
        if (!this.success.equals(that.success))
14042
          return false;
14043
      }
14044
 
14045
      boolean this_present_hse = true && this.isSetHse();
14046
      boolean that_present_hse = true && that.isSetHse();
14047
      if (this_present_hse || that_present_hse) {
14048
        if (!(this_present_hse && that_present_hse))
14049
          return false;
14050
        if (!this.hse.equals(that.hse))
14051
          return false;
14052
      }
14053
 
14054
      return true;
14055
    }
14056
 
14057
    @Override
14058
    public int hashCode() {
14059
      return 0;
14060
    }
14061
 
14062
    public int compareTo(authenticateReportUser_result other) {
14063
      if (!getClass().equals(other.getClass())) {
14064
        return getClass().getName().compareTo(other.getClass().getName());
14065
      }
14066
 
14067
      int lastComparison = 0;
14068
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14069
 
3430 rajveer 14070
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14071
      if (lastComparison != 0) {
14072
        return lastComparison;
14073
      }
3430 rajveer 14074
      if (isSetSuccess()) {
14075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14076
        if (lastComparison != 0) {
14077
          return lastComparison;
14078
        }
1891 ankur.sing 14079
      }
3430 rajveer 14080
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14081
      if (lastComparison != 0) {
14082
        return lastComparison;
14083
      }
3430 rajveer 14084
      if (isSetHse()) {
14085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14086
        if (lastComparison != 0) {
14087
          return lastComparison;
14088
        }
1891 ankur.sing 14089
      }
14090
      return 0;
14091
    }
14092
 
3430 rajveer 14093
    public _Fields fieldForId(int fieldId) {
14094
      return _Fields.findByThriftId(fieldId);
14095
    }
14096
 
14097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14098
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14099
      iprot.readStructBegin();
14100
      while (true)
14101
      {
14102
        field = iprot.readFieldBegin();
3430 rajveer 14103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14104
          break;
14105
        }
3430 rajveer 14106
        switch (field.id) {
14107
          case 0: // SUCCESS
14108
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14109
              this.success = new ReportUser();
14110
              this.success.read(iprot);
14111
            } else { 
14112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14113
            }
14114
            break;
14115
          case 1: // HSE
14116
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14117
              this.hse = new HelperServiceException();
14118
              this.hse.read(iprot);
14119
            } else { 
14120
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14121
            }
14122
            break;
14123
          default:
14124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14125
        }
3430 rajveer 14126
        iprot.readFieldEnd();
1891 ankur.sing 14127
      }
14128
      iprot.readStructEnd();
14129
      validate();
14130
    }
14131
 
3430 rajveer 14132
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14133
      oprot.writeStructBegin(STRUCT_DESC);
14134
 
14135
      if (this.isSetSuccess()) {
14136
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14137
        this.success.write(oprot);
14138
        oprot.writeFieldEnd();
14139
      } else if (this.isSetHse()) {
14140
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14141
        this.hse.write(oprot);
14142
        oprot.writeFieldEnd();
14143
      }
14144
      oprot.writeFieldStop();
14145
      oprot.writeStructEnd();
14146
    }
14147
 
14148
    @Override
14149
    public String toString() {
14150
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14151
      boolean first = true;
14152
 
14153
      sb.append("success:");
14154
      if (this.success == null) {
14155
        sb.append("null");
14156
      } else {
14157
        sb.append(this.success);
14158
      }
14159
      first = false;
14160
      if (!first) sb.append(", ");
14161
      sb.append("hse:");
14162
      if (this.hse == null) {
14163
        sb.append("null");
14164
      } else {
14165
        sb.append(this.hse);
14166
      }
14167
      first = false;
14168
      sb.append(")");
14169
      return sb.toString();
14170
    }
14171
 
3430 rajveer 14172
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14173
      // check for required fields
14174
    }
14175
 
3430 rajveer 14176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14177
      try {
14178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14179
      } catch (org.apache.thrift.TException te) {
14180
        throw new java.io.IOException(te);
14181
      }
14182
    }
14183
 
14184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14185
      try {
14186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14187
      } catch (org.apache.thrift.TException te) {
14188
        throw new java.io.IOException(te);
14189
      }
14190
    }
14191
 
1891 ankur.sing 14192
  }
14193
 
3430 rajveer 14194
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14196
 
3430 rajveer 14197
    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 14198
 
3430 rajveer 14199
    private long role; // required
1891 ankur.sing 14200
 
14201
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14202
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14203
      ROLE((short)1, "role");
14204
 
14205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14206
 
14207
      static {
14208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14209
          byName.put(field.getFieldName(), field);
14210
        }
14211
      }
14212
 
14213
      /**
14214
       * Find the _Fields constant that matches fieldId, or null if its not found.
14215
       */
14216
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14217
        switch(fieldId) {
14218
          case 1: // ROLE
14219
            return ROLE;
14220
          default:
14221
            return null;
14222
        }
1891 ankur.sing 14223
      }
14224
 
14225
      /**
14226
       * Find the _Fields constant that matches fieldId, throwing an exception
14227
       * if it is not found.
14228
       */
14229
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14230
        _Fields fields = findByThriftId(fieldId);
14231
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14232
        return fields;
14233
      }
14234
 
14235
      /**
14236
       * Find the _Fields constant that matches name, or null if its not found.
14237
       */
14238
      public static _Fields findByName(String name) {
14239
        return byName.get(name);
14240
      }
14241
 
14242
      private final short _thriftId;
14243
      private final String _fieldName;
14244
 
14245
      _Fields(short thriftId, String fieldName) {
14246
        _thriftId = thriftId;
14247
        _fieldName = fieldName;
14248
      }
14249
 
14250
      public short getThriftFieldId() {
14251
        return _thriftId;
14252
      }
14253
 
14254
      public String getFieldName() {
14255
        return _fieldName;
14256
      }
14257
    }
14258
 
14259
    // isset id assignments
14260
    private static final int __ROLE_ISSET_ID = 0;
14261
    private BitSet __isset_bit_vector = new BitSet(1);
14262
 
3430 rajveer 14263
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14264
    static {
3430 rajveer 14265
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14266
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14267
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14268
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14269
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14270
    }
14271
 
14272
    public getReports_args() {
14273
    }
14274
 
14275
    public getReports_args(
14276
      long role)
14277
    {
14278
      this();
14279
      this.role = role;
14280
      setRoleIsSet(true);
14281
    }
14282
 
14283
    /**
14284
     * Performs a deep copy on <i>other</i>.
14285
     */
14286
    public getReports_args(getReports_args other) {
14287
      __isset_bit_vector.clear();
14288
      __isset_bit_vector.or(other.__isset_bit_vector);
14289
      this.role = other.role;
14290
    }
14291
 
14292
    public getReports_args deepCopy() {
14293
      return new getReports_args(this);
14294
    }
14295
 
3430 rajveer 14296
    @Override
14297
    public void clear() {
14298
      setRoleIsSet(false);
14299
      this.role = 0;
1891 ankur.sing 14300
    }
14301
 
14302
    public long getRole() {
14303
      return this.role;
14304
    }
14305
 
3430 rajveer 14306
    public void setRole(long role) {
1891 ankur.sing 14307
      this.role = role;
14308
      setRoleIsSet(true);
14309
    }
14310
 
14311
    public void unsetRole() {
14312
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14313
    }
14314
 
3430 rajveer 14315
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14316
    public boolean isSetRole() {
14317
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14318
    }
14319
 
14320
    public void setRoleIsSet(boolean value) {
14321
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14322
    }
14323
 
14324
    public void setFieldValue(_Fields field, Object value) {
14325
      switch (field) {
14326
      case ROLE:
14327
        if (value == null) {
14328
          unsetRole();
14329
        } else {
14330
          setRole((Long)value);
14331
        }
14332
        break;
14333
 
14334
      }
14335
    }
14336
 
14337
    public Object getFieldValue(_Fields field) {
14338
      switch (field) {
14339
      case ROLE:
3430 rajveer 14340
        return Long.valueOf(getRole());
1891 ankur.sing 14341
 
14342
      }
14343
      throw new IllegalStateException();
14344
    }
14345
 
3430 rajveer 14346
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14347
    public boolean isSet(_Fields field) {
14348
      if (field == null) {
14349
        throw new IllegalArgumentException();
14350
      }
1891 ankur.sing 14351
 
14352
      switch (field) {
14353
      case ROLE:
14354
        return isSetRole();
14355
      }
14356
      throw new IllegalStateException();
14357
    }
14358
 
14359
    @Override
14360
    public boolean equals(Object that) {
14361
      if (that == null)
14362
        return false;
14363
      if (that instanceof getReports_args)
14364
        return this.equals((getReports_args)that);
14365
      return false;
14366
    }
14367
 
14368
    public boolean equals(getReports_args that) {
14369
      if (that == null)
14370
        return false;
14371
 
14372
      boolean this_present_role = true;
14373
      boolean that_present_role = true;
14374
      if (this_present_role || that_present_role) {
14375
        if (!(this_present_role && that_present_role))
14376
          return false;
14377
        if (this.role != that.role)
14378
          return false;
14379
      }
14380
 
14381
      return true;
14382
    }
14383
 
14384
    @Override
14385
    public int hashCode() {
14386
      return 0;
14387
    }
14388
 
14389
    public int compareTo(getReports_args other) {
14390
      if (!getClass().equals(other.getClass())) {
14391
        return getClass().getName().compareTo(other.getClass().getName());
14392
      }
14393
 
14394
      int lastComparison = 0;
14395
      getReports_args typedOther = (getReports_args)other;
14396
 
3430 rajveer 14397
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14398
      if (lastComparison != 0) {
14399
        return lastComparison;
14400
      }
3430 rajveer 14401
      if (isSetRole()) {
14402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14403
        if (lastComparison != 0) {
14404
          return lastComparison;
14405
        }
1891 ankur.sing 14406
      }
14407
      return 0;
14408
    }
14409
 
3430 rajveer 14410
    public _Fields fieldForId(int fieldId) {
14411
      return _Fields.findByThriftId(fieldId);
14412
    }
14413
 
14414
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14415
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14416
      iprot.readStructBegin();
14417
      while (true)
14418
      {
14419
        field = iprot.readFieldBegin();
3430 rajveer 14420
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14421
          break;
14422
        }
3430 rajveer 14423
        switch (field.id) {
14424
          case 1: // ROLE
14425
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14426
              this.role = iprot.readI64();
14427
              setRoleIsSet(true);
14428
            } else { 
14429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14430
            }
14431
            break;
14432
          default:
14433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14434
        }
3430 rajveer 14435
        iprot.readFieldEnd();
1891 ankur.sing 14436
      }
14437
      iprot.readStructEnd();
14438
      validate();
14439
    }
14440
 
3430 rajveer 14441
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14442
      validate();
14443
 
14444
      oprot.writeStructBegin(STRUCT_DESC);
14445
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14446
      oprot.writeI64(this.role);
14447
      oprot.writeFieldEnd();
14448
      oprot.writeFieldStop();
14449
      oprot.writeStructEnd();
14450
    }
14451
 
14452
    @Override
14453
    public String toString() {
14454
      StringBuilder sb = new StringBuilder("getReports_args(");
14455
      boolean first = true;
14456
 
14457
      sb.append("role:");
14458
      sb.append(this.role);
14459
      first = false;
14460
      sb.append(")");
14461
      return sb.toString();
14462
    }
14463
 
3430 rajveer 14464
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14465
      // check for required fields
14466
    }
14467
 
3430 rajveer 14468
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14469
      try {
14470
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14471
      } catch (org.apache.thrift.TException te) {
14472
        throw new java.io.IOException(te);
14473
      }
14474
    }
14475
 
14476
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14477
      try {
14478
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14479
        __isset_bit_vector = new BitSet(1);
14480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14481
      } catch (org.apache.thrift.TException te) {
14482
        throw new java.io.IOException(te);
14483
      }
14484
    }
14485
 
1891 ankur.sing 14486
  }
14487
 
3430 rajveer 14488
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14489
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14490
 
3430 rajveer 14491
    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 14492
 
3430 rajveer 14493
    private List<Report> success; // required
1891 ankur.sing 14494
 
14495
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14496
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14497
      SUCCESS((short)0, "success");
14498
 
14499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14500
 
14501
      static {
14502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14503
          byName.put(field.getFieldName(), field);
14504
        }
14505
      }
14506
 
14507
      /**
14508
       * Find the _Fields constant that matches fieldId, or null if its not found.
14509
       */
14510
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14511
        switch(fieldId) {
14512
          case 0: // SUCCESS
14513
            return SUCCESS;
14514
          default:
14515
            return null;
14516
        }
1891 ankur.sing 14517
      }
14518
 
14519
      /**
14520
       * Find the _Fields constant that matches fieldId, throwing an exception
14521
       * if it is not found.
14522
       */
14523
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14524
        _Fields fields = findByThriftId(fieldId);
14525
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14526
        return fields;
14527
      }
14528
 
14529
      /**
14530
       * Find the _Fields constant that matches name, or null if its not found.
14531
       */
14532
      public static _Fields findByName(String name) {
14533
        return byName.get(name);
14534
      }
14535
 
14536
      private final short _thriftId;
14537
      private final String _fieldName;
14538
 
14539
      _Fields(short thriftId, String fieldName) {
14540
        _thriftId = thriftId;
14541
        _fieldName = fieldName;
14542
      }
14543
 
14544
      public short getThriftFieldId() {
14545
        return _thriftId;
14546
      }
14547
 
14548
      public String getFieldName() {
14549
        return _fieldName;
14550
      }
14551
    }
14552
 
14553
    // isset id assignments
14554
 
3430 rajveer 14555
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14556
    static {
3430 rajveer 14557
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14558
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14559
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14560
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14561
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14562
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14563
    }
14564
 
14565
    public getReports_result() {
14566
    }
14567
 
14568
    public getReports_result(
14569
      List<Report> success)
14570
    {
14571
      this();
14572
      this.success = success;
14573
    }
14574
 
14575
    /**
14576
     * Performs a deep copy on <i>other</i>.
14577
     */
14578
    public getReports_result(getReports_result other) {
14579
      if (other.isSetSuccess()) {
14580
        List<Report> __this__success = new ArrayList<Report>();
14581
        for (Report other_element : other.success) {
14582
          __this__success.add(new Report(other_element));
14583
        }
14584
        this.success = __this__success;
14585
      }
14586
    }
14587
 
14588
    public getReports_result deepCopy() {
14589
      return new getReports_result(this);
14590
    }
14591
 
3430 rajveer 14592
    @Override
14593
    public void clear() {
14594
      this.success = null;
1891 ankur.sing 14595
    }
14596
 
14597
    public int getSuccessSize() {
14598
      return (this.success == null) ? 0 : this.success.size();
14599
    }
14600
 
14601
    public java.util.Iterator<Report> getSuccessIterator() {
14602
      return (this.success == null) ? null : this.success.iterator();
14603
    }
14604
 
14605
    public void addToSuccess(Report elem) {
14606
      if (this.success == null) {
14607
        this.success = new ArrayList<Report>();
14608
      }
14609
      this.success.add(elem);
14610
    }
14611
 
14612
    public List<Report> getSuccess() {
14613
      return this.success;
14614
    }
14615
 
3430 rajveer 14616
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14617
      this.success = success;
14618
    }
14619
 
14620
    public void unsetSuccess() {
14621
      this.success = null;
14622
    }
14623
 
3430 rajveer 14624
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14625
    public boolean isSetSuccess() {
14626
      return this.success != null;
14627
    }
14628
 
14629
    public void setSuccessIsSet(boolean value) {
14630
      if (!value) {
14631
        this.success = null;
14632
      }
14633
    }
14634
 
14635
    public void setFieldValue(_Fields field, Object value) {
14636
      switch (field) {
14637
      case SUCCESS:
14638
        if (value == null) {
14639
          unsetSuccess();
14640
        } else {
14641
          setSuccess((List<Report>)value);
14642
        }
14643
        break;
14644
 
14645
      }
14646
    }
14647
 
14648
    public Object getFieldValue(_Fields field) {
14649
      switch (field) {
14650
      case SUCCESS:
14651
        return getSuccess();
14652
 
14653
      }
14654
      throw new IllegalStateException();
14655
    }
14656
 
3430 rajveer 14657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14658
    public boolean isSet(_Fields field) {
14659
      if (field == null) {
14660
        throw new IllegalArgumentException();
14661
      }
1891 ankur.sing 14662
 
14663
      switch (field) {
14664
      case SUCCESS:
14665
        return isSetSuccess();
14666
      }
14667
      throw new IllegalStateException();
14668
    }
14669
 
14670
    @Override
14671
    public boolean equals(Object that) {
14672
      if (that == null)
14673
        return false;
14674
      if (that instanceof getReports_result)
14675
        return this.equals((getReports_result)that);
14676
      return false;
14677
    }
14678
 
14679
    public boolean equals(getReports_result that) {
14680
      if (that == null)
14681
        return false;
14682
 
14683
      boolean this_present_success = true && this.isSetSuccess();
14684
      boolean that_present_success = true && that.isSetSuccess();
14685
      if (this_present_success || that_present_success) {
14686
        if (!(this_present_success && that_present_success))
14687
          return false;
14688
        if (!this.success.equals(that.success))
14689
          return false;
14690
      }
14691
 
14692
      return true;
14693
    }
14694
 
14695
    @Override
14696
    public int hashCode() {
14697
      return 0;
14698
    }
14699
 
14700
    public int compareTo(getReports_result other) {
14701
      if (!getClass().equals(other.getClass())) {
14702
        return getClass().getName().compareTo(other.getClass().getName());
14703
      }
14704
 
14705
      int lastComparison = 0;
14706
      getReports_result typedOther = (getReports_result)other;
14707
 
3430 rajveer 14708
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14709
      if (lastComparison != 0) {
14710
        return lastComparison;
14711
      }
3430 rajveer 14712
      if (isSetSuccess()) {
14713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14714
        if (lastComparison != 0) {
14715
          return lastComparison;
14716
        }
1891 ankur.sing 14717
      }
14718
      return 0;
14719
    }
14720
 
3430 rajveer 14721
    public _Fields fieldForId(int fieldId) {
14722
      return _Fields.findByThriftId(fieldId);
14723
    }
14724
 
14725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14726
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14727
      iprot.readStructBegin();
14728
      while (true)
14729
      {
14730
        field = iprot.readFieldBegin();
3430 rajveer 14731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14732
          break;
14733
        }
3430 rajveer 14734
        switch (field.id) {
14735
          case 0: // SUCCESS
14736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14737
              {
14738
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
14739
                this.success = new ArrayList<Report>(_list17.size);
14740
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1891 ankur.sing 14741
                {
3430 rajveer 14742
                  Report _elem19; // required
14743
                  _elem19 = new Report();
14744
                  _elem19.read(iprot);
14745
                  this.success.add(_elem19);
1891 ankur.sing 14746
                }
3430 rajveer 14747
                iprot.readListEnd();
1891 ankur.sing 14748
              }
3430 rajveer 14749
            } else { 
14750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14751
            }
14752
            break;
14753
          default:
14754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14755
        }
3430 rajveer 14756
        iprot.readFieldEnd();
1891 ankur.sing 14757
      }
14758
      iprot.readStructEnd();
14759
      validate();
14760
    }
14761
 
3430 rajveer 14762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14763
      oprot.writeStructBegin(STRUCT_DESC);
14764
 
14765
      if (this.isSetSuccess()) {
14766
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14767
        {
3430 rajveer 14768
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1891 ankur.sing 14769
          for (Report _iter20 : this.success)
14770
          {
14771
            _iter20.write(oprot);
14772
          }
14773
          oprot.writeListEnd();
14774
        }
14775
        oprot.writeFieldEnd();
14776
      }
14777
      oprot.writeFieldStop();
14778
      oprot.writeStructEnd();
14779
    }
14780
 
14781
    @Override
14782
    public String toString() {
14783
      StringBuilder sb = new StringBuilder("getReports_result(");
14784
      boolean first = true;
14785
 
14786
      sb.append("success:");
14787
      if (this.success == null) {
14788
        sb.append("null");
14789
      } else {
14790
        sb.append(this.success);
14791
      }
14792
      first = false;
14793
      sb.append(")");
14794
      return sb.toString();
14795
    }
14796
 
3430 rajveer 14797
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14798
      // check for required fields
14799
    }
14800
 
3430 rajveer 14801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14802
      try {
14803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14804
      } catch (org.apache.thrift.TException te) {
14805
        throw new java.io.IOException(te);
14806
      }
14807
    }
14808
 
14809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14810
      try {
14811
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14812
      } catch (org.apache.thrift.TException te) {
14813
        throw new java.io.IOException(te);
14814
      }
14815
    }
14816
 
1891 ankur.sing 14817
  }
14818
 
3430 rajveer 14819
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
14820
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 14821
 
3430 rajveer 14822
    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);
14823
    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);
14824
    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)3);
2024 ankur.sing 14825
 
3430 rajveer 14826
    private String username; // required
14827
    private String password; // required
14828
    private long role; // required
2024 ankur.sing 14829
 
14830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14832
      USERNAME((short)1, "username"),
2357 ankur.sing 14833
      PASSWORD((short)2, "password"),
14834
      ROLE((short)3, "role");
2024 ankur.sing 14835
 
14836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14837
 
14838
      static {
14839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14840
          byName.put(field.getFieldName(), field);
14841
        }
14842
      }
14843
 
14844
      /**
14845
       * Find the _Fields constant that matches fieldId, or null if its not found.
14846
       */
14847
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14848
        switch(fieldId) {
14849
          case 1: // USERNAME
14850
            return USERNAME;
14851
          case 2: // PASSWORD
14852
            return PASSWORD;
14853
          case 3: // ROLE
14854
            return ROLE;
14855
          default:
14856
            return null;
14857
        }
2024 ankur.sing 14858
      }
14859
 
14860
      /**
14861
       * Find the _Fields constant that matches fieldId, throwing an exception
14862
       * if it is not found.
14863
       */
14864
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14865
        _Fields fields = findByThriftId(fieldId);
14866
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14867
        return fields;
14868
      }
14869
 
14870
      /**
14871
       * Find the _Fields constant that matches name, or null if its not found.
14872
       */
14873
      public static _Fields findByName(String name) {
14874
        return byName.get(name);
14875
      }
14876
 
14877
      private final short _thriftId;
14878
      private final String _fieldName;
14879
 
14880
      _Fields(short thriftId, String fieldName) {
14881
        _thriftId = thriftId;
14882
        _fieldName = fieldName;
14883
      }
14884
 
14885
      public short getThriftFieldId() {
14886
        return _thriftId;
14887
      }
14888
 
14889
      public String getFieldName() {
14890
        return _fieldName;
14891
      }
14892
    }
14893
 
14894
    // isset id assignments
2357 ankur.sing 14895
    private static final int __ROLE_ISSET_ID = 0;
14896
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 14897
 
3430 rajveer 14898
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14899
    static {
3430 rajveer 14900
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14901
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14902
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14903
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14904
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14905
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14907
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14908
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 14909
    }
14910
 
14911
    public authenticateCatalogUser_args() {
14912
    }
14913
 
14914
    public authenticateCatalogUser_args(
14915
      String username,
2357 ankur.sing 14916
      String password,
14917
      long role)
2024 ankur.sing 14918
    {
14919
      this();
14920
      this.username = username;
14921
      this.password = password;
2357 ankur.sing 14922
      this.role = role;
14923
      setRoleIsSet(true);
2024 ankur.sing 14924
    }
14925
 
14926
    /**
14927
     * Performs a deep copy on <i>other</i>.
14928
     */
14929
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 14930
      __isset_bit_vector.clear();
14931
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 14932
      if (other.isSetUsername()) {
14933
        this.username = other.username;
14934
      }
14935
      if (other.isSetPassword()) {
14936
        this.password = other.password;
14937
      }
2357 ankur.sing 14938
      this.role = other.role;
2024 ankur.sing 14939
    }
14940
 
14941
    public authenticateCatalogUser_args deepCopy() {
14942
      return new authenticateCatalogUser_args(this);
14943
    }
14944
 
3430 rajveer 14945
    @Override
14946
    public void clear() {
14947
      this.username = null;
14948
      this.password = null;
14949
      setRoleIsSet(false);
14950
      this.role = 0;
2024 ankur.sing 14951
    }
14952
 
14953
    public String getUsername() {
14954
      return this.username;
14955
    }
14956
 
3430 rajveer 14957
    public void setUsername(String username) {
2024 ankur.sing 14958
      this.username = username;
14959
    }
14960
 
14961
    public void unsetUsername() {
14962
      this.username = null;
14963
    }
14964
 
3430 rajveer 14965
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14966
    public boolean isSetUsername() {
14967
      return this.username != null;
14968
    }
14969
 
14970
    public void setUsernameIsSet(boolean value) {
14971
      if (!value) {
14972
        this.username = null;
14973
      }
14974
    }
14975
 
14976
    public String getPassword() {
14977
      return this.password;
14978
    }
14979
 
3430 rajveer 14980
    public void setPassword(String password) {
2024 ankur.sing 14981
      this.password = password;
14982
    }
14983
 
14984
    public void unsetPassword() {
14985
      this.password = null;
14986
    }
14987
 
3430 rajveer 14988
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14989
    public boolean isSetPassword() {
14990
      return this.password != null;
14991
    }
14992
 
14993
    public void setPasswordIsSet(boolean value) {
14994
      if (!value) {
14995
        this.password = null;
14996
      }
14997
    }
14998
 
2357 ankur.sing 14999
    public long getRole() {
15000
      return this.role;
15001
    }
15002
 
3430 rajveer 15003
    public void setRole(long role) {
2357 ankur.sing 15004
      this.role = role;
15005
      setRoleIsSet(true);
15006
    }
15007
 
15008
    public void unsetRole() {
15009
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
15010
    }
15011
 
3430 rajveer 15012
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 15013
    public boolean isSetRole() {
15014
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
15015
    }
15016
 
15017
    public void setRoleIsSet(boolean value) {
15018
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
15019
    }
15020
 
2024 ankur.sing 15021
    public void setFieldValue(_Fields field, Object value) {
15022
      switch (field) {
15023
      case USERNAME:
15024
        if (value == null) {
15025
          unsetUsername();
15026
        } else {
15027
          setUsername((String)value);
15028
        }
15029
        break;
15030
 
15031
      case PASSWORD:
15032
        if (value == null) {
15033
          unsetPassword();
15034
        } else {
15035
          setPassword((String)value);
15036
        }
15037
        break;
15038
 
2357 ankur.sing 15039
      case ROLE:
15040
        if (value == null) {
15041
          unsetRole();
15042
        } else {
15043
          setRole((Long)value);
15044
        }
15045
        break;
15046
 
2024 ankur.sing 15047
      }
15048
    }
15049
 
15050
    public Object getFieldValue(_Fields field) {
15051
      switch (field) {
15052
      case USERNAME:
15053
        return getUsername();
15054
 
15055
      case PASSWORD:
15056
        return getPassword();
15057
 
2357 ankur.sing 15058
      case ROLE:
3430 rajveer 15059
        return Long.valueOf(getRole());
2357 ankur.sing 15060
 
2024 ankur.sing 15061
      }
15062
      throw new IllegalStateException();
15063
    }
15064
 
3430 rajveer 15065
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15066
    public boolean isSet(_Fields field) {
15067
      if (field == null) {
15068
        throw new IllegalArgumentException();
15069
      }
2024 ankur.sing 15070
 
15071
      switch (field) {
15072
      case USERNAME:
15073
        return isSetUsername();
15074
      case PASSWORD:
15075
        return isSetPassword();
2357 ankur.sing 15076
      case ROLE:
15077
        return isSetRole();
2024 ankur.sing 15078
      }
15079
      throw new IllegalStateException();
15080
    }
15081
 
15082
    @Override
15083
    public boolean equals(Object that) {
15084
      if (that == null)
15085
        return false;
15086
      if (that instanceof authenticateCatalogUser_args)
15087
        return this.equals((authenticateCatalogUser_args)that);
15088
      return false;
15089
    }
15090
 
15091
    public boolean equals(authenticateCatalogUser_args that) {
15092
      if (that == null)
15093
        return false;
15094
 
15095
      boolean this_present_username = true && this.isSetUsername();
15096
      boolean that_present_username = true && that.isSetUsername();
15097
      if (this_present_username || that_present_username) {
15098
        if (!(this_present_username && that_present_username))
15099
          return false;
15100
        if (!this.username.equals(that.username))
15101
          return false;
15102
      }
15103
 
15104
      boolean this_present_password = true && this.isSetPassword();
15105
      boolean that_present_password = true && that.isSetPassword();
15106
      if (this_present_password || that_present_password) {
15107
        if (!(this_present_password && that_present_password))
15108
          return false;
15109
        if (!this.password.equals(that.password))
15110
          return false;
15111
      }
15112
 
2357 ankur.sing 15113
      boolean this_present_role = true;
15114
      boolean that_present_role = true;
15115
      if (this_present_role || that_present_role) {
15116
        if (!(this_present_role && that_present_role))
15117
          return false;
15118
        if (this.role != that.role)
15119
          return false;
15120
      }
15121
 
2024 ankur.sing 15122
      return true;
15123
    }
15124
 
15125
    @Override
15126
    public int hashCode() {
15127
      return 0;
15128
    }
15129
 
15130
    public int compareTo(authenticateCatalogUser_args other) {
15131
      if (!getClass().equals(other.getClass())) {
15132
        return getClass().getName().compareTo(other.getClass().getName());
15133
      }
15134
 
15135
      int lastComparison = 0;
15136
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15137
 
3430 rajveer 15138
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15139
      if (lastComparison != 0) {
15140
        return lastComparison;
15141
      }
3430 rajveer 15142
      if (isSetUsername()) {
15143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15144
        if (lastComparison != 0) {
15145
          return lastComparison;
15146
        }
2024 ankur.sing 15147
      }
3430 rajveer 15148
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15149
      if (lastComparison != 0) {
15150
        return lastComparison;
15151
      }
3430 rajveer 15152
      if (isSetPassword()) {
15153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15154
        if (lastComparison != 0) {
15155
          return lastComparison;
15156
        }
2024 ankur.sing 15157
      }
3430 rajveer 15158
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 15159
      if (lastComparison != 0) {
15160
        return lastComparison;
15161
      }
3430 rajveer 15162
      if (isSetRole()) {
15163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15164
        if (lastComparison != 0) {
15165
          return lastComparison;
15166
        }
2357 ankur.sing 15167
      }
2024 ankur.sing 15168
      return 0;
15169
    }
15170
 
3430 rajveer 15171
    public _Fields fieldForId(int fieldId) {
15172
      return _Fields.findByThriftId(fieldId);
15173
    }
15174
 
15175
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15176
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15177
      iprot.readStructBegin();
15178
      while (true)
15179
      {
15180
        field = iprot.readFieldBegin();
3430 rajveer 15181
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15182
          break;
15183
        }
3430 rajveer 15184
        switch (field.id) {
15185
          case 1: // USERNAME
15186
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15187
              this.username = iprot.readString();
15188
            } else { 
15189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15190
            }
15191
            break;
15192
          case 2: // PASSWORD
15193
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15194
              this.password = iprot.readString();
15195
            } else { 
15196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15197
            }
15198
            break;
15199
          case 3: // ROLE
15200
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15201
              this.role = iprot.readI64();
15202
              setRoleIsSet(true);
15203
            } else { 
15204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15205
            }
15206
            break;
15207
          default:
15208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15209
        }
3430 rajveer 15210
        iprot.readFieldEnd();
2024 ankur.sing 15211
      }
15212
      iprot.readStructEnd();
15213
      validate();
15214
    }
15215
 
3430 rajveer 15216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15217
      validate();
15218
 
15219
      oprot.writeStructBegin(STRUCT_DESC);
15220
      if (this.username != null) {
15221
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15222
        oprot.writeString(this.username);
15223
        oprot.writeFieldEnd();
15224
      }
15225
      if (this.password != null) {
15226
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15227
        oprot.writeString(this.password);
15228
        oprot.writeFieldEnd();
15229
      }
2357 ankur.sing 15230
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15231
      oprot.writeI64(this.role);
15232
      oprot.writeFieldEnd();
2024 ankur.sing 15233
      oprot.writeFieldStop();
15234
      oprot.writeStructEnd();
15235
    }
15236
 
15237
    @Override
15238
    public String toString() {
15239
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15240
      boolean first = true;
15241
 
15242
      sb.append("username:");
15243
      if (this.username == null) {
15244
        sb.append("null");
15245
      } else {
15246
        sb.append(this.username);
15247
      }
15248
      first = false;
15249
      if (!first) sb.append(", ");
15250
      sb.append("password:");
15251
      if (this.password == null) {
15252
        sb.append("null");
15253
      } else {
15254
        sb.append(this.password);
15255
      }
15256
      first = false;
2357 ankur.sing 15257
      if (!first) sb.append(", ");
15258
      sb.append("role:");
15259
      sb.append(this.role);
15260
      first = false;
2024 ankur.sing 15261
      sb.append(")");
15262
      return sb.toString();
15263
    }
15264
 
3430 rajveer 15265
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15266
      // check for required fields
15267
    }
15268
 
3430 rajveer 15269
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15270
      try {
15271
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15272
      } catch (org.apache.thrift.TException te) {
15273
        throw new java.io.IOException(te);
15274
      }
15275
    }
15276
 
15277
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15278
      try {
15279
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15280
      } catch (org.apache.thrift.TException te) {
15281
        throw new java.io.IOException(te);
15282
      }
15283
    }
15284
 
2024 ankur.sing 15285
  }
15286
 
3430 rajveer 15287
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15288
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15289
 
3430 rajveer 15290
    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);
15291
    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 15292
 
3430 rajveer 15293
    private CatalogDashboardUser success; // required
15294
    private HelperServiceException hse; // required
2024 ankur.sing 15295
 
15296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15298
      SUCCESS((short)0, "success"),
15299
      HSE((short)1, "hse");
15300
 
15301
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15302
 
15303
      static {
15304
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15305
          byName.put(field.getFieldName(), field);
15306
        }
15307
      }
15308
 
15309
      /**
15310
       * Find the _Fields constant that matches fieldId, or null if its not found.
15311
       */
15312
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15313
        switch(fieldId) {
15314
          case 0: // SUCCESS
15315
            return SUCCESS;
15316
          case 1: // HSE
15317
            return HSE;
15318
          default:
15319
            return null;
15320
        }
2024 ankur.sing 15321
      }
15322
 
15323
      /**
15324
       * Find the _Fields constant that matches fieldId, throwing an exception
15325
       * if it is not found.
15326
       */
15327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15328
        _Fields fields = findByThriftId(fieldId);
15329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15330
        return fields;
15331
      }
15332
 
15333
      /**
15334
       * Find the _Fields constant that matches name, or null if its not found.
15335
       */
15336
      public static _Fields findByName(String name) {
15337
        return byName.get(name);
15338
      }
15339
 
15340
      private final short _thriftId;
15341
      private final String _fieldName;
15342
 
15343
      _Fields(short thriftId, String fieldName) {
15344
        _thriftId = thriftId;
15345
        _fieldName = fieldName;
15346
      }
15347
 
15348
      public short getThriftFieldId() {
15349
        return _thriftId;
15350
      }
15351
 
15352
      public String getFieldName() {
15353
        return _fieldName;
15354
      }
15355
    }
15356
 
15357
    // isset id assignments
15358
 
3430 rajveer 15359
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15360
    static {
3430 rajveer 15361
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15362
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15363
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15364
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15368
    }
15369
 
15370
    public authenticateCatalogUser_result() {
15371
    }
15372
 
15373
    public authenticateCatalogUser_result(
15374
      CatalogDashboardUser success,
15375
      HelperServiceException hse)
15376
    {
15377
      this();
15378
      this.success = success;
15379
      this.hse = hse;
15380
    }
15381
 
15382
    /**
15383
     * Performs a deep copy on <i>other</i>.
15384
     */
15385
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15386
      if (other.isSetSuccess()) {
15387
        this.success = new CatalogDashboardUser(other.success);
15388
      }
15389
      if (other.isSetHse()) {
15390
        this.hse = new HelperServiceException(other.hse);
15391
      }
15392
    }
15393
 
15394
    public authenticateCatalogUser_result deepCopy() {
15395
      return new authenticateCatalogUser_result(this);
15396
    }
15397
 
3430 rajveer 15398
    @Override
15399
    public void clear() {
15400
      this.success = null;
15401
      this.hse = null;
2024 ankur.sing 15402
    }
15403
 
15404
    public CatalogDashboardUser getSuccess() {
15405
      return this.success;
15406
    }
15407
 
3430 rajveer 15408
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15409
      this.success = success;
15410
    }
15411
 
15412
    public void unsetSuccess() {
15413
      this.success = null;
15414
    }
15415
 
3430 rajveer 15416
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15417
    public boolean isSetSuccess() {
15418
      return this.success != null;
15419
    }
15420
 
15421
    public void setSuccessIsSet(boolean value) {
15422
      if (!value) {
15423
        this.success = null;
15424
      }
15425
    }
15426
 
15427
    public HelperServiceException getHse() {
15428
      return this.hse;
15429
    }
15430
 
3430 rajveer 15431
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15432
      this.hse = hse;
15433
    }
15434
 
15435
    public void unsetHse() {
15436
      this.hse = null;
15437
    }
15438
 
3430 rajveer 15439
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15440
    public boolean isSetHse() {
15441
      return this.hse != null;
15442
    }
15443
 
15444
    public void setHseIsSet(boolean value) {
15445
      if (!value) {
15446
        this.hse = null;
15447
      }
15448
    }
15449
 
15450
    public void setFieldValue(_Fields field, Object value) {
15451
      switch (field) {
15452
      case SUCCESS:
15453
        if (value == null) {
15454
          unsetSuccess();
15455
        } else {
15456
          setSuccess((CatalogDashboardUser)value);
15457
        }
15458
        break;
15459
 
15460
      case HSE:
15461
        if (value == null) {
15462
          unsetHse();
15463
        } else {
15464
          setHse((HelperServiceException)value);
15465
        }
15466
        break;
15467
 
15468
      }
15469
    }
15470
 
15471
    public Object getFieldValue(_Fields field) {
15472
      switch (field) {
15473
      case SUCCESS:
15474
        return getSuccess();
15475
 
15476
      case HSE:
15477
        return getHse();
15478
 
15479
      }
15480
      throw new IllegalStateException();
15481
    }
15482
 
3430 rajveer 15483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15484
    public boolean isSet(_Fields field) {
15485
      if (field == null) {
15486
        throw new IllegalArgumentException();
15487
      }
2024 ankur.sing 15488
 
15489
      switch (field) {
15490
      case SUCCESS:
15491
        return isSetSuccess();
15492
      case HSE:
15493
        return isSetHse();
15494
      }
15495
      throw new IllegalStateException();
15496
    }
15497
 
15498
    @Override
15499
    public boolean equals(Object that) {
15500
      if (that == null)
15501
        return false;
15502
      if (that instanceof authenticateCatalogUser_result)
15503
        return this.equals((authenticateCatalogUser_result)that);
15504
      return false;
15505
    }
15506
 
15507
    public boolean equals(authenticateCatalogUser_result that) {
15508
      if (that == null)
15509
        return false;
15510
 
15511
      boolean this_present_success = true && this.isSetSuccess();
15512
      boolean that_present_success = true && that.isSetSuccess();
15513
      if (this_present_success || that_present_success) {
15514
        if (!(this_present_success && that_present_success))
15515
          return false;
15516
        if (!this.success.equals(that.success))
15517
          return false;
15518
      }
15519
 
15520
      boolean this_present_hse = true && this.isSetHse();
15521
      boolean that_present_hse = true && that.isSetHse();
15522
      if (this_present_hse || that_present_hse) {
15523
        if (!(this_present_hse && that_present_hse))
15524
          return false;
15525
        if (!this.hse.equals(that.hse))
15526
          return false;
15527
      }
15528
 
15529
      return true;
15530
    }
15531
 
15532
    @Override
15533
    public int hashCode() {
15534
      return 0;
15535
    }
15536
 
15537
    public int compareTo(authenticateCatalogUser_result other) {
15538
      if (!getClass().equals(other.getClass())) {
15539
        return getClass().getName().compareTo(other.getClass().getName());
15540
      }
15541
 
15542
      int lastComparison = 0;
15543
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15544
 
3430 rajveer 15545
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15546
      if (lastComparison != 0) {
15547
        return lastComparison;
15548
      }
3430 rajveer 15549
      if (isSetSuccess()) {
15550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15551
        if (lastComparison != 0) {
15552
          return lastComparison;
15553
        }
2024 ankur.sing 15554
      }
3430 rajveer 15555
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15556
      if (lastComparison != 0) {
15557
        return lastComparison;
15558
      }
3430 rajveer 15559
      if (isSetHse()) {
15560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15561
        if (lastComparison != 0) {
15562
          return lastComparison;
15563
        }
2024 ankur.sing 15564
      }
15565
      return 0;
15566
    }
15567
 
3430 rajveer 15568
    public _Fields fieldForId(int fieldId) {
15569
      return _Fields.findByThriftId(fieldId);
15570
    }
15571
 
15572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15573
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15574
      iprot.readStructBegin();
15575
      while (true)
15576
      {
15577
        field = iprot.readFieldBegin();
3430 rajveer 15578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15579
          break;
15580
        }
3430 rajveer 15581
        switch (field.id) {
15582
          case 0: // SUCCESS
15583
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15584
              this.success = new CatalogDashboardUser();
15585
              this.success.read(iprot);
15586
            } else { 
15587
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15588
            }
15589
            break;
15590
          case 1: // HSE
15591
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15592
              this.hse = new HelperServiceException();
15593
              this.hse.read(iprot);
15594
            } else { 
15595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15596
            }
15597
            break;
15598
          default:
15599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15600
        }
3430 rajveer 15601
        iprot.readFieldEnd();
2024 ankur.sing 15602
      }
15603
      iprot.readStructEnd();
15604
      validate();
15605
    }
15606
 
3430 rajveer 15607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15608
      oprot.writeStructBegin(STRUCT_DESC);
15609
 
15610
      if (this.isSetSuccess()) {
15611
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15612
        this.success.write(oprot);
15613
        oprot.writeFieldEnd();
15614
      } else if (this.isSetHse()) {
15615
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15616
        this.hse.write(oprot);
15617
        oprot.writeFieldEnd();
15618
      }
15619
      oprot.writeFieldStop();
15620
      oprot.writeStructEnd();
15621
    }
15622
 
15623
    @Override
15624
    public String toString() {
15625
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15626
      boolean first = true;
15627
 
15628
      sb.append("success:");
15629
      if (this.success == null) {
15630
        sb.append("null");
15631
      } else {
15632
        sb.append(this.success);
15633
      }
15634
      first = false;
15635
      if (!first) sb.append(", ");
15636
      sb.append("hse:");
15637
      if (this.hse == null) {
15638
        sb.append("null");
15639
      } else {
15640
        sb.append(this.hse);
15641
      }
15642
      first = false;
15643
      sb.append(")");
15644
      return sb.toString();
15645
    }
15646
 
3430 rajveer 15647
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15648
      // check for required fields
15649
    }
15650
 
3430 rajveer 15651
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15652
      try {
15653
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15654
      } catch (org.apache.thrift.TException te) {
15655
        throw new java.io.IOException(te);
15656
      }
15657
    }
15658
 
15659
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15660
      try {
15661
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15662
      } catch (org.apache.thrift.TException te) {
15663
        throw new java.io.IOException(te);
15664
      }
15665
    }
15666
 
2024 ankur.sing 15667
  }
15668
 
4544 varun.gupt 15669
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
15670
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
15671
 
15672
    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);
15673
    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);
15674
 
15675
    private List<Long> entityIds; // required
15676
    private String email; // required
15677
 
15678
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15679
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15680
      ENTITY_IDS((short)1, "entityIds"),
15681
      EMAIL((short)2, "email");
15682
 
15683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15684
 
15685
      static {
15686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15687
          byName.put(field.getFieldName(), field);
15688
        }
15689
      }
15690
 
15691
      /**
15692
       * Find the _Fields constant that matches fieldId, or null if its not found.
15693
       */
15694
      public static _Fields findByThriftId(int fieldId) {
15695
        switch(fieldId) {
15696
          case 1: // ENTITY_IDS
15697
            return ENTITY_IDS;
15698
          case 2: // EMAIL
15699
            return EMAIL;
15700
          default:
15701
            return null;
15702
        }
15703
      }
15704
 
15705
      /**
15706
       * Find the _Fields constant that matches fieldId, throwing an exception
15707
       * if it is not found.
15708
       */
15709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15710
        _Fields fields = findByThriftId(fieldId);
15711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15712
        return fields;
15713
      }
15714
 
15715
      /**
15716
       * Find the _Fields constant that matches name, or null if its not found.
15717
       */
15718
      public static _Fields findByName(String name) {
15719
        return byName.get(name);
15720
      }
15721
 
15722
      private final short _thriftId;
15723
      private final String _fieldName;
15724
 
15725
      _Fields(short thriftId, String fieldName) {
15726
        _thriftId = thriftId;
15727
        _fieldName = fieldName;
15728
      }
15729
 
15730
      public short getThriftFieldId() {
15731
        return _thriftId;
15732
      }
15733
 
15734
      public String getFieldName() {
15735
        return _fieldName;
15736
      }
15737
    }
15738
 
15739
    // isset id assignments
15740
 
15741
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15742
    static {
15743
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15744
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15745
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15746
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15747
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
15751
    }
15752
 
15753
    public shareEntities_args() {
15754
    }
15755
 
15756
    public shareEntities_args(
15757
      List<Long> entityIds,
15758
      String email)
15759
    {
15760
      this();
15761
      this.entityIds = entityIds;
15762
      this.email = email;
15763
    }
15764
 
15765
    /**
15766
     * Performs a deep copy on <i>other</i>.
15767
     */
15768
    public shareEntities_args(shareEntities_args other) {
15769
      if (other.isSetEntityIds()) {
15770
        List<Long> __this__entityIds = new ArrayList<Long>();
15771
        for (Long other_element : other.entityIds) {
15772
          __this__entityIds.add(other_element);
15773
        }
15774
        this.entityIds = __this__entityIds;
15775
      }
15776
      if (other.isSetEmail()) {
15777
        this.email = other.email;
15778
      }
15779
    }
15780
 
15781
    public shareEntities_args deepCopy() {
15782
      return new shareEntities_args(this);
15783
    }
15784
 
15785
    @Override
15786
    public void clear() {
15787
      this.entityIds = null;
15788
      this.email = null;
15789
    }
15790
 
15791
    public int getEntityIdsSize() {
15792
      return (this.entityIds == null) ? 0 : this.entityIds.size();
15793
    }
15794
 
15795
    public java.util.Iterator<Long> getEntityIdsIterator() {
15796
      return (this.entityIds == null) ? null : this.entityIds.iterator();
15797
    }
15798
 
15799
    public void addToEntityIds(long elem) {
15800
      if (this.entityIds == null) {
15801
        this.entityIds = new ArrayList<Long>();
15802
      }
15803
      this.entityIds.add(elem);
15804
    }
15805
 
15806
    public List<Long> getEntityIds() {
15807
      return this.entityIds;
15808
    }
15809
 
15810
    public void setEntityIds(List<Long> entityIds) {
15811
      this.entityIds = entityIds;
15812
    }
15813
 
15814
    public void unsetEntityIds() {
15815
      this.entityIds = null;
15816
    }
15817
 
15818
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
15819
    public boolean isSetEntityIds() {
15820
      return this.entityIds != null;
15821
    }
15822
 
15823
    public void setEntityIdsIsSet(boolean value) {
15824
      if (!value) {
15825
        this.entityIds = null;
15826
      }
15827
    }
15828
 
15829
    public String getEmail() {
15830
      return this.email;
15831
    }
15832
 
15833
    public void setEmail(String email) {
15834
      this.email = email;
15835
    }
15836
 
15837
    public void unsetEmail() {
15838
      this.email = null;
15839
    }
15840
 
15841
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
15842
    public boolean isSetEmail() {
15843
      return this.email != null;
15844
    }
15845
 
15846
    public void setEmailIsSet(boolean value) {
15847
      if (!value) {
15848
        this.email = null;
15849
      }
15850
    }
15851
 
15852
    public void setFieldValue(_Fields field, Object value) {
15853
      switch (field) {
15854
      case ENTITY_IDS:
15855
        if (value == null) {
15856
          unsetEntityIds();
15857
        } else {
15858
          setEntityIds((List<Long>)value);
15859
        }
15860
        break;
15861
 
15862
      case EMAIL:
15863
        if (value == null) {
15864
          unsetEmail();
15865
        } else {
15866
          setEmail((String)value);
15867
        }
15868
        break;
15869
 
15870
      }
15871
    }
15872
 
15873
    public Object getFieldValue(_Fields field) {
15874
      switch (field) {
15875
      case ENTITY_IDS:
15876
        return getEntityIds();
15877
 
15878
      case EMAIL:
15879
        return getEmail();
15880
 
15881
      }
15882
      throw new IllegalStateException();
15883
    }
15884
 
15885
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15886
    public boolean isSet(_Fields field) {
15887
      if (field == null) {
15888
        throw new IllegalArgumentException();
15889
      }
15890
 
15891
      switch (field) {
15892
      case ENTITY_IDS:
15893
        return isSetEntityIds();
15894
      case EMAIL:
15895
        return isSetEmail();
15896
      }
15897
      throw new IllegalStateException();
15898
    }
15899
 
15900
    @Override
15901
    public boolean equals(Object that) {
15902
      if (that == null)
15903
        return false;
15904
      if (that instanceof shareEntities_args)
15905
        return this.equals((shareEntities_args)that);
15906
      return false;
15907
    }
15908
 
15909
    public boolean equals(shareEntities_args that) {
15910
      if (that == null)
15911
        return false;
15912
 
15913
      boolean this_present_entityIds = true && this.isSetEntityIds();
15914
      boolean that_present_entityIds = true && that.isSetEntityIds();
15915
      if (this_present_entityIds || that_present_entityIds) {
15916
        if (!(this_present_entityIds && that_present_entityIds))
15917
          return false;
15918
        if (!this.entityIds.equals(that.entityIds))
15919
          return false;
15920
      }
15921
 
15922
      boolean this_present_email = true && this.isSetEmail();
15923
      boolean that_present_email = true && that.isSetEmail();
15924
      if (this_present_email || that_present_email) {
15925
        if (!(this_present_email && that_present_email))
15926
          return false;
15927
        if (!this.email.equals(that.email))
15928
          return false;
15929
      }
15930
 
15931
      return true;
15932
    }
15933
 
15934
    @Override
15935
    public int hashCode() {
15936
      return 0;
15937
    }
15938
 
15939
    public int compareTo(shareEntities_args other) {
15940
      if (!getClass().equals(other.getClass())) {
15941
        return getClass().getName().compareTo(other.getClass().getName());
15942
      }
15943
 
15944
      int lastComparison = 0;
15945
      shareEntities_args typedOther = (shareEntities_args)other;
15946
 
15947
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
15948
      if (lastComparison != 0) {
15949
        return lastComparison;
15950
      }
15951
      if (isSetEntityIds()) {
15952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
15953
        if (lastComparison != 0) {
15954
          return lastComparison;
15955
        }
15956
      }
15957
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
15958
      if (lastComparison != 0) {
15959
        return lastComparison;
15960
      }
15961
      if (isSetEmail()) {
15962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
15963
        if (lastComparison != 0) {
15964
          return lastComparison;
15965
        }
15966
      }
15967
      return 0;
15968
    }
15969
 
15970
    public _Fields fieldForId(int fieldId) {
15971
      return _Fields.findByThriftId(fieldId);
15972
    }
15973
 
15974
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15975
      org.apache.thrift.protocol.TField field;
15976
      iprot.readStructBegin();
15977
      while (true)
15978
      {
15979
        field = iprot.readFieldBegin();
15980
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15981
          break;
15982
        }
15983
        switch (field.id) {
15984
          case 1: // ENTITY_IDS
15985
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15986
              {
15987
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
15988
                this.entityIds = new ArrayList<Long>(_list21.size);
15989
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15990
                {
15991
                  long _elem23; // required
15992
                  _elem23 = iprot.readI64();
15993
                  this.entityIds.add(_elem23);
15994
                }
15995
                iprot.readListEnd();
15996
              }
15997
            } else { 
15998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15999
            }
16000
            break;
16001
          case 2: // EMAIL
16002
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16003
              this.email = iprot.readString();
16004
            } else { 
16005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16006
            }
16007
            break;
16008
          default:
16009
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16010
        }
16011
        iprot.readFieldEnd();
16012
      }
16013
      iprot.readStructEnd();
16014
      validate();
16015
    }
16016
 
16017
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16018
      validate();
16019
 
16020
      oprot.writeStructBegin(STRUCT_DESC);
16021
      if (this.entityIds != null) {
16022
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16023
        {
16024
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
16025
          for (long _iter24 : this.entityIds)
16026
          {
16027
            oprot.writeI64(_iter24);
16028
          }
16029
          oprot.writeListEnd();
16030
        }
16031
        oprot.writeFieldEnd();
16032
      }
16033
      if (this.email != null) {
16034
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16035
        oprot.writeString(this.email);
16036
        oprot.writeFieldEnd();
16037
      }
16038
      oprot.writeFieldStop();
16039
      oprot.writeStructEnd();
16040
    }
16041
 
16042
    @Override
16043
    public String toString() {
16044
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16045
      boolean first = true;
16046
 
16047
      sb.append("entityIds:");
16048
      if (this.entityIds == null) {
16049
        sb.append("null");
16050
      } else {
16051
        sb.append(this.entityIds);
16052
      }
16053
      first = false;
16054
      if (!first) sb.append(", ");
16055
      sb.append("email:");
16056
      if (this.email == null) {
16057
        sb.append("null");
16058
      } else {
16059
        sb.append(this.email);
16060
      }
16061
      first = false;
16062
      sb.append(")");
16063
      return sb.toString();
16064
    }
16065
 
16066
    public void validate() throws org.apache.thrift.TException {
16067
      // check for required fields
16068
    }
16069
 
16070
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16071
      try {
16072
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16073
      } catch (org.apache.thrift.TException te) {
16074
        throw new java.io.IOException(te);
16075
      }
16076
    }
16077
 
16078
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16079
      try {
16080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16081
      } catch (org.apache.thrift.TException te) {
16082
        throw new java.io.IOException(te);
16083
      }
16084
    }
16085
 
16086
  }
16087
 
16088
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16090
 
16091
    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);
16092
 
16093
    private HelperServiceException hse; // required
16094
 
16095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16097
      HSE((short)1, "hse");
16098
 
16099
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16100
 
16101
      static {
16102
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16103
          byName.put(field.getFieldName(), field);
16104
        }
16105
      }
16106
 
16107
      /**
16108
       * Find the _Fields constant that matches fieldId, or null if its not found.
16109
       */
16110
      public static _Fields findByThriftId(int fieldId) {
16111
        switch(fieldId) {
16112
          case 1: // HSE
16113
            return HSE;
16114
          default:
16115
            return null;
16116
        }
16117
      }
16118
 
16119
      /**
16120
       * Find the _Fields constant that matches fieldId, throwing an exception
16121
       * if it is not found.
16122
       */
16123
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16124
        _Fields fields = findByThriftId(fieldId);
16125
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16126
        return fields;
16127
      }
16128
 
16129
      /**
16130
       * Find the _Fields constant that matches name, or null if its not found.
16131
       */
16132
      public static _Fields findByName(String name) {
16133
        return byName.get(name);
16134
      }
16135
 
16136
      private final short _thriftId;
16137
      private final String _fieldName;
16138
 
16139
      _Fields(short thriftId, String fieldName) {
16140
        _thriftId = thriftId;
16141
        _fieldName = fieldName;
16142
      }
16143
 
16144
      public short getThriftFieldId() {
16145
        return _thriftId;
16146
      }
16147
 
16148
      public String getFieldName() {
16149
        return _fieldName;
16150
      }
16151
    }
16152
 
16153
    // isset id assignments
16154
 
16155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16156
    static {
16157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16158
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16162
    }
16163
 
16164
    public shareEntities_result() {
16165
    }
16166
 
16167
    public shareEntities_result(
16168
      HelperServiceException hse)
16169
    {
16170
      this();
16171
      this.hse = hse;
16172
    }
16173
 
16174
    /**
16175
     * Performs a deep copy on <i>other</i>.
16176
     */
16177
    public shareEntities_result(shareEntities_result other) {
16178
      if (other.isSetHse()) {
16179
        this.hse = new HelperServiceException(other.hse);
16180
      }
16181
    }
16182
 
16183
    public shareEntities_result deepCopy() {
16184
      return new shareEntities_result(this);
16185
    }
16186
 
16187
    @Override
16188
    public void clear() {
16189
      this.hse = null;
16190
    }
16191
 
16192
    public HelperServiceException getHse() {
16193
      return this.hse;
16194
    }
16195
 
16196
    public void setHse(HelperServiceException hse) {
16197
      this.hse = hse;
16198
    }
16199
 
16200
    public void unsetHse() {
16201
      this.hse = null;
16202
    }
16203
 
16204
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16205
    public boolean isSetHse() {
16206
      return this.hse != null;
16207
    }
16208
 
16209
    public void setHseIsSet(boolean value) {
16210
      if (!value) {
16211
        this.hse = null;
16212
      }
16213
    }
16214
 
16215
    public void setFieldValue(_Fields field, Object value) {
16216
      switch (field) {
16217
      case HSE:
16218
        if (value == null) {
16219
          unsetHse();
16220
        } else {
16221
          setHse((HelperServiceException)value);
16222
        }
16223
        break;
16224
 
16225
      }
16226
    }
16227
 
16228
    public Object getFieldValue(_Fields field) {
16229
      switch (field) {
16230
      case HSE:
16231
        return getHse();
16232
 
16233
      }
16234
      throw new IllegalStateException();
16235
    }
16236
 
16237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16238
    public boolean isSet(_Fields field) {
16239
      if (field == null) {
16240
        throw new IllegalArgumentException();
16241
      }
16242
 
16243
      switch (field) {
16244
      case HSE:
16245
        return isSetHse();
16246
      }
16247
      throw new IllegalStateException();
16248
    }
16249
 
16250
    @Override
16251
    public boolean equals(Object that) {
16252
      if (that == null)
16253
        return false;
16254
      if (that instanceof shareEntities_result)
16255
        return this.equals((shareEntities_result)that);
16256
      return false;
16257
    }
16258
 
16259
    public boolean equals(shareEntities_result that) {
16260
      if (that == null)
16261
        return false;
16262
 
16263
      boolean this_present_hse = true && this.isSetHse();
16264
      boolean that_present_hse = true && that.isSetHse();
16265
      if (this_present_hse || that_present_hse) {
16266
        if (!(this_present_hse && that_present_hse))
16267
          return false;
16268
        if (!this.hse.equals(that.hse))
16269
          return false;
16270
      }
16271
 
16272
      return true;
16273
    }
16274
 
16275
    @Override
16276
    public int hashCode() {
16277
      return 0;
16278
    }
16279
 
16280
    public int compareTo(shareEntities_result other) {
16281
      if (!getClass().equals(other.getClass())) {
16282
        return getClass().getName().compareTo(other.getClass().getName());
16283
      }
16284
 
16285
      int lastComparison = 0;
16286
      shareEntities_result typedOther = (shareEntities_result)other;
16287
 
16288
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16289
      if (lastComparison != 0) {
16290
        return lastComparison;
16291
      }
16292
      if (isSetHse()) {
16293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16294
        if (lastComparison != 0) {
16295
          return lastComparison;
16296
        }
16297
      }
16298
      return 0;
16299
    }
16300
 
16301
    public _Fields fieldForId(int fieldId) {
16302
      return _Fields.findByThriftId(fieldId);
16303
    }
16304
 
16305
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16306
      org.apache.thrift.protocol.TField field;
16307
      iprot.readStructBegin();
16308
      while (true)
16309
      {
16310
        field = iprot.readFieldBegin();
16311
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16312
          break;
16313
        }
16314
        switch (field.id) {
16315
          case 1: // HSE
16316
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16317
              this.hse = new HelperServiceException();
16318
              this.hse.read(iprot);
16319
            } else { 
16320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16321
            }
16322
            break;
16323
          default:
16324
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16325
        }
16326
        iprot.readFieldEnd();
16327
      }
16328
      iprot.readStructEnd();
16329
      validate();
16330
    }
16331
 
16332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16333
      oprot.writeStructBegin(STRUCT_DESC);
16334
 
16335
      if (this.isSetHse()) {
16336
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16337
        this.hse.write(oprot);
16338
        oprot.writeFieldEnd();
16339
      }
16340
      oprot.writeFieldStop();
16341
      oprot.writeStructEnd();
16342
    }
16343
 
16344
    @Override
16345
    public String toString() {
16346
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16347
      boolean first = true;
16348
 
16349
      sb.append("hse:");
16350
      if (this.hse == null) {
16351
        sb.append("null");
16352
      } else {
16353
        sb.append(this.hse);
16354
      }
16355
      first = false;
16356
      sb.append(")");
16357
      return sb.toString();
16358
    }
16359
 
16360
    public void validate() throws org.apache.thrift.TException {
16361
      // check for required fields
16362
    }
16363
 
16364
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16365
      try {
16366
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16367
      } catch (org.apache.thrift.TException te) {
16368
        throw new java.io.IOException(te);
16369
      }
16370
    }
16371
 
16372
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16373
      try {
16374
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16375
      } catch (org.apache.thrift.TException te) {
16376
        throw new java.io.IOException(te);
16377
      }
16378
    }
16379
 
16380
  }
16381
 
4693 mandeep.dh 16382
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16383
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16384
 
16385
 
16386
 
16387
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16388
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16389
;
16390
 
16391
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16392
 
16393
      static {
16394
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16395
          byName.put(field.getFieldName(), field);
16396
        }
16397
      }
16398
 
16399
      /**
16400
       * Find the _Fields constant that matches fieldId, or null if its not found.
16401
       */
16402
      public static _Fields findByThriftId(int fieldId) {
16403
        switch(fieldId) {
16404
          default:
16405
            return null;
16406
        }
16407
      }
16408
 
16409
      /**
16410
       * Find the _Fields constant that matches fieldId, throwing an exception
16411
       * if it is not found.
16412
       */
16413
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16414
        _Fields fields = findByThriftId(fieldId);
16415
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16416
        return fields;
16417
      }
16418
 
16419
      /**
16420
       * Find the _Fields constant that matches name, or null if its not found.
16421
       */
16422
      public static _Fields findByName(String name) {
16423
        return byName.get(name);
16424
      }
16425
 
16426
      private final short _thriftId;
16427
      private final String _fieldName;
16428
 
16429
      _Fields(short thriftId, String fieldName) {
16430
        _thriftId = thriftId;
16431
        _fieldName = fieldName;
16432
      }
16433
 
16434
      public short getThriftFieldId() {
16435
        return _thriftId;
16436
      }
16437
 
16438
      public String getFieldName() {
16439
        return _fieldName;
16440
      }
16441
    }
16442
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16443
    static {
16444
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16445
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16446
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16447
    }
16448
 
16449
    public getAgents_args() {
16450
    }
16451
 
16452
    /**
16453
     * Performs a deep copy on <i>other</i>.
16454
     */
16455
    public getAgents_args(getAgents_args other) {
16456
    }
16457
 
16458
    public getAgents_args deepCopy() {
16459
      return new getAgents_args(this);
16460
    }
16461
 
16462
    @Override
16463
    public void clear() {
16464
    }
16465
 
16466
    public void setFieldValue(_Fields field, Object value) {
16467
      switch (field) {
16468
      }
16469
    }
16470
 
16471
    public Object getFieldValue(_Fields field) {
16472
      switch (field) {
16473
      }
16474
      throw new IllegalStateException();
16475
    }
16476
 
16477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16478
    public boolean isSet(_Fields field) {
16479
      if (field == null) {
16480
        throw new IllegalArgumentException();
16481
      }
16482
 
16483
      switch (field) {
16484
      }
16485
      throw new IllegalStateException();
16486
    }
16487
 
16488
    @Override
16489
    public boolean equals(Object that) {
16490
      if (that == null)
16491
        return false;
16492
      if (that instanceof getAgents_args)
16493
        return this.equals((getAgents_args)that);
16494
      return false;
16495
    }
16496
 
16497
    public boolean equals(getAgents_args that) {
16498
      if (that == null)
16499
        return false;
16500
 
16501
      return true;
16502
    }
16503
 
16504
    @Override
16505
    public int hashCode() {
16506
      return 0;
16507
    }
16508
 
16509
    public int compareTo(getAgents_args other) {
16510
      if (!getClass().equals(other.getClass())) {
16511
        return getClass().getName().compareTo(other.getClass().getName());
16512
      }
16513
 
16514
      int lastComparison = 0;
16515
      getAgents_args typedOther = (getAgents_args)other;
16516
 
16517
      return 0;
16518
    }
16519
 
16520
    public _Fields fieldForId(int fieldId) {
16521
      return _Fields.findByThriftId(fieldId);
16522
    }
16523
 
16524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16525
      org.apache.thrift.protocol.TField field;
16526
      iprot.readStructBegin();
16527
      while (true)
16528
      {
16529
        field = iprot.readFieldBegin();
16530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16531
          break;
16532
        }
16533
        switch (field.id) {
16534
          default:
16535
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16536
        }
16537
        iprot.readFieldEnd();
16538
      }
16539
      iprot.readStructEnd();
16540
      validate();
16541
    }
16542
 
16543
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16544
      validate();
16545
 
16546
      oprot.writeStructBegin(STRUCT_DESC);
16547
      oprot.writeFieldStop();
16548
      oprot.writeStructEnd();
16549
    }
16550
 
16551
    @Override
16552
    public String toString() {
16553
      StringBuilder sb = new StringBuilder("getAgents_args(");
16554
      boolean first = true;
16555
 
16556
      sb.append(")");
16557
      return sb.toString();
16558
    }
16559
 
16560
    public void validate() throws org.apache.thrift.TException {
16561
      // check for required fields
16562
    }
16563
 
16564
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16565
      try {
16566
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16567
      } catch (org.apache.thrift.TException te) {
16568
        throw new java.io.IOException(te);
16569
      }
16570
    }
16571
 
16572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16573
      try {
16574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16575
      } catch (org.apache.thrift.TException te) {
16576
        throw new java.io.IOException(te);
16577
      }
16578
    }
16579
 
16580
  }
16581
 
16582
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16584
 
16585
    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);
16586
 
16587
    private List<Agent> success; // required
16588
 
16589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16590
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16591
      SUCCESS((short)0, "success");
16592
 
16593
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16594
 
16595
      static {
16596
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16597
          byName.put(field.getFieldName(), field);
16598
        }
16599
      }
16600
 
16601
      /**
16602
       * Find the _Fields constant that matches fieldId, or null if its not found.
16603
       */
16604
      public static _Fields findByThriftId(int fieldId) {
16605
        switch(fieldId) {
16606
          case 0: // SUCCESS
16607
            return SUCCESS;
16608
          default:
16609
            return null;
16610
        }
16611
      }
16612
 
16613
      /**
16614
       * Find the _Fields constant that matches fieldId, throwing an exception
16615
       * if it is not found.
16616
       */
16617
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16618
        _Fields fields = findByThriftId(fieldId);
16619
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16620
        return fields;
16621
      }
16622
 
16623
      /**
16624
       * Find the _Fields constant that matches name, or null if its not found.
16625
       */
16626
      public static _Fields findByName(String name) {
16627
        return byName.get(name);
16628
      }
16629
 
16630
      private final short _thriftId;
16631
      private final String _fieldName;
16632
 
16633
      _Fields(short thriftId, String fieldName) {
16634
        _thriftId = thriftId;
16635
        _fieldName = fieldName;
16636
      }
16637
 
16638
      public short getThriftFieldId() {
16639
        return _thriftId;
16640
      }
16641
 
16642
      public String getFieldName() {
16643
        return _fieldName;
16644
      }
16645
    }
16646
 
16647
    // isset id assignments
16648
 
16649
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16650
    static {
16651
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16652
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16653
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16654
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
16655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
16657
    }
16658
 
16659
    public getAgents_result() {
16660
    }
16661
 
16662
    public getAgents_result(
16663
      List<Agent> success)
16664
    {
16665
      this();
16666
      this.success = success;
16667
    }
16668
 
16669
    /**
16670
     * Performs a deep copy on <i>other</i>.
16671
     */
16672
    public getAgents_result(getAgents_result other) {
16673
      if (other.isSetSuccess()) {
16674
        List<Agent> __this__success = new ArrayList<Agent>();
16675
        for (Agent other_element : other.success) {
16676
          __this__success.add(new Agent(other_element));
16677
        }
16678
        this.success = __this__success;
16679
      }
16680
    }
16681
 
16682
    public getAgents_result deepCopy() {
16683
      return new getAgents_result(this);
16684
    }
16685
 
16686
    @Override
16687
    public void clear() {
16688
      this.success = null;
16689
    }
16690
 
16691
    public int getSuccessSize() {
16692
      return (this.success == null) ? 0 : this.success.size();
16693
    }
16694
 
16695
    public java.util.Iterator<Agent> getSuccessIterator() {
16696
      return (this.success == null) ? null : this.success.iterator();
16697
    }
16698
 
16699
    public void addToSuccess(Agent elem) {
16700
      if (this.success == null) {
16701
        this.success = new ArrayList<Agent>();
16702
      }
16703
      this.success.add(elem);
16704
    }
16705
 
16706
    public List<Agent> getSuccess() {
16707
      return this.success;
16708
    }
16709
 
16710
    public void setSuccess(List<Agent> success) {
16711
      this.success = success;
16712
    }
16713
 
16714
    public void unsetSuccess() {
16715
      this.success = null;
16716
    }
16717
 
16718
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16719
    public boolean isSetSuccess() {
16720
      return this.success != null;
16721
    }
16722
 
16723
    public void setSuccessIsSet(boolean value) {
16724
      if (!value) {
16725
        this.success = null;
16726
      }
16727
    }
16728
 
16729
    public void setFieldValue(_Fields field, Object value) {
16730
      switch (field) {
16731
      case SUCCESS:
16732
        if (value == null) {
16733
          unsetSuccess();
16734
        } else {
16735
          setSuccess((List<Agent>)value);
16736
        }
16737
        break;
16738
 
16739
      }
16740
    }
16741
 
16742
    public Object getFieldValue(_Fields field) {
16743
      switch (field) {
16744
      case SUCCESS:
16745
        return getSuccess();
16746
 
16747
      }
16748
      throw new IllegalStateException();
16749
    }
16750
 
16751
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16752
    public boolean isSet(_Fields field) {
16753
      if (field == null) {
16754
        throw new IllegalArgumentException();
16755
      }
16756
 
16757
      switch (field) {
16758
      case SUCCESS:
16759
        return isSetSuccess();
16760
      }
16761
      throw new IllegalStateException();
16762
    }
16763
 
16764
    @Override
16765
    public boolean equals(Object that) {
16766
      if (that == null)
16767
        return false;
16768
      if (that instanceof getAgents_result)
16769
        return this.equals((getAgents_result)that);
16770
      return false;
16771
    }
16772
 
16773
    public boolean equals(getAgents_result that) {
16774
      if (that == null)
16775
        return false;
16776
 
16777
      boolean this_present_success = true && this.isSetSuccess();
16778
      boolean that_present_success = true && that.isSetSuccess();
16779
      if (this_present_success || that_present_success) {
16780
        if (!(this_present_success && that_present_success))
16781
          return false;
16782
        if (!this.success.equals(that.success))
16783
          return false;
16784
      }
16785
 
16786
      return true;
16787
    }
16788
 
16789
    @Override
16790
    public int hashCode() {
16791
      return 0;
16792
    }
16793
 
16794
    public int compareTo(getAgents_result other) {
16795
      if (!getClass().equals(other.getClass())) {
16796
        return getClass().getName().compareTo(other.getClass().getName());
16797
      }
16798
 
16799
      int lastComparison = 0;
16800
      getAgents_result typedOther = (getAgents_result)other;
16801
 
16802
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16803
      if (lastComparison != 0) {
16804
        return lastComparison;
16805
      }
16806
      if (isSetSuccess()) {
16807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16808
        if (lastComparison != 0) {
16809
          return lastComparison;
16810
        }
16811
      }
16812
      return 0;
16813
    }
16814
 
16815
    public _Fields fieldForId(int fieldId) {
16816
      return _Fields.findByThriftId(fieldId);
16817
    }
16818
 
16819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16820
      org.apache.thrift.protocol.TField field;
16821
      iprot.readStructBegin();
16822
      while (true)
16823
      {
16824
        field = iprot.readFieldBegin();
16825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16826
          break;
16827
        }
16828
        switch (field.id) {
16829
          case 0: // SUCCESS
16830
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16831
              {
16832
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
16833
                this.success = new ArrayList<Agent>(_list25.size);
16834
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
16835
                {
16836
                  Agent _elem27; // required
16837
                  _elem27 = new Agent();
16838
                  _elem27.read(iprot);
16839
                  this.success.add(_elem27);
16840
                }
16841
                iprot.readListEnd();
16842
              }
16843
            } else { 
16844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16845
            }
16846
            break;
16847
          default:
16848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16849
        }
16850
        iprot.readFieldEnd();
16851
      }
16852
      iprot.readStructEnd();
16853
      validate();
16854
    }
16855
 
16856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16857
      oprot.writeStructBegin(STRUCT_DESC);
16858
 
16859
      if (this.isSetSuccess()) {
16860
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16861
        {
16862
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16863
          for (Agent _iter28 : this.success)
16864
          {
16865
            _iter28.write(oprot);
16866
          }
16867
          oprot.writeListEnd();
16868
        }
16869
        oprot.writeFieldEnd();
16870
      }
16871
      oprot.writeFieldStop();
16872
      oprot.writeStructEnd();
16873
    }
16874
 
16875
    @Override
16876
    public String toString() {
16877
      StringBuilder sb = new StringBuilder("getAgents_result(");
16878
      boolean first = true;
16879
 
16880
      sb.append("success:");
16881
      if (this.success == null) {
16882
        sb.append("null");
16883
      } else {
16884
        sb.append(this.success);
16885
      }
16886
      first = false;
16887
      sb.append(")");
16888
      return sb.toString();
16889
    }
16890
 
16891
    public void validate() throws org.apache.thrift.TException {
16892
      // check for required fields
16893
    }
16894
 
16895
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16896
      try {
16897
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16898
      } catch (org.apache.thrift.TException te) {
16899
        throw new java.io.IOException(te);
16900
      }
16901
    }
16902
 
16903
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16904
      try {
16905
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16906
      } catch (org.apache.thrift.TException te) {
16907
        throw new java.io.IOException(te);
16908
      }
16909
    }
16910
 
16911
  }
16912
 
16913
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
16914
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
16915
 
16916
    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);
16917
    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);
16918
 
16919
    private String emailId; // required
16920
    private String password; // required
16921
 
16922
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16923
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16924
      EMAIL_ID((short)1, "emailId"),
16925
      PASSWORD((short)2, "password");
16926
 
16927
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16928
 
16929
      static {
16930
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16931
          byName.put(field.getFieldName(), field);
16932
        }
16933
      }
16934
 
16935
      /**
16936
       * Find the _Fields constant that matches fieldId, or null if its not found.
16937
       */
16938
      public static _Fields findByThriftId(int fieldId) {
16939
        switch(fieldId) {
16940
          case 1: // EMAIL_ID
16941
            return EMAIL_ID;
16942
          case 2: // PASSWORD
16943
            return PASSWORD;
16944
          default:
16945
            return null;
16946
        }
16947
      }
16948
 
16949
      /**
16950
       * Find the _Fields constant that matches fieldId, throwing an exception
16951
       * if it is not found.
16952
       */
16953
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16954
        _Fields fields = findByThriftId(fieldId);
16955
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16956
        return fields;
16957
      }
16958
 
16959
      /**
16960
       * Find the _Fields constant that matches name, or null if its not found.
16961
       */
16962
      public static _Fields findByName(String name) {
16963
        return byName.get(name);
16964
      }
16965
 
16966
      private final short _thriftId;
16967
      private final String _fieldName;
16968
 
16969
      _Fields(short thriftId, String fieldName) {
16970
        _thriftId = thriftId;
16971
        _fieldName = fieldName;
16972
      }
16973
 
16974
      public short getThriftFieldId() {
16975
        return _thriftId;
16976
      }
16977
 
16978
      public String getFieldName() {
16979
        return _fieldName;
16980
      }
16981
    }
16982
 
16983
    // isset id assignments
16984
 
16985
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16986
    static {
16987
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16988
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16990
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
16994
    }
16995
 
16996
    public validateLogIn_args() {
16997
    }
16998
 
16999
    public validateLogIn_args(
17000
      String emailId,
17001
      String password)
17002
    {
17003
      this();
17004
      this.emailId = emailId;
17005
      this.password = password;
17006
    }
17007
 
17008
    /**
17009
     * Performs a deep copy on <i>other</i>.
17010
     */
17011
    public validateLogIn_args(validateLogIn_args other) {
17012
      if (other.isSetEmailId()) {
17013
        this.emailId = other.emailId;
17014
      }
17015
      if (other.isSetPassword()) {
17016
        this.password = other.password;
17017
      }
17018
    }
17019
 
17020
    public validateLogIn_args deepCopy() {
17021
      return new validateLogIn_args(this);
17022
    }
17023
 
17024
    @Override
17025
    public void clear() {
17026
      this.emailId = null;
17027
      this.password = null;
17028
    }
17029
 
17030
    public String getEmailId() {
17031
      return this.emailId;
17032
    }
17033
 
17034
    public void setEmailId(String emailId) {
17035
      this.emailId = emailId;
17036
    }
17037
 
17038
    public void unsetEmailId() {
17039
      this.emailId = null;
17040
    }
17041
 
17042
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17043
    public boolean isSetEmailId() {
17044
      return this.emailId != null;
17045
    }
17046
 
17047
    public void setEmailIdIsSet(boolean value) {
17048
      if (!value) {
17049
        this.emailId = null;
17050
      }
17051
    }
17052
 
17053
    public String getPassword() {
17054
      return this.password;
17055
    }
17056
 
17057
    public void setPassword(String password) {
17058
      this.password = password;
17059
    }
17060
 
17061
    public void unsetPassword() {
17062
      this.password = null;
17063
    }
17064
 
17065
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17066
    public boolean isSetPassword() {
17067
      return this.password != null;
17068
    }
17069
 
17070
    public void setPasswordIsSet(boolean value) {
17071
      if (!value) {
17072
        this.password = null;
17073
      }
17074
    }
17075
 
17076
    public void setFieldValue(_Fields field, Object value) {
17077
      switch (field) {
17078
      case EMAIL_ID:
17079
        if (value == null) {
17080
          unsetEmailId();
17081
        } else {
17082
          setEmailId((String)value);
17083
        }
17084
        break;
17085
 
17086
      case PASSWORD:
17087
        if (value == null) {
17088
          unsetPassword();
17089
        } else {
17090
          setPassword((String)value);
17091
        }
17092
        break;
17093
 
17094
      }
17095
    }
17096
 
17097
    public Object getFieldValue(_Fields field) {
17098
      switch (field) {
17099
      case EMAIL_ID:
17100
        return getEmailId();
17101
 
17102
      case PASSWORD:
17103
        return getPassword();
17104
 
17105
      }
17106
      throw new IllegalStateException();
17107
    }
17108
 
17109
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17110
    public boolean isSet(_Fields field) {
17111
      if (field == null) {
17112
        throw new IllegalArgumentException();
17113
      }
17114
 
17115
      switch (field) {
17116
      case EMAIL_ID:
17117
        return isSetEmailId();
17118
      case PASSWORD:
17119
        return isSetPassword();
17120
      }
17121
      throw new IllegalStateException();
17122
    }
17123
 
17124
    @Override
17125
    public boolean equals(Object that) {
17126
      if (that == null)
17127
        return false;
17128
      if (that instanceof validateLogIn_args)
17129
        return this.equals((validateLogIn_args)that);
17130
      return false;
17131
    }
17132
 
17133
    public boolean equals(validateLogIn_args that) {
17134
      if (that == null)
17135
        return false;
17136
 
17137
      boolean this_present_emailId = true && this.isSetEmailId();
17138
      boolean that_present_emailId = true && that.isSetEmailId();
17139
      if (this_present_emailId || that_present_emailId) {
17140
        if (!(this_present_emailId && that_present_emailId))
17141
          return false;
17142
        if (!this.emailId.equals(that.emailId))
17143
          return false;
17144
      }
17145
 
17146
      boolean this_present_password = true && this.isSetPassword();
17147
      boolean that_present_password = true && that.isSetPassword();
17148
      if (this_present_password || that_present_password) {
17149
        if (!(this_present_password && that_present_password))
17150
          return false;
17151
        if (!this.password.equals(that.password))
17152
          return false;
17153
      }
17154
 
17155
      return true;
17156
    }
17157
 
17158
    @Override
17159
    public int hashCode() {
17160
      return 0;
17161
    }
17162
 
17163
    public int compareTo(validateLogIn_args other) {
17164
      if (!getClass().equals(other.getClass())) {
17165
        return getClass().getName().compareTo(other.getClass().getName());
17166
      }
17167
 
17168
      int lastComparison = 0;
17169
      validateLogIn_args typedOther = (validateLogIn_args)other;
17170
 
17171
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17172
      if (lastComparison != 0) {
17173
        return lastComparison;
17174
      }
17175
      if (isSetEmailId()) {
17176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17177
        if (lastComparison != 0) {
17178
          return lastComparison;
17179
        }
17180
      }
17181
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17182
      if (lastComparison != 0) {
17183
        return lastComparison;
17184
      }
17185
      if (isSetPassword()) {
17186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17187
        if (lastComparison != 0) {
17188
          return lastComparison;
17189
        }
17190
      }
17191
      return 0;
17192
    }
17193
 
17194
    public _Fields fieldForId(int fieldId) {
17195
      return _Fields.findByThriftId(fieldId);
17196
    }
17197
 
17198
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17199
      org.apache.thrift.protocol.TField field;
17200
      iprot.readStructBegin();
17201
      while (true)
17202
      {
17203
        field = iprot.readFieldBegin();
17204
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17205
          break;
17206
        }
17207
        switch (field.id) {
17208
          case 1: // EMAIL_ID
17209
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17210
              this.emailId = iprot.readString();
17211
            } else { 
17212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17213
            }
17214
            break;
17215
          case 2: // PASSWORD
17216
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17217
              this.password = iprot.readString();
17218
            } else { 
17219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17220
            }
17221
            break;
17222
          default:
17223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17224
        }
17225
        iprot.readFieldEnd();
17226
      }
17227
      iprot.readStructEnd();
17228
      validate();
17229
    }
17230
 
17231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17232
      validate();
17233
 
17234
      oprot.writeStructBegin(STRUCT_DESC);
17235
      if (this.emailId != null) {
17236
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17237
        oprot.writeString(this.emailId);
17238
        oprot.writeFieldEnd();
17239
      }
17240
      if (this.password != null) {
17241
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17242
        oprot.writeString(this.password);
17243
        oprot.writeFieldEnd();
17244
      }
17245
      oprot.writeFieldStop();
17246
      oprot.writeStructEnd();
17247
    }
17248
 
17249
    @Override
17250
    public String toString() {
17251
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17252
      boolean first = true;
17253
 
17254
      sb.append("emailId:");
17255
      if (this.emailId == null) {
17256
        sb.append("null");
17257
      } else {
17258
        sb.append(this.emailId);
17259
      }
17260
      first = false;
17261
      if (!first) sb.append(", ");
17262
      sb.append("password:");
17263
      if (this.password == null) {
17264
        sb.append("null");
17265
      } else {
17266
        sb.append(this.password);
17267
      }
17268
      first = false;
17269
      sb.append(")");
17270
      return sb.toString();
17271
    }
17272
 
17273
    public void validate() throws org.apache.thrift.TException {
17274
      // check for required fields
17275
    }
17276
 
17277
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17278
      try {
17279
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17280
      } catch (org.apache.thrift.TException te) {
17281
        throw new java.io.IOException(te);
17282
      }
17283
    }
17284
 
17285
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17286
      try {
17287
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17288
      } catch (org.apache.thrift.TException te) {
17289
        throw new java.io.IOException(te);
17290
      }
17291
    }
17292
 
17293
  }
17294
 
17295
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17296
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17297
 
17298
    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);
17299
 
17300
    private boolean success; // required
17301
 
17302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17304
      SUCCESS((short)0, "success");
17305
 
17306
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17307
 
17308
      static {
17309
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17310
          byName.put(field.getFieldName(), field);
17311
        }
17312
      }
17313
 
17314
      /**
17315
       * Find the _Fields constant that matches fieldId, or null if its not found.
17316
       */
17317
      public static _Fields findByThriftId(int fieldId) {
17318
        switch(fieldId) {
17319
          case 0: // SUCCESS
17320
            return SUCCESS;
17321
          default:
17322
            return null;
17323
        }
17324
      }
17325
 
17326
      /**
17327
       * Find the _Fields constant that matches fieldId, throwing an exception
17328
       * if it is not found.
17329
       */
17330
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17331
        _Fields fields = findByThriftId(fieldId);
17332
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17333
        return fields;
17334
      }
17335
 
17336
      /**
17337
       * Find the _Fields constant that matches name, or null if its not found.
17338
       */
17339
      public static _Fields findByName(String name) {
17340
        return byName.get(name);
17341
      }
17342
 
17343
      private final short _thriftId;
17344
      private final String _fieldName;
17345
 
17346
      _Fields(short thriftId, String fieldName) {
17347
        _thriftId = thriftId;
17348
        _fieldName = fieldName;
17349
      }
17350
 
17351
      public short getThriftFieldId() {
17352
        return _thriftId;
17353
      }
17354
 
17355
      public String getFieldName() {
17356
        return _fieldName;
17357
      }
17358
    }
17359
 
17360
    // isset id assignments
17361
    private static final int __SUCCESS_ISSET_ID = 0;
17362
    private BitSet __isset_bit_vector = new BitSet(1);
17363
 
17364
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17365
    static {
17366
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17367
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17368
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17369
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17370
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17371
    }
17372
 
17373
    public validateLogIn_result() {
17374
    }
17375
 
17376
    public validateLogIn_result(
17377
      boolean success)
17378
    {
17379
      this();
17380
      this.success = success;
17381
      setSuccessIsSet(true);
17382
    }
17383
 
17384
    /**
17385
     * Performs a deep copy on <i>other</i>.
17386
     */
17387
    public validateLogIn_result(validateLogIn_result other) {
17388
      __isset_bit_vector.clear();
17389
      __isset_bit_vector.or(other.__isset_bit_vector);
17390
      this.success = other.success;
17391
    }
17392
 
17393
    public validateLogIn_result deepCopy() {
17394
      return new validateLogIn_result(this);
17395
    }
17396
 
17397
    @Override
17398
    public void clear() {
17399
      setSuccessIsSet(false);
17400
      this.success = false;
17401
    }
17402
 
17403
    public boolean isSuccess() {
17404
      return this.success;
17405
    }
17406
 
17407
    public void setSuccess(boolean success) {
17408
      this.success = success;
17409
      setSuccessIsSet(true);
17410
    }
17411
 
17412
    public void unsetSuccess() {
17413
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17414
    }
17415
 
17416
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17417
    public boolean isSetSuccess() {
17418
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17419
    }
17420
 
17421
    public void setSuccessIsSet(boolean value) {
17422
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17423
    }
17424
 
17425
    public void setFieldValue(_Fields field, Object value) {
17426
      switch (field) {
17427
      case SUCCESS:
17428
        if (value == null) {
17429
          unsetSuccess();
17430
        } else {
17431
          setSuccess((Boolean)value);
17432
        }
17433
        break;
17434
 
17435
      }
17436
    }
17437
 
17438
    public Object getFieldValue(_Fields field) {
17439
      switch (field) {
17440
      case SUCCESS:
17441
        return Boolean.valueOf(isSuccess());
17442
 
17443
      }
17444
      throw new IllegalStateException();
17445
    }
17446
 
17447
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17448
    public boolean isSet(_Fields field) {
17449
      if (field == null) {
17450
        throw new IllegalArgumentException();
17451
      }
17452
 
17453
      switch (field) {
17454
      case SUCCESS:
17455
        return isSetSuccess();
17456
      }
17457
      throw new IllegalStateException();
17458
    }
17459
 
17460
    @Override
17461
    public boolean equals(Object that) {
17462
      if (that == null)
17463
        return false;
17464
      if (that instanceof validateLogIn_result)
17465
        return this.equals((validateLogIn_result)that);
17466
      return false;
17467
    }
17468
 
17469
    public boolean equals(validateLogIn_result that) {
17470
      if (that == null)
17471
        return false;
17472
 
17473
      boolean this_present_success = true;
17474
      boolean that_present_success = true;
17475
      if (this_present_success || that_present_success) {
17476
        if (!(this_present_success && that_present_success))
17477
          return false;
17478
        if (this.success != that.success)
17479
          return false;
17480
      }
17481
 
17482
      return true;
17483
    }
17484
 
17485
    @Override
17486
    public int hashCode() {
17487
      return 0;
17488
    }
17489
 
17490
    public int compareTo(validateLogIn_result other) {
17491
      if (!getClass().equals(other.getClass())) {
17492
        return getClass().getName().compareTo(other.getClass().getName());
17493
      }
17494
 
17495
      int lastComparison = 0;
17496
      validateLogIn_result typedOther = (validateLogIn_result)other;
17497
 
17498
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17499
      if (lastComparison != 0) {
17500
        return lastComparison;
17501
      }
17502
      if (isSetSuccess()) {
17503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17504
        if (lastComparison != 0) {
17505
          return lastComparison;
17506
        }
17507
      }
17508
      return 0;
17509
    }
17510
 
17511
    public _Fields fieldForId(int fieldId) {
17512
      return _Fields.findByThriftId(fieldId);
17513
    }
17514
 
17515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17516
      org.apache.thrift.protocol.TField field;
17517
      iprot.readStructBegin();
17518
      while (true)
17519
      {
17520
        field = iprot.readFieldBegin();
17521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17522
          break;
17523
        }
17524
        switch (field.id) {
17525
          case 0: // SUCCESS
17526
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17527
              this.success = iprot.readBool();
17528
              setSuccessIsSet(true);
17529
            } else { 
17530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17531
            }
17532
            break;
17533
          default:
17534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17535
        }
17536
        iprot.readFieldEnd();
17537
      }
17538
      iprot.readStructEnd();
17539
      validate();
17540
    }
17541
 
17542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17543
      oprot.writeStructBegin(STRUCT_DESC);
17544
 
17545
      if (this.isSetSuccess()) {
17546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17547
        oprot.writeBool(this.success);
17548
        oprot.writeFieldEnd();
17549
      }
17550
      oprot.writeFieldStop();
17551
      oprot.writeStructEnd();
17552
    }
17553
 
17554
    @Override
17555
    public String toString() {
17556
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17557
      boolean first = true;
17558
 
17559
      sb.append("success:");
17560
      sb.append(this.success);
17561
      first = false;
17562
      sb.append(")");
17563
      return sb.toString();
17564
    }
17565
 
17566
    public void validate() throws org.apache.thrift.TException {
17567
      // check for required fields
17568
    }
17569
 
17570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17571
      try {
17572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17573
      } catch (org.apache.thrift.TException te) {
17574
        throw new java.io.IOException(te);
17575
      }
17576
    }
17577
 
17578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17579
      try {
17580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17581
      } catch (org.apache.thrift.TException te) {
17582
        throw new java.io.IOException(te);
17583
      }
17584
    }
17585
 
17586
  }
17587
 
17588
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17590
 
17591
    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);
17592
    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);
17593
 
17594
    private String agentEmailId; // required
17595
    private String password; // required
17596
 
17597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17599
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17600
      PASSWORD((short)2, "password");
17601
 
17602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17603
 
17604
      static {
17605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17606
          byName.put(field.getFieldName(), field);
17607
        }
17608
      }
17609
 
17610
      /**
17611
       * Find the _Fields constant that matches fieldId, or null if its not found.
17612
       */
17613
      public static _Fields findByThriftId(int fieldId) {
17614
        switch(fieldId) {
17615
          case 1: // AGENT_EMAIL_ID
17616
            return AGENT_EMAIL_ID;
17617
          case 2: // PASSWORD
17618
            return PASSWORD;
17619
          default:
17620
            return null;
17621
        }
17622
      }
17623
 
17624
      /**
17625
       * Find the _Fields constant that matches fieldId, throwing an exception
17626
       * if it is not found.
17627
       */
17628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17629
        _Fields fields = findByThriftId(fieldId);
17630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17631
        return fields;
17632
      }
17633
 
17634
      /**
17635
       * Find the _Fields constant that matches name, or null if its not found.
17636
       */
17637
      public static _Fields findByName(String name) {
17638
        return byName.get(name);
17639
      }
17640
 
17641
      private final short _thriftId;
17642
      private final String _fieldName;
17643
 
17644
      _Fields(short thriftId, String fieldName) {
17645
        _thriftId = thriftId;
17646
        _fieldName = fieldName;
17647
      }
17648
 
17649
      public short getThriftFieldId() {
17650
        return _thriftId;
17651
      }
17652
 
17653
      public String getFieldName() {
17654
        return _fieldName;
17655
      }
17656
    }
17657
 
17658
    // isset id assignments
17659
 
17660
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17661
    static {
17662
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17663
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17664
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17665
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17666
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17667
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17668
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
17669
    }
17670
 
17671
    public updatePasswordForAgent_args() {
17672
    }
17673
 
17674
    public updatePasswordForAgent_args(
17675
      String agentEmailId,
17676
      String password)
17677
    {
17678
      this();
17679
      this.agentEmailId = agentEmailId;
17680
      this.password = password;
17681
    }
17682
 
17683
    /**
17684
     * Performs a deep copy on <i>other</i>.
17685
     */
17686
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
17687
      if (other.isSetAgentEmailId()) {
17688
        this.agentEmailId = other.agentEmailId;
17689
      }
17690
      if (other.isSetPassword()) {
17691
        this.password = other.password;
17692
      }
17693
    }
17694
 
17695
    public updatePasswordForAgent_args deepCopy() {
17696
      return new updatePasswordForAgent_args(this);
17697
    }
17698
 
17699
    @Override
17700
    public void clear() {
17701
      this.agentEmailId = null;
17702
      this.password = null;
17703
    }
17704
 
17705
    public String getAgentEmailId() {
17706
      return this.agentEmailId;
17707
    }
17708
 
17709
    public void setAgentEmailId(String agentEmailId) {
17710
      this.agentEmailId = agentEmailId;
17711
    }
17712
 
17713
    public void unsetAgentEmailId() {
17714
      this.agentEmailId = null;
17715
    }
17716
 
17717
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
17718
    public boolean isSetAgentEmailId() {
17719
      return this.agentEmailId != null;
17720
    }
17721
 
17722
    public void setAgentEmailIdIsSet(boolean value) {
17723
      if (!value) {
17724
        this.agentEmailId = null;
17725
      }
17726
    }
17727
 
17728
    public String getPassword() {
17729
      return this.password;
17730
    }
17731
 
17732
    public void setPassword(String password) {
17733
      this.password = password;
17734
    }
17735
 
17736
    public void unsetPassword() {
17737
      this.password = null;
17738
    }
17739
 
17740
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17741
    public boolean isSetPassword() {
17742
      return this.password != null;
17743
    }
17744
 
17745
    public void setPasswordIsSet(boolean value) {
17746
      if (!value) {
17747
        this.password = null;
17748
      }
17749
    }
17750
 
17751
    public void setFieldValue(_Fields field, Object value) {
17752
      switch (field) {
17753
      case AGENT_EMAIL_ID:
17754
        if (value == null) {
17755
          unsetAgentEmailId();
17756
        } else {
17757
          setAgentEmailId((String)value);
17758
        }
17759
        break;
17760
 
17761
      case PASSWORD:
17762
        if (value == null) {
17763
          unsetPassword();
17764
        } else {
17765
          setPassword((String)value);
17766
        }
17767
        break;
17768
 
17769
      }
17770
    }
17771
 
17772
    public Object getFieldValue(_Fields field) {
17773
      switch (field) {
17774
      case AGENT_EMAIL_ID:
17775
        return getAgentEmailId();
17776
 
17777
      case PASSWORD:
17778
        return getPassword();
17779
 
17780
      }
17781
      throw new IllegalStateException();
17782
    }
17783
 
17784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17785
    public boolean isSet(_Fields field) {
17786
      if (field == null) {
17787
        throw new IllegalArgumentException();
17788
      }
17789
 
17790
      switch (field) {
17791
      case AGENT_EMAIL_ID:
17792
        return isSetAgentEmailId();
17793
      case PASSWORD:
17794
        return isSetPassword();
17795
      }
17796
      throw new IllegalStateException();
17797
    }
17798
 
17799
    @Override
17800
    public boolean equals(Object that) {
17801
      if (that == null)
17802
        return false;
17803
      if (that instanceof updatePasswordForAgent_args)
17804
        return this.equals((updatePasswordForAgent_args)that);
17805
      return false;
17806
    }
17807
 
17808
    public boolean equals(updatePasswordForAgent_args that) {
17809
      if (that == null)
17810
        return false;
17811
 
17812
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
17813
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
17814
      if (this_present_agentEmailId || that_present_agentEmailId) {
17815
        if (!(this_present_agentEmailId && that_present_agentEmailId))
17816
          return false;
17817
        if (!this.agentEmailId.equals(that.agentEmailId))
17818
          return false;
17819
      }
17820
 
17821
      boolean this_present_password = true && this.isSetPassword();
17822
      boolean that_present_password = true && that.isSetPassword();
17823
      if (this_present_password || that_present_password) {
17824
        if (!(this_present_password && that_present_password))
17825
          return false;
17826
        if (!this.password.equals(that.password))
17827
          return false;
17828
      }
17829
 
17830
      return true;
17831
    }
17832
 
17833
    @Override
17834
    public int hashCode() {
17835
      return 0;
17836
    }
17837
 
17838
    public int compareTo(updatePasswordForAgent_args other) {
17839
      if (!getClass().equals(other.getClass())) {
17840
        return getClass().getName().compareTo(other.getClass().getName());
17841
      }
17842
 
17843
      int lastComparison = 0;
17844
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
17845
 
17846
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
17847
      if (lastComparison != 0) {
17848
        return lastComparison;
17849
      }
17850
      if (isSetAgentEmailId()) {
17851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
17852
        if (lastComparison != 0) {
17853
          return lastComparison;
17854
        }
17855
      }
17856
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17857
      if (lastComparison != 0) {
17858
        return lastComparison;
17859
      }
17860
      if (isSetPassword()) {
17861
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17862
        if (lastComparison != 0) {
17863
          return lastComparison;
17864
        }
17865
      }
17866
      return 0;
17867
    }
17868
 
17869
    public _Fields fieldForId(int fieldId) {
17870
      return _Fields.findByThriftId(fieldId);
17871
    }
17872
 
17873
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17874
      org.apache.thrift.protocol.TField field;
17875
      iprot.readStructBegin();
17876
      while (true)
17877
      {
17878
        field = iprot.readFieldBegin();
17879
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17880
          break;
17881
        }
17882
        switch (field.id) {
17883
          case 1: // AGENT_EMAIL_ID
17884
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17885
              this.agentEmailId = iprot.readString();
17886
            } else { 
17887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17888
            }
17889
            break;
17890
          case 2: // PASSWORD
17891
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17892
              this.password = iprot.readString();
17893
            } else { 
17894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17895
            }
17896
            break;
17897
          default:
17898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17899
        }
17900
        iprot.readFieldEnd();
17901
      }
17902
      iprot.readStructEnd();
17903
      validate();
17904
    }
17905
 
17906
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17907
      validate();
17908
 
17909
      oprot.writeStructBegin(STRUCT_DESC);
17910
      if (this.agentEmailId != null) {
17911
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
17912
        oprot.writeString(this.agentEmailId);
17913
        oprot.writeFieldEnd();
17914
      }
17915
      if (this.password != null) {
17916
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17917
        oprot.writeString(this.password);
17918
        oprot.writeFieldEnd();
17919
      }
17920
      oprot.writeFieldStop();
17921
      oprot.writeStructEnd();
17922
    }
17923
 
17924
    @Override
17925
    public String toString() {
17926
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
17927
      boolean first = true;
17928
 
17929
      sb.append("agentEmailId:");
17930
      if (this.agentEmailId == null) {
17931
        sb.append("null");
17932
      } else {
17933
        sb.append(this.agentEmailId);
17934
      }
17935
      first = false;
17936
      if (!first) sb.append(", ");
17937
      sb.append("password:");
17938
      if (this.password == null) {
17939
        sb.append("null");
17940
      } else {
17941
        sb.append(this.password);
17942
      }
17943
      first = false;
17944
      sb.append(")");
17945
      return sb.toString();
17946
    }
17947
 
17948
    public void validate() throws org.apache.thrift.TException {
17949
      // check for required fields
17950
    }
17951
 
17952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17953
      try {
17954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17955
      } catch (org.apache.thrift.TException te) {
17956
        throw new java.io.IOException(te);
17957
      }
17958
    }
17959
 
17960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17961
      try {
17962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17963
      } catch (org.apache.thrift.TException te) {
17964
        throw new java.io.IOException(te);
17965
      }
17966
    }
17967
 
17968
  }
17969
 
17970
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
17971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
17972
 
17973
 
17974
 
17975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17977
;
17978
 
17979
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17980
 
17981
      static {
17982
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17983
          byName.put(field.getFieldName(), field);
17984
        }
17985
      }
17986
 
17987
      /**
17988
       * Find the _Fields constant that matches fieldId, or null if its not found.
17989
       */
17990
      public static _Fields findByThriftId(int fieldId) {
17991
        switch(fieldId) {
17992
          default:
17993
            return null;
17994
        }
17995
      }
17996
 
17997
      /**
17998
       * Find the _Fields constant that matches fieldId, throwing an exception
17999
       * if it is not found.
18000
       */
18001
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18002
        _Fields fields = findByThriftId(fieldId);
18003
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18004
        return fields;
18005
      }
18006
 
18007
      /**
18008
       * Find the _Fields constant that matches name, or null if its not found.
18009
       */
18010
      public static _Fields findByName(String name) {
18011
        return byName.get(name);
18012
      }
18013
 
18014
      private final short _thriftId;
18015
      private final String _fieldName;
18016
 
18017
      _Fields(short thriftId, String fieldName) {
18018
        _thriftId = thriftId;
18019
        _fieldName = fieldName;
18020
      }
18021
 
18022
      public short getThriftFieldId() {
18023
        return _thriftId;
18024
      }
18025
 
18026
      public String getFieldName() {
18027
        return _fieldName;
18028
      }
18029
    }
18030
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18031
    static {
18032
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18035
    }
18036
 
18037
    public updatePasswordForAgent_result() {
18038
    }
18039
 
18040
    /**
18041
     * Performs a deep copy on <i>other</i>.
18042
     */
18043
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18044
    }
18045
 
18046
    public updatePasswordForAgent_result deepCopy() {
18047
      return new updatePasswordForAgent_result(this);
18048
    }
18049
 
18050
    @Override
18051
    public void clear() {
18052
    }
18053
 
18054
    public void setFieldValue(_Fields field, Object value) {
18055
      switch (field) {
18056
      }
18057
    }
18058
 
18059
    public Object getFieldValue(_Fields field) {
18060
      switch (field) {
18061
      }
18062
      throw new IllegalStateException();
18063
    }
18064
 
18065
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18066
    public boolean isSet(_Fields field) {
18067
      if (field == null) {
18068
        throw new IllegalArgumentException();
18069
      }
18070
 
18071
      switch (field) {
18072
      }
18073
      throw new IllegalStateException();
18074
    }
18075
 
18076
    @Override
18077
    public boolean equals(Object that) {
18078
      if (that == null)
18079
        return false;
18080
      if (that instanceof updatePasswordForAgent_result)
18081
        return this.equals((updatePasswordForAgent_result)that);
18082
      return false;
18083
    }
18084
 
18085
    public boolean equals(updatePasswordForAgent_result that) {
18086
      if (that == null)
18087
        return false;
18088
 
18089
      return true;
18090
    }
18091
 
18092
    @Override
18093
    public int hashCode() {
18094
      return 0;
18095
    }
18096
 
18097
    public int compareTo(updatePasswordForAgent_result other) {
18098
      if (!getClass().equals(other.getClass())) {
18099
        return getClass().getName().compareTo(other.getClass().getName());
18100
      }
18101
 
18102
      int lastComparison = 0;
18103
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18104
 
18105
      return 0;
18106
    }
18107
 
18108
    public _Fields fieldForId(int fieldId) {
18109
      return _Fields.findByThriftId(fieldId);
18110
    }
18111
 
18112
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18113
      org.apache.thrift.protocol.TField field;
18114
      iprot.readStructBegin();
18115
      while (true)
18116
      {
18117
        field = iprot.readFieldBegin();
18118
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18119
          break;
18120
        }
18121
        switch (field.id) {
18122
          default:
18123
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18124
        }
18125
        iprot.readFieldEnd();
18126
      }
18127
      iprot.readStructEnd();
18128
      validate();
18129
    }
18130
 
18131
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18132
      oprot.writeStructBegin(STRUCT_DESC);
18133
 
18134
      oprot.writeFieldStop();
18135
      oprot.writeStructEnd();
18136
    }
18137
 
18138
    @Override
18139
    public String toString() {
18140
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18141
      boolean first = true;
18142
 
18143
      sb.append(")");
18144
      return sb.toString();
18145
    }
18146
 
18147
    public void validate() throws org.apache.thrift.TException {
18148
      // check for required fields
18149
    }
18150
 
18151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18152
      try {
18153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18154
      } catch (org.apache.thrift.TException te) {
18155
        throw new java.io.IOException(te);
18156
      }
18157
    }
18158
 
18159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18160
      try {
18161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18162
      } catch (org.apache.thrift.TException te) {
18163
        throw new java.io.IOException(te);
18164
      }
18165
    }
18166
 
18167
  }
18168
 
18169
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18171
 
18172
    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);
18173
 
18174
    private String agentEmailId; // required
18175
 
18176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18178
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18179
 
18180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18181
 
18182
      static {
18183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18184
          byName.put(field.getFieldName(), field);
18185
        }
18186
      }
18187
 
18188
      /**
18189
       * Find the _Fields constant that matches fieldId, or null if its not found.
18190
       */
18191
      public static _Fields findByThriftId(int fieldId) {
18192
        switch(fieldId) {
18193
          case 1: // AGENT_EMAIL_ID
18194
            return AGENT_EMAIL_ID;
18195
          default:
18196
            return null;
18197
        }
18198
      }
18199
 
18200
      /**
18201
       * Find the _Fields constant that matches fieldId, throwing an exception
18202
       * if it is not found.
18203
       */
18204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18205
        _Fields fields = findByThriftId(fieldId);
18206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18207
        return fields;
18208
      }
18209
 
18210
      /**
18211
       * Find the _Fields constant that matches name, or null if its not found.
18212
       */
18213
      public static _Fields findByName(String name) {
18214
        return byName.get(name);
18215
      }
18216
 
18217
      private final short _thriftId;
18218
      private final String _fieldName;
18219
 
18220
      _Fields(short thriftId, String fieldName) {
18221
        _thriftId = thriftId;
18222
        _fieldName = fieldName;
18223
      }
18224
 
18225
      public short getThriftFieldId() {
18226
        return _thriftId;
18227
      }
18228
 
18229
      public String getFieldName() {
18230
        return _fieldName;
18231
      }
18232
    }
18233
 
18234
    // isset id assignments
18235
 
18236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18237
    static {
18238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18239
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18243
    }
18244
 
18245
    public getRoleNamesForAgent_args() {
18246
    }
18247
 
18248
    public getRoleNamesForAgent_args(
18249
      String agentEmailId)
18250
    {
18251
      this();
18252
      this.agentEmailId = agentEmailId;
18253
    }
18254
 
18255
    /**
18256
     * Performs a deep copy on <i>other</i>.
18257
     */
18258
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18259
      if (other.isSetAgentEmailId()) {
18260
        this.agentEmailId = other.agentEmailId;
18261
      }
18262
    }
18263
 
18264
    public getRoleNamesForAgent_args deepCopy() {
18265
      return new getRoleNamesForAgent_args(this);
18266
    }
18267
 
18268
    @Override
18269
    public void clear() {
18270
      this.agentEmailId = null;
18271
    }
18272
 
18273
    public String getAgentEmailId() {
18274
      return this.agentEmailId;
18275
    }
18276
 
18277
    public void setAgentEmailId(String agentEmailId) {
18278
      this.agentEmailId = agentEmailId;
18279
    }
18280
 
18281
    public void unsetAgentEmailId() {
18282
      this.agentEmailId = null;
18283
    }
18284
 
18285
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18286
    public boolean isSetAgentEmailId() {
18287
      return this.agentEmailId != null;
18288
    }
18289
 
18290
    public void setAgentEmailIdIsSet(boolean value) {
18291
      if (!value) {
18292
        this.agentEmailId = null;
18293
      }
18294
    }
18295
 
18296
    public void setFieldValue(_Fields field, Object value) {
18297
      switch (field) {
18298
      case AGENT_EMAIL_ID:
18299
        if (value == null) {
18300
          unsetAgentEmailId();
18301
        } else {
18302
          setAgentEmailId((String)value);
18303
        }
18304
        break;
18305
 
18306
      }
18307
    }
18308
 
18309
    public Object getFieldValue(_Fields field) {
18310
      switch (field) {
18311
      case AGENT_EMAIL_ID:
18312
        return getAgentEmailId();
18313
 
18314
      }
18315
      throw new IllegalStateException();
18316
    }
18317
 
18318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18319
    public boolean isSet(_Fields field) {
18320
      if (field == null) {
18321
        throw new IllegalArgumentException();
18322
      }
18323
 
18324
      switch (field) {
18325
      case AGENT_EMAIL_ID:
18326
        return isSetAgentEmailId();
18327
      }
18328
      throw new IllegalStateException();
18329
    }
18330
 
18331
    @Override
18332
    public boolean equals(Object that) {
18333
      if (that == null)
18334
        return false;
18335
      if (that instanceof getRoleNamesForAgent_args)
18336
        return this.equals((getRoleNamesForAgent_args)that);
18337
      return false;
18338
    }
18339
 
18340
    public boolean equals(getRoleNamesForAgent_args that) {
18341
      if (that == null)
18342
        return false;
18343
 
18344
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18345
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18346
      if (this_present_agentEmailId || that_present_agentEmailId) {
18347
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18348
          return false;
18349
        if (!this.agentEmailId.equals(that.agentEmailId))
18350
          return false;
18351
      }
18352
 
18353
      return true;
18354
    }
18355
 
18356
    @Override
18357
    public int hashCode() {
18358
      return 0;
18359
    }
18360
 
18361
    public int compareTo(getRoleNamesForAgent_args other) {
18362
      if (!getClass().equals(other.getClass())) {
18363
        return getClass().getName().compareTo(other.getClass().getName());
18364
      }
18365
 
18366
      int lastComparison = 0;
18367
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18368
 
18369
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18370
      if (lastComparison != 0) {
18371
        return lastComparison;
18372
      }
18373
      if (isSetAgentEmailId()) {
18374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18375
        if (lastComparison != 0) {
18376
          return lastComparison;
18377
        }
18378
      }
18379
      return 0;
18380
    }
18381
 
18382
    public _Fields fieldForId(int fieldId) {
18383
      return _Fields.findByThriftId(fieldId);
18384
    }
18385
 
18386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18387
      org.apache.thrift.protocol.TField field;
18388
      iprot.readStructBegin();
18389
      while (true)
18390
      {
18391
        field = iprot.readFieldBegin();
18392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18393
          break;
18394
        }
18395
        switch (field.id) {
18396
          case 1: // AGENT_EMAIL_ID
18397
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18398
              this.agentEmailId = iprot.readString();
18399
            } else { 
18400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18401
            }
18402
            break;
18403
          default:
18404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18405
        }
18406
        iprot.readFieldEnd();
18407
      }
18408
      iprot.readStructEnd();
18409
      validate();
18410
    }
18411
 
18412
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18413
      validate();
18414
 
18415
      oprot.writeStructBegin(STRUCT_DESC);
18416
      if (this.agentEmailId != null) {
18417
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18418
        oprot.writeString(this.agentEmailId);
18419
        oprot.writeFieldEnd();
18420
      }
18421
      oprot.writeFieldStop();
18422
      oprot.writeStructEnd();
18423
    }
18424
 
18425
    @Override
18426
    public String toString() {
18427
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18428
      boolean first = true;
18429
 
18430
      sb.append("agentEmailId:");
18431
      if (this.agentEmailId == null) {
18432
        sb.append("null");
18433
      } else {
18434
        sb.append(this.agentEmailId);
18435
      }
18436
      first = false;
18437
      sb.append(")");
18438
      return sb.toString();
18439
    }
18440
 
18441
    public void validate() throws org.apache.thrift.TException {
18442
      // check for required fields
18443
    }
18444
 
18445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18446
      try {
18447
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18448
      } catch (org.apache.thrift.TException te) {
18449
        throw new java.io.IOException(te);
18450
      }
18451
    }
18452
 
18453
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18454
      try {
18455
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18456
      } catch (org.apache.thrift.TException te) {
18457
        throw new java.io.IOException(te);
18458
      }
18459
    }
18460
 
18461
  }
18462
 
18463
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18464
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18465
 
18466
    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);
18467
 
18468
    private List<String> success; // required
18469
 
18470
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18471
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18472
      SUCCESS((short)0, "success");
18473
 
18474
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18475
 
18476
      static {
18477
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18478
          byName.put(field.getFieldName(), field);
18479
        }
18480
      }
18481
 
18482
      /**
18483
       * Find the _Fields constant that matches fieldId, or null if its not found.
18484
       */
18485
      public static _Fields findByThriftId(int fieldId) {
18486
        switch(fieldId) {
18487
          case 0: // SUCCESS
18488
            return SUCCESS;
18489
          default:
18490
            return null;
18491
        }
18492
      }
18493
 
18494
      /**
18495
       * Find the _Fields constant that matches fieldId, throwing an exception
18496
       * if it is not found.
18497
       */
18498
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18499
        _Fields fields = findByThriftId(fieldId);
18500
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18501
        return fields;
18502
      }
18503
 
18504
      /**
18505
       * Find the _Fields constant that matches name, or null if its not found.
18506
       */
18507
      public static _Fields findByName(String name) {
18508
        return byName.get(name);
18509
      }
18510
 
18511
      private final short _thriftId;
18512
      private final String _fieldName;
18513
 
18514
      _Fields(short thriftId, String fieldName) {
18515
        _thriftId = thriftId;
18516
        _fieldName = fieldName;
18517
      }
18518
 
18519
      public short getThriftFieldId() {
18520
        return _thriftId;
18521
      }
18522
 
18523
      public String getFieldName() {
18524
        return _fieldName;
18525
      }
18526
    }
18527
 
18528
    // isset id assignments
18529
 
18530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18531
    static {
18532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18533
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18534
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18535
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18536
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18537
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18538
    }
18539
 
18540
    public getRoleNamesForAgent_result() {
18541
    }
18542
 
18543
    public getRoleNamesForAgent_result(
18544
      List<String> success)
18545
    {
18546
      this();
18547
      this.success = success;
18548
    }
18549
 
18550
    /**
18551
     * Performs a deep copy on <i>other</i>.
18552
     */
18553
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18554
      if (other.isSetSuccess()) {
18555
        List<String> __this__success = new ArrayList<String>();
18556
        for (String other_element : other.success) {
18557
          __this__success.add(other_element);
18558
        }
18559
        this.success = __this__success;
18560
      }
18561
    }
18562
 
18563
    public getRoleNamesForAgent_result deepCopy() {
18564
      return new getRoleNamesForAgent_result(this);
18565
    }
18566
 
18567
    @Override
18568
    public void clear() {
18569
      this.success = null;
18570
    }
18571
 
18572
    public int getSuccessSize() {
18573
      return (this.success == null) ? 0 : this.success.size();
18574
    }
18575
 
18576
    public java.util.Iterator<String> getSuccessIterator() {
18577
      return (this.success == null) ? null : this.success.iterator();
18578
    }
18579
 
18580
    public void addToSuccess(String elem) {
18581
      if (this.success == null) {
18582
        this.success = new ArrayList<String>();
18583
      }
18584
      this.success.add(elem);
18585
    }
18586
 
18587
    public List<String> getSuccess() {
18588
      return this.success;
18589
    }
18590
 
18591
    public void setSuccess(List<String> success) {
18592
      this.success = success;
18593
    }
18594
 
18595
    public void unsetSuccess() {
18596
      this.success = null;
18597
    }
18598
 
18599
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18600
    public boolean isSetSuccess() {
18601
      return this.success != null;
18602
    }
18603
 
18604
    public void setSuccessIsSet(boolean value) {
18605
      if (!value) {
18606
        this.success = null;
18607
      }
18608
    }
18609
 
18610
    public void setFieldValue(_Fields field, Object value) {
18611
      switch (field) {
18612
      case SUCCESS:
18613
        if (value == null) {
18614
          unsetSuccess();
18615
        } else {
18616
          setSuccess((List<String>)value);
18617
        }
18618
        break;
18619
 
18620
      }
18621
    }
18622
 
18623
    public Object getFieldValue(_Fields field) {
18624
      switch (field) {
18625
      case SUCCESS:
18626
        return getSuccess();
18627
 
18628
      }
18629
      throw new IllegalStateException();
18630
    }
18631
 
18632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18633
    public boolean isSet(_Fields field) {
18634
      if (field == null) {
18635
        throw new IllegalArgumentException();
18636
      }
18637
 
18638
      switch (field) {
18639
      case SUCCESS:
18640
        return isSetSuccess();
18641
      }
18642
      throw new IllegalStateException();
18643
    }
18644
 
18645
    @Override
18646
    public boolean equals(Object that) {
18647
      if (that == null)
18648
        return false;
18649
      if (that instanceof getRoleNamesForAgent_result)
18650
        return this.equals((getRoleNamesForAgent_result)that);
18651
      return false;
18652
    }
18653
 
18654
    public boolean equals(getRoleNamesForAgent_result that) {
18655
      if (that == null)
18656
        return false;
18657
 
18658
      boolean this_present_success = true && this.isSetSuccess();
18659
      boolean that_present_success = true && that.isSetSuccess();
18660
      if (this_present_success || that_present_success) {
18661
        if (!(this_present_success && that_present_success))
18662
          return false;
18663
        if (!this.success.equals(that.success))
18664
          return false;
18665
      }
18666
 
18667
      return true;
18668
    }
18669
 
18670
    @Override
18671
    public int hashCode() {
18672
      return 0;
18673
    }
18674
 
18675
    public int compareTo(getRoleNamesForAgent_result other) {
18676
      if (!getClass().equals(other.getClass())) {
18677
        return getClass().getName().compareTo(other.getClass().getName());
18678
      }
18679
 
18680
      int lastComparison = 0;
18681
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
18682
 
18683
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18684
      if (lastComparison != 0) {
18685
        return lastComparison;
18686
      }
18687
      if (isSetSuccess()) {
18688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18689
        if (lastComparison != 0) {
18690
          return lastComparison;
18691
        }
18692
      }
18693
      return 0;
18694
    }
18695
 
18696
    public _Fields fieldForId(int fieldId) {
18697
      return _Fields.findByThriftId(fieldId);
18698
    }
18699
 
18700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18701
      org.apache.thrift.protocol.TField field;
18702
      iprot.readStructBegin();
18703
      while (true)
18704
      {
18705
        field = iprot.readFieldBegin();
18706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18707
          break;
18708
        }
18709
        switch (field.id) {
18710
          case 0: // SUCCESS
18711
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18712
              {
18713
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
18714
                this.success = new ArrayList<String>(_list29.size);
18715
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
18716
                {
18717
                  String _elem31; // required
18718
                  _elem31 = iprot.readString();
18719
                  this.success.add(_elem31);
18720
                }
18721
                iprot.readListEnd();
18722
              }
18723
            } else { 
18724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18725
            }
18726
            break;
18727
          default:
18728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18729
        }
18730
        iprot.readFieldEnd();
18731
      }
18732
      iprot.readStructEnd();
18733
      validate();
18734
    }
18735
 
18736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18737
      oprot.writeStructBegin(STRUCT_DESC);
18738
 
18739
      if (this.isSetSuccess()) {
18740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18741
        {
18742
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
18743
          for (String _iter32 : this.success)
18744
          {
18745
            oprot.writeString(_iter32);
18746
          }
18747
          oprot.writeListEnd();
18748
        }
18749
        oprot.writeFieldEnd();
18750
      }
18751
      oprot.writeFieldStop();
18752
      oprot.writeStructEnd();
18753
    }
18754
 
18755
    @Override
18756
    public String toString() {
18757
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
18758
      boolean first = true;
18759
 
18760
      sb.append("success:");
18761
      if (this.success == null) {
18762
        sb.append("null");
18763
      } else {
18764
        sb.append(this.success);
18765
      }
18766
      first = false;
18767
      sb.append(")");
18768
      return sb.toString();
18769
    }
18770
 
18771
    public void validate() throws org.apache.thrift.TException {
18772
      // check for required fields
18773
    }
18774
 
18775
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18776
      try {
18777
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18778
      } catch (org.apache.thrift.TException te) {
18779
        throw new java.io.IOException(te);
18780
      }
18781
    }
18782
 
18783
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18784
      try {
18785
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18786
      } catch (org.apache.thrift.TException te) {
18787
        throw new java.io.IOException(te);
18788
      }
18789
    }
18790
 
18791
  }
18792
 
18793
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
18794
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
18795
 
18796
    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);
18797
 
18798
    private String roleName; // required
18799
 
18800
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18801
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18802
      ROLE_NAME((short)1, "roleName");
18803
 
18804
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18805
 
18806
      static {
18807
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18808
          byName.put(field.getFieldName(), field);
18809
        }
18810
      }
18811
 
18812
      /**
18813
       * Find the _Fields constant that matches fieldId, or null if its not found.
18814
       */
18815
      public static _Fields findByThriftId(int fieldId) {
18816
        switch(fieldId) {
18817
          case 1: // ROLE_NAME
18818
            return ROLE_NAME;
18819
          default:
18820
            return null;
18821
        }
18822
      }
18823
 
18824
      /**
18825
       * Find the _Fields constant that matches fieldId, throwing an exception
18826
       * if it is not found.
18827
       */
18828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18829
        _Fields fields = findByThriftId(fieldId);
18830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18831
        return fields;
18832
      }
18833
 
18834
      /**
18835
       * Find the _Fields constant that matches name, or null if its not found.
18836
       */
18837
      public static _Fields findByName(String name) {
18838
        return byName.get(name);
18839
      }
18840
 
18841
      private final short _thriftId;
18842
      private final String _fieldName;
18843
 
18844
      _Fields(short thriftId, String fieldName) {
18845
        _thriftId = thriftId;
18846
        _fieldName = fieldName;
18847
      }
18848
 
18849
      public short getThriftFieldId() {
18850
        return _thriftId;
18851
      }
18852
 
18853
      public String getFieldName() {
18854
        return _fieldName;
18855
      }
18856
    }
18857
 
18858
    // isset id assignments
18859
 
18860
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18861
    static {
18862
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18863
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18864
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18865
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18866
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
18867
    }
18868
 
18869
    public getPermissionsForRoleName_args() {
18870
    }
18871
 
18872
    public getPermissionsForRoleName_args(
18873
      String roleName)
18874
    {
18875
      this();
18876
      this.roleName = roleName;
18877
    }
18878
 
18879
    /**
18880
     * Performs a deep copy on <i>other</i>.
18881
     */
18882
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
18883
      if (other.isSetRoleName()) {
18884
        this.roleName = other.roleName;
18885
      }
18886
    }
18887
 
18888
    public getPermissionsForRoleName_args deepCopy() {
18889
      return new getPermissionsForRoleName_args(this);
18890
    }
18891
 
18892
    @Override
18893
    public void clear() {
18894
      this.roleName = null;
18895
    }
18896
 
18897
    public String getRoleName() {
18898
      return this.roleName;
18899
    }
18900
 
18901
    public void setRoleName(String roleName) {
18902
      this.roleName = roleName;
18903
    }
18904
 
18905
    public void unsetRoleName() {
18906
      this.roleName = null;
18907
    }
18908
 
18909
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
18910
    public boolean isSetRoleName() {
18911
      return this.roleName != null;
18912
    }
18913
 
18914
    public void setRoleNameIsSet(boolean value) {
18915
      if (!value) {
18916
        this.roleName = null;
18917
      }
18918
    }
18919
 
18920
    public void setFieldValue(_Fields field, Object value) {
18921
      switch (field) {
18922
      case ROLE_NAME:
18923
        if (value == null) {
18924
          unsetRoleName();
18925
        } else {
18926
          setRoleName((String)value);
18927
        }
18928
        break;
18929
 
18930
      }
18931
    }
18932
 
18933
    public Object getFieldValue(_Fields field) {
18934
      switch (field) {
18935
      case ROLE_NAME:
18936
        return getRoleName();
18937
 
18938
      }
18939
      throw new IllegalStateException();
18940
    }
18941
 
18942
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18943
    public boolean isSet(_Fields field) {
18944
      if (field == null) {
18945
        throw new IllegalArgumentException();
18946
      }
18947
 
18948
      switch (field) {
18949
      case ROLE_NAME:
18950
        return isSetRoleName();
18951
      }
18952
      throw new IllegalStateException();
18953
    }
18954
 
18955
    @Override
18956
    public boolean equals(Object that) {
18957
      if (that == null)
18958
        return false;
18959
      if (that instanceof getPermissionsForRoleName_args)
18960
        return this.equals((getPermissionsForRoleName_args)that);
18961
      return false;
18962
    }
18963
 
18964
    public boolean equals(getPermissionsForRoleName_args that) {
18965
      if (that == null)
18966
        return false;
18967
 
18968
      boolean this_present_roleName = true && this.isSetRoleName();
18969
      boolean that_present_roleName = true && that.isSetRoleName();
18970
      if (this_present_roleName || that_present_roleName) {
18971
        if (!(this_present_roleName && that_present_roleName))
18972
          return false;
18973
        if (!this.roleName.equals(that.roleName))
18974
          return false;
18975
      }
18976
 
18977
      return true;
18978
    }
18979
 
18980
    @Override
18981
    public int hashCode() {
18982
      return 0;
18983
    }
18984
 
18985
    public int compareTo(getPermissionsForRoleName_args other) {
18986
      if (!getClass().equals(other.getClass())) {
18987
        return getClass().getName().compareTo(other.getClass().getName());
18988
      }
18989
 
18990
      int lastComparison = 0;
18991
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
18992
 
18993
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
18994
      if (lastComparison != 0) {
18995
        return lastComparison;
18996
      }
18997
      if (isSetRoleName()) {
18998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
18999
        if (lastComparison != 0) {
19000
          return lastComparison;
19001
        }
19002
      }
19003
      return 0;
19004
    }
19005
 
19006
    public _Fields fieldForId(int fieldId) {
19007
      return _Fields.findByThriftId(fieldId);
19008
    }
19009
 
19010
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19011
      org.apache.thrift.protocol.TField field;
19012
      iprot.readStructBegin();
19013
      while (true)
19014
      {
19015
        field = iprot.readFieldBegin();
19016
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19017
          break;
19018
        }
19019
        switch (field.id) {
19020
          case 1: // ROLE_NAME
19021
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19022
              this.roleName = iprot.readString();
19023
            } else { 
19024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19025
            }
19026
            break;
19027
          default:
19028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19029
        }
19030
        iprot.readFieldEnd();
19031
      }
19032
      iprot.readStructEnd();
19033
      validate();
19034
    }
19035
 
19036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19037
      validate();
19038
 
19039
      oprot.writeStructBegin(STRUCT_DESC);
19040
      if (this.roleName != null) {
19041
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19042
        oprot.writeString(this.roleName);
19043
        oprot.writeFieldEnd();
19044
      }
19045
      oprot.writeFieldStop();
19046
      oprot.writeStructEnd();
19047
    }
19048
 
19049
    @Override
19050
    public String toString() {
19051
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19052
      boolean first = true;
19053
 
19054
      sb.append("roleName:");
19055
      if (this.roleName == null) {
19056
        sb.append("null");
19057
      } else {
19058
        sb.append(this.roleName);
19059
      }
19060
      first = false;
19061
      sb.append(")");
19062
      return sb.toString();
19063
    }
19064
 
19065
    public void validate() throws org.apache.thrift.TException {
19066
      // check for required fields
19067
    }
19068
 
19069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19070
      try {
19071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19072
      } catch (org.apache.thrift.TException te) {
19073
        throw new java.io.IOException(te);
19074
      }
19075
    }
19076
 
19077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19078
      try {
19079
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19080
      } catch (org.apache.thrift.TException te) {
19081
        throw new java.io.IOException(te);
19082
      }
19083
    }
19084
 
19085
  }
19086
 
19087
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19088
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19089
 
19090
    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);
19091
 
19092
    private List<String> success; // required
19093
 
19094
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19095
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19096
      SUCCESS((short)0, "success");
19097
 
19098
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19099
 
19100
      static {
19101
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19102
          byName.put(field.getFieldName(), field);
19103
        }
19104
      }
19105
 
19106
      /**
19107
       * Find the _Fields constant that matches fieldId, or null if its not found.
19108
       */
19109
      public static _Fields findByThriftId(int fieldId) {
19110
        switch(fieldId) {
19111
          case 0: // SUCCESS
19112
            return SUCCESS;
19113
          default:
19114
            return null;
19115
        }
19116
      }
19117
 
19118
      /**
19119
       * Find the _Fields constant that matches fieldId, throwing an exception
19120
       * if it is not found.
19121
       */
19122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19123
        _Fields fields = findByThriftId(fieldId);
19124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19125
        return fields;
19126
      }
19127
 
19128
      /**
19129
       * Find the _Fields constant that matches name, or null if its not found.
19130
       */
19131
      public static _Fields findByName(String name) {
19132
        return byName.get(name);
19133
      }
19134
 
19135
      private final short _thriftId;
19136
      private final String _fieldName;
19137
 
19138
      _Fields(short thriftId, String fieldName) {
19139
        _thriftId = thriftId;
19140
        _fieldName = fieldName;
19141
      }
19142
 
19143
      public short getThriftFieldId() {
19144
        return _thriftId;
19145
      }
19146
 
19147
      public String getFieldName() {
19148
        return _fieldName;
19149
      }
19150
    }
19151
 
19152
    // isset id assignments
19153
 
19154
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19155
    static {
19156
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19157
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19158
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19159
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19162
    }
19163
 
19164
    public getPermissionsForRoleName_result() {
19165
    }
19166
 
19167
    public getPermissionsForRoleName_result(
19168
      List<String> success)
19169
    {
19170
      this();
19171
      this.success = success;
19172
    }
19173
 
19174
    /**
19175
     * Performs a deep copy on <i>other</i>.
19176
     */
19177
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19178
      if (other.isSetSuccess()) {
19179
        List<String> __this__success = new ArrayList<String>();
19180
        for (String other_element : other.success) {
19181
          __this__success.add(other_element);
19182
        }
19183
        this.success = __this__success;
19184
      }
19185
    }
19186
 
19187
    public getPermissionsForRoleName_result deepCopy() {
19188
      return new getPermissionsForRoleName_result(this);
19189
    }
19190
 
19191
    @Override
19192
    public void clear() {
19193
      this.success = null;
19194
    }
19195
 
19196
    public int getSuccessSize() {
19197
      return (this.success == null) ? 0 : this.success.size();
19198
    }
19199
 
19200
    public java.util.Iterator<String> getSuccessIterator() {
19201
      return (this.success == null) ? null : this.success.iterator();
19202
    }
19203
 
19204
    public void addToSuccess(String elem) {
19205
      if (this.success == null) {
19206
        this.success = new ArrayList<String>();
19207
      }
19208
      this.success.add(elem);
19209
    }
19210
 
19211
    public List<String> getSuccess() {
19212
      return this.success;
19213
    }
19214
 
19215
    public void setSuccess(List<String> success) {
19216
      this.success = success;
19217
    }
19218
 
19219
    public void unsetSuccess() {
19220
      this.success = null;
19221
    }
19222
 
19223
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19224
    public boolean isSetSuccess() {
19225
      return this.success != null;
19226
    }
19227
 
19228
    public void setSuccessIsSet(boolean value) {
19229
      if (!value) {
19230
        this.success = null;
19231
      }
19232
    }
19233
 
19234
    public void setFieldValue(_Fields field, Object value) {
19235
      switch (field) {
19236
      case SUCCESS:
19237
        if (value == null) {
19238
          unsetSuccess();
19239
        } else {
19240
          setSuccess((List<String>)value);
19241
        }
19242
        break;
19243
 
19244
      }
19245
    }
19246
 
19247
    public Object getFieldValue(_Fields field) {
19248
      switch (field) {
19249
      case SUCCESS:
19250
        return getSuccess();
19251
 
19252
      }
19253
      throw new IllegalStateException();
19254
    }
19255
 
19256
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19257
    public boolean isSet(_Fields field) {
19258
      if (field == null) {
19259
        throw new IllegalArgumentException();
19260
      }
19261
 
19262
      switch (field) {
19263
      case SUCCESS:
19264
        return isSetSuccess();
19265
      }
19266
      throw new IllegalStateException();
19267
    }
19268
 
19269
    @Override
19270
    public boolean equals(Object that) {
19271
      if (that == null)
19272
        return false;
19273
      if (that instanceof getPermissionsForRoleName_result)
19274
        return this.equals((getPermissionsForRoleName_result)that);
19275
      return false;
19276
    }
19277
 
19278
    public boolean equals(getPermissionsForRoleName_result that) {
19279
      if (that == null)
19280
        return false;
19281
 
19282
      boolean this_present_success = true && this.isSetSuccess();
19283
      boolean that_present_success = true && that.isSetSuccess();
19284
      if (this_present_success || that_present_success) {
19285
        if (!(this_present_success && that_present_success))
19286
          return false;
19287
        if (!this.success.equals(that.success))
19288
          return false;
19289
      }
19290
 
19291
      return true;
19292
    }
19293
 
19294
    @Override
19295
    public int hashCode() {
19296
      return 0;
19297
    }
19298
 
19299
    public int compareTo(getPermissionsForRoleName_result other) {
19300
      if (!getClass().equals(other.getClass())) {
19301
        return getClass().getName().compareTo(other.getClass().getName());
19302
      }
19303
 
19304
      int lastComparison = 0;
19305
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19306
 
19307
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19308
      if (lastComparison != 0) {
19309
        return lastComparison;
19310
      }
19311
      if (isSetSuccess()) {
19312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19313
        if (lastComparison != 0) {
19314
          return lastComparison;
19315
        }
19316
      }
19317
      return 0;
19318
    }
19319
 
19320
    public _Fields fieldForId(int fieldId) {
19321
      return _Fields.findByThriftId(fieldId);
19322
    }
19323
 
19324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19325
      org.apache.thrift.protocol.TField field;
19326
      iprot.readStructBegin();
19327
      while (true)
19328
      {
19329
        field = iprot.readFieldBegin();
19330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19331
          break;
19332
        }
19333
        switch (field.id) {
19334
          case 0: // SUCCESS
19335
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19336
              {
19337
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
19338
                this.success = new ArrayList<String>(_list33.size);
19339
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19340
                {
19341
                  String _elem35; // required
19342
                  _elem35 = iprot.readString();
19343
                  this.success.add(_elem35);
19344
                }
19345
                iprot.readListEnd();
19346
              }
19347
            } else { 
19348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19349
            }
19350
            break;
19351
          default:
19352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19353
        }
19354
        iprot.readFieldEnd();
19355
      }
19356
      iprot.readStructEnd();
19357
      validate();
19358
    }
19359
 
19360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19361
      oprot.writeStructBegin(STRUCT_DESC);
19362
 
19363
      if (this.isSetSuccess()) {
19364
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19365
        {
19366
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19367
          for (String _iter36 : this.success)
19368
          {
19369
            oprot.writeString(_iter36);
19370
          }
19371
          oprot.writeListEnd();
19372
        }
19373
        oprot.writeFieldEnd();
19374
      }
19375
      oprot.writeFieldStop();
19376
      oprot.writeStructEnd();
19377
    }
19378
 
19379
    @Override
19380
    public String toString() {
19381
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19382
      boolean first = true;
19383
 
19384
      sb.append("success:");
19385
      if (this.success == null) {
19386
        sb.append("null");
19387
      } else {
19388
        sb.append(this.success);
19389
      }
19390
      first = false;
19391
      sb.append(")");
19392
      return sb.toString();
19393
    }
19394
 
19395
    public void validate() throws org.apache.thrift.TException {
19396
      // check for required fields
19397
    }
19398
 
19399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19400
      try {
19401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19402
      } catch (org.apache.thrift.TException te) {
19403
        throw new java.io.IOException(te);
19404
      }
19405
    }
19406
 
19407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19408
      try {
19409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19410
      } catch (org.apache.thrift.TException te) {
19411
        throw new java.io.IOException(te);
19412
      }
19413
    }
19414
 
19415
  }
19416
 
4806 varun.gupt 19417
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19419
 
19420
    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);
19421
    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);
19422
 
19423
    private String url; // required
19424
    private String text; // required
19425
 
19426
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19427
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19428
      URL((short)1, "url"),
19429
      TEXT((short)2, "text");
19430
 
19431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19432
 
19433
      static {
19434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19435
          byName.put(field.getFieldName(), field);
19436
        }
19437
      }
19438
 
19439
      /**
19440
       * Find the _Fields constant that matches fieldId, or null if its not found.
19441
       */
19442
      public static _Fields findByThriftId(int fieldId) {
19443
        switch(fieldId) {
19444
          case 1: // URL
19445
            return URL;
19446
          case 2: // TEXT
19447
            return TEXT;
19448
          default:
19449
            return null;
19450
        }
19451
      }
19452
 
19453
      /**
19454
       * Find the _Fields constant that matches fieldId, throwing an exception
19455
       * if it is not found.
19456
       */
19457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19458
        _Fields fields = findByThriftId(fieldId);
19459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19460
        return fields;
19461
      }
19462
 
19463
      /**
19464
       * Find the _Fields constant that matches name, or null if its not found.
19465
       */
19466
      public static _Fields findByName(String name) {
19467
        return byName.get(name);
19468
      }
19469
 
19470
      private final short _thriftId;
19471
      private final String _fieldName;
19472
 
19473
      _Fields(short thriftId, String fieldName) {
19474
        _thriftId = thriftId;
19475
        _fieldName = fieldName;
19476
      }
19477
 
19478
      public short getThriftFieldId() {
19479
        return _thriftId;
19480
      }
19481
 
19482
      public String getFieldName() {
19483
        return _fieldName;
19484
      }
19485
    }
19486
 
19487
    // isset id assignments
19488
 
19489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19490
    static {
19491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19492
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19493
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19494
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19498
    }
19499
 
19500
    public saveQuickLink_args() {
19501
    }
19502
 
19503
    public saveQuickLink_args(
19504
      String url,
19505
      String text)
19506
    {
19507
      this();
19508
      this.url = url;
19509
      this.text = text;
19510
    }
19511
 
19512
    /**
19513
     * Performs a deep copy on <i>other</i>.
19514
     */
19515
    public saveQuickLink_args(saveQuickLink_args other) {
19516
      if (other.isSetUrl()) {
19517
        this.url = other.url;
19518
      }
19519
      if (other.isSetText()) {
19520
        this.text = other.text;
19521
      }
19522
    }
19523
 
19524
    public saveQuickLink_args deepCopy() {
19525
      return new saveQuickLink_args(this);
19526
    }
19527
 
19528
    @Override
19529
    public void clear() {
19530
      this.url = null;
19531
      this.text = null;
19532
    }
19533
 
19534
    public String getUrl() {
19535
      return this.url;
19536
    }
19537
 
19538
    public void setUrl(String url) {
19539
      this.url = url;
19540
    }
19541
 
19542
    public void unsetUrl() {
19543
      this.url = null;
19544
    }
19545
 
19546
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19547
    public boolean isSetUrl() {
19548
      return this.url != null;
19549
    }
19550
 
19551
    public void setUrlIsSet(boolean value) {
19552
      if (!value) {
19553
        this.url = null;
19554
      }
19555
    }
19556
 
19557
    public String getText() {
19558
      return this.text;
19559
    }
19560
 
19561
    public void setText(String text) {
19562
      this.text = text;
19563
    }
19564
 
19565
    public void unsetText() {
19566
      this.text = null;
19567
    }
19568
 
19569
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19570
    public boolean isSetText() {
19571
      return this.text != null;
19572
    }
19573
 
19574
    public void setTextIsSet(boolean value) {
19575
      if (!value) {
19576
        this.text = null;
19577
      }
19578
    }
19579
 
19580
    public void setFieldValue(_Fields field, Object value) {
19581
      switch (field) {
19582
      case URL:
19583
        if (value == null) {
19584
          unsetUrl();
19585
        } else {
19586
          setUrl((String)value);
19587
        }
19588
        break;
19589
 
19590
      case TEXT:
19591
        if (value == null) {
19592
          unsetText();
19593
        } else {
19594
          setText((String)value);
19595
        }
19596
        break;
19597
 
19598
      }
19599
    }
19600
 
19601
    public Object getFieldValue(_Fields field) {
19602
      switch (field) {
19603
      case URL:
19604
        return getUrl();
19605
 
19606
      case TEXT:
19607
        return getText();
19608
 
19609
      }
19610
      throw new IllegalStateException();
19611
    }
19612
 
19613
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19614
    public boolean isSet(_Fields field) {
19615
      if (field == null) {
19616
        throw new IllegalArgumentException();
19617
      }
19618
 
19619
      switch (field) {
19620
      case URL:
19621
        return isSetUrl();
19622
      case TEXT:
19623
        return isSetText();
19624
      }
19625
      throw new IllegalStateException();
19626
    }
19627
 
19628
    @Override
19629
    public boolean equals(Object that) {
19630
      if (that == null)
19631
        return false;
19632
      if (that instanceof saveQuickLink_args)
19633
        return this.equals((saveQuickLink_args)that);
19634
      return false;
19635
    }
19636
 
19637
    public boolean equals(saveQuickLink_args that) {
19638
      if (that == null)
19639
        return false;
19640
 
19641
      boolean this_present_url = true && this.isSetUrl();
19642
      boolean that_present_url = true && that.isSetUrl();
19643
      if (this_present_url || that_present_url) {
19644
        if (!(this_present_url && that_present_url))
19645
          return false;
19646
        if (!this.url.equals(that.url))
19647
          return false;
19648
      }
19649
 
19650
      boolean this_present_text = true && this.isSetText();
19651
      boolean that_present_text = true && that.isSetText();
19652
      if (this_present_text || that_present_text) {
19653
        if (!(this_present_text && that_present_text))
19654
          return false;
19655
        if (!this.text.equals(that.text))
19656
          return false;
19657
      }
19658
 
19659
      return true;
19660
    }
19661
 
19662
    @Override
19663
    public int hashCode() {
19664
      return 0;
19665
    }
19666
 
19667
    public int compareTo(saveQuickLink_args other) {
19668
      if (!getClass().equals(other.getClass())) {
19669
        return getClass().getName().compareTo(other.getClass().getName());
19670
      }
19671
 
19672
      int lastComparison = 0;
19673
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
19674
 
19675
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
19676
      if (lastComparison != 0) {
19677
        return lastComparison;
19678
      }
19679
      if (isSetUrl()) {
19680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
19681
        if (lastComparison != 0) {
19682
          return lastComparison;
19683
        }
19684
      }
19685
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
19686
      if (lastComparison != 0) {
19687
        return lastComparison;
19688
      }
19689
      if (isSetText()) {
19690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
19691
        if (lastComparison != 0) {
19692
          return lastComparison;
19693
        }
19694
      }
19695
      return 0;
19696
    }
19697
 
19698
    public _Fields fieldForId(int fieldId) {
19699
      return _Fields.findByThriftId(fieldId);
19700
    }
19701
 
19702
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19703
      org.apache.thrift.protocol.TField field;
19704
      iprot.readStructBegin();
19705
      while (true)
19706
      {
19707
        field = iprot.readFieldBegin();
19708
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19709
          break;
19710
        }
19711
        switch (field.id) {
19712
          case 1: // URL
19713
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19714
              this.url = iprot.readString();
19715
            } else { 
19716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19717
            }
19718
            break;
19719
          case 2: // TEXT
19720
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19721
              this.text = iprot.readString();
19722
            } else { 
19723
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19724
            }
19725
            break;
19726
          default:
19727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19728
        }
19729
        iprot.readFieldEnd();
19730
      }
19731
      iprot.readStructEnd();
19732
      validate();
19733
    }
19734
 
19735
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19736
      validate();
19737
 
19738
      oprot.writeStructBegin(STRUCT_DESC);
19739
      if (this.url != null) {
19740
        oprot.writeFieldBegin(URL_FIELD_DESC);
19741
        oprot.writeString(this.url);
19742
        oprot.writeFieldEnd();
19743
      }
19744
      if (this.text != null) {
19745
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
19746
        oprot.writeString(this.text);
19747
        oprot.writeFieldEnd();
19748
      }
19749
      oprot.writeFieldStop();
19750
      oprot.writeStructEnd();
19751
    }
19752
 
19753
    @Override
19754
    public String toString() {
19755
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
19756
      boolean first = true;
19757
 
19758
      sb.append("url:");
19759
      if (this.url == null) {
19760
        sb.append("null");
19761
      } else {
19762
        sb.append(this.url);
19763
      }
19764
      first = false;
19765
      if (!first) sb.append(", ");
19766
      sb.append("text:");
19767
      if (this.text == null) {
19768
        sb.append("null");
19769
      } else {
19770
        sb.append(this.text);
19771
      }
19772
      first = false;
19773
      sb.append(")");
19774
      return sb.toString();
19775
    }
19776
 
19777
    public void validate() throws org.apache.thrift.TException {
19778
      // check for required fields
19779
    }
19780
 
19781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19782
      try {
19783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19784
      } catch (org.apache.thrift.TException te) {
19785
        throw new java.io.IOException(te);
19786
      }
19787
    }
19788
 
19789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19790
      try {
19791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19792
      } catch (org.apache.thrift.TException te) {
19793
        throw new java.io.IOException(te);
19794
      }
19795
    }
19796
 
19797
  }
19798
 
19799
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
19800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
19801
 
19802
    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);
19803
 
19804
    private HelperServiceException hse; // required
19805
 
19806
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19807
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19808
      HSE((short)1, "hse");
19809
 
19810
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19811
 
19812
      static {
19813
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19814
          byName.put(field.getFieldName(), field);
19815
        }
19816
      }
19817
 
19818
      /**
19819
       * Find the _Fields constant that matches fieldId, or null if its not found.
19820
       */
19821
      public static _Fields findByThriftId(int fieldId) {
19822
        switch(fieldId) {
19823
          case 1: // HSE
19824
            return HSE;
19825
          default:
19826
            return null;
19827
        }
19828
      }
19829
 
19830
      /**
19831
       * Find the _Fields constant that matches fieldId, throwing an exception
19832
       * if it is not found.
19833
       */
19834
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19835
        _Fields fields = findByThriftId(fieldId);
19836
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19837
        return fields;
19838
      }
19839
 
19840
      /**
19841
       * Find the _Fields constant that matches name, or null if its not found.
19842
       */
19843
      public static _Fields findByName(String name) {
19844
        return byName.get(name);
19845
      }
19846
 
19847
      private final short _thriftId;
19848
      private final String _fieldName;
19849
 
19850
      _Fields(short thriftId, String fieldName) {
19851
        _thriftId = thriftId;
19852
        _fieldName = fieldName;
19853
      }
19854
 
19855
      public short getThriftFieldId() {
19856
        return _thriftId;
19857
      }
19858
 
19859
      public String getFieldName() {
19860
        return _fieldName;
19861
      }
19862
    }
19863
 
19864
    // isset id assignments
19865
 
19866
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19867
    static {
19868
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19869
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19870
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19871
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19872
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
19873
    }
19874
 
19875
    public saveQuickLink_result() {
19876
    }
19877
 
19878
    public saveQuickLink_result(
19879
      HelperServiceException hse)
19880
    {
19881
      this();
19882
      this.hse = hse;
19883
    }
19884
 
19885
    /**
19886
     * Performs a deep copy on <i>other</i>.
19887
     */
19888
    public saveQuickLink_result(saveQuickLink_result other) {
19889
      if (other.isSetHse()) {
19890
        this.hse = new HelperServiceException(other.hse);
19891
      }
19892
    }
19893
 
19894
    public saveQuickLink_result deepCopy() {
19895
      return new saveQuickLink_result(this);
19896
    }
19897
 
19898
    @Override
19899
    public void clear() {
19900
      this.hse = null;
19901
    }
19902
 
19903
    public HelperServiceException getHse() {
19904
      return this.hse;
19905
    }
19906
 
19907
    public void setHse(HelperServiceException hse) {
19908
      this.hse = hse;
19909
    }
19910
 
19911
    public void unsetHse() {
19912
      this.hse = null;
19913
    }
19914
 
19915
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
19916
    public boolean isSetHse() {
19917
      return this.hse != null;
19918
    }
19919
 
19920
    public void setHseIsSet(boolean value) {
19921
      if (!value) {
19922
        this.hse = null;
19923
      }
19924
    }
19925
 
19926
    public void setFieldValue(_Fields field, Object value) {
19927
      switch (field) {
19928
      case HSE:
19929
        if (value == null) {
19930
          unsetHse();
19931
        } else {
19932
          setHse((HelperServiceException)value);
19933
        }
19934
        break;
19935
 
19936
      }
19937
    }
19938
 
19939
    public Object getFieldValue(_Fields field) {
19940
      switch (field) {
19941
      case HSE:
19942
        return getHse();
19943
 
19944
      }
19945
      throw new IllegalStateException();
19946
    }
19947
 
19948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19949
    public boolean isSet(_Fields field) {
19950
      if (field == null) {
19951
        throw new IllegalArgumentException();
19952
      }
19953
 
19954
      switch (field) {
19955
      case HSE:
19956
        return isSetHse();
19957
      }
19958
      throw new IllegalStateException();
19959
    }
19960
 
19961
    @Override
19962
    public boolean equals(Object that) {
19963
      if (that == null)
19964
        return false;
19965
      if (that instanceof saveQuickLink_result)
19966
        return this.equals((saveQuickLink_result)that);
19967
      return false;
19968
    }
19969
 
19970
    public boolean equals(saveQuickLink_result that) {
19971
      if (that == null)
19972
        return false;
19973
 
19974
      boolean this_present_hse = true && this.isSetHse();
19975
      boolean that_present_hse = true && that.isSetHse();
19976
      if (this_present_hse || that_present_hse) {
19977
        if (!(this_present_hse && that_present_hse))
19978
          return false;
19979
        if (!this.hse.equals(that.hse))
19980
          return false;
19981
      }
19982
 
19983
      return true;
19984
    }
19985
 
19986
    @Override
19987
    public int hashCode() {
19988
      return 0;
19989
    }
19990
 
19991
    public int compareTo(saveQuickLink_result other) {
19992
      if (!getClass().equals(other.getClass())) {
19993
        return getClass().getName().compareTo(other.getClass().getName());
19994
      }
19995
 
19996
      int lastComparison = 0;
19997
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
19998
 
19999
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20000
      if (lastComparison != 0) {
20001
        return lastComparison;
20002
      }
20003
      if (isSetHse()) {
20004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20005
        if (lastComparison != 0) {
20006
          return lastComparison;
20007
        }
20008
      }
20009
      return 0;
20010
    }
20011
 
20012
    public _Fields fieldForId(int fieldId) {
20013
      return _Fields.findByThriftId(fieldId);
20014
    }
20015
 
20016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20017
      org.apache.thrift.protocol.TField field;
20018
      iprot.readStructBegin();
20019
      while (true)
20020
      {
20021
        field = iprot.readFieldBegin();
20022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20023
          break;
20024
        }
20025
        switch (field.id) {
20026
          case 1: // HSE
20027
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20028
              this.hse = new HelperServiceException();
20029
              this.hse.read(iprot);
20030
            } else { 
20031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20032
            }
20033
            break;
20034
          default:
20035
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20036
        }
20037
        iprot.readFieldEnd();
20038
      }
20039
      iprot.readStructEnd();
20040
      validate();
20041
    }
20042
 
20043
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20044
      oprot.writeStructBegin(STRUCT_DESC);
20045
 
20046
      if (this.isSetHse()) {
20047
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20048
        this.hse.write(oprot);
20049
        oprot.writeFieldEnd();
20050
      }
20051
      oprot.writeFieldStop();
20052
      oprot.writeStructEnd();
20053
    }
20054
 
20055
    @Override
20056
    public String toString() {
20057
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20058
      boolean first = true;
20059
 
20060
      sb.append("hse:");
20061
      if (this.hse == null) {
20062
        sb.append("null");
20063
      } else {
20064
        sb.append(this.hse);
20065
      }
20066
      first = false;
20067
      sb.append(")");
20068
      return sb.toString();
20069
    }
20070
 
20071
    public void validate() throws org.apache.thrift.TException {
20072
      // check for required fields
20073
    }
20074
 
20075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20076
      try {
20077
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20078
      } catch (org.apache.thrift.TException te) {
20079
        throw new java.io.IOException(te);
20080
      }
20081
    }
20082
 
20083
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20084
      try {
20085
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20086
      } catch (org.apache.thrift.TException te) {
20087
        throw new java.io.IOException(te);
20088
      }
20089
    }
20090
 
20091
  }
20092
 
20093
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20094
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20095
 
20096
 
20097
 
20098
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20099
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20100
;
20101
 
20102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20103
 
20104
      static {
20105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20106
          byName.put(field.getFieldName(), field);
20107
        }
20108
      }
20109
 
20110
      /**
20111
       * Find the _Fields constant that matches fieldId, or null if its not found.
20112
       */
20113
      public static _Fields findByThriftId(int fieldId) {
20114
        switch(fieldId) {
20115
          default:
20116
            return null;
20117
        }
20118
      }
20119
 
20120
      /**
20121
       * Find the _Fields constant that matches fieldId, throwing an exception
20122
       * if it is not found.
20123
       */
20124
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20125
        _Fields fields = findByThriftId(fieldId);
20126
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20127
        return fields;
20128
      }
20129
 
20130
      /**
20131
       * Find the _Fields constant that matches name, or null if its not found.
20132
       */
20133
      public static _Fields findByName(String name) {
20134
        return byName.get(name);
20135
      }
20136
 
20137
      private final short _thriftId;
20138
      private final String _fieldName;
20139
 
20140
      _Fields(short thriftId, String fieldName) {
20141
        _thriftId = thriftId;
20142
        _fieldName = fieldName;
20143
      }
20144
 
20145
      public short getThriftFieldId() {
20146
        return _thriftId;
20147
      }
20148
 
20149
      public String getFieldName() {
20150
        return _fieldName;
20151
      }
20152
    }
20153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20154
    static {
20155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20156
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20157
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20158
    }
20159
 
20160
    public getQuickLinks_args() {
20161
    }
20162
 
20163
    /**
20164
     * Performs a deep copy on <i>other</i>.
20165
     */
20166
    public getQuickLinks_args(getQuickLinks_args other) {
20167
    }
20168
 
20169
    public getQuickLinks_args deepCopy() {
20170
      return new getQuickLinks_args(this);
20171
    }
20172
 
20173
    @Override
20174
    public void clear() {
20175
    }
20176
 
20177
    public void setFieldValue(_Fields field, Object value) {
20178
      switch (field) {
20179
      }
20180
    }
20181
 
20182
    public Object getFieldValue(_Fields field) {
20183
      switch (field) {
20184
      }
20185
      throw new IllegalStateException();
20186
    }
20187
 
20188
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20189
    public boolean isSet(_Fields field) {
20190
      if (field == null) {
20191
        throw new IllegalArgumentException();
20192
      }
20193
 
20194
      switch (field) {
20195
      }
20196
      throw new IllegalStateException();
20197
    }
20198
 
20199
    @Override
20200
    public boolean equals(Object that) {
20201
      if (that == null)
20202
        return false;
20203
      if (that instanceof getQuickLinks_args)
20204
        return this.equals((getQuickLinks_args)that);
20205
      return false;
20206
    }
20207
 
20208
    public boolean equals(getQuickLinks_args that) {
20209
      if (that == null)
20210
        return false;
20211
 
20212
      return true;
20213
    }
20214
 
20215
    @Override
20216
    public int hashCode() {
20217
      return 0;
20218
    }
20219
 
20220
    public int compareTo(getQuickLinks_args other) {
20221
      if (!getClass().equals(other.getClass())) {
20222
        return getClass().getName().compareTo(other.getClass().getName());
20223
      }
20224
 
20225
      int lastComparison = 0;
20226
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20227
 
20228
      return 0;
20229
    }
20230
 
20231
    public _Fields fieldForId(int fieldId) {
20232
      return _Fields.findByThriftId(fieldId);
20233
    }
20234
 
20235
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20236
      org.apache.thrift.protocol.TField field;
20237
      iprot.readStructBegin();
20238
      while (true)
20239
      {
20240
        field = iprot.readFieldBegin();
20241
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20242
          break;
20243
        }
20244
        switch (field.id) {
20245
          default:
20246
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20247
        }
20248
        iprot.readFieldEnd();
20249
      }
20250
      iprot.readStructEnd();
20251
      validate();
20252
    }
20253
 
20254
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20255
      validate();
20256
 
20257
      oprot.writeStructBegin(STRUCT_DESC);
20258
      oprot.writeFieldStop();
20259
      oprot.writeStructEnd();
20260
    }
20261
 
20262
    @Override
20263
    public String toString() {
20264
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20265
      boolean first = true;
20266
 
20267
      sb.append(")");
20268
      return sb.toString();
20269
    }
20270
 
20271
    public void validate() throws org.apache.thrift.TException {
20272
      // check for required fields
20273
    }
20274
 
20275
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20276
      try {
20277
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20278
      } catch (org.apache.thrift.TException te) {
20279
        throw new java.io.IOException(te);
20280
      }
20281
    }
20282
 
20283
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20284
      try {
20285
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20286
      } catch (org.apache.thrift.TException te) {
20287
        throw new java.io.IOException(te);
20288
      }
20289
    }
20290
 
20291
  }
20292
 
20293
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20294
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20295
 
20296
    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);
20297
    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);
20298
 
20299
    private List<QuickLink> success; // required
20300
    private HelperServiceException hse; // required
20301
 
20302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20304
      SUCCESS((short)0, "success"),
20305
      HSE((short)1, "hse");
20306
 
20307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20308
 
20309
      static {
20310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20311
          byName.put(field.getFieldName(), field);
20312
        }
20313
      }
20314
 
20315
      /**
20316
       * Find the _Fields constant that matches fieldId, or null if its not found.
20317
       */
20318
      public static _Fields findByThriftId(int fieldId) {
20319
        switch(fieldId) {
20320
          case 0: // SUCCESS
20321
            return SUCCESS;
20322
          case 1: // HSE
20323
            return HSE;
20324
          default:
20325
            return null;
20326
        }
20327
      }
20328
 
20329
      /**
20330
       * Find the _Fields constant that matches fieldId, throwing an exception
20331
       * if it is not found.
20332
       */
20333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20334
        _Fields fields = findByThriftId(fieldId);
20335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20336
        return fields;
20337
      }
20338
 
20339
      /**
20340
       * Find the _Fields constant that matches name, or null if its not found.
20341
       */
20342
      public static _Fields findByName(String name) {
20343
        return byName.get(name);
20344
      }
20345
 
20346
      private final short _thriftId;
20347
      private final String _fieldName;
20348
 
20349
      _Fields(short thriftId, String fieldName) {
20350
        _thriftId = thriftId;
20351
        _fieldName = fieldName;
20352
      }
20353
 
20354
      public short getThriftFieldId() {
20355
        return _thriftId;
20356
      }
20357
 
20358
      public String getFieldName() {
20359
        return _fieldName;
20360
      }
20361
    }
20362
 
20363
    // isset id assignments
20364
 
20365
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20366
    static {
20367
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20368
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20369
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20370
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20371
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20372
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20373
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20374
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20375
    }
20376
 
20377
    public getQuickLinks_result() {
20378
    }
20379
 
20380
    public getQuickLinks_result(
20381
      List<QuickLink> success,
20382
      HelperServiceException hse)
20383
    {
20384
      this();
20385
      this.success = success;
20386
      this.hse = hse;
20387
    }
20388
 
20389
    /**
20390
     * Performs a deep copy on <i>other</i>.
20391
     */
20392
    public getQuickLinks_result(getQuickLinks_result other) {
20393
      if (other.isSetSuccess()) {
20394
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20395
        for (QuickLink other_element : other.success) {
20396
          __this__success.add(new QuickLink(other_element));
20397
        }
20398
        this.success = __this__success;
20399
      }
20400
      if (other.isSetHse()) {
20401
        this.hse = new HelperServiceException(other.hse);
20402
      }
20403
    }
20404
 
20405
    public getQuickLinks_result deepCopy() {
20406
      return new getQuickLinks_result(this);
20407
    }
20408
 
20409
    @Override
20410
    public void clear() {
20411
      this.success = null;
20412
      this.hse = null;
20413
    }
20414
 
20415
    public int getSuccessSize() {
20416
      return (this.success == null) ? 0 : this.success.size();
20417
    }
20418
 
20419
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20420
      return (this.success == null) ? null : this.success.iterator();
20421
    }
20422
 
20423
    public void addToSuccess(QuickLink elem) {
20424
      if (this.success == null) {
20425
        this.success = new ArrayList<QuickLink>();
20426
      }
20427
      this.success.add(elem);
20428
    }
20429
 
20430
    public List<QuickLink> getSuccess() {
20431
      return this.success;
20432
    }
20433
 
20434
    public void setSuccess(List<QuickLink> success) {
20435
      this.success = success;
20436
    }
20437
 
20438
    public void unsetSuccess() {
20439
      this.success = null;
20440
    }
20441
 
20442
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20443
    public boolean isSetSuccess() {
20444
      return this.success != null;
20445
    }
20446
 
20447
    public void setSuccessIsSet(boolean value) {
20448
      if (!value) {
20449
        this.success = null;
20450
      }
20451
    }
20452
 
20453
    public HelperServiceException getHse() {
20454
      return this.hse;
20455
    }
20456
 
20457
    public void setHse(HelperServiceException hse) {
20458
      this.hse = hse;
20459
    }
20460
 
20461
    public void unsetHse() {
20462
      this.hse = null;
20463
    }
20464
 
20465
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20466
    public boolean isSetHse() {
20467
      return this.hse != null;
20468
    }
20469
 
20470
    public void setHseIsSet(boolean value) {
20471
      if (!value) {
20472
        this.hse = null;
20473
      }
20474
    }
20475
 
20476
    public void setFieldValue(_Fields field, Object value) {
20477
      switch (field) {
20478
      case SUCCESS:
20479
        if (value == null) {
20480
          unsetSuccess();
20481
        } else {
20482
          setSuccess((List<QuickLink>)value);
20483
        }
20484
        break;
20485
 
20486
      case HSE:
20487
        if (value == null) {
20488
          unsetHse();
20489
        } else {
20490
          setHse((HelperServiceException)value);
20491
        }
20492
        break;
20493
 
20494
      }
20495
    }
20496
 
20497
    public Object getFieldValue(_Fields field) {
20498
      switch (field) {
20499
      case SUCCESS:
20500
        return getSuccess();
20501
 
20502
      case HSE:
20503
        return getHse();
20504
 
20505
      }
20506
      throw new IllegalStateException();
20507
    }
20508
 
20509
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20510
    public boolean isSet(_Fields field) {
20511
      if (field == null) {
20512
        throw new IllegalArgumentException();
20513
      }
20514
 
20515
      switch (field) {
20516
      case SUCCESS:
20517
        return isSetSuccess();
20518
      case HSE:
20519
        return isSetHse();
20520
      }
20521
      throw new IllegalStateException();
20522
    }
20523
 
20524
    @Override
20525
    public boolean equals(Object that) {
20526
      if (that == null)
20527
        return false;
20528
      if (that instanceof getQuickLinks_result)
20529
        return this.equals((getQuickLinks_result)that);
20530
      return false;
20531
    }
20532
 
20533
    public boolean equals(getQuickLinks_result that) {
20534
      if (that == null)
20535
        return false;
20536
 
20537
      boolean this_present_success = true && this.isSetSuccess();
20538
      boolean that_present_success = true && that.isSetSuccess();
20539
      if (this_present_success || that_present_success) {
20540
        if (!(this_present_success && that_present_success))
20541
          return false;
20542
        if (!this.success.equals(that.success))
20543
          return false;
20544
      }
20545
 
20546
      boolean this_present_hse = true && this.isSetHse();
20547
      boolean that_present_hse = true && that.isSetHse();
20548
      if (this_present_hse || that_present_hse) {
20549
        if (!(this_present_hse && that_present_hse))
20550
          return false;
20551
        if (!this.hse.equals(that.hse))
20552
          return false;
20553
      }
20554
 
20555
      return true;
20556
    }
20557
 
20558
    @Override
20559
    public int hashCode() {
20560
      return 0;
20561
    }
20562
 
20563
    public int compareTo(getQuickLinks_result other) {
20564
      if (!getClass().equals(other.getClass())) {
20565
        return getClass().getName().compareTo(other.getClass().getName());
20566
      }
20567
 
20568
      int lastComparison = 0;
20569
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20570
 
20571
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20572
      if (lastComparison != 0) {
20573
        return lastComparison;
20574
      }
20575
      if (isSetSuccess()) {
20576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20577
        if (lastComparison != 0) {
20578
          return lastComparison;
20579
        }
20580
      }
20581
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20582
      if (lastComparison != 0) {
20583
        return lastComparison;
20584
      }
20585
      if (isSetHse()) {
20586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20587
        if (lastComparison != 0) {
20588
          return lastComparison;
20589
        }
20590
      }
20591
      return 0;
20592
    }
20593
 
20594
    public _Fields fieldForId(int fieldId) {
20595
      return _Fields.findByThriftId(fieldId);
20596
    }
20597
 
20598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20599
      org.apache.thrift.protocol.TField field;
20600
      iprot.readStructBegin();
20601
      while (true)
20602
      {
20603
        field = iprot.readFieldBegin();
20604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20605
          break;
20606
        }
20607
        switch (field.id) {
20608
          case 0: // SUCCESS
20609
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20610
              {
20611
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20612
                this.success = new ArrayList<QuickLink>(_list37.size);
20613
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20614
                {
20615
                  QuickLink _elem39; // required
20616
                  _elem39 = new QuickLink();
20617
                  _elem39.read(iprot);
20618
                  this.success.add(_elem39);
20619
                }
20620
                iprot.readListEnd();
20621
              }
20622
            } else { 
20623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20624
            }
20625
            break;
20626
          case 1: // HSE
20627
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20628
              this.hse = new HelperServiceException();
20629
              this.hse.read(iprot);
20630
            } else { 
20631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20632
            }
20633
            break;
20634
          default:
20635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20636
        }
20637
        iprot.readFieldEnd();
20638
      }
20639
      iprot.readStructEnd();
20640
      validate();
20641
    }
20642
 
20643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20644
      oprot.writeStructBegin(STRUCT_DESC);
20645
 
20646
      if (this.isSetSuccess()) {
20647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20648
        {
20649
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20650
          for (QuickLink _iter40 : this.success)
20651
          {
20652
            _iter40.write(oprot);
20653
          }
20654
          oprot.writeListEnd();
20655
        }
20656
        oprot.writeFieldEnd();
20657
      } else if (this.isSetHse()) {
20658
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20659
        this.hse.write(oprot);
20660
        oprot.writeFieldEnd();
20661
      }
20662
      oprot.writeFieldStop();
20663
      oprot.writeStructEnd();
20664
    }
20665
 
20666
    @Override
20667
    public String toString() {
20668
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
20669
      boolean first = true;
20670
 
20671
      sb.append("success:");
20672
      if (this.success == null) {
20673
        sb.append("null");
20674
      } else {
20675
        sb.append(this.success);
20676
      }
20677
      first = false;
20678
      if (!first) sb.append(", ");
20679
      sb.append("hse:");
20680
      if (this.hse == null) {
20681
        sb.append("null");
20682
      } else {
20683
        sb.append(this.hse);
20684
      }
20685
      first = false;
20686
      sb.append(")");
20687
      return sb.toString();
20688
    }
20689
 
20690
    public void validate() throws org.apache.thrift.TException {
20691
      // check for required fields
20692
    }
20693
 
20694
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20695
      try {
20696
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20697
      } catch (org.apache.thrift.TException te) {
20698
        throw new java.io.IOException(te);
20699
      }
20700
    }
20701
 
20702
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20703
      try {
20704
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20705
      } catch (org.apache.thrift.TException te) {
20706
        throw new java.io.IOException(te);
20707
      }
20708
    }
20709
 
20710
  }
20711
 
4996 varun.gupt 20712
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
20713
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
20714
 
20715
    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);
20716
    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);
20717
    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);
20718
 
20719
    private long id; // required
20720
    private String url; // required
20721
    private String text; // required
20722
 
20723
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20724
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20725
      ID((short)1, "id"),
20726
      URL((short)2, "url"),
20727
      TEXT((short)3, "text");
20728
 
20729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20730
 
20731
      static {
20732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20733
          byName.put(field.getFieldName(), field);
20734
        }
20735
      }
20736
 
20737
      /**
20738
       * Find the _Fields constant that matches fieldId, or null if its not found.
20739
       */
20740
      public static _Fields findByThriftId(int fieldId) {
20741
        switch(fieldId) {
20742
          case 1: // ID
20743
            return ID;
20744
          case 2: // URL
20745
            return URL;
20746
          case 3: // TEXT
20747
            return TEXT;
20748
          default:
20749
            return null;
20750
        }
20751
      }
20752
 
20753
      /**
20754
       * Find the _Fields constant that matches fieldId, throwing an exception
20755
       * if it is not found.
20756
       */
20757
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20758
        _Fields fields = findByThriftId(fieldId);
20759
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20760
        return fields;
20761
      }
20762
 
20763
      /**
20764
       * Find the _Fields constant that matches name, or null if its not found.
20765
       */
20766
      public static _Fields findByName(String name) {
20767
        return byName.get(name);
20768
      }
20769
 
20770
      private final short _thriftId;
20771
      private final String _fieldName;
20772
 
20773
      _Fields(short thriftId, String fieldName) {
20774
        _thriftId = thriftId;
20775
        _fieldName = fieldName;
20776
      }
20777
 
20778
      public short getThriftFieldId() {
20779
        return _thriftId;
20780
      }
20781
 
20782
      public String getFieldName() {
20783
        return _fieldName;
20784
      }
20785
    }
20786
 
20787
    // isset id assignments
20788
    private static final int __ID_ISSET_ID = 0;
20789
    private BitSet __isset_bit_vector = new BitSet(1);
20790
 
20791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20792
    static {
20793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20794
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20795
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20796
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20798
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20800
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20801
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
20802
    }
20803
 
20804
    public updateQuickLink_args() {
20805
    }
20806
 
20807
    public updateQuickLink_args(
20808
      long id,
20809
      String url,
20810
      String text)
20811
    {
20812
      this();
20813
      this.id = id;
20814
      setIdIsSet(true);
20815
      this.url = url;
20816
      this.text = text;
20817
    }
20818
 
20819
    /**
20820
     * Performs a deep copy on <i>other</i>.
20821
     */
20822
    public updateQuickLink_args(updateQuickLink_args other) {
20823
      __isset_bit_vector.clear();
20824
      __isset_bit_vector.or(other.__isset_bit_vector);
20825
      this.id = other.id;
20826
      if (other.isSetUrl()) {
20827
        this.url = other.url;
20828
      }
20829
      if (other.isSetText()) {
20830
        this.text = other.text;
20831
      }
20832
    }
20833
 
20834
    public updateQuickLink_args deepCopy() {
20835
      return new updateQuickLink_args(this);
20836
    }
20837
 
20838
    @Override
20839
    public void clear() {
20840
      setIdIsSet(false);
20841
      this.id = 0;
20842
      this.url = null;
20843
      this.text = null;
20844
    }
20845
 
20846
    public long getId() {
20847
      return this.id;
20848
    }
20849
 
20850
    public void setId(long id) {
20851
      this.id = id;
20852
      setIdIsSet(true);
20853
    }
20854
 
20855
    public void unsetId() {
20856
      __isset_bit_vector.clear(__ID_ISSET_ID);
20857
    }
20858
 
20859
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
20860
    public boolean isSetId() {
20861
      return __isset_bit_vector.get(__ID_ISSET_ID);
20862
    }
20863
 
20864
    public void setIdIsSet(boolean value) {
20865
      __isset_bit_vector.set(__ID_ISSET_ID, value);
20866
    }
20867
 
20868
    public String getUrl() {
20869
      return this.url;
20870
    }
20871
 
20872
    public void setUrl(String url) {
20873
      this.url = url;
20874
    }
20875
 
20876
    public void unsetUrl() {
20877
      this.url = null;
20878
    }
20879
 
20880
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
20881
    public boolean isSetUrl() {
20882
      return this.url != null;
20883
    }
20884
 
20885
    public void setUrlIsSet(boolean value) {
20886
      if (!value) {
20887
        this.url = null;
20888
      }
20889
    }
20890
 
20891
    public String getText() {
20892
      return this.text;
20893
    }
20894
 
20895
    public void setText(String text) {
20896
      this.text = text;
20897
    }
20898
 
20899
    public void unsetText() {
20900
      this.text = null;
20901
    }
20902
 
20903
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
20904
    public boolean isSetText() {
20905
      return this.text != null;
20906
    }
20907
 
20908
    public void setTextIsSet(boolean value) {
20909
      if (!value) {
20910
        this.text = null;
20911
      }
20912
    }
20913
 
20914
    public void setFieldValue(_Fields field, Object value) {
20915
      switch (field) {
20916
      case ID:
20917
        if (value == null) {
20918
          unsetId();
20919
        } else {
20920
          setId((Long)value);
20921
        }
20922
        break;
20923
 
20924
      case URL:
20925
        if (value == null) {
20926
          unsetUrl();
20927
        } else {
20928
          setUrl((String)value);
20929
        }
20930
        break;
20931
 
20932
      case TEXT:
20933
        if (value == null) {
20934
          unsetText();
20935
        } else {
20936
          setText((String)value);
20937
        }
20938
        break;
20939
 
20940
      }
20941
    }
20942
 
20943
    public Object getFieldValue(_Fields field) {
20944
      switch (field) {
20945
      case ID:
20946
        return Long.valueOf(getId());
20947
 
20948
      case URL:
20949
        return getUrl();
20950
 
20951
      case TEXT:
20952
        return getText();
20953
 
20954
      }
20955
      throw new IllegalStateException();
20956
    }
20957
 
20958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20959
    public boolean isSet(_Fields field) {
20960
      if (field == null) {
20961
        throw new IllegalArgumentException();
20962
      }
20963
 
20964
      switch (field) {
20965
      case ID:
20966
        return isSetId();
20967
      case URL:
20968
        return isSetUrl();
20969
      case TEXT:
20970
        return isSetText();
20971
      }
20972
      throw new IllegalStateException();
20973
    }
20974
 
20975
    @Override
20976
    public boolean equals(Object that) {
20977
      if (that == null)
20978
        return false;
20979
      if (that instanceof updateQuickLink_args)
20980
        return this.equals((updateQuickLink_args)that);
20981
      return false;
20982
    }
20983
 
20984
    public boolean equals(updateQuickLink_args that) {
20985
      if (that == null)
20986
        return false;
20987
 
20988
      boolean this_present_id = true;
20989
      boolean that_present_id = true;
20990
      if (this_present_id || that_present_id) {
20991
        if (!(this_present_id && that_present_id))
20992
          return false;
20993
        if (this.id != that.id)
20994
          return false;
20995
      }
20996
 
20997
      boolean this_present_url = true && this.isSetUrl();
20998
      boolean that_present_url = true && that.isSetUrl();
20999
      if (this_present_url || that_present_url) {
21000
        if (!(this_present_url && that_present_url))
21001
          return false;
21002
        if (!this.url.equals(that.url))
21003
          return false;
21004
      }
21005
 
21006
      boolean this_present_text = true && this.isSetText();
21007
      boolean that_present_text = true && that.isSetText();
21008
      if (this_present_text || that_present_text) {
21009
        if (!(this_present_text && that_present_text))
21010
          return false;
21011
        if (!this.text.equals(that.text))
21012
          return false;
21013
      }
21014
 
21015
      return true;
21016
    }
21017
 
21018
    @Override
21019
    public int hashCode() {
21020
      return 0;
21021
    }
21022
 
21023
    public int compareTo(updateQuickLink_args other) {
21024
      if (!getClass().equals(other.getClass())) {
21025
        return getClass().getName().compareTo(other.getClass().getName());
21026
      }
21027
 
21028
      int lastComparison = 0;
21029
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21030
 
21031
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21032
      if (lastComparison != 0) {
21033
        return lastComparison;
21034
      }
21035
      if (isSetId()) {
21036
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21037
        if (lastComparison != 0) {
21038
          return lastComparison;
21039
        }
21040
      }
21041
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21042
      if (lastComparison != 0) {
21043
        return lastComparison;
21044
      }
21045
      if (isSetUrl()) {
21046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21047
        if (lastComparison != 0) {
21048
          return lastComparison;
21049
        }
21050
      }
21051
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21052
      if (lastComparison != 0) {
21053
        return lastComparison;
21054
      }
21055
      if (isSetText()) {
21056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21057
        if (lastComparison != 0) {
21058
          return lastComparison;
21059
        }
21060
      }
21061
      return 0;
21062
    }
21063
 
21064
    public _Fields fieldForId(int fieldId) {
21065
      return _Fields.findByThriftId(fieldId);
21066
    }
21067
 
21068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21069
      org.apache.thrift.protocol.TField field;
21070
      iprot.readStructBegin();
21071
      while (true)
21072
      {
21073
        field = iprot.readFieldBegin();
21074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21075
          break;
21076
        }
21077
        switch (field.id) {
21078
          case 1: // ID
21079
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21080
              this.id = iprot.readI64();
21081
              setIdIsSet(true);
21082
            } else { 
21083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21084
            }
21085
            break;
21086
          case 2: // URL
21087
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21088
              this.url = iprot.readString();
21089
            } else { 
21090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21091
            }
21092
            break;
21093
          case 3: // TEXT
21094
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21095
              this.text = iprot.readString();
21096
            } else { 
21097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21098
            }
21099
            break;
21100
          default:
21101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21102
        }
21103
        iprot.readFieldEnd();
21104
      }
21105
      iprot.readStructEnd();
21106
      validate();
21107
    }
21108
 
21109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21110
      validate();
21111
 
21112
      oprot.writeStructBegin(STRUCT_DESC);
21113
      oprot.writeFieldBegin(ID_FIELD_DESC);
21114
      oprot.writeI64(this.id);
21115
      oprot.writeFieldEnd();
21116
      if (this.url != null) {
21117
        oprot.writeFieldBegin(URL_FIELD_DESC);
21118
        oprot.writeString(this.url);
21119
        oprot.writeFieldEnd();
21120
      }
21121
      if (this.text != null) {
21122
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21123
        oprot.writeString(this.text);
21124
        oprot.writeFieldEnd();
21125
      }
21126
      oprot.writeFieldStop();
21127
      oprot.writeStructEnd();
21128
    }
21129
 
21130
    @Override
21131
    public String toString() {
21132
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21133
      boolean first = true;
21134
 
21135
      sb.append("id:");
21136
      sb.append(this.id);
21137
      first = false;
21138
      if (!first) sb.append(", ");
21139
      sb.append("url:");
21140
      if (this.url == null) {
21141
        sb.append("null");
21142
      } else {
21143
        sb.append(this.url);
21144
      }
21145
      first = false;
21146
      if (!first) sb.append(", ");
21147
      sb.append("text:");
21148
      if (this.text == null) {
21149
        sb.append("null");
21150
      } else {
21151
        sb.append(this.text);
21152
      }
21153
      first = false;
21154
      sb.append(")");
21155
      return sb.toString();
21156
    }
21157
 
21158
    public void validate() throws org.apache.thrift.TException {
21159
      // check for required fields
21160
    }
21161
 
21162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21163
      try {
21164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21165
      } catch (org.apache.thrift.TException te) {
21166
        throw new java.io.IOException(te);
21167
      }
21168
    }
21169
 
21170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21171
      try {
21172
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21173
        __isset_bit_vector = new BitSet(1);
21174
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21175
      } catch (org.apache.thrift.TException te) {
21176
        throw new java.io.IOException(te);
21177
      }
21178
    }
21179
 
21180
  }
21181
 
21182
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21183
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21184
 
21185
    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);
21186
 
21187
    private HelperServiceException hse; // required
21188
 
21189
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21190
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21191
      HSE((short)1, "hse");
21192
 
21193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21194
 
21195
      static {
21196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21197
          byName.put(field.getFieldName(), field);
21198
        }
21199
      }
21200
 
21201
      /**
21202
       * Find the _Fields constant that matches fieldId, or null if its not found.
21203
       */
21204
      public static _Fields findByThriftId(int fieldId) {
21205
        switch(fieldId) {
21206
          case 1: // HSE
21207
            return HSE;
21208
          default:
21209
            return null;
21210
        }
21211
      }
21212
 
21213
      /**
21214
       * Find the _Fields constant that matches fieldId, throwing an exception
21215
       * if it is not found.
21216
       */
21217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21218
        _Fields fields = findByThriftId(fieldId);
21219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21220
        return fields;
21221
      }
21222
 
21223
      /**
21224
       * Find the _Fields constant that matches name, or null if its not found.
21225
       */
21226
      public static _Fields findByName(String name) {
21227
        return byName.get(name);
21228
      }
21229
 
21230
      private final short _thriftId;
21231
      private final String _fieldName;
21232
 
21233
      _Fields(short thriftId, String fieldName) {
21234
        _thriftId = thriftId;
21235
        _fieldName = fieldName;
21236
      }
21237
 
21238
      public short getThriftFieldId() {
21239
        return _thriftId;
21240
      }
21241
 
21242
      public String getFieldName() {
21243
        return _fieldName;
21244
      }
21245
    }
21246
 
21247
    // isset id assignments
21248
 
21249
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21250
    static {
21251
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21252
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21253
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21254
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21255
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21256
    }
21257
 
21258
    public updateQuickLink_result() {
21259
    }
21260
 
21261
    public updateQuickLink_result(
21262
      HelperServiceException hse)
21263
    {
21264
      this();
21265
      this.hse = hse;
21266
    }
21267
 
21268
    /**
21269
     * Performs a deep copy on <i>other</i>.
21270
     */
21271
    public updateQuickLink_result(updateQuickLink_result other) {
21272
      if (other.isSetHse()) {
21273
        this.hse = new HelperServiceException(other.hse);
21274
      }
21275
    }
21276
 
21277
    public updateQuickLink_result deepCopy() {
21278
      return new updateQuickLink_result(this);
21279
    }
21280
 
21281
    @Override
21282
    public void clear() {
21283
      this.hse = null;
21284
    }
21285
 
21286
    public HelperServiceException getHse() {
21287
      return this.hse;
21288
    }
21289
 
21290
    public void setHse(HelperServiceException hse) {
21291
      this.hse = hse;
21292
    }
21293
 
21294
    public void unsetHse() {
21295
      this.hse = null;
21296
    }
21297
 
21298
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21299
    public boolean isSetHse() {
21300
      return this.hse != null;
21301
    }
21302
 
21303
    public void setHseIsSet(boolean value) {
21304
      if (!value) {
21305
        this.hse = null;
21306
      }
21307
    }
21308
 
21309
    public void setFieldValue(_Fields field, Object value) {
21310
      switch (field) {
21311
      case HSE:
21312
        if (value == null) {
21313
          unsetHse();
21314
        } else {
21315
          setHse((HelperServiceException)value);
21316
        }
21317
        break;
21318
 
21319
      }
21320
    }
21321
 
21322
    public Object getFieldValue(_Fields field) {
21323
      switch (field) {
21324
      case HSE:
21325
        return getHse();
21326
 
21327
      }
21328
      throw new IllegalStateException();
21329
    }
21330
 
21331
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21332
    public boolean isSet(_Fields field) {
21333
      if (field == null) {
21334
        throw new IllegalArgumentException();
21335
      }
21336
 
21337
      switch (field) {
21338
      case HSE:
21339
        return isSetHse();
21340
      }
21341
      throw new IllegalStateException();
21342
    }
21343
 
21344
    @Override
21345
    public boolean equals(Object that) {
21346
      if (that == null)
21347
        return false;
21348
      if (that instanceof updateQuickLink_result)
21349
        return this.equals((updateQuickLink_result)that);
21350
      return false;
21351
    }
21352
 
21353
    public boolean equals(updateQuickLink_result that) {
21354
      if (that == null)
21355
        return false;
21356
 
21357
      boolean this_present_hse = true && this.isSetHse();
21358
      boolean that_present_hse = true && that.isSetHse();
21359
      if (this_present_hse || that_present_hse) {
21360
        if (!(this_present_hse && that_present_hse))
21361
          return false;
21362
        if (!this.hse.equals(that.hse))
21363
          return false;
21364
      }
21365
 
21366
      return true;
21367
    }
21368
 
21369
    @Override
21370
    public int hashCode() {
21371
      return 0;
21372
    }
21373
 
21374
    public int compareTo(updateQuickLink_result other) {
21375
      if (!getClass().equals(other.getClass())) {
21376
        return getClass().getName().compareTo(other.getClass().getName());
21377
      }
21378
 
21379
      int lastComparison = 0;
21380
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21381
 
21382
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21383
      if (lastComparison != 0) {
21384
        return lastComparison;
21385
      }
21386
      if (isSetHse()) {
21387
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21388
        if (lastComparison != 0) {
21389
          return lastComparison;
21390
        }
21391
      }
21392
      return 0;
21393
    }
21394
 
21395
    public _Fields fieldForId(int fieldId) {
21396
      return _Fields.findByThriftId(fieldId);
21397
    }
21398
 
21399
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21400
      org.apache.thrift.protocol.TField field;
21401
      iprot.readStructBegin();
21402
      while (true)
21403
      {
21404
        field = iprot.readFieldBegin();
21405
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21406
          break;
21407
        }
21408
        switch (field.id) {
21409
          case 1: // HSE
21410
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21411
              this.hse = new HelperServiceException();
21412
              this.hse.read(iprot);
21413
            } else { 
21414
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21415
            }
21416
            break;
21417
          default:
21418
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21419
        }
21420
        iprot.readFieldEnd();
21421
      }
21422
      iprot.readStructEnd();
21423
      validate();
21424
    }
21425
 
21426
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21427
      oprot.writeStructBegin(STRUCT_DESC);
21428
 
21429
      if (this.isSetHse()) {
21430
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21431
        this.hse.write(oprot);
21432
        oprot.writeFieldEnd();
21433
      }
21434
      oprot.writeFieldStop();
21435
      oprot.writeStructEnd();
21436
    }
21437
 
21438
    @Override
21439
    public String toString() {
21440
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21441
      boolean first = true;
21442
 
21443
      sb.append("hse:");
21444
      if (this.hse == null) {
21445
        sb.append("null");
21446
      } else {
21447
        sb.append(this.hse);
21448
      }
21449
      first = false;
21450
      sb.append(")");
21451
      return sb.toString();
21452
    }
21453
 
21454
    public void validate() throws org.apache.thrift.TException {
21455
      // check for required fields
21456
    }
21457
 
21458
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21459
      try {
21460
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21461
      } catch (org.apache.thrift.TException te) {
21462
        throw new java.io.IOException(te);
21463
      }
21464
    }
21465
 
21466
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21467
      try {
21468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21469
      } catch (org.apache.thrift.TException te) {
21470
        throw new java.io.IOException(te);
21471
      }
21472
    }
21473
 
21474
  }
21475
 
5055 varun.gupt 21476
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
21477
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
21478
 
21479
    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);
21480
    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);
21481
 
21482
    private long startDatetime; // required
21483
    private long endDatetime; // required
21484
 
21485
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21486
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21487
      START_DATETIME((short)1, "startDatetime"),
21488
      END_DATETIME((short)2, "endDatetime");
21489
 
21490
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21491
 
21492
      static {
21493
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21494
          byName.put(field.getFieldName(), field);
21495
        }
21496
      }
21497
 
21498
      /**
21499
       * Find the _Fields constant that matches fieldId, or null if its not found.
21500
       */
21501
      public static _Fields findByThriftId(int fieldId) {
21502
        switch(fieldId) {
21503
          case 1: // START_DATETIME
21504
            return START_DATETIME;
21505
          case 2: // END_DATETIME
21506
            return END_DATETIME;
21507
          default:
21508
            return null;
21509
        }
21510
      }
21511
 
21512
      /**
21513
       * Find the _Fields constant that matches fieldId, throwing an exception
21514
       * if it is not found.
21515
       */
21516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21517
        _Fields fields = findByThriftId(fieldId);
21518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21519
        return fields;
21520
      }
21521
 
21522
      /**
21523
       * Find the _Fields constant that matches name, or null if its not found.
21524
       */
21525
      public static _Fields findByName(String name) {
21526
        return byName.get(name);
21527
      }
21528
 
21529
      private final short _thriftId;
21530
      private final String _fieldName;
21531
 
21532
      _Fields(short thriftId, String fieldName) {
21533
        _thriftId = thriftId;
21534
        _fieldName = fieldName;
21535
      }
21536
 
21537
      public short getThriftFieldId() {
21538
        return _thriftId;
21539
      }
21540
 
21541
      public String getFieldName() {
21542
        return _fieldName;
21543
      }
21544
    }
21545
 
21546
    // isset id assignments
21547
    private static final int __STARTDATETIME_ISSET_ID = 0;
21548
    private static final int __ENDDATETIME_ISSET_ID = 1;
21549
    private BitSet __isset_bit_vector = new BitSet(2);
21550
 
21551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21552
    static {
21553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21554
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21556
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
21560
    }
21561
 
21562
    public getEmailsForNotificationsSent_args() {
21563
    }
21564
 
21565
    public getEmailsForNotificationsSent_args(
21566
      long startDatetime,
21567
      long endDatetime)
21568
    {
21569
      this();
21570
      this.startDatetime = startDatetime;
21571
      setStartDatetimeIsSet(true);
21572
      this.endDatetime = endDatetime;
21573
      setEndDatetimeIsSet(true);
21574
    }
21575
 
21576
    /**
21577
     * Performs a deep copy on <i>other</i>.
21578
     */
21579
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
21580
      __isset_bit_vector.clear();
21581
      __isset_bit_vector.or(other.__isset_bit_vector);
21582
      this.startDatetime = other.startDatetime;
21583
      this.endDatetime = other.endDatetime;
21584
    }
21585
 
21586
    public getEmailsForNotificationsSent_args deepCopy() {
21587
      return new getEmailsForNotificationsSent_args(this);
21588
    }
21589
 
21590
    @Override
21591
    public void clear() {
21592
      setStartDatetimeIsSet(false);
21593
      this.startDatetime = 0;
21594
      setEndDatetimeIsSet(false);
21595
      this.endDatetime = 0;
21596
    }
21597
 
21598
    public long getStartDatetime() {
21599
      return this.startDatetime;
21600
    }
21601
 
21602
    public void setStartDatetime(long startDatetime) {
21603
      this.startDatetime = startDatetime;
21604
      setStartDatetimeIsSet(true);
21605
    }
21606
 
21607
    public void unsetStartDatetime() {
21608
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
21609
    }
21610
 
21611
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
21612
    public boolean isSetStartDatetime() {
21613
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
21614
    }
21615
 
21616
    public void setStartDatetimeIsSet(boolean value) {
21617
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
21618
    }
21619
 
21620
    public long getEndDatetime() {
21621
      return this.endDatetime;
21622
    }
21623
 
21624
    public void setEndDatetime(long endDatetime) {
21625
      this.endDatetime = endDatetime;
21626
      setEndDatetimeIsSet(true);
21627
    }
21628
 
21629
    public void unsetEndDatetime() {
21630
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
21631
    }
21632
 
21633
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
21634
    public boolean isSetEndDatetime() {
21635
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
21636
    }
21637
 
21638
    public void setEndDatetimeIsSet(boolean value) {
21639
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
21640
    }
21641
 
21642
    public void setFieldValue(_Fields field, Object value) {
21643
      switch (field) {
21644
      case START_DATETIME:
21645
        if (value == null) {
21646
          unsetStartDatetime();
21647
        } else {
21648
          setStartDatetime((Long)value);
21649
        }
21650
        break;
21651
 
21652
      case END_DATETIME:
21653
        if (value == null) {
21654
          unsetEndDatetime();
21655
        } else {
21656
          setEndDatetime((Long)value);
21657
        }
21658
        break;
21659
 
21660
      }
21661
    }
21662
 
21663
    public Object getFieldValue(_Fields field) {
21664
      switch (field) {
21665
      case START_DATETIME:
21666
        return Long.valueOf(getStartDatetime());
21667
 
21668
      case END_DATETIME:
21669
        return Long.valueOf(getEndDatetime());
21670
 
21671
      }
21672
      throw new IllegalStateException();
21673
    }
21674
 
21675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21676
    public boolean isSet(_Fields field) {
21677
      if (field == null) {
21678
        throw new IllegalArgumentException();
21679
      }
21680
 
21681
      switch (field) {
21682
      case START_DATETIME:
21683
        return isSetStartDatetime();
21684
      case END_DATETIME:
21685
        return isSetEndDatetime();
21686
      }
21687
      throw new IllegalStateException();
21688
    }
21689
 
21690
    @Override
21691
    public boolean equals(Object that) {
21692
      if (that == null)
21693
        return false;
21694
      if (that instanceof getEmailsForNotificationsSent_args)
21695
        return this.equals((getEmailsForNotificationsSent_args)that);
21696
      return false;
21697
    }
21698
 
21699
    public boolean equals(getEmailsForNotificationsSent_args that) {
21700
      if (that == null)
21701
        return false;
21702
 
21703
      boolean this_present_startDatetime = true;
21704
      boolean that_present_startDatetime = true;
21705
      if (this_present_startDatetime || that_present_startDatetime) {
21706
        if (!(this_present_startDatetime && that_present_startDatetime))
21707
          return false;
21708
        if (this.startDatetime != that.startDatetime)
21709
          return false;
21710
      }
21711
 
21712
      boolean this_present_endDatetime = true;
21713
      boolean that_present_endDatetime = true;
21714
      if (this_present_endDatetime || that_present_endDatetime) {
21715
        if (!(this_present_endDatetime && that_present_endDatetime))
21716
          return false;
21717
        if (this.endDatetime != that.endDatetime)
21718
          return false;
21719
      }
21720
 
21721
      return true;
21722
    }
21723
 
21724
    @Override
21725
    public int hashCode() {
21726
      return 0;
21727
    }
21728
 
21729
    public int compareTo(getEmailsForNotificationsSent_args other) {
21730
      if (!getClass().equals(other.getClass())) {
21731
        return getClass().getName().compareTo(other.getClass().getName());
21732
      }
21733
 
21734
      int lastComparison = 0;
21735
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
21736
 
21737
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
21738
      if (lastComparison != 0) {
21739
        return lastComparison;
21740
      }
21741
      if (isSetStartDatetime()) {
21742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
21743
        if (lastComparison != 0) {
21744
          return lastComparison;
21745
        }
21746
      }
21747
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
21748
      if (lastComparison != 0) {
21749
        return lastComparison;
21750
      }
21751
      if (isSetEndDatetime()) {
21752
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
21753
        if (lastComparison != 0) {
21754
          return lastComparison;
21755
        }
21756
      }
21757
      return 0;
21758
    }
21759
 
21760
    public _Fields fieldForId(int fieldId) {
21761
      return _Fields.findByThriftId(fieldId);
21762
    }
21763
 
21764
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21765
      org.apache.thrift.protocol.TField field;
21766
      iprot.readStructBegin();
21767
      while (true)
21768
      {
21769
        field = iprot.readFieldBegin();
21770
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21771
          break;
21772
        }
21773
        switch (field.id) {
21774
          case 1: // START_DATETIME
21775
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21776
              this.startDatetime = iprot.readI64();
21777
              setStartDatetimeIsSet(true);
21778
            } else { 
21779
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21780
            }
21781
            break;
21782
          case 2: // END_DATETIME
21783
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21784
              this.endDatetime = iprot.readI64();
21785
              setEndDatetimeIsSet(true);
21786
            } else { 
21787
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21788
            }
21789
            break;
21790
          default:
21791
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21792
        }
21793
        iprot.readFieldEnd();
21794
      }
21795
      iprot.readStructEnd();
21796
      validate();
21797
    }
21798
 
21799
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21800
      validate();
21801
 
21802
      oprot.writeStructBegin(STRUCT_DESC);
21803
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
21804
      oprot.writeI64(this.startDatetime);
21805
      oprot.writeFieldEnd();
21806
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
21807
      oprot.writeI64(this.endDatetime);
21808
      oprot.writeFieldEnd();
21809
      oprot.writeFieldStop();
21810
      oprot.writeStructEnd();
21811
    }
21812
 
21813
    @Override
21814
    public String toString() {
21815
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
21816
      boolean first = true;
21817
 
21818
      sb.append("startDatetime:");
21819
      sb.append(this.startDatetime);
21820
      first = false;
21821
      if (!first) sb.append(", ");
21822
      sb.append("endDatetime:");
21823
      sb.append(this.endDatetime);
21824
      first = false;
21825
      sb.append(")");
21826
      return sb.toString();
21827
    }
21828
 
21829
    public void validate() throws org.apache.thrift.TException {
21830
      // check for required fields
21831
    }
21832
 
21833
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21834
      try {
21835
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21836
      } catch (org.apache.thrift.TException te) {
21837
        throw new java.io.IOException(te);
21838
      }
21839
    }
21840
 
21841
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21842
      try {
21843
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21844
      } catch (org.apache.thrift.TException te) {
21845
        throw new java.io.IOException(te);
21846
      }
21847
    }
21848
 
21849
  }
21850
 
21851
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
21852
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
21853
 
21854
    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);
21855
    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);
21856
 
21857
    private List<String> success; // required
21858
    private HelperServiceException hse; // required
21859
 
21860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21862
      SUCCESS((short)0, "success"),
21863
      HSE((short)1, "hse");
21864
 
21865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21866
 
21867
      static {
21868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21869
          byName.put(field.getFieldName(), field);
21870
        }
21871
      }
21872
 
21873
      /**
21874
       * Find the _Fields constant that matches fieldId, or null if its not found.
21875
       */
21876
      public static _Fields findByThriftId(int fieldId) {
21877
        switch(fieldId) {
21878
          case 0: // SUCCESS
21879
            return SUCCESS;
21880
          case 1: // HSE
21881
            return HSE;
21882
          default:
21883
            return null;
21884
        }
21885
      }
21886
 
21887
      /**
21888
       * Find the _Fields constant that matches fieldId, throwing an exception
21889
       * if it is not found.
21890
       */
21891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21892
        _Fields fields = findByThriftId(fieldId);
21893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21894
        return fields;
21895
      }
21896
 
21897
      /**
21898
       * Find the _Fields constant that matches name, or null if its not found.
21899
       */
21900
      public static _Fields findByName(String name) {
21901
        return byName.get(name);
21902
      }
21903
 
21904
      private final short _thriftId;
21905
      private final String _fieldName;
21906
 
21907
      _Fields(short thriftId, String fieldName) {
21908
        _thriftId = thriftId;
21909
        _fieldName = fieldName;
21910
      }
21911
 
21912
      public short getThriftFieldId() {
21913
        return _thriftId;
21914
      }
21915
 
21916
      public String getFieldName() {
21917
        return _fieldName;
21918
      }
21919
    }
21920
 
21921
    // isset id assignments
21922
 
21923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21924
    static {
21925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21926
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21927
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21928
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
21929
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
21933
    }
21934
 
21935
    public getEmailsForNotificationsSent_result() {
21936
    }
21937
 
21938
    public getEmailsForNotificationsSent_result(
21939
      List<String> success,
21940
      HelperServiceException hse)
21941
    {
21942
      this();
21943
      this.success = success;
21944
      this.hse = hse;
21945
    }
21946
 
21947
    /**
21948
     * Performs a deep copy on <i>other</i>.
21949
     */
21950
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
21951
      if (other.isSetSuccess()) {
21952
        List<String> __this__success = new ArrayList<String>();
21953
        for (String other_element : other.success) {
21954
          __this__success.add(other_element);
21955
        }
21956
        this.success = __this__success;
21957
      }
21958
      if (other.isSetHse()) {
21959
        this.hse = new HelperServiceException(other.hse);
21960
      }
21961
    }
21962
 
21963
    public getEmailsForNotificationsSent_result deepCopy() {
21964
      return new getEmailsForNotificationsSent_result(this);
21965
    }
21966
 
21967
    @Override
21968
    public void clear() {
21969
      this.success = null;
21970
      this.hse = null;
21971
    }
21972
 
21973
    public int getSuccessSize() {
21974
      return (this.success == null) ? 0 : this.success.size();
21975
    }
21976
 
21977
    public java.util.Iterator<String> getSuccessIterator() {
21978
      return (this.success == null) ? null : this.success.iterator();
21979
    }
21980
 
21981
    public void addToSuccess(String elem) {
21982
      if (this.success == null) {
21983
        this.success = new ArrayList<String>();
21984
      }
21985
      this.success.add(elem);
21986
    }
21987
 
21988
    public List<String> getSuccess() {
21989
      return this.success;
21990
    }
21991
 
21992
    public void setSuccess(List<String> success) {
21993
      this.success = success;
21994
    }
21995
 
21996
    public void unsetSuccess() {
21997
      this.success = null;
21998
    }
21999
 
22000
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22001
    public boolean isSetSuccess() {
22002
      return this.success != null;
22003
    }
22004
 
22005
    public void setSuccessIsSet(boolean value) {
22006
      if (!value) {
22007
        this.success = null;
22008
      }
22009
    }
22010
 
22011
    public HelperServiceException getHse() {
22012
      return this.hse;
22013
    }
22014
 
22015
    public void setHse(HelperServiceException hse) {
22016
      this.hse = hse;
22017
    }
22018
 
22019
    public void unsetHse() {
22020
      this.hse = null;
22021
    }
22022
 
22023
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22024
    public boolean isSetHse() {
22025
      return this.hse != null;
22026
    }
22027
 
22028
    public void setHseIsSet(boolean value) {
22029
      if (!value) {
22030
        this.hse = null;
22031
      }
22032
    }
22033
 
22034
    public void setFieldValue(_Fields field, Object value) {
22035
      switch (field) {
22036
      case SUCCESS:
22037
        if (value == null) {
22038
          unsetSuccess();
22039
        } else {
22040
          setSuccess((List<String>)value);
22041
        }
22042
        break;
22043
 
22044
      case HSE:
22045
        if (value == null) {
22046
          unsetHse();
22047
        } else {
22048
          setHse((HelperServiceException)value);
22049
        }
22050
        break;
22051
 
22052
      }
22053
    }
22054
 
22055
    public Object getFieldValue(_Fields field) {
22056
      switch (field) {
22057
      case SUCCESS:
22058
        return getSuccess();
22059
 
22060
      case HSE:
22061
        return getHse();
22062
 
22063
      }
22064
      throw new IllegalStateException();
22065
    }
22066
 
22067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22068
    public boolean isSet(_Fields field) {
22069
      if (field == null) {
22070
        throw new IllegalArgumentException();
22071
      }
22072
 
22073
      switch (field) {
22074
      case SUCCESS:
22075
        return isSetSuccess();
22076
      case HSE:
22077
        return isSetHse();
22078
      }
22079
      throw new IllegalStateException();
22080
    }
22081
 
22082
    @Override
22083
    public boolean equals(Object that) {
22084
      if (that == null)
22085
        return false;
22086
      if (that instanceof getEmailsForNotificationsSent_result)
22087
        return this.equals((getEmailsForNotificationsSent_result)that);
22088
      return false;
22089
    }
22090
 
22091
    public boolean equals(getEmailsForNotificationsSent_result that) {
22092
      if (that == null)
22093
        return false;
22094
 
22095
      boolean this_present_success = true && this.isSetSuccess();
22096
      boolean that_present_success = true && that.isSetSuccess();
22097
      if (this_present_success || that_present_success) {
22098
        if (!(this_present_success && that_present_success))
22099
          return false;
22100
        if (!this.success.equals(that.success))
22101
          return false;
22102
      }
22103
 
22104
      boolean this_present_hse = true && this.isSetHse();
22105
      boolean that_present_hse = true && that.isSetHse();
22106
      if (this_present_hse || that_present_hse) {
22107
        if (!(this_present_hse && that_present_hse))
22108
          return false;
22109
        if (!this.hse.equals(that.hse))
22110
          return false;
22111
      }
22112
 
22113
      return true;
22114
    }
22115
 
22116
    @Override
22117
    public int hashCode() {
22118
      return 0;
22119
    }
22120
 
22121
    public int compareTo(getEmailsForNotificationsSent_result other) {
22122
      if (!getClass().equals(other.getClass())) {
22123
        return getClass().getName().compareTo(other.getClass().getName());
22124
      }
22125
 
22126
      int lastComparison = 0;
22127
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22128
 
22129
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22130
      if (lastComparison != 0) {
22131
        return lastComparison;
22132
      }
22133
      if (isSetSuccess()) {
22134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22135
        if (lastComparison != 0) {
22136
          return lastComparison;
22137
        }
22138
      }
22139
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22140
      if (lastComparison != 0) {
22141
        return lastComparison;
22142
      }
22143
      if (isSetHse()) {
22144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22145
        if (lastComparison != 0) {
22146
          return lastComparison;
22147
        }
22148
      }
22149
      return 0;
22150
    }
22151
 
22152
    public _Fields fieldForId(int fieldId) {
22153
      return _Fields.findByThriftId(fieldId);
22154
    }
22155
 
22156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22157
      org.apache.thrift.protocol.TField field;
22158
      iprot.readStructBegin();
22159
      while (true)
22160
      {
22161
        field = iprot.readFieldBegin();
22162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22163
          break;
22164
        }
22165
        switch (field.id) {
22166
          case 0: // SUCCESS
22167
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22168
              {
22169
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
22170
                this.success = new ArrayList<String>(_list41.size);
22171
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
22172
                {
22173
                  String _elem43; // required
22174
                  _elem43 = iprot.readString();
22175
                  this.success.add(_elem43);
22176
                }
22177
                iprot.readListEnd();
22178
              }
22179
            } else { 
22180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22181
            }
22182
            break;
22183
          case 1: // HSE
22184
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22185
              this.hse = new HelperServiceException();
22186
              this.hse.read(iprot);
22187
            } else { 
22188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22189
            }
22190
            break;
22191
          default:
22192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22193
        }
22194
        iprot.readFieldEnd();
22195
      }
22196
      iprot.readStructEnd();
22197
      validate();
22198
    }
22199
 
22200
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22201
      oprot.writeStructBegin(STRUCT_DESC);
22202
 
22203
      if (this.isSetSuccess()) {
22204
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22205
        {
22206
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
22207
          for (String _iter44 : this.success)
22208
          {
22209
            oprot.writeString(_iter44);
22210
          }
22211
          oprot.writeListEnd();
22212
        }
22213
        oprot.writeFieldEnd();
22214
      } else if (this.isSetHse()) {
22215
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22216
        this.hse.write(oprot);
22217
        oprot.writeFieldEnd();
22218
      }
22219
      oprot.writeFieldStop();
22220
      oprot.writeStructEnd();
22221
    }
22222
 
22223
    @Override
22224
    public String toString() {
22225
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22226
      boolean first = true;
22227
 
22228
      sb.append("success:");
22229
      if (this.success == null) {
22230
        sb.append("null");
22231
      } else {
22232
        sb.append(this.success);
22233
      }
22234
      first = false;
22235
      if (!first) sb.append(", ");
22236
      sb.append("hse:");
22237
      if (this.hse == null) {
22238
        sb.append("null");
22239
      } else {
22240
        sb.append(this.hse);
22241
      }
22242
      first = false;
22243
      sb.append(")");
22244
      return sb.toString();
22245
    }
22246
 
22247
    public void validate() throws org.apache.thrift.TException {
22248
      // check for required fields
22249
    }
22250
 
22251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22252
      try {
22253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22254
      } catch (org.apache.thrift.TException te) {
22255
        throw new java.io.IOException(te);
22256
      }
22257
    }
22258
 
22259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22260
      try {
22261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22262
      } catch (org.apache.thrift.TException te) {
22263
        throw new java.io.IOException(te);
22264
      }
22265
    }
22266
 
22267
  }
22268
 
352 ashish 22269
}