Subversion Repositories SmartDukaan

Rev

Rev 5864 | Rev 6788 | 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
5864 rajveer 36
     * @param cc
37
     * @param bcc
2779 chandransh 38
     */
5864 rajveer 39
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 40
 
2779 chandransh 41
    /**
42
     * Retreives all the emails pending for dispatch
43
     */
3430 rajveer 44
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 45
 
2779 chandransh 46
    /**
47
     * Marks email as sent after successful dispatch
48
     * 
49
     * @param emailId
50
     */
3430 rajveer 51
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 52
 
3430 rajveer 53
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 64
 
3430 rajveer 65
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
3430 rajveer 67
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 68
 
750 chandransh 69
    /**
2443 chandransh 70
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
71
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 72
     * 
73
     * @param username
74
     * @param password
75
     */
3430 rajveer 76
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 77
 
2443 chandransh 78
    /**
79
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
80
     * 
81
     * @param username
82
     * @param oldPassword
83
     * @param newPassword
84
     */
3430 rajveer 85
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 86
 
750 chandransh 87
    /**
88
     * Returns the LogisticsUser struct associated with the given username and password if they match.
89
     * Throws an exception otherwise.
90
     * 
91
     * @param username
92
     * @param password
93
     */
3430 rajveer 94
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 95
 
1611 ankur.sing 96
    /**
97
     * Returns the StatisticsUser struct associated with the given username and password if they match.
98
     * Throws an exception otherwise.
99
     * 
100
     * @param username
101
     * @param password
102
     */
3430 rajveer 103
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 104
 
1891 ankur.sing 105
    /**
106
     * Returns the ReportUser struct associated with the given username and password if they match.
107
     * Throws an exception otherwise.
108
     * 
109
     * @param username
110
     * @param password
111
     */
3430 rajveer 112
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 113
 
114
    /**
115
     * Returns list of reports which are configured for the given role.
116
     * 
117
     * @param role
118
     */
3430 rajveer 119
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 120
 
2024 ankur.sing 121
    /**
2357 ankur.sing 122
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 123
     * Throws an exception otherwise.
124
     * 
125
     * @param username
126
     * @param password
2357 ankur.sing 127
     * @param role
2024 ankur.sing 128
     */
3430 rajveer 129
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 130
 
4544 varun.gupt 131
    /**
132
     * Saves the list of entity Ids to be shared with an email address
133
     * 
134
     * @param entityIds
135
     * @param email
136
     */
137
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
138
 
4693 mandeep.dh 139
    public List<Agent> getAgents() throws org.apache.thrift.TException;
140
 
141
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
142
 
143
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
144
 
145
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
146
 
147
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
148
 
4806 varun.gupt 149
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
150
 
151
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
152
 
4996 varun.gupt 153
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
154
 
5055 varun.gupt 155
    /**
156
     * Returns a list of emails to which product notifications have been sent in a given date range
157
     * 
158
     * @param startDatetime
159
     * @param endDatetime
160
     */
161
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
162
 
6322 amar.kumar 163
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
164
 
352 ashish 165
  }
166
 
3430 rajveer 167
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
168
 
5864 rajveer 169
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 170
 
171
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
192
 
193
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
204
 
4544 varun.gupt 205
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
206
 
4693 mandeep.dh 207
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
208
 
209
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
216
 
4806 varun.gupt 217
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
218
 
219
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
220
 
4996 varun.gupt 221
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
222
 
5055 varun.gupt 223
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
224
 
6322 amar.kumar 225
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
226
 
3430 rajveer 227
  }
228
 
3374 rajveer 229
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 230
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
231
      public Factory() {}
232
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
233
        return new Client(prot);
234
      }
235
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
236
        return new Client(iprot, oprot);
237
      }
238
    }
239
 
240
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 241
    {
3430 rajveer 242
      super(prot, prot);
352 ashish 243
    }
244
 
3430 rajveer 245
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 246
      super(iprot, oprot);
352 ashish 247
    }
248
 
5864 rajveer 249
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 250
    {
5864 rajveer 251
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
3206 mandeep.dh 252
      return recv_saveUserEmailForSending();
1395 varun.gupt 253
    }
254
 
5864 rajveer 255
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws org.apache.thrift.TException
1395 varun.gupt 256
    {
257
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 258
      args.setEmailTo(emailTo);
259
      args.setEmailFrom(emailFrom);
260
      args.setSubject(subject);
261
      args.setBody(body);
262
      args.setSource(source);
263
      args.setEmailType(emailType);
5864 rajveer 264
      args.setCc(cc);
265
      args.setBcc(bcc);
3430 rajveer 266
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 267
    }
268
 
3430 rajveer 269
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 270
    {
271
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 272
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 273
      if (result.isSetSuccess()) {
274
        return result.success;
275
      }
1395 varun.gupt 276
      if (result.se != null) {
277
        throw result.se;
278
      }
3430 rajveer 279
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 280
    }
281
 
3430 rajveer 282
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 283
    {
3086 rajveer 284
      send_getEmailsToBeSent();
1422 varun.gupt 285
      return recv_getEmailsToBeSent();
286
    }
287
 
3430 rajveer 288
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 289
    {
290
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 291
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 292
    }
293
 
3430 rajveer 294
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 295
    {
296
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 297
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 298
      if (result.isSetSuccess()) {
299
        return result.success;
300
      }
301
      if (result.se != null) {
302
        throw result.se;
303
      }
3430 rajveer 304
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 305
    }
306
 
3430 rajveer 307
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 308
    {
309
      send_markEmailAsSent(emailId);
310
      recv_markEmailAsSent();
311
    }
312
 
3430 rajveer 313
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 314
    {
315
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 316
      args.setEmailId(emailId);
317
      sendBase("markEmailAsSent", args);
1422 varun.gupt 318
    }
319
 
3430 rajveer 320
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 321
    {
322
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 323
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 324
      if (result.se != null) {
325
        throw result.se;
326
      }
327
      return;
328
    }
329
 
3430 rajveer 330
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 331
    {
332
      send_sendMail(mail);
333
      recv_sendMail();
334
    }
335
 
3430 rajveer 336
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 337
    {
338
      sendMail_args args = new sendMail_args();
3430 rajveer 339
      args.setMail(mail);
340
      sendBase("sendMail", args);
352 ashish 341
    }
342
 
3430 rajveer 343
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 344
    {
345
      sendMail_result result = new sendMail_result();
3430 rajveer 346
      receiveBase(result, "sendMail");
352 ashish 347
      if (result.se != null) {
348
        throw result.se;
349
      }
350
      return;
351
    }
352
 
3430 rajveer 353
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 354
    {
355
      send_sendText(message);
356
      recv_sendText();
357
    }
358
 
3430 rajveer 359
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 360
    {
361
      sendText_args args = new sendText_args();
3430 rajveer 362
      args.setMessage(message);
363
      sendBase("sendText", args);
352 ashish 364
    }
365
 
3430 rajveer 366
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 367
    {
368
      sendText_result result = new sendText_result();
3430 rajveer 369
      receiveBase(result, "sendText");
352 ashish 370
      if (result.se != null) {
371
        throw result.se;
372
      }
373
      return;
374
    }
375
 
3430 rajveer 376
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 377
    {
378
      send_addMessage(message);
379
      recv_addMessage();
380
    }
381
 
3430 rajveer 382
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 383
    {
384
      addMessage_args args = new addMessage_args();
3430 rajveer 385
      args.setMessage(message);
386
      sendBase("addMessage", args);
352 ashish 387
    }
388
 
3430 rajveer 389
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 390
    {
391
      addMessage_result result = new addMessage_result();
3430 rajveer 392
      receiveBase(result, "addMessage");
352 ashish 393
      if (result.se != null) {
394
        throw result.se;
395
      }
396
      return;
397
    }
398
 
3430 rajveer 399
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 400
    {
401
      send_updateMessage(id, message);
402
      recv_updateMessage();
403
    }
404
 
3430 rajveer 405
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 406
    {
407
      updateMessage_args args = new updateMessage_args();
3430 rajveer 408
      args.setId(id);
409
      args.setMessage(message);
410
      sendBase("updateMessage", args);
352 ashish 411
    }
412
 
3430 rajveer 413
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 414
    {
415
      updateMessage_result result = new updateMessage_result();
3430 rajveer 416
      receiveBase(result, "updateMessage");
352 ashish 417
      if (result.se != null) {
418
        throw result.se;
419
      }
420
      return;
421
    }
422
 
3430 rajveer 423
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 424
    {
425
      send_getMessage(id);
426
      return recv_getMessage();
427
    }
428
 
3430 rajveer 429
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 430
    {
431
      getMessage_args args = new getMessage_args();
3430 rajveer 432
      args.setId(id);
433
      sendBase("getMessage", args);
352 ashish 434
    }
435
 
3430 rajveer 436
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 437
    {
438
      getMessage_result result = new getMessage_result();
3430 rajveer 439
      receiveBase(result, "getMessage");
352 ashish 440
      if (result.isSetSuccess()) {
441
        return result.success;
442
      }
443
      if (result.se != null) {
444
        throw result.se;
445
      }
3430 rajveer 446
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 447
    }
448
 
3430 rajveer 449
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 450
    {
451
      send_getSubstitutedMessage(id, params);
452
      return recv_getSubstitutedMessage();
453
    }
454
 
3430 rajveer 455
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 456
    {
457
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 458
      args.setId(id);
459
      args.setParams(params);
460
      sendBase("getSubstitutedMessage", args);
352 ashish 461
    }
462
 
3430 rajveer 463
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 464
    {
465
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 466
      receiveBase(result, "getSubstitutedMessage");
352 ashish 467
      if (result.isSetSuccess()) {
468
        return result.success;
469
      }
470
      if (result.se != null) {
471
        throw result.se;
472
      }
3430 rajveer 473
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 474
    }
475
 
3430 rajveer 476
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 477
    {
478
      send_addUser(username, password, warehouseId);
479
      return recv_addUser();
480
    }
481
 
3430 rajveer 482
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 483
    {
484
      addUser_args args = new addUser_args();
3430 rajveer 485
      args.setUsername(username);
486
      args.setPassword(password);
487
      args.setWarehouseId(warehouseId);
488
      sendBase("addUser", args);
495 rajveer 489
    }
490
 
3430 rajveer 491
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 492
    {
493
      addUser_result result = new addUser_result();
3430 rajveer 494
      receiveBase(result, "addUser");
495 rajveer 495
      if (result.isSetSuccess()) {
496
        return result.success;
497
      }
498
      if (result.se != null) {
499
        throw result.se;
500
      }
3430 rajveer 501
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 502
    }
503
 
3430 rajveer 504
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 505
    {
506
      send_deleteUser(username);
507
      return recv_deleteUser();
508
    }
509
 
3430 rajveer 510
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 511
    {
512
      deleteUser_args args = new deleteUser_args();
3430 rajveer 513
      args.setUsername(username);
514
      sendBase("deleteUser", args);
495 rajveer 515
    }
516
 
3430 rajveer 517
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 518
    {
519
      deleteUser_result result = new deleteUser_result();
3430 rajveer 520
      receiveBase(result, "deleteUser");
495 rajveer 521
      if (result.isSetSuccess()) {
522
        return result.success;
523
      }
524
      if (result.se != null) {
525
        throw result.se;
526
      }
3430 rajveer 527
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 528
    }
529
 
3430 rajveer 530
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 531
    {
2443 chandransh 532
      send_authenticateDashboardUser(username, password);
533
      return recv_authenticateDashboardUser();
495 rajveer 534
    }
535
 
3430 rajveer 536
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 537
    {
2443 chandransh 538
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 539
      args.setUsername(username);
540
      args.setPassword(password);
541
      sendBase("authenticateDashboardUser", args);
495 rajveer 542
    }
543
 
3430 rajveer 544
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 545
    {
2443 chandransh 546
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 547
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 548
      if (result.isSetSuccess()) {
549
        return result.success;
550
      }
551
      if (result.se != null) {
552
        throw result.se;
553
      }
3430 rajveer 554
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 555
    }
556
 
3430 rajveer 557
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 558
    {
559
      send_updatePassword(username, oldPassword, newPassword);
560
      return recv_updatePassword();
561
    }
562
 
3430 rajveer 563
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 564
    {
565
      updatePassword_args args = new updatePassword_args();
3430 rajveer 566
      args.setUsername(username);
567
      args.setOldPassword(oldPassword);
568
      args.setNewPassword(newPassword);
569
      sendBase("updatePassword", args);
495 rajveer 570
    }
571
 
3430 rajveer 572
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 573
    {
574
      updatePassword_result result = new updatePassword_result();
3430 rajveer 575
      receiveBase(result, "updatePassword");
495 rajveer 576
      if (result.isSetSuccess()) {
577
        return result.success;
578
      }
579
      if (result.se != null) {
580
        throw result.se;
581
      }
3430 rajveer 582
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 583
    }
584
 
3430 rajveer 585
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 586
    {
587
      send_authenticateLogisticsUser(username, password);
588
      return recv_authenticateLogisticsUser();
589
    }
590
 
3430 rajveer 591
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 592
    {
593
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 594
      args.setUsername(username);
595
      args.setPassword(password);
596
      sendBase("authenticateLogisticsUser", args);
750 chandransh 597
    }
598
 
3430 rajveer 599
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 600
    {
601
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 602
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 603
      if (result.isSetSuccess()) {
604
        return result.success;
605
      }
606
      if (result.hse != null) {
607
        throw result.hse;
608
      }
3430 rajveer 609
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 610
    }
611
 
3430 rajveer 612
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 613
    {
614
      send_authenticateStatisticsUser(username, password);
615
      return recv_authenticateStatisticsUser();
616
    }
617
 
3430 rajveer 618
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 619
    {
620
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 621
      args.setUsername(username);
622
      args.setPassword(password);
623
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 624
    }
625
 
3430 rajveer 626
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 627
    {
628
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 629
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 630
      if (result.isSetSuccess()) {
631
        return result.success;
632
      }
633
      if (result.hse != null) {
634
        throw result.hse;
635
      }
3430 rajveer 636
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 637
    }
638
 
3430 rajveer 639
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 640
    {
641
      send_authenticateReportUser(username, password);
642
      return recv_authenticateReportUser();
643
    }
644
 
3430 rajveer 645
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 646
    {
647
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 648
      args.setUsername(username);
649
      args.setPassword(password);
650
      sendBase("authenticateReportUser", args);
1891 ankur.sing 651
    }
652
 
3430 rajveer 653
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 654
    {
655
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 656
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 657
      if (result.isSetSuccess()) {
658
        return result.success;
659
      }
660
      if (result.hse != null) {
661
        throw result.hse;
662
      }
3430 rajveer 663
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 664
    }
665
 
3430 rajveer 666
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 667
    {
668
      send_getReports(role);
669
      return recv_getReports();
670
    }
671
 
3430 rajveer 672
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 673
    {
674
      getReports_args args = new getReports_args();
3430 rajveer 675
      args.setRole(role);
676
      sendBase("getReports", args);
1891 ankur.sing 677
    }
678
 
3430 rajveer 679
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 680
    {
681
      getReports_result result = new getReports_result();
3430 rajveer 682
      receiveBase(result, "getReports");
1891 ankur.sing 683
      if (result.isSetSuccess()) {
684
        return result.success;
685
      }
3430 rajveer 686
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 687
    }
688
 
3430 rajveer 689
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 690
    {
2357 ankur.sing 691
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 692
      return recv_authenticateCatalogUser();
693
    }
694
 
3430 rajveer 695
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 696
    {
697
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 698
      args.setUsername(username);
699
      args.setPassword(password);
700
      args.setRole(role);
701
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 702
    }
703
 
3430 rajveer 704
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 705
    {
706
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 707
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 708
      if (result.isSetSuccess()) {
709
        return result.success;
710
      }
711
      if (result.hse != null) {
712
        throw result.hse;
713
      }
3430 rajveer 714
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 715
    }
716
 
4544 varun.gupt 717
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
718
    {
719
      send_shareEntities(entityIds, email);
720
      recv_shareEntities();
721
    }
722
 
723
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
724
    {
725
      shareEntities_args args = new shareEntities_args();
726
      args.setEntityIds(entityIds);
727
      args.setEmail(email);
728
      sendBase("shareEntities", args);
729
    }
730
 
731
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
732
    {
733
      shareEntities_result result = new shareEntities_result();
734
      receiveBase(result, "shareEntities");
735
      if (result.hse != null) {
736
        throw result.hse;
737
      }
738
      return;
739
    }
740
 
4693 mandeep.dh 741
    public List<Agent> getAgents() throws org.apache.thrift.TException
742
    {
743
      send_getAgents();
744
      return recv_getAgents();
745
    }
746
 
747
    public void send_getAgents() throws org.apache.thrift.TException
748
    {
749
      getAgents_args args = new getAgents_args();
750
      sendBase("getAgents", args);
751
    }
752
 
753
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
754
    {
755
      getAgents_result result = new getAgents_result();
756
      receiveBase(result, "getAgents");
757
      if (result.isSetSuccess()) {
758
        return result.success;
759
      }
760
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
761
    }
762
 
763
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
764
    {
765
      send_validateLogIn(emailId, password);
766
      return recv_validateLogIn();
767
    }
768
 
769
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
770
    {
771
      validateLogIn_args args = new validateLogIn_args();
772
      args.setEmailId(emailId);
773
      args.setPassword(password);
774
      sendBase("validateLogIn", args);
775
    }
776
 
777
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
778
    {
779
      validateLogIn_result result = new validateLogIn_result();
780
      receiveBase(result, "validateLogIn");
781
      if (result.isSetSuccess()) {
782
        return result.success;
783
      }
784
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
785
    }
786
 
787
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
788
    {
789
      send_updatePasswordForAgent(agentEmailId, password);
790
      recv_updatePasswordForAgent();
791
    }
792
 
793
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
794
    {
795
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
796
      args.setAgentEmailId(agentEmailId);
797
      args.setPassword(password);
798
      sendBase("updatePasswordForAgent", args);
799
    }
800
 
801
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
802
    {
803
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
804
      receiveBase(result, "updatePasswordForAgent");
805
      return;
806
    }
807
 
808
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
809
    {
810
      send_getRoleNamesForAgent(agentEmailId);
811
      return recv_getRoleNamesForAgent();
812
    }
813
 
814
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
815
    {
816
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
817
      args.setAgentEmailId(agentEmailId);
818
      sendBase("getRoleNamesForAgent", args);
819
    }
820
 
821
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
822
    {
823
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
824
      receiveBase(result, "getRoleNamesForAgent");
825
      if (result.isSetSuccess()) {
826
        return result.success;
827
      }
828
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
829
    }
830
 
831
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
832
    {
833
      send_getPermissionsForRoleName(roleName);
834
      return recv_getPermissionsForRoleName();
835
    }
836
 
837
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
838
    {
839
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
840
      args.setRoleName(roleName);
841
      sendBase("getPermissionsForRoleName", args);
842
    }
843
 
844
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
845
    {
846
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
847
      receiveBase(result, "getPermissionsForRoleName");
848
      if (result.isSetSuccess()) {
849
        return result.success;
850
      }
851
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
852
    }
853
 
4806 varun.gupt 854
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
855
    {
856
      send_saveQuickLink(url, text);
857
      recv_saveQuickLink();
858
    }
859
 
860
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
861
    {
862
      saveQuickLink_args args = new saveQuickLink_args();
863
      args.setUrl(url);
864
      args.setText(text);
865
      sendBase("saveQuickLink", args);
866
    }
867
 
868
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
869
    {
870
      saveQuickLink_result result = new saveQuickLink_result();
871
      receiveBase(result, "saveQuickLink");
872
      if (result.hse != null) {
873
        throw result.hse;
874
      }
875
      return;
876
    }
877
 
878
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
879
    {
880
      send_getQuickLinks();
881
      return recv_getQuickLinks();
882
    }
883
 
884
    public void send_getQuickLinks() throws org.apache.thrift.TException
885
    {
886
      getQuickLinks_args args = new getQuickLinks_args();
887
      sendBase("getQuickLinks", args);
888
    }
889
 
890
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
891
    {
892
      getQuickLinks_result result = new getQuickLinks_result();
893
      receiveBase(result, "getQuickLinks");
894
      if (result.isSetSuccess()) {
895
        return result.success;
896
      }
897
      if (result.hse != null) {
898
        throw result.hse;
899
      }
900
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
901
    }
902
 
4996 varun.gupt 903
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
904
    {
905
      send_updateQuickLink(id, url, text);
906
      recv_updateQuickLink();
907
    }
908
 
909
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
910
    {
911
      updateQuickLink_args args = new updateQuickLink_args();
912
      args.setId(id);
913
      args.setUrl(url);
914
      args.setText(text);
915
      sendBase("updateQuickLink", args);
916
    }
917
 
918
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
919
    {
920
      updateQuickLink_result result = new updateQuickLink_result();
921
      receiveBase(result, "updateQuickLink");
922
      if (result.hse != null) {
923
        throw result.hse;
924
      }
925
      return;
926
    }
927
 
5055 varun.gupt 928
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
929
    {
930
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
931
      return recv_getEmailsForNotificationsSent();
932
    }
933
 
934
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
935
    {
936
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
937
      args.setStartDatetime(startDatetime);
938
      args.setEndDatetime(endDatetime);
939
      sendBase("getEmailsForNotificationsSent", args);
940
    }
941
 
942
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
943
    {
944
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
945
      receiveBase(result, "getEmailsForNotificationsSent");
946
      if (result.isSetSuccess()) {
947
        return result.success;
948
      }
949
      if (result.hse != null) {
950
        throw result.hse;
951
      }
952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
953
    }
954
 
6322 amar.kumar 955
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
956
    {
957
      send_getOrderConfirmationMail(orderId);
958
      return recv_getOrderConfirmationMail();
959
    }
960
 
961
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
962
    {
963
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
964
      args.setOrderId(orderId);
965
      sendBase("getOrderConfirmationMail", args);
966
    }
967
 
968
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
969
    {
970
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
971
      receiveBase(result, "getOrderConfirmationMail");
972
      if (result.isSetSuccess()) {
973
        return result.success;
974
      }
975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
976
    }
977
 
352 ashish 978
  }
3430 rajveer 979
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
980
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
981
      private org.apache.thrift.async.TAsyncClientManager clientManager;
982
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
983
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
984
        this.clientManager = clientManager;
985
        this.protocolFactory = protocolFactory;
986
      }
987
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
988
        return new AsyncClient(protocolFactory, clientManager, transport);
989
      }
352 ashish 990
    }
991
 
3430 rajveer 992
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
993
      super(protocolFactory, clientManager, transport);
994
    }
352 ashish 995
 
5864 rajveer 996
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 997
      checkReady();
5864 rajveer 998
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 999
      this.___currentMethod = method_call;
1000
      ___manager.call(method_call);
1001
    }
1002
 
1003
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1004
      private List<String> emailTo;
3430 rajveer 1005
      private String emailFrom;
1006
      private String subject;
1007
      private String body;
1008
      private String source;
1009
      private String emailType;
5864 rajveer 1010
      private List<String> cc;
1011
      private List<String> bcc;
1012
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1013
        super(client, protocolFactory, transport, resultHandler, false);
1014
        this.emailTo = emailTo;
1015
        this.emailFrom = emailFrom;
1016
        this.subject = subject;
1017
        this.body = body;
1018
        this.source = source;
1019
        this.emailType = emailType;
5864 rajveer 1020
        this.cc = cc;
1021
        this.bcc = bcc;
352 ashish 1022
      }
3430 rajveer 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("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1026
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1027
        args.setEmailTo(emailTo);
1028
        args.setEmailFrom(emailFrom);
1029
        args.setSubject(subject);
1030
        args.setBody(body);
1031
        args.setSource(source);
1032
        args.setEmailType(emailType);
5864 rajveer 1033
        args.setCc(cc);
1034
        args.setBcc(bcc);
3430 rajveer 1035
        args.write(prot);
1036
        prot.writeMessageEnd();
1037
      }
1038
 
1039
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1040
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1041
          throw new IllegalStateException("Method call not finished!");
1042
        }
1043
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1044
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1045
        return (new Client(prot)).recv_saveUserEmailForSending();
1046
      }
352 ashish 1047
    }
1048
 
3430 rajveer 1049
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1050
      checkReady();
1051
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1052
      this.___currentMethod = method_call;
1053
      ___manager.call(method_call);
1054
    }
1055
 
1056
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1057
      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 {
1058
        super(client, protocolFactory, transport, resultHandler, false);
1059
      }
1060
 
1061
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1062
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1063
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1064
        args.write(prot);
1065
        prot.writeMessageEnd();
1066
      }
1067
 
1068
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1069
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1070
          throw new IllegalStateException("Method call not finished!");
1071
        }
1072
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1073
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1074
        return (new Client(prot)).recv_getEmailsToBeSent();
1075
      }
1076
    }
1077
 
1078
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1079
      checkReady();
1080
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1081
      this.___currentMethod = method_call;
1082
      ___manager.call(method_call);
1083
    }
1084
 
1085
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1086
      private long emailId;
1087
      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 {
1088
        super(client, protocolFactory, transport, resultHandler, false);
1089
        this.emailId = emailId;
1090
      }
1091
 
1092
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1093
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1094
        markEmailAsSent_args args = new markEmailAsSent_args();
1095
        args.setEmailId(emailId);
1096
        args.write(prot);
1097
        prot.writeMessageEnd();
1098
      }
1099
 
1100
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1101
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1102
          throw new IllegalStateException("Method call not finished!");
1103
        }
1104
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1105
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1106
        (new Client(prot)).recv_markEmailAsSent();
1107
      }
1108
    }
1109
 
1110
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1111
      checkReady();
1112
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1113
      this.___currentMethod = method_call;
1114
      ___manager.call(method_call);
1115
    }
1116
 
1117
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1118
      private Mail mail;
1119
      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 {
1120
        super(client, protocolFactory, transport, resultHandler, false);
1121
        this.mail = mail;
1122
      }
1123
 
1124
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1125
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1126
        sendMail_args args = new sendMail_args();
1127
        args.setMail(mail);
1128
        args.write(prot);
1129
        prot.writeMessageEnd();
1130
      }
1131
 
1132
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1133
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1134
          throw new IllegalStateException("Method call not finished!");
1135
        }
1136
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1137
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1138
        (new Client(prot)).recv_sendMail();
1139
      }
1140
    }
1141
 
1142
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1143
      checkReady();
1144
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1145
      this.___currentMethod = method_call;
1146
      ___manager.call(method_call);
1147
    }
1148
 
1149
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1150
      private TextMessage message;
1151
      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 {
1152
        super(client, protocolFactory, transport, resultHandler, false);
1153
        this.message = message;
1154
      }
1155
 
1156
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1157
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1158
        sendText_args args = new sendText_args();
1159
        args.setMessage(message);
1160
        args.write(prot);
1161
        prot.writeMessageEnd();
1162
      }
1163
 
1164
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1165
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1166
          throw new IllegalStateException("Method call not finished!");
1167
        }
1168
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1169
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1170
        (new Client(prot)).recv_sendText();
1171
      }
1172
    }
1173
 
1174
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1175
      checkReady();
1176
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1177
      this.___currentMethod = method_call;
1178
      ___manager.call(method_call);
1179
    }
1180
 
1181
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1182
      private Message message;
1183
      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 {
1184
        super(client, protocolFactory, transport, resultHandler, false);
1185
        this.message = message;
1186
      }
1187
 
1188
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1189
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1190
        addMessage_args args = new addMessage_args();
1191
        args.setMessage(message);
1192
        args.write(prot);
1193
        prot.writeMessageEnd();
1194
      }
1195
 
1196
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1197
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1198
          throw new IllegalStateException("Method call not finished!");
1199
        }
1200
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1201
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1202
        (new Client(prot)).recv_addMessage();
1203
      }
1204
    }
1205
 
1206
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1207
      checkReady();
1208
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1209
      this.___currentMethod = method_call;
1210
      ___manager.call(method_call);
1211
    }
1212
 
1213
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1214
      private long id;
1215
      private String message;
1216
      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 {
1217
        super(client, protocolFactory, transport, resultHandler, false);
1218
        this.id = id;
1219
        this.message = message;
1220
      }
1221
 
1222
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1223
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1224
        updateMessage_args args = new updateMessage_args();
1225
        args.setId(id);
1226
        args.setMessage(message);
1227
        args.write(prot);
1228
        prot.writeMessageEnd();
1229
      }
1230
 
1231
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1232
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1233
          throw new IllegalStateException("Method call not finished!");
1234
        }
1235
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1236
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1237
        (new Client(prot)).recv_updateMessage();
1238
      }
1239
    }
1240
 
1241
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1242
      checkReady();
1243
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1244
      this.___currentMethod = method_call;
1245
      ___manager.call(method_call);
1246
    }
1247
 
1248
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1249
      private long id;
1250
      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 {
1251
        super(client, protocolFactory, transport, resultHandler, false);
1252
        this.id = id;
1253
      }
1254
 
1255
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1256
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1257
        getMessage_args args = new getMessage_args();
1258
        args.setId(id);
1259
        args.write(prot);
1260
        prot.writeMessageEnd();
1261
      }
1262
 
1263
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1264
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1265
          throw new IllegalStateException("Method call not finished!");
1266
        }
1267
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1268
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1269
        return (new Client(prot)).recv_getMessage();
1270
      }
1271
    }
1272
 
1273
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1274
      checkReady();
1275
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1276
      this.___currentMethod = method_call;
1277
      ___manager.call(method_call);
1278
    }
1279
 
1280
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1281
      private long id;
1282
      private Map<String,String> params;
1283
      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 {
1284
        super(client, protocolFactory, transport, resultHandler, false);
1285
        this.id = id;
1286
        this.params = params;
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("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1291
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1292
        args.setId(id);
1293
        args.setParams(params);
1294
        args.write(prot);
1295
        prot.writeMessageEnd();
1296
      }
1297
 
1298
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1299
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1300
          throw new IllegalStateException("Method call not finished!");
1301
        }
1302
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1303
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1304
        return (new Client(prot)).recv_getSubstitutedMessage();
1305
      }
1306
    }
1307
 
1308
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1309
      checkReady();
1310
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1311
      this.___currentMethod = method_call;
1312
      ___manager.call(method_call);
1313
    }
1314
 
1315
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1316
      private String username;
1317
      private String password;
1318
      private long warehouseId;
1319
      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 {
1320
        super(client, protocolFactory, transport, resultHandler, false);
1321
        this.username = username;
1322
        this.password = password;
1323
        this.warehouseId = warehouseId;
1324
      }
1325
 
1326
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1327
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1328
        addUser_args args = new addUser_args();
1329
        args.setUsername(username);
1330
        args.setPassword(password);
1331
        args.setWarehouseId(warehouseId);
1332
        args.write(prot);
1333
        prot.writeMessageEnd();
1334
      }
1335
 
1336
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1337
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1338
          throw new IllegalStateException("Method call not finished!");
1339
        }
1340
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1341
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1342
        return (new Client(prot)).recv_addUser();
1343
      }
1344
    }
1345
 
1346
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1347
      checkReady();
1348
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1349
      this.___currentMethod = method_call;
1350
      ___manager.call(method_call);
1351
    }
1352
 
1353
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1354
      private String username;
1355
      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 {
1356
        super(client, protocolFactory, transport, resultHandler, false);
1357
        this.username = username;
1358
      }
1359
 
1360
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1361
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1362
        deleteUser_args args = new deleteUser_args();
1363
        args.setUsername(username);
1364
        args.write(prot);
1365
        prot.writeMessageEnd();
1366
      }
1367
 
1368
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1369
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1370
          throw new IllegalStateException("Method call not finished!");
1371
        }
1372
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1373
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1374
        return (new Client(prot)).recv_deleteUser();
1375
      }
1376
    }
1377
 
1378
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1379
      checkReady();
1380
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1381
      this.___currentMethod = method_call;
1382
      ___manager.call(method_call);
1383
    }
1384
 
1385
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1386
      private String username;
1387
      private String password;
1388
      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 {
1389
        super(client, protocolFactory, transport, resultHandler, false);
1390
        this.username = username;
1391
        this.password = password;
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("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1396
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1397
        args.setUsername(username);
1398
        args.setPassword(password);
1399
        args.write(prot);
1400
        prot.writeMessageEnd();
1401
      }
1402
 
1403
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1404
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1405
          throw new IllegalStateException("Method call not finished!");
1406
        }
1407
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1408
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1409
        return (new Client(prot)).recv_authenticateDashboardUser();
1410
      }
1411
    }
1412
 
1413
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1414
      checkReady();
1415
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1416
      this.___currentMethod = method_call;
1417
      ___manager.call(method_call);
1418
    }
1419
 
1420
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1421
      private String username;
1422
      private String oldPassword;
1423
      private String newPassword;
1424
      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 {
1425
        super(client, protocolFactory, transport, resultHandler, false);
1426
        this.username = username;
1427
        this.oldPassword = oldPassword;
1428
        this.newPassword = newPassword;
1429
      }
1430
 
1431
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1432
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1433
        updatePassword_args args = new updatePassword_args();
1434
        args.setUsername(username);
1435
        args.setOldPassword(oldPassword);
1436
        args.setNewPassword(newPassword);
1437
        args.write(prot);
1438
        prot.writeMessageEnd();
1439
      }
1440
 
1441
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1442
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1443
          throw new IllegalStateException("Method call not finished!");
1444
        }
1445
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1446
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1447
        return (new Client(prot)).recv_updatePassword();
1448
      }
1449
    }
1450
 
1451
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1452
      checkReady();
1453
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1454
      this.___currentMethod = method_call;
1455
      ___manager.call(method_call);
1456
    }
1457
 
1458
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1459
      private String username;
1460
      private String password;
1461
      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 {
1462
        super(client, protocolFactory, transport, resultHandler, false);
1463
        this.username = username;
1464
        this.password = password;
1465
      }
1466
 
1467
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1468
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1469
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1470
        args.setUsername(username);
1471
        args.setPassword(password);
1472
        args.write(prot);
1473
        prot.writeMessageEnd();
1474
      }
1475
 
1476
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1477
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1478
          throw new IllegalStateException("Method call not finished!");
1479
        }
1480
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1481
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1482
        return (new Client(prot)).recv_authenticateLogisticsUser();
1483
      }
1484
    }
1485
 
1486
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1487
      checkReady();
1488
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1489
      this.___currentMethod = method_call;
1490
      ___manager.call(method_call);
1491
    }
1492
 
1493
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1494
      private String username;
1495
      private String password;
1496
      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 {
1497
        super(client, protocolFactory, transport, resultHandler, false);
1498
        this.username = username;
1499
        this.password = password;
1500
      }
1501
 
1502
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1503
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1504
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1505
        args.setUsername(username);
1506
        args.setPassword(password);
1507
        args.write(prot);
1508
        prot.writeMessageEnd();
1509
      }
1510
 
1511
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1512
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1513
          throw new IllegalStateException("Method call not finished!");
1514
        }
1515
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1517
        return (new Client(prot)).recv_authenticateStatisticsUser();
1518
      }
1519
    }
1520
 
1521
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1522
      checkReady();
1523
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1524
      this.___currentMethod = method_call;
1525
      ___manager.call(method_call);
1526
    }
1527
 
1528
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1529
      private String username;
1530
      private String password;
1531
      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 {
1532
        super(client, protocolFactory, transport, resultHandler, false);
1533
        this.username = username;
1534
        this.password = password;
1535
      }
1536
 
1537
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1538
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1539
        authenticateReportUser_args args = new authenticateReportUser_args();
1540
        args.setUsername(username);
1541
        args.setPassword(password);
1542
        args.write(prot);
1543
        prot.writeMessageEnd();
1544
      }
1545
 
1546
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1547
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1548
          throw new IllegalStateException("Method call not finished!");
1549
        }
1550
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1551
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1552
        return (new Client(prot)).recv_authenticateReportUser();
1553
      }
1554
    }
1555
 
1556
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1557
      checkReady();
1558
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1559
      this.___currentMethod = method_call;
1560
      ___manager.call(method_call);
1561
    }
1562
 
1563
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1564
      private long role;
1565
      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 {
1566
        super(client, protocolFactory, transport, resultHandler, false);
1567
        this.role = role;
1568
      }
1569
 
1570
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1571
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1572
        getReports_args args = new getReports_args();
1573
        args.setRole(role);
1574
        args.write(prot);
1575
        prot.writeMessageEnd();
1576
      }
1577
 
1578
      public List<Report> getResult() throws org.apache.thrift.TException {
1579
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1580
          throw new IllegalStateException("Method call not finished!");
1581
        }
1582
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1583
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1584
        return (new Client(prot)).recv_getReports();
1585
      }
1586
    }
1587
 
1588
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1589
      checkReady();
1590
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1591
      this.___currentMethod = method_call;
1592
      ___manager.call(method_call);
1593
    }
1594
 
1595
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1596
      private String username;
1597
      private String password;
1598
      private long role;
1599
      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 {
1600
        super(client, protocolFactory, transport, resultHandler, false);
1601
        this.username = username;
1602
        this.password = password;
1603
        this.role = role;
1604
      }
1605
 
1606
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1607
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1608
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1609
        args.setUsername(username);
1610
        args.setPassword(password);
1611
        args.setRole(role);
1612
        args.write(prot);
1613
        prot.writeMessageEnd();
1614
      }
1615
 
1616
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1617
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1618
          throw new IllegalStateException("Method call not finished!");
1619
        }
1620
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1621
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1622
        return (new Client(prot)).recv_authenticateCatalogUser();
1623
      }
1624
    }
1625
 
4544 varun.gupt 1626
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1627
      checkReady();
1628
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1629
      this.___currentMethod = method_call;
1630
      ___manager.call(method_call);
1631
    }
1632
 
1633
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1634
      private List<Long> entityIds;
1635
      private String email;
1636
      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 {
1637
        super(client, protocolFactory, transport, resultHandler, false);
1638
        this.entityIds = entityIds;
1639
        this.email = email;
1640
      }
1641
 
1642
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1643
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1644
        shareEntities_args args = new shareEntities_args();
1645
        args.setEntityIds(entityIds);
1646
        args.setEmail(email);
1647
        args.write(prot);
1648
        prot.writeMessageEnd();
1649
      }
1650
 
1651
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1652
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1653
          throw new IllegalStateException("Method call not finished!");
1654
        }
1655
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1656
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1657
        (new Client(prot)).recv_shareEntities();
1658
      }
1659
    }
1660
 
4693 mandeep.dh 1661
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1662
      checkReady();
1663
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1664
      this.___currentMethod = method_call;
1665
      ___manager.call(method_call);
1666
    }
1667
 
1668
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1669
      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 {
1670
        super(client, protocolFactory, transport, resultHandler, false);
1671
      }
1672
 
1673
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1674
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1675
        getAgents_args args = new getAgents_args();
1676
        args.write(prot);
1677
        prot.writeMessageEnd();
1678
      }
1679
 
1680
      public List<Agent> getResult() throws org.apache.thrift.TException {
1681
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1682
          throw new IllegalStateException("Method call not finished!");
1683
        }
1684
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1685
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1686
        return (new Client(prot)).recv_getAgents();
1687
      }
1688
    }
1689
 
1690
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1691
      checkReady();
1692
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1693
      this.___currentMethod = method_call;
1694
      ___manager.call(method_call);
1695
    }
1696
 
1697
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1698
      private String emailId;
1699
      private String password;
1700
      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 {
1701
        super(client, protocolFactory, transport, resultHandler, false);
1702
        this.emailId = emailId;
1703
        this.password = password;
1704
      }
1705
 
1706
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1707
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1708
        validateLogIn_args args = new validateLogIn_args();
1709
        args.setEmailId(emailId);
1710
        args.setPassword(password);
1711
        args.write(prot);
1712
        prot.writeMessageEnd();
1713
      }
1714
 
1715
      public boolean getResult() throws org.apache.thrift.TException {
1716
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1717
          throw new IllegalStateException("Method call not finished!");
1718
        }
1719
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1720
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1721
        return (new Client(prot)).recv_validateLogIn();
1722
      }
1723
    }
1724
 
1725
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1726
      checkReady();
1727
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1728
      this.___currentMethod = method_call;
1729
      ___manager.call(method_call);
1730
    }
1731
 
1732
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1733
      private String agentEmailId;
1734
      private String password;
1735
      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 {
1736
        super(client, protocolFactory, transport, resultHandler, false);
1737
        this.agentEmailId = agentEmailId;
1738
        this.password = password;
1739
      }
1740
 
1741
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1742
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1743
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1744
        args.setAgentEmailId(agentEmailId);
1745
        args.setPassword(password);
1746
        args.write(prot);
1747
        prot.writeMessageEnd();
1748
      }
1749
 
1750
      public void getResult() throws org.apache.thrift.TException {
1751
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1752
          throw new IllegalStateException("Method call not finished!");
1753
        }
1754
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1755
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1756
        (new Client(prot)).recv_updatePasswordForAgent();
1757
      }
1758
    }
1759
 
1760
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1761
      checkReady();
1762
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1763
      this.___currentMethod = method_call;
1764
      ___manager.call(method_call);
1765
    }
1766
 
1767
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1768
      private String agentEmailId;
1769
      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 {
1770
        super(client, protocolFactory, transport, resultHandler, false);
1771
        this.agentEmailId = agentEmailId;
1772
      }
1773
 
1774
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1775
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1776
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1777
        args.setAgentEmailId(agentEmailId);
1778
        args.write(prot);
1779
        prot.writeMessageEnd();
1780
      }
1781
 
1782
      public List<String> getResult() throws org.apache.thrift.TException {
1783
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1784
          throw new IllegalStateException("Method call not finished!");
1785
        }
1786
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1787
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1788
        return (new Client(prot)).recv_getRoleNamesForAgent();
1789
      }
1790
    }
1791
 
1792
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1793
      checkReady();
1794
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1795
      this.___currentMethod = method_call;
1796
      ___manager.call(method_call);
1797
    }
1798
 
1799
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1800
      private String roleName;
1801
      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 {
1802
        super(client, protocolFactory, transport, resultHandler, false);
1803
        this.roleName = roleName;
1804
      }
1805
 
1806
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1807
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1808
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1809
        args.setRoleName(roleName);
1810
        args.write(prot);
1811
        prot.writeMessageEnd();
1812
      }
1813
 
1814
      public List<String> getResult() throws org.apache.thrift.TException {
1815
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1816
          throw new IllegalStateException("Method call not finished!");
1817
        }
1818
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1819
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1820
        return (new Client(prot)).recv_getPermissionsForRoleName();
1821
      }
1822
    }
1823
 
4806 varun.gupt 1824
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1825
      checkReady();
1826
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1827
      this.___currentMethod = method_call;
1828
      ___manager.call(method_call);
1829
    }
1830
 
1831
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1832
      private String url;
1833
      private String text;
1834
      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 {
1835
        super(client, protocolFactory, transport, resultHandler, false);
1836
        this.url = url;
1837
        this.text = text;
1838
      }
1839
 
1840
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1841
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1842
        saveQuickLink_args args = new saveQuickLink_args();
1843
        args.setUrl(url);
1844
        args.setText(text);
1845
        args.write(prot);
1846
        prot.writeMessageEnd();
1847
      }
1848
 
1849
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1850
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1851
          throw new IllegalStateException("Method call not finished!");
1852
        }
1853
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1854
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1855
        (new Client(prot)).recv_saveQuickLink();
1856
      }
1857
    }
1858
 
1859
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1860
      checkReady();
1861
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1862
      this.___currentMethod = method_call;
1863
      ___manager.call(method_call);
1864
    }
1865
 
1866
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1867
      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 {
1868
        super(client, protocolFactory, transport, resultHandler, false);
1869
      }
1870
 
1871
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1872
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1873
        getQuickLinks_args args = new getQuickLinks_args();
1874
        args.write(prot);
1875
        prot.writeMessageEnd();
1876
      }
1877
 
1878
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1879
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1880
          throw new IllegalStateException("Method call not finished!");
1881
        }
1882
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1883
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1884
        return (new Client(prot)).recv_getQuickLinks();
1885
      }
1886
    }
1887
 
4996 varun.gupt 1888
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1889
      checkReady();
1890
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1891
      this.___currentMethod = method_call;
1892
      ___manager.call(method_call);
1893
    }
1894
 
1895
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1896
      private long id;
1897
      private String url;
1898
      private String text;
1899
      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 {
1900
        super(client, protocolFactory, transport, resultHandler, false);
1901
        this.id = id;
1902
        this.url = url;
1903
        this.text = text;
1904
      }
1905
 
1906
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1907
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1908
        updateQuickLink_args args = new updateQuickLink_args();
1909
        args.setId(id);
1910
        args.setUrl(url);
1911
        args.setText(text);
1912
        args.write(prot);
1913
        prot.writeMessageEnd();
1914
      }
1915
 
1916
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1918
          throw new IllegalStateException("Method call not finished!");
1919
        }
1920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1922
        (new Client(prot)).recv_updateQuickLink();
1923
      }
1924
    }
1925
 
5055 varun.gupt 1926
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1927
      checkReady();
1928
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1929
      this.___currentMethod = method_call;
1930
      ___manager.call(method_call);
1931
    }
1932
 
1933
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1934
      private long startDatetime;
1935
      private long endDatetime;
1936
      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 {
1937
        super(client, protocolFactory, transport, resultHandler, false);
1938
        this.startDatetime = startDatetime;
1939
        this.endDatetime = endDatetime;
1940
      }
1941
 
1942
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1943
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1944
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1945
        args.setStartDatetime(startDatetime);
1946
        args.setEndDatetime(endDatetime);
1947
        args.write(prot);
1948
        prot.writeMessageEnd();
1949
      }
1950
 
1951
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
1952
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1953
          throw new IllegalStateException("Method call not finished!");
1954
        }
1955
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1956
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1957
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1958
      }
1959
    }
1960
 
6322 amar.kumar 1961
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
1962
      checkReady();
1963
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1964
      this.___currentMethod = method_call;
1965
      ___manager.call(method_call);
1966
    }
1967
 
1968
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1969
      private long orderId;
1970
      public getOrderConfirmationMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1971
        super(client, protocolFactory, transport, resultHandler, false);
1972
        this.orderId = orderId;
1973
      }
1974
 
1975
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1976
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1977
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
1978
        args.setOrderId(orderId);
1979
        args.write(prot);
1980
        prot.writeMessageEnd();
1981
      }
1982
 
1983
      public String getResult() throws org.apache.thrift.TException {
1984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1985
          throw new IllegalStateException("Method call not finished!");
1986
        }
1987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1989
        return (new Client(prot)).recv_getOrderConfirmationMail();
1990
      }
1991
    }
1992
 
3430 rajveer 1993
  }
1994
 
1995
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1996
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1997
    public Processor(I iface) {
1998
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1999
    }
2000
 
2001
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2002
      super(iface, getProcessMap(processMap));
2003
    }
2004
 
2005
    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) {
2006
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2007
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2008
      processMap.put("markEmailAsSent", new markEmailAsSent());
2009
      processMap.put("sendMail", new sendMail());
2010
      processMap.put("sendText", new sendText());
2011
      processMap.put("addMessage", new addMessage());
2012
      processMap.put("updateMessage", new updateMessage());
2013
      processMap.put("getMessage", new getMessage());
2014
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2015
      processMap.put("addUser", new addUser());
2016
      processMap.put("deleteUser", new deleteUser());
2017
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2018
      processMap.put("updatePassword", new updatePassword());
2019
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2020
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2021
      processMap.put("authenticateReportUser", new authenticateReportUser());
2022
      processMap.put("getReports", new getReports());
2023
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2024
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2025
      processMap.put("getAgents", new getAgents());
2026
      processMap.put("validateLogIn", new validateLogIn());
2027
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2028
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2029
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2030
      processMap.put("saveQuickLink", new saveQuickLink());
2031
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2032
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2033
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2034
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
3430 rajveer 2035
      return processMap;
2036
    }
2037
 
2038
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2039
      public saveUserEmailForSending() {
2040
        super("saveUserEmailForSending");
2041
      }
2042
 
2043
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2044
        return new saveUserEmailForSending_args();
2045
      }
2046
 
2047
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2048
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2049
        try {
5864 rajveer 2050
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
3206 mandeep.dh 2051
          result.setSuccessIsSet(true);
1395 varun.gupt 2052
        } catch (HelperServiceException se) {
2053
          result.se = se;
2054
        }
3430 rajveer 2055
        return result;
1395 varun.gupt 2056
      }
2057
    }
2058
 
3430 rajveer 2059
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2060
      public getEmailsToBeSent() {
2061
        super("getEmailsToBeSent");
2062
      }
2063
 
2064
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2065
        return new getEmailsToBeSent_args();
2066
      }
2067
 
2068
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2069
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2070
        try {
3430 rajveer 2071
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2072
        } catch (HelperServiceException se) {
2073
          result.se = se;
2074
        }
3430 rajveer 2075
        return result;
1422 varun.gupt 2076
      }
2077
    }
2078
 
3430 rajveer 2079
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2080
      public markEmailAsSent() {
2081
        super("markEmailAsSent");
2082
      }
2083
 
2084
      protected markEmailAsSent_args getEmptyArgsInstance() {
2085
        return new markEmailAsSent_args();
2086
      }
2087
 
2088
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2089
        markEmailAsSent_result result = new markEmailAsSent_result();
2090
        try {
3430 rajveer 2091
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2092
        } catch (HelperServiceException se) {
2093
          result.se = se;
2094
        }
3430 rajveer 2095
        return result;
1422 varun.gupt 2096
      }
2097
    }
2098
 
3430 rajveer 2099
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2100
      public sendMail() {
2101
        super("sendMail");
2102
      }
2103
 
2104
      protected sendMail_args getEmptyArgsInstance() {
2105
        return new sendMail_args();
2106
      }
2107
 
2108
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2109
        sendMail_result result = new sendMail_result();
2110
        try {
3430 rajveer 2111
          iface.sendMail(args.mail);
352 ashish 2112
        } catch (HelperServiceException se) {
2113
          result.se = se;
2114
        }
3430 rajveer 2115
        return result;
352 ashish 2116
      }
2117
    }
2118
 
3430 rajveer 2119
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2120
      public sendText() {
2121
        super("sendText");
2122
      }
2123
 
2124
      protected sendText_args getEmptyArgsInstance() {
2125
        return new sendText_args();
2126
      }
2127
 
2128
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2129
        sendText_result result = new sendText_result();
2130
        try {
3430 rajveer 2131
          iface.sendText(args.message);
352 ashish 2132
        } catch (HelperServiceException se) {
2133
          result.se = se;
2134
        }
3430 rajveer 2135
        return result;
352 ashish 2136
      }
2137
    }
2138
 
3430 rajveer 2139
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2140
      public addMessage() {
2141
        super("addMessage");
2142
      }
2143
 
2144
      protected addMessage_args getEmptyArgsInstance() {
2145
        return new addMessage_args();
2146
      }
2147
 
2148
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2149
        addMessage_result result = new addMessage_result();
2150
        try {
3430 rajveer 2151
          iface.addMessage(args.message);
352 ashish 2152
        } catch (HelperServiceException se) {
2153
          result.se = se;
2154
        }
3430 rajveer 2155
        return result;
352 ashish 2156
      }
2157
    }
2158
 
3430 rajveer 2159
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2160
      public updateMessage() {
2161
        super("updateMessage");
2162
      }
2163
 
2164
      protected updateMessage_args getEmptyArgsInstance() {
2165
        return new updateMessage_args();
2166
      }
2167
 
2168
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2169
        updateMessage_result result = new updateMessage_result();
2170
        try {
3430 rajveer 2171
          iface.updateMessage(args.id, args.message);
352 ashish 2172
        } catch (HelperServiceException se) {
2173
          result.se = se;
2174
        }
3430 rajveer 2175
        return result;
352 ashish 2176
      }
2177
    }
2178
 
3430 rajveer 2179
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2180
      public getMessage() {
2181
        super("getMessage");
2182
      }
2183
 
2184
      protected getMessage_args getEmptyArgsInstance() {
2185
        return new getMessage_args();
2186
      }
2187
 
2188
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2189
        getMessage_result result = new getMessage_result();
2190
        try {
3430 rajveer 2191
          result.success = iface.getMessage(args.id);
352 ashish 2192
        } catch (HelperServiceException se) {
2193
          result.se = se;
2194
        }
3430 rajveer 2195
        return result;
352 ashish 2196
      }
2197
    }
2198
 
3430 rajveer 2199
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2200
      public getSubstitutedMessage() {
2201
        super("getSubstitutedMessage");
2202
      }
2203
 
2204
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2205
        return new getSubstitutedMessage_args();
2206
      }
2207
 
2208
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2209
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2210
        try {
3430 rajveer 2211
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2212
        } catch (HelperServiceException se) {
2213
          result.se = se;
2214
        }
3430 rajveer 2215
        return result;
352 ashish 2216
      }
2217
    }
2218
 
3430 rajveer 2219
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2220
      public addUser() {
2221
        super("addUser");
2222
      }
2223
 
2224
      protected addUser_args getEmptyArgsInstance() {
2225
        return new addUser_args();
2226
      }
2227
 
2228
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2229
        addUser_result result = new addUser_result();
2230
        try {
3430 rajveer 2231
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2232
          result.setSuccessIsSet(true);
2233
        } catch (HelperServiceException se) {
2234
          result.se = se;
2235
        }
3430 rajveer 2236
        return result;
495 rajveer 2237
      }
2238
    }
2239
 
3430 rajveer 2240
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2241
      public deleteUser() {
2242
        super("deleteUser");
2243
      }
2244
 
2245
      protected deleteUser_args getEmptyArgsInstance() {
2246
        return new deleteUser_args();
2247
      }
2248
 
2249
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2250
        deleteUser_result result = new deleteUser_result();
2251
        try {
3430 rajveer 2252
          result.success = iface.deleteUser(args.username);
495 rajveer 2253
          result.setSuccessIsSet(true);
2254
        } catch (HelperServiceException se) {
2255
          result.se = se;
2256
        }
3430 rajveer 2257
        return result;
495 rajveer 2258
      }
2259
    }
2260
 
3430 rajveer 2261
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2262
      public authenticateDashboardUser() {
2263
        super("authenticateDashboardUser");
2264
      }
2265
 
2266
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2267
        return new authenticateDashboardUser_args();
2268
      }
2269
 
2270
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2271
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2272
        try {
3430 rajveer 2273
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2274
        } catch (HelperServiceException se) {
2275
          result.se = se;
2276
        }
3430 rajveer 2277
        return result;
495 rajveer 2278
      }
2279
    }
2280
 
3430 rajveer 2281
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2282
      public updatePassword() {
2283
        super("updatePassword");
2284
      }
2285
 
2286
      protected updatePassword_args getEmptyArgsInstance() {
2287
        return new updatePassword_args();
2288
      }
2289
 
2290
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2291
        updatePassword_result result = new updatePassword_result();
2292
        try {
3430 rajveer 2293
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2294
          result.setSuccessIsSet(true);
2295
        } catch (HelperServiceException se) {
2296
          result.se = se;
2297
        }
3430 rajveer 2298
        return result;
495 rajveer 2299
      }
2300
    }
2301
 
3430 rajveer 2302
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2303
      public authenticateLogisticsUser() {
2304
        super("authenticateLogisticsUser");
2305
      }
2306
 
2307
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2308
        return new authenticateLogisticsUser_args();
2309
      }
2310
 
2311
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2312
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2313
        try {
3430 rajveer 2314
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2315
        } catch (HelperServiceException hse) {
2316
          result.hse = hse;
2317
        }
3430 rajveer 2318
        return result;
750 chandransh 2319
      }
2320
    }
2321
 
3430 rajveer 2322
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2323
      public authenticateStatisticsUser() {
2324
        super("authenticateStatisticsUser");
2325
      }
2326
 
2327
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2328
        return new authenticateStatisticsUser_args();
2329
      }
2330
 
2331
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2332
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2333
        try {
3430 rajveer 2334
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2335
        } catch (HelperServiceException hse) {
2336
          result.hse = hse;
2337
        }
3430 rajveer 2338
        return result;
1611 ankur.sing 2339
      }
2340
    }
2341
 
3430 rajveer 2342
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2343
      public authenticateReportUser() {
2344
        super("authenticateReportUser");
2345
      }
2346
 
2347
      protected authenticateReportUser_args getEmptyArgsInstance() {
2348
        return new authenticateReportUser_args();
2349
      }
2350
 
2351
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2352
        authenticateReportUser_result result = new authenticateReportUser_result();
2353
        try {
3430 rajveer 2354
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2355
        } catch (HelperServiceException hse) {
2356
          result.hse = hse;
2357
        }
3430 rajveer 2358
        return result;
1891 ankur.sing 2359
      }
2360
    }
2361
 
3430 rajveer 2362
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2363
      public getReports() {
2364
        super("getReports");
2365
      }
2366
 
2367
      protected getReports_args getEmptyArgsInstance() {
2368
        return new getReports_args();
2369
      }
2370
 
2371
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2372
        getReports_result result = new getReports_result();
3430 rajveer 2373
        result.success = iface.getReports(args.role);
2374
        return result;
1891 ankur.sing 2375
      }
2376
    }
2377
 
3430 rajveer 2378
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2379
      public authenticateCatalogUser() {
2380
        super("authenticateCatalogUser");
2381
      }
2382
 
2383
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2384
        return new authenticateCatalogUser_args();
2385
      }
2386
 
2387
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2388
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2389
        try {
3430 rajveer 2390
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 2391
        } catch (HelperServiceException hse) {
2392
          result.hse = hse;
2393
        }
3430 rajveer 2394
        return result;
2024 ankur.sing 2395
      }
2396
    }
2397
 
4544 varun.gupt 2398
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2399
      public shareEntities() {
2400
        super("shareEntities");
2401
      }
2402
 
2403
      protected shareEntities_args getEmptyArgsInstance() {
2404
        return new shareEntities_args();
2405
      }
2406
 
2407
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2408
        shareEntities_result result = new shareEntities_result();
2409
        try {
2410
          iface.shareEntities(args.entityIds, args.email);
2411
        } catch (HelperServiceException hse) {
2412
          result.hse = hse;
2413
        }
2414
        return result;
2415
      }
2416
    }
2417
 
4693 mandeep.dh 2418
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2419
      public getAgents() {
2420
        super("getAgents");
2421
      }
2422
 
2423
      protected getAgents_args getEmptyArgsInstance() {
2424
        return new getAgents_args();
2425
      }
2426
 
2427
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2428
        getAgents_result result = new getAgents_result();
2429
        result.success = iface.getAgents();
2430
        return result;
2431
      }
2432
    }
2433
 
2434
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2435
      public validateLogIn() {
2436
        super("validateLogIn");
2437
      }
2438
 
2439
      protected validateLogIn_args getEmptyArgsInstance() {
2440
        return new validateLogIn_args();
2441
      }
2442
 
2443
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2444
        validateLogIn_result result = new validateLogIn_result();
2445
        result.success = iface.validateLogIn(args.emailId, args.password);
2446
        result.setSuccessIsSet(true);
2447
        return result;
2448
      }
2449
    }
2450
 
2451
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2452
      public updatePasswordForAgent() {
2453
        super("updatePasswordForAgent");
2454
      }
2455
 
2456
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2457
        return new updatePasswordForAgent_args();
2458
      }
2459
 
2460
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2461
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2462
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2463
        return result;
2464
      }
2465
    }
2466
 
2467
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2468
      public getRoleNamesForAgent() {
2469
        super("getRoleNamesForAgent");
2470
      }
2471
 
2472
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2473
        return new getRoleNamesForAgent_args();
2474
      }
2475
 
2476
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2477
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2478
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2479
        return result;
2480
      }
2481
    }
2482
 
2483
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2484
      public getPermissionsForRoleName() {
2485
        super("getPermissionsForRoleName");
2486
      }
2487
 
2488
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2489
        return new getPermissionsForRoleName_args();
2490
      }
2491
 
2492
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2493
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2494
        result.success = iface.getPermissionsForRoleName(args.roleName);
2495
        return result;
2496
      }
2497
    }
2498
 
4806 varun.gupt 2499
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2500
      public saveQuickLink() {
2501
        super("saveQuickLink");
2502
      }
2503
 
2504
      protected saveQuickLink_args getEmptyArgsInstance() {
2505
        return new saveQuickLink_args();
2506
      }
2507
 
2508
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2509
        saveQuickLink_result result = new saveQuickLink_result();
2510
        try {
2511
          iface.saveQuickLink(args.url, args.text);
2512
        } catch (HelperServiceException hse) {
2513
          result.hse = hse;
2514
        }
2515
        return result;
2516
      }
2517
    }
2518
 
2519
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2520
      public getQuickLinks() {
2521
        super("getQuickLinks");
2522
      }
2523
 
2524
      protected getQuickLinks_args getEmptyArgsInstance() {
2525
        return new getQuickLinks_args();
2526
      }
2527
 
2528
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2529
        getQuickLinks_result result = new getQuickLinks_result();
2530
        try {
2531
          result.success = iface.getQuickLinks();
2532
        } catch (HelperServiceException hse) {
2533
          result.hse = hse;
2534
        }
2535
        return result;
2536
      }
2537
    }
2538
 
4996 varun.gupt 2539
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2540
      public updateQuickLink() {
2541
        super("updateQuickLink");
2542
      }
2543
 
2544
      protected updateQuickLink_args getEmptyArgsInstance() {
2545
        return new updateQuickLink_args();
2546
      }
2547
 
2548
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2549
        updateQuickLink_result result = new updateQuickLink_result();
2550
        try {
2551
          iface.updateQuickLink(args.id, args.url, args.text);
2552
        } catch (HelperServiceException hse) {
2553
          result.hse = hse;
2554
        }
2555
        return result;
2556
      }
2557
    }
2558
 
5055 varun.gupt 2559
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2560
      public getEmailsForNotificationsSent() {
2561
        super("getEmailsForNotificationsSent");
2562
      }
2563
 
2564
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2565
        return new getEmailsForNotificationsSent_args();
2566
      }
2567
 
2568
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2569
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2570
        try {
2571
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2572
        } catch (HelperServiceException hse) {
2573
          result.hse = hse;
2574
        }
2575
        return result;
2576
      }
2577
    }
2578
 
6322 amar.kumar 2579
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
2580
      public getOrderConfirmationMail() {
2581
        super("getOrderConfirmationMail");
2582
      }
2583
 
2584
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
2585
        return new getOrderConfirmationMail_args();
2586
      }
2587
 
2588
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
2589
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
2590
        result.success = iface.getOrderConfirmationMail(args.orderId);
2591
        return result;
2592
      }
2593
    }
2594
 
352 ashish 2595
  }
2596
 
3430 rajveer 2597
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2599
 
5864 rajveer 2600
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)1);
3430 rajveer 2601
    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);
2602
    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);
2603
    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);
2604
    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);
2605
    private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)6);
5864 rajveer 2606
    private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)7);
2607
    private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);
1395 varun.gupt 2608
 
5864 rajveer 2609
    private List<String> emailTo; // required
3430 rajveer 2610
    private String emailFrom; // required
2611
    private String subject; // required
2612
    private String body; // required
2613
    private String source; // required
2614
    private String emailType; // required
5864 rajveer 2615
    private List<String> cc; // required
2616
    private List<String> bcc; // required
1395 varun.gupt 2617
 
2618
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2619
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2620
      EMAIL_TO((short)1, "emailTo"),
2621
      EMAIL_FROM((short)2, "emailFrom"),
2622
      SUBJECT((short)3, "subject"),
2623
      BODY((short)4, "body"),
2624
      SOURCE((short)5, "source"),
5864 rajveer 2625
      EMAIL_TYPE((short)6, "emailType"),
2626
      CC((short)7, "cc"),
2627
      BCC((short)8, "bcc");
1395 varun.gupt 2628
 
2629
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2630
 
2631
      static {
2632
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2633
          byName.put(field.getFieldName(), field);
2634
        }
2635
      }
2636
 
2637
      /**
2638
       * Find the _Fields constant that matches fieldId, or null if its not found.
2639
       */
2640
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2641
        switch(fieldId) {
2642
          case 1: // EMAIL_TO
2643
            return EMAIL_TO;
2644
          case 2: // EMAIL_FROM
2645
            return EMAIL_FROM;
2646
          case 3: // SUBJECT
2647
            return SUBJECT;
2648
          case 4: // BODY
2649
            return BODY;
2650
          case 5: // SOURCE
2651
            return SOURCE;
2652
          case 6: // EMAIL_TYPE
2653
            return EMAIL_TYPE;
5864 rajveer 2654
          case 7: // CC
2655
            return CC;
2656
          case 8: // BCC
2657
            return BCC;
3430 rajveer 2658
          default:
2659
            return null;
2660
        }
1395 varun.gupt 2661
      }
2662
 
2663
      /**
2664
       * Find the _Fields constant that matches fieldId, throwing an exception
2665
       * if it is not found.
2666
       */
2667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2668
        _Fields fields = findByThriftId(fieldId);
2669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2670
        return fields;
2671
      }
2672
 
2673
      /**
2674
       * Find the _Fields constant that matches name, or null if its not found.
2675
       */
2676
      public static _Fields findByName(String name) {
2677
        return byName.get(name);
2678
      }
2679
 
2680
      private final short _thriftId;
2681
      private final String _fieldName;
2682
 
2683
      _Fields(short thriftId, String fieldName) {
2684
        _thriftId = thriftId;
2685
        _fieldName = fieldName;
2686
      }
2687
 
2688
      public short getThriftFieldId() {
2689
        return _thriftId;
2690
      }
2691
 
2692
      public String getFieldName() {
2693
        return _fieldName;
2694
      }
2695
    }
2696
 
2697
    // isset id assignments
2698
 
3430 rajveer 2699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2700
    static {
3430 rajveer 2701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2702
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 2703
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2704
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2705
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2707
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2708
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2709
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2711
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2713
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 2715
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2716
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2717
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2718
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2719
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2720
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2721
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2722
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2723
    }
2724
 
2725
    public saveUserEmailForSending_args() {
2726
    }
2727
 
2728
    public saveUserEmailForSending_args(
5864 rajveer 2729
      List<String> emailTo,
1395 varun.gupt 2730
      String emailFrom,
2731
      String subject,
2732
      String body,
2733
      String source,
5864 rajveer 2734
      String emailType,
2735
      List<String> cc,
2736
      List<String> bcc)
1395 varun.gupt 2737
    {
2738
      this();
2739
      this.emailTo = emailTo;
2740
      this.emailFrom = emailFrom;
2741
      this.subject = subject;
2742
      this.body = body;
2743
      this.source = source;
2744
      this.emailType = emailType;
5864 rajveer 2745
      this.cc = cc;
2746
      this.bcc = bcc;
1395 varun.gupt 2747
    }
2748
 
2749
    /**
2750
     * Performs a deep copy on <i>other</i>.
2751
     */
2752
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2753
      if (other.isSetEmailTo()) {
5864 rajveer 2754
        List<String> __this__emailTo = new ArrayList<String>();
2755
        for (String other_element : other.emailTo) {
2756
          __this__emailTo.add(other_element);
2757
        }
2758
        this.emailTo = __this__emailTo;
1395 varun.gupt 2759
      }
2760
      if (other.isSetEmailFrom()) {
2761
        this.emailFrom = other.emailFrom;
2762
      }
2763
      if (other.isSetSubject()) {
2764
        this.subject = other.subject;
2765
      }
2766
      if (other.isSetBody()) {
2767
        this.body = other.body;
2768
      }
2769
      if (other.isSetSource()) {
2770
        this.source = other.source;
2771
      }
2772
      if (other.isSetEmailType()) {
2773
        this.emailType = other.emailType;
2774
      }
5864 rajveer 2775
      if (other.isSetCc()) {
2776
        List<String> __this__cc = new ArrayList<String>();
2777
        for (String other_element : other.cc) {
2778
          __this__cc.add(other_element);
2779
        }
2780
        this.cc = __this__cc;
2781
      }
2782
      if (other.isSetBcc()) {
2783
        List<String> __this__bcc = new ArrayList<String>();
2784
        for (String other_element : other.bcc) {
2785
          __this__bcc.add(other_element);
2786
        }
2787
        this.bcc = __this__bcc;
2788
      }
1395 varun.gupt 2789
    }
2790
 
2791
    public saveUserEmailForSending_args deepCopy() {
2792
      return new saveUserEmailForSending_args(this);
2793
    }
2794
 
3430 rajveer 2795
    @Override
2796
    public void clear() {
2797
      this.emailTo = null;
2798
      this.emailFrom = null;
2799
      this.subject = null;
2800
      this.body = null;
2801
      this.source = null;
2802
      this.emailType = null;
5864 rajveer 2803
      this.cc = null;
2804
      this.bcc = null;
1395 varun.gupt 2805
    }
2806
 
5864 rajveer 2807
    public int getEmailToSize() {
2808
      return (this.emailTo == null) ? 0 : this.emailTo.size();
2809
    }
2810
 
2811
    public java.util.Iterator<String> getEmailToIterator() {
2812
      return (this.emailTo == null) ? null : this.emailTo.iterator();
2813
    }
2814
 
2815
    public void addToEmailTo(String elem) {
2816
      if (this.emailTo == null) {
2817
        this.emailTo = new ArrayList<String>();
2818
      }
2819
      this.emailTo.add(elem);
2820
    }
2821
 
2822
    public List<String> getEmailTo() {
1395 varun.gupt 2823
      return this.emailTo;
2824
    }
2825
 
5864 rajveer 2826
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 2827
      this.emailTo = emailTo;
2828
    }
2829
 
2830
    public void unsetEmailTo() {
2831
      this.emailTo = null;
2832
    }
2833
 
3430 rajveer 2834
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2835
    public boolean isSetEmailTo() {
2836
      return this.emailTo != null;
2837
    }
2838
 
2839
    public void setEmailToIsSet(boolean value) {
2840
      if (!value) {
2841
        this.emailTo = null;
2842
      }
2843
    }
2844
 
2845
    public String getEmailFrom() {
2846
      return this.emailFrom;
2847
    }
2848
 
3430 rajveer 2849
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2850
      this.emailFrom = emailFrom;
2851
    }
2852
 
2853
    public void unsetEmailFrom() {
2854
      this.emailFrom = null;
2855
    }
2856
 
3430 rajveer 2857
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2858
    public boolean isSetEmailFrom() {
2859
      return this.emailFrom != null;
2860
    }
2861
 
2862
    public void setEmailFromIsSet(boolean value) {
2863
      if (!value) {
2864
        this.emailFrom = null;
2865
      }
2866
    }
2867
 
2868
    public String getSubject() {
2869
      return this.subject;
2870
    }
2871
 
3430 rajveer 2872
    public void setSubject(String subject) {
1395 varun.gupt 2873
      this.subject = subject;
2874
    }
2875
 
2876
    public void unsetSubject() {
2877
      this.subject = null;
2878
    }
2879
 
3430 rajveer 2880
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2881
    public boolean isSetSubject() {
2882
      return this.subject != null;
2883
    }
2884
 
2885
    public void setSubjectIsSet(boolean value) {
2886
      if (!value) {
2887
        this.subject = null;
2888
      }
2889
    }
2890
 
2891
    public String getBody() {
2892
      return this.body;
2893
    }
2894
 
3430 rajveer 2895
    public void setBody(String body) {
1395 varun.gupt 2896
      this.body = body;
2897
    }
2898
 
2899
    public void unsetBody() {
2900
      this.body = null;
2901
    }
2902
 
3430 rajveer 2903
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2904
    public boolean isSetBody() {
2905
      return this.body != null;
2906
    }
2907
 
2908
    public void setBodyIsSet(boolean value) {
2909
      if (!value) {
2910
        this.body = null;
2911
      }
2912
    }
2913
 
2914
    public String getSource() {
2915
      return this.source;
2916
    }
2917
 
3430 rajveer 2918
    public void setSource(String source) {
1395 varun.gupt 2919
      this.source = source;
2920
    }
2921
 
2922
    public void unsetSource() {
2923
      this.source = null;
2924
    }
2925
 
3430 rajveer 2926
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2927
    public boolean isSetSource() {
2928
      return this.source != null;
2929
    }
2930
 
2931
    public void setSourceIsSet(boolean value) {
2932
      if (!value) {
2933
        this.source = null;
2934
      }
2935
    }
2936
 
2937
    public String getEmailType() {
2938
      return this.emailType;
2939
    }
2940
 
3430 rajveer 2941
    public void setEmailType(String emailType) {
1395 varun.gupt 2942
      this.emailType = emailType;
2943
    }
2944
 
2945
    public void unsetEmailType() {
2946
      this.emailType = null;
2947
    }
2948
 
3430 rajveer 2949
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2950
    public boolean isSetEmailType() {
2951
      return this.emailType != null;
2952
    }
2953
 
2954
    public void setEmailTypeIsSet(boolean value) {
2955
      if (!value) {
2956
        this.emailType = null;
2957
      }
2958
    }
2959
 
5864 rajveer 2960
    public int getCcSize() {
2961
      return (this.cc == null) ? 0 : this.cc.size();
2962
    }
2963
 
2964
    public java.util.Iterator<String> getCcIterator() {
2965
      return (this.cc == null) ? null : this.cc.iterator();
2966
    }
2967
 
2968
    public void addToCc(String elem) {
2969
      if (this.cc == null) {
2970
        this.cc = new ArrayList<String>();
2971
      }
2972
      this.cc.add(elem);
2973
    }
2974
 
2975
    public List<String> getCc() {
2976
      return this.cc;
2977
    }
2978
 
2979
    public void setCc(List<String> cc) {
2980
      this.cc = cc;
2981
    }
2982
 
2983
    public void unsetCc() {
2984
      this.cc = null;
2985
    }
2986
 
2987
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
2988
    public boolean isSetCc() {
2989
      return this.cc != null;
2990
    }
2991
 
2992
    public void setCcIsSet(boolean value) {
2993
      if (!value) {
2994
        this.cc = null;
2995
      }
2996
    }
2997
 
2998
    public int getBccSize() {
2999
      return (this.bcc == null) ? 0 : this.bcc.size();
3000
    }
3001
 
3002
    public java.util.Iterator<String> getBccIterator() {
3003
      return (this.bcc == null) ? null : this.bcc.iterator();
3004
    }
3005
 
3006
    public void addToBcc(String elem) {
3007
      if (this.bcc == null) {
3008
        this.bcc = new ArrayList<String>();
3009
      }
3010
      this.bcc.add(elem);
3011
    }
3012
 
3013
    public List<String> getBcc() {
3014
      return this.bcc;
3015
    }
3016
 
3017
    public void setBcc(List<String> bcc) {
3018
      this.bcc = bcc;
3019
    }
3020
 
3021
    public void unsetBcc() {
3022
      this.bcc = null;
3023
    }
3024
 
3025
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
3026
    public boolean isSetBcc() {
3027
      return this.bcc != null;
3028
    }
3029
 
3030
    public void setBccIsSet(boolean value) {
3031
      if (!value) {
3032
        this.bcc = null;
3033
      }
3034
    }
3035
 
1395 varun.gupt 3036
    public void setFieldValue(_Fields field, Object value) {
3037
      switch (field) {
3038
      case EMAIL_TO:
3039
        if (value == null) {
3040
          unsetEmailTo();
3041
        } else {
5864 rajveer 3042
          setEmailTo((List<String>)value);
1395 varun.gupt 3043
        }
3044
        break;
3045
 
3046
      case EMAIL_FROM:
3047
        if (value == null) {
3048
          unsetEmailFrom();
3049
        } else {
3050
          setEmailFrom((String)value);
3051
        }
3052
        break;
3053
 
3054
      case SUBJECT:
3055
        if (value == null) {
3056
          unsetSubject();
3057
        } else {
3058
          setSubject((String)value);
3059
        }
3060
        break;
3061
 
3062
      case BODY:
3063
        if (value == null) {
3064
          unsetBody();
3065
        } else {
3066
          setBody((String)value);
3067
        }
3068
        break;
3069
 
3070
      case SOURCE:
3071
        if (value == null) {
3072
          unsetSource();
3073
        } else {
3074
          setSource((String)value);
3075
        }
3076
        break;
3077
 
3078
      case EMAIL_TYPE:
3079
        if (value == null) {
3080
          unsetEmailType();
3081
        } else {
3082
          setEmailType((String)value);
3083
        }
3084
        break;
3085
 
5864 rajveer 3086
      case CC:
3087
        if (value == null) {
3088
          unsetCc();
3089
        } else {
3090
          setCc((List<String>)value);
3091
        }
3092
        break;
3093
 
3094
      case BCC:
3095
        if (value == null) {
3096
          unsetBcc();
3097
        } else {
3098
          setBcc((List<String>)value);
3099
        }
3100
        break;
3101
 
1395 varun.gupt 3102
      }
3103
    }
3104
 
3105
    public Object getFieldValue(_Fields field) {
3106
      switch (field) {
3107
      case EMAIL_TO:
3108
        return getEmailTo();
3109
 
3110
      case EMAIL_FROM:
3111
        return getEmailFrom();
3112
 
3113
      case SUBJECT:
3114
        return getSubject();
3115
 
3116
      case BODY:
3117
        return getBody();
3118
 
3119
      case SOURCE:
3120
        return getSource();
3121
 
3122
      case EMAIL_TYPE:
3123
        return getEmailType();
3124
 
5864 rajveer 3125
      case CC:
3126
        return getCc();
3127
 
3128
      case BCC:
3129
        return getBcc();
3130
 
1395 varun.gupt 3131
      }
3132
      throw new IllegalStateException();
3133
    }
3134
 
3430 rajveer 3135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3136
    public boolean isSet(_Fields field) {
3137
      if (field == null) {
3138
        throw new IllegalArgumentException();
3139
      }
1395 varun.gupt 3140
 
3141
      switch (field) {
3142
      case EMAIL_TO:
3143
        return isSetEmailTo();
3144
      case EMAIL_FROM:
3145
        return isSetEmailFrom();
3146
      case SUBJECT:
3147
        return isSetSubject();
3148
      case BODY:
3149
        return isSetBody();
3150
      case SOURCE:
3151
        return isSetSource();
3152
      case EMAIL_TYPE:
3153
        return isSetEmailType();
5864 rajveer 3154
      case CC:
3155
        return isSetCc();
3156
      case BCC:
3157
        return isSetBcc();
1395 varun.gupt 3158
      }
3159
      throw new IllegalStateException();
3160
    }
3161
 
3162
    @Override
3163
    public boolean equals(Object that) {
3164
      if (that == null)
3165
        return false;
3166
      if (that instanceof saveUserEmailForSending_args)
3167
        return this.equals((saveUserEmailForSending_args)that);
3168
      return false;
3169
    }
3170
 
3171
    public boolean equals(saveUserEmailForSending_args that) {
3172
      if (that == null)
3173
        return false;
3174
 
3175
      boolean this_present_emailTo = true && this.isSetEmailTo();
3176
      boolean that_present_emailTo = true && that.isSetEmailTo();
3177
      if (this_present_emailTo || that_present_emailTo) {
3178
        if (!(this_present_emailTo && that_present_emailTo))
3179
          return false;
3180
        if (!this.emailTo.equals(that.emailTo))
3181
          return false;
3182
      }
3183
 
3184
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
3185
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
3186
      if (this_present_emailFrom || that_present_emailFrom) {
3187
        if (!(this_present_emailFrom && that_present_emailFrom))
3188
          return false;
3189
        if (!this.emailFrom.equals(that.emailFrom))
3190
          return false;
3191
      }
3192
 
3193
      boolean this_present_subject = true && this.isSetSubject();
3194
      boolean that_present_subject = true && that.isSetSubject();
3195
      if (this_present_subject || that_present_subject) {
3196
        if (!(this_present_subject && that_present_subject))
3197
          return false;
3198
        if (!this.subject.equals(that.subject))
3199
          return false;
3200
      }
3201
 
3202
      boolean this_present_body = true && this.isSetBody();
3203
      boolean that_present_body = true && that.isSetBody();
3204
      if (this_present_body || that_present_body) {
3205
        if (!(this_present_body && that_present_body))
3206
          return false;
3207
        if (!this.body.equals(that.body))
3208
          return false;
3209
      }
3210
 
3211
      boolean this_present_source = true && this.isSetSource();
3212
      boolean that_present_source = true && that.isSetSource();
3213
      if (this_present_source || that_present_source) {
3214
        if (!(this_present_source && that_present_source))
3215
          return false;
3216
        if (!this.source.equals(that.source))
3217
          return false;
3218
      }
3219
 
3220
      boolean this_present_emailType = true && this.isSetEmailType();
3221
      boolean that_present_emailType = true && that.isSetEmailType();
3222
      if (this_present_emailType || that_present_emailType) {
3223
        if (!(this_present_emailType && that_present_emailType))
3224
          return false;
3225
        if (!this.emailType.equals(that.emailType))
3226
          return false;
3227
      }
3228
 
5864 rajveer 3229
      boolean this_present_cc = true && this.isSetCc();
3230
      boolean that_present_cc = true && that.isSetCc();
3231
      if (this_present_cc || that_present_cc) {
3232
        if (!(this_present_cc && that_present_cc))
3233
          return false;
3234
        if (!this.cc.equals(that.cc))
3235
          return false;
3236
      }
3237
 
3238
      boolean this_present_bcc = true && this.isSetBcc();
3239
      boolean that_present_bcc = true && that.isSetBcc();
3240
      if (this_present_bcc || that_present_bcc) {
3241
        if (!(this_present_bcc && that_present_bcc))
3242
          return false;
3243
        if (!this.bcc.equals(that.bcc))
3244
          return false;
3245
      }
3246
 
1395 varun.gupt 3247
      return true;
3248
    }
3249
 
3250
    @Override
3251
    public int hashCode() {
3252
      return 0;
3253
    }
3254
 
3255
    public int compareTo(saveUserEmailForSending_args other) {
3256
      if (!getClass().equals(other.getClass())) {
3257
        return getClass().getName().compareTo(other.getClass().getName());
3258
      }
3259
 
3260
      int lastComparison = 0;
3261
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3262
 
3430 rajveer 3263
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3264
      if (lastComparison != 0) {
3265
        return lastComparison;
3266
      }
3430 rajveer 3267
      if (isSetEmailTo()) {
3268
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3269
        if (lastComparison != 0) {
3270
          return lastComparison;
3271
        }
1395 varun.gupt 3272
      }
3430 rajveer 3273
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3274
      if (lastComparison != 0) {
3275
        return lastComparison;
3276
      }
3430 rajveer 3277
      if (isSetEmailFrom()) {
3278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3279
        if (lastComparison != 0) {
3280
          return lastComparison;
3281
        }
1395 varun.gupt 3282
      }
3430 rajveer 3283
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3284
      if (lastComparison != 0) {
3285
        return lastComparison;
3286
      }
3430 rajveer 3287
      if (isSetSubject()) {
3288
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3289
        if (lastComparison != 0) {
3290
          return lastComparison;
3291
        }
1395 varun.gupt 3292
      }
3430 rajveer 3293
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3294
      if (lastComparison != 0) {
3295
        return lastComparison;
3296
      }
3430 rajveer 3297
      if (isSetBody()) {
3298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3299
        if (lastComparison != 0) {
3300
          return lastComparison;
3301
        }
1395 varun.gupt 3302
      }
3430 rajveer 3303
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3304
      if (lastComparison != 0) {
3305
        return lastComparison;
3306
      }
3430 rajveer 3307
      if (isSetSource()) {
3308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3309
        if (lastComparison != 0) {
3310
          return lastComparison;
3311
        }
1395 varun.gupt 3312
      }
3430 rajveer 3313
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3314
      if (lastComparison != 0) {
3315
        return lastComparison;
3316
      }
3430 rajveer 3317
      if (isSetEmailType()) {
3318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3319
        if (lastComparison != 0) {
3320
          return lastComparison;
3321
        }
1395 varun.gupt 3322
      }
5864 rajveer 3323
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
3324
      if (lastComparison != 0) {
3325
        return lastComparison;
3326
      }
3327
      if (isSetCc()) {
3328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
3329
        if (lastComparison != 0) {
3330
          return lastComparison;
3331
        }
3332
      }
3333
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
3334
      if (lastComparison != 0) {
3335
        return lastComparison;
3336
      }
3337
      if (isSetBcc()) {
3338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
3339
        if (lastComparison != 0) {
3340
          return lastComparison;
3341
        }
3342
      }
1395 varun.gupt 3343
      return 0;
3344
    }
3345
 
3430 rajveer 3346
    public _Fields fieldForId(int fieldId) {
3347
      return _Fields.findByThriftId(fieldId);
3348
    }
3349
 
3350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3351
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3352
      iprot.readStructBegin();
3353
      while (true)
3354
      {
3355
        field = iprot.readFieldBegin();
3430 rajveer 3356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3357
          break;
3358
        }
3430 rajveer 3359
        switch (field.id) {
3360
          case 1: // EMAIL_TO
5864 rajveer 3361
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3362
              {
3363
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
3364
                this.emailTo = new ArrayList<String>(_list20.size);
3365
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3366
                {
3367
                  String _elem22; // required
3368
                  _elem22 = iprot.readString();
3369
                  this.emailTo.add(_elem22);
3370
                }
3371
                iprot.readListEnd();
3372
              }
3430 rajveer 3373
            } else { 
3374
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3375
            }
3376
            break;
3377
          case 2: // EMAIL_FROM
3378
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3379
              this.emailFrom = iprot.readString();
3380
            } else { 
3381
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3382
            }
3383
            break;
3384
          case 3: // SUBJECT
3385
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3386
              this.subject = iprot.readString();
3387
            } else { 
3388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3389
            }
3390
            break;
3391
          case 4: // BODY
3392
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3393
              this.body = iprot.readString();
3394
            } else { 
3395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3396
            }
3397
            break;
3398
          case 5: // SOURCE
3399
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3400
              this.source = iprot.readString();
3401
            } else { 
3402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3403
            }
3404
            break;
3405
          case 6: // EMAIL_TYPE
3406
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3407
              this.emailType = iprot.readString();
3408
            } else { 
3409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3410
            }
3411
            break;
5864 rajveer 3412
          case 7: // CC
3413
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3414
              {
3415
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
3416
                this.cc = new ArrayList<String>(_list23.size);
3417
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
3418
                {
3419
                  String _elem25; // required
3420
                  _elem25 = iprot.readString();
3421
                  this.cc.add(_elem25);
3422
                }
3423
                iprot.readListEnd();
3424
              }
3425
            } else { 
3426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427
            }
3428
            break;
3429
          case 8: // BCC
3430
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3431
              {
3432
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
3433
                this.bcc = new ArrayList<String>(_list26.size);
3434
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3435
                {
3436
                  String _elem28; // required
3437
                  _elem28 = iprot.readString();
3438
                  this.bcc.add(_elem28);
3439
                }
3440
                iprot.readListEnd();
3441
              }
3442
            } else { 
3443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3444
            }
3445
            break;
3430 rajveer 3446
          default:
3447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3448
        }
3430 rajveer 3449
        iprot.readFieldEnd();
1395 varun.gupt 3450
      }
3451
      iprot.readStructEnd();
3452
      validate();
3453
    }
3454
 
3430 rajveer 3455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3456
      validate();
3457
 
3458
      oprot.writeStructBegin(STRUCT_DESC);
3459
      if (this.emailTo != null) {
3460
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 3461
        {
3462
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
3463
          for (String _iter29 : this.emailTo)
3464
          {
3465
            oprot.writeString(_iter29);
3466
          }
3467
          oprot.writeListEnd();
3468
        }
1395 varun.gupt 3469
        oprot.writeFieldEnd();
3470
      }
3471
      if (this.emailFrom != null) {
3472
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3473
        oprot.writeString(this.emailFrom);
3474
        oprot.writeFieldEnd();
3475
      }
3476
      if (this.subject != null) {
3477
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3478
        oprot.writeString(this.subject);
3479
        oprot.writeFieldEnd();
3480
      }
3481
      if (this.body != null) {
3482
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3483
        oprot.writeString(this.body);
3484
        oprot.writeFieldEnd();
3485
      }
3486
      if (this.source != null) {
3487
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3488
        oprot.writeString(this.source);
3489
        oprot.writeFieldEnd();
3490
      }
3491
      if (this.emailType != null) {
3492
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3493
        oprot.writeString(this.emailType);
3494
        oprot.writeFieldEnd();
3495
      }
5864 rajveer 3496
      if (this.cc != null) {
3497
        oprot.writeFieldBegin(CC_FIELD_DESC);
3498
        {
3499
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
3500
          for (String _iter30 : this.cc)
3501
          {
3502
            oprot.writeString(_iter30);
3503
          }
3504
          oprot.writeListEnd();
3505
        }
3506
        oprot.writeFieldEnd();
3507
      }
3508
      if (this.bcc != null) {
3509
        oprot.writeFieldBegin(BCC_FIELD_DESC);
3510
        {
3511
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
3512
          for (String _iter31 : this.bcc)
3513
          {
3514
            oprot.writeString(_iter31);
3515
          }
3516
          oprot.writeListEnd();
3517
        }
3518
        oprot.writeFieldEnd();
3519
      }
1395 varun.gupt 3520
      oprot.writeFieldStop();
3521
      oprot.writeStructEnd();
3522
    }
3523
 
3524
    @Override
3525
    public String toString() {
3526
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3527
      boolean first = true;
3528
 
3529
      sb.append("emailTo:");
3530
      if (this.emailTo == null) {
3531
        sb.append("null");
3532
      } else {
3533
        sb.append(this.emailTo);
3534
      }
3535
      first = false;
3536
      if (!first) sb.append(", ");
3537
      sb.append("emailFrom:");
3538
      if (this.emailFrom == null) {
3539
        sb.append("null");
3540
      } else {
3541
        sb.append(this.emailFrom);
3542
      }
3543
      first = false;
3544
      if (!first) sb.append(", ");
3545
      sb.append("subject:");
3546
      if (this.subject == null) {
3547
        sb.append("null");
3548
      } else {
3549
        sb.append(this.subject);
3550
      }
3551
      first = false;
3552
      if (!first) sb.append(", ");
3553
      sb.append("body:");
3554
      if (this.body == null) {
3555
        sb.append("null");
3556
      } else {
3557
        sb.append(this.body);
3558
      }
3559
      first = false;
3560
      if (!first) sb.append(", ");
3561
      sb.append("source:");
3562
      if (this.source == null) {
3563
        sb.append("null");
3564
      } else {
3565
        sb.append(this.source);
3566
      }
3567
      first = false;
3568
      if (!first) sb.append(", ");
3569
      sb.append("emailType:");
3570
      if (this.emailType == null) {
3571
        sb.append("null");
3572
      } else {
3573
        sb.append(this.emailType);
3574
      }
3575
      first = false;
5864 rajveer 3576
      if (!first) sb.append(", ");
3577
      sb.append("cc:");
3578
      if (this.cc == null) {
3579
        sb.append("null");
3580
      } else {
3581
        sb.append(this.cc);
3582
      }
3583
      first = false;
3584
      if (!first) sb.append(", ");
3585
      sb.append("bcc:");
3586
      if (this.bcc == null) {
3587
        sb.append("null");
3588
      } else {
3589
        sb.append(this.bcc);
3590
      }
3591
      first = false;
1395 varun.gupt 3592
      sb.append(")");
3593
      return sb.toString();
3594
    }
3595
 
3430 rajveer 3596
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3597
      // check for required fields
3598
    }
3599
 
3430 rajveer 3600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3601
      try {
3602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3603
      } catch (org.apache.thrift.TException te) {
3604
        throw new java.io.IOException(te);
3605
      }
3606
    }
3607
 
3608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3609
      try {
3610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3611
      } catch (org.apache.thrift.TException te) {
3612
        throw new java.io.IOException(te);
3613
      }
3614
    }
3615
 
1395 varun.gupt 3616
  }
3617
 
3430 rajveer 3618
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3620
 
3430 rajveer 3621
    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);
3622
    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 3623
 
3430 rajveer 3624
    private long success; // required
3625
    private HelperServiceException se; // required
1395 varun.gupt 3626
 
3627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3629
      SUCCESS((short)0, "success"),
1395 varun.gupt 3630
      SE((short)1, "se");
3631
 
3632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3633
 
3634
      static {
3635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3636
          byName.put(field.getFieldName(), field);
3637
        }
3638
      }
3639
 
3640
      /**
3641
       * Find the _Fields constant that matches fieldId, or null if its not found.
3642
       */
3643
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3644
        switch(fieldId) {
3645
          case 0: // SUCCESS
3646
            return SUCCESS;
3647
          case 1: // SE
3648
            return SE;
3649
          default:
3650
            return null;
3651
        }
1395 varun.gupt 3652
      }
3653
 
3654
      /**
3655
       * Find the _Fields constant that matches fieldId, throwing an exception
3656
       * if it is not found.
3657
       */
3658
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3659
        _Fields fields = findByThriftId(fieldId);
3660
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3661
        return fields;
3662
      }
3663
 
3664
      /**
3665
       * Find the _Fields constant that matches name, or null if its not found.
3666
       */
3667
      public static _Fields findByName(String name) {
3668
        return byName.get(name);
3669
      }
3670
 
3671
      private final short _thriftId;
3672
      private final String _fieldName;
3673
 
3674
      _Fields(short thriftId, String fieldName) {
3675
        _thriftId = thriftId;
3676
        _fieldName = fieldName;
3677
      }
3678
 
3679
      public short getThriftFieldId() {
3680
        return _thriftId;
3681
      }
3682
 
3683
      public String getFieldName() {
3684
        return _fieldName;
3685
      }
3686
    }
3687
 
3688
    // isset id assignments
3206 mandeep.dh 3689
    private static final int __SUCCESS_ISSET_ID = 0;
3690
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3691
 
3430 rajveer 3692
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3693
    static {
3430 rajveer 3694
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3695
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3697
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3699
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3700
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3701
    }
3702
 
3703
    public saveUserEmailForSending_result() {
3704
    }
3705
 
3706
    public saveUserEmailForSending_result(
3206 mandeep.dh 3707
      long success,
1395 varun.gupt 3708
      HelperServiceException se)
3709
    {
3710
      this();
3206 mandeep.dh 3711
      this.success = success;
3712
      setSuccessIsSet(true);
1395 varun.gupt 3713
      this.se = se;
3714
    }
3715
 
3716
    /**
3717
     * Performs a deep copy on <i>other</i>.
3718
     */
3719
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3720
      __isset_bit_vector.clear();
3721
      __isset_bit_vector.or(other.__isset_bit_vector);
3722
      this.success = other.success;
1395 varun.gupt 3723
      if (other.isSetSe()) {
3724
        this.se = new HelperServiceException(other.se);
3725
      }
3726
    }
3727
 
3728
    public saveUserEmailForSending_result deepCopy() {
3729
      return new saveUserEmailForSending_result(this);
3730
    }
3731
 
3430 rajveer 3732
    @Override
3733
    public void clear() {
3734
      setSuccessIsSet(false);
3735
      this.success = 0;
3736
      this.se = null;
1395 varun.gupt 3737
    }
3738
 
3206 mandeep.dh 3739
    public long getSuccess() {
3740
      return this.success;
3741
    }
3742
 
3430 rajveer 3743
    public void setSuccess(long success) {
3206 mandeep.dh 3744
      this.success = success;
3745
      setSuccessIsSet(true);
3746
    }
3747
 
3748
    public void unsetSuccess() {
3749
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3750
    }
3751
 
3430 rajveer 3752
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3753
    public boolean isSetSuccess() {
3754
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3755
    }
3756
 
3757
    public void setSuccessIsSet(boolean value) {
3758
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3759
    }
3760
 
1395 varun.gupt 3761
    public HelperServiceException getSe() {
3762
      return this.se;
3763
    }
3764
 
3430 rajveer 3765
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3766
      this.se = se;
3767
    }
3768
 
3769
    public void unsetSe() {
3770
      this.se = null;
3771
    }
3772
 
3430 rajveer 3773
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3774
    public boolean isSetSe() {
3775
      return this.se != null;
3776
    }
3777
 
3778
    public void setSeIsSet(boolean value) {
3779
      if (!value) {
3780
        this.se = null;
3781
      }
3782
    }
3783
 
3784
    public void setFieldValue(_Fields field, Object value) {
3785
      switch (field) {
3206 mandeep.dh 3786
      case SUCCESS:
3787
        if (value == null) {
3788
          unsetSuccess();
3789
        } else {
3790
          setSuccess((Long)value);
3791
        }
3792
        break;
3793
 
1395 varun.gupt 3794
      case SE:
3795
        if (value == null) {
3796
          unsetSe();
3797
        } else {
3798
          setSe((HelperServiceException)value);
3799
        }
3800
        break;
3801
 
3802
      }
3803
    }
3804
 
3805
    public Object getFieldValue(_Fields field) {
3806
      switch (field) {
3206 mandeep.dh 3807
      case SUCCESS:
3430 rajveer 3808
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3809
 
1395 varun.gupt 3810
      case SE:
3811
        return getSe();
3812
 
3813
      }
3814
      throw new IllegalStateException();
3815
    }
3816
 
3430 rajveer 3817
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3818
    public boolean isSet(_Fields field) {
3819
      if (field == null) {
3820
        throw new IllegalArgumentException();
3821
      }
1395 varun.gupt 3822
 
3823
      switch (field) {
3206 mandeep.dh 3824
      case SUCCESS:
3825
        return isSetSuccess();
1395 varun.gupt 3826
      case SE:
3827
        return isSetSe();
3828
      }
3829
      throw new IllegalStateException();
3830
    }
3831
 
3832
    @Override
3833
    public boolean equals(Object that) {
3834
      if (that == null)
3835
        return false;
3836
      if (that instanceof saveUserEmailForSending_result)
3837
        return this.equals((saveUserEmailForSending_result)that);
3838
      return false;
3839
    }
3840
 
3841
    public boolean equals(saveUserEmailForSending_result that) {
3842
      if (that == null)
3843
        return false;
3844
 
3206 mandeep.dh 3845
      boolean this_present_success = true;
3846
      boolean that_present_success = true;
3847
      if (this_present_success || that_present_success) {
3848
        if (!(this_present_success && that_present_success))
3849
          return false;
3850
        if (this.success != that.success)
3851
          return false;
3852
      }
3853
 
1395 varun.gupt 3854
      boolean this_present_se = true && this.isSetSe();
3855
      boolean that_present_se = true && that.isSetSe();
3856
      if (this_present_se || that_present_se) {
3857
        if (!(this_present_se && that_present_se))
3858
          return false;
3859
        if (!this.se.equals(that.se))
3860
          return false;
3861
      }
3862
 
3863
      return true;
3864
    }
3865
 
3866
    @Override
3867
    public int hashCode() {
3868
      return 0;
3869
    }
3870
 
3871
    public int compareTo(saveUserEmailForSending_result other) {
3872
      if (!getClass().equals(other.getClass())) {
3873
        return getClass().getName().compareTo(other.getClass().getName());
3874
      }
3875
 
3876
      int lastComparison = 0;
3877
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3878
 
3430 rajveer 3879
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3880
      if (lastComparison != 0) {
3881
        return lastComparison;
3882
      }
3430 rajveer 3883
      if (isSetSuccess()) {
3884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3885
        if (lastComparison != 0) {
3886
          return lastComparison;
3887
        }
3206 mandeep.dh 3888
      }
3430 rajveer 3889
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3890
      if (lastComparison != 0) {
3891
        return lastComparison;
3892
      }
3430 rajveer 3893
      if (isSetSe()) {
3894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3895
        if (lastComparison != 0) {
3896
          return lastComparison;
3897
        }
1395 varun.gupt 3898
      }
3899
      return 0;
3900
    }
3901
 
3430 rajveer 3902
    public _Fields fieldForId(int fieldId) {
3903
      return _Fields.findByThriftId(fieldId);
3904
    }
3905
 
3906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3907
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3908
      iprot.readStructBegin();
3909
      while (true)
3910
      {
3911
        field = iprot.readFieldBegin();
3430 rajveer 3912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3913
          break;
3914
        }
3430 rajveer 3915
        switch (field.id) {
3916
          case 0: // SUCCESS
3917
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3918
              this.success = iprot.readI64();
3919
              setSuccessIsSet(true);
3920
            } else { 
3921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3922
            }
3923
            break;
3924
          case 1: // SE
3925
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3926
              this.se = new HelperServiceException();
3927
              this.se.read(iprot);
3928
            } else { 
3929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3930
            }
3931
            break;
3932
          default:
3933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3934
        }
3430 rajveer 3935
        iprot.readFieldEnd();
1395 varun.gupt 3936
      }
3937
      iprot.readStructEnd();
3938
      validate();
3939
    }
3940
 
3430 rajveer 3941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3942
      oprot.writeStructBegin(STRUCT_DESC);
3943
 
3206 mandeep.dh 3944
      if (this.isSetSuccess()) {
3945
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3946
        oprot.writeI64(this.success);
3947
        oprot.writeFieldEnd();
3948
      } else if (this.isSetSe()) {
1395 varun.gupt 3949
        oprot.writeFieldBegin(SE_FIELD_DESC);
3950
        this.se.write(oprot);
3951
        oprot.writeFieldEnd();
3952
      }
3953
      oprot.writeFieldStop();
3954
      oprot.writeStructEnd();
3955
    }
3956
 
3957
    @Override
3958
    public String toString() {
3959
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3960
      boolean first = true;
3961
 
3206 mandeep.dh 3962
      sb.append("success:");
3963
      sb.append(this.success);
3964
      first = false;
3965
      if (!first) sb.append(", ");
1395 varun.gupt 3966
      sb.append("se:");
3967
      if (this.se == null) {
3968
        sb.append("null");
3969
      } else {
3970
        sb.append(this.se);
3971
      }
3972
      first = false;
3973
      sb.append(")");
3974
      return sb.toString();
3975
    }
3976
 
3430 rajveer 3977
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3978
      // check for required fields
3979
    }
3980
 
3430 rajveer 3981
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3982
      try {
3983
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3984
      } catch (org.apache.thrift.TException te) {
3985
        throw new java.io.IOException(te);
3986
      }
3987
    }
3988
 
3989
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3990
      try {
3991
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3992
      } catch (org.apache.thrift.TException te) {
3993
        throw new java.io.IOException(te);
3994
      }
3995
    }
3996
 
1395 varun.gupt 3997
  }
3998
 
3430 rajveer 3999
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
4000
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 4001
 
4002
 
4003
 
4004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 4006
;
1422 varun.gupt 4007
 
4008
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4009
 
4010
      static {
4011
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4012
          byName.put(field.getFieldName(), field);
4013
        }
4014
      }
4015
 
4016
      /**
4017
       * Find the _Fields constant that matches fieldId, or null if its not found.
4018
       */
4019
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4020
        switch(fieldId) {
4021
          default:
4022
            return null;
4023
        }
1422 varun.gupt 4024
      }
4025
 
4026
      /**
4027
       * Find the _Fields constant that matches fieldId, throwing an exception
4028
       * if it is not found.
4029
       */
4030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4031
        _Fields fields = findByThriftId(fieldId);
4032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4033
        return fields;
4034
      }
4035
 
4036
      /**
4037
       * Find the _Fields constant that matches name, or null if its not found.
4038
       */
4039
      public static _Fields findByName(String name) {
4040
        return byName.get(name);
4041
      }
4042
 
4043
      private final short _thriftId;
4044
      private final String _fieldName;
4045
 
4046
      _Fields(short thriftId, String fieldName) {
4047
        _thriftId = thriftId;
4048
        _fieldName = fieldName;
4049
      }
4050
 
4051
      public short getThriftFieldId() {
4052
        return _thriftId;
4053
      }
4054
 
4055
      public String getFieldName() {
4056
        return _fieldName;
4057
      }
4058
    }
3430 rajveer 4059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4060
    static {
3430 rajveer 4061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4062
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4063
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 4064
    }
4065
 
4066
    public getEmailsToBeSent_args() {
4067
    }
4068
 
4069
    /**
4070
     * Performs a deep copy on <i>other</i>.
4071
     */
4072
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
4073
    }
4074
 
4075
    public getEmailsToBeSent_args deepCopy() {
4076
      return new getEmailsToBeSent_args(this);
4077
    }
4078
 
3430 rajveer 4079
    @Override
4080
    public void clear() {
1422 varun.gupt 4081
    }
4082
 
4083
    public void setFieldValue(_Fields field, Object value) {
4084
      switch (field) {
4085
      }
4086
    }
4087
 
4088
    public Object getFieldValue(_Fields field) {
4089
      switch (field) {
4090
      }
4091
      throw new IllegalStateException();
4092
    }
4093
 
3430 rajveer 4094
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4095
    public boolean isSet(_Fields field) {
4096
      if (field == null) {
4097
        throw new IllegalArgumentException();
4098
      }
1422 varun.gupt 4099
 
4100
      switch (field) {
4101
      }
4102
      throw new IllegalStateException();
4103
    }
4104
 
4105
    @Override
4106
    public boolean equals(Object that) {
4107
      if (that == null)
4108
        return false;
4109
      if (that instanceof getEmailsToBeSent_args)
4110
        return this.equals((getEmailsToBeSent_args)that);
4111
      return false;
4112
    }
4113
 
4114
    public boolean equals(getEmailsToBeSent_args that) {
4115
      if (that == null)
4116
        return false;
4117
 
4118
      return true;
4119
    }
4120
 
4121
    @Override
4122
    public int hashCode() {
4123
      return 0;
4124
    }
4125
 
4126
    public int compareTo(getEmailsToBeSent_args other) {
4127
      if (!getClass().equals(other.getClass())) {
4128
        return getClass().getName().compareTo(other.getClass().getName());
4129
      }
4130
 
4131
      int lastComparison = 0;
4132
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
4133
 
4134
      return 0;
4135
    }
4136
 
3430 rajveer 4137
    public _Fields fieldForId(int fieldId) {
4138
      return _Fields.findByThriftId(fieldId);
4139
    }
4140
 
4141
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4142
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4143
      iprot.readStructBegin();
4144
      while (true)
4145
      {
4146
        field = iprot.readFieldBegin();
3430 rajveer 4147
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4148
          break;
4149
        }
3430 rajveer 4150
        switch (field.id) {
4151
          default:
4152
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4153
        }
3430 rajveer 4154
        iprot.readFieldEnd();
1422 varun.gupt 4155
      }
4156
      iprot.readStructEnd();
4157
      validate();
4158
    }
4159
 
3430 rajveer 4160
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4161
      validate();
4162
 
4163
      oprot.writeStructBegin(STRUCT_DESC);
4164
      oprot.writeFieldStop();
4165
      oprot.writeStructEnd();
4166
    }
4167
 
4168
    @Override
4169
    public String toString() {
4170
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
4171
      boolean first = true;
4172
 
4173
      sb.append(")");
4174
      return sb.toString();
4175
    }
4176
 
3430 rajveer 4177
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4178
      // check for required fields
4179
    }
4180
 
3430 rajveer 4181
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4182
      try {
4183
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4184
      } catch (org.apache.thrift.TException te) {
4185
        throw new java.io.IOException(te);
4186
      }
4187
    }
4188
 
4189
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4190
      try {
4191
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4192
      } catch (org.apache.thrift.TException te) {
4193
        throw new java.io.IOException(te);
4194
      }
4195
    }
4196
 
1422 varun.gupt 4197
  }
4198
 
3430 rajveer 4199
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
4200
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 4201
 
3430 rajveer 4202
    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);
4203
    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 4204
 
3430 rajveer 4205
    private List<UserEmail> success; // required
4206
    private HelperServiceException se; // required
1422 varun.gupt 4207
 
4208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4209
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4210
      SUCCESS((short)0, "success"),
4211
      SE((short)1, "se");
4212
 
4213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4214
 
4215
      static {
4216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4217
          byName.put(field.getFieldName(), field);
4218
        }
4219
      }
4220
 
4221
      /**
4222
       * Find the _Fields constant that matches fieldId, or null if its not found.
4223
       */
4224
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4225
        switch(fieldId) {
4226
          case 0: // SUCCESS
4227
            return SUCCESS;
4228
          case 1: // SE
4229
            return SE;
4230
          default:
4231
            return null;
4232
        }
1422 varun.gupt 4233
      }
4234
 
4235
      /**
4236
       * Find the _Fields constant that matches fieldId, throwing an exception
4237
       * if it is not found.
4238
       */
4239
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4240
        _Fields fields = findByThriftId(fieldId);
4241
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4242
        return fields;
4243
      }
4244
 
4245
      /**
4246
       * Find the _Fields constant that matches name, or null if its not found.
4247
       */
4248
      public static _Fields findByName(String name) {
4249
        return byName.get(name);
4250
      }
4251
 
4252
      private final short _thriftId;
4253
      private final String _fieldName;
4254
 
4255
      _Fields(short thriftId, String fieldName) {
4256
        _thriftId = thriftId;
4257
        _fieldName = fieldName;
4258
      }
4259
 
4260
      public short getThriftFieldId() {
4261
        return _thriftId;
4262
      }
4263
 
4264
      public String getFieldName() {
4265
        return _fieldName;
4266
      }
4267
    }
4268
 
4269
    // isset id assignments
4270
 
3430 rajveer 4271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4272
    static {
3430 rajveer 4273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4274
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4275
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4276
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
4277
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4279
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4280
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 4281
    }
4282
 
4283
    public getEmailsToBeSent_result() {
4284
    }
4285
 
4286
    public getEmailsToBeSent_result(
4287
      List<UserEmail> success,
4288
      HelperServiceException se)
4289
    {
4290
      this();
4291
      this.success = success;
4292
      this.se = se;
4293
    }
4294
 
4295
    /**
4296
     * Performs a deep copy on <i>other</i>.
4297
     */
4298
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
4299
      if (other.isSetSuccess()) {
4300
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
4301
        for (UserEmail other_element : other.success) {
4302
          __this__success.add(new UserEmail(other_element));
4303
        }
4304
        this.success = __this__success;
4305
      }
4306
      if (other.isSetSe()) {
4307
        this.se = new HelperServiceException(other.se);
4308
      }
4309
    }
4310
 
4311
    public getEmailsToBeSent_result deepCopy() {
4312
      return new getEmailsToBeSent_result(this);
4313
    }
4314
 
3430 rajveer 4315
    @Override
4316
    public void clear() {
4317
      this.success = null;
4318
      this.se = null;
1422 varun.gupt 4319
    }
4320
 
4321
    public int getSuccessSize() {
4322
      return (this.success == null) ? 0 : this.success.size();
4323
    }
4324
 
4325
    public java.util.Iterator<UserEmail> getSuccessIterator() {
4326
      return (this.success == null) ? null : this.success.iterator();
4327
    }
4328
 
4329
    public void addToSuccess(UserEmail elem) {
4330
      if (this.success == null) {
4331
        this.success = new ArrayList<UserEmail>();
4332
      }
4333
      this.success.add(elem);
4334
    }
4335
 
4336
    public List<UserEmail> getSuccess() {
4337
      return this.success;
4338
    }
4339
 
3430 rajveer 4340
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 4341
      this.success = success;
4342
    }
4343
 
4344
    public void unsetSuccess() {
4345
      this.success = null;
4346
    }
4347
 
3430 rajveer 4348
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4349
    public boolean isSetSuccess() {
4350
      return this.success != null;
4351
    }
4352
 
4353
    public void setSuccessIsSet(boolean value) {
4354
      if (!value) {
4355
        this.success = null;
4356
      }
4357
    }
4358
 
4359
    public HelperServiceException getSe() {
4360
      return this.se;
4361
    }
4362
 
3430 rajveer 4363
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4364
      this.se = se;
4365
    }
4366
 
4367
    public void unsetSe() {
4368
      this.se = null;
4369
    }
4370
 
3430 rajveer 4371
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4372
    public boolean isSetSe() {
4373
      return this.se != null;
4374
    }
4375
 
4376
    public void setSeIsSet(boolean value) {
4377
      if (!value) {
4378
        this.se = null;
4379
      }
4380
    }
4381
 
4382
    public void setFieldValue(_Fields field, Object value) {
4383
      switch (field) {
4384
      case SUCCESS:
4385
        if (value == null) {
4386
          unsetSuccess();
4387
        } else {
4388
          setSuccess((List<UserEmail>)value);
4389
        }
4390
        break;
4391
 
4392
      case SE:
4393
        if (value == null) {
4394
          unsetSe();
4395
        } else {
4396
          setSe((HelperServiceException)value);
4397
        }
4398
        break;
4399
 
4400
      }
4401
    }
4402
 
4403
    public Object getFieldValue(_Fields field) {
4404
      switch (field) {
4405
      case SUCCESS:
4406
        return getSuccess();
4407
 
4408
      case SE:
4409
        return getSe();
4410
 
4411
      }
4412
      throw new IllegalStateException();
4413
    }
4414
 
3430 rajveer 4415
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4416
    public boolean isSet(_Fields field) {
4417
      if (field == null) {
4418
        throw new IllegalArgumentException();
4419
      }
1422 varun.gupt 4420
 
4421
      switch (field) {
4422
      case SUCCESS:
4423
        return isSetSuccess();
4424
      case SE:
4425
        return isSetSe();
4426
      }
4427
      throw new IllegalStateException();
4428
    }
4429
 
4430
    @Override
4431
    public boolean equals(Object that) {
4432
      if (that == null)
4433
        return false;
4434
      if (that instanceof getEmailsToBeSent_result)
4435
        return this.equals((getEmailsToBeSent_result)that);
4436
      return false;
4437
    }
4438
 
4439
    public boolean equals(getEmailsToBeSent_result that) {
4440
      if (that == null)
4441
        return false;
4442
 
4443
      boolean this_present_success = true && this.isSetSuccess();
4444
      boolean that_present_success = true && that.isSetSuccess();
4445
      if (this_present_success || that_present_success) {
4446
        if (!(this_present_success && that_present_success))
4447
          return false;
4448
        if (!this.success.equals(that.success))
4449
          return false;
4450
      }
4451
 
4452
      boolean this_present_se = true && this.isSetSe();
4453
      boolean that_present_se = true && that.isSetSe();
4454
      if (this_present_se || that_present_se) {
4455
        if (!(this_present_se && that_present_se))
4456
          return false;
4457
        if (!this.se.equals(that.se))
4458
          return false;
4459
      }
4460
 
4461
      return true;
4462
    }
4463
 
4464
    @Override
4465
    public int hashCode() {
4466
      return 0;
4467
    }
4468
 
4469
    public int compareTo(getEmailsToBeSent_result other) {
4470
      if (!getClass().equals(other.getClass())) {
4471
        return getClass().getName().compareTo(other.getClass().getName());
4472
      }
4473
 
4474
      int lastComparison = 0;
4475
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4476
 
3430 rajveer 4477
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4478
      if (lastComparison != 0) {
4479
        return lastComparison;
4480
      }
3430 rajveer 4481
      if (isSetSuccess()) {
4482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4483
        if (lastComparison != 0) {
4484
          return lastComparison;
4485
        }
1422 varun.gupt 4486
      }
3430 rajveer 4487
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4488
      if (lastComparison != 0) {
4489
        return lastComparison;
4490
      }
3430 rajveer 4491
      if (isSetSe()) {
4492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4493
        if (lastComparison != 0) {
4494
          return lastComparison;
4495
        }
1422 varun.gupt 4496
      }
4497
      return 0;
4498
    }
4499
 
3430 rajveer 4500
    public _Fields fieldForId(int fieldId) {
4501
      return _Fields.findByThriftId(fieldId);
4502
    }
4503
 
4504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4505
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4506
      iprot.readStructBegin();
4507
      while (true)
4508
      {
4509
        field = iprot.readFieldBegin();
3430 rajveer 4510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4511
          break;
4512
        }
3430 rajveer 4513
        switch (field.id) {
4514
          case 0: // SUCCESS
4515
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4516
              {
5864 rajveer 4517
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4518
                this.success = new ArrayList<UserEmail>(_list32.size);
4519
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 4520
                {
5864 rajveer 4521
                  UserEmail _elem34; // required
4522
                  _elem34 = new UserEmail();
4523
                  _elem34.read(iprot);
4524
                  this.success.add(_elem34);
1422 varun.gupt 4525
                }
3430 rajveer 4526
                iprot.readListEnd();
1422 varun.gupt 4527
              }
3430 rajveer 4528
            } else { 
4529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4530
            }
4531
            break;
4532
          case 1: // SE
4533
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4534
              this.se = new HelperServiceException();
4535
              this.se.read(iprot);
4536
            } else { 
4537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4538
            }
4539
            break;
4540
          default:
4541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4542
        }
3430 rajveer 4543
        iprot.readFieldEnd();
1422 varun.gupt 4544
      }
4545
      iprot.readStructEnd();
4546
      validate();
4547
    }
4548
 
3430 rajveer 4549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4550
      oprot.writeStructBegin(STRUCT_DESC);
4551
 
4552
      if (this.isSetSuccess()) {
4553
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4554
        {
3430 rajveer 4555
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 4556
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 4557
          {
5864 rajveer 4558
            _iter35.write(oprot);
1422 varun.gupt 4559
          }
4560
          oprot.writeListEnd();
4561
        }
4562
        oprot.writeFieldEnd();
4563
      } else if (this.isSetSe()) {
4564
        oprot.writeFieldBegin(SE_FIELD_DESC);
4565
        this.se.write(oprot);
4566
        oprot.writeFieldEnd();
4567
      }
4568
      oprot.writeFieldStop();
4569
      oprot.writeStructEnd();
4570
    }
4571
 
4572
    @Override
4573
    public String toString() {
4574
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4575
      boolean first = true;
4576
 
4577
      sb.append("success:");
4578
      if (this.success == null) {
4579
        sb.append("null");
4580
      } else {
4581
        sb.append(this.success);
4582
      }
4583
      first = false;
4584
      if (!first) sb.append(", ");
4585
      sb.append("se:");
4586
      if (this.se == null) {
4587
        sb.append("null");
4588
      } else {
4589
        sb.append(this.se);
4590
      }
4591
      first = false;
4592
      sb.append(")");
4593
      return sb.toString();
4594
    }
4595
 
3430 rajveer 4596
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4597
      // check for required fields
4598
    }
4599
 
3430 rajveer 4600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4601
      try {
4602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4603
      } catch (org.apache.thrift.TException te) {
4604
        throw new java.io.IOException(te);
4605
      }
4606
    }
4607
 
4608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4609
      try {
4610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4611
      } catch (org.apache.thrift.TException te) {
4612
        throw new java.io.IOException(te);
4613
      }
4614
    }
4615
 
1422 varun.gupt 4616
  }
4617
 
3430 rajveer 4618
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4620
 
3430 rajveer 4621
    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 4622
 
3430 rajveer 4623
    private long emailId; // required
1422 varun.gupt 4624
 
4625
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4626
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4627
      EMAIL_ID((short)1, "emailId");
4628
 
4629
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4630
 
4631
      static {
4632
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4633
          byName.put(field.getFieldName(), field);
4634
        }
4635
      }
4636
 
4637
      /**
4638
       * Find the _Fields constant that matches fieldId, or null if its not found.
4639
       */
4640
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4641
        switch(fieldId) {
4642
          case 1: // EMAIL_ID
4643
            return EMAIL_ID;
4644
          default:
4645
            return null;
4646
        }
1422 varun.gupt 4647
      }
4648
 
4649
      /**
4650
       * Find the _Fields constant that matches fieldId, throwing an exception
4651
       * if it is not found.
4652
       */
4653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4654
        _Fields fields = findByThriftId(fieldId);
4655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4656
        return fields;
4657
      }
4658
 
4659
      /**
4660
       * Find the _Fields constant that matches name, or null if its not found.
4661
       */
4662
      public static _Fields findByName(String name) {
4663
        return byName.get(name);
4664
      }
4665
 
4666
      private final short _thriftId;
4667
      private final String _fieldName;
4668
 
4669
      _Fields(short thriftId, String fieldName) {
4670
        _thriftId = thriftId;
4671
        _fieldName = fieldName;
4672
      }
4673
 
4674
      public short getThriftFieldId() {
4675
        return _thriftId;
4676
      }
4677
 
4678
      public String getFieldName() {
4679
        return _fieldName;
4680
      }
4681
    }
4682
 
4683
    // isset id assignments
4684
    private static final int __EMAILID_ISSET_ID = 0;
4685
    private BitSet __isset_bit_vector = new BitSet(1);
4686
 
3430 rajveer 4687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4688
    static {
3430 rajveer 4689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4690
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4692
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4693
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4694
    }
4695
 
4696
    public markEmailAsSent_args() {
4697
    }
4698
 
4699
    public markEmailAsSent_args(
4700
      long emailId)
4701
    {
4702
      this();
4703
      this.emailId = emailId;
4704
      setEmailIdIsSet(true);
4705
    }
4706
 
4707
    /**
4708
     * Performs a deep copy on <i>other</i>.
4709
     */
4710
    public markEmailAsSent_args(markEmailAsSent_args other) {
4711
      __isset_bit_vector.clear();
4712
      __isset_bit_vector.or(other.__isset_bit_vector);
4713
      this.emailId = other.emailId;
4714
    }
4715
 
4716
    public markEmailAsSent_args deepCopy() {
4717
      return new markEmailAsSent_args(this);
4718
    }
4719
 
3430 rajveer 4720
    @Override
4721
    public void clear() {
4722
      setEmailIdIsSet(false);
4723
      this.emailId = 0;
1422 varun.gupt 4724
    }
4725
 
4726
    public long getEmailId() {
4727
      return this.emailId;
4728
    }
4729
 
3430 rajveer 4730
    public void setEmailId(long emailId) {
1422 varun.gupt 4731
      this.emailId = emailId;
4732
      setEmailIdIsSet(true);
4733
    }
4734
 
4735
    public void unsetEmailId() {
4736
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4737
    }
4738
 
3430 rajveer 4739
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4740
    public boolean isSetEmailId() {
4741
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4742
    }
4743
 
4744
    public void setEmailIdIsSet(boolean value) {
4745
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4746
    }
4747
 
4748
    public void setFieldValue(_Fields field, Object value) {
4749
      switch (field) {
4750
      case EMAIL_ID:
4751
        if (value == null) {
4752
          unsetEmailId();
4753
        } else {
4754
          setEmailId((Long)value);
4755
        }
4756
        break;
4757
 
4758
      }
4759
    }
4760
 
4761
    public Object getFieldValue(_Fields field) {
4762
      switch (field) {
4763
      case EMAIL_ID:
3430 rajveer 4764
        return Long.valueOf(getEmailId());
1422 varun.gupt 4765
 
4766
      }
4767
      throw new IllegalStateException();
4768
    }
4769
 
3430 rajveer 4770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4771
    public boolean isSet(_Fields field) {
4772
      if (field == null) {
4773
        throw new IllegalArgumentException();
4774
      }
1422 varun.gupt 4775
 
4776
      switch (field) {
4777
      case EMAIL_ID:
4778
        return isSetEmailId();
4779
      }
4780
      throw new IllegalStateException();
4781
    }
4782
 
4783
    @Override
4784
    public boolean equals(Object that) {
4785
      if (that == null)
4786
        return false;
4787
      if (that instanceof markEmailAsSent_args)
4788
        return this.equals((markEmailAsSent_args)that);
4789
      return false;
4790
    }
4791
 
4792
    public boolean equals(markEmailAsSent_args that) {
4793
      if (that == null)
4794
        return false;
4795
 
4796
      boolean this_present_emailId = true;
4797
      boolean that_present_emailId = true;
4798
      if (this_present_emailId || that_present_emailId) {
4799
        if (!(this_present_emailId && that_present_emailId))
4800
          return false;
4801
        if (this.emailId != that.emailId)
4802
          return false;
4803
      }
4804
 
4805
      return true;
4806
    }
4807
 
4808
    @Override
4809
    public int hashCode() {
4810
      return 0;
4811
    }
4812
 
4813
    public int compareTo(markEmailAsSent_args other) {
4814
      if (!getClass().equals(other.getClass())) {
4815
        return getClass().getName().compareTo(other.getClass().getName());
4816
      }
4817
 
4818
      int lastComparison = 0;
4819
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4820
 
3430 rajveer 4821
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4822
      if (lastComparison != 0) {
4823
        return lastComparison;
4824
      }
3430 rajveer 4825
      if (isSetEmailId()) {
4826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4827
        if (lastComparison != 0) {
4828
          return lastComparison;
4829
        }
1422 varun.gupt 4830
      }
4831
      return 0;
4832
    }
4833
 
3430 rajveer 4834
    public _Fields fieldForId(int fieldId) {
4835
      return _Fields.findByThriftId(fieldId);
4836
    }
4837
 
4838
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4839
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4840
      iprot.readStructBegin();
4841
      while (true)
4842
      {
4843
        field = iprot.readFieldBegin();
3430 rajveer 4844
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4845
          break;
4846
        }
3430 rajveer 4847
        switch (field.id) {
4848
          case 1: // EMAIL_ID
4849
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4850
              this.emailId = iprot.readI64();
4851
              setEmailIdIsSet(true);
4852
            } else { 
4853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4854
            }
4855
            break;
4856
          default:
4857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4858
        }
3430 rajveer 4859
        iprot.readFieldEnd();
1422 varun.gupt 4860
      }
4861
      iprot.readStructEnd();
4862
      validate();
4863
    }
4864
 
3430 rajveer 4865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4866
      validate();
4867
 
4868
      oprot.writeStructBegin(STRUCT_DESC);
4869
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4870
      oprot.writeI64(this.emailId);
4871
      oprot.writeFieldEnd();
4872
      oprot.writeFieldStop();
4873
      oprot.writeStructEnd();
4874
    }
4875
 
4876
    @Override
4877
    public String toString() {
4878
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4879
      boolean first = true;
4880
 
4881
      sb.append("emailId:");
4882
      sb.append(this.emailId);
4883
      first = false;
4884
      sb.append(")");
4885
      return sb.toString();
4886
    }
4887
 
3430 rajveer 4888
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4889
      // check for required fields
4890
    }
4891
 
3430 rajveer 4892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4893
      try {
4894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4895
      } catch (org.apache.thrift.TException te) {
4896
        throw new java.io.IOException(te);
4897
      }
4898
    }
4899
 
4900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4901
      try {
4902
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4903
        __isset_bit_vector = new BitSet(1);
4904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4905
      } catch (org.apache.thrift.TException te) {
4906
        throw new java.io.IOException(te);
4907
      }
4908
    }
4909
 
1422 varun.gupt 4910
  }
4911
 
3430 rajveer 4912
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4914
 
3430 rajveer 4915
    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 4916
 
3430 rajveer 4917
    private HelperServiceException se; // required
1422 varun.gupt 4918
 
4919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4921
      SE((short)1, "se");
4922
 
4923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4924
 
4925
      static {
4926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4927
          byName.put(field.getFieldName(), field);
4928
        }
4929
      }
4930
 
4931
      /**
4932
       * Find the _Fields constant that matches fieldId, or null if its not found.
4933
       */
4934
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4935
        switch(fieldId) {
4936
          case 1: // SE
4937
            return SE;
4938
          default:
4939
            return null;
4940
        }
1422 varun.gupt 4941
      }
4942
 
4943
      /**
4944
       * Find the _Fields constant that matches fieldId, throwing an exception
4945
       * if it is not found.
4946
       */
4947
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4948
        _Fields fields = findByThriftId(fieldId);
4949
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4950
        return fields;
4951
      }
4952
 
4953
      /**
4954
       * Find the _Fields constant that matches name, or null if its not found.
4955
       */
4956
      public static _Fields findByName(String name) {
4957
        return byName.get(name);
4958
      }
4959
 
4960
      private final short _thriftId;
4961
      private final String _fieldName;
4962
 
4963
      _Fields(short thriftId, String fieldName) {
4964
        _thriftId = thriftId;
4965
        _fieldName = fieldName;
4966
      }
4967
 
4968
      public short getThriftFieldId() {
4969
        return _thriftId;
4970
      }
4971
 
4972
      public String getFieldName() {
4973
        return _fieldName;
4974
      }
4975
    }
4976
 
4977
    // isset id assignments
4978
 
3430 rajveer 4979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4980
    static {
3430 rajveer 4981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4982
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4986
    }
4987
 
4988
    public markEmailAsSent_result() {
4989
    }
4990
 
4991
    public markEmailAsSent_result(
4992
      HelperServiceException se)
4993
    {
4994
      this();
4995
      this.se = se;
4996
    }
4997
 
4998
    /**
4999
     * Performs a deep copy on <i>other</i>.
5000
     */
5001
    public markEmailAsSent_result(markEmailAsSent_result other) {
5002
      if (other.isSetSe()) {
5003
        this.se = new HelperServiceException(other.se);
5004
      }
5005
    }
5006
 
5007
    public markEmailAsSent_result deepCopy() {
5008
      return new markEmailAsSent_result(this);
5009
    }
5010
 
3430 rajveer 5011
    @Override
5012
    public void clear() {
5013
      this.se = null;
1422 varun.gupt 5014
    }
5015
 
5016
    public HelperServiceException getSe() {
5017
      return this.se;
5018
    }
5019
 
3430 rajveer 5020
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5021
      this.se = se;
5022
    }
5023
 
5024
    public void unsetSe() {
5025
      this.se = null;
5026
    }
5027
 
3430 rajveer 5028
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5029
    public boolean isSetSe() {
5030
      return this.se != null;
5031
    }
5032
 
5033
    public void setSeIsSet(boolean value) {
5034
      if (!value) {
5035
        this.se = null;
5036
      }
5037
    }
5038
 
5039
    public void setFieldValue(_Fields field, Object value) {
5040
      switch (field) {
5041
      case SE:
5042
        if (value == null) {
5043
          unsetSe();
5044
        } else {
5045
          setSe((HelperServiceException)value);
5046
        }
5047
        break;
5048
 
5049
      }
5050
    }
5051
 
5052
    public Object getFieldValue(_Fields field) {
5053
      switch (field) {
5054
      case SE:
5055
        return getSe();
5056
 
5057
      }
5058
      throw new IllegalStateException();
5059
    }
5060
 
3430 rajveer 5061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5062
    public boolean isSet(_Fields field) {
5063
      if (field == null) {
5064
        throw new IllegalArgumentException();
5065
      }
1422 varun.gupt 5066
 
5067
      switch (field) {
5068
      case SE:
5069
        return isSetSe();
5070
      }
5071
      throw new IllegalStateException();
5072
    }
5073
 
5074
    @Override
5075
    public boolean equals(Object that) {
5076
      if (that == null)
5077
        return false;
5078
      if (that instanceof markEmailAsSent_result)
5079
        return this.equals((markEmailAsSent_result)that);
5080
      return false;
5081
    }
5082
 
5083
    public boolean equals(markEmailAsSent_result that) {
5084
      if (that == null)
5085
        return false;
5086
 
5087
      boolean this_present_se = true && this.isSetSe();
5088
      boolean that_present_se = true && that.isSetSe();
5089
      if (this_present_se || that_present_se) {
5090
        if (!(this_present_se && that_present_se))
5091
          return false;
5092
        if (!this.se.equals(that.se))
5093
          return false;
5094
      }
5095
 
5096
      return true;
5097
    }
5098
 
5099
    @Override
5100
    public int hashCode() {
5101
      return 0;
5102
    }
5103
 
5104
    public int compareTo(markEmailAsSent_result other) {
5105
      if (!getClass().equals(other.getClass())) {
5106
        return getClass().getName().compareTo(other.getClass().getName());
5107
      }
5108
 
5109
      int lastComparison = 0;
5110
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5111
 
3430 rajveer 5112
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5113
      if (lastComparison != 0) {
5114
        return lastComparison;
5115
      }
3430 rajveer 5116
      if (isSetSe()) {
5117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5118
        if (lastComparison != 0) {
5119
          return lastComparison;
5120
        }
1422 varun.gupt 5121
      }
5122
      return 0;
5123
    }
5124
 
3430 rajveer 5125
    public _Fields fieldForId(int fieldId) {
5126
      return _Fields.findByThriftId(fieldId);
5127
    }
5128
 
5129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5130
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5131
      iprot.readStructBegin();
5132
      while (true)
5133
      {
5134
        field = iprot.readFieldBegin();
3430 rajveer 5135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5136
          break;
5137
        }
3430 rajveer 5138
        switch (field.id) {
5139
          case 1: // SE
5140
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5141
              this.se = new HelperServiceException();
5142
              this.se.read(iprot);
5143
            } else { 
5144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5145
            }
5146
            break;
5147
          default:
5148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5149
        }
3430 rajveer 5150
        iprot.readFieldEnd();
1422 varun.gupt 5151
      }
5152
      iprot.readStructEnd();
5153
      validate();
5154
    }
5155
 
3430 rajveer 5156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5157
      oprot.writeStructBegin(STRUCT_DESC);
5158
 
5159
      if (this.isSetSe()) {
5160
        oprot.writeFieldBegin(SE_FIELD_DESC);
5161
        this.se.write(oprot);
5162
        oprot.writeFieldEnd();
5163
      }
5164
      oprot.writeFieldStop();
5165
      oprot.writeStructEnd();
5166
    }
5167
 
5168
    @Override
5169
    public String toString() {
5170
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5171
      boolean first = true;
5172
 
5173
      sb.append("se:");
5174
      if (this.se == null) {
5175
        sb.append("null");
5176
      } else {
5177
        sb.append(this.se);
5178
      }
5179
      first = false;
5180
      sb.append(")");
5181
      return sb.toString();
5182
    }
5183
 
3430 rajveer 5184
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5185
      // check for required fields
5186
    }
5187
 
3430 rajveer 5188
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5189
      try {
5190
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5191
      } catch (org.apache.thrift.TException te) {
5192
        throw new java.io.IOException(te);
5193
      }
5194
    }
5195
 
5196
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5197
      try {
5198
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5199
      } catch (org.apache.thrift.TException te) {
5200
        throw new java.io.IOException(te);
5201
      }
5202
    }
5203
 
1422 varun.gupt 5204
  }
5205
 
3430 rajveer 5206
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5207
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5208
 
3430 rajveer 5209
    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 5210
 
3430 rajveer 5211
    private Mail mail; // required
352 ashish 5212
 
5213
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5214
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5215
      MAIL((short)1, "mail");
5216
 
5217
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5218
 
5219
      static {
5220
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5221
          byName.put(field.getFieldName(), field);
5222
        }
5223
      }
5224
 
5225
      /**
5226
       * Find the _Fields constant that matches fieldId, or null if its not found.
5227
       */
5228
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5229
        switch(fieldId) {
5230
          case 1: // MAIL
5231
            return MAIL;
5232
          default:
5233
            return null;
5234
        }
352 ashish 5235
      }
5236
 
5237
      /**
5238
       * Find the _Fields constant that matches fieldId, throwing an exception
5239
       * if it is not found.
5240
       */
5241
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5242
        _Fields fields = findByThriftId(fieldId);
5243
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5244
        return fields;
5245
      }
5246
 
5247
      /**
5248
       * Find the _Fields constant that matches name, or null if its not found.
5249
       */
5250
      public static _Fields findByName(String name) {
5251
        return byName.get(name);
5252
      }
5253
 
5254
      private final short _thriftId;
5255
      private final String _fieldName;
5256
 
5257
      _Fields(short thriftId, String fieldName) {
5258
        _thriftId = thriftId;
5259
        _fieldName = fieldName;
5260
      }
5261
 
5262
      public short getThriftFieldId() {
5263
        return _thriftId;
5264
      }
5265
 
5266
      public String getFieldName() {
5267
        return _fieldName;
5268
      }
5269
    }
5270
 
5271
    // isset id assignments
5272
 
3430 rajveer 5273
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5274
    static {
3430 rajveer 5275
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5276
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5277
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5278
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5279
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5280
    }
5281
 
5282
    public sendMail_args() {
5283
    }
5284
 
5285
    public sendMail_args(
5286
      Mail mail)
5287
    {
5288
      this();
5289
      this.mail = mail;
5290
    }
5291
 
5292
    /**
5293
     * Performs a deep copy on <i>other</i>.
5294
     */
5295
    public sendMail_args(sendMail_args other) {
5296
      if (other.isSetMail()) {
5297
        this.mail = new Mail(other.mail);
5298
      }
5299
    }
5300
 
5301
    public sendMail_args deepCopy() {
5302
      return new sendMail_args(this);
5303
    }
5304
 
3430 rajveer 5305
    @Override
5306
    public void clear() {
5307
      this.mail = null;
352 ashish 5308
    }
5309
 
5310
    public Mail getMail() {
5311
      return this.mail;
5312
    }
5313
 
3430 rajveer 5314
    public void setMail(Mail mail) {
352 ashish 5315
      this.mail = mail;
5316
    }
5317
 
5318
    public void unsetMail() {
5319
      this.mail = null;
5320
    }
5321
 
3430 rajveer 5322
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5323
    public boolean isSetMail() {
5324
      return this.mail != null;
5325
    }
5326
 
5327
    public void setMailIsSet(boolean value) {
5328
      if (!value) {
5329
        this.mail = null;
5330
      }
5331
    }
5332
 
5333
    public void setFieldValue(_Fields field, Object value) {
5334
      switch (field) {
5335
      case MAIL:
5336
        if (value == null) {
5337
          unsetMail();
5338
        } else {
5339
          setMail((Mail)value);
5340
        }
5341
        break;
5342
 
5343
      }
5344
    }
5345
 
5346
    public Object getFieldValue(_Fields field) {
5347
      switch (field) {
5348
      case MAIL:
5349
        return getMail();
5350
 
5351
      }
5352
      throw new IllegalStateException();
5353
    }
5354
 
3430 rajveer 5355
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5356
    public boolean isSet(_Fields field) {
5357
      if (field == null) {
5358
        throw new IllegalArgumentException();
5359
      }
352 ashish 5360
 
5361
      switch (field) {
5362
      case MAIL:
5363
        return isSetMail();
5364
      }
5365
      throw new IllegalStateException();
5366
    }
5367
 
5368
    @Override
5369
    public boolean equals(Object that) {
5370
      if (that == null)
5371
        return false;
5372
      if (that instanceof sendMail_args)
5373
        return this.equals((sendMail_args)that);
5374
      return false;
5375
    }
5376
 
5377
    public boolean equals(sendMail_args that) {
5378
      if (that == null)
5379
        return false;
5380
 
5381
      boolean this_present_mail = true && this.isSetMail();
5382
      boolean that_present_mail = true && that.isSetMail();
5383
      if (this_present_mail || that_present_mail) {
5384
        if (!(this_present_mail && that_present_mail))
5385
          return false;
5386
        if (!this.mail.equals(that.mail))
5387
          return false;
5388
      }
5389
 
5390
      return true;
5391
    }
5392
 
5393
    @Override
5394
    public int hashCode() {
5395
      return 0;
5396
    }
5397
 
5398
    public int compareTo(sendMail_args other) {
5399
      if (!getClass().equals(other.getClass())) {
5400
        return getClass().getName().compareTo(other.getClass().getName());
5401
      }
5402
 
5403
      int lastComparison = 0;
5404
      sendMail_args typedOther = (sendMail_args)other;
5405
 
3430 rajveer 5406
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5407
      if (lastComparison != 0) {
5408
        return lastComparison;
5409
      }
3430 rajveer 5410
      if (isSetMail()) {
5411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5412
        if (lastComparison != 0) {
5413
          return lastComparison;
5414
        }
352 ashish 5415
      }
5416
      return 0;
5417
    }
5418
 
3430 rajveer 5419
    public _Fields fieldForId(int fieldId) {
5420
      return _Fields.findByThriftId(fieldId);
5421
    }
5422
 
5423
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5424
      org.apache.thrift.protocol.TField field;
352 ashish 5425
      iprot.readStructBegin();
5426
      while (true)
5427
      {
5428
        field = iprot.readFieldBegin();
3430 rajveer 5429
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5430
          break;
5431
        }
3430 rajveer 5432
        switch (field.id) {
5433
          case 1: // MAIL
5434
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5435
              this.mail = new Mail();
5436
              this.mail.read(iprot);
5437
            } else { 
5438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5439
            }
5440
            break;
5441
          default:
5442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5443
        }
3430 rajveer 5444
        iprot.readFieldEnd();
352 ashish 5445
      }
5446
      iprot.readStructEnd();
5447
      validate();
5448
    }
5449
 
3430 rajveer 5450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5451
      validate();
5452
 
5453
      oprot.writeStructBegin(STRUCT_DESC);
5454
      if (this.mail != null) {
5455
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5456
        this.mail.write(oprot);
5457
        oprot.writeFieldEnd();
5458
      }
5459
      oprot.writeFieldStop();
5460
      oprot.writeStructEnd();
5461
    }
5462
 
5463
    @Override
5464
    public String toString() {
5465
      StringBuilder sb = new StringBuilder("sendMail_args(");
5466
      boolean first = true;
5467
 
5468
      sb.append("mail:");
5469
      if (this.mail == null) {
5470
        sb.append("null");
5471
      } else {
5472
        sb.append(this.mail);
5473
      }
5474
      first = false;
5475
      sb.append(")");
5476
      return sb.toString();
5477
    }
5478
 
3430 rajveer 5479
    public void validate() throws org.apache.thrift.TException {
352 ashish 5480
      // check for required fields
5481
    }
5482
 
3430 rajveer 5483
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5484
      try {
5485
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5486
      } catch (org.apache.thrift.TException te) {
5487
        throw new java.io.IOException(te);
5488
      }
5489
    }
5490
 
5491
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5492
      try {
5493
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5494
      } catch (org.apache.thrift.TException te) {
5495
        throw new java.io.IOException(te);
5496
      }
5497
    }
5498
 
352 ashish 5499
  }
5500
 
3430 rajveer 5501
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5502
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5503
 
3430 rajveer 5504
    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 5505
 
3430 rajveer 5506
    private HelperServiceException se; // required
352 ashish 5507
 
5508
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5509
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5510
      SE((short)1, "se");
5511
 
5512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5513
 
5514
      static {
5515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5516
          byName.put(field.getFieldName(), field);
5517
        }
5518
      }
5519
 
5520
      /**
5521
       * Find the _Fields constant that matches fieldId, or null if its not found.
5522
       */
5523
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5524
        switch(fieldId) {
5525
          case 1: // SE
5526
            return SE;
5527
          default:
5528
            return null;
5529
        }
352 ashish 5530
      }
5531
 
5532
      /**
5533
       * Find the _Fields constant that matches fieldId, throwing an exception
5534
       * if it is not found.
5535
       */
5536
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5537
        _Fields fields = findByThriftId(fieldId);
5538
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5539
        return fields;
5540
      }
5541
 
5542
      /**
5543
       * Find the _Fields constant that matches name, or null if its not found.
5544
       */
5545
      public static _Fields findByName(String name) {
5546
        return byName.get(name);
5547
      }
5548
 
5549
      private final short _thriftId;
5550
      private final String _fieldName;
5551
 
5552
      _Fields(short thriftId, String fieldName) {
5553
        _thriftId = thriftId;
5554
        _fieldName = fieldName;
5555
      }
5556
 
5557
      public short getThriftFieldId() {
5558
        return _thriftId;
5559
      }
5560
 
5561
      public String getFieldName() {
5562
        return _fieldName;
5563
      }
5564
    }
5565
 
5566
    // isset id assignments
5567
 
3430 rajveer 5568
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5569
    static {
3430 rajveer 5570
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5571
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5575
    }
5576
 
5577
    public sendMail_result() {
5578
    }
5579
 
5580
    public sendMail_result(
5581
      HelperServiceException se)
5582
    {
5583
      this();
5584
      this.se = se;
5585
    }
5586
 
5587
    /**
5588
     * Performs a deep copy on <i>other</i>.
5589
     */
5590
    public sendMail_result(sendMail_result other) {
5591
      if (other.isSetSe()) {
5592
        this.se = new HelperServiceException(other.se);
5593
      }
5594
    }
5595
 
5596
    public sendMail_result deepCopy() {
5597
      return new sendMail_result(this);
5598
    }
5599
 
3430 rajveer 5600
    @Override
5601
    public void clear() {
5602
      this.se = null;
352 ashish 5603
    }
5604
 
5605
    public HelperServiceException getSe() {
5606
      return this.se;
5607
    }
5608
 
3430 rajveer 5609
    public void setSe(HelperServiceException se) {
352 ashish 5610
      this.se = se;
5611
    }
5612
 
5613
    public void unsetSe() {
5614
      this.se = null;
5615
    }
5616
 
3430 rajveer 5617
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5618
    public boolean isSetSe() {
5619
      return this.se != null;
5620
    }
5621
 
5622
    public void setSeIsSet(boolean value) {
5623
      if (!value) {
5624
        this.se = null;
5625
      }
5626
    }
5627
 
5628
    public void setFieldValue(_Fields field, Object value) {
5629
      switch (field) {
5630
      case SE:
5631
        if (value == null) {
5632
          unsetSe();
5633
        } else {
5634
          setSe((HelperServiceException)value);
5635
        }
5636
        break;
5637
 
5638
      }
5639
    }
5640
 
5641
    public Object getFieldValue(_Fields field) {
5642
      switch (field) {
5643
      case SE:
5644
        return getSe();
5645
 
5646
      }
5647
      throw new IllegalStateException();
5648
    }
5649
 
3430 rajveer 5650
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5651
    public boolean isSet(_Fields field) {
5652
      if (field == null) {
5653
        throw new IllegalArgumentException();
5654
      }
352 ashish 5655
 
5656
      switch (field) {
5657
      case SE:
5658
        return isSetSe();
5659
      }
5660
      throw new IllegalStateException();
5661
    }
5662
 
5663
    @Override
5664
    public boolean equals(Object that) {
5665
      if (that == null)
5666
        return false;
5667
      if (that instanceof sendMail_result)
5668
        return this.equals((sendMail_result)that);
5669
      return false;
5670
    }
5671
 
5672
    public boolean equals(sendMail_result that) {
5673
      if (that == null)
5674
        return false;
5675
 
5676
      boolean this_present_se = true && this.isSetSe();
5677
      boolean that_present_se = true && that.isSetSe();
5678
      if (this_present_se || that_present_se) {
5679
        if (!(this_present_se && that_present_se))
5680
          return false;
5681
        if (!this.se.equals(that.se))
5682
          return false;
5683
      }
5684
 
5685
      return true;
5686
    }
5687
 
5688
    @Override
5689
    public int hashCode() {
5690
      return 0;
5691
    }
5692
 
5693
    public int compareTo(sendMail_result other) {
5694
      if (!getClass().equals(other.getClass())) {
5695
        return getClass().getName().compareTo(other.getClass().getName());
5696
      }
5697
 
5698
      int lastComparison = 0;
5699
      sendMail_result typedOther = (sendMail_result)other;
5700
 
3430 rajveer 5701
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5702
      if (lastComparison != 0) {
5703
        return lastComparison;
5704
      }
3430 rajveer 5705
      if (isSetSe()) {
5706
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5707
        if (lastComparison != 0) {
5708
          return lastComparison;
5709
        }
352 ashish 5710
      }
5711
      return 0;
5712
    }
5713
 
3430 rajveer 5714
    public _Fields fieldForId(int fieldId) {
5715
      return _Fields.findByThriftId(fieldId);
5716
    }
5717
 
5718
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5719
      org.apache.thrift.protocol.TField field;
352 ashish 5720
      iprot.readStructBegin();
5721
      while (true)
5722
      {
5723
        field = iprot.readFieldBegin();
3430 rajveer 5724
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5725
          break;
5726
        }
3430 rajveer 5727
        switch (field.id) {
5728
          case 1: // SE
5729
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5730
              this.se = new HelperServiceException();
5731
              this.se.read(iprot);
5732
            } else { 
5733
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5734
            }
5735
            break;
5736
          default:
5737
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5738
        }
3430 rajveer 5739
        iprot.readFieldEnd();
352 ashish 5740
      }
5741
      iprot.readStructEnd();
5742
      validate();
5743
    }
5744
 
3430 rajveer 5745
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5746
      oprot.writeStructBegin(STRUCT_DESC);
5747
 
5748
      if (this.isSetSe()) {
5749
        oprot.writeFieldBegin(SE_FIELD_DESC);
5750
        this.se.write(oprot);
5751
        oprot.writeFieldEnd();
5752
      }
5753
      oprot.writeFieldStop();
5754
      oprot.writeStructEnd();
5755
    }
5756
 
5757
    @Override
5758
    public String toString() {
5759
      StringBuilder sb = new StringBuilder("sendMail_result(");
5760
      boolean first = true;
5761
 
5762
      sb.append("se:");
5763
      if (this.se == null) {
5764
        sb.append("null");
5765
      } else {
5766
        sb.append(this.se);
5767
      }
5768
      first = false;
5769
      sb.append(")");
5770
      return sb.toString();
5771
    }
5772
 
3430 rajveer 5773
    public void validate() throws org.apache.thrift.TException {
352 ashish 5774
      // check for required fields
5775
    }
5776
 
3430 rajveer 5777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5778
      try {
5779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5780
      } catch (org.apache.thrift.TException te) {
5781
        throw new java.io.IOException(te);
5782
      }
5783
    }
5784
 
5785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5786
      try {
5787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5788
      } catch (org.apache.thrift.TException te) {
5789
        throw new java.io.IOException(te);
5790
      }
5791
    }
5792
 
352 ashish 5793
  }
5794
 
3430 rajveer 5795
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5797
 
3430 rajveer 5798
    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 5799
 
3430 rajveer 5800
    private TextMessage message; // required
352 ashish 5801
 
5802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5804
      MESSAGE((short)1, "message");
5805
 
5806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5807
 
5808
      static {
5809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5810
          byName.put(field.getFieldName(), field);
5811
        }
5812
      }
5813
 
5814
      /**
5815
       * Find the _Fields constant that matches fieldId, or null if its not found.
5816
       */
5817
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5818
        switch(fieldId) {
5819
          case 1: // MESSAGE
5820
            return MESSAGE;
5821
          default:
5822
            return null;
5823
        }
352 ashish 5824
      }
5825
 
5826
      /**
5827
       * Find the _Fields constant that matches fieldId, throwing an exception
5828
       * if it is not found.
5829
       */
5830
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5831
        _Fields fields = findByThriftId(fieldId);
5832
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5833
        return fields;
5834
      }
5835
 
5836
      /**
5837
       * Find the _Fields constant that matches name, or null if its not found.
5838
       */
5839
      public static _Fields findByName(String name) {
5840
        return byName.get(name);
5841
      }
5842
 
5843
      private final short _thriftId;
5844
      private final String _fieldName;
5845
 
5846
      _Fields(short thriftId, String fieldName) {
5847
        _thriftId = thriftId;
5848
        _fieldName = fieldName;
5849
      }
5850
 
5851
      public short getThriftFieldId() {
5852
        return _thriftId;
5853
      }
5854
 
5855
      public String getFieldName() {
5856
        return _fieldName;
5857
      }
5858
    }
5859
 
5860
    // isset id assignments
5861
 
3430 rajveer 5862
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5863
    static {
3430 rajveer 5864
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5865
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5866
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5867
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5868
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5869
    }
5870
 
5871
    public sendText_args() {
5872
    }
5873
 
5874
    public sendText_args(
5875
      TextMessage message)
5876
    {
5877
      this();
5878
      this.message = message;
5879
    }
5880
 
5881
    /**
5882
     * Performs a deep copy on <i>other</i>.
5883
     */
5884
    public sendText_args(sendText_args other) {
5885
      if (other.isSetMessage()) {
5886
        this.message = new TextMessage(other.message);
5887
      }
5888
    }
5889
 
5890
    public sendText_args deepCopy() {
5891
      return new sendText_args(this);
5892
    }
5893
 
3430 rajveer 5894
    @Override
5895
    public void clear() {
5896
      this.message = null;
352 ashish 5897
    }
5898
 
5899
    public TextMessage getMessage() {
5900
      return this.message;
5901
    }
5902
 
3430 rajveer 5903
    public void setMessage(TextMessage message) {
352 ashish 5904
      this.message = message;
5905
    }
5906
 
5907
    public void unsetMessage() {
5908
      this.message = null;
5909
    }
5910
 
3430 rajveer 5911
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5912
    public boolean isSetMessage() {
5913
      return this.message != null;
5914
    }
5915
 
5916
    public void setMessageIsSet(boolean value) {
5917
      if (!value) {
5918
        this.message = null;
5919
      }
5920
    }
5921
 
5922
    public void setFieldValue(_Fields field, Object value) {
5923
      switch (field) {
5924
      case MESSAGE:
5925
        if (value == null) {
5926
          unsetMessage();
5927
        } else {
5928
          setMessage((TextMessage)value);
5929
        }
5930
        break;
5931
 
5932
      }
5933
    }
5934
 
5935
    public Object getFieldValue(_Fields field) {
5936
      switch (field) {
5937
      case MESSAGE:
5938
        return getMessage();
5939
 
5940
      }
5941
      throw new IllegalStateException();
5942
    }
5943
 
3430 rajveer 5944
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5945
    public boolean isSet(_Fields field) {
5946
      if (field == null) {
5947
        throw new IllegalArgumentException();
5948
      }
352 ashish 5949
 
5950
      switch (field) {
5951
      case MESSAGE:
5952
        return isSetMessage();
5953
      }
5954
      throw new IllegalStateException();
5955
    }
5956
 
5957
    @Override
5958
    public boolean equals(Object that) {
5959
      if (that == null)
5960
        return false;
5961
      if (that instanceof sendText_args)
5962
        return this.equals((sendText_args)that);
5963
      return false;
5964
    }
5965
 
5966
    public boolean equals(sendText_args that) {
5967
      if (that == null)
5968
        return false;
5969
 
5970
      boolean this_present_message = true && this.isSetMessage();
5971
      boolean that_present_message = true && that.isSetMessage();
5972
      if (this_present_message || that_present_message) {
5973
        if (!(this_present_message && that_present_message))
5974
          return false;
5975
        if (!this.message.equals(that.message))
5976
          return false;
5977
      }
5978
 
5979
      return true;
5980
    }
5981
 
5982
    @Override
5983
    public int hashCode() {
5984
      return 0;
5985
    }
5986
 
5987
    public int compareTo(sendText_args other) {
5988
      if (!getClass().equals(other.getClass())) {
5989
        return getClass().getName().compareTo(other.getClass().getName());
5990
      }
5991
 
5992
      int lastComparison = 0;
5993
      sendText_args typedOther = (sendText_args)other;
5994
 
3430 rajveer 5995
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5996
      if (lastComparison != 0) {
5997
        return lastComparison;
5998
      }
3430 rajveer 5999
      if (isSetMessage()) {
6000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6001
        if (lastComparison != 0) {
6002
          return lastComparison;
6003
        }
352 ashish 6004
      }
6005
      return 0;
6006
    }
6007
 
3430 rajveer 6008
    public _Fields fieldForId(int fieldId) {
6009
      return _Fields.findByThriftId(fieldId);
6010
    }
6011
 
6012
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6013
      org.apache.thrift.protocol.TField field;
352 ashish 6014
      iprot.readStructBegin();
6015
      while (true)
6016
      {
6017
        field = iprot.readFieldBegin();
3430 rajveer 6018
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6019
          break;
6020
        }
3430 rajveer 6021
        switch (field.id) {
6022
          case 1: // MESSAGE
6023
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6024
              this.message = new TextMessage();
6025
              this.message.read(iprot);
6026
            } else { 
6027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6028
            }
6029
            break;
6030
          default:
6031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6032
        }
3430 rajveer 6033
        iprot.readFieldEnd();
352 ashish 6034
      }
6035
      iprot.readStructEnd();
6036
      validate();
6037
    }
6038
 
3430 rajveer 6039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6040
      validate();
6041
 
6042
      oprot.writeStructBegin(STRUCT_DESC);
6043
      if (this.message != null) {
6044
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6045
        this.message.write(oprot);
6046
        oprot.writeFieldEnd();
6047
      }
6048
      oprot.writeFieldStop();
6049
      oprot.writeStructEnd();
6050
    }
6051
 
6052
    @Override
6053
    public String toString() {
6054
      StringBuilder sb = new StringBuilder("sendText_args(");
6055
      boolean first = true;
6056
 
6057
      sb.append("message:");
6058
      if (this.message == null) {
6059
        sb.append("null");
6060
      } else {
6061
        sb.append(this.message);
6062
      }
6063
      first = false;
6064
      sb.append(")");
6065
      return sb.toString();
6066
    }
6067
 
3430 rajveer 6068
    public void validate() throws org.apache.thrift.TException {
352 ashish 6069
      // check for required fields
6070
    }
6071
 
3430 rajveer 6072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6073
      try {
6074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6075
      } catch (org.apache.thrift.TException te) {
6076
        throw new java.io.IOException(te);
6077
      }
6078
    }
6079
 
6080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6081
      try {
6082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6083
      } catch (org.apache.thrift.TException te) {
6084
        throw new java.io.IOException(te);
6085
      }
6086
    }
6087
 
352 ashish 6088
  }
6089
 
3430 rajveer 6090
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6092
 
3430 rajveer 6093
    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 6094
 
3430 rajveer 6095
    private HelperServiceException se; // required
352 ashish 6096
 
6097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6099
      SE((short)1, "se");
6100
 
6101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6102
 
6103
      static {
6104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6105
          byName.put(field.getFieldName(), field);
6106
        }
6107
      }
6108
 
6109
      /**
6110
       * Find the _Fields constant that matches fieldId, or null if its not found.
6111
       */
6112
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6113
        switch(fieldId) {
6114
          case 1: // SE
6115
            return SE;
6116
          default:
6117
            return null;
6118
        }
352 ashish 6119
      }
6120
 
6121
      /**
6122
       * Find the _Fields constant that matches fieldId, throwing an exception
6123
       * if it is not found.
6124
       */
6125
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6126
        _Fields fields = findByThriftId(fieldId);
6127
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6128
        return fields;
6129
      }
6130
 
6131
      /**
6132
       * Find the _Fields constant that matches name, or null if its not found.
6133
       */
6134
      public static _Fields findByName(String name) {
6135
        return byName.get(name);
6136
      }
6137
 
6138
      private final short _thriftId;
6139
      private final String _fieldName;
6140
 
6141
      _Fields(short thriftId, String fieldName) {
6142
        _thriftId = thriftId;
6143
        _fieldName = fieldName;
6144
      }
6145
 
6146
      public short getThriftFieldId() {
6147
        return _thriftId;
6148
      }
6149
 
6150
      public String getFieldName() {
6151
        return _fieldName;
6152
      }
6153
    }
6154
 
6155
    // isset id assignments
6156
 
3430 rajveer 6157
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6158
    static {
3430 rajveer 6159
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6160
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6162
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6163
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6164
    }
6165
 
6166
    public sendText_result() {
6167
    }
6168
 
6169
    public sendText_result(
6170
      HelperServiceException se)
6171
    {
6172
      this();
6173
      this.se = se;
6174
    }
6175
 
6176
    /**
6177
     * Performs a deep copy on <i>other</i>.
6178
     */
6179
    public sendText_result(sendText_result other) {
6180
      if (other.isSetSe()) {
6181
        this.se = new HelperServiceException(other.se);
6182
      }
6183
    }
6184
 
6185
    public sendText_result deepCopy() {
6186
      return new sendText_result(this);
6187
    }
6188
 
3430 rajveer 6189
    @Override
6190
    public void clear() {
6191
      this.se = null;
352 ashish 6192
    }
6193
 
6194
    public HelperServiceException getSe() {
6195
      return this.se;
6196
    }
6197
 
3430 rajveer 6198
    public void setSe(HelperServiceException se) {
352 ashish 6199
      this.se = se;
6200
    }
6201
 
6202
    public void unsetSe() {
6203
      this.se = null;
6204
    }
6205
 
3430 rajveer 6206
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6207
    public boolean isSetSe() {
6208
      return this.se != null;
6209
    }
6210
 
6211
    public void setSeIsSet(boolean value) {
6212
      if (!value) {
6213
        this.se = null;
6214
      }
6215
    }
6216
 
6217
    public void setFieldValue(_Fields field, Object value) {
6218
      switch (field) {
6219
      case SE:
6220
        if (value == null) {
6221
          unsetSe();
6222
        } else {
6223
          setSe((HelperServiceException)value);
6224
        }
6225
        break;
6226
 
6227
      }
6228
    }
6229
 
6230
    public Object getFieldValue(_Fields field) {
6231
      switch (field) {
6232
      case SE:
6233
        return getSe();
6234
 
6235
      }
6236
      throw new IllegalStateException();
6237
    }
6238
 
3430 rajveer 6239
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6240
    public boolean isSet(_Fields field) {
6241
      if (field == null) {
6242
        throw new IllegalArgumentException();
6243
      }
352 ashish 6244
 
6245
      switch (field) {
6246
      case SE:
6247
        return isSetSe();
6248
      }
6249
      throw new IllegalStateException();
6250
    }
6251
 
6252
    @Override
6253
    public boolean equals(Object that) {
6254
      if (that == null)
6255
        return false;
6256
      if (that instanceof sendText_result)
6257
        return this.equals((sendText_result)that);
6258
      return false;
6259
    }
6260
 
6261
    public boolean equals(sendText_result that) {
6262
      if (that == null)
6263
        return false;
6264
 
6265
      boolean this_present_se = true && this.isSetSe();
6266
      boolean that_present_se = true && that.isSetSe();
6267
      if (this_present_se || that_present_se) {
6268
        if (!(this_present_se && that_present_se))
6269
          return false;
6270
        if (!this.se.equals(that.se))
6271
          return false;
6272
      }
6273
 
6274
      return true;
6275
    }
6276
 
6277
    @Override
6278
    public int hashCode() {
6279
      return 0;
6280
    }
6281
 
6282
    public int compareTo(sendText_result other) {
6283
      if (!getClass().equals(other.getClass())) {
6284
        return getClass().getName().compareTo(other.getClass().getName());
6285
      }
6286
 
6287
      int lastComparison = 0;
6288
      sendText_result typedOther = (sendText_result)other;
6289
 
3430 rajveer 6290
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6291
      if (lastComparison != 0) {
6292
        return lastComparison;
6293
      }
3430 rajveer 6294
      if (isSetSe()) {
6295
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6296
        if (lastComparison != 0) {
6297
          return lastComparison;
6298
        }
352 ashish 6299
      }
6300
      return 0;
6301
    }
6302
 
3430 rajveer 6303
    public _Fields fieldForId(int fieldId) {
6304
      return _Fields.findByThriftId(fieldId);
6305
    }
6306
 
6307
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6308
      org.apache.thrift.protocol.TField field;
352 ashish 6309
      iprot.readStructBegin();
6310
      while (true)
6311
      {
6312
        field = iprot.readFieldBegin();
3430 rajveer 6313
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6314
          break;
6315
        }
3430 rajveer 6316
        switch (field.id) {
6317
          case 1: // SE
6318
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6319
              this.se = new HelperServiceException();
6320
              this.se.read(iprot);
6321
            } else { 
6322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6323
            }
6324
            break;
6325
          default:
6326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6327
        }
3430 rajveer 6328
        iprot.readFieldEnd();
352 ashish 6329
      }
6330
      iprot.readStructEnd();
6331
      validate();
6332
    }
6333
 
3430 rajveer 6334
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6335
      oprot.writeStructBegin(STRUCT_DESC);
6336
 
6337
      if (this.isSetSe()) {
6338
        oprot.writeFieldBegin(SE_FIELD_DESC);
6339
        this.se.write(oprot);
6340
        oprot.writeFieldEnd();
6341
      }
6342
      oprot.writeFieldStop();
6343
      oprot.writeStructEnd();
6344
    }
6345
 
6346
    @Override
6347
    public String toString() {
6348
      StringBuilder sb = new StringBuilder("sendText_result(");
6349
      boolean first = true;
6350
 
6351
      sb.append("se:");
6352
      if (this.se == null) {
6353
        sb.append("null");
6354
      } else {
6355
        sb.append(this.se);
6356
      }
6357
      first = false;
6358
      sb.append(")");
6359
      return sb.toString();
6360
    }
6361
 
3430 rajveer 6362
    public void validate() throws org.apache.thrift.TException {
352 ashish 6363
      // check for required fields
6364
    }
6365
 
3430 rajveer 6366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6367
      try {
6368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6369
      } catch (org.apache.thrift.TException te) {
6370
        throw new java.io.IOException(te);
6371
      }
6372
    }
6373
 
6374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6375
      try {
6376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6377
      } catch (org.apache.thrift.TException te) {
6378
        throw new java.io.IOException(te);
6379
      }
6380
    }
6381
 
352 ashish 6382
  }
6383
 
3430 rajveer 6384
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6386
 
3430 rajveer 6387
    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 6388
 
3430 rajveer 6389
    private Message message; // required
352 ashish 6390
 
6391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6393
      MESSAGE((short)1, "message");
6394
 
6395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6396
 
6397
      static {
6398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6399
          byName.put(field.getFieldName(), field);
6400
        }
6401
      }
6402
 
6403
      /**
6404
       * Find the _Fields constant that matches fieldId, or null if its not found.
6405
       */
6406
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6407
        switch(fieldId) {
6408
          case 1: // MESSAGE
6409
            return MESSAGE;
6410
          default:
6411
            return null;
6412
        }
352 ashish 6413
      }
6414
 
6415
      /**
6416
       * Find the _Fields constant that matches fieldId, throwing an exception
6417
       * if it is not found.
6418
       */
6419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6420
        _Fields fields = findByThriftId(fieldId);
6421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6422
        return fields;
6423
      }
6424
 
6425
      /**
6426
       * Find the _Fields constant that matches name, or null if its not found.
6427
       */
6428
      public static _Fields findByName(String name) {
6429
        return byName.get(name);
6430
      }
6431
 
6432
      private final short _thriftId;
6433
      private final String _fieldName;
6434
 
6435
      _Fields(short thriftId, String fieldName) {
6436
        _thriftId = thriftId;
6437
        _fieldName = fieldName;
6438
      }
6439
 
6440
      public short getThriftFieldId() {
6441
        return _thriftId;
6442
      }
6443
 
6444
      public String getFieldName() {
6445
        return _fieldName;
6446
      }
6447
    }
6448
 
6449
    // isset id assignments
6450
 
3430 rajveer 6451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6452
    static {
3430 rajveer 6453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6454
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6455
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6458
    }
6459
 
6460
    public addMessage_args() {
6461
    }
6462
 
6463
    public addMessage_args(
6464
      Message message)
6465
    {
6466
      this();
6467
      this.message = message;
6468
    }
6469
 
6470
    /**
6471
     * Performs a deep copy on <i>other</i>.
6472
     */
6473
    public addMessage_args(addMessage_args other) {
6474
      if (other.isSetMessage()) {
6475
        this.message = new Message(other.message);
6476
      }
6477
    }
6478
 
6479
    public addMessage_args deepCopy() {
6480
      return new addMessage_args(this);
6481
    }
6482
 
3430 rajveer 6483
    @Override
6484
    public void clear() {
6485
      this.message = null;
352 ashish 6486
    }
6487
 
6488
    public Message getMessage() {
6489
      return this.message;
6490
    }
6491
 
3430 rajveer 6492
    public void setMessage(Message message) {
352 ashish 6493
      this.message = message;
6494
    }
6495
 
6496
    public void unsetMessage() {
6497
      this.message = null;
6498
    }
6499
 
3430 rajveer 6500
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6501
    public boolean isSetMessage() {
6502
      return this.message != null;
6503
    }
6504
 
6505
    public void setMessageIsSet(boolean value) {
6506
      if (!value) {
6507
        this.message = null;
6508
      }
6509
    }
6510
 
6511
    public void setFieldValue(_Fields field, Object value) {
6512
      switch (field) {
6513
      case MESSAGE:
6514
        if (value == null) {
6515
          unsetMessage();
6516
        } else {
6517
          setMessage((Message)value);
6518
        }
6519
        break;
6520
 
6521
      }
6522
    }
6523
 
6524
    public Object getFieldValue(_Fields field) {
6525
      switch (field) {
6526
      case MESSAGE:
6527
        return getMessage();
6528
 
6529
      }
6530
      throw new IllegalStateException();
6531
    }
6532
 
3430 rajveer 6533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6534
    public boolean isSet(_Fields field) {
6535
      if (field == null) {
6536
        throw new IllegalArgumentException();
6537
      }
352 ashish 6538
 
6539
      switch (field) {
6540
      case MESSAGE:
6541
        return isSetMessage();
6542
      }
6543
      throw new IllegalStateException();
6544
    }
6545
 
6546
    @Override
6547
    public boolean equals(Object that) {
6548
      if (that == null)
6549
        return false;
6550
      if (that instanceof addMessage_args)
6551
        return this.equals((addMessage_args)that);
6552
      return false;
6553
    }
6554
 
6555
    public boolean equals(addMessage_args that) {
6556
      if (that == null)
6557
        return false;
6558
 
6559
      boolean this_present_message = true && this.isSetMessage();
6560
      boolean that_present_message = true && that.isSetMessage();
6561
      if (this_present_message || that_present_message) {
6562
        if (!(this_present_message && that_present_message))
6563
          return false;
6564
        if (!this.message.equals(that.message))
6565
          return false;
6566
      }
6567
 
6568
      return true;
6569
    }
6570
 
6571
    @Override
6572
    public int hashCode() {
6573
      return 0;
6574
    }
6575
 
6576
    public int compareTo(addMessage_args other) {
6577
      if (!getClass().equals(other.getClass())) {
6578
        return getClass().getName().compareTo(other.getClass().getName());
6579
      }
6580
 
6581
      int lastComparison = 0;
6582
      addMessage_args typedOther = (addMessage_args)other;
6583
 
3430 rajveer 6584
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6585
      if (lastComparison != 0) {
6586
        return lastComparison;
6587
      }
3430 rajveer 6588
      if (isSetMessage()) {
6589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6590
        if (lastComparison != 0) {
6591
          return lastComparison;
6592
        }
352 ashish 6593
      }
6594
      return 0;
6595
    }
6596
 
3430 rajveer 6597
    public _Fields fieldForId(int fieldId) {
6598
      return _Fields.findByThriftId(fieldId);
6599
    }
6600
 
6601
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6602
      org.apache.thrift.protocol.TField field;
352 ashish 6603
      iprot.readStructBegin();
6604
      while (true)
6605
      {
6606
        field = iprot.readFieldBegin();
3430 rajveer 6607
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6608
          break;
6609
        }
3430 rajveer 6610
        switch (field.id) {
6611
          case 1: // MESSAGE
6612
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6613
              this.message = new Message();
6614
              this.message.read(iprot);
6615
            } else { 
6616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6617
            }
6618
            break;
6619
          default:
6620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6621
        }
3430 rajveer 6622
        iprot.readFieldEnd();
352 ashish 6623
      }
6624
      iprot.readStructEnd();
6625
      validate();
6626
    }
6627
 
3430 rajveer 6628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6629
      validate();
6630
 
6631
      oprot.writeStructBegin(STRUCT_DESC);
6632
      if (this.message != null) {
6633
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6634
        this.message.write(oprot);
6635
        oprot.writeFieldEnd();
6636
      }
6637
      oprot.writeFieldStop();
6638
      oprot.writeStructEnd();
6639
    }
6640
 
6641
    @Override
6642
    public String toString() {
6643
      StringBuilder sb = new StringBuilder("addMessage_args(");
6644
      boolean first = true;
6645
 
6646
      sb.append("message:");
6647
      if (this.message == null) {
6648
        sb.append("null");
6649
      } else {
6650
        sb.append(this.message);
6651
      }
6652
      first = false;
6653
      sb.append(")");
6654
      return sb.toString();
6655
    }
6656
 
3430 rajveer 6657
    public void validate() throws org.apache.thrift.TException {
352 ashish 6658
      // check for required fields
6659
    }
6660
 
3430 rajveer 6661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6662
      try {
6663
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6664
      } catch (org.apache.thrift.TException te) {
6665
        throw new java.io.IOException(te);
6666
      }
6667
    }
6668
 
6669
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6670
      try {
6671
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6672
      } catch (org.apache.thrift.TException te) {
6673
        throw new java.io.IOException(te);
6674
      }
6675
    }
6676
 
352 ashish 6677
  }
6678
 
3430 rajveer 6679
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6680
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6681
 
3430 rajveer 6682
    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 6683
 
3430 rajveer 6684
    private HelperServiceException se; // required
352 ashish 6685
 
6686
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6687
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6688
      SE((short)1, "se");
6689
 
6690
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6691
 
6692
      static {
6693
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6694
          byName.put(field.getFieldName(), field);
6695
        }
6696
      }
6697
 
6698
      /**
6699
       * Find the _Fields constant that matches fieldId, or null if its not found.
6700
       */
6701
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6702
        switch(fieldId) {
6703
          case 1: // SE
6704
            return SE;
6705
          default:
6706
            return null;
6707
        }
352 ashish 6708
      }
6709
 
6710
      /**
6711
       * Find the _Fields constant that matches fieldId, throwing an exception
6712
       * if it is not found.
6713
       */
6714
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6715
        _Fields fields = findByThriftId(fieldId);
6716
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6717
        return fields;
6718
      }
6719
 
6720
      /**
6721
       * Find the _Fields constant that matches name, or null if its not found.
6722
       */
6723
      public static _Fields findByName(String name) {
6724
        return byName.get(name);
6725
      }
6726
 
6727
      private final short _thriftId;
6728
      private final String _fieldName;
6729
 
6730
      _Fields(short thriftId, String fieldName) {
6731
        _thriftId = thriftId;
6732
        _fieldName = fieldName;
6733
      }
6734
 
6735
      public short getThriftFieldId() {
6736
        return _thriftId;
6737
      }
6738
 
6739
      public String getFieldName() {
6740
        return _fieldName;
6741
      }
6742
    }
6743
 
6744
    // isset id assignments
6745
 
3430 rajveer 6746
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6747
    static {
3430 rajveer 6748
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6749
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6751
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6752
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6753
    }
6754
 
6755
    public addMessage_result() {
6756
    }
6757
 
6758
    public addMessage_result(
6759
      HelperServiceException se)
6760
    {
6761
      this();
6762
      this.se = se;
6763
    }
6764
 
6765
    /**
6766
     * Performs a deep copy on <i>other</i>.
6767
     */
6768
    public addMessage_result(addMessage_result other) {
6769
      if (other.isSetSe()) {
6770
        this.se = new HelperServiceException(other.se);
6771
      }
6772
    }
6773
 
6774
    public addMessage_result deepCopy() {
6775
      return new addMessage_result(this);
6776
    }
6777
 
3430 rajveer 6778
    @Override
6779
    public void clear() {
6780
      this.se = null;
352 ashish 6781
    }
6782
 
6783
    public HelperServiceException getSe() {
6784
      return this.se;
6785
    }
6786
 
3430 rajveer 6787
    public void setSe(HelperServiceException se) {
352 ashish 6788
      this.se = se;
6789
    }
6790
 
6791
    public void unsetSe() {
6792
      this.se = null;
6793
    }
6794
 
3430 rajveer 6795
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6796
    public boolean isSetSe() {
6797
      return this.se != null;
6798
    }
6799
 
6800
    public void setSeIsSet(boolean value) {
6801
      if (!value) {
6802
        this.se = null;
6803
      }
6804
    }
6805
 
6806
    public void setFieldValue(_Fields field, Object value) {
6807
      switch (field) {
6808
      case SE:
6809
        if (value == null) {
6810
          unsetSe();
6811
        } else {
6812
          setSe((HelperServiceException)value);
6813
        }
6814
        break;
6815
 
6816
      }
6817
    }
6818
 
6819
    public Object getFieldValue(_Fields field) {
6820
      switch (field) {
6821
      case SE:
6822
        return getSe();
6823
 
6824
      }
6825
      throw new IllegalStateException();
6826
    }
6827
 
3430 rajveer 6828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6829
    public boolean isSet(_Fields field) {
6830
      if (field == null) {
6831
        throw new IllegalArgumentException();
6832
      }
352 ashish 6833
 
6834
      switch (field) {
6835
      case SE:
6836
        return isSetSe();
6837
      }
6838
      throw new IllegalStateException();
6839
    }
6840
 
6841
    @Override
6842
    public boolean equals(Object that) {
6843
      if (that == null)
6844
        return false;
6845
      if (that instanceof addMessage_result)
6846
        return this.equals((addMessage_result)that);
6847
      return false;
6848
    }
6849
 
6850
    public boolean equals(addMessage_result that) {
6851
      if (that == null)
6852
        return false;
6853
 
6854
      boolean this_present_se = true && this.isSetSe();
6855
      boolean that_present_se = true && that.isSetSe();
6856
      if (this_present_se || that_present_se) {
6857
        if (!(this_present_se && that_present_se))
6858
          return false;
6859
        if (!this.se.equals(that.se))
6860
          return false;
6861
      }
6862
 
6863
      return true;
6864
    }
6865
 
6866
    @Override
6867
    public int hashCode() {
6868
      return 0;
6869
    }
6870
 
6871
    public int compareTo(addMessage_result other) {
6872
      if (!getClass().equals(other.getClass())) {
6873
        return getClass().getName().compareTo(other.getClass().getName());
6874
      }
6875
 
6876
      int lastComparison = 0;
6877
      addMessage_result typedOther = (addMessage_result)other;
6878
 
3430 rajveer 6879
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6880
      if (lastComparison != 0) {
6881
        return lastComparison;
6882
      }
3430 rajveer 6883
      if (isSetSe()) {
6884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6885
        if (lastComparison != 0) {
6886
          return lastComparison;
6887
        }
352 ashish 6888
      }
6889
      return 0;
6890
    }
6891
 
3430 rajveer 6892
    public _Fields fieldForId(int fieldId) {
6893
      return _Fields.findByThriftId(fieldId);
6894
    }
6895
 
6896
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6897
      org.apache.thrift.protocol.TField field;
352 ashish 6898
      iprot.readStructBegin();
6899
      while (true)
6900
      {
6901
        field = iprot.readFieldBegin();
3430 rajveer 6902
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6903
          break;
6904
        }
3430 rajveer 6905
        switch (field.id) {
6906
          case 1: // SE
6907
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6908
              this.se = new HelperServiceException();
6909
              this.se.read(iprot);
6910
            } else { 
6911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6912
            }
6913
            break;
6914
          default:
6915
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6916
        }
3430 rajveer 6917
        iprot.readFieldEnd();
352 ashish 6918
      }
6919
      iprot.readStructEnd();
6920
      validate();
6921
    }
6922
 
3430 rajveer 6923
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6924
      oprot.writeStructBegin(STRUCT_DESC);
6925
 
6926
      if (this.isSetSe()) {
6927
        oprot.writeFieldBegin(SE_FIELD_DESC);
6928
        this.se.write(oprot);
6929
        oprot.writeFieldEnd();
6930
      }
6931
      oprot.writeFieldStop();
6932
      oprot.writeStructEnd();
6933
    }
6934
 
6935
    @Override
6936
    public String toString() {
6937
      StringBuilder sb = new StringBuilder("addMessage_result(");
6938
      boolean first = true;
6939
 
6940
      sb.append("se:");
6941
      if (this.se == null) {
6942
        sb.append("null");
6943
      } else {
6944
        sb.append(this.se);
6945
      }
6946
      first = false;
6947
      sb.append(")");
6948
      return sb.toString();
6949
    }
6950
 
3430 rajveer 6951
    public void validate() throws org.apache.thrift.TException {
352 ashish 6952
      // check for required fields
6953
    }
6954
 
3430 rajveer 6955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6956
      try {
6957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6958
      } catch (org.apache.thrift.TException te) {
6959
        throw new java.io.IOException(te);
6960
      }
6961
    }
6962
 
6963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6964
      try {
6965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6966
      } catch (org.apache.thrift.TException te) {
6967
        throw new java.io.IOException(te);
6968
      }
6969
    }
6970
 
352 ashish 6971
  }
6972
 
3430 rajveer 6973
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6975
 
3430 rajveer 6976
    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);
6977
    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 6978
 
3430 rajveer 6979
    private long id; // required
6980
    private String message; // required
352 ashish 6981
 
6982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6984
      ID((short)1, "id"),
6985
      MESSAGE((short)2, "message");
6986
 
6987
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6988
 
6989
      static {
6990
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6991
          byName.put(field.getFieldName(), field);
6992
        }
6993
      }
6994
 
6995
      /**
6996
       * Find the _Fields constant that matches fieldId, or null if its not found.
6997
       */
6998
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6999
        switch(fieldId) {
7000
          case 1: // ID
7001
            return ID;
7002
          case 2: // MESSAGE
7003
            return MESSAGE;
7004
          default:
7005
            return null;
7006
        }
352 ashish 7007
      }
7008
 
7009
      /**
7010
       * Find the _Fields constant that matches fieldId, throwing an exception
7011
       * if it is not found.
7012
       */
7013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7014
        _Fields fields = findByThriftId(fieldId);
7015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7016
        return fields;
7017
      }
7018
 
7019
      /**
7020
       * Find the _Fields constant that matches name, or null if its not found.
7021
       */
7022
      public static _Fields findByName(String name) {
7023
        return byName.get(name);
7024
      }
7025
 
7026
      private final short _thriftId;
7027
      private final String _fieldName;
7028
 
7029
      _Fields(short thriftId, String fieldName) {
7030
        _thriftId = thriftId;
7031
        _fieldName = fieldName;
7032
      }
7033
 
7034
      public short getThriftFieldId() {
7035
        return _thriftId;
7036
      }
7037
 
7038
      public String getFieldName() {
7039
        return _fieldName;
7040
      }
7041
    }
7042
 
7043
    // isset id assignments
7044
    private static final int __ID_ISSET_ID = 0;
7045
    private BitSet __isset_bit_vector = new BitSet(1);
7046
 
3430 rajveer 7047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7048
    static {
3430 rajveer 7049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7050
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7052
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 7056
    }
7057
 
7058
    public updateMessage_args() {
7059
    }
7060
 
7061
    public updateMessage_args(
7062
      long id,
7063
      String message)
7064
    {
7065
      this();
7066
      this.id = id;
7067
      setIdIsSet(true);
7068
      this.message = message;
7069
    }
7070
 
7071
    /**
7072
     * Performs a deep copy on <i>other</i>.
7073
     */
7074
    public updateMessage_args(updateMessage_args other) {
7075
      __isset_bit_vector.clear();
7076
      __isset_bit_vector.or(other.__isset_bit_vector);
7077
      this.id = other.id;
7078
      if (other.isSetMessage()) {
7079
        this.message = other.message;
7080
      }
7081
    }
7082
 
7083
    public updateMessage_args deepCopy() {
7084
      return new updateMessage_args(this);
7085
    }
7086
 
3430 rajveer 7087
    @Override
7088
    public void clear() {
7089
      setIdIsSet(false);
7090
      this.id = 0;
7091
      this.message = null;
352 ashish 7092
    }
7093
 
7094
    public long getId() {
7095
      return this.id;
7096
    }
7097
 
3430 rajveer 7098
    public void setId(long id) {
352 ashish 7099
      this.id = id;
7100
      setIdIsSet(true);
7101
    }
7102
 
7103
    public void unsetId() {
7104
      __isset_bit_vector.clear(__ID_ISSET_ID);
7105
    }
7106
 
3430 rajveer 7107
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7108
    public boolean isSetId() {
7109
      return __isset_bit_vector.get(__ID_ISSET_ID);
7110
    }
7111
 
7112
    public void setIdIsSet(boolean value) {
7113
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7114
    }
7115
 
7116
    public String getMessage() {
7117
      return this.message;
7118
    }
7119
 
3430 rajveer 7120
    public void setMessage(String message) {
352 ashish 7121
      this.message = message;
7122
    }
7123
 
7124
    public void unsetMessage() {
7125
      this.message = null;
7126
    }
7127
 
3430 rajveer 7128
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7129
    public boolean isSetMessage() {
7130
      return this.message != null;
7131
    }
7132
 
7133
    public void setMessageIsSet(boolean value) {
7134
      if (!value) {
7135
        this.message = null;
7136
      }
7137
    }
7138
 
7139
    public void setFieldValue(_Fields field, Object value) {
7140
      switch (field) {
7141
      case ID:
7142
        if (value == null) {
7143
          unsetId();
7144
        } else {
7145
          setId((Long)value);
7146
        }
7147
        break;
7148
 
7149
      case MESSAGE:
7150
        if (value == null) {
7151
          unsetMessage();
7152
        } else {
7153
          setMessage((String)value);
7154
        }
7155
        break;
7156
 
7157
      }
7158
    }
7159
 
7160
    public Object getFieldValue(_Fields field) {
7161
      switch (field) {
7162
      case ID:
3430 rajveer 7163
        return Long.valueOf(getId());
352 ashish 7164
 
7165
      case MESSAGE:
7166
        return getMessage();
7167
 
7168
      }
7169
      throw new IllegalStateException();
7170
    }
7171
 
3430 rajveer 7172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7173
    public boolean isSet(_Fields field) {
7174
      if (field == null) {
7175
        throw new IllegalArgumentException();
7176
      }
352 ashish 7177
 
7178
      switch (field) {
7179
      case ID:
7180
        return isSetId();
7181
      case MESSAGE:
7182
        return isSetMessage();
7183
      }
7184
      throw new IllegalStateException();
7185
    }
7186
 
7187
    @Override
7188
    public boolean equals(Object that) {
7189
      if (that == null)
7190
        return false;
7191
      if (that instanceof updateMessage_args)
7192
        return this.equals((updateMessage_args)that);
7193
      return false;
7194
    }
7195
 
7196
    public boolean equals(updateMessage_args that) {
7197
      if (that == null)
7198
        return false;
7199
 
7200
      boolean this_present_id = true;
7201
      boolean that_present_id = true;
7202
      if (this_present_id || that_present_id) {
7203
        if (!(this_present_id && that_present_id))
7204
          return false;
7205
        if (this.id != that.id)
7206
          return false;
7207
      }
7208
 
7209
      boolean this_present_message = true && this.isSetMessage();
7210
      boolean that_present_message = true && that.isSetMessage();
7211
      if (this_present_message || that_present_message) {
7212
        if (!(this_present_message && that_present_message))
7213
          return false;
7214
        if (!this.message.equals(that.message))
7215
          return false;
7216
      }
7217
 
7218
      return true;
7219
    }
7220
 
7221
    @Override
7222
    public int hashCode() {
7223
      return 0;
7224
    }
7225
 
7226
    public int compareTo(updateMessage_args other) {
7227
      if (!getClass().equals(other.getClass())) {
7228
        return getClass().getName().compareTo(other.getClass().getName());
7229
      }
7230
 
7231
      int lastComparison = 0;
7232
      updateMessage_args typedOther = (updateMessage_args)other;
7233
 
3430 rajveer 7234
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7235
      if (lastComparison != 0) {
7236
        return lastComparison;
7237
      }
3430 rajveer 7238
      if (isSetId()) {
7239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7240
        if (lastComparison != 0) {
7241
          return lastComparison;
7242
        }
352 ashish 7243
      }
3430 rajveer 7244
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7245
      if (lastComparison != 0) {
7246
        return lastComparison;
7247
      }
3430 rajveer 7248
      if (isSetMessage()) {
7249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7250
        if (lastComparison != 0) {
7251
          return lastComparison;
7252
        }
352 ashish 7253
      }
7254
      return 0;
7255
    }
7256
 
3430 rajveer 7257
    public _Fields fieldForId(int fieldId) {
7258
      return _Fields.findByThriftId(fieldId);
7259
    }
7260
 
7261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7262
      org.apache.thrift.protocol.TField field;
352 ashish 7263
      iprot.readStructBegin();
7264
      while (true)
7265
      {
7266
        field = iprot.readFieldBegin();
3430 rajveer 7267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7268
          break;
7269
        }
3430 rajveer 7270
        switch (field.id) {
7271
          case 1: // ID
7272
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7273
              this.id = iprot.readI64();
7274
              setIdIsSet(true);
7275
            } else { 
7276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7277
            }
7278
            break;
7279
          case 2: // MESSAGE
7280
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7281
              this.message = iprot.readString();
7282
            } else { 
7283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7284
            }
7285
            break;
7286
          default:
7287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7288
        }
3430 rajveer 7289
        iprot.readFieldEnd();
352 ashish 7290
      }
7291
      iprot.readStructEnd();
7292
      validate();
7293
    }
7294
 
3430 rajveer 7295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7296
      validate();
7297
 
7298
      oprot.writeStructBegin(STRUCT_DESC);
7299
      oprot.writeFieldBegin(ID_FIELD_DESC);
7300
      oprot.writeI64(this.id);
7301
      oprot.writeFieldEnd();
7302
      if (this.message != null) {
7303
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7304
        oprot.writeString(this.message);
7305
        oprot.writeFieldEnd();
7306
      }
7307
      oprot.writeFieldStop();
7308
      oprot.writeStructEnd();
7309
    }
7310
 
7311
    @Override
7312
    public String toString() {
7313
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7314
      boolean first = true;
7315
 
7316
      sb.append("id:");
7317
      sb.append(this.id);
7318
      first = false;
7319
      if (!first) sb.append(", ");
7320
      sb.append("message:");
7321
      if (this.message == null) {
7322
        sb.append("null");
7323
      } else {
7324
        sb.append(this.message);
7325
      }
7326
      first = false;
7327
      sb.append(")");
7328
      return sb.toString();
7329
    }
7330
 
3430 rajveer 7331
    public void validate() throws org.apache.thrift.TException {
352 ashish 7332
      // check for required fields
7333
    }
7334
 
3430 rajveer 7335
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7336
      try {
7337
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7338
      } catch (org.apache.thrift.TException te) {
7339
        throw new java.io.IOException(te);
7340
      }
7341
    }
7342
 
7343
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7344
      try {
7345
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7346
        __isset_bit_vector = new BitSet(1);
7347
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7348
      } catch (org.apache.thrift.TException te) {
7349
        throw new java.io.IOException(te);
7350
      }
7351
    }
7352
 
352 ashish 7353
  }
7354
 
3430 rajveer 7355
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7356
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7357
 
3430 rajveer 7358
    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 7359
 
3430 rajveer 7360
    private HelperServiceException se; // required
352 ashish 7361
 
7362
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7363
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7364
      SE((short)1, "se");
7365
 
7366
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7367
 
7368
      static {
7369
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7370
          byName.put(field.getFieldName(), field);
7371
        }
7372
      }
7373
 
7374
      /**
7375
       * Find the _Fields constant that matches fieldId, or null if its not found.
7376
       */
7377
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7378
        switch(fieldId) {
7379
          case 1: // SE
7380
            return SE;
7381
          default:
7382
            return null;
7383
        }
352 ashish 7384
      }
7385
 
7386
      /**
7387
       * Find the _Fields constant that matches fieldId, throwing an exception
7388
       * if it is not found.
7389
       */
7390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7391
        _Fields fields = findByThriftId(fieldId);
7392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7393
        return fields;
7394
      }
7395
 
7396
      /**
7397
       * Find the _Fields constant that matches name, or null if its not found.
7398
       */
7399
      public static _Fields findByName(String name) {
7400
        return byName.get(name);
7401
      }
7402
 
7403
      private final short _thriftId;
7404
      private final String _fieldName;
7405
 
7406
      _Fields(short thriftId, String fieldName) {
7407
        _thriftId = thriftId;
7408
        _fieldName = fieldName;
7409
      }
7410
 
7411
      public short getThriftFieldId() {
7412
        return _thriftId;
7413
      }
7414
 
7415
      public String getFieldName() {
7416
        return _fieldName;
7417
      }
7418
    }
7419
 
7420
    // isset id assignments
7421
 
3430 rajveer 7422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7423
    static {
3430 rajveer 7424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7425
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7427
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7428
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7429
    }
7430
 
7431
    public updateMessage_result() {
7432
    }
7433
 
7434
    public updateMessage_result(
7435
      HelperServiceException se)
7436
    {
7437
      this();
7438
      this.se = se;
7439
    }
7440
 
7441
    /**
7442
     * Performs a deep copy on <i>other</i>.
7443
     */
7444
    public updateMessage_result(updateMessage_result other) {
7445
      if (other.isSetSe()) {
7446
        this.se = new HelperServiceException(other.se);
7447
      }
7448
    }
7449
 
7450
    public updateMessage_result deepCopy() {
7451
      return new updateMessage_result(this);
7452
    }
7453
 
3430 rajveer 7454
    @Override
7455
    public void clear() {
7456
      this.se = null;
352 ashish 7457
    }
7458
 
7459
    public HelperServiceException getSe() {
7460
      return this.se;
7461
    }
7462
 
3430 rajveer 7463
    public void setSe(HelperServiceException se) {
352 ashish 7464
      this.se = se;
7465
    }
7466
 
7467
    public void unsetSe() {
7468
      this.se = null;
7469
    }
7470
 
3430 rajveer 7471
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7472
    public boolean isSetSe() {
7473
      return this.se != null;
7474
    }
7475
 
7476
    public void setSeIsSet(boolean value) {
7477
      if (!value) {
7478
        this.se = null;
7479
      }
7480
    }
7481
 
7482
    public void setFieldValue(_Fields field, Object value) {
7483
      switch (field) {
7484
      case SE:
7485
        if (value == null) {
7486
          unsetSe();
7487
        } else {
7488
          setSe((HelperServiceException)value);
7489
        }
7490
        break;
7491
 
7492
      }
7493
    }
7494
 
7495
    public Object getFieldValue(_Fields field) {
7496
      switch (field) {
7497
      case SE:
7498
        return getSe();
7499
 
7500
      }
7501
      throw new IllegalStateException();
7502
    }
7503
 
3430 rajveer 7504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7505
    public boolean isSet(_Fields field) {
7506
      if (field == null) {
7507
        throw new IllegalArgumentException();
7508
      }
352 ashish 7509
 
7510
      switch (field) {
7511
      case SE:
7512
        return isSetSe();
7513
      }
7514
      throw new IllegalStateException();
7515
    }
7516
 
7517
    @Override
7518
    public boolean equals(Object that) {
7519
      if (that == null)
7520
        return false;
7521
      if (that instanceof updateMessage_result)
7522
        return this.equals((updateMessage_result)that);
7523
      return false;
7524
    }
7525
 
7526
    public boolean equals(updateMessage_result that) {
7527
      if (that == null)
7528
        return false;
7529
 
7530
      boolean this_present_se = true && this.isSetSe();
7531
      boolean that_present_se = true && that.isSetSe();
7532
      if (this_present_se || that_present_se) {
7533
        if (!(this_present_se && that_present_se))
7534
          return false;
7535
        if (!this.se.equals(that.se))
7536
          return false;
7537
      }
7538
 
7539
      return true;
7540
    }
7541
 
7542
    @Override
7543
    public int hashCode() {
7544
      return 0;
7545
    }
7546
 
7547
    public int compareTo(updateMessage_result other) {
7548
      if (!getClass().equals(other.getClass())) {
7549
        return getClass().getName().compareTo(other.getClass().getName());
7550
      }
7551
 
7552
      int lastComparison = 0;
7553
      updateMessage_result typedOther = (updateMessage_result)other;
7554
 
3430 rajveer 7555
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7556
      if (lastComparison != 0) {
7557
        return lastComparison;
7558
      }
3430 rajveer 7559
      if (isSetSe()) {
7560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7561
        if (lastComparison != 0) {
7562
          return lastComparison;
7563
        }
352 ashish 7564
      }
7565
      return 0;
7566
    }
7567
 
3430 rajveer 7568
    public _Fields fieldForId(int fieldId) {
7569
      return _Fields.findByThriftId(fieldId);
7570
    }
7571
 
7572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7573
      org.apache.thrift.protocol.TField field;
352 ashish 7574
      iprot.readStructBegin();
7575
      while (true)
7576
      {
7577
        field = iprot.readFieldBegin();
3430 rajveer 7578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7579
          break;
7580
        }
3430 rajveer 7581
        switch (field.id) {
7582
          case 1: // SE
7583
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7584
              this.se = new HelperServiceException();
7585
              this.se.read(iprot);
7586
            } else { 
7587
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7588
            }
7589
            break;
7590
          default:
7591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7592
        }
3430 rajveer 7593
        iprot.readFieldEnd();
352 ashish 7594
      }
7595
      iprot.readStructEnd();
7596
      validate();
7597
    }
7598
 
3430 rajveer 7599
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7600
      oprot.writeStructBegin(STRUCT_DESC);
7601
 
7602
      if (this.isSetSe()) {
7603
        oprot.writeFieldBegin(SE_FIELD_DESC);
7604
        this.se.write(oprot);
7605
        oprot.writeFieldEnd();
7606
      }
7607
      oprot.writeFieldStop();
7608
      oprot.writeStructEnd();
7609
    }
7610
 
7611
    @Override
7612
    public String toString() {
7613
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7614
      boolean first = true;
7615
 
7616
      sb.append("se:");
7617
      if (this.se == null) {
7618
        sb.append("null");
7619
      } else {
7620
        sb.append(this.se);
7621
      }
7622
      first = false;
7623
      sb.append(")");
7624
      return sb.toString();
7625
    }
7626
 
3430 rajveer 7627
    public void validate() throws org.apache.thrift.TException {
352 ashish 7628
      // check for required fields
7629
    }
7630
 
3430 rajveer 7631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7632
      try {
7633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7634
      } catch (org.apache.thrift.TException te) {
7635
        throw new java.io.IOException(te);
7636
      }
7637
    }
7638
 
7639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7640
      try {
7641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7642
      } catch (org.apache.thrift.TException te) {
7643
        throw new java.io.IOException(te);
7644
      }
7645
    }
7646
 
352 ashish 7647
  }
7648
 
3430 rajveer 7649
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7651
 
3430 rajveer 7652
    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 7653
 
3430 rajveer 7654
    private long id; // required
352 ashish 7655
 
7656
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7657
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7658
      ID((short)1, "id");
7659
 
7660
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7661
 
7662
      static {
7663
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7664
          byName.put(field.getFieldName(), field);
7665
        }
7666
      }
7667
 
7668
      /**
7669
       * Find the _Fields constant that matches fieldId, or null if its not found.
7670
       */
7671
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7672
        switch(fieldId) {
7673
          case 1: // ID
7674
            return ID;
7675
          default:
7676
            return null;
7677
        }
352 ashish 7678
      }
7679
 
7680
      /**
7681
       * Find the _Fields constant that matches fieldId, throwing an exception
7682
       * if it is not found.
7683
       */
7684
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7685
        _Fields fields = findByThriftId(fieldId);
7686
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7687
        return fields;
7688
      }
7689
 
7690
      /**
7691
       * Find the _Fields constant that matches name, or null if its not found.
7692
       */
7693
      public static _Fields findByName(String name) {
7694
        return byName.get(name);
7695
      }
7696
 
7697
      private final short _thriftId;
7698
      private final String _fieldName;
7699
 
7700
      _Fields(short thriftId, String fieldName) {
7701
        _thriftId = thriftId;
7702
        _fieldName = fieldName;
7703
      }
7704
 
7705
      public short getThriftFieldId() {
7706
        return _thriftId;
7707
      }
7708
 
7709
      public String getFieldName() {
7710
        return _fieldName;
7711
      }
7712
    }
7713
 
7714
    // isset id assignments
7715
    private static final int __ID_ISSET_ID = 0;
7716
    private BitSet __isset_bit_vector = new BitSet(1);
7717
 
3430 rajveer 7718
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7719
    static {
3430 rajveer 7720
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7721
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7723
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7724
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7725
    }
7726
 
7727
    public getMessage_args() {
7728
    }
7729
 
7730
    public getMessage_args(
7731
      long id)
7732
    {
7733
      this();
7734
      this.id = id;
7735
      setIdIsSet(true);
7736
    }
7737
 
7738
    /**
7739
     * Performs a deep copy on <i>other</i>.
7740
     */
7741
    public getMessage_args(getMessage_args other) {
7742
      __isset_bit_vector.clear();
7743
      __isset_bit_vector.or(other.__isset_bit_vector);
7744
      this.id = other.id;
7745
    }
7746
 
7747
    public getMessage_args deepCopy() {
7748
      return new getMessage_args(this);
7749
    }
7750
 
3430 rajveer 7751
    @Override
7752
    public void clear() {
7753
      setIdIsSet(false);
7754
      this.id = 0;
352 ashish 7755
    }
7756
 
7757
    public long getId() {
7758
      return this.id;
7759
    }
7760
 
3430 rajveer 7761
    public void setId(long id) {
352 ashish 7762
      this.id = id;
7763
      setIdIsSet(true);
7764
    }
7765
 
7766
    public void unsetId() {
7767
      __isset_bit_vector.clear(__ID_ISSET_ID);
7768
    }
7769
 
3430 rajveer 7770
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7771
    public boolean isSetId() {
7772
      return __isset_bit_vector.get(__ID_ISSET_ID);
7773
    }
7774
 
7775
    public void setIdIsSet(boolean value) {
7776
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7777
    }
7778
 
7779
    public void setFieldValue(_Fields field, Object value) {
7780
      switch (field) {
7781
      case ID:
7782
        if (value == null) {
7783
          unsetId();
7784
        } else {
7785
          setId((Long)value);
7786
        }
7787
        break;
7788
 
7789
      }
7790
    }
7791
 
7792
    public Object getFieldValue(_Fields field) {
7793
      switch (field) {
7794
      case ID:
3430 rajveer 7795
        return Long.valueOf(getId());
352 ashish 7796
 
7797
      }
7798
      throw new IllegalStateException();
7799
    }
7800
 
3430 rajveer 7801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7802
    public boolean isSet(_Fields field) {
7803
      if (field == null) {
7804
        throw new IllegalArgumentException();
7805
      }
352 ashish 7806
 
7807
      switch (field) {
7808
      case ID:
7809
        return isSetId();
7810
      }
7811
      throw new IllegalStateException();
7812
    }
7813
 
7814
    @Override
7815
    public boolean equals(Object that) {
7816
      if (that == null)
7817
        return false;
7818
      if (that instanceof getMessage_args)
7819
        return this.equals((getMessage_args)that);
7820
      return false;
7821
    }
7822
 
7823
    public boolean equals(getMessage_args that) {
7824
      if (that == null)
7825
        return false;
7826
 
7827
      boolean this_present_id = true;
7828
      boolean that_present_id = true;
7829
      if (this_present_id || that_present_id) {
7830
        if (!(this_present_id && that_present_id))
7831
          return false;
7832
        if (this.id != that.id)
7833
          return false;
7834
      }
7835
 
7836
      return true;
7837
    }
7838
 
7839
    @Override
7840
    public int hashCode() {
7841
      return 0;
7842
    }
7843
 
7844
    public int compareTo(getMessage_args other) {
7845
      if (!getClass().equals(other.getClass())) {
7846
        return getClass().getName().compareTo(other.getClass().getName());
7847
      }
7848
 
7849
      int lastComparison = 0;
7850
      getMessage_args typedOther = (getMessage_args)other;
7851
 
3430 rajveer 7852
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7853
      if (lastComparison != 0) {
7854
        return lastComparison;
7855
      }
3430 rajveer 7856
      if (isSetId()) {
7857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7858
        if (lastComparison != 0) {
7859
          return lastComparison;
7860
        }
352 ashish 7861
      }
7862
      return 0;
7863
    }
7864
 
3430 rajveer 7865
    public _Fields fieldForId(int fieldId) {
7866
      return _Fields.findByThriftId(fieldId);
7867
    }
7868
 
7869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7870
      org.apache.thrift.protocol.TField field;
352 ashish 7871
      iprot.readStructBegin();
7872
      while (true)
7873
      {
7874
        field = iprot.readFieldBegin();
3430 rajveer 7875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7876
          break;
7877
        }
3430 rajveer 7878
        switch (field.id) {
7879
          case 1: // ID
7880
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7881
              this.id = iprot.readI64();
7882
              setIdIsSet(true);
7883
            } else { 
7884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7885
            }
7886
            break;
7887
          default:
7888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7889
        }
3430 rajveer 7890
        iprot.readFieldEnd();
352 ashish 7891
      }
7892
      iprot.readStructEnd();
7893
      validate();
7894
    }
7895
 
3430 rajveer 7896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7897
      validate();
7898
 
7899
      oprot.writeStructBegin(STRUCT_DESC);
7900
      oprot.writeFieldBegin(ID_FIELD_DESC);
7901
      oprot.writeI64(this.id);
7902
      oprot.writeFieldEnd();
7903
      oprot.writeFieldStop();
7904
      oprot.writeStructEnd();
7905
    }
7906
 
7907
    @Override
7908
    public String toString() {
7909
      StringBuilder sb = new StringBuilder("getMessage_args(");
7910
      boolean first = true;
7911
 
7912
      sb.append("id:");
7913
      sb.append(this.id);
7914
      first = false;
7915
      sb.append(")");
7916
      return sb.toString();
7917
    }
7918
 
3430 rajveer 7919
    public void validate() throws org.apache.thrift.TException {
352 ashish 7920
      // check for required fields
7921
    }
7922
 
3430 rajveer 7923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7924
      try {
7925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7926
      } catch (org.apache.thrift.TException te) {
7927
        throw new java.io.IOException(te);
7928
      }
7929
    }
7930
 
7931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7932
      try {
7933
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7934
        __isset_bit_vector = new BitSet(1);
7935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7936
      } catch (org.apache.thrift.TException te) {
7937
        throw new java.io.IOException(te);
7938
      }
7939
    }
7940
 
352 ashish 7941
  }
7942
 
3430 rajveer 7943
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7945
 
3430 rajveer 7946
    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);
7947
    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 7948
 
3430 rajveer 7949
    private Message success; // required
7950
    private HelperServiceException se; // required
352 ashish 7951
 
7952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7954
      SUCCESS((short)0, "success"),
7955
      SE((short)1, "se");
7956
 
7957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7958
 
7959
      static {
7960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7961
          byName.put(field.getFieldName(), field);
7962
        }
7963
      }
7964
 
7965
      /**
7966
       * Find the _Fields constant that matches fieldId, or null if its not found.
7967
       */
7968
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7969
        switch(fieldId) {
7970
          case 0: // SUCCESS
7971
            return SUCCESS;
7972
          case 1: // SE
7973
            return SE;
7974
          default:
7975
            return null;
7976
        }
352 ashish 7977
      }
7978
 
7979
      /**
7980
       * Find the _Fields constant that matches fieldId, throwing an exception
7981
       * if it is not found.
7982
       */
7983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7984
        _Fields fields = findByThriftId(fieldId);
7985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7986
        return fields;
7987
      }
7988
 
7989
      /**
7990
       * Find the _Fields constant that matches name, or null if its not found.
7991
       */
7992
      public static _Fields findByName(String name) {
7993
        return byName.get(name);
7994
      }
7995
 
7996
      private final short _thriftId;
7997
      private final String _fieldName;
7998
 
7999
      _Fields(short thriftId, String fieldName) {
8000
        _thriftId = thriftId;
8001
        _fieldName = fieldName;
8002
      }
8003
 
8004
      public short getThriftFieldId() {
8005
        return _thriftId;
8006
      }
8007
 
8008
      public String getFieldName() {
8009
        return _fieldName;
8010
      }
8011
    }
8012
 
8013
    // isset id assignments
8014
 
3430 rajveer 8015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8016
    static {
3430 rajveer 8017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8018
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8019
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8020
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 8024
    }
8025
 
8026
    public getMessage_result() {
8027
    }
8028
 
8029
    public getMessage_result(
8030
      Message success,
8031
      HelperServiceException se)
8032
    {
8033
      this();
8034
      this.success = success;
8035
      this.se = se;
8036
    }
8037
 
8038
    /**
8039
     * Performs a deep copy on <i>other</i>.
8040
     */
8041
    public getMessage_result(getMessage_result other) {
8042
      if (other.isSetSuccess()) {
8043
        this.success = new Message(other.success);
8044
      }
8045
      if (other.isSetSe()) {
8046
        this.se = new HelperServiceException(other.se);
8047
      }
8048
    }
8049
 
8050
    public getMessage_result deepCopy() {
8051
      return new getMessage_result(this);
8052
    }
8053
 
3430 rajveer 8054
    @Override
8055
    public void clear() {
8056
      this.success = null;
8057
      this.se = null;
352 ashish 8058
    }
8059
 
8060
    public Message getSuccess() {
8061
      return this.success;
8062
    }
8063
 
3430 rajveer 8064
    public void setSuccess(Message success) {
352 ashish 8065
      this.success = success;
8066
    }
8067
 
8068
    public void unsetSuccess() {
8069
      this.success = null;
8070
    }
8071
 
3430 rajveer 8072
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8073
    public boolean isSetSuccess() {
8074
      return this.success != null;
8075
    }
8076
 
8077
    public void setSuccessIsSet(boolean value) {
8078
      if (!value) {
8079
        this.success = null;
8080
      }
8081
    }
8082
 
8083
    public HelperServiceException getSe() {
8084
      return this.se;
8085
    }
8086
 
3430 rajveer 8087
    public void setSe(HelperServiceException se) {
352 ashish 8088
      this.se = se;
8089
    }
8090
 
8091
    public void unsetSe() {
8092
      this.se = null;
8093
    }
8094
 
3430 rajveer 8095
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8096
    public boolean isSetSe() {
8097
      return this.se != null;
8098
    }
8099
 
8100
    public void setSeIsSet(boolean value) {
8101
      if (!value) {
8102
        this.se = null;
8103
      }
8104
    }
8105
 
8106
    public void setFieldValue(_Fields field, Object value) {
8107
      switch (field) {
8108
      case SUCCESS:
8109
        if (value == null) {
8110
          unsetSuccess();
8111
        } else {
8112
          setSuccess((Message)value);
8113
        }
8114
        break;
8115
 
8116
      case SE:
8117
        if (value == null) {
8118
          unsetSe();
8119
        } else {
8120
          setSe((HelperServiceException)value);
8121
        }
8122
        break;
8123
 
8124
      }
8125
    }
8126
 
8127
    public Object getFieldValue(_Fields field) {
8128
      switch (field) {
8129
      case SUCCESS:
8130
        return getSuccess();
8131
 
8132
      case SE:
8133
        return getSe();
8134
 
8135
      }
8136
      throw new IllegalStateException();
8137
    }
8138
 
3430 rajveer 8139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8140
    public boolean isSet(_Fields field) {
8141
      if (field == null) {
8142
        throw new IllegalArgumentException();
8143
      }
352 ashish 8144
 
8145
      switch (field) {
8146
      case SUCCESS:
8147
        return isSetSuccess();
8148
      case SE:
8149
        return isSetSe();
8150
      }
8151
      throw new IllegalStateException();
8152
    }
8153
 
8154
    @Override
8155
    public boolean equals(Object that) {
8156
      if (that == null)
8157
        return false;
8158
      if (that instanceof getMessage_result)
8159
        return this.equals((getMessage_result)that);
8160
      return false;
8161
    }
8162
 
8163
    public boolean equals(getMessage_result that) {
8164
      if (that == null)
8165
        return false;
8166
 
8167
      boolean this_present_success = true && this.isSetSuccess();
8168
      boolean that_present_success = true && that.isSetSuccess();
8169
      if (this_present_success || that_present_success) {
8170
        if (!(this_present_success && that_present_success))
8171
          return false;
8172
        if (!this.success.equals(that.success))
8173
          return false;
8174
      }
8175
 
8176
      boolean this_present_se = true && this.isSetSe();
8177
      boolean that_present_se = true && that.isSetSe();
8178
      if (this_present_se || that_present_se) {
8179
        if (!(this_present_se && that_present_se))
8180
          return false;
8181
        if (!this.se.equals(that.se))
8182
          return false;
8183
      }
8184
 
8185
      return true;
8186
    }
8187
 
8188
    @Override
8189
    public int hashCode() {
8190
      return 0;
8191
    }
8192
 
8193
    public int compareTo(getMessage_result other) {
8194
      if (!getClass().equals(other.getClass())) {
8195
        return getClass().getName().compareTo(other.getClass().getName());
8196
      }
8197
 
8198
      int lastComparison = 0;
8199
      getMessage_result typedOther = (getMessage_result)other;
8200
 
3430 rajveer 8201
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8202
      if (lastComparison != 0) {
8203
        return lastComparison;
8204
      }
3430 rajveer 8205
      if (isSetSuccess()) {
8206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8207
        if (lastComparison != 0) {
8208
          return lastComparison;
8209
        }
352 ashish 8210
      }
3430 rajveer 8211
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8212
      if (lastComparison != 0) {
8213
        return lastComparison;
8214
      }
3430 rajveer 8215
      if (isSetSe()) {
8216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8217
        if (lastComparison != 0) {
8218
          return lastComparison;
8219
        }
352 ashish 8220
      }
8221
      return 0;
8222
    }
8223
 
3430 rajveer 8224
    public _Fields fieldForId(int fieldId) {
8225
      return _Fields.findByThriftId(fieldId);
8226
    }
8227
 
8228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8229
      org.apache.thrift.protocol.TField field;
352 ashish 8230
      iprot.readStructBegin();
8231
      while (true)
8232
      {
8233
        field = iprot.readFieldBegin();
3430 rajveer 8234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8235
          break;
8236
        }
3430 rajveer 8237
        switch (field.id) {
8238
          case 0: // SUCCESS
8239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8240
              this.success = new Message();
8241
              this.success.read(iprot);
8242
            } else { 
8243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8244
            }
8245
            break;
8246
          case 1: // SE
8247
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8248
              this.se = new HelperServiceException();
8249
              this.se.read(iprot);
8250
            } else { 
8251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8252
            }
8253
            break;
8254
          default:
8255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8256
        }
3430 rajveer 8257
        iprot.readFieldEnd();
352 ashish 8258
      }
8259
      iprot.readStructEnd();
8260
      validate();
8261
    }
8262
 
3430 rajveer 8263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8264
      oprot.writeStructBegin(STRUCT_DESC);
8265
 
8266
      if (this.isSetSuccess()) {
8267
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8268
        this.success.write(oprot);
8269
        oprot.writeFieldEnd();
8270
      } else if (this.isSetSe()) {
8271
        oprot.writeFieldBegin(SE_FIELD_DESC);
8272
        this.se.write(oprot);
8273
        oprot.writeFieldEnd();
8274
      }
8275
      oprot.writeFieldStop();
8276
      oprot.writeStructEnd();
8277
    }
8278
 
8279
    @Override
8280
    public String toString() {
8281
      StringBuilder sb = new StringBuilder("getMessage_result(");
8282
      boolean first = true;
8283
 
8284
      sb.append("success:");
8285
      if (this.success == null) {
8286
        sb.append("null");
8287
      } else {
8288
        sb.append(this.success);
8289
      }
8290
      first = false;
8291
      if (!first) sb.append(", ");
8292
      sb.append("se:");
8293
      if (this.se == null) {
8294
        sb.append("null");
8295
      } else {
8296
        sb.append(this.se);
8297
      }
8298
      first = false;
8299
      sb.append(")");
8300
      return sb.toString();
8301
    }
8302
 
3430 rajveer 8303
    public void validate() throws org.apache.thrift.TException {
352 ashish 8304
      // check for required fields
8305
    }
8306
 
3430 rajveer 8307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8308
      try {
8309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8310
      } catch (org.apache.thrift.TException te) {
8311
        throw new java.io.IOException(te);
8312
      }
8313
    }
8314
 
8315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8316
      try {
8317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8318
      } catch (org.apache.thrift.TException te) {
8319
        throw new java.io.IOException(te);
8320
      }
8321
    }
8322
 
352 ashish 8323
  }
8324
 
3430 rajveer 8325
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8327
 
3430 rajveer 8328
    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);
8329
    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 8330
 
3430 rajveer 8331
    private long id; // required
8332
    private Map<String,String> params; // required
352 ashish 8333
 
8334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8336
      ID((short)1, "id"),
8337
      PARAMS((short)2, "params");
8338
 
8339
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8340
 
8341
      static {
8342
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8343
          byName.put(field.getFieldName(), field);
8344
        }
8345
      }
8346
 
8347
      /**
8348
       * Find the _Fields constant that matches fieldId, or null if its not found.
8349
       */
8350
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8351
        switch(fieldId) {
8352
          case 1: // ID
8353
            return ID;
8354
          case 2: // PARAMS
8355
            return PARAMS;
8356
          default:
8357
            return null;
8358
        }
352 ashish 8359
      }
8360
 
8361
      /**
8362
       * Find the _Fields constant that matches fieldId, throwing an exception
8363
       * if it is not found.
8364
       */
8365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8366
        _Fields fields = findByThriftId(fieldId);
8367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8368
        return fields;
8369
      }
8370
 
8371
      /**
8372
       * Find the _Fields constant that matches name, or null if its not found.
8373
       */
8374
      public static _Fields findByName(String name) {
8375
        return byName.get(name);
8376
      }
8377
 
8378
      private final short _thriftId;
8379
      private final String _fieldName;
8380
 
8381
      _Fields(short thriftId, String fieldName) {
8382
        _thriftId = thriftId;
8383
        _fieldName = fieldName;
8384
      }
8385
 
8386
      public short getThriftFieldId() {
8387
        return _thriftId;
8388
      }
8389
 
8390
      public String getFieldName() {
8391
        return _fieldName;
8392
      }
8393
    }
8394
 
8395
    // isset id assignments
8396
    private static final int __ID_ISSET_ID = 0;
8397
    private BitSet __isset_bit_vector = new BitSet(1);
8398
 
3430 rajveer 8399
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8400
    static {
3430 rajveer 8401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8402
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8404
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8405
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8406
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8407
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8410
    }
8411
 
8412
    public getSubstitutedMessage_args() {
8413
    }
8414
 
8415
    public getSubstitutedMessage_args(
8416
      long id,
8417
      Map<String,String> params)
8418
    {
8419
      this();
8420
      this.id = id;
8421
      setIdIsSet(true);
8422
      this.params = params;
8423
    }
8424
 
8425
    /**
8426
     * Performs a deep copy on <i>other</i>.
8427
     */
8428
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8429
      __isset_bit_vector.clear();
8430
      __isset_bit_vector.or(other.__isset_bit_vector);
8431
      this.id = other.id;
8432
      if (other.isSetParams()) {
8433
        Map<String,String> __this__params = new HashMap<String,String>();
8434
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8435
 
8436
          String other_element_key = other_element.getKey();
8437
          String other_element_value = other_element.getValue();
8438
 
8439
          String __this__params_copy_key = other_element_key;
8440
 
8441
          String __this__params_copy_value = other_element_value;
8442
 
8443
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8444
        }
8445
        this.params = __this__params;
8446
      }
8447
    }
8448
 
8449
    public getSubstitutedMessage_args deepCopy() {
8450
      return new getSubstitutedMessage_args(this);
8451
    }
8452
 
3430 rajveer 8453
    @Override
8454
    public void clear() {
8455
      setIdIsSet(false);
8456
      this.id = 0;
8457
      this.params = null;
352 ashish 8458
    }
8459
 
8460
    public long getId() {
8461
      return this.id;
8462
    }
8463
 
3430 rajveer 8464
    public void setId(long id) {
352 ashish 8465
      this.id = id;
8466
      setIdIsSet(true);
8467
    }
8468
 
8469
    public void unsetId() {
8470
      __isset_bit_vector.clear(__ID_ISSET_ID);
8471
    }
8472
 
3430 rajveer 8473
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8474
    public boolean isSetId() {
8475
      return __isset_bit_vector.get(__ID_ISSET_ID);
8476
    }
8477
 
8478
    public void setIdIsSet(boolean value) {
8479
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8480
    }
8481
 
8482
    public int getParamsSize() {
8483
      return (this.params == null) ? 0 : this.params.size();
8484
    }
8485
 
8486
    public void putToParams(String key, String val) {
8487
      if (this.params == null) {
8488
        this.params = new HashMap<String,String>();
8489
      }
8490
      this.params.put(key, val);
8491
    }
8492
 
8493
    public Map<String,String> getParams() {
8494
      return this.params;
8495
    }
8496
 
3430 rajveer 8497
    public void setParams(Map<String,String> params) {
352 ashish 8498
      this.params = params;
8499
    }
8500
 
8501
    public void unsetParams() {
8502
      this.params = null;
8503
    }
8504
 
3430 rajveer 8505
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8506
    public boolean isSetParams() {
8507
      return this.params != null;
8508
    }
8509
 
8510
    public void setParamsIsSet(boolean value) {
8511
      if (!value) {
8512
        this.params = null;
8513
      }
8514
    }
8515
 
8516
    public void setFieldValue(_Fields field, Object value) {
8517
      switch (field) {
8518
      case ID:
8519
        if (value == null) {
8520
          unsetId();
8521
        } else {
8522
          setId((Long)value);
8523
        }
8524
        break;
8525
 
8526
      case PARAMS:
8527
        if (value == null) {
8528
          unsetParams();
8529
        } else {
8530
          setParams((Map<String,String>)value);
8531
        }
8532
        break;
8533
 
8534
      }
8535
    }
8536
 
8537
    public Object getFieldValue(_Fields field) {
8538
      switch (field) {
8539
      case ID:
3430 rajveer 8540
        return Long.valueOf(getId());
352 ashish 8541
 
8542
      case PARAMS:
8543
        return getParams();
8544
 
8545
      }
8546
      throw new IllegalStateException();
8547
    }
8548
 
3430 rajveer 8549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8550
    public boolean isSet(_Fields field) {
8551
      if (field == null) {
8552
        throw new IllegalArgumentException();
8553
      }
352 ashish 8554
 
8555
      switch (field) {
8556
      case ID:
8557
        return isSetId();
8558
      case PARAMS:
8559
        return isSetParams();
8560
      }
8561
      throw new IllegalStateException();
8562
    }
8563
 
8564
    @Override
8565
    public boolean equals(Object that) {
8566
      if (that == null)
8567
        return false;
8568
      if (that instanceof getSubstitutedMessage_args)
8569
        return this.equals((getSubstitutedMessage_args)that);
8570
      return false;
8571
    }
8572
 
8573
    public boolean equals(getSubstitutedMessage_args that) {
8574
      if (that == null)
8575
        return false;
8576
 
8577
      boolean this_present_id = true;
8578
      boolean that_present_id = true;
8579
      if (this_present_id || that_present_id) {
8580
        if (!(this_present_id && that_present_id))
8581
          return false;
8582
        if (this.id != that.id)
8583
          return false;
8584
      }
8585
 
8586
      boolean this_present_params = true && this.isSetParams();
8587
      boolean that_present_params = true && that.isSetParams();
8588
      if (this_present_params || that_present_params) {
8589
        if (!(this_present_params && that_present_params))
8590
          return false;
8591
        if (!this.params.equals(that.params))
8592
          return false;
8593
      }
8594
 
8595
      return true;
8596
    }
8597
 
8598
    @Override
8599
    public int hashCode() {
8600
      return 0;
8601
    }
8602
 
3430 rajveer 8603
    public int compareTo(getSubstitutedMessage_args other) {
8604
      if (!getClass().equals(other.getClass())) {
8605
        return getClass().getName().compareTo(other.getClass().getName());
8606
      }
8607
 
8608
      int lastComparison = 0;
8609
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8610
 
8611
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8612
      if (lastComparison != 0) {
8613
        return lastComparison;
8614
      }
8615
      if (isSetId()) {
8616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8617
        if (lastComparison != 0) {
8618
          return lastComparison;
8619
        }
8620
      }
8621
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8622
      if (lastComparison != 0) {
8623
        return lastComparison;
8624
      }
8625
      if (isSetParams()) {
8626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8627
        if (lastComparison != 0) {
8628
          return lastComparison;
8629
        }
8630
      }
8631
      return 0;
8632
    }
8633
 
8634
    public _Fields fieldForId(int fieldId) {
8635
      return _Fields.findByThriftId(fieldId);
8636
    }
8637
 
8638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8639
      org.apache.thrift.protocol.TField field;
352 ashish 8640
      iprot.readStructBegin();
8641
      while (true)
8642
      {
8643
        field = iprot.readFieldBegin();
3430 rajveer 8644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8645
          break;
8646
        }
3430 rajveer 8647
        switch (field.id) {
8648
          case 1: // ID
8649
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8650
              this.id = iprot.readI64();
8651
              setIdIsSet(true);
8652
            } else { 
8653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8654
            }
8655
            break;
8656
          case 2: // PARAMS
8657
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8658
              {
5864 rajveer 8659
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8660
                this.params = new HashMap<String,String>(2*_map36.size);
8661
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8662
                {
5864 rajveer 8663
                  String _key38; // required
8664
                  String _val39; // required
8665
                  _key38 = iprot.readString();
8666
                  _val39 = iprot.readString();
8667
                  this.params.put(_key38, _val39);
352 ashish 8668
                }
3430 rajveer 8669
                iprot.readMapEnd();
352 ashish 8670
              }
3430 rajveer 8671
            } else { 
8672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8673
            }
8674
            break;
8675
          default:
8676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8677
        }
3430 rajveer 8678
        iprot.readFieldEnd();
352 ashish 8679
      }
8680
      iprot.readStructEnd();
8681
      validate();
8682
    }
8683
 
3430 rajveer 8684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8685
      validate();
8686
 
8687
      oprot.writeStructBegin(STRUCT_DESC);
8688
      oprot.writeFieldBegin(ID_FIELD_DESC);
8689
      oprot.writeI64(this.id);
8690
      oprot.writeFieldEnd();
8691
      if (this.params != null) {
8692
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8693
        {
3430 rajveer 8694
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
5864 rajveer 8695
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8696
          {
5864 rajveer 8697
            oprot.writeString(_iter40.getKey());
8698
            oprot.writeString(_iter40.getValue());
352 ashish 8699
          }
8700
          oprot.writeMapEnd();
8701
        }
8702
        oprot.writeFieldEnd();
8703
      }
8704
      oprot.writeFieldStop();
8705
      oprot.writeStructEnd();
8706
    }
8707
 
8708
    @Override
8709
    public String toString() {
8710
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8711
      boolean first = true;
8712
 
8713
      sb.append("id:");
8714
      sb.append(this.id);
8715
      first = false;
8716
      if (!first) sb.append(", ");
8717
      sb.append("params:");
8718
      if (this.params == null) {
8719
        sb.append("null");
8720
      } else {
8721
        sb.append(this.params);
8722
      }
8723
      first = false;
8724
      sb.append(")");
8725
      return sb.toString();
8726
    }
8727
 
3430 rajveer 8728
    public void validate() throws org.apache.thrift.TException {
352 ashish 8729
      // check for required fields
8730
    }
8731
 
3430 rajveer 8732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8733
      try {
8734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8735
      } catch (org.apache.thrift.TException te) {
8736
        throw new java.io.IOException(te);
8737
      }
8738
    }
8739
 
8740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8741
      try {
8742
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8743
        __isset_bit_vector = new BitSet(1);
8744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8745
      } catch (org.apache.thrift.TException te) {
8746
        throw new java.io.IOException(te);
8747
      }
8748
    }
8749
 
352 ashish 8750
  }
8751
 
3430 rajveer 8752
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8753
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8754
 
3430 rajveer 8755
    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);
8756
    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 8757
 
3430 rajveer 8758
    private Message success; // required
8759
    private HelperServiceException se; // required
352 ashish 8760
 
8761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8763
      SUCCESS((short)0, "success"),
8764
      SE((short)1, "se");
8765
 
8766
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8767
 
8768
      static {
8769
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8770
          byName.put(field.getFieldName(), field);
8771
        }
8772
      }
8773
 
8774
      /**
8775
       * Find the _Fields constant that matches fieldId, or null if its not found.
8776
       */
8777
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8778
        switch(fieldId) {
8779
          case 0: // SUCCESS
8780
            return SUCCESS;
8781
          case 1: // SE
8782
            return SE;
8783
          default:
8784
            return null;
8785
        }
352 ashish 8786
      }
8787
 
8788
      /**
8789
       * Find the _Fields constant that matches fieldId, throwing an exception
8790
       * if it is not found.
8791
       */
8792
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8793
        _Fields fields = findByThriftId(fieldId);
8794
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8795
        return fields;
8796
      }
8797
 
8798
      /**
8799
       * Find the _Fields constant that matches name, or null if its not found.
8800
       */
8801
      public static _Fields findByName(String name) {
8802
        return byName.get(name);
8803
      }
8804
 
8805
      private final short _thriftId;
8806
      private final String _fieldName;
8807
 
8808
      _Fields(short thriftId, String fieldName) {
8809
        _thriftId = thriftId;
8810
        _fieldName = fieldName;
8811
      }
8812
 
8813
      public short getThriftFieldId() {
8814
        return _thriftId;
8815
      }
8816
 
8817
      public String getFieldName() {
8818
        return _fieldName;
8819
      }
8820
    }
8821
 
8822
    // isset id assignments
8823
 
3430 rajveer 8824
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8825
    static {
3430 rajveer 8826
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8827
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8828
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8829
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8831
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8832
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8833
    }
8834
 
8835
    public getSubstitutedMessage_result() {
8836
    }
8837
 
8838
    public getSubstitutedMessage_result(
8839
      Message success,
8840
      HelperServiceException se)
8841
    {
8842
      this();
8843
      this.success = success;
8844
      this.se = se;
8845
    }
8846
 
8847
    /**
8848
     * Performs a deep copy on <i>other</i>.
8849
     */
8850
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8851
      if (other.isSetSuccess()) {
8852
        this.success = new Message(other.success);
8853
      }
8854
      if (other.isSetSe()) {
8855
        this.se = new HelperServiceException(other.se);
8856
      }
8857
    }
8858
 
8859
    public getSubstitutedMessage_result deepCopy() {
8860
      return new getSubstitutedMessage_result(this);
8861
    }
8862
 
3430 rajveer 8863
    @Override
8864
    public void clear() {
8865
      this.success = null;
8866
      this.se = null;
352 ashish 8867
    }
8868
 
8869
    public Message getSuccess() {
8870
      return this.success;
8871
    }
8872
 
3430 rajveer 8873
    public void setSuccess(Message success) {
352 ashish 8874
      this.success = success;
8875
    }
8876
 
8877
    public void unsetSuccess() {
8878
      this.success = null;
8879
    }
8880
 
3430 rajveer 8881
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8882
    public boolean isSetSuccess() {
8883
      return this.success != null;
8884
    }
8885
 
8886
    public void setSuccessIsSet(boolean value) {
8887
      if (!value) {
8888
        this.success = null;
8889
      }
8890
    }
8891
 
8892
    public HelperServiceException getSe() {
8893
      return this.se;
8894
    }
8895
 
3430 rajveer 8896
    public void setSe(HelperServiceException se) {
352 ashish 8897
      this.se = se;
8898
    }
8899
 
8900
    public void unsetSe() {
8901
      this.se = null;
8902
    }
8903
 
3430 rajveer 8904
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8905
    public boolean isSetSe() {
8906
      return this.se != null;
8907
    }
8908
 
8909
    public void setSeIsSet(boolean value) {
8910
      if (!value) {
8911
        this.se = null;
8912
      }
8913
    }
8914
 
8915
    public void setFieldValue(_Fields field, Object value) {
8916
      switch (field) {
8917
      case SUCCESS:
8918
        if (value == null) {
8919
          unsetSuccess();
8920
        } else {
8921
          setSuccess((Message)value);
8922
        }
8923
        break;
8924
 
8925
      case SE:
8926
        if (value == null) {
8927
          unsetSe();
8928
        } else {
8929
          setSe((HelperServiceException)value);
8930
        }
8931
        break;
8932
 
8933
      }
8934
    }
8935
 
8936
    public Object getFieldValue(_Fields field) {
8937
      switch (field) {
8938
      case SUCCESS:
8939
        return getSuccess();
8940
 
8941
      case SE:
8942
        return getSe();
8943
 
8944
      }
8945
      throw new IllegalStateException();
8946
    }
8947
 
3430 rajveer 8948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8949
    public boolean isSet(_Fields field) {
8950
      if (field == null) {
8951
        throw new IllegalArgumentException();
8952
      }
352 ashish 8953
 
8954
      switch (field) {
8955
      case SUCCESS:
8956
        return isSetSuccess();
8957
      case SE:
8958
        return isSetSe();
8959
      }
8960
      throw new IllegalStateException();
8961
    }
8962
 
8963
    @Override
8964
    public boolean equals(Object that) {
8965
      if (that == null)
8966
        return false;
8967
      if (that instanceof getSubstitutedMessage_result)
8968
        return this.equals((getSubstitutedMessage_result)that);
8969
      return false;
8970
    }
8971
 
8972
    public boolean equals(getSubstitutedMessage_result that) {
8973
      if (that == null)
8974
        return false;
8975
 
8976
      boolean this_present_success = true && this.isSetSuccess();
8977
      boolean that_present_success = true && that.isSetSuccess();
8978
      if (this_present_success || that_present_success) {
8979
        if (!(this_present_success && that_present_success))
8980
          return false;
8981
        if (!this.success.equals(that.success))
8982
          return false;
8983
      }
8984
 
8985
      boolean this_present_se = true && this.isSetSe();
8986
      boolean that_present_se = true && that.isSetSe();
8987
      if (this_present_se || that_present_se) {
8988
        if (!(this_present_se && that_present_se))
8989
          return false;
8990
        if (!this.se.equals(that.se))
8991
          return false;
8992
      }
8993
 
8994
      return true;
8995
    }
8996
 
8997
    @Override
8998
    public int hashCode() {
8999
      return 0;
9000
    }
9001
 
9002
    public int compareTo(getSubstitutedMessage_result other) {
9003
      if (!getClass().equals(other.getClass())) {
9004
        return getClass().getName().compareTo(other.getClass().getName());
9005
      }
9006
 
9007
      int lastComparison = 0;
9008
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
9009
 
3430 rajveer 9010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9011
      if (lastComparison != 0) {
9012
        return lastComparison;
9013
      }
3430 rajveer 9014
      if (isSetSuccess()) {
9015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9016
        if (lastComparison != 0) {
9017
          return lastComparison;
9018
        }
352 ashish 9019
      }
3430 rajveer 9020
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9021
      if (lastComparison != 0) {
9022
        return lastComparison;
9023
      }
3430 rajveer 9024
      if (isSetSe()) {
9025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9026
        if (lastComparison != 0) {
9027
          return lastComparison;
9028
        }
352 ashish 9029
      }
9030
      return 0;
9031
    }
9032
 
3430 rajveer 9033
    public _Fields fieldForId(int fieldId) {
9034
      return _Fields.findByThriftId(fieldId);
9035
    }
9036
 
9037
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9038
      org.apache.thrift.protocol.TField field;
352 ashish 9039
      iprot.readStructBegin();
9040
      while (true)
9041
      {
9042
        field = iprot.readFieldBegin();
3430 rajveer 9043
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9044
          break;
9045
        }
3430 rajveer 9046
        switch (field.id) {
9047
          case 0: // SUCCESS
9048
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9049
              this.success = new Message();
9050
              this.success.read(iprot);
9051
            } else { 
9052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9053
            }
9054
            break;
9055
          case 1: // SE
9056
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9057
              this.se = new HelperServiceException();
9058
              this.se.read(iprot);
9059
            } else { 
9060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9061
            }
9062
            break;
9063
          default:
9064
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9065
        }
3430 rajveer 9066
        iprot.readFieldEnd();
352 ashish 9067
      }
9068
      iprot.readStructEnd();
9069
      validate();
9070
    }
9071
 
3430 rajveer 9072
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9073
      oprot.writeStructBegin(STRUCT_DESC);
9074
 
9075
      if (this.isSetSuccess()) {
9076
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9077
        this.success.write(oprot);
9078
        oprot.writeFieldEnd();
9079
      } else if (this.isSetSe()) {
9080
        oprot.writeFieldBegin(SE_FIELD_DESC);
9081
        this.se.write(oprot);
9082
        oprot.writeFieldEnd();
9083
      }
9084
      oprot.writeFieldStop();
9085
      oprot.writeStructEnd();
9086
    }
9087
 
9088
    @Override
9089
    public String toString() {
9090
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9091
      boolean first = true;
9092
 
9093
      sb.append("success:");
9094
      if (this.success == null) {
9095
        sb.append("null");
9096
      } else {
9097
        sb.append(this.success);
9098
      }
9099
      first = false;
9100
      if (!first) sb.append(", ");
9101
      sb.append("se:");
9102
      if (this.se == null) {
9103
        sb.append("null");
9104
      } else {
9105
        sb.append(this.se);
9106
      }
9107
      first = false;
9108
      sb.append(")");
9109
      return sb.toString();
9110
    }
9111
 
3430 rajveer 9112
    public void validate() throws org.apache.thrift.TException {
352 ashish 9113
      // check for required fields
9114
    }
9115
 
3430 rajveer 9116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9117
      try {
9118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9119
      } catch (org.apache.thrift.TException te) {
9120
        throw new java.io.IOException(te);
9121
      }
9122
    }
9123
 
9124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9125
      try {
9126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9127
      } catch (org.apache.thrift.TException te) {
9128
        throw new java.io.IOException(te);
9129
      }
9130
    }
9131
 
352 ashish 9132
  }
9133
 
3430 rajveer 9134
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9136
 
3430 rajveer 9137
    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);
9138
    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);
9139
    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 9140
 
3430 rajveer 9141
    private String username; // required
9142
    private String password; // required
9143
    private long warehouseId; // required
495 rajveer 9144
 
9145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9147
      USERNAME((short)1, "username"),
9148
      PASSWORD((short)2, "password"),
9149
      WAREHOUSE_ID((short)3, "warehouseId");
9150
 
9151
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9152
 
9153
      static {
9154
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9155
          byName.put(field.getFieldName(), field);
9156
        }
9157
      }
9158
 
9159
      /**
9160
       * Find the _Fields constant that matches fieldId, or null if its not found.
9161
       */
9162
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9163
        switch(fieldId) {
9164
          case 1: // USERNAME
9165
            return USERNAME;
9166
          case 2: // PASSWORD
9167
            return PASSWORD;
9168
          case 3: // WAREHOUSE_ID
9169
            return WAREHOUSE_ID;
9170
          default:
9171
            return null;
9172
        }
495 rajveer 9173
      }
9174
 
9175
      /**
9176
       * Find the _Fields constant that matches fieldId, throwing an exception
9177
       * if it is not found.
9178
       */
9179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9180
        _Fields fields = findByThriftId(fieldId);
9181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9182
        return fields;
9183
      }
9184
 
9185
      /**
9186
       * Find the _Fields constant that matches name, or null if its not found.
9187
       */
9188
      public static _Fields findByName(String name) {
9189
        return byName.get(name);
9190
      }
9191
 
9192
      private final short _thriftId;
9193
      private final String _fieldName;
9194
 
9195
      _Fields(short thriftId, String fieldName) {
9196
        _thriftId = thriftId;
9197
        _fieldName = fieldName;
9198
      }
9199
 
9200
      public short getThriftFieldId() {
9201
        return _thriftId;
9202
      }
9203
 
9204
      public String getFieldName() {
9205
        return _fieldName;
9206
      }
9207
    }
9208
 
9209
    // isset id assignments
9210
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9211
    private BitSet __isset_bit_vector = new BitSet(1);
9212
 
3430 rajveer 9213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9214
    static {
3430 rajveer 9215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9216
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9218
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9220
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9224
    }
9225
 
9226
    public addUser_args() {
9227
    }
9228
 
9229
    public addUser_args(
9230
      String username,
9231
      String password,
9232
      long warehouseId)
9233
    {
9234
      this();
9235
      this.username = username;
9236
      this.password = password;
9237
      this.warehouseId = warehouseId;
9238
      setWarehouseIdIsSet(true);
9239
    }
9240
 
9241
    /**
9242
     * Performs a deep copy on <i>other</i>.
9243
     */
9244
    public addUser_args(addUser_args other) {
9245
      __isset_bit_vector.clear();
9246
      __isset_bit_vector.or(other.__isset_bit_vector);
9247
      if (other.isSetUsername()) {
9248
        this.username = other.username;
9249
      }
9250
      if (other.isSetPassword()) {
9251
        this.password = other.password;
9252
      }
9253
      this.warehouseId = other.warehouseId;
9254
    }
9255
 
9256
    public addUser_args deepCopy() {
9257
      return new addUser_args(this);
9258
    }
9259
 
3430 rajveer 9260
    @Override
9261
    public void clear() {
9262
      this.username = null;
9263
      this.password = null;
9264
      setWarehouseIdIsSet(false);
9265
      this.warehouseId = 0;
495 rajveer 9266
    }
9267
 
9268
    public String getUsername() {
9269
      return this.username;
9270
    }
9271
 
3430 rajveer 9272
    public void setUsername(String username) {
495 rajveer 9273
      this.username = username;
9274
    }
9275
 
9276
    public void unsetUsername() {
9277
      this.username = null;
9278
    }
9279
 
3430 rajveer 9280
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9281
    public boolean isSetUsername() {
9282
      return this.username != null;
9283
    }
9284
 
9285
    public void setUsernameIsSet(boolean value) {
9286
      if (!value) {
9287
        this.username = null;
9288
      }
9289
    }
9290
 
9291
    public String getPassword() {
9292
      return this.password;
9293
    }
9294
 
3430 rajveer 9295
    public void setPassword(String password) {
495 rajveer 9296
      this.password = password;
9297
    }
9298
 
9299
    public void unsetPassword() {
9300
      this.password = null;
9301
    }
9302
 
3430 rajveer 9303
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9304
    public boolean isSetPassword() {
9305
      return this.password != null;
9306
    }
9307
 
9308
    public void setPasswordIsSet(boolean value) {
9309
      if (!value) {
9310
        this.password = null;
9311
      }
9312
    }
9313
 
9314
    public long getWarehouseId() {
9315
      return this.warehouseId;
9316
    }
9317
 
3430 rajveer 9318
    public void setWarehouseId(long warehouseId) {
495 rajveer 9319
      this.warehouseId = warehouseId;
9320
      setWarehouseIdIsSet(true);
9321
    }
9322
 
9323
    public void unsetWarehouseId() {
9324
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9325
    }
9326
 
3430 rajveer 9327
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9328
    public boolean isSetWarehouseId() {
9329
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9330
    }
9331
 
9332
    public void setWarehouseIdIsSet(boolean value) {
9333
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9334
    }
9335
 
9336
    public void setFieldValue(_Fields field, Object value) {
9337
      switch (field) {
9338
      case USERNAME:
9339
        if (value == null) {
9340
          unsetUsername();
9341
        } else {
9342
          setUsername((String)value);
9343
        }
9344
        break;
9345
 
9346
      case PASSWORD:
9347
        if (value == null) {
9348
          unsetPassword();
9349
        } else {
9350
          setPassword((String)value);
9351
        }
9352
        break;
9353
 
9354
      case WAREHOUSE_ID:
9355
        if (value == null) {
9356
          unsetWarehouseId();
9357
        } else {
9358
          setWarehouseId((Long)value);
9359
        }
9360
        break;
9361
 
9362
      }
9363
    }
9364
 
9365
    public Object getFieldValue(_Fields field) {
9366
      switch (field) {
9367
      case USERNAME:
9368
        return getUsername();
9369
 
9370
      case PASSWORD:
9371
        return getPassword();
9372
 
9373
      case WAREHOUSE_ID:
3430 rajveer 9374
        return Long.valueOf(getWarehouseId());
495 rajveer 9375
 
9376
      }
9377
      throw new IllegalStateException();
9378
    }
9379
 
3430 rajveer 9380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9381
    public boolean isSet(_Fields field) {
9382
      if (field == null) {
9383
        throw new IllegalArgumentException();
9384
      }
495 rajveer 9385
 
9386
      switch (field) {
9387
      case USERNAME:
9388
        return isSetUsername();
9389
      case PASSWORD:
9390
        return isSetPassword();
9391
      case WAREHOUSE_ID:
9392
        return isSetWarehouseId();
9393
      }
9394
      throw new IllegalStateException();
9395
    }
9396
 
9397
    @Override
9398
    public boolean equals(Object that) {
9399
      if (that == null)
9400
        return false;
9401
      if (that instanceof addUser_args)
9402
        return this.equals((addUser_args)that);
9403
      return false;
9404
    }
9405
 
9406
    public boolean equals(addUser_args that) {
9407
      if (that == null)
9408
        return false;
9409
 
9410
      boolean this_present_username = true && this.isSetUsername();
9411
      boolean that_present_username = true && that.isSetUsername();
9412
      if (this_present_username || that_present_username) {
9413
        if (!(this_present_username && that_present_username))
9414
          return false;
9415
        if (!this.username.equals(that.username))
9416
          return false;
9417
      }
9418
 
9419
      boolean this_present_password = true && this.isSetPassword();
9420
      boolean that_present_password = true && that.isSetPassword();
9421
      if (this_present_password || that_present_password) {
9422
        if (!(this_present_password && that_present_password))
9423
          return false;
9424
        if (!this.password.equals(that.password))
9425
          return false;
9426
      }
9427
 
9428
      boolean this_present_warehouseId = true;
9429
      boolean that_present_warehouseId = true;
9430
      if (this_present_warehouseId || that_present_warehouseId) {
9431
        if (!(this_present_warehouseId && that_present_warehouseId))
9432
          return false;
9433
        if (this.warehouseId != that.warehouseId)
9434
          return false;
9435
      }
9436
 
9437
      return true;
9438
    }
9439
 
9440
    @Override
9441
    public int hashCode() {
9442
      return 0;
9443
    }
9444
 
9445
    public int compareTo(addUser_args other) {
9446
      if (!getClass().equals(other.getClass())) {
9447
        return getClass().getName().compareTo(other.getClass().getName());
9448
      }
9449
 
9450
      int lastComparison = 0;
9451
      addUser_args typedOther = (addUser_args)other;
9452
 
3430 rajveer 9453
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9454
      if (lastComparison != 0) {
9455
        return lastComparison;
9456
      }
3430 rajveer 9457
      if (isSetUsername()) {
9458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9459
        if (lastComparison != 0) {
9460
          return lastComparison;
9461
        }
495 rajveer 9462
      }
3430 rajveer 9463
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9464
      if (lastComparison != 0) {
9465
        return lastComparison;
9466
      }
3430 rajveer 9467
      if (isSetPassword()) {
9468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9469
        if (lastComparison != 0) {
9470
          return lastComparison;
9471
        }
495 rajveer 9472
      }
3430 rajveer 9473
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9474
      if (lastComparison != 0) {
9475
        return lastComparison;
9476
      }
3430 rajveer 9477
      if (isSetWarehouseId()) {
9478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9479
        if (lastComparison != 0) {
9480
          return lastComparison;
9481
        }
495 rajveer 9482
      }
9483
      return 0;
9484
    }
9485
 
3430 rajveer 9486
    public _Fields fieldForId(int fieldId) {
9487
      return _Fields.findByThriftId(fieldId);
9488
    }
9489
 
9490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9491
      org.apache.thrift.protocol.TField field;
495 rajveer 9492
      iprot.readStructBegin();
9493
      while (true)
9494
      {
9495
        field = iprot.readFieldBegin();
3430 rajveer 9496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9497
          break;
9498
        }
3430 rajveer 9499
        switch (field.id) {
9500
          case 1: // USERNAME
9501
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9502
              this.username = iprot.readString();
9503
            } else { 
9504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9505
            }
9506
            break;
9507
          case 2: // PASSWORD
9508
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9509
              this.password = iprot.readString();
9510
            } else { 
9511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9512
            }
9513
            break;
9514
          case 3: // WAREHOUSE_ID
9515
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9516
              this.warehouseId = iprot.readI64();
9517
              setWarehouseIdIsSet(true);
9518
            } else { 
9519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9520
            }
9521
            break;
9522
          default:
9523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9524
        }
3430 rajveer 9525
        iprot.readFieldEnd();
495 rajveer 9526
      }
9527
      iprot.readStructEnd();
9528
      validate();
9529
    }
9530
 
3430 rajveer 9531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9532
      validate();
9533
 
9534
      oprot.writeStructBegin(STRUCT_DESC);
9535
      if (this.username != null) {
9536
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9537
        oprot.writeString(this.username);
9538
        oprot.writeFieldEnd();
9539
      }
9540
      if (this.password != null) {
9541
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9542
        oprot.writeString(this.password);
9543
        oprot.writeFieldEnd();
9544
      }
9545
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9546
      oprot.writeI64(this.warehouseId);
9547
      oprot.writeFieldEnd();
9548
      oprot.writeFieldStop();
9549
      oprot.writeStructEnd();
9550
    }
9551
 
9552
    @Override
9553
    public String toString() {
9554
      StringBuilder sb = new StringBuilder("addUser_args(");
9555
      boolean first = true;
9556
 
9557
      sb.append("username:");
9558
      if (this.username == null) {
9559
        sb.append("null");
9560
      } else {
9561
        sb.append(this.username);
9562
      }
9563
      first = false;
9564
      if (!first) sb.append(", ");
9565
      sb.append("password:");
9566
      if (this.password == null) {
9567
        sb.append("null");
9568
      } else {
9569
        sb.append(this.password);
9570
      }
9571
      first = false;
9572
      if (!first) sb.append(", ");
9573
      sb.append("warehouseId:");
9574
      sb.append(this.warehouseId);
9575
      first = false;
9576
      sb.append(")");
9577
      return sb.toString();
9578
    }
9579
 
3430 rajveer 9580
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9581
      // check for required fields
9582
    }
9583
 
3430 rajveer 9584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9585
      try {
9586
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9587
      } catch (org.apache.thrift.TException te) {
9588
        throw new java.io.IOException(te);
9589
      }
9590
    }
9591
 
9592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9593
      try {
9594
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9595
        __isset_bit_vector = new BitSet(1);
9596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9597
      } catch (org.apache.thrift.TException te) {
9598
        throw new java.io.IOException(te);
9599
      }
9600
    }
9601
 
495 rajveer 9602
  }
9603
 
3430 rajveer 9604
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9606
 
3430 rajveer 9607
    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);
9608
    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 9609
 
3430 rajveer 9610
    private boolean success; // required
9611
    private HelperServiceException se; // required
495 rajveer 9612
 
9613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9615
      SUCCESS((short)0, "success"),
9616
      SE((short)1, "se");
9617
 
9618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9619
 
9620
      static {
9621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9622
          byName.put(field.getFieldName(), field);
9623
        }
9624
      }
9625
 
9626
      /**
9627
       * Find the _Fields constant that matches fieldId, or null if its not found.
9628
       */
9629
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9630
        switch(fieldId) {
9631
          case 0: // SUCCESS
9632
            return SUCCESS;
9633
          case 1: // SE
9634
            return SE;
9635
          default:
9636
            return null;
9637
        }
495 rajveer 9638
      }
9639
 
9640
      /**
9641
       * Find the _Fields constant that matches fieldId, throwing an exception
9642
       * if it is not found.
9643
       */
9644
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9645
        _Fields fields = findByThriftId(fieldId);
9646
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9647
        return fields;
9648
      }
9649
 
9650
      /**
9651
       * Find the _Fields constant that matches name, or null if its not found.
9652
       */
9653
      public static _Fields findByName(String name) {
9654
        return byName.get(name);
9655
      }
9656
 
9657
      private final short _thriftId;
9658
      private final String _fieldName;
9659
 
9660
      _Fields(short thriftId, String fieldName) {
9661
        _thriftId = thriftId;
9662
        _fieldName = fieldName;
9663
      }
9664
 
9665
      public short getThriftFieldId() {
9666
        return _thriftId;
9667
      }
9668
 
9669
      public String getFieldName() {
9670
        return _fieldName;
9671
      }
9672
    }
9673
 
9674
    // isset id assignments
9675
    private static final int __SUCCESS_ISSET_ID = 0;
9676
    private BitSet __isset_bit_vector = new BitSet(1);
9677
 
3430 rajveer 9678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9679
    static {
3430 rajveer 9680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9683
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9687
    }
9688
 
9689
    public addUser_result() {
9690
    }
9691
 
9692
    public addUser_result(
9693
      boolean success,
9694
      HelperServiceException se)
9695
    {
9696
      this();
9697
      this.success = success;
9698
      setSuccessIsSet(true);
9699
      this.se = se;
9700
    }
9701
 
9702
    /**
9703
     * Performs a deep copy on <i>other</i>.
9704
     */
9705
    public addUser_result(addUser_result other) {
9706
      __isset_bit_vector.clear();
9707
      __isset_bit_vector.or(other.__isset_bit_vector);
9708
      this.success = other.success;
9709
      if (other.isSetSe()) {
9710
        this.se = new HelperServiceException(other.se);
9711
      }
9712
    }
9713
 
9714
    public addUser_result deepCopy() {
9715
      return new addUser_result(this);
9716
    }
9717
 
3430 rajveer 9718
    @Override
9719
    public void clear() {
9720
      setSuccessIsSet(false);
9721
      this.success = false;
9722
      this.se = null;
495 rajveer 9723
    }
9724
 
9725
    public boolean isSuccess() {
9726
      return this.success;
9727
    }
9728
 
3430 rajveer 9729
    public void setSuccess(boolean success) {
495 rajveer 9730
      this.success = success;
9731
      setSuccessIsSet(true);
9732
    }
9733
 
9734
    public void unsetSuccess() {
9735
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9736
    }
9737
 
3430 rajveer 9738
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9739
    public boolean isSetSuccess() {
9740
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9741
    }
9742
 
9743
    public void setSuccessIsSet(boolean value) {
9744
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9745
    }
9746
 
9747
    public HelperServiceException getSe() {
9748
      return this.se;
9749
    }
9750
 
3430 rajveer 9751
    public void setSe(HelperServiceException se) {
495 rajveer 9752
      this.se = se;
9753
    }
9754
 
9755
    public void unsetSe() {
9756
      this.se = null;
9757
    }
9758
 
3430 rajveer 9759
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9760
    public boolean isSetSe() {
9761
      return this.se != null;
9762
    }
9763
 
9764
    public void setSeIsSet(boolean value) {
9765
      if (!value) {
9766
        this.se = null;
9767
      }
9768
    }
9769
 
9770
    public void setFieldValue(_Fields field, Object value) {
9771
      switch (field) {
9772
      case SUCCESS:
9773
        if (value == null) {
9774
          unsetSuccess();
9775
        } else {
9776
          setSuccess((Boolean)value);
9777
        }
9778
        break;
9779
 
9780
      case SE:
9781
        if (value == null) {
9782
          unsetSe();
9783
        } else {
9784
          setSe((HelperServiceException)value);
9785
        }
9786
        break;
9787
 
9788
      }
9789
    }
9790
 
9791
    public Object getFieldValue(_Fields field) {
9792
      switch (field) {
9793
      case SUCCESS:
3430 rajveer 9794
        return Boolean.valueOf(isSuccess());
495 rajveer 9795
 
9796
      case SE:
9797
        return getSe();
9798
 
9799
      }
9800
      throw new IllegalStateException();
9801
    }
9802
 
3430 rajveer 9803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9804
    public boolean isSet(_Fields field) {
9805
      if (field == null) {
9806
        throw new IllegalArgumentException();
9807
      }
495 rajveer 9808
 
9809
      switch (field) {
9810
      case SUCCESS:
9811
        return isSetSuccess();
9812
      case SE:
9813
        return isSetSe();
9814
      }
9815
      throw new IllegalStateException();
9816
    }
9817
 
9818
    @Override
9819
    public boolean equals(Object that) {
9820
      if (that == null)
9821
        return false;
9822
      if (that instanceof addUser_result)
9823
        return this.equals((addUser_result)that);
9824
      return false;
9825
    }
9826
 
9827
    public boolean equals(addUser_result that) {
9828
      if (that == null)
9829
        return false;
9830
 
9831
      boolean this_present_success = true;
9832
      boolean that_present_success = true;
9833
      if (this_present_success || that_present_success) {
9834
        if (!(this_present_success && that_present_success))
9835
          return false;
9836
        if (this.success != that.success)
9837
          return false;
9838
      }
9839
 
9840
      boolean this_present_se = true && this.isSetSe();
9841
      boolean that_present_se = true && that.isSetSe();
9842
      if (this_present_se || that_present_se) {
9843
        if (!(this_present_se && that_present_se))
9844
          return false;
9845
        if (!this.se.equals(that.se))
9846
          return false;
9847
      }
9848
 
9849
      return true;
9850
    }
9851
 
9852
    @Override
9853
    public int hashCode() {
9854
      return 0;
9855
    }
9856
 
9857
    public int compareTo(addUser_result other) {
9858
      if (!getClass().equals(other.getClass())) {
9859
        return getClass().getName().compareTo(other.getClass().getName());
9860
      }
9861
 
9862
      int lastComparison = 0;
9863
      addUser_result typedOther = (addUser_result)other;
9864
 
3430 rajveer 9865
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9866
      if (lastComparison != 0) {
9867
        return lastComparison;
9868
      }
3430 rajveer 9869
      if (isSetSuccess()) {
9870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9871
        if (lastComparison != 0) {
9872
          return lastComparison;
9873
        }
495 rajveer 9874
      }
3430 rajveer 9875
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9876
      if (lastComparison != 0) {
9877
        return lastComparison;
9878
      }
3430 rajveer 9879
      if (isSetSe()) {
9880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9881
        if (lastComparison != 0) {
9882
          return lastComparison;
9883
        }
495 rajveer 9884
      }
9885
      return 0;
9886
    }
9887
 
3430 rajveer 9888
    public _Fields fieldForId(int fieldId) {
9889
      return _Fields.findByThriftId(fieldId);
9890
    }
9891
 
9892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9893
      org.apache.thrift.protocol.TField field;
495 rajveer 9894
      iprot.readStructBegin();
9895
      while (true)
9896
      {
9897
        field = iprot.readFieldBegin();
3430 rajveer 9898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9899
          break;
9900
        }
3430 rajveer 9901
        switch (field.id) {
9902
          case 0: // SUCCESS
9903
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9904
              this.success = iprot.readBool();
9905
              setSuccessIsSet(true);
9906
            } else { 
9907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9908
            }
9909
            break;
9910
          case 1: // SE
9911
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9912
              this.se = new HelperServiceException();
9913
              this.se.read(iprot);
9914
            } else { 
9915
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9916
            }
9917
            break;
9918
          default:
9919
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9920
        }
3430 rajveer 9921
        iprot.readFieldEnd();
495 rajveer 9922
      }
9923
      iprot.readStructEnd();
9924
      validate();
9925
    }
9926
 
3430 rajveer 9927
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9928
      oprot.writeStructBegin(STRUCT_DESC);
9929
 
9930
      if (this.isSetSuccess()) {
9931
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9932
        oprot.writeBool(this.success);
9933
        oprot.writeFieldEnd();
9934
      } else if (this.isSetSe()) {
9935
        oprot.writeFieldBegin(SE_FIELD_DESC);
9936
        this.se.write(oprot);
9937
        oprot.writeFieldEnd();
9938
      }
9939
      oprot.writeFieldStop();
9940
      oprot.writeStructEnd();
9941
    }
9942
 
9943
    @Override
9944
    public String toString() {
9945
      StringBuilder sb = new StringBuilder("addUser_result(");
9946
      boolean first = true;
9947
 
9948
      sb.append("success:");
9949
      sb.append(this.success);
9950
      first = false;
9951
      if (!first) sb.append(", ");
9952
      sb.append("se:");
9953
      if (this.se == null) {
9954
        sb.append("null");
9955
      } else {
9956
        sb.append(this.se);
9957
      }
9958
      first = false;
9959
      sb.append(")");
9960
      return sb.toString();
9961
    }
9962
 
3430 rajveer 9963
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9964
      // check for required fields
9965
    }
9966
 
3430 rajveer 9967
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9968
      try {
9969
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9970
      } catch (org.apache.thrift.TException te) {
9971
        throw new java.io.IOException(te);
9972
      }
9973
    }
9974
 
9975
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9976
      try {
9977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9978
      } catch (org.apache.thrift.TException te) {
9979
        throw new java.io.IOException(te);
9980
      }
9981
    }
9982
 
495 rajveer 9983
  }
9984
 
3430 rajveer 9985
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9987
 
3430 rajveer 9988
    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 9989
 
3430 rajveer 9990
    private String username; // required
495 rajveer 9991
 
9992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9994
      USERNAME((short)1, "username");
9995
 
9996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9997
 
9998
      static {
9999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10000
          byName.put(field.getFieldName(), field);
10001
        }
10002
      }
10003
 
10004
      /**
10005
       * Find the _Fields constant that matches fieldId, or null if its not found.
10006
       */
10007
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10008
        switch(fieldId) {
10009
          case 1: // USERNAME
10010
            return USERNAME;
10011
          default:
10012
            return null;
10013
        }
495 rajveer 10014
      }
10015
 
10016
      /**
10017
       * Find the _Fields constant that matches fieldId, throwing an exception
10018
       * if it is not found.
10019
       */
10020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10021
        _Fields fields = findByThriftId(fieldId);
10022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10023
        return fields;
10024
      }
10025
 
10026
      /**
10027
       * Find the _Fields constant that matches name, or null if its not found.
10028
       */
10029
      public static _Fields findByName(String name) {
10030
        return byName.get(name);
10031
      }
10032
 
10033
      private final short _thriftId;
10034
      private final String _fieldName;
10035
 
10036
      _Fields(short thriftId, String fieldName) {
10037
        _thriftId = thriftId;
10038
        _fieldName = fieldName;
10039
      }
10040
 
10041
      public short getThriftFieldId() {
10042
        return _thriftId;
10043
      }
10044
 
10045
      public String getFieldName() {
10046
        return _fieldName;
10047
      }
10048
    }
10049
 
10050
    // isset id assignments
10051
 
3430 rajveer 10052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10053
    static {
3430 rajveer 10054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10055
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 10059
    }
10060
 
10061
    public deleteUser_args() {
10062
    }
10063
 
10064
    public deleteUser_args(
10065
      String username)
10066
    {
10067
      this();
10068
      this.username = username;
10069
    }
10070
 
10071
    /**
10072
     * Performs a deep copy on <i>other</i>.
10073
     */
10074
    public deleteUser_args(deleteUser_args other) {
10075
      if (other.isSetUsername()) {
10076
        this.username = other.username;
10077
      }
10078
    }
10079
 
10080
    public deleteUser_args deepCopy() {
10081
      return new deleteUser_args(this);
10082
    }
10083
 
3430 rajveer 10084
    @Override
10085
    public void clear() {
10086
      this.username = null;
495 rajveer 10087
    }
10088
 
10089
    public String getUsername() {
10090
      return this.username;
10091
    }
10092
 
3430 rajveer 10093
    public void setUsername(String username) {
495 rajveer 10094
      this.username = username;
10095
    }
10096
 
10097
    public void unsetUsername() {
10098
      this.username = null;
10099
    }
10100
 
3430 rajveer 10101
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10102
    public boolean isSetUsername() {
10103
      return this.username != null;
10104
    }
10105
 
10106
    public void setUsernameIsSet(boolean value) {
10107
      if (!value) {
10108
        this.username = null;
10109
      }
10110
    }
10111
 
10112
    public void setFieldValue(_Fields field, Object value) {
10113
      switch (field) {
10114
      case USERNAME:
10115
        if (value == null) {
10116
          unsetUsername();
10117
        } else {
10118
          setUsername((String)value);
10119
        }
10120
        break;
10121
 
10122
      }
10123
    }
10124
 
10125
    public Object getFieldValue(_Fields field) {
10126
      switch (field) {
10127
      case USERNAME:
10128
        return getUsername();
10129
 
10130
      }
10131
      throw new IllegalStateException();
10132
    }
10133
 
3430 rajveer 10134
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10135
    public boolean isSet(_Fields field) {
10136
      if (field == null) {
10137
        throw new IllegalArgumentException();
10138
      }
495 rajveer 10139
 
10140
      switch (field) {
10141
      case USERNAME:
10142
        return isSetUsername();
10143
      }
10144
      throw new IllegalStateException();
10145
    }
10146
 
10147
    @Override
10148
    public boolean equals(Object that) {
10149
      if (that == null)
10150
        return false;
10151
      if (that instanceof deleteUser_args)
10152
        return this.equals((deleteUser_args)that);
10153
      return false;
10154
    }
10155
 
10156
    public boolean equals(deleteUser_args that) {
10157
      if (that == null)
10158
        return false;
10159
 
10160
      boolean this_present_username = true && this.isSetUsername();
10161
      boolean that_present_username = true && that.isSetUsername();
10162
      if (this_present_username || that_present_username) {
10163
        if (!(this_present_username && that_present_username))
10164
          return false;
10165
        if (!this.username.equals(that.username))
10166
          return false;
10167
      }
10168
 
10169
      return true;
10170
    }
10171
 
10172
    @Override
10173
    public int hashCode() {
10174
      return 0;
10175
    }
10176
 
10177
    public int compareTo(deleteUser_args other) {
10178
      if (!getClass().equals(other.getClass())) {
10179
        return getClass().getName().compareTo(other.getClass().getName());
10180
      }
10181
 
10182
      int lastComparison = 0;
10183
      deleteUser_args typedOther = (deleteUser_args)other;
10184
 
3430 rajveer 10185
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10186
      if (lastComparison != 0) {
10187
        return lastComparison;
10188
      }
3430 rajveer 10189
      if (isSetUsername()) {
10190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10191
        if (lastComparison != 0) {
10192
          return lastComparison;
10193
        }
495 rajveer 10194
      }
10195
      return 0;
10196
    }
10197
 
3430 rajveer 10198
    public _Fields fieldForId(int fieldId) {
10199
      return _Fields.findByThriftId(fieldId);
10200
    }
10201
 
10202
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10203
      org.apache.thrift.protocol.TField field;
495 rajveer 10204
      iprot.readStructBegin();
10205
      while (true)
10206
      {
10207
        field = iprot.readFieldBegin();
3430 rajveer 10208
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10209
          break;
10210
        }
3430 rajveer 10211
        switch (field.id) {
10212
          case 1: // USERNAME
10213
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10214
              this.username = iprot.readString();
10215
            } else { 
10216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10217
            }
10218
            break;
10219
          default:
10220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10221
        }
3430 rajveer 10222
        iprot.readFieldEnd();
495 rajveer 10223
      }
10224
      iprot.readStructEnd();
10225
      validate();
10226
    }
10227
 
3430 rajveer 10228
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10229
      validate();
10230
 
10231
      oprot.writeStructBegin(STRUCT_DESC);
10232
      if (this.username != null) {
10233
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10234
        oprot.writeString(this.username);
10235
        oprot.writeFieldEnd();
10236
      }
10237
      oprot.writeFieldStop();
10238
      oprot.writeStructEnd();
10239
    }
10240
 
10241
    @Override
10242
    public String toString() {
10243
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10244
      boolean first = true;
10245
 
10246
      sb.append("username:");
10247
      if (this.username == null) {
10248
        sb.append("null");
10249
      } else {
10250
        sb.append(this.username);
10251
      }
10252
      first = false;
10253
      sb.append(")");
10254
      return sb.toString();
10255
    }
10256
 
3430 rajveer 10257
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10258
      // check for required fields
10259
    }
10260
 
3430 rajveer 10261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10262
      try {
10263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10264
      } catch (org.apache.thrift.TException te) {
10265
        throw new java.io.IOException(te);
10266
      }
10267
    }
10268
 
10269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10270
      try {
10271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10272
      } catch (org.apache.thrift.TException te) {
10273
        throw new java.io.IOException(te);
10274
      }
10275
    }
10276
 
495 rajveer 10277
  }
10278
 
3430 rajveer 10279
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10281
 
3430 rajveer 10282
    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);
10283
    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 10284
 
3430 rajveer 10285
    private boolean success; // required
10286
    private HelperServiceException se; // required
495 rajveer 10287
 
10288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10290
      SUCCESS((short)0, "success"),
10291
      SE((short)1, "se");
10292
 
10293
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10294
 
10295
      static {
10296
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10297
          byName.put(field.getFieldName(), field);
10298
        }
10299
      }
10300
 
10301
      /**
10302
       * Find the _Fields constant that matches fieldId, or null if its not found.
10303
       */
10304
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10305
        switch(fieldId) {
10306
          case 0: // SUCCESS
10307
            return SUCCESS;
10308
          case 1: // SE
10309
            return SE;
10310
          default:
10311
            return null;
10312
        }
495 rajveer 10313
      }
10314
 
10315
      /**
10316
       * Find the _Fields constant that matches fieldId, throwing an exception
10317
       * if it is not found.
10318
       */
10319
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10320
        _Fields fields = findByThriftId(fieldId);
10321
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10322
        return fields;
10323
      }
10324
 
10325
      /**
10326
       * Find the _Fields constant that matches name, or null if its not found.
10327
       */
10328
      public static _Fields findByName(String name) {
10329
        return byName.get(name);
10330
      }
10331
 
10332
      private final short _thriftId;
10333
      private final String _fieldName;
10334
 
10335
      _Fields(short thriftId, String fieldName) {
10336
        _thriftId = thriftId;
10337
        _fieldName = fieldName;
10338
      }
10339
 
10340
      public short getThriftFieldId() {
10341
        return _thriftId;
10342
      }
10343
 
10344
      public String getFieldName() {
10345
        return _fieldName;
10346
      }
10347
    }
10348
 
10349
    // isset id assignments
10350
    private static final int __SUCCESS_ISSET_ID = 0;
10351
    private BitSet __isset_bit_vector = new BitSet(1);
10352
 
3430 rajveer 10353
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10354
    static {
3430 rajveer 10355
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10356
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10357
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10358
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10360
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10361
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10362
    }
10363
 
10364
    public deleteUser_result() {
10365
    }
10366
 
10367
    public deleteUser_result(
10368
      boolean success,
10369
      HelperServiceException se)
10370
    {
10371
      this();
10372
      this.success = success;
10373
      setSuccessIsSet(true);
10374
      this.se = se;
10375
    }
10376
 
10377
    /**
10378
     * Performs a deep copy on <i>other</i>.
10379
     */
10380
    public deleteUser_result(deleteUser_result other) {
10381
      __isset_bit_vector.clear();
10382
      __isset_bit_vector.or(other.__isset_bit_vector);
10383
      this.success = other.success;
10384
      if (other.isSetSe()) {
10385
        this.se = new HelperServiceException(other.se);
10386
      }
10387
    }
10388
 
10389
    public deleteUser_result deepCopy() {
10390
      return new deleteUser_result(this);
10391
    }
10392
 
3430 rajveer 10393
    @Override
10394
    public void clear() {
10395
      setSuccessIsSet(false);
10396
      this.success = false;
10397
      this.se = null;
495 rajveer 10398
    }
10399
 
10400
    public boolean isSuccess() {
10401
      return this.success;
10402
    }
10403
 
3430 rajveer 10404
    public void setSuccess(boolean success) {
495 rajveer 10405
      this.success = success;
10406
      setSuccessIsSet(true);
10407
    }
10408
 
10409
    public void unsetSuccess() {
10410
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10411
    }
10412
 
3430 rajveer 10413
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10414
    public boolean isSetSuccess() {
10415
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10416
    }
10417
 
10418
    public void setSuccessIsSet(boolean value) {
10419
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10420
    }
10421
 
10422
    public HelperServiceException getSe() {
10423
      return this.se;
10424
    }
10425
 
3430 rajveer 10426
    public void setSe(HelperServiceException se) {
495 rajveer 10427
      this.se = se;
10428
    }
10429
 
10430
    public void unsetSe() {
10431
      this.se = null;
10432
    }
10433
 
3430 rajveer 10434
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10435
    public boolean isSetSe() {
10436
      return this.se != null;
10437
    }
10438
 
10439
    public void setSeIsSet(boolean value) {
10440
      if (!value) {
10441
        this.se = null;
10442
      }
10443
    }
10444
 
10445
    public void setFieldValue(_Fields field, Object value) {
10446
      switch (field) {
10447
      case SUCCESS:
10448
        if (value == null) {
10449
          unsetSuccess();
10450
        } else {
10451
          setSuccess((Boolean)value);
10452
        }
10453
        break;
10454
 
10455
      case SE:
10456
        if (value == null) {
10457
          unsetSe();
10458
        } else {
10459
          setSe((HelperServiceException)value);
10460
        }
10461
        break;
10462
 
10463
      }
10464
    }
10465
 
10466
    public Object getFieldValue(_Fields field) {
10467
      switch (field) {
10468
      case SUCCESS:
3430 rajveer 10469
        return Boolean.valueOf(isSuccess());
495 rajveer 10470
 
10471
      case SE:
10472
        return getSe();
10473
 
10474
      }
10475
      throw new IllegalStateException();
10476
    }
10477
 
3430 rajveer 10478
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10479
    public boolean isSet(_Fields field) {
10480
      if (field == null) {
10481
        throw new IllegalArgumentException();
10482
      }
495 rajveer 10483
 
10484
      switch (field) {
10485
      case SUCCESS:
10486
        return isSetSuccess();
10487
      case SE:
10488
        return isSetSe();
10489
      }
10490
      throw new IllegalStateException();
10491
    }
10492
 
10493
    @Override
10494
    public boolean equals(Object that) {
10495
      if (that == null)
10496
        return false;
10497
      if (that instanceof deleteUser_result)
10498
        return this.equals((deleteUser_result)that);
10499
      return false;
10500
    }
10501
 
10502
    public boolean equals(deleteUser_result that) {
10503
      if (that == null)
10504
        return false;
10505
 
10506
      boolean this_present_success = true;
10507
      boolean that_present_success = true;
10508
      if (this_present_success || that_present_success) {
10509
        if (!(this_present_success && that_present_success))
10510
          return false;
10511
        if (this.success != that.success)
10512
          return false;
10513
      }
10514
 
10515
      boolean this_present_se = true && this.isSetSe();
10516
      boolean that_present_se = true && that.isSetSe();
10517
      if (this_present_se || that_present_se) {
10518
        if (!(this_present_se && that_present_se))
10519
          return false;
10520
        if (!this.se.equals(that.se))
10521
          return false;
10522
      }
10523
 
10524
      return true;
10525
    }
10526
 
10527
    @Override
10528
    public int hashCode() {
10529
      return 0;
10530
    }
10531
 
10532
    public int compareTo(deleteUser_result other) {
10533
      if (!getClass().equals(other.getClass())) {
10534
        return getClass().getName().compareTo(other.getClass().getName());
10535
      }
10536
 
10537
      int lastComparison = 0;
10538
      deleteUser_result typedOther = (deleteUser_result)other;
10539
 
3430 rajveer 10540
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10541
      if (lastComparison != 0) {
10542
        return lastComparison;
10543
      }
3430 rajveer 10544
      if (isSetSuccess()) {
10545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10546
        if (lastComparison != 0) {
10547
          return lastComparison;
10548
        }
495 rajveer 10549
      }
3430 rajveer 10550
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10551
      if (lastComparison != 0) {
10552
        return lastComparison;
10553
      }
3430 rajveer 10554
      if (isSetSe()) {
10555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10556
        if (lastComparison != 0) {
10557
          return lastComparison;
10558
        }
495 rajveer 10559
      }
10560
      return 0;
10561
    }
10562
 
3430 rajveer 10563
    public _Fields fieldForId(int fieldId) {
10564
      return _Fields.findByThriftId(fieldId);
10565
    }
10566
 
10567
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10568
      org.apache.thrift.protocol.TField field;
495 rajveer 10569
      iprot.readStructBegin();
10570
      while (true)
10571
      {
10572
        field = iprot.readFieldBegin();
3430 rajveer 10573
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10574
          break;
10575
        }
3430 rajveer 10576
        switch (field.id) {
10577
          case 0: // SUCCESS
10578
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10579
              this.success = iprot.readBool();
10580
              setSuccessIsSet(true);
10581
            } else { 
10582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10583
            }
10584
            break;
10585
          case 1: // SE
10586
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10587
              this.se = new HelperServiceException();
10588
              this.se.read(iprot);
10589
            } else { 
10590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10591
            }
10592
            break;
10593
          default:
10594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10595
        }
3430 rajveer 10596
        iprot.readFieldEnd();
495 rajveer 10597
      }
10598
      iprot.readStructEnd();
10599
      validate();
10600
    }
10601
 
3430 rajveer 10602
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10603
      oprot.writeStructBegin(STRUCT_DESC);
10604
 
10605
      if (this.isSetSuccess()) {
10606
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10607
        oprot.writeBool(this.success);
10608
        oprot.writeFieldEnd();
10609
      } else if (this.isSetSe()) {
10610
        oprot.writeFieldBegin(SE_FIELD_DESC);
10611
        this.se.write(oprot);
10612
        oprot.writeFieldEnd();
10613
      }
10614
      oprot.writeFieldStop();
10615
      oprot.writeStructEnd();
10616
    }
10617
 
10618
    @Override
10619
    public String toString() {
10620
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10621
      boolean first = true;
10622
 
10623
      sb.append("success:");
10624
      sb.append(this.success);
10625
      first = false;
10626
      if (!first) sb.append(", ");
10627
      sb.append("se:");
10628
      if (this.se == null) {
10629
        sb.append("null");
10630
      } else {
10631
        sb.append(this.se);
10632
      }
10633
      first = false;
10634
      sb.append(")");
10635
      return sb.toString();
10636
    }
10637
 
3430 rajveer 10638
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10639
      // check for required fields
10640
    }
10641
 
3430 rajveer 10642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10643
      try {
10644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10645
      } catch (org.apache.thrift.TException te) {
10646
        throw new java.io.IOException(te);
10647
      }
10648
    }
10649
 
10650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10651
      try {
10652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10653
      } catch (org.apache.thrift.TException te) {
10654
        throw new java.io.IOException(te);
10655
      }
10656
    }
10657
 
495 rajveer 10658
  }
10659
 
3430 rajveer 10660
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10662
 
3430 rajveer 10663
    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);
10664
    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 10665
 
3430 rajveer 10666
    private String username; // required
10667
    private String password; // required
495 rajveer 10668
 
10669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10671
      USERNAME((short)1, "username"),
10672
      PASSWORD((short)2, "password");
10673
 
10674
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10675
 
10676
      static {
10677
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10678
          byName.put(field.getFieldName(), field);
10679
        }
10680
      }
10681
 
10682
      /**
10683
       * Find the _Fields constant that matches fieldId, or null if its not found.
10684
       */
10685
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10686
        switch(fieldId) {
10687
          case 1: // USERNAME
10688
            return USERNAME;
10689
          case 2: // PASSWORD
10690
            return PASSWORD;
10691
          default:
10692
            return null;
10693
        }
495 rajveer 10694
      }
10695
 
10696
      /**
10697
       * Find the _Fields constant that matches fieldId, throwing an exception
10698
       * if it is not found.
10699
       */
10700
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10701
        _Fields fields = findByThriftId(fieldId);
10702
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10703
        return fields;
10704
      }
10705
 
10706
      /**
10707
       * Find the _Fields constant that matches name, or null if its not found.
10708
       */
10709
      public static _Fields findByName(String name) {
10710
        return byName.get(name);
10711
      }
10712
 
10713
      private final short _thriftId;
10714
      private final String _fieldName;
10715
 
10716
      _Fields(short thriftId, String fieldName) {
10717
        _thriftId = thriftId;
10718
        _fieldName = fieldName;
10719
      }
10720
 
10721
      public short getThriftFieldId() {
10722
        return _thriftId;
10723
      }
10724
 
10725
      public String getFieldName() {
10726
        return _fieldName;
10727
      }
10728
    }
10729
 
10730
    // isset id assignments
10731
 
3430 rajveer 10732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10733
    static {
3430 rajveer 10734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10735
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10737
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10741
    }
10742
 
2443 chandransh 10743
    public authenticateDashboardUser_args() {
495 rajveer 10744
    }
10745
 
2443 chandransh 10746
    public authenticateDashboardUser_args(
495 rajveer 10747
      String username,
10748
      String password)
10749
    {
10750
      this();
10751
      this.username = username;
10752
      this.password = password;
10753
    }
10754
 
10755
    /**
10756
     * Performs a deep copy on <i>other</i>.
10757
     */
2443 chandransh 10758
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10759
      if (other.isSetUsername()) {
10760
        this.username = other.username;
10761
      }
10762
      if (other.isSetPassword()) {
10763
        this.password = other.password;
10764
      }
10765
    }
10766
 
2443 chandransh 10767
    public authenticateDashboardUser_args deepCopy() {
10768
      return new authenticateDashboardUser_args(this);
495 rajveer 10769
    }
10770
 
3430 rajveer 10771
    @Override
10772
    public void clear() {
10773
      this.username = null;
10774
      this.password = null;
495 rajveer 10775
    }
10776
 
10777
    public String getUsername() {
10778
      return this.username;
10779
    }
10780
 
3430 rajveer 10781
    public void setUsername(String username) {
495 rajveer 10782
      this.username = username;
10783
    }
10784
 
10785
    public void unsetUsername() {
10786
      this.username = null;
10787
    }
10788
 
3430 rajveer 10789
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10790
    public boolean isSetUsername() {
10791
      return this.username != null;
10792
    }
10793
 
10794
    public void setUsernameIsSet(boolean value) {
10795
      if (!value) {
10796
        this.username = null;
10797
      }
10798
    }
10799
 
10800
    public String getPassword() {
10801
      return this.password;
10802
    }
10803
 
3430 rajveer 10804
    public void setPassword(String password) {
495 rajveer 10805
      this.password = password;
10806
    }
10807
 
10808
    public void unsetPassword() {
10809
      this.password = null;
10810
    }
10811
 
3430 rajveer 10812
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10813
    public boolean isSetPassword() {
10814
      return this.password != null;
10815
    }
10816
 
10817
    public void setPasswordIsSet(boolean value) {
10818
      if (!value) {
10819
        this.password = null;
10820
      }
10821
    }
10822
 
10823
    public void setFieldValue(_Fields field, Object value) {
10824
      switch (field) {
10825
      case USERNAME:
10826
        if (value == null) {
10827
          unsetUsername();
10828
        } else {
10829
          setUsername((String)value);
10830
        }
10831
        break;
10832
 
10833
      case PASSWORD:
10834
        if (value == null) {
10835
          unsetPassword();
10836
        } else {
10837
          setPassword((String)value);
10838
        }
10839
        break;
10840
 
10841
      }
10842
    }
10843
 
10844
    public Object getFieldValue(_Fields field) {
10845
      switch (field) {
10846
      case USERNAME:
10847
        return getUsername();
10848
 
10849
      case PASSWORD:
10850
        return getPassword();
10851
 
10852
      }
10853
      throw new IllegalStateException();
10854
    }
10855
 
3430 rajveer 10856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10857
    public boolean isSet(_Fields field) {
10858
      if (field == null) {
10859
        throw new IllegalArgumentException();
10860
      }
495 rajveer 10861
 
10862
      switch (field) {
10863
      case USERNAME:
10864
        return isSetUsername();
10865
      case PASSWORD:
10866
        return isSetPassword();
10867
      }
10868
      throw new IllegalStateException();
10869
    }
10870
 
10871
    @Override
10872
    public boolean equals(Object that) {
10873
      if (that == null)
10874
        return false;
2443 chandransh 10875
      if (that instanceof authenticateDashboardUser_args)
10876
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10877
      return false;
10878
    }
10879
 
2443 chandransh 10880
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10881
      if (that == null)
10882
        return false;
10883
 
10884
      boolean this_present_username = true && this.isSetUsername();
10885
      boolean that_present_username = true && that.isSetUsername();
10886
      if (this_present_username || that_present_username) {
10887
        if (!(this_present_username && that_present_username))
10888
          return false;
10889
        if (!this.username.equals(that.username))
10890
          return false;
10891
      }
10892
 
10893
      boolean this_present_password = true && this.isSetPassword();
10894
      boolean that_present_password = true && that.isSetPassword();
10895
      if (this_present_password || that_present_password) {
10896
        if (!(this_present_password && that_present_password))
10897
          return false;
10898
        if (!this.password.equals(that.password))
10899
          return false;
10900
      }
10901
 
10902
      return true;
10903
    }
10904
 
10905
    @Override
10906
    public int hashCode() {
10907
      return 0;
10908
    }
10909
 
2443 chandransh 10910
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10911
      if (!getClass().equals(other.getClass())) {
10912
        return getClass().getName().compareTo(other.getClass().getName());
10913
      }
10914
 
10915
      int lastComparison = 0;
2443 chandransh 10916
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10917
 
3430 rajveer 10918
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10919
      if (lastComparison != 0) {
10920
        return lastComparison;
10921
      }
3430 rajveer 10922
      if (isSetUsername()) {
10923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10924
        if (lastComparison != 0) {
10925
          return lastComparison;
10926
        }
495 rajveer 10927
      }
3430 rajveer 10928
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10929
      if (lastComparison != 0) {
10930
        return lastComparison;
10931
      }
3430 rajveer 10932
      if (isSetPassword()) {
10933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10934
        if (lastComparison != 0) {
10935
          return lastComparison;
10936
        }
495 rajveer 10937
      }
10938
      return 0;
10939
    }
10940
 
3430 rajveer 10941
    public _Fields fieldForId(int fieldId) {
10942
      return _Fields.findByThriftId(fieldId);
10943
    }
10944
 
10945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10946
      org.apache.thrift.protocol.TField field;
495 rajveer 10947
      iprot.readStructBegin();
10948
      while (true)
10949
      {
10950
        field = iprot.readFieldBegin();
3430 rajveer 10951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10952
          break;
10953
        }
3430 rajveer 10954
        switch (field.id) {
10955
          case 1: // USERNAME
10956
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10957
              this.username = iprot.readString();
10958
            } else { 
10959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10960
            }
10961
            break;
10962
          case 2: // PASSWORD
10963
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10964
              this.password = iprot.readString();
10965
            } else { 
10966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10967
            }
10968
            break;
10969
          default:
10970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10971
        }
3430 rajveer 10972
        iprot.readFieldEnd();
495 rajveer 10973
      }
10974
      iprot.readStructEnd();
10975
      validate();
10976
    }
10977
 
3430 rajveer 10978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10979
      validate();
10980
 
10981
      oprot.writeStructBegin(STRUCT_DESC);
10982
      if (this.username != null) {
10983
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10984
        oprot.writeString(this.username);
10985
        oprot.writeFieldEnd();
10986
      }
10987
      if (this.password != null) {
10988
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10989
        oprot.writeString(this.password);
10990
        oprot.writeFieldEnd();
10991
      }
10992
      oprot.writeFieldStop();
10993
      oprot.writeStructEnd();
10994
    }
10995
 
10996
    @Override
10997
    public String toString() {
2443 chandransh 10998
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10999
      boolean first = true;
11000
 
11001
      sb.append("username:");
11002
      if (this.username == null) {
11003
        sb.append("null");
11004
      } else {
11005
        sb.append(this.username);
11006
      }
11007
      first = false;
11008
      if (!first) sb.append(", ");
11009
      sb.append("password:");
11010
      if (this.password == null) {
11011
        sb.append("null");
11012
      } else {
11013
        sb.append(this.password);
11014
      }
11015
      first = false;
11016
      sb.append(")");
11017
      return sb.toString();
11018
    }
11019
 
3430 rajveer 11020
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11021
      // check for required fields
11022
    }
11023
 
3430 rajveer 11024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11025
      try {
11026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11027
      } catch (org.apache.thrift.TException te) {
11028
        throw new java.io.IOException(te);
11029
      }
11030
    }
11031
 
11032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11033
      try {
11034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11035
      } catch (org.apache.thrift.TException te) {
11036
        throw new java.io.IOException(te);
11037
      }
11038
    }
11039
 
495 rajveer 11040
  }
11041
 
3430 rajveer 11042
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
11043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 11044
 
3430 rajveer 11045
    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);
11046
    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 11047
 
3430 rajveer 11048
    private DashboardUser success; // required
11049
    private HelperServiceException se; // required
495 rajveer 11050
 
11051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11053
      SUCCESS((short)0, "success"),
11054
      SE((short)1, "se");
11055
 
11056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11057
 
11058
      static {
11059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11060
          byName.put(field.getFieldName(), field);
11061
        }
11062
      }
11063
 
11064
      /**
11065
       * Find the _Fields constant that matches fieldId, or null if its not found.
11066
       */
11067
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11068
        switch(fieldId) {
11069
          case 0: // SUCCESS
11070
            return SUCCESS;
11071
          case 1: // SE
11072
            return SE;
11073
          default:
11074
            return null;
11075
        }
495 rajveer 11076
      }
11077
 
11078
      /**
11079
       * Find the _Fields constant that matches fieldId, throwing an exception
11080
       * if it is not found.
11081
       */
11082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11083
        _Fields fields = findByThriftId(fieldId);
11084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11085
        return fields;
11086
      }
11087
 
11088
      /**
11089
       * Find the _Fields constant that matches name, or null if its not found.
11090
       */
11091
      public static _Fields findByName(String name) {
11092
        return byName.get(name);
11093
      }
11094
 
11095
      private final short _thriftId;
11096
      private final String _fieldName;
11097
 
11098
      _Fields(short thriftId, String fieldName) {
11099
        _thriftId = thriftId;
11100
        _fieldName = fieldName;
11101
      }
11102
 
11103
      public short getThriftFieldId() {
11104
        return _thriftId;
11105
      }
11106
 
11107
      public String getFieldName() {
11108
        return _fieldName;
11109
      }
11110
    }
11111
 
11112
    // isset id assignments
11113
 
3430 rajveer 11114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11115
    static {
3430 rajveer 11116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11117
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11118
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11119
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11121
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11122
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11123
    }
11124
 
2443 chandransh 11125
    public authenticateDashboardUser_result() {
495 rajveer 11126
    }
11127
 
2443 chandransh 11128
    public authenticateDashboardUser_result(
11129
      DashboardUser success,
495 rajveer 11130
      HelperServiceException se)
11131
    {
11132
      this();
11133
      this.success = success;
11134
      this.se = se;
11135
    }
11136
 
11137
    /**
11138
     * Performs a deep copy on <i>other</i>.
11139
     */
2443 chandransh 11140
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11141
      if (other.isSetSuccess()) {
11142
        this.success = new DashboardUser(other.success);
11143
      }
495 rajveer 11144
      if (other.isSetSe()) {
11145
        this.se = new HelperServiceException(other.se);
11146
      }
11147
    }
11148
 
2443 chandransh 11149
    public authenticateDashboardUser_result deepCopy() {
11150
      return new authenticateDashboardUser_result(this);
495 rajveer 11151
    }
11152
 
3430 rajveer 11153
    @Override
11154
    public void clear() {
11155
      this.success = null;
11156
      this.se = null;
495 rajveer 11157
    }
11158
 
2443 chandransh 11159
    public DashboardUser getSuccess() {
495 rajveer 11160
      return this.success;
11161
    }
11162
 
3430 rajveer 11163
    public void setSuccess(DashboardUser success) {
495 rajveer 11164
      this.success = success;
11165
    }
11166
 
11167
    public void unsetSuccess() {
2443 chandransh 11168
      this.success = null;
495 rajveer 11169
    }
11170
 
3430 rajveer 11171
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11172
    public boolean isSetSuccess() {
2443 chandransh 11173
      return this.success != null;
495 rajveer 11174
    }
11175
 
11176
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11177
      if (!value) {
11178
        this.success = null;
11179
      }
495 rajveer 11180
    }
11181
 
11182
    public HelperServiceException getSe() {
11183
      return this.se;
11184
    }
11185
 
3430 rajveer 11186
    public void setSe(HelperServiceException se) {
495 rajveer 11187
      this.se = se;
11188
    }
11189
 
11190
    public void unsetSe() {
11191
      this.se = null;
11192
    }
11193
 
3430 rajveer 11194
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11195
    public boolean isSetSe() {
11196
      return this.se != null;
11197
    }
11198
 
11199
    public void setSeIsSet(boolean value) {
11200
      if (!value) {
11201
        this.se = null;
11202
      }
11203
    }
11204
 
11205
    public void setFieldValue(_Fields field, Object value) {
11206
      switch (field) {
11207
      case SUCCESS:
11208
        if (value == null) {
11209
          unsetSuccess();
11210
        } else {
2443 chandransh 11211
          setSuccess((DashboardUser)value);
495 rajveer 11212
        }
11213
        break;
11214
 
11215
      case SE:
11216
        if (value == null) {
11217
          unsetSe();
11218
        } else {
11219
          setSe((HelperServiceException)value);
11220
        }
11221
        break;
11222
 
11223
      }
11224
    }
11225
 
11226
    public Object getFieldValue(_Fields field) {
11227
      switch (field) {
11228
      case SUCCESS:
2443 chandransh 11229
        return getSuccess();
495 rajveer 11230
 
11231
      case SE:
11232
        return getSe();
11233
 
11234
      }
11235
      throw new IllegalStateException();
11236
    }
11237
 
3430 rajveer 11238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11239
    public boolean isSet(_Fields field) {
11240
      if (field == null) {
11241
        throw new IllegalArgumentException();
11242
      }
495 rajveer 11243
 
11244
      switch (field) {
11245
      case SUCCESS:
11246
        return isSetSuccess();
11247
      case SE:
11248
        return isSetSe();
11249
      }
11250
      throw new IllegalStateException();
11251
    }
11252
 
11253
    @Override
11254
    public boolean equals(Object that) {
11255
      if (that == null)
11256
        return false;
2443 chandransh 11257
      if (that instanceof authenticateDashboardUser_result)
11258
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11259
      return false;
11260
    }
11261
 
2443 chandransh 11262
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11263
      if (that == null)
11264
        return false;
11265
 
2443 chandransh 11266
      boolean this_present_success = true && this.isSetSuccess();
11267
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11268
      if (this_present_success || that_present_success) {
11269
        if (!(this_present_success && that_present_success))
11270
          return false;
2443 chandransh 11271
        if (!this.success.equals(that.success))
495 rajveer 11272
          return false;
11273
      }
11274
 
11275
      boolean this_present_se = true && this.isSetSe();
11276
      boolean that_present_se = true && that.isSetSe();
11277
      if (this_present_se || that_present_se) {
11278
        if (!(this_present_se && that_present_se))
11279
          return false;
11280
        if (!this.se.equals(that.se))
11281
          return false;
11282
      }
11283
 
11284
      return true;
11285
    }
11286
 
11287
    @Override
11288
    public int hashCode() {
11289
      return 0;
11290
    }
11291
 
2443 chandransh 11292
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11293
      if (!getClass().equals(other.getClass())) {
11294
        return getClass().getName().compareTo(other.getClass().getName());
11295
      }
11296
 
11297
      int lastComparison = 0;
2443 chandransh 11298
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11299
 
3430 rajveer 11300
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11301
      if (lastComparison != 0) {
11302
        return lastComparison;
11303
      }
3430 rajveer 11304
      if (isSetSuccess()) {
11305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11306
        if (lastComparison != 0) {
11307
          return lastComparison;
11308
        }
495 rajveer 11309
      }
3430 rajveer 11310
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11311
      if (lastComparison != 0) {
11312
        return lastComparison;
11313
      }
3430 rajveer 11314
      if (isSetSe()) {
11315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11316
        if (lastComparison != 0) {
11317
          return lastComparison;
11318
        }
495 rajveer 11319
      }
11320
      return 0;
11321
    }
11322
 
3430 rajveer 11323
    public _Fields fieldForId(int fieldId) {
11324
      return _Fields.findByThriftId(fieldId);
11325
    }
11326
 
11327
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11328
      org.apache.thrift.protocol.TField field;
495 rajveer 11329
      iprot.readStructBegin();
11330
      while (true)
11331
      {
11332
        field = iprot.readFieldBegin();
3430 rajveer 11333
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11334
          break;
11335
        }
3430 rajveer 11336
        switch (field.id) {
11337
          case 0: // SUCCESS
11338
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11339
              this.success = new DashboardUser();
11340
              this.success.read(iprot);
11341
            } else { 
11342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11343
            }
11344
            break;
11345
          case 1: // SE
11346
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11347
              this.se = new HelperServiceException();
11348
              this.se.read(iprot);
11349
            } else { 
11350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11351
            }
11352
            break;
11353
          default:
11354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11355
        }
3430 rajveer 11356
        iprot.readFieldEnd();
495 rajveer 11357
      }
11358
      iprot.readStructEnd();
11359
      validate();
11360
    }
11361
 
3430 rajveer 11362
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11363
      oprot.writeStructBegin(STRUCT_DESC);
11364
 
11365
      if (this.isSetSuccess()) {
11366
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11367
        this.success.write(oprot);
495 rajveer 11368
        oprot.writeFieldEnd();
11369
      } else if (this.isSetSe()) {
11370
        oprot.writeFieldBegin(SE_FIELD_DESC);
11371
        this.se.write(oprot);
11372
        oprot.writeFieldEnd();
11373
      }
11374
      oprot.writeFieldStop();
11375
      oprot.writeStructEnd();
11376
    }
11377
 
11378
    @Override
11379
    public String toString() {
2443 chandransh 11380
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11381
      boolean first = true;
11382
 
11383
      sb.append("success:");
2443 chandransh 11384
      if (this.success == null) {
11385
        sb.append("null");
11386
      } else {
11387
        sb.append(this.success);
11388
      }
495 rajveer 11389
      first = false;
11390
      if (!first) sb.append(", ");
11391
      sb.append("se:");
11392
      if (this.se == null) {
11393
        sb.append("null");
11394
      } else {
11395
        sb.append(this.se);
11396
      }
11397
      first = false;
11398
      sb.append(")");
11399
      return sb.toString();
11400
    }
11401
 
3430 rajveer 11402
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11403
      // check for required fields
11404
    }
11405
 
3430 rajveer 11406
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11407
      try {
11408
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11409
      } catch (org.apache.thrift.TException te) {
11410
        throw new java.io.IOException(te);
11411
      }
11412
    }
11413
 
11414
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11415
      try {
11416
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11417
      } catch (org.apache.thrift.TException te) {
11418
        throw new java.io.IOException(te);
11419
      }
11420
    }
11421
 
495 rajveer 11422
  }
11423
 
3430 rajveer 11424
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11426
 
3430 rajveer 11427
    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);
11428
    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);
11429
    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 11430
 
3430 rajveer 11431
    private String username; // required
11432
    private String oldPassword; // required
11433
    private String newPassword; // required
495 rajveer 11434
 
11435
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11436
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11437
      USERNAME((short)1, "username"),
11438
      OLD_PASSWORD((short)2, "oldPassword"),
11439
      NEW_PASSWORD((short)3, "newPassword");
11440
 
11441
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11442
 
11443
      static {
11444
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11445
          byName.put(field.getFieldName(), field);
11446
        }
11447
      }
11448
 
11449
      /**
11450
       * Find the _Fields constant that matches fieldId, or null if its not found.
11451
       */
11452
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11453
        switch(fieldId) {
11454
          case 1: // USERNAME
11455
            return USERNAME;
11456
          case 2: // OLD_PASSWORD
11457
            return OLD_PASSWORD;
11458
          case 3: // NEW_PASSWORD
11459
            return NEW_PASSWORD;
11460
          default:
11461
            return null;
11462
        }
495 rajveer 11463
      }
11464
 
11465
      /**
11466
       * Find the _Fields constant that matches fieldId, throwing an exception
11467
       * if it is not found.
11468
       */
11469
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11470
        _Fields fields = findByThriftId(fieldId);
11471
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11472
        return fields;
11473
      }
11474
 
11475
      /**
11476
       * Find the _Fields constant that matches name, or null if its not found.
11477
       */
11478
      public static _Fields findByName(String name) {
11479
        return byName.get(name);
11480
      }
11481
 
11482
      private final short _thriftId;
11483
      private final String _fieldName;
11484
 
11485
      _Fields(short thriftId, String fieldName) {
11486
        _thriftId = thriftId;
11487
        _fieldName = fieldName;
11488
      }
11489
 
11490
      public short getThriftFieldId() {
11491
        return _thriftId;
11492
      }
11493
 
11494
      public String getFieldName() {
11495
        return _fieldName;
11496
      }
11497
    }
11498
 
11499
    // isset id assignments
11500
 
3430 rajveer 11501
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11502
    static {
3430 rajveer 11503
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11504
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11506
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11508
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11512
    }
11513
 
11514
    public updatePassword_args() {
11515
    }
11516
 
11517
    public updatePassword_args(
11518
      String username,
11519
      String oldPassword,
11520
      String newPassword)
11521
    {
11522
      this();
11523
      this.username = username;
11524
      this.oldPassword = oldPassword;
11525
      this.newPassword = newPassword;
11526
    }
11527
 
11528
    /**
11529
     * Performs a deep copy on <i>other</i>.
11530
     */
11531
    public updatePassword_args(updatePassword_args other) {
11532
      if (other.isSetUsername()) {
11533
        this.username = other.username;
11534
      }
11535
      if (other.isSetOldPassword()) {
11536
        this.oldPassword = other.oldPassword;
11537
      }
11538
      if (other.isSetNewPassword()) {
11539
        this.newPassword = other.newPassword;
11540
      }
11541
    }
11542
 
11543
    public updatePassword_args deepCopy() {
11544
      return new updatePassword_args(this);
11545
    }
11546
 
3430 rajveer 11547
    @Override
11548
    public void clear() {
11549
      this.username = null;
11550
      this.oldPassword = null;
11551
      this.newPassword = null;
495 rajveer 11552
    }
11553
 
11554
    public String getUsername() {
11555
      return this.username;
11556
    }
11557
 
3430 rajveer 11558
    public void setUsername(String username) {
495 rajveer 11559
      this.username = username;
11560
    }
11561
 
11562
    public void unsetUsername() {
11563
      this.username = null;
11564
    }
11565
 
3430 rajveer 11566
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11567
    public boolean isSetUsername() {
11568
      return this.username != null;
11569
    }
11570
 
11571
    public void setUsernameIsSet(boolean value) {
11572
      if (!value) {
11573
        this.username = null;
11574
      }
11575
    }
11576
 
11577
    public String getOldPassword() {
11578
      return this.oldPassword;
11579
    }
11580
 
3430 rajveer 11581
    public void setOldPassword(String oldPassword) {
495 rajveer 11582
      this.oldPassword = oldPassword;
11583
    }
11584
 
11585
    public void unsetOldPassword() {
11586
      this.oldPassword = null;
11587
    }
11588
 
3430 rajveer 11589
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11590
    public boolean isSetOldPassword() {
11591
      return this.oldPassword != null;
11592
    }
11593
 
11594
    public void setOldPasswordIsSet(boolean value) {
11595
      if (!value) {
11596
        this.oldPassword = null;
11597
      }
11598
    }
11599
 
11600
    public String getNewPassword() {
11601
      return this.newPassword;
11602
    }
11603
 
3430 rajveer 11604
    public void setNewPassword(String newPassword) {
495 rajveer 11605
      this.newPassword = newPassword;
11606
    }
11607
 
11608
    public void unsetNewPassword() {
11609
      this.newPassword = null;
11610
    }
11611
 
3430 rajveer 11612
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11613
    public boolean isSetNewPassword() {
11614
      return this.newPassword != null;
11615
    }
11616
 
11617
    public void setNewPasswordIsSet(boolean value) {
11618
      if (!value) {
11619
        this.newPassword = null;
11620
      }
11621
    }
11622
 
11623
    public void setFieldValue(_Fields field, Object value) {
11624
      switch (field) {
11625
      case USERNAME:
11626
        if (value == null) {
11627
          unsetUsername();
11628
        } else {
11629
          setUsername((String)value);
11630
        }
11631
        break;
11632
 
11633
      case OLD_PASSWORD:
11634
        if (value == null) {
11635
          unsetOldPassword();
11636
        } else {
11637
          setOldPassword((String)value);
11638
        }
11639
        break;
11640
 
11641
      case NEW_PASSWORD:
11642
        if (value == null) {
11643
          unsetNewPassword();
11644
        } else {
11645
          setNewPassword((String)value);
11646
        }
11647
        break;
11648
 
11649
      }
11650
    }
11651
 
11652
    public Object getFieldValue(_Fields field) {
11653
      switch (field) {
11654
      case USERNAME:
11655
        return getUsername();
11656
 
11657
      case OLD_PASSWORD:
11658
        return getOldPassword();
11659
 
11660
      case NEW_PASSWORD:
11661
        return getNewPassword();
11662
 
11663
      }
11664
      throw new IllegalStateException();
11665
    }
11666
 
3430 rajveer 11667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11668
    public boolean isSet(_Fields field) {
11669
      if (field == null) {
11670
        throw new IllegalArgumentException();
11671
      }
495 rajveer 11672
 
11673
      switch (field) {
11674
      case USERNAME:
11675
        return isSetUsername();
11676
      case OLD_PASSWORD:
11677
        return isSetOldPassword();
11678
      case NEW_PASSWORD:
11679
        return isSetNewPassword();
11680
      }
11681
      throw new IllegalStateException();
11682
    }
11683
 
11684
    @Override
11685
    public boolean equals(Object that) {
11686
      if (that == null)
11687
        return false;
11688
      if (that instanceof updatePassword_args)
11689
        return this.equals((updatePassword_args)that);
11690
      return false;
11691
    }
11692
 
11693
    public boolean equals(updatePassword_args that) {
11694
      if (that == null)
11695
        return false;
11696
 
11697
      boolean this_present_username = true && this.isSetUsername();
11698
      boolean that_present_username = true && that.isSetUsername();
11699
      if (this_present_username || that_present_username) {
11700
        if (!(this_present_username && that_present_username))
11701
          return false;
11702
        if (!this.username.equals(that.username))
11703
          return false;
11704
      }
11705
 
11706
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11707
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11708
      if (this_present_oldPassword || that_present_oldPassword) {
11709
        if (!(this_present_oldPassword && that_present_oldPassword))
11710
          return false;
11711
        if (!this.oldPassword.equals(that.oldPassword))
11712
          return false;
11713
      }
11714
 
11715
      boolean this_present_newPassword = true && this.isSetNewPassword();
11716
      boolean that_present_newPassword = true && that.isSetNewPassword();
11717
      if (this_present_newPassword || that_present_newPassword) {
11718
        if (!(this_present_newPassword && that_present_newPassword))
11719
          return false;
11720
        if (!this.newPassword.equals(that.newPassword))
11721
          return false;
11722
      }
11723
 
11724
      return true;
11725
    }
11726
 
11727
    @Override
11728
    public int hashCode() {
11729
      return 0;
11730
    }
11731
 
11732
    public int compareTo(updatePassword_args other) {
11733
      if (!getClass().equals(other.getClass())) {
11734
        return getClass().getName().compareTo(other.getClass().getName());
11735
      }
11736
 
11737
      int lastComparison = 0;
11738
      updatePassword_args typedOther = (updatePassword_args)other;
11739
 
3430 rajveer 11740
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11741
      if (lastComparison != 0) {
11742
        return lastComparison;
11743
      }
3430 rajveer 11744
      if (isSetUsername()) {
11745
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11746
        if (lastComparison != 0) {
11747
          return lastComparison;
11748
        }
495 rajveer 11749
      }
3430 rajveer 11750
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11751
      if (lastComparison != 0) {
11752
        return lastComparison;
11753
      }
3430 rajveer 11754
      if (isSetOldPassword()) {
11755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11756
        if (lastComparison != 0) {
11757
          return lastComparison;
11758
        }
495 rajveer 11759
      }
3430 rajveer 11760
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11761
      if (lastComparison != 0) {
11762
        return lastComparison;
11763
      }
3430 rajveer 11764
      if (isSetNewPassword()) {
11765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11766
        if (lastComparison != 0) {
11767
          return lastComparison;
11768
        }
495 rajveer 11769
      }
11770
      return 0;
11771
    }
11772
 
3430 rajveer 11773
    public _Fields fieldForId(int fieldId) {
11774
      return _Fields.findByThriftId(fieldId);
11775
    }
11776
 
11777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11778
      org.apache.thrift.protocol.TField field;
495 rajveer 11779
      iprot.readStructBegin();
11780
      while (true)
11781
      {
11782
        field = iprot.readFieldBegin();
3430 rajveer 11783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11784
          break;
11785
        }
3430 rajveer 11786
        switch (field.id) {
11787
          case 1: // USERNAME
11788
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11789
              this.username = iprot.readString();
11790
            } else { 
11791
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11792
            }
11793
            break;
11794
          case 2: // OLD_PASSWORD
11795
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11796
              this.oldPassword = iprot.readString();
11797
            } else { 
11798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11799
            }
11800
            break;
11801
          case 3: // NEW_PASSWORD
11802
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11803
              this.newPassword = iprot.readString();
11804
            } else { 
11805
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11806
            }
11807
            break;
11808
          default:
11809
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11810
        }
3430 rajveer 11811
        iprot.readFieldEnd();
495 rajveer 11812
      }
11813
      iprot.readStructEnd();
11814
      validate();
11815
    }
11816
 
3430 rajveer 11817
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11818
      validate();
11819
 
11820
      oprot.writeStructBegin(STRUCT_DESC);
11821
      if (this.username != null) {
11822
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11823
        oprot.writeString(this.username);
11824
        oprot.writeFieldEnd();
11825
      }
11826
      if (this.oldPassword != null) {
11827
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11828
        oprot.writeString(this.oldPassword);
11829
        oprot.writeFieldEnd();
11830
      }
11831
      if (this.newPassword != null) {
11832
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11833
        oprot.writeString(this.newPassword);
11834
        oprot.writeFieldEnd();
11835
      }
11836
      oprot.writeFieldStop();
11837
      oprot.writeStructEnd();
11838
    }
11839
 
11840
    @Override
11841
    public String toString() {
11842
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11843
      boolean first = true;
11844
 
11845
      sb.append("username:");
11846
      if (this.username == null) {
11847
        sb.append("null");
11848
      } else {
11849
        sb.append(this.username);
11850
      }
11851
      first = false;
11852
      if (!first) sb.append(", ");
11853
      sb.append("oldPassword:");
11854
      if (this.oldPassword == null) {
11855
        sb.append("null");
11856
      } else {
11857
        sb.append(this.oldPassword);
11858
      }
11859
      first = false;
11860
      if (!first) sb.append(", ");
11861
      sb.append("newPassword:");
11862
      if (this.newPassword == null) {
11863
        sb.append("null");
11864
      } else {
11865
        sb.append(this.newPassword);
11866
      }
11867
      first = false;
11868
      sb.append(")");
11869
      return sb.toString();
11870
    }
11871
 
3430 rajveer 11872
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11873
      // check for required fields
11874
    }
11875
 
3430 rajveer 11876
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11877
      try {
11878
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11879
      } catch (org.apache.thrift.TException te) {
11880
        throw new java.io.IOException(te);
11881
      }
11882
    }
11883
 
11884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11885
      try {
11886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11887
      } catch (org.apache.thrift.TException te) {
11888
        throw new java.io.IOException(te);
11889
      }
11890
    }
11891
 
495 rajveer 11892
  }
11893
 
3430 rajveer 11894
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11895
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11896
 
3430 rajveer 11897
    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);
11898
    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 11899
 
3430 rajveer 11900
    private boolean success; // required
11901
    private HelperServiceException se; // required
495 rajveer 11902
 
11903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11905
      SUCCESS((short)0, "success"),
11906
      SE((short)1, "se");
11907
 
11908
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11909
 
11910
      static {
11911
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11912
          byName.put(field.getFieldName(), field);
11913
        }
11914
      }
11915
 
11916
      /**
11917
       * Find the _Fields constant that matches fieldId, or null if its not found.
11918
       */
11919
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11920
        switch(fieldId) {
11921
          case 0: // SUCCESS
11922
            return SUCCESS;
11923
          case 1: // SE
11924
            return SE;
11925
          default:
11926
            return null;
11927
        }
495 rajveer 11928
      }
11929
 
11930
      /**
11931
       * Find the _Fields constant that matches fieldId, throwing an exception
11932
       * if it is not found.
11933
       */
11934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11935
        _Fields fields = findByThriftId(fieldId);
11936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11937
        return fields;
11938
      }
11939
 
11940
      /**
11941
       * Find the _Fields constant that matches name, or null if its not found.
11942
       */
11943
      public static _Fields findByName(String name) {
11944
        return byName.get(name);
11945
      }
11946
 
11947
      private final short _thriftId;
11948
      private final String _fieldName;
11949
 
11950
      _Fields(short thriftId, String fieldName) {
11951
        _thriftId = thriftId;
11952
        _fieldName = fieldName;
11953
      }
11954
 
11955
      public short getThriftFieldId() {
11956
        return _thriftId;
11957
      }
11958
 
11959
      public String getFieldName() {
11960
        return _fieldName;
11961
      }
11962
    }
11963
 
11964
    // isset id assignments
11965
    private static final int __SUCCESS_ISSET_ID = 0;
11966
    private BitSet __isset_bit_vector = new BitSet(1);
11967
 
3430 rajveer 11968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11969
    static {
3430 rajveer 11970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11971
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11973
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11977
    }
11978
 
11979
    public updatePassword_result() {
11980
    }
11981
 
11982
    public updatePassword_result(
11983
      boolean success,
11984
      HelperServiceException se)
11985
    {
11986
      this();
11987
      this.success = success;
11988
      setSuccessIsSet(true);
11989
      this.se = se;
11990
    }
11991
 
11992
    /**
11993
     * Performs a deep copy on <i>other</i>.
11994
     */
11995
    public updatePassword_result(updatePassword_result other) {
11996
      __isset_bit_vector.clear();
11997
      __isset_bit_vector.or(other.__isset_bit_vector);
11998
      this.success = other.success;
11999
      if (other.isSetSe()) {
12000
        this.se = new HelperServiceException(other.se);
12001
      }
12002
    }
12003
 
12004
    public updatePassword_result deepCopy() {
12005
      return new updatePassword_result(this);
12006
    }
12007
 
3430 rajveer 12008
    @Override
12009
    public void clear() {
12010
      setSuccessIsSet(false);
12011
      this.success = false;
12012
      this.se = null;
495 rajveer 12013
    }
12014
 
12015
    public boolean isSuccess() {
12016
      return this.success;
12017
    }
12018
 
3430 rajveer 12019
    public void setSuccess(boolean success) {
495 rajveer 12020
      this.success = success;
12021
      setSuccessIsSet(true);
12022
    }
12023
 
12024
    public void unsetSuccess() {
12025
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12026
    }
12027
 
3430 rajveer 12028
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12029
    public boolean isSetSuccess() {
12030
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12031
    }
12032
 
12033
    public void setSuccessIsSet(boolean value) {
12034
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12035
    }
12036
 
12037
    public HelperServiceException getSe() {
12038
      return this.se;
12039
    }
12040
 
3430 rajveer 12041
    public void setSe(HelperServiceException se) {
495 rajveer 12042
      this.se = se;
12043
    }
12044
 
12045
    public void unsetSe() {
12046
      this.se = null;
12047
    }
12048
 
3430 rajveer 12049
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12050
    public boolean isSetSe() {
12051
      return this.se != null;
12052
    }
12053
 
12054
    public void setSeIsSet(boolean value) {
12055
      if (!value) {
12056
        this.se = null;
12057
      }
12058
    }
12059
 
12060
    public void setFieldValue(_Fields field, Object value) {
12061
      switch (field) {
12062
      case SUCCESS:
12063
        if (value == null) {
12064
          unsetSuccess();
12065
        } else {
12066
          setSuccess((Boolean)value);
12067
        }
12068
        break;
12069
 
12070
      case SE:
12071
        if (value == null) {
12072
          unsetSe();
12073
        } else {
12074
          setSe((HelperServiceException)value);
12075
        }
12076
        break;
12077
 
12078
      }
12079
    }
12080
 
12081
    public Object getFieldValue(_Fields field) {
12082
      switch (field) {
12083
      case SUCCESS:
3430 rajveer 12084
        return Boolean.valueOf(isSuccess());
495 rajveer 12085
 
12086
      case SE:
12087
        return getSe();
12088
 
12089
      }
12090
      throw new IllegalStateException();
12091
    }
12092
 
3430 rajveer 12093
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12094
    public boolean isSet(_Fields field) {
12095
      if (field == null) {
12096
        throw new IllegalArgumentException();
12097
      }
495 rajveer 12098
 
12099
      switch (field) {
12100
      case SUCCESS:
12101
        return isSetSuccess();
12102
      case SE:
12103
        return isSetSe();
12104
      }
12105
      throw new IllegalStateException();
12106
    }
12107
 
12108
    @Override
12109
    public boolean equals(Object that) {
12110
      if (that == null)
12111
        return false;
12112
      if (that instanceof updatePassword_result)
12113
        return this.equals((updatePassword_result)that);
12114
      return false;
12115
    }
12116
 
12117
    public boolean equals(updatePassword_result that) {
12118
      if (that == null)
12119
        return false;
12120
 
12121
      boolean this_present_success = true;
12122
      boolean that_present_success = true;
12123
      if (this_present_success || that_present_success) {
12124
        if (!(this_present_success && that_present_success))
12125
          return false;
12126
        if (this.success != that.success)
12127
          return false;
12128
      }
12129
 
12130
      boolean this_present_se = true && this.isSetSe();
12131
      boolean that_present_se = true && that.isSetSe();
12132
      if (this_present_se || that_present_se) {
12133
        if (!(this_present_se && that_present_se))
12134
          return false;
12135
        if (!this.se.equals(that.se))
12136
          return false;
12137
      }
12138
 
12139
      return true;
12140
    }
12141
 
12142
    @Override
12143
    public int hashCode() {
12144
      return 0;
12145
    }
12146
 
12147
    public int compareTo(updatePassword_result other) {
12148
      if (!getClass().equals(other.getClass())) {
12149
        return getClass().getName().compareTo(other.getClass().getName());
12150
      }
12151
 
12152
      int lastComparison = 0;
12153
      updatePassword_result typedOther = (updatePassword_result)other;
12154
 
3430 rajveer 12155
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12156
      if (lastComparison != 0) {
12157
        return lastComparison;
12158
      }
3430 rajveer 12159
      if (isSetSuccess()) {
12160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12161
        if (lastComparison != 0) {
12162
          return lastComparison;
12163
        }
495 rajveer 12164
      }
3430 rajveer 12165
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12166
      if (lastComparison != 0) {
12167
        return lastComparison;
12168
      }
3430 rajveer 12169
      if (isSetSe()) {
12170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12171
        if (lastComparison != 0) {
12172
          return lastComparison;
12173
        }
495 rajveer 12174
      }
12175
      return 0;
12176
    }
12177
 
3430 rajveer 12178
    public _Fields fieldForId(int fieldId) {
12179
      return _Fields.findByThriftId(fieldId);
12180
    }
12181
 
12182
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12183
      org.apache.thrift.protocol.TField field;
495 rajveer 12184
      iprot.readStructBegin();
12185
      while (true)
12186
      {
12187
        field = iprot.readFieldBegin();
3430 rajveer 12188
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12189
          break;
12190
        }
3430 rajveer 12191
        switch (field.id) {
12192
          case 0: // SUCCESS
12193
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12194
              this.success = iprot.readBool();
12195
              setSuccessIsSet(true);
12196
            } else { 
12197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12198
            }
12199
            break;
12200
          case 1: // SE
12201
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12202
              this.se = new HelperServiceException();
12203
              this.se.read(iprot);
12204
            } else { 
12205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12206
            }
12207
            break;
12208
          default:
12209
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12210
        }
3430 rajveer 12211
        iprot.readFieldEnd();
495 rajveer 12212
      }
12213
      iprot.readStructEnd();
12214
      validate();
12215
    }
12216
 
3430 rajveer 12217
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12218
      oprot.writeStructBegin(STRUCT_DESC);
12219
 
12220
      if (this.isSetSuccess()) {
12221
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12222
        oprot.writeBool(this.success);
12223
        oprot.writeFieldEnd();
12224
      } else if (this.isSetSe()) {
12225
        oprot.writeFieldBegin(SE_FIELD_DESC);
12226
        this.se.write(oprot);
12227
        oprot.writeFieldEnd();
12228
      }
12229
      oprot.writeFieldStop();
12230
      oprot.writeStructEnd();
12231
    }
12232
 
12233
    @Override
12234
    public String toString() {
12235
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12236
      boolean first = true;
12237
 
12238
      sb.append("success:");
12239
      sb.append(this.success);
12240
      first = false;
12241
      if (!first) sb.append(", ");
12242
      sb.append("se:");
12243
      if (this.se == null) {
12244
        sb.append("null");
12245
      } else {
12246
        sb.append(this.se);
12247
      }
12248
      first = false;
12249
      sb.append(")");
12250
      return sb.toString();
12251
    }
12252
 
3430 rajveer 12253
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12254
      // check for required fields
12255
    }
12256
 
3430 rajveer 12257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12258
      try {
12259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12260
      } catch (org.apache.thrift.TException te) {
12261
        throw new java.io.IOException(te);
12262
      }
12263
    }
12264
 
12265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12266
      try {
12267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12268
      } catch (org.apache.thrift.TException te) {
12269
        throw new java.io.IOException(te);
12270
      }
12271
    }
12272
 
495 rajveer 12273
  }
12274
 
3430 rajveer 12275
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12277
 
3430 rajveer 12278
    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);
12279
    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 12280
 
3430 rajveer 12281
    private String username; // required
12282
    private String password; // required
750 chandransh 12283
 
12284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12286
      USERNAME((short)1, "username"),
12287
      PASSWORD((short)2, "password");
12288
 
12289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12290
 
12291
      static {
12292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12293
          byName.put(field.getFieldName(), field);
12294
        }
12295
      }
12296
 
12297
      /**
12298
       * Find the _Fields constant that matches fieldId, or null if its not found.
12299
       */
12300
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12301
        switch(fieldId) {
12302
          case 1: // USERNAME
12303
            return USERNAME;
12304
          case 2: // PASSWORD
12305
            return PASSWORD;
12306
          default:
12307
            return null;
12308
        }
750 chandransh 12309
      }
12310
 
12311
      /**
12312
       * Find the _Fields constant that matches fieldId, throwing an exception
12313
       * if it is not found.
12314
       */
12315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12316
        _Fields fields = findByThriftId(fieldId);
12317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12318
        return fields;
12319
      }
12320
 
12321
      /**
12322
       * Find the _Fields constant that matches name, or null if its not found.
12323
       */
12324
      public static _Fields findByName(String name) {
12325
        return byName.get(name);
12326
      }
12327
 
12328
      private final short _thriftId;
12329
      private final String _fieldName;
12330
 
12331
      _Fields(short thriftId, String fieldName) {
12332
        _thriftId = thriftId;
12333
        _fieldName = fieldName;
12334
      }
12335
 
12336
      public short getThriftFieldId() {
12337
        return _thriftId;
12338
      }
12339
 
12340
      public String getFieldName() {
12341
        return _fieldName;
12342
      }
12343
    }
12344
 
12345
    // isset id assignments
12346
 
3430 rajveer 12347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12348
    static {
3430 rajveer 12349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12350
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12352
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12356
    }
12357
 
12358
    public authenticateLogisticsUser_args() {
12359
    }
12360
 
12361
    public authenticateLogisticsUser_args(
12362
      String username,
12363
      String password)
12364
    {
12365
      this();
12366
      this.username = username;
12367
      this.password = password;
12368
    }
12369
 
12370
    /**
12371
     * Performs a deep copy on <i>other</i>.
12372
     */
12373
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12374
      if (other.isSetUsername()) {
12375
        this.username = other.username;
12376
      }
12377
      if (other.isSetPassword()) {
12378
        this.password = other.password;
12379
      }
12380
    }
12381
 
12382
    public authenticateLogisticsUser_args deepCopy() {
12383
      return new authenticateLogisticsUser_args(this);
12384
    }
12385
 
3430 rajveer 12386
    @Override
12387
    public void clear() {
12388
      this.username = null;
12389
      this.password = null;
750 chandransh 12390
    }
12391
 
12392
    public String getUsername() {
12393
      return this.username;
12394
    }
12395
 
3430 rajveer 12396
    public void setUsername(String username) {
750 chandransh 12397
      this.username = username;
12398
    }
12399
 
12400
    public void unsetUsername() {
12401
      this.username = null;
12402
    }
12403
 
3430 rajveer 12404
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12405
    public boolean isSetUsername() {
12406
      return this.username != null;
12407
    }
12408
 
12409
    public void setUsernameIsSet(boolean value) {
12410
      if (!value) {
12411
        this.username = null;
12412
      }
12413
    }
12414
 
12415
    public String getPassword() {
12416
      return this.password;
12417
    }
12418
 
3430 rajveer 12419
    public void setPassword(String password) {
750 chandransh 12420
      this.password = password;
12421
    }
12422
 
12423
    public void unsetPassword() {
12424
      this.password = null;
12425
    }
12426
 
3430 rajveer 12427
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12428
    public boolean isSetPassword() {
12429
      return this.password != null;
12430
    }
12431
 
12432
    public void setPasswordIsSet(boolean value) {
12433
      if (!value) {
12434
        this.password = null;
12435
      }
12436
    }
12437
 
12438
    public void setFieldValue(_Fields field, Object value) {
12439
      switch (field) {
12440
      case USERNAME:
12441
        if (value == null) {
12442
          unsetUsername();
12443
        } else {
12444
          setUsername((String)value);
12445
        }
12446
        break;
12447
 
12448
      case PASSWORD:
12449
        if (value == null) {
12450
          unsetPassword();
12451
        } else {
12452
          setPassword((String)value);
12453
        }
12454
        break;
12455
 
12456
      }
12457
    }
12458
 
12459
    public Object getFieldValue(_Fields field) {
12460
      switch (field) {
12461
      case USERNAME:
12462
        return getUsername();
12463
 
12464
      case PASSWORD:
12465
        return getPassword();
12466
 
12467
      }
12468
      throw new IllegalStateException();
12469
    }
12470
 
3430 rajveer 12471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12472
    public boolean isSet(_Fields field) {
12473
      if (field == null) {
12474
        throw new IllegalArgumentException();
12475
      }
750 chandransh 12476
 
12477
      switch (field) {
12478
      case USERNAME:
12479
        return isSetUsername();
12480
      case PASSWORD:
12481
        return isSetPassword();
12482
      }
12483
      throw new IllegalStateException();
12484
    }
12485
 
12486
    @Override
12487
    public boolean equals(Object that) {
12488
      if (that == null)
12489
        return false;
12490
      if (that instanceof authenticateLogisticsUser_args)
12491
        return this.equals((authenticateLogisticsUser_args)that);
12492
      return false;
12493
    }
12494
 
12495
    public boolean equals(authenticateLogisticsUser_args that) {
12496
      if (that == null)
12497
        return false;
12498
 
12499
      boolean this_present_username = true && this.isSetUsername();
12500
      boolean that_present_username = true && that.isSetUsername();
12501
      if (this_present_username || that_present_username) {
12502
        if (!(this_present_username && that_present_username))
12503
          return false;
12504
        if (!this.username.equals(that.username))
12505
          return false;
12506
      }
12507
 
12508
      boolean this_present_password = true && this.isSetPassword();
12509
      boolean that_present_password = true && that.isSetPassword();
12510
      if (this_present_password || that_present_password) {
12511
        if (!(this_present_password && that_present_password))
12512
          return false;
12513
        if (!this.password.equals(that.password))
12514
          return false;
12515
      }
12516
 
12517
      return true;
12518
    }
12519
 
12520
    @Override
12521
    public int hashCode() {
12522
      return 0;
12523
    }
12524
 
12525
    public int compareTo(authenticateLogisticsUser_args other) {
12526
      if (!getClass().equals(other.getClass())) {
12527
        return getClass().getName().compareTo(other.getClass().getName());
12528
      }
12529
 
12530
      int lastComparison = 0;
12531
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12532
 
3430 rajveer 12533
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12534
      if (lastComparison != 0) {
12535
        return lastComparison;
12536
      }
3430 rajveer 12537
      if (isSetUsername()) {
12538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12539
        if (lastComparison != 0) {
12540
          return lastComparison;
12541
        }
750 chandransh 12542
      }
3430 rajveer 12543
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12544
      if (lastComparison != 0) {
12545
        return lastComparison;
12546
      }
3430 rajveer 12547
      if (isSetPassword()) {
12548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12549
        if (lastComparison != 0) {
12550
          return lastComparison;
12551
        }
750 chandransh 12552
      }
12553
      return 0;
12554
    }
12555
 
3430 rajveer 12556
    public _Fields fieldForId(int fieldId) {
12557
      return _Fields.findByThriftId(fieldId);
12558
    }
12559
 
12560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12561
      org.apache.thrift.protocol.TField field;
750 chandransh 12562
      iprot.readStructBegin();
12563
      while (true)
12564
      {
12565
        field = iprot.readFieldBegin();
3430 rajveer 12566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12567
          break;
12568
        }
3430 rajveer 12569
        switch (field.id) {
12570
          case 1: // USERNAME
12571
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12572
              this.username = iprot.readString();
12573
            } else { 
12574
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12575
            }
12576
            break;
12577
          case 2: // PASSWORD
12578
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12579
              this.password = iprot.readString();
12580
            } else { 
12581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12582
            }
12583
            break;
12584
          default:
12585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12586
        }
3430 rajveer 12587
        iprot.readFieldEnd();
750 chandransh 12588
      }
12589
      iprot.readStructEnd();
12590
      validate();
12591
    }
12592
 
3430 rajveer 12593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12594
      validate();
12595
 
12596
      oprot.writeStructBegin(STRUCT_DESC);
12597
      if (this.username != null) {
12598
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12599
        oprot.writeString(this.username);
12600
        oprot.writeFieldEnd();
12601
      }
12602
      if (this.password != null) {
12603
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12604
        oprot.writeString(this.password);
12605
        oprot.writeFieldEnd();
12606
      }
12607
      oprot.writeFieldStop();
12608
      oprot.writeStructEnd();
12609
    }
12610
 
12611
    @Override
12612
    public String toString() {
12613
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12614
      boolean first = true;
12615
 
12616
      sb.append("username:");
12617
      if (this.username == null) {
12618
        sb.append("null");
12619
      } else {
12620
        sb.append(this.username);
12621
      }
12622
      first = false;
12623
      if (!first) sb.append(", ");
12624
      sb.append("password:");
12625
      if (this.password == null) {
12626
        sb.append("null");
12627
      } else {
12628
        sb.append(this.password);
12629
      }
12630
      first = false;
12631
      sb.append(")");
12632
      return sb.toString();
12633
    }
12634
 
3430 rajveer 12635
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12636
      // check for required fields
12637
    }
12638
 
3430 rajveer 12639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12640
      try {
12641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12642
      } catch (org.apache.thrift.TException te) {
12643
        throw new java.io.IOException(te);
12644
      }
12645
    }
12646
 
12647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12648
      try {
12649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12650
      } catch (org.apache.thrift.TException te) {
12651
        throw new java.io.IOException(te);
12652
      }
12653
    }
12654
 
750 chandransh 12655
  }
12656
 
3430 rajveer 12657
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12659
 
3430 rajveer 12660
    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);
12661
    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 12662
 
3430 rajveer 12663
    private LogisticsUser success; // required
12664
    private HelperServiceException hse; // required
750 chandransh 12665
 
12666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12668
      SUCCESS((short)0, "success"),
12669
      HSE((short)1, "hse");
12670
 
12671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12672
 
12673
      static {
12674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12675
          byName.put(field.getFieldName(), field);
12676
        }
12677
      }
12678
 
12679
      /**
12680
       * Find the _Fields constant that matches fieldId, or null if its not found.
12681
       */
12682
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12683
        switch(fieldId) {
12684
          case 0: // SUCCESS
12685
            return SUCCESS;
12686
          case 1: // HSE
12687
            return HSE;
12688
          default:
12689
            return null;
12690
        }
750 chandransh 12691
      }
12692
 
12693
      /**
12694
       * Find the _Fields constant that matches fieldId, throwing an exception
12695
       * if it is not found.
12696
       */
12697
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12698
        _Fields fields = findByThriftId(fieldId);
12699
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12700
        return fields;
12701
      }
12702
 
12703
      /**
12704
       * Find the _Fields constant that matches name, or null if its not found.
12705
       */
12706
      public static _Fields findByName(String name) {
12707
        return byName.get(name);
12708
      }
12709
 
12710
      private final short _thriftId;
12711
      private final String _fieldName;
12712
 
12713
      _Fields(short thriftId, String fieldName) {
12714
        _thriftId = thriftId;
12715
        _fieldName = fieldName;
12716
      }
12717
 
12718
      public short getThriftFieldId() {
12719
        return _thriftId;
12720
      }
12721
 
12722
      public String getFieldName() {
12723
        return _fieldName;
12724
      }
12725
    }
12726
 
12727
    // isset id assignments
12728
 
3430 rajveer 12729
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12730
    static {
3430 rajveer 12731
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12732
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12733
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12734
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12738
    }
12739
 
12740
    public authenticateLogisticsUser_result() {
12741
    }
12742
 
12743
    public authenticateLogisticsUser_result(
12744
      LogisticsUser success,
12745
      HelperServiceException hse)
12746
    {
12747
      this();
12748
      this.success = success;
12749
      this.hse = hse;
12750
    }
12751
 
12752
    /**
12753
     * Performs a deep copy on <i>other</i>.
12754
     */
12755
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12756
      if (other.isSetSuccess()) {
12757
        this.success = new LogisticsUser(other.success);
12758
      }
12759
      if (other.isSetHse()) {
12760
        this.hse = new HelperServiceException(other.hse);
12761
      }
12762
    }
12763
 
12764
    public authenticateLogisticsUser_result deepCopy() {
12765
      return new authenticateLogisticsUser_result(this);
12766
    }
12767
 
3430 rajveer 12768
    @Override
12769
    public void clear() {
12770
      this.success = null;
12771
      this.hse = null;
750 chandransh 12772
    }
12773
 
12774
    public LogisticsUser getSuccess() {
12775
      return this.success;
12776
    }
12777
 
3430 rajveer 12778
    public void setSuccess(LogisticsUser success) {
750 chandransh 12779
      this.success = success;
12780
    }
12781
 
12782
    public void unsetSuccess() {
12783
      this.success = null;
12784
    }
12785
 
3430 rajveer 12786
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12787
    public boolean isSetSuccess() {
12788
      return this.success != null;
12789
    }
12790
 
12791
    public void setSuccessIsSet(boolean value) {
12792
      if (!value) {
12793
        this.success = null;
12794
      }
12795
    }
12796
 
12797
    public HelperServiceException getHse() {
12798
      return this.hse;
12799
    }
12800
 
3430 rajveer 12801
    public void setHse(HelperServiceException hse) {
750 chandransh 12802
      this.hse = hse;
12803
    }
12804
 
12805
    public void unsetHse() {
12806
      this.hse = null;
12807
    }
12808
 
3430 rajveer 12809
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12810
    public boolean isSetHse() {
12811
      return this.hse != null;
12812
    }
12813
 
12814
    public void setHseIsSet(boolean value) {
12815
      if (!value) {
12816
        this.hse = null;
12817
      }
12818
    }
12819
 
12820
    public void setFieldValue(_Fields field, Object value) {
12821
      switch (field) {
12822
      case SUCCESS:
12823
        if (value == null) {
12824
          unsetSuccess();
12825
        } else {
12826
          setSuccess((LogisticsUser)value);
12827
        }
12828
        break;
12829
 
12830
      case HSE:
12831
        if (value == null) {
12832
          unsetHse();
12833
        } else {
12834
          setHse((HelperServiceException)value);
12835
        }
12836
        break;
12837
 
12838
      }
12839
    }
12840
 
12841
    public Object getFieldValue(_Fields field) {
12842
      switch (field) {
12843
      case SUCCESS:
12844
        return getSuccess();
12845
 
12846
      case HSE:
12847
        return getHse();
12848
 
12849
      }
12850
      throw new IllegalStateException();
12851
    }
12852
 
3430 rajveer 12853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12854
    public boolean isSet(_Fields field) {
12855
      if (field == null) {
12856
        throw new IllegalArgumentException();
12857
      }
750 chandransh 12858
 
12859
      switch (field) {
12860
      case SUCCESS:
12861
        return isSetSuccess();
12862
      case HSE:
12863
        return isSetHse();
12864
      }
12865
      throw new IllegalStateException();
12866
    }
12867
 
12868
    @Override
12869
    public boolean equals(Object that) {
12870
      if (that == null)
12871
        return false;
12872
      if (that instanceof authenticateLogisticsUser_result)
12873
        return this.equals((authenticateLogisticsUser_result)that);
12874
      return false;
12875
    }
12876
 
12877
    public boolean equals(authenticateLogisticsUser_result that) {
12878
      if (that == null)
12879
        return false;
12880
 
12881
      boolean this_present_success = true && this.isSetSuccess();
12882
      boolean that_present_success = true && that.isSetSuccess();
12883
      if (this_present_success || that_present_success) {
12884
        if (!(this_present_success && that_present_success))
12885
          return false;
12886
        if (!this.success.equals(that.success))
12887
          return false;
12888
      }
12889
 
12890
      boolean this_present_hse = true && this.isSetHse();
12891
      boolean that_present_hse = true && that.isSetHse();
12892
      if (this_present_hse || that_present_hse) {
12893
        if (!(this_present_hse && that_present_hse))
12894
          return false;
12895
        if (!this.hse.equals(that.hse))
12896
          return false;
12897
      }
12898
 
12899
      return true;
12900
    }
12901
 
12902
    @Override
12903
    public int hashCode() {
12904
      return 0;
12905
    }
12906
 
12907
    public int compareTo(authenticateLogisticsUser_result other) {
12908
      if (!getClass().equals(other.getClass())) {
12909
        return getClass().getName().compareTo(other.getClass().getName());
12910
      }
12911
 
12912
      int lastComparison = 0;
12913
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12914
 
3430 rajveer 12915
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12916
      if (lastComparison != 0) {
12917
        return lastComparison;
12918
      }
3430 rajveer 12919
      if (isSetSuccess()) {
12920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12921
        if (lastComparison != 0) {
12922
          return lastComparison;
12923
        }
750 chandransh 12924
      }
3430 rajveer 12925
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12926
      if (lastComparison != 0) {
12927
        return lastComparison;
12928
      }
3430 rajveer 12929
      if (isSetHse()) {
12930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12931
        if (lastComparison != 0) {
12932
          return lastComparison;
12933
        }
750 chandransh 12934
      }
12935
      return 0;
12936
    }
12937
 
3430 rajveer 12938
    public _Fields fieldForId(int fieldId) {
12939
      return _Fields.findByThriftId(fieldId);
12940
    }
12941
 
12942
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12943
      org.apache.thrift.protocol.TField field;
750 chandransh 12944
      iprot.readStructBegin();
12945
      while (true)
12946
      {
12947
        field = iprot.readFieldBegin();
3430 rajveer 12948
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12949
          break;
12950
        }
3430 rajveer 12951
        switch (field.id) {
12952
          case 0: // SUCCESS
12953
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12954
              this.success = new LogisticsUser();
12955
              this.success.read(iprot);
12956
            } else { 
12957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12958
            }
12959
            break;
12960
          case 1: // HSE
12961
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12962
              this.hse = new HelperServiceException();
12963
              this.hse.read(iprot);
12964
            } else { 
12965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12966
            }
12967
            break;
12968
          default:
12969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12970
        }
3430 rajveer 12971
        iprot.readFieldEnd();
750 chandransh 12972
      }
12973
      iprot.readStructEnd();
12974
      validate();
12975
    }
12976
 
3430 rajveer 12977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12978
      oprot.writeStructBegin(STRUCT_DESC);
12979
 
12980
      if (this.isSetSuccess()) {
12981
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12982
        this.success.write(oprot);
12983
        oprot.writeFieldEnd();
12984
      } else if (this.isSetHse()) {
12985
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12986
        this.hse.write(oprot);
12987
        oprot.writeFieldEnd();
12988
      }
12989
      oprot.writeFieldStop();
12990
      oprot.writeStructEnd();
12991
    }
12992
 
12993
    @Override
12994
    public String toString() {
12995
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12996
      boolean first = true;
12997
 
12998
      sb.append("success:");
12999
      if (this.success == null) {
13000
        sb.append("null");
13001
      } else {
13002
        sb.append(this.success);
13003
      }
13004
      first = false;
13005
      if (!first) sb.append(", ");
13006
      sb.append("hse:");
13007
      if (this.hse == null) {
13008
        sb.append("null");
13009
      } else {
13010
        sb.append(this.hse);
13011
      }
13012
      first = false;
13013
      sb.append(")");
13014
      return sb.toString();
13015
    }
13016
 
3430 rajveer 13017
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13018
      // check for required fields
13019
    }
13020
 
3430 rajveer 13021
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13022
      try {
13023
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13024
      } catch (org.apache.thrift.TException te) {
13025
        throw new java.io.IOException(te);
13026
      }
13027
    }
13028
 
13029
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13030
      try {
13031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13032
      } catch (org.apache.thrift.TException te) {
13033
        throw new java.io.IOException(te);
13034
      }
13035
    }
13036
 
750 chandransh 13037
  }
13038
 
3430 rajveer 13039
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 13041
 
3430 rajveer 13042
    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);
13043
    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 13044
 
3430 rajveer 13045
    private String username; // required
13046
    private String password; // required
1611 ankur.sing 13047
 
13048
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13049
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13050
      USERNAME((short)1, "username"),
13051
      PASSWORD((short)2, "password");
13052
 
13053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13054
 
13055
      static {
13056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13057
          byName.put(field.getFieldName(), field);
13058
        }
13059
      }
13060
 
13061
      /**
13062
       * Find the _Fields constant that matches fieldId, or null if its not found.
13063
       */
13064
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13065
        switch(fieldId) {
13066
          case 1: // USERNAME
13067
            return USERNAME;
13068
          case 2: // PASSWORD
13069
            return PASSWORD;
13070
          default:
13071
            return null;
13072
        }
1611 ankur.sing 13073
      }
13074
 
13075
      /**
13076
       * Find the _Fields constant that matches fieldId, throwing an exception
13077
       * if it is not found.
13078
       */
13079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13080
        _Fields fields = findByThriftId(fieldId);
13081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13082
        return fields;
13083
      }
13084
 
13085
      /**
13086
       * Find the _Fields constant that matches name, or null if its not found.
13087
       */
13088
      public static _Fields findByName(String name) {
13089
        return byName.get(name);
13090
      }
13091
 
13092
      private final short _thriftId;
13093
      private final String _fieldName;
13094
 
13095
      _Fields(short thriftId, String fieldName) {
13096
        _thriftId = thriftId;
13097
        _fieldName = fieldName;
13098
      }
13099
 
13100
      public short getThriftFieldId() {
13101
        return _thriftId;
13102
      }
13103
 
13104
      public String getFieldName() {
13105
        return _fieldName;
13106
      }
13107
    }
13108
 
13109
    // isset id assignments
13110
 
3430 rajveer 13111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13112
    static {
3430 rajveer 13113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13114
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13116
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13120
    }
13121
 
13122
    public authenticateStatisticsUser_args() {
13123
    }
13124
 
13125
    public authenticateStatisticsUser_args(
13126
      String username,
13127
      String password)
13128
    {
13129
      this();
13130
      this.username = username;
13131
      this.password = password;
13132
    }
13133
 
13134
    /**
13135
     * Performs a deep copy on <i>other</i>.
13136
     */
13137
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13138
      if (other.isSetUsername()) {
13139
        this.username = other.username;
13140
      }
13141
      if (other.isSetPassword()) {
13142
        this.password = other.password;
13143
      }
13144
    }
13145
 
13146
    public authenticateStatisticsUser_args deepCopy() {
13147
      return new authenticateStatisticsUser_args(this);
13148
    }
13149
 
3430 rajveer 13150
    @Override
13151
    public void clear() {
13152
      this.username = null;
13153
      this.password = null;
1611 ankur.sing 13154
    }
13155
 
13156
    public String getUsername() {
13157
      return this.username;
13158
    }
13159
 
3430 rajveer 13160
    public void setUsername(String username) {
1611 ankur.sing 13161
      this.username = username;
13162
    }
13163
 
13164
    public void unsetUsername() {
13165
      this.username = null;
13166
    }
13167
 
3430 rajveer 13168
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13169
    public boolean isSetUsername() {
13170
      return this.username != null;
13171
    }
13172
 
13173
    public void setUsernameIsSet(boolean value) {
13174
      if (!value) {
13175
        this.username = null;
13176
      }
13177
    }
13178
 
13179
    public String getPassword() {
13180
      return this.password;
13181
    }
13182
 
3430 rajveer 13183
    public void setPassword(String password) {
1611 ankur.sing 13184
      this.password = password;
13185
    }
13186
 
13187
    public void unsetPassword() {
13188
      this.password = null;
13189
    }
13190
 
3430 rajveer 13191
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13192
    public boolean isSetPassword() {
13193
      return this.password != null;
13194
    }
13195
 
13196
    public void setPasswordIsSet(boolean value) {
13197
      if (!value) {
13198
        this.password = null;
13199
      }
13200
    }
13201
 
13202
    public void setFieldValue(_Fields field, Object value) {
13203
      switch (field) {
13204
      case USERNAME:
13205
        if (value == null) {
13206
          unsetUsername();
13207
        } else {
13208
          setUsername((String)value);
13209
        }
13210
        break;
13211
 
13212
      case PASSWORD:
13213
        if (value == null) {
13214
          unsetPassword();
13215
        } else {
13216
          setPassword((String)value);
13217
        }
13218
        break;
13219
 
13220
      }
13221
    }
13222
 
13223
    public Object getFieldValue(_Fields field) {
13224
      switch (field) {
13225
      case USERNAME:
13226
        return getUsername();
13227
 
13228
      case PASSWORD:
13229
        return getPassword();
13230
 
13231
      }
13232
      throw new IllegalStateException();
13233
    }
13234
 
3430 rajveer 13235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13236
    public boolean isSet(_Fields field) {
13237
      if (field == null) {
13238
        throw new IllegalArgumentException();
13239
      }
1611 ankur.sing 13240
 
13241
      switch (field) {
13242
      case USERNAME:
13243
        return isSetUsername();
13244
      case PASSWORD:
13245
        return isSetPassword();
13246
      }
13247
      throw new IllegalStateException();
13248
    }
13249
 
13250
    @Override
13251
    public boolean equals(Object that) {
13252
      if (that == null)
13253
        return false;
13254
      if (that instanceof authenticateStatisticsUser_args)
13255
        return this.equals((authenticateStatisticsUser_args)that);
13256
      return false;
13257
    }
13258
 
13259
    public boolean equals(authenticateStatisticsUser_args that) {
13260
      if (that == null)
13261
        return false;
13262
 
13263
      boolean this_present_username = true && this.isSetUsername();
13264
      boolean that_present_username = true && that.isSetUsername();
13265
      if (this_present_username || that_present_username) {
13266
        if (!(this_present_username && that_present_username))
13267
          return false;
13268
        if (!this.username.equals(that.username))
13269
          return false;
13270
      }
13271
 
13272
      boolean this_present_password = true && this.isSetPassword();
13273
      boolean that_present_password = true && that.isSetPassword();
13274
      if (this_present_password || that_present_password) {
13275
        if (!(this_present_password && that_present_password))
13276
          return false;
13277
        if (!this.password.equals(that.password))
13278
          return false;
13279
      }
13280
 
13281
      return true;
13282
    }
13283
 
13284
    @Override
13285
    public int hashCode() {
13286
      return 0;
13287
    }
13288
 
13289
    public int compareTo(authenticateStatisticsUser_args other) {
13290
      if (!getClass().equals(other.getClass())) {
13291
        return getClass().getName().compareTo(other.getClass().getName());
13292
      }
13293
 
13294
      int lastComparison = 0;
13295
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13296
 
3430 rajveer 13297
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13298
      if (lastComparison != 0) {
13299
        return lastComparison;
13300
      }
3430 rajveer 13301
      if (isSetUsername()) {
13302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13303
        if (lastComparison != 0) {
13304
          return lastComparison;
13305
        }
1611 ankur.sing 13306
      }
3430 rajveer 13307
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13308
      if (lastComparison != 0) {
13309
        return lastComparison;
13310
      }
3430 rajveer 13311
      if (isSetPassword()) {
13312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13313
        if (lastComparison != 0) {
13314
          return lastComparison;
13315
        }
1611 ankur.sing 13316
      }
13317
      return 0;
13318
    }
13319
 
3430 rajveer 13320
    public _Fields fieldForId(int fieldId) {
13321
      return _Fields.findByThriftId(fieldId);
13322
    }
13323
 
13324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13325
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13326
      iprot.readStructBegin();
13327
      while (true)
13328
      {
13329
        field = iprot.readFieldBegin();
3430 rajveer 13330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13331
          break;
13332
        }
3430 rajveer 13333
        switch (field.id) {
13334
          case 1: // USERNAME
13335
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13336
              this.username = iprot.readString();
13337
            } else { 
13338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13339
            }
13340
            break;
13341
          case 2: // PASSWORD
13342
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13343
              this.password = iprot.readString();
13344
            } else { 
13345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13346
            }
13347
            break;
13348
          default:
13349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13350
        }
3430 rajveer 13351
        iprot.readFieldEnd();
1611 ankur.sing 13352
      }
13353
      iprot.readStructEnd();
13354
      validate();
13355
    }
13356
 
3430 rajveer 13357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13358
      validate();
13359
 
13360
      oprot.writeStructBegin(STRUCT_DESC);
13361
      if (this.username != null) {
13362
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13363
        oprot.writeString(this.username);
13364
        oprot.writeFieldEnd();
13365
      }
13366
      if (this.password != null) {
13367
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13368
        oprot.writeString(this.password);
13369
        oprot.writeFieldEnd();
13370
      }
13371
      oprot.writeFieldStop();
13372
      oprot.writeStructEnd();
13373
    }
13374
 
13375
    @Override
13376
    public String toString() {
13377
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13378
      boolean first = true;
13379
 
13380
      sb.append("username:");
13381
      if (this.username == null) {
13382
        sb.append("null");
13383
      } else {
13384
        sb.append(this.username);
13385
      }
13386
      first = false;
13387
      if (!first) sb.append(", ");
13388
      sb.append("password:");
13389
      if (this.password == null) {
13390
        sb.append("null");
13391
      } else {
13392
        sb.append(this.password);
13393
      }
13394
      first = false;
13395
      sb.append(")");
13396
      return sb.toString();
13397
    }
13398
 
3430 rajveer 13399
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13400
      // check for required fields
13401
    }
13402
 
3430 rajveer 13403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13404
      try {
13405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13406
      } catch (org.apache.thrift.TException te) {
13407
        throw new java.io.IOException(te);
13408
      }
13409
    }
13410
 
13411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13412
      try {
13413
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13414
      } catch (org.apache.thrift.TException te) {
13415
        throw new java.io.IOException(te);
13416
      }
13417
    }
13418
 
1611 ankur.sing 13419
  }
13420
 
3430 rajveer 13421
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13423
 
3430 rajveer 13424
    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);
13425
    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 13426
 
3430 rajveer 13427
    private StatisticsUser success; // required
13428
    private HelperServiceException hse; // required
1611 ankur.sing 13429
 
13430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13431
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13432
      SUCCESS((short)0, "success"),
13433
      HSE((short)1, "hse");
13434
 
13435
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13436
 
13437
      static {
13438
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13439
          byName.put(field.getFieldName(), field);
13440
        }
13441
      }
13442
 
13443
      /**
13444
       * Find the _Fields constant that matches fieldId, or null if its not found.
13445
       */
13446
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13447
        switch(fieldId) {
13448
          case 0: // SUCCESS
13449
            return SUCCESS;
13450
          case 1: // HSE
13451
            return HSE;
13452
          default:
13453
            return null;
13454
        }
1611 ankur.sing 13455
      }
13456
 
13457
      /**
13458
       * Find the _Fields constant that matches fieldId, throwing an exception
13459
       * if it is not found.
13460
       */
13461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13462
        _Fields fields = findByThriftId(fieldId);
13463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13464
        return fields;
13465
      }
13466
 
13467
      /**
13468
       * Find the _Fields constant that matches name, or null if its not found.
13469
       */
13470
      public static _Fields findByName(String name) {
13471
        return byName.get(name);
13472
      }
13473
 
13474
      private final short _thriftId;
13475
      private final String _fieldName;
13476
 
13477
      _Fields(short thriftId, String fieldName) {
13478
        _thriftId = thriftId;
13479
        _fieldName = fieldName;
13480
      }
13481
 
13482
      public short getThriftFieldId() {
13483
        return _thriftId;
13484
      }
13485
 
13486
      public String getFieldName() {
13487
        return _fieldName;
13488
      }
13489
    }
13490
 
13491
    // isset id assignments
13492
 
3430 rajveer 13493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13494
    static {
3430 rajveer 13495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13496
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13497
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13498
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13502
    }
13503
 
13504
    public authenticateStatisticsUser_result() {
13505
    }
13506
 
13507
    public authenticateStatisticsUser_result(
13508
      StatisticsUser success,
13509
      HelperServiceException hse)
13510
    {
13511
      this();
13512
      this.success = success;
13513
      this.hse = hse;
13514
    }
13515
 
13516
    /**
13517
     * Performs a deep copy on <i>other</i>.
13518
     */
13519
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13520
      if (other.isSetSuccess()) {
13521
        this.success = new StatisticsUser(other.success);
13522
      }
13523
      if (other.isSetHse()) {
13524
        this.hse = new HelperServiceException(other.hse);
13525
      }
13526
    }
13527
 
13528
    public authenticateStatisticsUser_result deepCopy() {
13529
      return new authenticateStatisticsUser_result(this);
13530
    }
13531
 
3430 rajveer 13532
    @Override
13533
    public void clear() {
13534
      this.success = null;
13535
      this.hse = null;
1611 ankur.sing 13536
    }
13537
 
13538
    public StatisticsUser getSuccess() {
13539
      return this.success;
13540
    }
13541
 
3430 rajveer 13542
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13543
      this.success = success;
13544
    }
13545
 
13546
    public void unsetSuccess() {
13547
      this.success = null;
13548
    }
13549
 
3430 rajveer 13550
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13551
    public boolean isSetSuccess() {
13552
      return this.success != null;
13553
    }
13554
 
13555
    public void setSuccessIsSet(boolean value) {
13556
      if (!value) {
13557
        this.success = null;
13558
      }
13559
    }
13560
 
13561
    public HelperServiceException getHse() {
13562
      return this.hse;
13563
    }
13564
 
3430 rajveer 13565
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13566
      this.hse = hse;
13567
    }
13568
 
13569
    public void unsetHse() {
13570
      this.hse = null;
13571
    }
13572
 
3430 rajveer 13573
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13574
    public boolean isSetHse() {
13575
      return this.hse != null;
13576
    }
13577
 
13578
    public void setHseIsSet(boolean value) {
13579
      if (!value) {
13580
        this.hse = null;
13581
      }
13582
    }
13583
 
13584
    public void setFieldValue(_Fields field, Object value) {
13585
      switch (field) {
13586
      case SUCCESS:
13587
        if (value == null) {
13588
          unsetSuccess();
13589
        } else {
13590
          setSuccess((StatisticsUser)value);
13591
        }
13592
        break;
13593
 
13594
      case HSE:
13595
        if (value == null) {
13596
          unsetHse();
13597
        } else {
13598
          setHse((HelperServiceException)value);
13599
        }
13600
        break;
13601
 
13602
      }
13603
    }
13604
 
13605
    public Object getFieldValue(_Fields field) {
13606
      switch (field) {
13607
      case SUCCESS:
13608
        return getSuccess();
13609
 
13610
      case HSE:
13611
        return getHse();
13612
 
13613
      }
13614
      throw new IllegalStateException();
13615
    }
13616
 
3430 rajveer 13617
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13618
    public boolean isSet(_Fields field) {
13619
      if (field == null) {
13620
        throw new IllegalArgumentException();
13621
      }
1611 ankur.sing 13622
 
13623
      switch (field) {
13624
      case SUCCESS:
13625
        return isSetSuccess();
13626
      case HSE:
13627
        return isSetHse();
13628
      }
13629
      throw new IllegalStateException();
13630
    }
13631
 
13632
    @Override
13633
    public boolean equals(Object that) {
13634
      if (that == null)
13635
        return false;
13636
      if (that instanceof authenticateStatisticsUser_result)
13637
        return this.equals((authenticateStatisticsUser_result)that);
13638
      return false;
13639
    }
13640
 
13641
    public boolean equals(authenticateStatisticsUser_result that) {
13642
      if (that == null)
13643
        return false;
13644
 
13645
      boolean this_present_success = true && this.isSetSuccess();
13646
      boolean that_present_success = true && that.isSetSuccess();
13647
      if (this_present_success || that_present_success) {
13648
        if (!(this_present_success && that_present_success))
13649
          return false;
13650
        if (!this.success.equals(that.success))
13651
          return false;
13652
      }
13653
 
13654
      boolean this_present_hse = true && this.isSetHse();
13655
      boolean that_present_hse = true && that.isSetHse();
13656
      if (this_present_hse || that_present_hse) {
13657
        if (!(this_present_hse && that_present_hse))
13658
          return false;
13659
        if (!this.hse.equals(that.hse))
13660
          return false;
13661
      }
13662
 
13663
      return true;
13664
    }
13665
 
13666
    @Override
13667
    public int hashCode() {
13668
      return 0;
13669
    }
13670
 
13671
    public int compareTo(authenticateStatisticsUser_result other) {
13672
      if (!getClass().equals(other.getClass())) {
13673
        return getClass().getName().compareTo(other.getClass().getName());
13674
      }
13675
 
13676
      int lastComparison = 0;
13677
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13678
 
3430 rajveer 13679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13680
      if (lastComparison != 0) {
13681
        return lastComparison;
13682
      }
3430 rajveer 13683
      if (isSetSuccess()) {
13684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13685
        if (lastComparison != 0) {
13686
          return lastComparison;
13687
        }
1611 ankur.sing 13688
      }
3430 rajveer 13689
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13690
      if (lastComparison != 0) {
13691
        return lastComparison;
13692
      }
3430 rajveer 13693
      if (isSetHse()) {
13694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13695
        if (lastComparison != 0) {
13696
          return lastComparison;
13697
        }
1611 ankur.sing 13698
      }
13699
      return 0;
13700
    }
13701
 
3430 rajveer 13702
    public _Fields fieldForId(int fieldId) {
13703
      return _Fields.findByThriftId(fieldId);
13704
    }
13705
 
13706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13707
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13708
      iprot.readStructBegin();
13709
      while (true)
13710
      {
13711
        field = iprot.readFieldBegin();
3430 rajveer 13712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13713
          break;
13714
        }
3430 rajveer 13715
        switch (field.id) {
13716
          case 0: // SUCCESS
13717
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13718
              this.success = new StatisticsUser();
13719
              this.success.read(iprot);
13720
            } else { 
13721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13722
            }
13723
            break;
13724
          case 1: // HSE
13725
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13726
              this.hse = new HelperServiceException();
13727
              this.hse.read(iprot);
13728
            } else { 
13729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13730
            }
13731
            break;
13732
          default:
13733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13734
        }
3430 rajveer 13735
        iprot.readFieldEnd();
1611 ankur.sing 13736
      }
13737
      iprot.readStructEnd();
13738
      validate();
13739
    }
13740
 
3430 rajveer 13741
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13742
      oprot.writeStructBegin(STRUCT_DESC);
13743
 
13744
      if (this.isSetSuccess()) {
13745
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13746
        this.success.write(oprot);
13747
        oprot.writeFieldEnd();
13748
      } else if (this.isSetHse()) {
13749
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13750
        this.hse.write(oprot);
13751
        oprot.writeFieldEnd();
13752
      }
13753
      oprot.writeFieldStop();
13754
      oprot.writeStructEnd();
13755
    }
13756
 
13757
    @Override
13758
    public String toString() {
13759
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13760
      boolean first = true;
13761
 
13762
      sb.append("success:");
13763
      if (this.success == null) {
13764
        sb.append("null");
13765
      } else {
13766
        sb.append(this.success);
13767
      }
13768
      first = false;
13769
      if (!first) sb.append(", ");
13770
      sb.append("hse:");
13771
      if (this.hse == null) {
13772
        sb.append("null");
13773
      } else {
13774
        sb.append(this.hse);
13775
      }
13776
      first = false;
13777
      sb.append(")");
13778
      return sb.toString();
13779
    }
13780
 
3430 rajveer 13781
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13782
      // check for required fields
13783
    }
13784
 
3430 rajveer 13785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13786
      try {
13787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13788
      } catch (org.apache.thrift.TException te) {
13789
        throw new java.io.IOException(te);
13790
      }
13791
    }
13792
 
13793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13794
      try {
13795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13796
      } catch (org.apache.thrift.TException te) {
13797
        throw new java.io.IOException(te);
13798
      }
13799
    }
13800
 
1611 ankur.sing 13801
  }
13802
 
3430 rajveer 13803
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13805
 
3430 rajveer 13806
    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);
13807
    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 13808
 
3430 rajveer 13809
    private String username; // required
13810
    private String password; // required
1891 ankur.sing 13811
 
13812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13814
      USERNAME((short)1, "username"),
13815
      PASSWORD((short)2, "password");
13816
 
13817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13818
 
13819
      static {
13820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13821
          byName.put(field.getFieldName(), field);
13822
        }
13823
      }
13824
 
13825
      /**
13826
       * Find the _Fields constant that matches fieldId, or null if its not found.
13827
       */
13828
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13829
        switch(fieldId) {
13830
          case 1: // USERNAME
13831
            return USERNAME;
13832
          case 2: // PASSWORD
13833
            return PASSWORD;
13834
          default:
13835
            return null;
13836
        }
1891 ankur.sing 13837
      }
13838
 
13839
      /**
13840
       * Find the _Fields constant that matches fieldId, throwing an exception
13841
       * if it is not found.
13842
       */
13843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13844
        _Fields fields = findByThriftId(fieldId);
13845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13846
        return fields;
13847
      }
13848
 
13849
      /**
13850
       * Find the _Fields constant that matches name, or null if its not found.
13851
       */
13852
      public static _Fields findByName(String name) {
13853
        return byName.get(name);
13854
      }
13855
 
13856
      private final short _thriftId;
13857
      private final String _fieldName;
13858
 
13859
      _Fields(short thriftId, String fieldName) {
13860
        _thriftId = thriftId;
13861
        _fieldName = fieldName;
13862
      }
13863
 
13864
      public short getThriftFieldId() {
13865
        return _thriftId;
13866
      }
13867
 
13868
      public String getFieldName() {
13869
        return _fieldName;
13870
      }
13871
    }
13872
 
13873
    // isset id assignments
13874
 
3430 rajveer 13875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13876
    static {
3430 rajveer 13877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13878
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13880
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13884
    }
13885
 
13886
    public authenticateReportUser_args() {
13887
    }
13888
 
13889
    public authenticateReportUser_args(
13890
      String username,
13891
      String password)
13892
    {
13893
      this();
13894
      this.username = username;
13895
      this.password = password;
13896
    }
13897
 
13898
    /**
13899
     * Performs a deep copy on <i>other</i>.
13900
     */
13901
    public authenticateReportUser_args(authenticateReportUser_args other) {
13902
      if (other.isSetUsername()) {
13903
        this.username = other.username;
13904
      }
13905
      if (other.isSetPassword()) {
13906
        this.password = other.password;
13907
      }
13908
    }
13909
 
13910
    public authenticateReportUser_args deepCopy() {
13911
      return new authenticateReportUser_args(this);
13912
    }
13913
 
3430 rajveer 13914
    @Override
13915
    public void clear() {
13916
      this.username = null;
13917
      this.password = null;
1891 ankur.sing 13918
    }
13919
 
13920
    public String getUsername() {
13921
      return this.username;
13922
    }
13923
 
3430 rajveer 13924
    public void setUsername(String username) {
1891 ankur.sing 13925
      this.username = username;
13926
    }
13927
 
13928
    public void unsetUsername() {
13929
      this.username = null;
13930
    }
13931
 
3430 rajveer 13932
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13933
    public boolean isSetUsername() {
13934
      return this.username != null;
13935
    }
13936
 
13937
    public void setUsernameIsSet(boolean value) {
13938
      if (!value) {
13939
        this.username = null;
13940
      }
13941
    }
13942
 
13943
    public String getPassword() {
13944
      return this.password;
13945
    }
13946
 
3430 rajveer 13947
    public void setPassword(String password) {
1891 ankur.sing 13948
      this.password = password;
13949
    }
13950
 
13951
    public void unsetPassword() {
13952
      this.password = null;
13953
    }
13954
 
3430 rajveer 13955
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13956
    public boolean isSetPassword() {
13957
      return this.password != null;
13958
    }
13959
 
13960
    public void setPasswordIsSet(boolean value) {
13961
      if (!value) {
13962
        this.password = null;
13963
      }
13964
    }
13965
 
13966
    public void setFieldValue(_Fields field, Object value) {
13967
      switch (field) {
13968
      case USERNAME:
13969
        if (value == null) {
13970
          unsetUsername();
13971
        } else {
13972
          setUsername((String)value);
13973
        }
13974
        break;
13975
 
13976
      case PASSWORD:
13977
        if (value == null) {
13978
          unsetPassword();
13979
        } else {
13980
          setPassword((String)value);
13981
        }
13982
        break;
13983
 
13984
      }
13985
    }
13986
 
13987
    public Object getFieldValue(_Fields field) {
13988
      switch (field) {
13989
      case USERNAME:
13990
        return getUsername();
13991
 
13992
      case PASSWORD:
13993
        return getPassword();
13994
 
13995
      }
13996
      throw new IllegalStateException();
13997
    }
13998
 
3430 rajveer 13999
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14000
    public boolean isSet(_Fields field) {
14001
      if (field == null) {
14002
        throw new IllegalArgumentException();
14003
      }
1891 ankur.sing 14004
 
14005
      switch (field) {
14006
      case USERNAME:
14007
        return isSetUsername();
14008
      case PASSWORD:
14009
        return isSetPassword();
14010
      }
14011
      throw new IllegalStateException();
14012
    }
14013
 
14014
    @Override
14015
    public boolean equals(Object that) {
14016
      if (that == null)
14017
        return false;
14018
      if (that instanceof authenticateReportUser_args)
14019
        return this.equals((authenticateReportUser_args)that);
14020
      return false;
14021
    }
14022
 
14023
    public boolean equals(authenticateReportUser_args that) {
14024
      if (that == null)
14025
        return false;
14026
 
14027
      boolean this_present_username = true && this.isSetUsername();
14028
      boolean that_present_username = true && that.isSetUsername();
14029
      if (this_present_username || that_present_username) {
14030
        if (!(this_present_username && that_present_username))
14031
          return false;
14032
        if (!this.username.equals(that.username))
14033
          return false;
14034
      }
14035
 
14036
      boolean this_present_password = true && this.isSetPassword();
14037
      boolean that_present_password = true && that.isSetPassword();
14038
      if (this_present_password || that_present_password) {
14039
        if (!(this_present_password && that_present_password))
14040
          return false;
14041
        if (!this.password.equals(that.password))
14042
          return false;
14043
      }
14044
 
14045
      return true;
14046
    }
14047
 
14048
    @Override
14049
    public int hashCode() {
14050
      return 0;
14051
    }
14052
 
14053
    public int compareTo(authenticateReportUser_args other) {
14054
      if (!getClass().equals(other.getClass())) {
14055
        return getClass().getName().compareTo(other.getClass().getName());
14056
      }
14057
 
14058
      int lastComparison = 0;
14059
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
14060
 
3430 rajveer 14061
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 14062
      if (lastComparison != 0) {
14063
        return lastComparison;
14064
      }
3430 rajveer 14065
      if (isSetUsername()) {
14066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14067
        if (lastComparison != 0) {
14068
          return lastComparison;
14069
        }
1891 ankur.sing 14070
      }
3430 rajveer 14071
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 14072
      if (lastComparison != 0) {
14073
        return lastComparison;
14074
      }
3430 rajveer 14075
      if (isSetPassword()) {
14076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14077
        if (lastComparison != 0) {
14078
          return lastComparison;
14079
        }
1891 ankur.sing 14080
      }
14081
      return 0;
14082
    }
14083
 
3430 rajveer 14084
    public _Fields fieldForId(int fieldId) {
14085
      return _Fields.findByThriftId(fieldId);
14086
    }
14087
 
14088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14089
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14090
      iprot.readStructBegin();
14091
      while (true)
14092
      {
14093
        field = iprot.readFieldBegin();
3430 rajveer 14094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14095
          break;
14096
        }
3430 rajveer 14097
        switch (field.id) {
14098
          case 1: // USERNAME
14099
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14100
              this.username = iprot.readString();
14101
            } else { 
14102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14103
            }
14104
            break;
14105
          case 2: // PASSWORD
14106
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14107
              this.password = iprot.readString();
14108
            } else { 
14109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14110
            }
14111
            break;
14112
          default:
14113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14114
        }
3430 rajveer 14115
        iprot.readFieldEnd();
1891 ankur.sing 14116
      }
14117
      iprot.readStructEnd();
14118
      validate();
14119
    }
14120
 
3430 rajveer 14121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14122
      validate();
14123
 
14124
      oprot.writeStructBegin(STRUCT_DESC);
14125
      if (this.username != null) {
14126
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14127
        oprot.writeString(this.username);
14128
        oprot.writeFieldEnd();
14129
      }
14130
      if (this.password != null) {
14131
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14132
        oprot.writeString(this.password);
14133
        oprot.writeFieldEnd();
14134
      }
14135
      oprot.writeFieldStop();
14136
      oprot.writeStructEnd();
14137
    }
14138
 
14139
    @Override
14140
    public String toString() {
14141
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14142
      boolean first = true;
14143
 
14144
      sb.append("username:");
14145
      if (this.username == null) {
14146
        sb.append("null");
14147
      } else {
14148
        sb.append(this.username);
14149
      }
14150
      first = false;
14151
      if (!first) sb.append(", ");
14152
      sb.append("password:");
14153
      if (this.password == null) {
14154
        sb.append("null");
14155
      } else {
14156
        sb.append(this.password);
14157
      }
14158
      first = false;
14159
      sb.append(")");
14160
      return sb.toString();
14161
    }
14162
 
3430 rajveer 14163
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14164
      // check for required fields
14165
    }
14166
 
3430 rajveer 14167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14168
      try {
14169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14170
      } catch (org.apache.thrift.TException te) {
14171
        throw new java.io.IOException(te);
14172
      }
14173
    }
14174
 
14175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14176
      try {
14177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14178
      } catch (org.apache.thrift.TException te) {
14179
        throw new java.io.IOException(te);
14180
      }
14181
    }
14182
 
1891 ankur.sing 14183
  }
14184
 
3430 rajveer 14185
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14187
 
3430 rajveer 14188
    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);
14189
    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 14190
 
3430 rajveer 14191
    private ReportUser success; // required
14192
    private HelperServiceException hse; // required
1891 ankur.sing 14193
 
14194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14196
      SUCCESS((short)0, "success"),
14197
      HSE((short)1, "hse");
14198
 
14199
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14200
 
14201
      static {
14202
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14203
          byName.put(field.getFieldName(), field);
14204
        }
14205
      }
14206
 
14207
      /**
14208
       * Find the _Fields constant that matches fieldId, or null if its not found.
14209
       */
14210
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14211
        switch(fieldId) {
14212
          case 0: // SUCCESS
14213
            return SUCCESS;
14214
          case 1: // HSE
14215
            return HSE;
14216
          default:
14217
            return null;
14218
        }
1891 ankur.sing 14219
      }
14220
 
14221
      /**
14222
       * Find the _Fields constant that matches fieldId, throwing an exception
14223
       * if it is not found.
14224
       */
14225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14226
        _Fields fields = findByThriftId(fieldId);
14227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14228
        return fields;
14229
      }
14230
 
14231
      /**
14232
       * Find the _Fields constant that matches name, or null if its not found.
14233
       */
14234
      public static _Fields findByName(String name) {
14235
        return byName.get(name);
14236
      }
14237
 
14238
      private final short _thriftId;
14239
      private final String _fieldName;
14240
 
14241
      _Fields(short thriftId, String fieldName) {
14242
        _thriftId = thriftId;
14243
        _fieldName = fieldName;
14244
      }
14245
 
14246
      public short getThriftFieldId() {
14247
        return _thriftId;
14248
      }
14249
 
14250
      public String getFieldName() {
14251
        return _fieldName;
14252
      }
14253
    }
14254
 
14255
    // isset id assignments
14256
 
3430 rajveer 14257
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14258
    static {
3430 rajveer 14259
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14260
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14261
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14262
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14266
    }
14267
 
14268
    public authenticateReportUser_result() {
14269
    }
14270
 
14271
    public authenticateReportUser_result(
14272
      ReportUser success,
14273
      HelperServiceException hse)
14274
    {
14275
      this();
14276
      this.success = success;
14277
      this.hse = hse;
14278
    }
14279
 
14280
    /**
14281
     * Performs a deep copy on <i>other</i>.
14282
     */
14283
    public authenticateReportUser_result(authenticateReportUser_result other) {
14284
      if (other.isSetSuccess()) {
14285
        this.success = new ReportUser(other.success);
14286
      }
14287
      if (other.isSetHse()) {
14288
        this.hse = new HelperServiceException(other.hse);
14289
      }
14290
    }
14291
 
14292
    public authenticateReportUser_result deepCopy() {
14293
      return new authenticateReportUser_result(this);
14294
    }
14295
 
3430 rajveer 14296
    @Override
14297
    public void clear() {
14298
      this.success = null;
14299
      this.hse = null;
1891 ankur.sing 14300
    }
14301
 
14302
    public ReportUser getSuccess() {
14303
      return this.success;
14304
    }
14305
 
3430 rajveer 14306
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14307
      this.success = success;
14308
    }
14309
 
14310
    public void unsetSuccess() {
14311
      this.success = null;
14312
    }
14313
 
3430 rajveer 14314
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14315
    public boolean isSetSuccess() {
14316
      return this.success != null;
14317
    }
14318
 
14319
    public void setSuccessIsSet(boolean value) {
14320
      if (!value) {
14321
        this.success = null;
14322
      }
14323
    }
14324
 
14325
    public HelperServiceException getHse() {
14326
      return this.hse;
14327
    }
14328
 
3430 rajveer 14329
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14330
      this.hse = hse;
14331
    }
14332
 
14333
    public void unsetHse() {
14334
      this.hse = null;
14335
    }
14336
 
3430 rajveer 14337
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14338
    public boolean isSetHse() {
14339
      return this.hse != null;
14340
    }
14341
 
14342
    public void setHseIsSet(boolean value) {
14343
      if (!value) {
14344
        this.hse = null;
14345
      }
14346
    }
14347
 
14348
    public void setFieldValue(_Fields field, Object value) {
14349
      switch (field) {
14350
      case SUCCESS:
14351
        if (value == null) {
14352
          unsetSuccess();
14353
        } else {
14354
          setSuccess((ReportUser)value);
14355
        }
14356
        break;
14357
 
14358
      case HSE:
14359
        if (value == null) {
14360
          unsetHse();
14361
        } else {
14362
          setHse((HelperServiceException)value);
14363
        }
14364
        break;
14365
 
14366
      }
14367
    }
14368
 
14369
    public Object getFieldValue(_Fields field) {
14370
      switch (field) {
14371
      case SUCCESS:
14372
        return getSuccess();
14373
 
14374
      case HSE:
14375
        return getHse();
14376
 
14377
      }
14378
      throw new IllegalStateException();
14379
    }
14380
 
3430 rajveer 14381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14382
    public boolean isSet(_Fields field) {
14383
      if (field == null) {
14384
        throw new IllegalArgumentException();
14385
      }
1891 ankur.sing 14386
 
14387
      switch (field) {
14388
      case SUCCESS:
14389
        return isSetSuccess();
14390
      case HSE:
14391
        return isSetHse();
14392
      }
14393
      throw new IllegalStateException();
14394
    }
14395
 
14396
    @Override
14397
    public boolean equals(Object that) {
14398
      if (that == null)
14399
        return false;
14400
      if (that instanceof authenticateReportUser_result)
14401
        return this.equals((authenticateReportUser_result)that);
14402
      return false;
14403
    }
14404
 
14405
    public boolean equals(authenticateReportUser_result that) {
14406
      if (that == null)
14407
        return false;
14408
 
14409
      boolean this_present_success = true && this.isSetSuccess();
14410
      boolean that_present_success = true && that.isSetSuccess();
14411
      if (this_present_success || that_present_success) {
14412
        if (!(this_present_success && that_present_success))
14413
          return false;
14414
        if (!this.success.equals(that.success))
14415
          return false;
14416
      }
14417
 
14418
      boolean this_present_hse = true && this.isSetHse();
14419
      boolean that_present_hse = true && that.isSetHse();
14420
      if (this_present_hse || that_present_hse) {
14421
        if (!(this_present_hse && that_present_hse))
14422
          return false;
14423
        if (!this.hse.equals(that.hse))
14424
          return false;
14425
      }
14426
 
14427
      return true;
14428
    }
14429
 
14430
    @Override
14431
    public int hashCode() {
14432
      return 0;
14433
    }
14434
 
14435
    public int compareTo(authenticateReportUser_result other) {
14436
      if (!getClass().equals(other.getClass())) {
14437
        return getClass().getName().compareTo(other.getClass().getName());
14438
      }
14439
 
14440
      int lastComparison = 0;
14441
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14442
 
3430 rajveer 14443
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14444
      if (lastComparison != 0) {
14445
        return lastComparison;
14446
      }
3430 rajveer 14447
      if (isSetSuccess()) {
14448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14449
        if (lastComparison != 0) {
14450
          return lastComparison;
14451
        }
1891 ankur.sing 14452
      }
3430 rajveer 14453
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14454
      if (lastComparison != 0) {
14455
        return lastComparison;
14456
      }
3430 rajveer 14457
      if (isSetHse()) {
14458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14459
        if (lastComparison != 0) {
14460
          return lastComparison;
14461
        }
1891 ankur.sing 14462
      }
14463
      return 0;
14464
    }
14465
 
3430 rajveer 14466
    public _Fields fieldForId(int fieldId) {
14467
      return _Fields.findByThriftId(fieldId);
14468
    }
14469
 
14470
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14471
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14472
      iprot.readStructBegin();
14473
      while (true)
14474
      {
14475
        field = iprot.readFieldBegin();
3430 rajveer 14476
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14477
          break;
14478
        }
3430 rajveer 14479
        switch (field.id) {
14480
          case 0: // SUCCESS
14481
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14482
              this.success = new ReportUser();
14483
              this.success.read(iprot);
14484
            } else { 
14485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14486
            }
14487
            break;
14488
          case 1: // HSE
14489
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14490
              this.hse = new HelperServiceException();
14491
              this.hse.read(iprot);
14492
            } else { 
14493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14494
            }
14495
            break;
14496
          default:
14497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14498
        }
3430 rajveer 14499
        iprot.readFieldEnd();
1891 ankur.sing 14500
      }
14501
      iprot.readStructEnd();
14502
      validate();
14503
    }
14504
 
3430 rajveer 14505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14506
      oprot.writeStructBegin(STRUCT_DESC);
14507
 
14508
      if (this.isSetSuccess()) {
14509
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14510
        this.success.write(oprot);
14511
        oprot.writeFieldEnd();
14512
      } else if (this.isSetHse()) {
14513
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14514
        this.hse.write(oprot);
14515
        oprot.writeFieldEnd();
14516
      }
14517
      oprot.writeFieldStop();
14518
      oprot.writeStructEnd();
14519
    }
14520
 
14521
    @Override
14522
    public String toString() {
14523
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14524
      boolean first = true;
14525
 
14526
      sb.append("success:");
14527
      if (this.success == null) {
14528
        sb.append("null");
14529
      } else {
14530
        sb.append(this.success);
14531
      }
14532
      first = false;
14533
      if (!first) sb.append(", ");
14534
      sb.append("hse:");
14535
      if (this.hse == null) {
14536
        sb.append("null");
14537
      } else {
14538
        sb.append(this.hse);
14539
      }
14540
      first = false;
14541
      sb.append(")");
14542
      return sb.toString();
14543
    }
14544
 
3430 rajveer 14545
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14546
      // check for required fields
14547
    }
14548
 
3430 rajveer 14549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14550
      try {
14551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14552
      } catch (org.apache.thrift.TException te) {
14553
        throw new java.io.IOException(te);
14554
      }
14555
    }
14556
 
14557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14558
      try {
14559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14560
      } catch (org.apache.thrift.TException te) {
14561
        throw new java.io.IOException(te);
14562
      }
14563
    }
14564
 
1891 ankur.sing 14565
  }
14566
 
3430 rajveer 14567
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14569
 
3430 rajveer 14570
    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 14571
 
3430 rajveer 14572
    private long role; // required
1891 ankur.sing 14573
 
14574
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14575
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14576
      ROLE((short)1, "role");
14577
 
14578
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14579
 
14580
      static {
14581
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14582
          byName.put(field.getFieldName(), field);
14583
        }
14584
      }
14585
 
14586
      /**
14587
       * Find the _Fields constant that matches fieldId, or null if its not found.
14588
       */
14589
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14590
        switch(fieldId) {
14591
          case 1: // ROLE
14592
            return ROLE;
14593
          default:
14594
            return null;
14595
        }
1891 ankur.sing 14596
      }
14597
 
14598
      /**
14599
       * Find the _Fields constant that matches fieldId, throwing an exception
14600
       * if it is not found.
14601
       */
14602
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14603
        _Fields fields = findByThriftId(fieldId);
14604
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14605
        return fields;
14606
      }
14607
 
14608
      /**
14609
       * Find the _Fields constant that matches name, or null if its not found.
14610
       */
14611
      public static _Fields findByName(String name) {
14612
        return byName.get(name);
14613
      }
14614
 
14615
      private final short _thriftId;
14616
      private final String _fieldName;
14617
 
14618
      _Fields(short thriftId, String fieldName) {
14619
        _thriftId = thriftId;
14620
        _fieldName = fieldName;
14621
      }
14622
 
14623
      public short getThriftFieldId() {
14624
        return _thriftId;
14625
      }
14626
 
14627
      public String getFieldName() {
14628
        return _fieldName;
14629
      }
14630
    }
14631
 
14632
    // isset id assignments
14633
    private static final int __ROLE_ISSET_ID = 0;
14634
    private BitSet __isset_bit_vector = new BitSet(1);
14635
 
3430 rajveer 14636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14637
    static {
3430 rajveer 14638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14639
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14641
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14642
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14643
    }
14644
 
14645
    public getReports_args() {
14646
    }
14647
 
14648
    public getReports_args(
14649
      long role)
14650
    {
14651
      this();
14652
      this.role = role;
14653
      setRoleIsSet(true);
14654
    }
14655
 
14656
    /**
14657
     * Performs a deep copy on <i>other</i>.
14658
     */
14659
    public getReports_args(getReports_args other) {
14660
      __isset_bit_vector.clear();
14661
      __isset_bit_vector.or(other.__isset_bit_vector);
14662
      this.role = other.role;
14663
    }
14664
 
14665
    public getReports_args deepCopy() {
14666
      return new getReports_args(this);
14667
    }
14668
 
3430 rajveer 14669
    @Override
14670
    public void clear() {
14671
      setRoleIsSet(false);
14672
      this.role = 0;
1891 ankur.sing 14673
    }
14674
 
14675
    public long getRole() {
14676
      return this.role;
14677
    }
14678
 
3430 rajveer 14679
    public void setRole(long role) {
1891 ankur.sing 14680
      this.role = role;
14681
      setRoleIsSet(true);
14682
    }
14683
 
14684
    public void unsetRole() {
14685
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14686
    }
14687
 
3430 rajveer 14688
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14689
    public boolean isSetRole() {
14690
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14691
    }
14692
 
14693
    public void setRoleIsSet(boolean value) {
14694
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14695
    }
14696
 
14697
    public void setFieldValue(_Fields field, Object value) {
14698
      switch (field) {
14699
      case ROLE:
14700
        if (value == null) {
14701
          unsetRole();
14702
        } else {
14703
          setRole((Long)value);
14704
        }
14705
        break;
14706
 
14707
      }
14708
    }
14709
 
14710
    public Object getFieldValue(_Fields field) {
14711
      switch (field) {
14712
      case ROLE:
3430 rajveer 14713
        return Long.valueOf(getRole());
1891 ankur.sing 14714
 
14715
      }
14716
      throw new IllegalStateException();
14717
    }
14718
 
3430 rajveer 14719
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14720
    public boolean isSet(_Fields field) {
14721
      if (field == null) {
14722
        throw new IllegalArgumentException();
14723
      }
1891 ankur.sing 14724
 
14725
      switch (field) {
14726
      case ROLE:
14727
        return isSetRole();
14728
      }
14729
      throw new IllegalStateException();
14730
    }
14731
 
14732
    @Override
14733
    public boolean equals(Object that) {
14734
      if (that == null)
14735
        return false;
14736
      if (that instanceof getReports_args)
14737
        return this.equals((getReports_args)that);
14738
      return false;
14739
    }
14740
 
14741
    public boolean equals(getReports_args that) {
14742
      if (that == null)
14743
        return false;
14744
 
14745
      boolean this_present_role = true;
14746
      boolean that_present_role = true;
14747
      if (this_present_role || that_present_role) {
14748
        if (!(this_present_role && that_present_role))
14749
          return false;
14750
        if (this.role != that.role)
14751
          return false;
14752
      }
14753
 
14754
      return true;
14755
    }
14756
 
14757
    @Override
14758
    public int hashCode() {
14759
      return 0;
14760
    }
14761
 
14762
    public int compareTo(getReports_args other) {
14763
      if (!getClass().equals(other.getClass())) {
14764
        return getClass().getName().compareTo(other.getClass().getName());
14765
      }
14766
 
14767
      int lastComparison = 0;
14768
      getReports_args typedOther = (getReports_args)other;
14769
 
3430 rajveer 14770
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14771
      if (lastComparison != 0) {
14772
        return lastComparison;
14773
      }
3430 rajveer 14774
      if (isSetRole()) {
14775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14776
        if (lastComparison != 0) {
14777
          return lastComparison;
14778
        }
1891 ankur.sing 14779
      }
14780
      return 0;
14781
    }
14782
 
3430 rajveer 14783
    public _Fields fieldForId(int fieldId) {
14784
      return _Fields.findByThriftId(fieldId);
14785
    }
14786
 
14787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14788
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14789
      iprot.readStructBegin();
14790
      while (true)
14791
      {
14792
        field = iprot.readFieldBegin();
3430 rajveer 14793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14794
          break;
14795
        }
3430 rajveer 14796
        switch (field.id) {
14797
          case 1: // ROLE
14798
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14799
              this.role = iprot.readI64();
14800
              setRoleIsSet(true);
14801
            } else { 
14802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14803
            }
14804
            break;
14805
          default:
14806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14807
        }
3430 rajveer 14808
        iprot.readFieldEnd();
1891 ankur.sing 14809
      }
14810
      iprot.readStructEnd();
14811
      validate();
14812
    }
14813
 
3430 rajveer 14814
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14815
      validate();
14816
 
14817
      oprot.writeStructBegin(STRUCT_DESC);
14818
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14819
      oprot.writeI64(this.role);
14820
      oprot.writeFieldEnd();
14821
      oprot.writeFieldStop();
14822
      oprot.writeStructEnd();
14823
    }
14824
 
14825
    @Override
14826
    public String toString() {
14827
      StringBuilder sb = new StringBuilder("getReports_args(");
14828
      boolean first = true;
14829
 
14830
      sb.append("role:");
14831
      sb.append(this.role);
14832
      first = false;
14833
      sb.append(")");
14834
      return sb.toString();
14835
    }
14836
 
3430 rajveer 14837
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14838
      // check for required fields
14839
    }
14840
 
3430 rajveer 14841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14842
      try {
14843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14844
      } catch (org.apache.thrift.TException te) {
14845
        throw new java.io.IOException(te);
14846
      }
14847
    }
14848
 
14849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14850
      try {
14851
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14852
        __isset_bit_vector = new BitSet(1);
14853
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14854
      } catch (org.apache.thrift.TException te) {
14855
        throw new java.io.IOException(te);
14856
      }
14857
    }
14858
 
1891 ankur.sing 14859
  }
14860
 
3430 rajveer 14861
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14862
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14863
 
3430 rajveer 14864
    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 14865
 
3430 rajveer 14866
    private List<Report> success; // required
1891 ankur.sing 14867
 
14868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14870
      SUCCESS((short)0, "success");
14871
 
14872
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14873
 
14874
      static {
14875
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14876
          byName.put(field.getFieldName(), field);
14877
        }
14878
      }
14879
 
14880
      /**
14881
       * Find the _Fields constant that matches fieldId, or null if its not found.
14882
       */
14883
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14884
        switch(fieldId) {
14885
          case 0: // SUCCESS
14886
            return SUCCESS;
14887
          default:
14888
            return null;
14889
        }
1891 ankur.sing 14890
      }
14891
 
14892
      /**
14893
       * Find the _Fields constant that matches fieldId, throwing an exception
14894
       * if it is not found.
14895
       */
14896
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14897
        _Fields fields = findByThriftId(fieldId);
14898
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14899
        return fields;
14900
      }
14901
 
14902
      /**
14903
       * Find the _Fields constant that matches name, or null if its not found.
14904
       */
14905
      public static _Fields findByName(String name) {
14906
        return byName.get(name);
14907
      }
14908
 
14909
      private final short _thriftId;
14910
      private final String _fieldName;
14911
 
14912
      _Fields(short thriftId, String fieldName) {
14913
        _thriftId = thriftId;
14914
        _fieldName = fieldName;
14915
      }
14916
 
14917
      public short getThriftFieldId() {
14918
        return _thriftId;
14919
      }
14920
 
14921
      public String getFieldName() {
14922
        return _fieldName;
14923
      }
14924
    }
14925
 
14926
    // isset id assignments
14927
 
3430 rajveer 14928
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14929
    static {
3430 rajveer 14930
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14931
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14932
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14933
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14934
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14935
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14936
    }
14937
 
14938
    public getReports_result() {
14939
    }
14940
 
14941
    public getReports_result(
14942
      List<Report> success)
14943
    {
14944
      this();
14945
      this.success = success;
14946
    }
14947
 
14948
    /**
14949
     * Performs a deep copy on <i>other</i>.
14950
     */
14951
    public getReports_result(getReports_result other) {
14952
      if (other.isSetSuccess()) {
14953
        List<Report> __this__success = new ArrayList<Report>();
14954
        for (Report other_element : other.success) {
14955
          __this__success.add(new Report(other_element));
14956
        }
14957
        this.success = __this__success;
14958
      }
14959
    }
14960
 
14961
    public getReports_result deepCopy() {
14962
      return new getReports_result(this);
14963
    }
14964
 
3430 rajveer 14965
    @Override
14966
    public void clear() {
14967
      this.success = null;
1891 ankur.sing 14968
    }
14969
 
14970
    public int getSuccessSize() {
14971
      return (this.success == null) ? 0 : this.success.size();
14972
    }
14973
 
14974
    public java.util.Iterator<Report> getSuccessIterator() {
14975
      return (this.success == null) ? null : this.success.iterator();
14976
    }
14977
 
14978
    public void addToSuccess(Report elem) {
14979
      if (this.success == null) {
14980
        this.success = new ArrayList<Report>();
14981
      }
14982
      this.success.add(elem);
14983
    }
14984
 
14985
    public List<Report> getSuccess() {
14986
      return this.success;
14987
    }
14988
 
3430 rajveer 14989
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14990
      this.success = success;
14991
    }
14992
 
14993
    public void unsetSuccess() {
14994
      this.success = null;
14995
    }
14996
 
3430 rajveer 14997
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14998
    public boolean isSetSuccess() {
14999
      return this.success != null;
15000
    }
15001
 
15002
    public void setSuccessIsSet(boolean value) {
15003
      if (!value) {
15004
        this.success = null;
15005
      }
15006
    }
15007
 
15008
    public void setFieldValue(_Fields field, Object value) {
15009
      switch (field) {
15010
      case SUCCESS:
15011
        if (value == null) {
15012
          unsetSuccess();
15013
        } else {
15014
          setSuccess((List<Report>)value);
15015
        }
15016
        break;
15017
 
15018
      }
15019
    }
15020
 
15021
    public Object getFieldValue(_Fields field) {
15022
      switch (field) {
15023
      case SUCCESS:
15024
        return getSuccess();
15025
 
15026
      }
15027
      throw new IllegalStateException();
15028
    }
15029
 
3430 rajveer 15030
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15031
    public boolean isSet(_Fields field) {
15032
      if (field == null) {
15033
        throw new IllegalArgumentException();
15034
      }
1891 ankur.sing 15035
 
15036
      switch (field) {
15037
      case SUCCESS:
15038
        return isSetSuccess();
15039
      }
15040
      throw new IllegalStateException();
15041
    }
15042
 
15043
    @Override
15044
    public boolean equals(Object that) {
15045
      if (that == null)
15046
        return false;
15047
      if (that instanceof getReports_result)
15048
        return this.equals((getReports_result)that);
15049
      return false;
15050
    }
15051
 
15052
    public boolean equals(getReports_result that) {
15053
      if (that == null)
15054
        return false;
15055
 
15056
      boolean this_present_success = true && this.isSetSuccess();
15057
      boolean that_present_success = true && that.isSetSuccess();
15058
      if (this_present_success || that_present_success) {
15059
        if (!(this_present_success && that_present_success))
15060
          return false;
15061
        if (!this.success.equals(that.success))
15062
          return false;
15063
      }
15064
 
15065
      return true;
15066
    }
15067
 
15068
    @Override
15069
    public int hashCode() {
15070
      return 0;
15071
    }
15072
 
15073
    public int compareTo(getReports_result other) {
15074
      if (!getClass().equals(other.getClass())) {
15075
        return getClass().getName().compareTo(other.getClass().getName());
15076
      }
15077
 
15078
      int lastComparison = 0;
15079
      getReports_result typedOther = (getReports_result)other;
15080
 
3430 rajveer 15081
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15082
      if (lastComparison != 0) {
15083
        return lastComparison;
15084
      }
3430 rajveer 15085
      if (isSetSuccess()) {
15086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15087
        if (lastComparison != 0) {
15088
          return lastComparison;
15089
        }
1891 ankur.sing 15090
      }
15091
      return 0;
15092
    }
15093
 
3430 rajveer 15094
    public _Fields fieldForId(int fieldId) {
15095
      return _Fields.findByThriftId(fieldId);
15096
    }
15097
 
15098
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15099
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15100
      iprot.readStructBegin();
15101
      while (true)
15102
      {
15103
        field = iprot.readFieldBegin();
3430 rajveer 15104
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15105
          break;
15106
        }
3430 rajveer 15107
        switch (field.id) {
15108
          case 0: // SUCCESS
15109
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15110
              {
5864 rajveer 15111
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15112
                this.success = new ArrayList<Report>(_list41.size);
15113
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15114
                {
5864 rajveer 15115
                  Report _elem43; // required
15116
                  _elem43 = new Report();
15117
                  _elem43.read(iprot);
15118
                  this.success.add(_elem43);
1891 ankur.sing 15119
                }
3430 rajveer 15120
                iprot.readListEnd();
1891 ankur.sing 15121
              }
3430 rajveer 15122
            } else { 
15123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15124
            }
15125
            break;
15126
          default:
15127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15128
        }
3430 rajveer 15129
        iprot.readFieldEnd();
1891 ankur.sing 15130
      }
15131
      iprot.readStructEnd();
15132
      validate();
15133
    }
15134
 
3430 rajveer 15135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15136
      oprot.writeStructBegin(STRUCT_DESC);
15137
 
15138
      if (this.isSetSuccess()) {
15139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15140
        {
3430 rajveer 15141
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15142
          for (Report _iter44 : this.success)
1891 ankur.sing 15143
          {
5864 rajveer 15144
            _iter44.write(oprot);
1891 ankur.sing 15145
          }
15146
          oprot.writeListEnd();
15147
        }
15148
        oprot.writeFieldEnd();
15149
      }
15150
      oprot.writeFieldStop();
15151
      oprot.writeStructEnd();
15152
    }
15153
 
15154
    @Override
15155
    public String toString() {
15156
      StringBuilder sb = new StringBuilder("getReports_result(");
15157
      boolean first = true;
15158
 
15159
      sb.append("success:");
15160
      if (this.success == null) {
15161
        sb.append("null");
15162
      } else {
15163
        sb.append(this.success);
15164
      }
15165
      first = false;
15166
      sb.append(")");
15167
      return sb.toString();
15168
    }
15169
 
3430 rajveer 15170
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15171
      // check for required fields
15172
    }
15173
 
3430 rajveer 15174
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15175
      try {
15176
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15177
      } catch (org.apache.thrift.TException te) {
15178
        throw new java.io.IOException(te);
15179
      }
15180
    }
15181
 
15182
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15183
      try {
15184
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15185
      } catch (org.apache.thrift.TException te) {
15186
        throw new java.io.IOException(te);
15187
      }
15188
    }
15189
 
1891 ankur.sing 15190
  }
15191
 
3430 rajveer 15192
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15194
 
3430 rajveer 15195
    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);
15196
    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);
15197
    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 15198
 
3430 rajveer 15199
    private String username; // required
15200
    private String password; // required
15201
    private long role; // required
2024 ankur.sing 15202
 
15203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15205
      USERNAME((short)1, "username"),
2357 ankur.sing 15206
      PASSWORD((short)2, "password"),
15207
      ROLE((short)3, "role");
2024 ankur.sing 15208
 
15209
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15210
 
15211
      static {
15212
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15213
          byName.put(field.getFieldName(), field);
15214
        }
15215
      }
15216
 
15217
      /**
15218
       * Find the _Fields constant that matches fieldId, or null if its not found.
15219
       */
15220
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15221
        switch(fieldId) {
15222
          case 1: // USERNAME
15223
            return USERNAME;
15224
          case 2: // PASSWORD
15225
            return PASSWORD;
15226
          case 3: // ROLE
15227
            return ROLE;
15228
          default:
15229
            return null;
15230
        }
2024 ankur.sing 15231
      }
15232
 
15233
      /**
15234
       * Find the _Fields constant that matches fieldId, throwing an exception
15235
       * if it is not found.
15236
       */
15237
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15238
        _Fields fields = findByThriftId(fieldId);
15239
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15240
        return fields;
15241
      }
15242
 
15243
      /**
15244
       * Find the _Fields constant that matches name, or null if its not found.
15245
       */
15246
      public static _Fields findByName(String name) {
15247
        return byName.get(name);
15248
      }
15249
 
15250
      private final short _thriftId;
15251
      private final String _fieldName;
15252
 
15253
      _Fields(short thriftId, String fieldName) {
15254
        _thriftId = thriftId;
15255
        _fieldName = fieldName;
15256
      }
15257
 
15258
      public short getThriftFieldId() {
15259
        return _thriftId;
15260
      }
15261
 
15262
      public String getFieldName() {
15263
        return _fieldName;
15264
      }
15265
    }
15266
 
15267
    // isset id assignments
2357 ankur.sing 15268
    private static final int __ROLE_ISSET_ID = 0;
15269
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 15270
 
3430 rajveer 15271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15272
    static {
3430 rajveer 15273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15274
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15276
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15278
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15282
    }
15283
 
15284
    public authenticateCatalogUser_args() {
15285
    }
15286
 
15287
    public authenticateCatalogUser_args(
15288
      String username,
2357 ankur.sing 15289
      String password,
15290
      long role)
2024 ankur.sing 15291
    {
15292
      this();
15293
      this.username = username;
15294
      this.password = password;
2357 ankur.sing 15295
      this.role = role;
15296
      setRoleIsSet(true);
2024 ankur.sing 15297
    }
15298
 
15299
    /**
15300
     * Performs a deep copy on <i>other</i>.
15301
     */
15302
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 15303
      __isset_bit_vector.clear();
15304
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 15305
      if (other.isSetUsername()) {
15306
        this.username = other.username;
15307
      }
15308
      if (other.isSetPassword()) {
15309
        this.password = other.password;
15310
      }
2357 ankur.sing 15311
      this.role = other.role;
2024 ankur.sing 15312
    }
15313
 
15314
    public authenticateCatalogUser_args deepCopy() {
15315
      return new authenticateCatalogUser_args(this);
15316
    }
15317
 
3430 rajveer 15318
    @Override
15319
    public void clear() {
15320
      this.username = null;
15321
      this.password = null;
15322
      setRoleIsSet(false);
15323
      this.role = 0;
2024 ankur.sing 15324
    }
15325
 
15326
    public String getUsername() {
15327
      return this.username;
15328
    }
15329
 
3430 rajveer 15330
    public void setUsername(String username) {
2024 ankur.sing 15331
      this.username = username;
15332
    }
15333
 
15334
    public void unsetUsername() {
15335
      this.username = null;
15336
    }
15337
 
3430 rajveer 15338
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15339
    public boolean isSetUsername() {
15340
      return this.username != null;
15341
    }
15342
 
15343
    public void setUsernameIsSet(boolean value) {
15344
      if (!value) {
15345
        this.username = null;
15346
      }
15347
    }
15348
 
15349
    public String getPassword() {
15350
      return this.password;
15351
    }
15352
 
3430 rajveer 15353
    public void setPassword(String password) {
2024 ankur.sing 15354
      this.password = password;
15355
    }
15356
 
15357
    public void unsetPassword() {
15358
      this.password = null;
15359
    }
15360
 
3430 rajveer 15361
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15362
    public boolean isSetPassword() {
15363
      return this.password != null;
15364
    }
15365
 
15366
    public void setPasswordIsSet(boolean value) {
15367
      if (!value) {
15368
        this.password = null;
15369
      }
15370
    }
15371
 
2357 ankur.sing 15372
    public long getRole() {
15373
      return this.role;
15374
    }
15375
 
3430 rajveer 15376
    public void setRole(long role) {
2357 ankur.sing 15377
      this.role = role;
15378
      setRoleIsSet(true);
15379
    }
15380
 
15381
    public void unsetRole() {
15382
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
15383
    }
15384
 
3430 rajveer 15385
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 15386
    public boolean isSetRole() {
15387
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
15388
    }
15389
 
15390
    public void setRoleIsSet(boolean value) {
15391
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
15392
    }
15393
 
2024 ankur.sing 15394
    public void setFieldValue(_Fields field, Object value) {
15395
      switch (field) {
15396
      case USERNAME:
15397
        if (value == null) {
15398
          unsetUsername();
15399
        } else {
15400
          setUsername((String)value);
15401
        }
15402
        break;
15403
 
15404
      case PASSWORD:
15405
        if (value == null) {
15406
          unsetPassword();
15407
        } else {
15408
          setPassword((String)value);
15409
        }
15410
        break;
15411
 
2357 ankur.sing 15412
      case ROLE:
15413
        if (value == null) {
15414
          unsetRole();
15415
        } else {
15416
          setRole((Long)value);
15417
        }
15418
        break;
15419
 
2024 ankur.sing 15420
      }
15421
    }
15422
 
15423
    public Object getFieldValue(_Fields field) {
15424
      switch (field) {
15425
      case USERNAME:
15426
        return getUsername();
15427
 
15428
      case PASSWORD:
15429
        return getPassword();
15430
 
2357 ankur.sing 15431
      case ROLE:
3430 rajveer 15432
        return Long.valueOf(getRole());
2357 ankur.sing 15433
 
2024 ankur.sing 15434
      }
15435
      throw new IllegalStateException();
15436
    }
15437
 
3430 rajveer 15438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15439
    public boolean isSet(_Fields field) {
15440
      if (field == null) {
15441
        throw new IllegalArgumentException();
15442
      }
2024 ankur.sing 15443
 
15444
      switch (field) {
15445
      case USERNAME:
15446
        return isSetUsername();
15447
      case PASSWORD:
15448
        return isSetPassword();
2357 ankur.sing 15449
      case ROLE:
15450
        return isSetRole();
2024 ankur.sing 15451
      }
15452
      throw new IllegalStateException();
15453
    }
15454
 
15455
    @Override
15456
    public boolean equals(Object that) {
15457
      if (that == null)
15458
        return false;
15459
      if (that instanceof authenticateCatalogUser_args)
15460
        return this.equals((authenticateCatalogUser_args)that);
15461
      return false;
15462
    }
15463
 
15464
    public boolean equals(authenticateCatalogUser_args that) {
15465
      if (that == null)
15466
        return false;
15467
 
15468
      boolean this_present_username = true && this.isSetUsername();
15469
      boolean that_present_username = true && that.isSetUsername();
15470
      if (this_present_username || that_present_username) {
15471
        if (!(this_present_username && that_present_username))
15472
          return false;
15473
        if (!this.username.equals(that.username))
15474
          return false;
15475
      }
15476
 
15477
      boolean this_present_password = true && this.isSetPassword();
15478
      boolean that_present_password = true && that.isSetPassword();
15479
      if (this_present_password || that_present_password) {
15480
        if (!(this_present_password && that_present_password))
15481
          return false;
15482
        if (!this.password.equals(that.password))
15483
          return false;
15484
      }
15485
 
2357 ankur.sing 15486
      boolean this_present_role = true;
15487
      boolean that_present_role = true;
15488
      if (this_present_role || that_present_role) {
15489
        if (!(this_present_role && that_present_role))
15490
          return false;
15491
        if (this.role != that.role)
15492
          return false;
15493
      }
15494
 
2024 ankur.sing 15495
      return true;
15496
    }
15497
 
15498
    @Override
15499
    public int hashCode() {
15500
      return 0;
15501
    }
15502
 
15503
    public int compareTo(authenticateCatalogUser_args other) {
15504
      if (!getClass().equals(other.getClass())) {
15505
        return getClass().getName().compareTo(other.getClass().getName());
15506
      }
15507
 
15508
      int lastComparison = 0;
15509
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15510
 
3430 rajveer 15511
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15512
      if (lastComparison != 0) {
15513
        return lastComparison;
15514
      }
3430 rajveer 15515
      if (isSetUsername()) {
15516
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15517
        if (lastComparison != 0) {
15518
          return lastComparison;
15519
        }
2024 ankur.sing 15520
      }
3430 rajveer 15521
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15522
      if (lastComparison != 0) {
15523
        return lastComparison;
15524
      }
3430 rajveer 15525
      if (isSetPassword()) {
15526
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15527
        if (lastComparison != 0) {
15528
          return lastComparison;
15529
        }
2024 ankur.sing 15530
      }
3430 rajveer 15531
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 15532
      if (lastComparison != 0) {
15533
        return lastComparison;
15534
      }
3430 rajveer 15535
      if (isSetRole()) {
15536
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15537
        if (lastComparison != 0) {
15538
          return lastComparison;
15539
        }
2357 ankur.sing 15540
      }
2024 ankur.sing 15541
      return 0;
15542
    }
15543
 
3430 rajveer 15544
    public _Fields fieldForId(int fieldId) {
15545
      return _Fields.findByThriftId(fieldId);
15546
    }
15547
 
15548
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15549
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15550
      iprot.readStructBegin();
15551
      while (true)
15552
      {
15553
        field = iprot.readFieldBegin();
3430 rajveer 15554
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15555
          break;
15556
        }
3430 rajveer 15557
        switch (field.id) {
15558
          case 1: // USERNAME
15559
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15560
              this.username = iprot.readString();
15561
            } else { 
15562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15563
            }
15564
            break;
15565
          case 2: // PASSWORD
15566
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15567
              this.password = iprot.readString();
15568
            } else { 
15569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15570
            }
15571
            break;
15572
          case 3: // ROLE
15573
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15574
              this.role = iprot.readI64();
15575
              setRoleIsSet(true);
15576
            } else { 
15577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15578
            }
15579
            break;
15580
          default:
15581
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15582
        }
3430 rajveer 15583
        iprot.readFieldEnd();
2024 ankur.sing 15584
      }
15585
      iprot.readStructEnd();
15586
      validate();
15587
    }
15588
 
3430 rajveer 15589
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15590
      validate();
15591
 
15592
      oprot.writeStructBegin(STRUCT_DESC);
15593
      if (this.username != null) {
15594
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15595
        oprot.writeString(this.username);
15596
        oprot.writeFieldEnd();
15597
      }
15598
      if (this.password != null) {
15599
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15600
        oprot.writeString(this.password);
15601
        oprot.writeFieldEnd();
15602
      }
2357 ankur.sing 15603
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15604
      oprot.writeI64(this.role);
15605
      oprot.writeFieldEnd();
2024 ankur.sing 15606
      oprot.writeFieldStop();
15607
      oprot.writeStructEnd();
15608
    }
15609
 
15610
    @Override
15611
    public String toString() {
15612
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15613
      boolean first = true;
15614
 
15615
      sb.append("username:");
15616
      if (this.username == null) {
15617
        sb.append("null");
15618
      } else {
15619
        sb.append(this.username);
15620
      }
15621
      first = false;
15622
      if (!first) sb.append(", ");
15623
      sb.append("password:");
15624
      if (this.password == null) {
15625
        sb.append("null");
15626
      } else {
15627
        sb.append(this.password);
15628
      }
15629
      first = false;
2357 ankur.sing 15630
      if (!first) sb.append(", ");
15631
      sb.append("role:");
15632
      sb.append(this.role);
15633
      first = false;
2024 ankur.sing 15634
      sb.append(")");
15635
      return sb.toString();
15636
    }
15637
 
3430 rajveer 15638
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15639
      // check for required fields
15640
    }
15641
 
3430 rajveer 15642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15643
      try {
15644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15645
      } catch (org.apache.thrift.TException te) {
15646
        throw new java.io.IOException(te);
15647
      }
15648
    }
15649
 
15650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15651
      try {
15652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15653
      } catch (org.apache.thrift.TException te) {
15654
        throw new java.io.IOException(te);
15655
      }
15656
    }
15657
 
2024 ankur.sing 15658
  }
15659
 
3430 rajveer 15660
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15662
 
3430 rajveer 15663
    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);
15664
    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 15665
 
3430 rajveer 15666
    private CatalogDashboardUser success; // required
15667
    private HelperServiceException hse; // required
2024 ankur.sing 15668
 
15669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15671
      SUCCESS((short)0, "success"),
15672
      HSE((short)1, "hse");
15673
 
15674
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15675
 
15676
      static {
15677
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15678
          byName.put(field.getFieldName(), field);
15679
        }
15680
      }
15681
 
15682
      /**
15683
       * Find the _Fields constant that matches fieldId, or null if its not found.
15684
       */
15685
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15686
        switch(fieldId) {
15687
          case 0: // SUCCESS
15688
            return SUCCESS;
15689
          case 1: // HSE
15690
            return HSE;
15691
          default:
15692
            return null;
15693
        }
2024 ankur.sing 15694
      }
15695
 
15696
      /**
15697
       * Find the _Fields constant that matches fieldId, throwing an exception
15698
       * if it is not found.
15699
       */
15700
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15701
        _Fields fields = findByThriftId(fieldId);
15702
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15703
        return fields;
15704
      }
15705
 
15706
      /**
15707
       * Find the _Fields constant that matches name, or null if its not found.
15708
       */
15709
      public static _Fields findByName(String name) {
15710
        return byName.get(name);
15711
      }
15712
 
15713
      private final short _thriftId;
15714
      private final String _fieldName;
15715
 
15716
      _Fields(short thriftId, String fieldName) {
15717
        _thriftId = thriftId;
15718
        _fieldName = fieldName;
15719
      }
15720
 
15721
      public short getThriftFieldId() {
15722
        return _thriftId;
15723
      }
15724
 
15725
      public String getFieldName() {
15726
        return _fieldName;
15727
      }
15728
    }
15729
 
15730
    // isset id assignments
15731
 
3430 rajveer 15732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15733
    static {
3430 rajveer 15734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15735
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15736
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15737
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15741
    }
15742
 
15743
    public authenticateCatalogUser_result() {
15744
    }
15745
 
15746
    public authenticateCatalogUser_result(
15747
      CatalogDashboardUser success,
15748
      HelperServiceException hse)
15749
    {
15750
      this();
15751
      this.success = success;
15752
      this.hse = hse;
15753
    }
15754
 
15755
    /**
15756
     * Performs a deep copy on <i>other</i>.
15757
     */
15758
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15759
      if (other.isSetSuccess()) {
15760
        this.success = new CatalogDashboardUser(other.success);
15761
      }
15762
      if (other.isSetHse()) {
15763
        this.hse = new HelperServiceException(other.hse);
15764
      }
15765
    }
15766
 
15767
    public authenticateCatalogUser_result deepCopy() {
15768
      return new authenticateCatalogUser_result(this);
15769
    }
15770
 
3430 rajveer 15771
    @Override
15772
    public void clear() {
15773
      this.success = null;
15774
      this.hse = null;
2024 ankur.sing 15775
    }
15776
 
15777
    public CatalogDashboardUser getSuccess() {
15778
      return this.success;
15779
    }
15780
 
3430 rajveer 15781
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15782
      this.success = success;
15783
    }
15784
 
15785
    public void unsetSuccess() {
15786
      this.success = null;
15787
    }
15788
 
3430 rajveer 15789
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15790
    public boolean isSetSuccess() {
15791
      return this.success != null;
15792
    }
15793
 
15794
    public void setSuccessIsSet(boolean value) {
15795
      if (!value) {
15796
        this.success = null;
15797
      }
15798
    }
15799
 
15800
    public HelperServiceException getHse() {
15801
      return this.hse;
15802
    }
15803
 
3430 rajveer 15804
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15805
      this.hse = hse;
15806
    }
15807
 
15808
    public void unsetHse() {
15809
      this.hse = null;
15810
    }
15811
 
3430 rajveer 15812
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15813
    public boolean isSetHse() {
15814
      return this.hse != null;
15815
    }
15816
 
15817
    public void setHseIsSet(boolean value) {
15818
      if (!value) {
15819
        this.hse = null;
15820
      }
15821
    }
15822
 
15823
    public void setFieldValue(_Fields field, Object value) {
15824
      switch (field) {
15825
      case SUCCESS:
15826
        if (value == null) {
15827
          unsetSuccess();
15828
        } else {
15829
          setSuccess((CatalogDashboardUser)value);
15830
        }
15831
        break;
15832
 
15833
      case HSE:
15834
        if (value == null) {
15835
          unsetHse();
15836
        } else {
15837
          setHse((HelperServiceException)value);
15838
        }
15839
        break;
15840
 
15841
      }
15842
    }
15843
 
15844
    public Object getFieldValue(_Fields field) {
15845
      switch (field) {
15846
      case SUCCESS:
15847
        return getSuccess();
15848
 
15849
      case HSE:
15850
        return getHse();
15851
 
15852
      }
15853
      throw new IllegalStateException();
15854
    }
15855
 
3430 rajveer 15856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15857
    public boolean isSet(_Fields field) {
15858
      if (field == null) {
15859
        throw new IllegalArgumentException();
15860
      }
2024 ankur.sing 15861
 
15862
      switch (field) {
15863
      case SUCCESS:
15864
        return isSetSuccess();
15865
      case HSE:
15866
        return isSetHse();
15867
      }
15868
      throw new IllegalStateException();
15869
    }
15870
 
15871
    @Override
15872
    public boolean equals(Object that) {
15873
      if (that == null)
15874
        return false;
15875
      if (that instanceof authenticateCatalogUser_result)
15876
        return this.equals((authenticateCatalogUser_result)that);
15877
      return false;
15878
    }
15879
 
15880
    public boolean equals(authenticateCatalogUser_result that) {
15881
      if (that == null)
15882
        return false;
15883
 
15884
      boolean this_present_success = true && this.isSetSuccess();
15885
      boolean that_present_success = true && that.isSetSuccess();
15886
      if (this_present_success || that_present_success) {
15887
        if (!(this_present_success && that_present_success))
15888
          return false;
15889
        if (!this.success.equals(that.success))
15890
          return false;
15891
      }
15892
 
15893
      boolean this_present_hse = true && this.isSetHse();
15894
      boolean that_present_hse = true && that.isSetHse();
15895
      if (this_present_hse || that_present_hse) {
15896
        if (!(this_present_hse && that_present_hse))
15897
          return false;
15898
        if (!this.hse.equals(that.hse))
15899
          return false;
15900
      }
15901
 
15902
      return true;
15903
    }
15904
 
15905
    @Override
15906
    public int hashCode() {
15907
      return 0;
15908
    }
15909
 
15910
    public int compareTo(authenticateCatalogUser_result other) {
15911
      if (!getClass().equals(other.getClass())) {
15912
        return getClass().getName().compareTo(other.getClass().getName());
15913
      }
15914
 
15915
      int lastComparison = 0;
15916
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15917
 
3430 rajveer 15918
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15919
      if (lastComparison != 0) {
15920
        return lastComparison;
15921
      }
3430 rajveer 15922
      if (isSetSuccess()) {
15923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15924
        if (lastComparison != 0) {
15925
          return lastComparison;
15926
        }
2024 ankur.sing 15927
      }
3430 rajveer 15928
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15929
      if (lastComparison != 0) {
15930
        return lastComparison;
15931
      }
3430 rajveer 15932
      if (isSetHse()) {
15933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15934
        if (lastComparison != 0) {
15935
          return lastComparison;
15936
        }
2024 ankur.sing 15937
      }
15938
      return 0;
15939
    }
15940
 
3430 rajveer 15941
    public _Fields fieldForId(int fieldId) {
15942
      return _Fields.findByThriftId(fieldId);
15943
    }
15944
 
15945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15946
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15947
      iprot.readStructBegin();
15948
      while (true)
15949
      {
15950
        field = iprot.readFieldBegin();
3430 rajveer 15951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15952
          break;
15953
        }
3430 rajveer 15954
        switch (field.id) {
15955
          case 0: // SUCCESS
15956
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15957
              this.success = new CatalogDashboardUser();
15958
              this.success.read(iprot);
15959
            } else { 
15960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15961
            }
15962
            break;
15963
          case 1: // HSE
15964
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15965
              this.hse = new HelperServiceException();
15966
              this.hse.read(iprot);
15967
            } else { 
15968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15969
            }
15970
            break;
15971
          default:
15972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15973
        }
3430 rajveer 15974
        iprot.readFieldEnd();
2024 ankur.sing 15975
      }
15976
      iprot.readStructEnd();
15977
      validate();
15978
    }
15979
 
3430 rajveer 15980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15981
      oprot.writeStructBegin(STRUCT_DESC);
15982
 
15983
      if (this.isSetSuccess()) {
15984
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15985
        this.success.write(oprot);
15986
        oprot.writeFieldEnd();
15987
      } else if (this.isSetHse()) {
15988
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15989
        this.hse.write(oprot);
15990
        oprot.writeFieldEnd();
15991
      }
15992
      oprot.writeFieldStop();
15993
      oprot.writeStructEnd();
15994
    }
15995
 
15996
    @Override
15997
    public String toString() {
15998
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15999
      boolean first = true;
16000
 
16001
      sb.append("success:");
16002
      if (this.success == null) {
16003
        sb.append("null");
16004
      } else {
16005
        sb.append(this.success);
16006
      }
16007
      first = false;
16008
      if (!first) sb.append(", ");
16009
      sb.append("hse:");
16010
      if (this.hse == null) {
16011
        sb.append("null");
16012
      } else {
16013
        sb.append(this.hse);
16014
      }
16015
      first = false;
16016
      sb.append(")");
16017
      return sb.toString();
16018
    }
16019
 
3430 rajveer 16020
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16021
      // check for required fields
16022
    }
16023
 
3430 rajveer 16024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16025
      try {
16026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16027
      } catch (org.apache.thrift.TException te) {
16028
        throw new java.io.IOException(te);
16029
      }
16030
    }
16031
 
16032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16033
      try {
16034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16035
      } catch (org.apache.thrift.TException te) {
16036
        throw new java.io.IOException(te);
16037
      }
16038
    }
16039
 
2024 ankur.sing 16040
  }
16041
 
4544 varun.gupt 16042
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
16043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
16044
 
16045
    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);
16046
    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);
16047
 
16048
    private List<Long> entityIds; // required
16049
    private String email; // required
16050
 
16051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16053
      ENTITY_IDS((short)1, "entityIds"),
16054
      EMAIL((short)2, "email");
16055
 
16056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16057
 
16058
      static {
16059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16060
          byName.put(field.getFieldName(), field);
16061
        }
16062
      }
16063
 
16064
      /**
16065
       * Find the _Fields constant that matches fieldId, or null if its not found.
16066
       */
16067
      public static _Fields findByThriftId(int fieldId) {
16068
        switch(fieldId) {
16069
          case 1: // ENTITY_IDS
16070
            return ENTITY_IDS;
16071
          case 2: // EMAIL
16072
            return EMAIL;
16073
          default:
16074
            return null;
16075
        }
16076
      }
16077
 
16078
      /**
16079
       * Find the _Fields constant that matches fieldId, throwing an exception
16080
       * if it is not found.
16081
       */
16082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16083
        _Fields fields = findByThriftId(fieldId);
16084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16085
        return fields;
16086
      }
16087
 
16088
      /**
16089
       * Find the _Fields constant that matches name, or null if its not found.
16090
       */
16091
      public static _Fields findByName(String name) {
16092
        return byName.get(name);
16093
      }
16094
 
16095
      private final short _thriftId;
16096
      private final String _fieldName;
16097
 
16098
      _Fields(short thriftId, String fieldName) {
16099
        _thriftId = thriftId;
16100
        _fieldName = fieldName;
16101
      }
16102
 
16103
      public short getThriftFieldId() {
16104
        return _thriftId;
16105
      }
16106
 
16107
      public String getFieldName() {
16108
        return _fieldName;
16109
      }
16110
    }
16111
 
16112
    // isset id assignments
16113
 
16114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16115
    static {
16116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16117
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16118
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16119
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16120
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16121
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16122
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16123
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16124
    }
16125
 
16126
    public shareEntities_args() {
16127
    }
16128
 
16129
    public shareEntities_args(
16130
      List<Long> entityIds,
16131
      String email)
16132
    {
16133
      this();
16134
      this.entityIds = entityIds;
16135
      this.email = email;
16136
    }
16137
 
16138
    /**
16139
     * Performs a deep copy on <i>other</i>.
16140
     */
16141
    public shareEntities_args(shareEntities_args other) {
16142
      if (other.isSetEntityIds()) {
16143
        List<Long> __this__entityIds = new ArrayList<Long>();
16144
        for (Long other_element : other.entityIds) {
16145
          __this__entityIds.add(other_element);
16146
        }
16147
        this.entityIds = __this__entityIds;
16148
      }
16149
      if (other.isSetEmail()) {
16150
        this.email = other.email;
16151
      }
16152
    }
16153
 
16154
    public shareEntities_args deepCopy() {
16155
      return new shareEntities_args(this);
16156
    }
16157
 
16158
    @Override
16159
    public void clear() {
16160
      this.entityIds = null;
16161
      this.email = null;
16162
    }
16163
 
16164
    public int getEntityIdsSize() {
16165
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16166
    }
16167
 
16168
    public java.util.Iterator<Long> getEntityIdsIterator() {
16169
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16170
    }
16171
 
16172
    public void addToEntityIds(long elem) {
16173
      if (this.entityIds == null) {
16174
        this.entityIds = new ArrayList<Long>();
16175
      }
16176
      this.entityIds.add(elem);
16177
    }
16178
 
16179
    public List<Long> getEntityIds() {
16180
      return this.entityIds;
16181
    }
16182
 
16183
    public void setEntityIds(List<Long> entityIds) {
16184
      this.entityIds = entityIds;
16185
    }
16186
 
16187
    public void unsetEntityIds() {
16188
      this.entityIds = null;
16189
    }
16190
 
16191
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16192
    public boolean isSetEntityIds() {
16193
      return this.entityIds != null;
16194
    }
16195
 
16196
    public void setEntityIdsIsSet(boolean value) {
16197
      if (!value) {
16198
        this.entityIds = null;
16199
      }
16200
    }
16201
 
16202
    public String getEmail() {
16203
      return this.email;
16204
    }
16205
 
16206
    public void setEmail(String email) {
16207
      this.email = email;
16208
    }
16209
 
16210
    public void unsetEmail() {
16211
      this.email = null;
16212
    }
16213
 
16214
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16215
    public boolean isSetEmail() {
16216
      return this.email != null;
16217
    }
16218
 
16219
    public void setEmailIsSet(boolean value) {
16220
      if (!value) {
16221
        this.email = null;
16222
      }
16223
    }
16224
 
16225
    public void setFieldValue(_Fields field, Object value) {
16226
      switch (field) {
16227
      case ENTITY_IDS:
16228
        if (value == null) {
16229
          unsetEntityIds();
16230
        } else {
16231
          setEntityIds((List<Long>)value);
16232
        }
16233
        break;
16234
 
16235
      case EMAIL:
16236
        if (value == null) {
16237
          unsetEmail();
16238
        } else {
16239
          setEmail((String)value);
16240
        }
16241
        break;
16242
 
16243
      }
16244
    }
16245
 
16246
    public Object getFieldValue(_Fields field) {
16247
      switch (field) {
16248
      case ENTITY_IDS:
16249
        return getEntityIds();
16250
 
16251
      case EMAIL:
16252
        return getEmail();
16253
 
16254
      }
16255
      throw new IllegalStateException();
16256
    }
16257
 
16258
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16259
    public boolean isSet(_Fields field) {
16260
      if (field == null) {
16261
        throw new IllegalArgumentException();
16262
      }
16263
 
16264
      switch (field) {
16265
      case ENTITY_IDS:
16266
        return isSetEntityIds();
16267
      case EMAIL:
16268
        return isSetEmail();
16269
      }
16270
      throw new IllegalStateException();
16271
    }
16272
 
16273
    @Override
16274
    public boolean equals(Object that) {
16275
      if (that == null)
16276
        return false;
16277
      if (that instanceof shareEntities_args)
16278
        return this.equals((shareEntities_args)that);
16279
      return false;
16280
    }
16281
 
16282
    public boolean equals(shareEntities_args that) {
16283
      if (that == null)
16284
        return false;
16285
 
16286
      boolean this_present_entityIds = true && this.isSetEntityIds();
16287
      boolean that_present_entityIds = true && that.isSetEntityIds();
16288
      if (this_present_entityIds || that_present_entityIds) {
16289
        if (!(this_present_entityIds && that_present_entityIds))
16290
          return false;
16291
        if (!this.entityIds.equals(that.entityIds))
16292
          return false;
16293
      }
16294
 
16295
      boolean this_present_email = true && this.isSetEmail();
16296
      boolean that_present_email = true && that.isSetEmail();
16297
      if (this_present_email || that_present_email) {
16298
        if (!(this_present_email && that_present_email))
16299
          return false;
16300
        if (!this.email.equals(that.email))
16301
          return false;
16302
      }
16303
 
16304
      return true;
16305
    }
16306
 
16307
    @Override
16308
    public int hashCode() {
16309
      return 0;
16310
    }
16311
 
16312
    public int compareTo(shareEntities_args other) {
16313
      if (!getClass().equals(other.getClass())) {
16314
        return getClass().getName().compareTo(other.getClass().getName());
16315
      }
16316
 
16317
      int lastComparison = 0;
16318
      shareEntities_args typedOther = (shareEntities_args)other;
16319
 
16320
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16321
      if (lastComparison != 0) {
16322
        return lastComparison;
16323
      }
16324
      if (isSetEntityIds()) {
16325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16326
        if (lastComparison != 0) {
16327
          return lastComparison;
16328
        }
16329
      }
16330
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16331
      if (lastComparison != 0) {
16332
        return lastComparison;
16333
      }
16334
      if (isSetEmail()) {
16335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16336
        if (lastComparison != 0) {
16337
          return lastComparison;
16338
        }
16339
      }
16340
      return 0;
16341
    }
16342
 
16343
    public _Fields fieldForId(int fieldId) {
16344
      return _Fields.findByThriftId(fieldId);
16345
    }
16346
 
16347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16348
      org.apache.thrift.protocol.TField field;
16349
      iprot.readStructBegin();
16350
      while (true)
16351
      {
16352
        field = iprot.readFieldBegin();
16353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16354
          break;
16355
        }
16356
        switch (field.id) {
16357
          case 1: // ENTITY_IDS
16358
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16359
              {
5864 rajveer 16360
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16361
                this.entityIds = new ArrayList<Long>(_list45.size);
16362
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16363
                {
5864 rajveer 16364
                  long _elem47; // required
16365
                  _elem47 = iprot.readI64();
16366
                  this.entityIds.add(_elem47);
4544 varun.gupt 16367
                }
16368
                iprot.readListEnd();
16369
              }
16370
            } else { 
16371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16372
            }
16373
            break;
16374
          case 2: // EMAIL
16375
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16376
              this.email = iprot.readString();
16377
            } else { 
16378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16379
            }
16380
            break;
16381
          default:
16382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16383
        }
16384
        iprot.readFieldEnd();
16385
      }
16386
      iprot.readStructEnd();
16387
      validate();
16388
    }
16389
 
16390
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16391
      validate();
16392
 
16393
      oprot.writeStructBegin(STRUCT_DESC);
16394
      if (this.entityIds != null) {
16395
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16396
        {
16397
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16398
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16399
          {
5864 rajveer 16400
            oprot.writeI64(_iter48);
4544 varun.gupt 16401
          }
16402
          oprot.writeListEnd();
16403
        }
16404
        oprot.writeFieldEnd();
16405
      }
16406
      if (this.email != null) {
16407
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16408
        oprot.writeString(this.email);
16409
        oprot.writeFieldEnd();
16410
      }
16411
      oprot.writeFieldStop();
16412
      oprot.writeStructEnd();
16413
    }
16414
 
16415
    @Override
16416
    public String toString() {
16417
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16418
      boolean first = true;
16419
 
16420
      sb.append("entityIds:");
16421
      if (this.entityIds == null) {
16422
        sb.append("null");
16423
      } else {
16424
        sb.append(this.entityIds);
16425
      }
16426
      first = false;
16427
      if (!first) sb.append(", ");
16428
      sb.append("email:");
16429
      if (this.email == null) {
16430
        sb.append("null");
16431
      } else {
16432
        sb.append(this.email);
16433
      }
16434
      first = false;
16435
      sb.append(")");
16436
      return sb.toString();
16437
    }
16438
 
16439
    public void validate() throws org.apache.thrift.TException {
16440
      // check for required fields
16441
    }
16442
 
16443
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16444
      try {
16445
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16446
      } catch (org.apache.thrift.TException te) {
16447
        throw new java.io.IOException(te);
16448
      }
16449
    }
16450
 
16451
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16452
      try {
16453
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16454
      } catch (org.apache.thrift.TException te) {
16455
        throw new java.io.IOException(te);
16456
      }
16457
    }
16458
 
16459
  }
16460
 
16461
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16462
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16463
 
16464
    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);
16465
 
16466
    private HelperServiceException hse; // required
16467
 
16468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16470
      HSE((short)1, "hse");
16471
 
16472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16473
 
16474
      static {
16475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16476
          byName.put(field.getFieldName(), field);
16477
        }
16478
      }
16479
 
16480
      /**
16481
       * Find the _Fields constant that matches fieldId, or null if its not found.
16482
       */
16483
      public static _Fields findByThriftId(int fieldId) {
16484
        switch(fieldId) {
16485
          case 1: // HSE
16486
            return HSE;
16487
          default:
16488
            return null;
16489
        }
16490
      }
16491
 
16492
      /**
16493
       * Find the _Fields constant that matches fieldId, throwing an exception
16494
       * if it is not found.
16495
       */
16496
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16497
        _Fields fields = findByThriftId(fieldId);
16498
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16499
        return fields;
16500
      }
16501
 
16502
      /**
16503
       * Find the _Fields constant that matches name, or null if its not found.
16504
       */
16505
      public static _Fields findByName(String name) {
16506
        return byName.get(name);
16507
      }
16508
 
16509
      private final short _thriftId;
16510
      private final String _fieldName;
16511
 
16512
      _Fields(short thriftId, String fieldName) {
16513
        _thriftId = thriftId;
16514
        _fieldName = fieldName;
16515
      }
16516
 
16517
      public short getThriftFieldId() {
16518
        return _thriftId;
16519
      }
16520
 
16521
      public String getFieldName() {
16522
        return _fieldName;
16523
      }
16524
    }
16525
 
16526
    // isset id assignments
16527
 
16528
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16529
    static {
16530
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16531
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16535
    }
16536
 
16537
    public shareEntities_result() {
16538
    }
16539
 
16540
    public shareEntities_result(
16541
      HelperServiceException hse)
16542
    {
16543
      this();
16544
      this.hse = hse;
16545
    }
16546
 
16547
    /**
16548
     * Performs a deep copy on <i>other</i>.
16549
     */
16550
    public shareEntities_result(shareEntities_result other) {
16551
      if (other.isSetHse()) {
16552
        this.hse = new HelperServiceException(other.hse);
16553
      }
16554
    }
16555
 
16556
    public shareEntities_result deepCopy() {
16557
      return new shareEntities_result(this);
16558
    }
16559
 
16560
    @Override
16561
    public void clear() {
16562
      this.hse = null;
16563
    }
16564
 
16565
    public HelperServiceException getHse() {
16566
      return this.hse;
16567
    }
16568
 
16569
    public void setHse(HelperServiceException hse) {
16570
      this.hse = hse;
16571
    }
16572
 
16573
    public void unsetHse() {
16574
      this.hse = null;
16575
    }
16576
 
16577
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16578
    public boolean isSetHse() {
16579
      return this.hse != null;
16580
    }
16581
 
16582
    public void setHseIsSet(boolean value) {
16583
      if (!value) {
16584
        this.hse = null;
16585
      }
16586
    }
16587
 
16588
    public void setFieldValue(_Fields field, Object value) {
16589
      switch (field) {
16590
      case HSE:
16591
        if (value == null) {
16592
          unsetHse();
16593
        } else {
16594
          setHse((HelperServiceException)value);
16595
        }
16596
        break;
16597
 
16598
      }
16599
    }
16600
 
16601
    public Object getFieldValue(_Fields field) {
16602
      switch (field) {
16603
      case HSE:
16604
        return getHse();
16605
 
16606
      }
16607
      throw new IllegalStateException();
16608
    }
16609
 
16610
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16611
    public boolean isSet(_Fields field) {
16612
      if (field == null) {
16613
        throw new IllegalArgumentException();
16614
      }
16615
 
16616
      switch (field) {
16617
      case HSE:
16618
        return isSetHse();
16619
      }
16620
      throw new IllegalStateException();
16621
    }
16622
 
16623
    @Override
16624
    public boolean equals(Object that) {
16625
      if (that == null)
16626
        return false;
16627
      if (that instanceof shareEntities_result)
16628
        return this.equals((shareEntities_result)that);
16629
      return false;
16630
    }
16631
 
16632
    public boolean equals(shareEntities_result that) {
16633
      if (that == null)
16634
        return false;
16635
 
16636
      boolean this_present_hse = true && this.isSetHse();
16637
      boolean that_present_hse = true && that.isSetHse();
16638
      if (this_present_hse || that_present_hse) {
16639
        if (!(this_present_hse && that_present_hse))
16640
          return false;
16641
        if (!this.hse.equals(that.hse))
16642
          return false;
16643
      }
16644
 
16645
      return true;
16646
    }
16647
 
16648
    @Override
16649
    public int hashCode() {
16650
      return 0;
16651
    }
16652
 
16653
    public int compareTo(shareEntities_result other) {
16654
      if (!getClass().equals(other.getClass())) {
16655
        return getClass().getName().compareTo(other.getClass().getName());
16656
      }
16657
 
16658
      int lastComparison = 0;
16659
      shareEntities_result typedOther = (shareEntities_result)other;
16660
 
16661
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16662
      if (lastComparison != 0) {
16663
        return lastComparison;
16664
      }
16665
      if (isSetHse()) {
16666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16667
        if (lastComparison != 0) {
16668
          return lastComparison;
16669
        }
16670
      }
16671
      return 0;
16672
    }
16673
 
16674
    public _Fields fieldForId(int fieldId) {
16675
      return _Fields.findByThriftId(fieldId);
16676
    }
16677
 
16678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16679
      org.apache.thrift.protocol.TField field;
16680
      iprot.readStructBegin();
16681
      while (true)
16682
      {
16683
        field = iprot.readFieldBegin();
16684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16685
          break;
16686
        }
16687
        switch (field.id) {
16688
          case 1: // HSE
16689
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16690
              this.hse = new HelperServiceException();
16691
              this.hse.read(iprot);
16692
            } else { 
16693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16694
            }
16695
            break;
16696
          default:
16697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16698
        }
16699
        iprot.readFieldEnd();
16700
      }
16701
      iprot.readStructEnd();
16702
      validate();
16703
    }
16704
 
16705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16706
      oprot.writeStructBegin(STRUCT_DESC);
16707
 
16708
      if (this.isSetHse()) {
16709
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16710
        this.hse.write(oprot);
16711
        oprot.writeFieldEnd();
16712
      }
16713
      oprot.writeFieldStop();
16714
      oprot.writeStructEnd();
16715
    }
16716
 
16717
    @Override
16718
    public String toString() {
16719
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16720
      boolean first = true;
16721
 
16722
      sb.append("hse:");
16723
      if (this.hse == null) {
16724
        sb.append("null");
16725
      } else {
16726
        sb.append(this.hse);
16727
      }
16728
      first = false;
16729
      sb.append(")");
16730
      return sb.toString();
16731
    }
16732
 
16733
    public void validate() throws org.apache.thrift.TException {
16734
      // check for required fields
16735
    }
16736
 
16737
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16738
      try {
16739
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16740
      } catch (org.apache.thrift.TException te) {
16741
        throw new java.io.IOException(te);
16742
      }
16743
    }
16744
 
16745
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16746
      try {
16747
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16748
      } catch (org.apache.thrift.TException te) {
16749
        throw new java.io.IOException(te);
16750
      }
16751
    }
16752
 
16753
  }
16754
 
4693 mandeep.dh 16755
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16756
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16757
 
16758
 
16759
 
16760
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16761
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16762
;
16763
 
16764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16765
 
16766
      static {
16767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16768
          byName.put(field.getFieldName(), field);
16769
        }
16770
      }
16771
 
16772
      /**
16773
       * Find the _Fields constant that matches fieldId, or null if its not found.
16774
       */
16775
      public static _Fields findByThriftId(int fieldId) {
16776
        switch(fieldId) {
16777
          default:
16778
            return null;
16779
        }
16780
      }
16781
 
16782
      /**
16783
       * Find the _Fields constant that matches fieldId, throwing an exception
16784
       * if it is not found.
16785
       */
16786
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16787
        _Fields fields = findByThriftId(fieldId);
16788
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16789
        return fields;
16790
      }
16791
 
16792
      /**
16793
       * Find the _Fields constant that matches name, or null if its not found.
16794
       */
16795
      public static _Fields findByName(String name) {
16796
        return byName.get(name);
16797
      }
16798
 
16799
      private final short _thriftId;
16800
      private final String _fieldName;
16801
 
16802
      _Fields(short thriftId, String fieldName) {
16803
        _thriftId = thriftId;
16804
        _fieldName = fieldName;
16805
      }
16806
 
16807
      public short getThriftFieldId() {
16808
        return _thriftId;
16809
      }
16810
 
16811
      public String getFieldName() {
16812
        return _fieldName;
16813
      }
16814
    }
16815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16816
    static {
16817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16820
    }
16821
 
16822
    public getAgents_args() {
16823
    }
16824
 
16825
    /**
16826
     * Performs a deep copy on <i>other</i>.
16827
     */
16828
    public getAgents_args(getAgents_args other) {
16829
    }
16830
 
16831
    public getAgents_args deepCopy() {
16832
      return new getAgents_args(this);
16833
    }
16834
 
16835
    @Override
16836
    public void clear() {
16837
    }
16838
 
16839
    public void setFieldValue(_Fields field, Object value) {
16840
      switch (field) {
16841
      }
16842
    }
16843
 
16844
    public Object getFieldValue(_Fields field) {
16845
      switch (field) {
16846
      }
16847
      throw new IllegalStateException();
16848
    }
16849
 
16850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16851
    public boolean isSet(_Fields field) {
16852
      if (field == null) {
16853
        throw new IllegalArgumentException();
16854
      }
16855
 
16856
      switch (field) {
16857
      }
16858
      throw new IllegalStateException();
16859
    }
16860
 
16861
    @Override
16862
    public boolean equals(Object that) {
16863
      if (that == null)
16864
        return false;
16865
      if (that instanceof getAgents_args)
16866
        return this.equals((getAgents_args)that);
16867
      return false;
16868
    }
16869
 
16870
    public boolean equals(getAgents_args that) {
16871
      if (that == null)
16872
        return false;
16873
 
16874
      return true;
16875
    }
16876
 
16877
    @Override
16878
    public int hashCode() {
16879
      return 0;
16880
    }
16881
 
16882
    public int compareTo(getAgents_args other) {
16883
      if (!getClass().equals(other.getClass())) {
16884
        return getClass().getName().compareTo(other.getClass().getName());
16885
      }
16886
 
16887
      int lastComparison = 0;
16888
      getAgents_args typedOther = (getAgents_args)other;
16889
 
16890
      return 0;
16891
    }
16892
 
16893
    public _Fields fieldForId(int fieldId) {
16894
      return _Fields.findByThriftId(fieldId);
16895
    }
16896
 
16897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16898
      org.apache.thrift.protocol.TField field;
16899
      iprot.readStructBegin();
16900
      while (true)
16901
      {
16902
        field = iprot.readFieldBegin();
16903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16904
          break;
16905
        }
16906
        switch (field.id) {
16907
          default:
16908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16909
        }
16910
        iprot.readFieldEnd();
16911
      }
16912
      iprot.readStructEnd();
16913
      validate();
16914
    }
16915
 
16916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16917
      validate();
16918
 
16919
      oprot.writeStructBegin(STRUCT_DESC);
16920
      oprot.writeFieldStop();
16921
      oprot.writeStructEnd();
16922
    }
16923
 
16924
    @Override
16925
    public String toString() {
16926
      StringBuilder sb = new StringBuilder("getAgents_args(");
16927
      boolean first = true;
16928
 
16929
      sb.append(")");
16930
      return sb.toString();
16931
    }
16932
 
16933
    public void validate() throws org.apache.thrift.TException {
16934
      // check for required fields
16935
    }
16936
 
16937
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16938
      try {
16939
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16940
      } catch (org.apache.thrift.TException te) {
16941
        throw new java.io.IOException(te);
16942
      }
16943
    }
16944
 
16945
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16946
      try {
16947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16948
      } catch (org.apache.thrift.TException te) {
16949
        throw new java.io.IOException(te);
16950
      }
16951
    }
16952
 
16953
  }
16954
 
16955
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16957
 
16958
    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);
16959
 
16960
    private List<Agent> success; // required
16961
 
16962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16963
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16964
      SUCCESS((short)0, "success");
16965
 
16966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16967
 
16968
      static {
16969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16970
          byName.put(field.getFieldName(), field);
16971
        }
16972
      }
16973
 
16974
      /**
16975
       * Find the _Fields constant that matches fieldId, or null if its not found.
16976
       */
16977
      public static _Fields findByThriftId(int fieldId) {
16978
        switch(fieldId) {
16979
          case 0: // SUCCESS
16980
            return SUCCESS;
16981
          default:
16982
            return null;
16983
        }
16984
      }
16985
 
16986
      /**
16987
       * Find the _Fields constant that matches fieldId, throwing an exception
16988
       * if it is not found.
16989
       */
16990
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16991
        _Fields fields = findByThriftId(fieldId);
16992
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16993
        return fields;
16994
      }
16995
 
16996
      /**
16997
       * Find the _Fields constant that matches name, or null if its not found.
16998
       */
16999
      public static _Fields findByName(String name) {
17000
        return byName.get(name);
17001
      }
17002
 
17003
      private final short _thriftId;
17004
      private final String _fieldName;
17005
 
17006
      _Fields(short thriftId, String fieldName) {
17007
        _thriftId = thriftId;
17008
        _fieldName = fieldName;
17009
      }
17010
 
17011
      public short getThriftFieldId() {
17012
        return _thriftId;
17013
      }
17014
 
17015
      public String getFieldName() {
17016
        return _fieldName;
17017
      }
17018
    }
17019
 
17020
    // isset id assignments
17021
 
17022
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17023
    static {
17024
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17025
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17026
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17027
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
17028
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17029
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
17030
    }
17031
 
17032
    public getAgents_result() {
17033
    }
17034
 
17035
    public getAgents_result(
17036
      List<Agent> success)
17037
    {
17038
      this();
17039
      this.success = success;
17040
    }
17041
 
17042
    /**
17043
     * Performs a deep copy on <i>other</i>.
17044
     */
17045
    public getAgents_result(getAgents_result other) {
17046
      if (other.isSetSuccess()) {
17047
        List<Agent> __this__success = new ArrayList<Agent>();
17048
        for (Agent other_element : other.success) {
17049
          __this__success.add(new Agent(other_element));
17050
        }
17051
        this.success = __this__success;
17052
      }
17053
    }
17054
 
17055
    public getAgents_result deepCopy() {
17056
      return new getAgents_result(this);
17057
    }
17058
 
17059
    @Override
17060
    public void clear() {
17061
      this.success = null;
17062
    }
17063
 
17064
    public int getSuccessSize() {
17065
      return (this.success == null) ? 0 : this.success.size();
17066
    }
17067
 
17068
    public java.util.Iterator<Agent> getSuccessIterator() {
17069
      return (this.success == null) ? null : this.success.iterator();
17070
    }
17071
 
17072
    public void addToSuccess(Agent elem) {
17073
      if (this.success == null) {
17074
        this.success = new ArrayList<Agent>();
17075
      }
17076
      this.success.add(elem);
17077
    }
17078
 
17079
    public List<Agent> getSuccess() {
17080
      return this.success;
17081
    }
17082
 
17083
    public void setSuccess(List<Agent> success) {
17084
      this.success = success;
17085
    }
17086
 
17087
    public void unsetSuccess() {
17088
      this.success = null;
17089
    }
17090
 
17091
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17092
    public boolean isSetSuccess() {
17093
      return this.success != null;
17094
    }
17095
 
17096
    public void setSuccessIsSet(boolean value) {
17097
      if (!value) {
17098
        this.success = null;
17099
      }
17100
    }
17101
 
17102
    public void setFieldValue(_Fields field, Object value) {
17103
      switch (field) {
17104
      case SUCCESS:
17105
        if (value == null) {
17106
          unsetSuccess();
17107
        } else {
17108
          setSuccess((List<Agent>)value);
17109
        }
17110
        break;
17111
 
17112
      }
17113
    }
17114
 
17115
    public Object getFieldValue(_Fields field) {
17116
      switch (field) {
17117
      case SUCCESS:
17118
        return getSuccess();
17119
 
17120
      }
17121
      throw new IllegalStateException();
17122
    }
17123
 
17124
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17125
    public boolean isSet(_Fields field) {
17126
      if (field == null) {
17127
        throw new IllegalArgumentException();
17128
      }
17129
 
17130
      switch (field) {
17131
      case SUCCESS:
17132
        return isSetSuccess();
17133
      }
17134
      throw new IllegalStateException();
17135
    }
17136
 
17137
    @Override
17138
    public boolean equals(Object that) {
17139
      if (that == null)
17140
        return false;
17141
      if (that instanceof getAgents_result)
17142
        return this.equals((getAgents_result)that);
17143
      return false;
17144
    }
17145
 
17146
    public boolean equals(getAgents_result that) {
17147
      if (that == null)
17148
        return false;
17149
 
17150
      boolean this_present_success = true && this.isSetSuccess();
17151
      boolean that_present_success = true && that.isSetSuccess();
17152
      if (this_present_success || that_present_success) {
17153
        if (!(this_present_success && that_present_success))
17154
          return false;
17155
        if (!this.success.equals(that.success))
17156
          return false;
17157
      }
17158
 
17159
      return true;
17160
    }
17161
 
17162
    @Override
17163
    public int hashCode() {
17164
      return 0;
17165
    }
17166
 
17167
    public int compareTo(getAgents_result other) {
17168
      if (!getClass().equals(other.getClass())) {
17169
        return getClass().getName().compareTo(other.getClass().getName());
17170
      }
17171
 
17172
      int lastComparison = 0;
17173
      getAgents_result typedOther = (getAgents_result)other;
17174
 
17175
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17176
      if (lastComparison != 0) {
17177
        return lastComparison;
17178
      }
17179
      if (isSetSuccess()) {
17180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17181
        if (lastComparison != 0) {
17182
          return lastComparison;
17183
        }
17184
      }
17185
      return 0;
17186
    }
17187
 
17188
    public _Fields fieldForId(int fieldId) {
17189
      return _Fields.findByThriftId(fieldId);
17190
    }
17191
 
17192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17193
      org.apache.thrift.protocol.TField field;
17194
      iprot.readStructBegin();
17195
      while (true)
17196
      {
17197
        field = iprot.readFieldBegin();
17198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17199
          break;
17200
        }
17201
        switch (field.id) {
17202
          case 0: // SUCCESS
17203
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17204
              {
5864 rajveer 17205
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17206
                this.success = new ArrayList<Agent>(_list49.size);
17207
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17208
                {
5864 rajveer 17209
                  Agent _elem51; // required
17210
                  _elem51 = new Agent();
17211
                  _elem51.read(iprot);
17212
                  this.success.add(_elem51);
4693 mandeep.dh 17213
                }
17214
                iprot.readListEnd();
17215
              }
17216
            } else { 
17217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17218
            }
17219
            break;
17220
          default:
17221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17222
        }
17223
        iprot.readFieldEnd();
17224
      }
17225
      iprot.readStructEnd();
17226
      validate();
17227
    }
17228
 
17229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17230
      oprot.writeStructBegin(STRUCT_DESC);
17231
 
17232
      if (this.isSetSuccess()) {
17233
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17234
        {
17235
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17236
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17237
          {
5864 rajveer 17238
            _iter52.write(oprot);
4693 mandeep.dh 17239
          }
17240
          oprot.writeListEnd();
17241
        }
17242
        oprot.writeFieldEnd();
17243
      }
17244
      oprot.writeFieldStop();
17245
      oprot.writeStructEnd();
17246
    }
17247
 
17248
    @Override
17249
    public String toString() {
17250
      StringBuilder sb = new StringBuilder("getAgents_result(");
17251
      boolean first = true;
17252
 
17253
      sb.append("success:");
17254
      if (this.success == null) {
17255
        sb.append("null");
17256
      } else {
17257
        sb.append(this.success);
17258
      }
17259
      first = false;
17260
      sb.append(")");
17261
      return sb.toString();
17262
    }
17263
 
17264
    public void validate() throws org.apache.thrift.TException {
17265
      // check for required fields
17266
    }
17267
 
17268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17269
      try {
17270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17271
      } catch (org.apache.thrift.TException te) {
17272
        throw new java.io.IOException(te);
17273
      }
17274
    }
17275
 
17276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17277
      try {
17278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17279
      } catch (org.apache.thrift.TException te) {
17280
        throw new java.io.IOException(te);
17281
      }
17282
    }
17283
 
17284
  }
17285
 
17286
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17288
 
17289
    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);
17290
    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);
17291
 
17292
    private String emailId; // required
17293
    private String password; // required
17294
 
17295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17297
      EMAIL_ID((short)1, "emailId"),
17298
      PASSWORD((short)2, "password");
17299
 
17300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17301
 
17302
      static {
17303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17304
          byName.put(field.getFieldName(), field);
17305
        }
17306
      }
17307
 
17308
      /**
17309
       * Find the _Fields constant that matches fieldId, or null if its not found.
17310
       */
17311
      public static _Fields findByThriftId(int fieldId) {
17312
        switch(fieldId) {
17313
          case 1: // EMAIL_ID
17314
            return EMAIL_ID;
17315
          case 2: // PASSWORD
17316
            return PASSWORD;
17317
          default:
17318
            return null;
17319
        }
17320
      }
17321
 
17322
      /**
17323
       * Find the _Fields constant that matches fieldId, throwing an exception
17324
       * if it is not found.
17325
       */
17326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17327
        _Fields fields = findByThriftId(fieldId);
17328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17329
        return fields;
17330
      }
17331
 
17332
      /**
17333
       * Find the _Fields constant that matches name, or null if its not found.
17334
       */
17335
      public static _Fields findByName(String name) {
17336
        return byName.get(name);
17337
      }
17338
 
17339
      private final short _thriftId;
17340
      private final String _fieldName;
17341
 
17342
      _Fields(short thriftId, String fieldName) {
17343
        _thriftId = thriftId;
17344
        _fieldName = fieldName;
17345
      }
17346
 
17347
      public short getThriftFieldId() {
17348
        return _thriftId;
17349
      }
17350
 
17351
      public String getFieldName() {
17352
        return _fieldName;
17353
      }
17354
    }
17355
 
17356
    // isset id assignments
17357
 
17358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17359
    static {
17360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17361
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17363
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17367
    }
17368
 
17369
    public validateLogIn_args() {
17370
    }
17371
 
17372
    public validateLogIn_args(
17373
      String emailId,
17374
      String password)
17375
    {
17376
      this();
17377
      this.emailId = emailId;
17378
      this.password = password;
17379
    }
17380
 
17381
    /**
17382
     * Performs a deep copy on <i>other</i>.
17383
     */
17384
    public validateLogIn_args(validateLogIn_args other) {
17385
      if (other.isSetEmailId()) {
17386
        this.emailId = other.emailId;
17387
      }
17388
      if (other.isSetPassword()) {
17389
        this.password = other.password;
17390
      }
17391
    }
17392
 
17393
    public validateLogIn_args deepCopy() {
17394
      return new validateLogIn_args(this);
17395
    }
17396
 
17397
    @Override
17398
    public void clear() {
17399
      this.emailId = null;
17400
      this.password = null;
17401
    }
17402
 
17403
    public String getEmailId() {
17404
      return this.emailId;
17405
    }
17406
 
17407
    public void setEmailId(String emailId) {
17408
      this.emailId = emailId;
17409
    }
17410
 
17411
    public void unsetEmailId() {
17412
      this.emailId = null;
17413
    }
17414
 
17415
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17416
    public boolean isSetEmailId() {
17417
      return this.emailId != null;
17418
    }
17419
 
17420
    public void setEmailIdIsSet(boolean value) {
17421
      if (!value) {
17422
        this.emailId = null;
17423
      }
17424
    }
17425
 
17426
    public String getPassword() {
17427
      return this.password;
17428
    }
17429
 
17430
    public void setPassword(String password) {
17431
      this.password = password;
17432
    }
17433
 
17434
    public void unsetPassword() {
17435
      this.password = null;
17436
    }
17437
 
17438
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17439
    public boolean isSetPassword() {
17440
      return this.password != null;
17441
    }
17442
 
17443
    public void setPasswordIsSet(boolean value) {
17444
      if (!value) {
17445
        this.password = null;
17446
      }
17447
    }
17448
 
17449
    public void setFieldValue(_Fields field, Object value) {
17450
      switch (field) {
17451
      case EMAIL_ID:
17452
        if (value == null) {
17453
          unsetEmailId();
17454
        } else {
17455
          setEmailId((String)value);
17456
        }
17457
        break;
17458
 
17459
      case PASSWORD:
17460
        if (value == null) {
17461
          unsetPassword();
17462
        } else {
17463
          setPassword((String)value);
17464
        }
17465
        break;
17466
 
17467
      }
17468
    }
17469
 
17470
    public Object getFieldValue(_Fields field) {
17471
      switch (field) {
17472
      case EMAIL_ID:
17473
        return getEmailId();
17474
 
17475
      case PASSWORD:
17476
        return getPassword();
17477
 
17478
      }
17479
      throw new IllegalStateException();
17480
    }
17481
 
17482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17483
    public boolean isSet(_Fields field) {
17484
      if (field == null) {
17485
        throw new IllegalArgumentException();
17486
      }
17487
 
17488
      switch (field) {
17489
      case EMAIL_ID:
17490
        return isSetEmailId();
17491
      case PASSWORD:
17492
        return isSetPassword();
17493
      }
17494
      throw new IllegalStateException();
17495
    }
17496
 
17497
    @Override
17498
    public boolean equals(Object that) {
17499
      if (that == null)
17500
        return false;
17501
      if (that instanceof validateLogIn_args)
17502
        return this.equals((validateLogIn_args)that);
17503
      return false;
17504
    }
17505
 
17506
    public boolean equals(validateLogIn_args that) {
17507
      if (that == null)
17508
        return false;
17509
 
17510
      boolean this_present_emailId = true && this.isSetEmailId();
17511
      boolean that_present_emailId = true && that.isSetEmailId();
17512
      if (this_present_emailId || that_present_emailId) {
17513
        if (!(this_present_emailId && that_present_emailId))
17514
          return false;
17515
        if (!this.emailId.equals(that.emailId))
17516
          return false;
17517
      }
17518
 
17519
      boolean this_present_password = true && this.isSetPassword();
17520
      boolean that_present_password = true && that.isSetPassword();
17521
      if (this_present_password || that_present_password) {
17522
        if (!(this_present_password && that_present_password))
17523
          return false;
17524
        if (!this.password.equals(that.password))
17525
          return false;
17526
      }
17527
 
17528
      return true;
17529
    }
17530
 
17531
    @Override
17532
    public int hashCode() {
17533
      return 0;
17534
    }
17535
 
17536
    public int compareTo(validateLogIn_args other) {
17537
      if (!getClass().equals(other.getClass())) {
17538
        return getClass().getName().compareTo(other.getClass().getName());
17539
      }
17540
 
17541
      int lastComparison = 0;
17542
      validateLogIn_args typedOther = (validateLogIn_args)other;
17543
 
17544
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17545
      if (lastComparison != 0) {
17546
        return lastComparison;
17547
      }
17548
      if (isSetEmailId()) {
17549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17550
        if (lastComparison != 0) {
17551
          return lastComparison;
17552
        }
17553
      }
17554
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17555
      if (lastComparison != 0) {
17556
        return lastComparison;
17557
      }
17558
      if (isSetPassword()) {
17559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17560
        if (lastComparison != 0) {
17561
          return lastComparison;
17562
        }
17563
      }
17564
      return 0;
17565
    }
17566
 
17567
    public _Fields fieldForId(int fieldId) {
17568
      return _Fields.findByThriftId(fieldId);
17569
    }
17570
 
17571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17572
      org.apache.thrift.protocol.TField field;
17573
      iprot.readStructBegin();
17574
      while (true)
17575
      {
17576
        field = iprot.readFieldBegin();
17577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17578
          break;
17579
        }
17580
        switch (field.id) {
17581
          case 1: // EMAIL_ID
17582
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17583
              this.emailId = iprot.readString();
17584
            } else { 
17585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17586
            }
17587
            break;
17588
          case 2: // PASSWORD
17589
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17590
              this.password = iprot.readString();
17591
            } else { 
17592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17593
            }
17594
            break;
17595
          default:
17596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17597
        }
17598
        iprot.readFieldEnd();
17599
      }
17600
      iprot.readStructEnd();
17601
      validate();
17602
    }
17603
 
17604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17605
      validate();
17606
 
17607
      oprot.writeStructBegin(STRUCT_DESC);
17608
      if (this.emailId != null) {
17609
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17610
        oprot.writeString(this.emailId);
17611
        oprot.writeFieldEnd();
17612
      }
17613
      if (this.password != null) {
17614
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17615
        oprot.writeString(this.password);
17616
        oprot.writeFieldEnd();
17617
      }
17618
      oprot.writeFieldStop();
17619
      oprot.writeStructEnd();
17620
    }
17621
 
17622
    @Override
17623
    public String toString() {
17624
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17625
      boolean first = true;
17626
 
17627
      sb.append("emailId:");
17628
      if (this.emailId == null) {
17629
        sb.append("null");
17630
      } else {
17631
        sb.append(this.emailId);
17632
      }
17633
      first = false;
17634
      if (!first) sb.append(", ");
17635
      sb.append("password:");
17636
      if (this.password == null) {
17637
        sb.append("null");
17638
      } else {
17639
        sb.append(this.password);
17640
      }
17641
      first = false;
17642
      sb.append(")");
17643
      return sb.toString();
17644
    }
17645
 
17646
    public void validate() throws org.apache.thrift.TException {
17647
      // check for required fields
17648
    }
17649
 
17650
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17651
      try {
17652
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17653
      } catch (org.apache.thrift.TException te) {
17654
        throw new java.io.IOException(te);
17655
      }
17656
    }
17657
 
17658
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17659
      try {
17660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17661
      } catch (org.apache.thrift.TException te) {
17662
        throw new java.io.IOException(te);
17663
      }
17664
    }
17665
 
17666
  }
17667
 
17668
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17670
 
17671
    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);
17672
 
17673
    private boolean success; // required
17674
 
17675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17677
      SUCCESS((short)0, "success");
17678
 
17679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17680
 
17681
      static {
17682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17683
          byName.put(field.getFieldName(), field);
17684
        }
17685
      }
17686
 
17687
      /**
17688
       * Find the _Fields constant that matches fieldId, or null if its not found.
17689
       */
17690
      public static _Fields findByThriftId(int fieldId) {
17691
        switch(fieldId) {
17692
          case 0: // SUCCESS
17693
            return SUCCESS;
17694
          default:
17695
            return null;
17696
        }
17697
      }
17698
 
17699
      /**
17700
       * Find the _Fields constant that matches fieldId, throwing an exception
17701
       * if it is not found.
17702
       */
17703
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17704
        _Fields fields = findByThriftId(fieldId);
17705
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17706
        return fields;
17707
      }
17708
 
17709
      /**
17710
       * Find the _Fields constant that matches name, or null if its not found.
17711
       */
17712
      public static _Fields findByName(String name) {
17713
        return byName.get(name);
17714
      }
17715
 
17716
      private final short _thriftId;
17717
      private final String _fieldName;
17718
 
17719
      _Fields(short thriftId, String fieldName) {
17720
        _thriftId = thriftId;
17721
        _fieldName = fieldName;
17722
      }
17723
 
17724
      public short getThriftFieldId() {
17725
        return _thriftId;
17726
      }
17727
 
17728
      public String getFieldName() {
17729
        return _fieldName;
17730
      }
17731
    }
17732
 
17733
    // isset id assignments
17734
    private static final int __SUCCESS_ISSET_ID = 0;
17735
    private BitSet __isset_bit_vector = new BitSet(1);
17736
 
17737
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17738
    static {
17739
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17740
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17744
    }
17745
 
17746
    public validateLogIn_result() {
17747
    }
17748
 
17749
    public validateLogIn_result(
17750
      boolean success)
17751
    {
17752
      this();
17753
      this.success = success;
17754
      setSuccessIsSet(true);
17755
    }
17756
 
17757
    /**
17758
     * Performs a deep copy on <i>other</i>.
17759
     */
17760
    public validateLogIn_result(validateLogIn_result other) {
17761
      __isset_bit_vector.clear();
17762
      __isset_bit_vector.or(other.__isset_bit_vector);
17763
      this.success = other.success;
17764
    }
17765
 
17766
    public validateLogIn_result deepCopy() {
17767
      return new validateLogIn_result(this);
17768
    }
17769
 
17770
    @Override
17771
    public void clear() {
17772
      setSuccessIsSet(false);
17773
      this.success = false;
17774
    }
17775
 
17776
    public boolean isSuccess() {
17777
      return this.success;
17778
    }
17779
 
17780
    public void setSuccess(boolean success) {
17781
      this.success = success;
17782
      setSuccessIsSet(true);
17783
    }
17784
 
17785
    public void unsetSuccess() {
17786
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17787
    }
17788
 
17789
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17790
    public boolean isSetSuccess() {
17791
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17792
    }
17793
 
17794
    public void setSuccessIsSet(boolean value) {
17795
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17796
    }
17797
 
17798
    public void setFieldValue(_Fields field, Object value) {
17799
      switch (field) {
17800
      case SUCCESS:
17801
        if (value == null) {
17802
          unsetSuccess();
17803
        } else {
17804
          setSuccess((Boolean)value);
17805
        }
17806
        break;
17807
 
17808
      }
17809
    }
17810
 
17811
    public Object getFieldValue(_Fields field) {
17812
      switch (field) {
17813
      case SUCCESS:
17814
        return Boolean.valueOf(isSuccess());
17815
 
17816
      }
17817
      throw new IllegalStateException();
17818
    }
17819
 
17820
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17821
    public boolean isSet(_Fields field) {
17822
      if (field == null) {
17823
        throw new IllegalArgumentException();
17824
      }
17825
 
17826
      switch (field) {
17827
      case SUCCESS:
17828
        return isSetSuccess();
17829
      }
17830
      throw new IllegalStateException();
17831
    }
17832
 
17833
    @Override
17834
    public boolean equals(Object that) {
17835
      if (that == null)
17836
        return false;
17837
      if (that instanceof validateLogIn_result)
17838
        return this.equals((validateLogIn_result)that);
17839
      return false;
17840
    }
17841
 
17842
    public boolean equals(validateLogIn_result that) {
17843
      if (that == null)
17844
        return false;
17845
 
17846
      boolean this_present_success = true;
17847
      boolean that_present_success = true;
17848
      if (this_present_success || that_present_success) {
17849
        if (!(this_present_success && that_present_success))
17850
          return false;
17851
        if (this.success != that.success)
17852
          return false;
17853
      }
17854
 
17855
      return true;
17856
    }
17857
 
17858
    @Override
17859
    public int hashCode() {
17860
      return 0;
17861
    }
17862
 
17863
    public int compareTo(validateLogIn_result other) {
17864
      if (!getClass().equals(other.getClass())) {
17865
        return getClass().getName().compareTo(other.getClass().getName());
17866
      }
17867
 
17868
      int lastComparison = 0;
17869
      validateLogIn_result typedOther = (validateLogIn_result)other;
17870
 
17871
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17872
      if (lastComparison != 0) {
17873
        return lastComparison;
17874
      }
17875
      if (isSetSuccess()) {
17876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17877
        if (lastComparison != 0) {
17878
          return lastComparison;
17879
        }
17880
      }
17881
      return 0;
17882
    }
17883
 
17884
    public _Fields fieldForId(int fieldId) {
17885
      return _Fields.findByThriftId(fieldId);
17886
    }
17887
 
17888
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17889
      org.apache.thrift.protocol.TField field;
17890
      iprot.readStructBegin();
17891
      while (true)
17892
      {
17893
        field = iprot.readFieldBegin();
17894
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17895
          break;
17896
        }
17897
        switch (field.id) {
17898
          case 0: // SUCCESS
17899
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17900
              this.success = iprot.readBool();
17901
              setSuccessIsSet(true);
17902
            } else { 
17903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17904
            }
17905
            break;
17906
          default:
17907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17908
        }
17909
        iprot.readFieldEnd();
17910
      }
17911
      iprot.readStructEnd();
17912
      validate();
17913
    }
17914
 
17915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17916
      oprot.writeStructBegin(STRUCT_DESC);
17917
 
17918
      if (this.isSetSuccess()) {
17919
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17920
        oprot.writeBool(this.success);
17921
        oprot.writeFieldEnd();
17922
      }
17923
      oprot.writeFieldStop();
17924
      oprot.writeStructEnd();
17925
    }
17926
 
17927
    @Override
17928
    public String toString() {
17929
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17930
      boolean first = true;
17931
 
17932
      sb.append("success:");
17933
      sb.append(this.success);
17934
      first = false;
17935
      sb.append(")");
17936
      return sb.toString();
17937
    }
17938
 
17939
    public void validate() throws org.apache.thrift.TException {
17940
      // check for required fields
17941
    }
17942
 
17943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17944
      try {
17945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17946
      } catch (org.apache.thrift.TException te) {
17947
        throw new java.io.IOException(te);
17948
      }
17949
    }
17950
 
17951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17952
      try {
17953
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17954
      } catch (org.apache.thrift.TException te) {
17955
        throw new java.io.IOException(te);
17956
      }
17957
    }
17958
 
17959
  }
17960
 
17961
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17962
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17963
 
17964
    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);
17965
    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);
17966
 
17967
    private String agentEmailId; // required
17968
    private String password; // required
17969
 
17970
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17971
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17972
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17973
      PASSWORD((short)2, "password");
17974
 
17975
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17976
 
17977
      static {
17978
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17979
          byName.put(field.getFieldName(), field);
17980
        }
17981
      }
17982
 
17983
      /**
17984
       * Find the _Fields constant that matches fieldId, or null if its not found.
17985
       */
17986
      public static _Fields findByThriftId(int fieldId) {
17987
        switch(fieldId) {
17988
          case 1: // AGENT_EMAIL_ID
17989
            return AGENT_EMAIL_ID;
17990
          case 2: // PASSWORD
17991
            return PASSWORD;
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
 
18031
    // isset id assignments
18032
 
18033
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18034
    static {
18035
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18036
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18038
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18040
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18041
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
18042
    }
18043
 
18044
    public updatePasswordForAgent_args() {
18045
    }
18046
 
18047
    public updatePasswordForAgent_args(
18048
      String agentEmailId,
18049
      String password)
18050
    {
18051
      this();
18052
      this.agentEmailId = agentEmailId;
18053
      this.password = password;
18054
    }
18055
 
18056
    /**
18057
     * Performs a deep copy on <i>other</i>.
18058
     */
18059
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
18060
      if (other.isSetAgentEmailId()) {
18061
        this.agentEmailId = other.agentEmailId;
18062
      }
18063
      if (other.isSetPassword()) {
18064
        this.password = other.password;
18065
      }
18066
    }
18067
 
18068
    public updatePasswordForAgent_args deepCopy() {
18069
      return new updatePasswordForAgent_args(this);
18070
    }
18071
 
18072
    @Override
18073
    public void clear() {
18074
      this.agentEmailId = null;
18075
      this.password = null;
18076
    }
18077
 
18078
    public String getAgentEmailId() {
18079
      return this.agentEmailId;
18080
    }
18081
 
18082
    public void setAgentEmailId(String agentEmailId) {
18083
      this.agentEmailId = agentEmailId;
18084
    }
18085
 
18086
    public void unsetAgentEmailId() {
18087
      this.agentEmailId = null;
18088
    }
18089
 
18090
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18091
    public boolean isSetAgentEmailId() {
18092
      return this.agentEmailId != null;
18093
    }
18094
 
18095
    public void setAgentEmailIdIsSet(boolean value) {
18096
      if (!value) {
18097
        this.agentEmailId = null;
18098
      }
18099
    }
18100
 
18101
    public String getPassword() {
18102
      return this.password;
18103
    }
18104
 
18105
    public void setPassword(String password) {
18106
      this.password = password;
18107
    }
18108
 
18109
    public void unsetPassword() {
18110
      this.password = null;
18111
    }
18112
 
18113
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18114
    public boolean isSetPassword() {
18115
      return this.password != null;
18116
    }
18117
 
18118
    public void setPasswordIsSet(boolean value) {
18119
      if (!value) {
18120
        this.password = null;
18121
      }
18122
    }
18123
 
18124
    public void setFieldValue(_Fields field, Object value) {
18125
      switch (field) {
18126
      case AGENT_EMAIL_ID:
18127
        if (value == null) {
18128
          unsetAgentEmailId();
18129
        } else {
18130
          setAgentEmailId((String)value);
18131
        }
18132
        break;
18133
 
18134
      case PASSWORD:
18135
        if (value == null) {
18136
          unsetPassword();
18137
        } else {
18138
          setPassword((String)value);
18139
        }
18140
        break;
18141
 
18142
      }
18143
    }
18144
 
18145
    public Object getFieldValue(_Fields field) {
18146
      switch (field) {
18147
      case AGENT_EMAIL_ID:
18148
        return getAgentEmailId();
18149
 
18150
      case PASSWORD:
18151
        return getPassword();
18152
 
18153
      }
18154
      throw new IllegalStateException();
18155
    }
18156
 
18157
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18158
    public boolean isSet(_Fields field) {
18159
      if (field == null) {
18160
        throw new IllegalArgumentException();
18161
      }
18162
 
18163
      switch (field) {
18164
      case AGENT_EMAIL_ID:
18165
        return isSetAgentEmailId();
18166
      case PASSWORD:
18167
        return isSetPassword();
18168
      }
18169
      throw new IllegalStateException();
18170
    }
18171
 
18172
    @Override
18173
    public boolean equals(Object that) {
18174
      if (that == null)
18175
        return false;
18176
      if (that instanceof updatePasswordForAgent_args)
18177
        return this.equals((updatePasswordForAgent_args)that);
18178
      return false;
18179
    }
18180
 
18181
    public boolean equals(updatePasswordForAgent_args that) {
18182
      if (that == null)
18183
        return false;
18184
 
18185
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18186
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18187
      if (this_present_agentEmailId || that_present_agentEmailId) {
18188
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18189
          return false;
18190
        if (!this.agentEmailId.equals(that.agentEmailId))
18191
          return false;
18192
      }
18193
 
18194
      boolean this_present_password = true && this.isSetPassword();
18195
      boolean that_present_password = true && that.isSetPassword();
18196
      if (this_present_password || that_present_password) {
18197
        if (!(this_present_password && that_present_password))
18198
          return false;
18199
        if (!this.password.equals(that.password))
18200
          return false;
18201
      }
18202
 
18203
      return true;
18204
    }
18205
 
18206
    @Override
18207
    public int hashCode() {
18208
      return 0;
18209
    }
18210
 
18211
    public int compareTo(updatePasswordForAgent_args other) {
18212
      if (!getClass().equals(other.getClass())) {
18213
        return getClass().getName().compareTo(other.getClass().getName());
18214
      }
18215
 
18216
      int lastComparison = 0;
18217
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18218
 
18219
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18220
      if (lastComparison != 0) {
18221
        return lastComparison;
18222
      }
18223
      if (isSetAgentEmailId()) {
18224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18225
        if (lastComparison != 0) {
18226
          return lastComparison;
18227
        }
18228
      }
18229
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18230
      if (lastComparison != 0) {
18231
        return lastComparison;
18232
      }
18233
      if (isSetPassword()) {
18234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18235
        if (lastComparison != 0) {
18236
          return lastComparison;
18237
        }
18238
      }
18239
      return 0;
18240
    }
18241
 
18242
    public _Fields fieldForId(int fieldId) {
18243
      return _Fields.findByThriftId(fieldId);
18244
    }
18245
 
18246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18247
      org.apache.thrift.protocol.TField field;
18248
      iprot.readStructBegin();
18249
      while (true)
18250
      {
18251
        field = iprot.readFieldBegin();
18252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18253
          break;
18254
        }
18255
        switch (field.id) {
18256
          case 1: // AGENT_EMAIL_ID
18257
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18258
              this.agentEmailId = iprot.readString();
18259
            } else { 
18260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18261
            }
18262
            break;
18263
          case 2: // PASSWORD
18264
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18265
              this.password = iprot.readString();
18266
            } else { 
18267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18268
            }
18269
            break;
18270
          default:
18271
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18272
        }
18273
        iprot.readFieldEnd();
18274
      }
18275
      iprot.readStructEnd();
18276
      validate();
18277
    }
18278
 
18279
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18280
      validate();
18281
 
18282
      oprot.writeStructBegin(STRUCT_DESC);
18283
      if (this.agentEmailId != null) {
18284
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18285
        oprot.writeString(this.agentEmailId);
18286
        oprot.writeFieldEnd();
18287
      }
18288
      if (this.password != null) {
18289
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18290
        oprot.writeString(this.password);
18291
        oprot.writeFieldEnd();
18292
      }
18293
      oprot.writeFieldStop();
18294
      oprot.writeStructEnd();
18295
    }
18296
 
18297
    @Override
18298
    public String toString() {
18299
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18300
      boolean first = true;
18301
 
18302
      sb.append("agentEmailId:");
18303
      if (this.agentEmailId == null) {
18304
        sb.append("null");
18305
      } else {
18306
        sb.append(this.agentEmailId);
18307
      }
18308
      first = false;
18309
      if (!first) sb.append(", ");
18310
      sb.append("password:");
18311
      if (this.password == null) {
18312
        sb.append("null");
18313
      } else {
18314
        sb.append(this.password);
18315
      }
18316
      first = false;
18317
      sb.append(")");
18318
      return sb.toString();
18319
    }
18320
 
18321
    public void validate() throws org.apache.thrift.TException {
18322
      // check for required fields
18323
    }
18324
 
18325
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18326
      try {
18327
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18328
      } catch (org.apache.thrift.TException te) {
18329
        throw new java.io.IOException(te);
18330
      }
18331
    }
18332
 
18333
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18334
      try {
18335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18336
      } catch (org.apache.thrift.TException te) {
18337
        throw new java.io.IOException(te);
18338
      }
18339
    }
18340
 
18341
  }
18342
 
18343
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18345
 
18346
 
18347
 
18348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18349
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18350
;
18351
 
18352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18353
 
18354
      static {
18355
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18356
          byName.put(field.getFieldName(), field);
18357
        }
18358
      }
18359
 
18360
      /**
18361
       * Find the _Fields constant that matches fieldId, or null if its not found.
18362
       */
18363
      public static _Fields findByThriftId(int fieldId) {
18364
        switch(fieldId) {
18365
          default:
18366
            return null;
18367
        }
18368
      }
18369
 
18370
      /**
18371
       * Find the _Fields constant that matches fieldId, throwing an exception
18372
       * if it is not found.
18373
       */
18374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18375
        _Fields fields = findByThriftId(fieldId);
18376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18377
        return fields;
18378
      }
18379
 
18380
      /**
18381
       * Find the _Fields constant that matches name, or null if its not found.
18382
       */
18383
      public static _Fields findByName(String name) {
18384
        return byName.get(name);
18385
      }
18386
 
18387
      private final short _thriftId;
18388
      private final String _fieldName;
18389
 
18390
      _Fields(short thriftId, String fieldName) {
18391
        _thriftId = thriftId;
18392
        _fieldName = fieldName;
18393
      }
18394
 
18395
      public short getThriftFieldId() {
18396
        return _thriftId;
18397
      }
18398
 
18399
      public String getFieldName() {
18400
        return _fieldName;
18401
      }
18402
    }
18403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18404
    static {
18405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18408
    }
18409
 
18410
    public updatePasswordForAgent_result() {
18411
    }
18412
 
18413
    /**
18414
     * Performs a deep copy on <i>other</i>.
18415
     */
18416
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18417
    }
18418
 
18419
    public updatePasswordForAgent_result deepCopy() {
18420
      return new updatePasswordForAgent_result(this);
18421
    }
18422
 
18423
    @Override
18424
    public void clear() {
18425
    }
18426
 
18427
    public void setFieldValue(_Fields field, Object value) {
18428
      switch (field) {
18429
      }
18430
    }
18431
 
18432
    public Object getFieldValue(_Fields field) {
18433
      switch (field) {
18434
      }
18435
      throw new IllegalStateException();
18436
    }
18437
 
18438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18439
    public boolean isSet(_Fields field) {
18440
      if (field == null) {
18441
        throw new IllegalArgumentException();
18442
      }
18443
 
18444
      switch (field) {
18445
      }
18446
      throw new IllegalStateException();
18447
    }
18448
 
18449
    @Override
18450
    public boolean equals(Object that) {
18451
      if (that == null)
18452
        return false;
18453
      if (that instanceof updatePasswordForAgent_result)
18454
        return this.equals((updatePasswordForAgent_result)that);
18455
      return false;
18456
    }
18457
 
18458
    public boolean equals(updatePasswordForAgent_result that) {
18459
      if (that == null)
18460
        return false;
18461
 
18462
      return true;
18463
    }
18464
 
18465
    @Override
18466
    public int hashCode() {
18467
      return 0;
18468
    }
18469
 
18470
    public int compareTo(updatePasswordForAgent_result other) {
18471
      if (!getClass().equals(other.getClass())) {
18472
        return getClass().getName().compareTo(other.getClass().getName());
18473
      }
18474
 
18475
      int lastComparison = 0;
18476
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18477
 
18478
      return 0;
18479
    }
18480
 
18481
    public _Fields fieldForId(int fieldId) {
18482
      return _Fields.findByThriftId(fieldId);
18483
    }
18484
 
18485
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18486
      org.apache.thrift.protocol.TField field;
18487
      iprot.readStructBegin();
18488
      while (true)
18489
      {
18490
        field = iprot.readFieldBegin();
18491
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18492
          break;
18493
        }
18494
        switch (field.id) {
18495
          default:
18496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18497
        }
18498
        iprot.readFieldEnd();
18499
      }
18500
      iprot.readStructEnd();
18501
      validate();
18502
    }
18503
 
18504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18505
      oprot.writeStructBegin(STRUCT_DESC);
18506
 
18507
      oprot.writeFieldStop();
18508
      oprot.writeStructEnd();
18509
    }
18510
 
18511
    @Override
18512
    public String toString() {
18513
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18514
      boolean first = true;
18515
 
18516
      sb.append(")");
18517
      return sb.toString();
18518
    }
18519
 
18520
    public void validate() throws org.apache.thrift.TException {
18521
      // check for required fields
18522
    }
18523
 
18524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18525
      try {
18526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18527
      } catch (org.apache.thrift.TException te) {
18528
        throw new java.io.IOException(te);
18529
      }
18530
    }
18531
 
18532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18533
      try {
18534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18535
      } catch (org.apache.thrift.TException te) {
18536
        throw new java.io.IOException(te);
18537
      }
18538
    }
18539
 
18540
  }
18541
 
18542
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18544
 
18545
    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);
18546
 
18547
    private String agentEmailId; // required
18548
 
18549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18551
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18552
 
18553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18554
 
18555
      static {
18556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18557
          byName.put(field.getFieldName(), field);
18558
        }
18559
      }
18560
 
18561
      /**
18562
       * Find the _Fields constant that matches fieldId, or null if its not found.
18563
       */
18564
      public static _Fields findByThriftId(int fieldId) {
18565
        switch(fieldId) {
18566
          case 1: // AGENT_EMAIL_ID
18567
            return AGENT_EMAIL_ID;
18568
          default:
18569
            return null;
18570
        }
18571
      }
18572
 
18573
      /**
18574
       * Find the _Fields constant that matches fieldId, throwing an exception
18575
       * if it is not found.
18576
       */
18577
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18578
        _Fields fields = findByThriftId(fieldId);
18579
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18580
        return fields;
18581
      }
18582
 
18583
      /**
18584
       * Find the _Fields constant that matches name, or null if its not found.
18585
       */
18586
      public static _Fields findByName(String name) {
18587
        return byName.get(name);
18588
      }
18589
 
18590
      private final short _thriftId;
18591
      private final String _fieldName;
18592
 
18593
      _Fields(short thriftId, String fieldName) {
18594
        _thriftId = thriftId;
18595
        _fieldName = fieldName;
18596
      }
18597
 
18598
      public short getThriftFieldId() {
18599
        return _thriftId;
18600
      }
18601
 
18602
      public String getFieldName() {
18603
        return _fieldName;
18604
      }
18605
    }
18606
 
18607
    // isset id assignments
18608
 
18609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18610
    static {
18611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18612
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18616
    }
18617
 
18618
    public getRoleNamesForAgent_args() {
18619
    }
18620
 
18621
    public getRoleNamesForAgent_args(
18622
      String agentEmailId)
18623
    {
18624
      this();
18625
      this.agentEmailId = agentEmailId;
18626
    }
18627
 
18628
    /**
18629
     * Performs a deep copy on <i>other</i>.
18630
     */
18631
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18632
      if (other.isSetAgentEmailId()) {
18633
        this.agentEmailId = other.agentEmailId;
18634
      }
18635
    }
18636
 
18637
    public getRoleNamesForAgent_args deepCopy() {
18638
      return new getRoleNamesForAgent_args(this);
18639
    }
18640
 
18641
    @Override
18642
    public void clear() {
18643
      this.agentEmailId = null;
18644
    }
18645
 
18646
    public String getAgentEmailId() {
18647
      return this.agentEmailId;
18648
    }
18649
 
18650
    public void setAgentEmailId(String agentEmailId) {
18651
      this.agentEmailId = agentEmailId;
18652
    }
18653
 
18654
    public void unsetAgentEmailId() {
18655
      this.agentEmailId = null;
18656
    }
18657
 
18658
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18659
    public boolean isSetAgentEmailId() {
18660
      return this.agentEmailId != null;
18661
    }
18662
 
18663
    public void setAgentEmailIdIsSet(boolean value) {
18664
      if (!value) {
18665
        this.agentEmailId = null;
18666
      }
18667
    }
18668
 
18669
    public void setFieldValue(_Fields field, Object value) {
18670
      switch (field) {
18671
      case AGENT_EMAIL_ID:
18672
        if (value == null) {
18673
          unsetAgentEmailId();
18674
        } else {
18675
          setAgentEmailId((String)value);
18676
        }
18677
        break;
18678
 
18679
      }
18680
    }
18681
 
18682
    public Object getFieldValue(_Fields field) {
18683
      switch (field) {
18684
      case AGENT_EMAIL_ID:
18685
        return getAgentEmailId();
18686
 
18687
      }
18688
      throw new IllegalStateException();
18689
    }
18690
 
18691
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18692
    public boolean isSet(_Fields field) {
18693
      if (field == null) {
18694
        throw new IllegalArgumentException();
18695
      }
18696
 
18697
      switch (field) {
18698
      case AGENT_EMAIL_ID:
18699
        return isSetAgentEmailId();
18700
      }
18701
      throw new IllegalStateException();
18702
    }
18703
 
18704
    @Override
18705
    public boolean equals(Object that) {
18706
      if (that == null)
18707
        return false;
18708
      if (that instanceof getRoleNamesForAgent_args)
18709
        return this.equals((getRoleNamesForAgent_args)that);
18710
      return false;
18711
    }
18712
 
18713
    public boolean equals(getRoleNamesForAgent_args that) {
18714
      if (that == null)
18715
        return false;
18716
 
18717
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18718
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18719
      if (this_present_agentEmailId || that_present_agentEmailId) {
18720
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18721
          return false;
18722
        if (!this.agentEmailId.equals(that.agentEmailId))
18723
          return false;
18724
      }
18725
 
18726
      return true;
18727
    }
18728
 
18729
    @Override
18730
    public int hashCode() {
18731
      return 0;
18732
    }
18733
 
18734
    public int compareTo(getRoleNamesForAgent_args other) {
18735
      if (!getClass().equals(other.getClass())) {
18736
        return getClass().getName().compareTo(other.getClass().getName());
18737
      }
18738
 
18739
      int lastComparison = 0;
18740
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18741
 
18742
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18743
      if (lastComparison != 0) {
18744
        return lastComparison;
18745
      }
18746
      if (isSetAgentEmailId()) {
18747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18748
        if (lastComparison != 0) {
18749
          return lastComparison;
18750
        }
18751
      }
18752
      return 0;
18753
    }
18754
 
18755
    public _Fields fieldForId(int fieldId) {
18756
      return _Fields.findByThriftId(fieldId);
18757
    }
18758
 
18759
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18760
      org.apache.thrift.protocol.TField field;
18761
      iprot.readStructBegin();
18762
      while (true)
18763
      {
18764
        field = iprot.readFieldBegin();
18765
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18766
          break;
18767
        }
18768
        switch (field.id) {
18769
          case 1: // AGENT_EMAIL_ID
18770
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18771
              this.agentEmailId = iprot.readString();
18772
            } else { 
18773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18774
            }
18775
            break;
18776
          default:
18777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18778
        }
18779
        iprot.readFieldEnd();
18780
      }
18781
      iprot.readStructEnd();
18782
      validate();
18783
    }
18784
 
18785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18786
      validate();
18787
 
18788
      oprot.writeStructBegin(STRUCT_DESC);
18789
      if (this.agentEmailId != null) {
18790
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18791
        oprot.writeString(this.agentEmailId);
18792
        oprot.writeFieldEnd();
18793
      }
18794
      oprot.writeFieldStop();
18795
      oprot.writeStructEnd();
18796
    }
18797
 
18798
    @Override
18799
    public String toString() {
18800
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18801
      boolean first = true;
18802
 
18803
      sb.append("agentEmailId:");
18804
      if (this.agentEmailId == null) {
18805
        sb.append("null");
18806
      } else {
18807
        sb.append(this.agentEmailId);
18808
      }
18809
      first = false;
18810
      sb.append(")");
18811
      return sb.toString();
18812
    }
18813
 
18814
    public void validate() throws org.apache.thrift.TException {
18815
      // check for required fields
18816
    }
18817
 
18818
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18819
      try {
18820
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18821
      } catch (org.apache.thrift.TException te) {
18822
        throw new java.io.IOException(te);
18823
      }
18824
    }
18825
 
18826
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18827
      try {
18828
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18829
      } catch (org.apache.thrift.TException te) {
18830
        throw new java.io.IOException(te);
18831
      }
18832
    }
18833
 
18834
  }
18835
 
18836
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18837
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18838
 
18839
    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);
18840
 
18841
    private List<String> success; // required
18842
 
18843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18845
      SUCCESS((short)0, "success");
18846
 
18847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18848
 
18849
      static {
18850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18851
          byName.put(field.getFieldName(), field);
18852
        }
18853
      }
18854
 
18855
      /**
18856
       * Find the _Fields constant that matches fieldId, or null if its not found.
18857
       */
18858
      public static _Fields findByThriftId(int fieldId) {
18859
        switch(fieldId) {
18860
          case 0: // SUCCESS
18861
            return SUCCESS;
18862
          default:
18863
            return null;
18864
        }
18865
      }
18866
 
18867
      /**
18868
       * Find the _Fields constant that matches fieldId, throwing an exception
18869
       * if it is not found.
18870
       */
18871
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18872
        _Fields fields = findByThriftId(fieldId);
18873
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18874
        return fields;
18875
      }
18876
 
18877
      /**
18878
       * Find the _Fields constant that matches name, or null if its not found.
18879
       */
18880
      public static _Fields findByName(String name) {
18881
        return byName.get(name);
18882
      }
18883
 
18884
      private final short _thriftId;
18885
      private final String _fieldName;
18886
 
18887
      _Fields(short thriftId, String fieldName) {
18888
        _thriftId = thriftId;
18889
        _fieldName = fieldName;
18890
      }
18891
 
18892
      public short getThriftFieldId() {
18893
        return _thriftId;
18894
      }
18895
 
18896
      public String getFieldName() {
18897
        return _fieldName;
18898
      }
18899
    }
18900
 
18901
    // isset id assignments
18902
 
18903
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18904
    static {
18905
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18906
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18907
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18908
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18911
    }
18912
 
18913
    public getRoleNamesForAgent_result() {
18914
    }
18915
 
18916
    public getRoleNamesForAgent_result(
18917
      List<String> success)
18918
    {
18919
      this();
18920
      this.success = success;
18921
    }
18922
 
18923
    /**
18924
     * Performs a deep copy on <i>other</i>.
18925
     */
18926
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18927
      if (other.isSetSuccess()) {
18928
        List<String> __this__success = new ArrayList<String>();
18929
        for (String other_element : other.success) {
18930
          __this__success.add(other_element);
18931
        }
18932
        this.success = __this__success;
18933
      }
18934
    }
18935
 
18936
    public getRoleNamesForAgent_result deepCopy() {
18937
      return new getRoleNamesForAgent_result(this);
18938
    }
18939
 
18940
    @Override
18941
    public void clear() {
18942
      this.success = null;
18943
    }
18944
 
18945
    public int getSuccessSize() {
18946
      return (this.success == null) ? 0 : this.success.size();
18947
    }
18948
 
18949
    public java.util.Iterator<String> getSuccessIterator() {
18950
      return (this.success == null) ? null : this.success.iterator();
18951
    }
18952
 
18953
    public void addToSuccess(String elem) {
18954
      if (this.success == null) {
18955
        this.success = new ArrayList<String>();
18956
      }
18957
      this.success.add(elem);
18958
    }
18959
 
18960
    public List<String> getSuccess() {
18961
      return this.success;
18962
    }
18963
 
18964
    public void setSuccess(List<String> success) {
18965
      this.success = success;
18966
    }
18967
 
18968
    public void unsetSuccess() {
18969
      this.success = null;
18970
    }
18971
 
18972
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18973
    public boolean isSetSuccess() {
18974
      return this.success != null;
18975
    }
18976
 
18977
    public void setSuccessIsSet(boolean value) {
18978
      if (!value) {
18979
        this.success = null;
18980
      }
18981
    }
18982
 
18983
    public void setFieldValue(_Fields field, Object value) {
18984
      switch (field) {
18985
      case SUCCESS:
18986
        if (value == null) {
18987
          unsetSuccess();
18988
        } else {
18989
          setSuccess((List<String>)value);
18990
        }
18991
        break;
18992
 
18993
      }
18994
    }
18995
 
18996
    public Object getFieldValue(_Fields field) {
18997
      switch (field) {
18998
      case SUCCESS:
18999
        return getSuccess();
19000
 
19001
      }
19002
      throw new IllegalStateException();
19003
    }
19004
 
19005
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19006
    public boolean isSet(_Fields field) {
19007
      if (field == null) {
19008
        throw new IllegalArgumentException();
19009
      }
19010
 
19011
      switch (field) {
19012
      case SUCCESS:
19013
        return isSetSuccess();
19014
      }
19015
      throw new IllegalStateException();
19016
    }
19017
 
19018
    @Override
19019
    public boolean equals(Object that) {
19020
      if (that == null)
19021
        return false;
19022
      if (that instanceof getRoleNamesForAgent_result)
19023
        return this.equals((getRoleNamesForAgent_result)that);
19024
      return false;
19025
    }
19026
 
19027
    public boolean equals(getRoleNamesForAgent_result that) {
19028
      if (that == null)
19029
        return false;
19030
 
19031
      boolean this_present_success = true && this.isSetSuccess();
19032
      boolean that_present_success = true && that.isSetSuccess();
19033
      if (this_present_success || that_present_success) {
19034
        if (!(this_present_success && that_present_success))
19035
          return false;
19036
        if (!this.success.equals(that.success))
19037
          return false;
19038
      }
19039
 
19040
      return true;
19041
    }
19042
 
19043
    @Override
19044
    public int hashCode() {
19045
      return 0;
19046
    }
19047
 
19048
    public int compareTo(getRoleNamesForAgent_result other) {
19049
      if (!getClass().equals(other.getClass())) {
19050
        return getClass().getName().compareTo(other.getClass().getName());
19051
      }
19052
 
19053
      int lastComparison = 0;
19054
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
19055
 
19056
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19057
      if (lastComparison != 0) {
19058
        return lastComparison;
19059
      }
19060
      if (isSetSuccess()) {
19061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19062
        if (lastComparison != 0) {
19063
          return lastComparison;
19064
        }
19065
      }
19066
      return 0;
19067
    }
19068
 
19069
    public _Fields fieldForId(int fieldId) {
19070
      return _Fields.findByThriftId(fieldId);
19071
    }
19072
 
19073
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19074
      org.apache.thrift.protocol.TField field;
19075
      iprot.readStructBegin();
19076
      while (true)
19077
      {
19078
        field = iprot.readFieldBegin();
19079
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19080
          break;
19081
        }
19082
        switch (field.id) {
19083
          case 0: // SUCCESS
19084
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19085
              {
5864 rajveer 19086
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
19087
                this.success = new ArrayList<String>(_list53.size);
19088
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 19089
                {
5864 rajveer 19090
                  String _elem55; // required
19091
                  _elem55 = iprot.readString();
19092
                  this.success.add(_elem55);
4693 mandeep.dh 19093
                }
19094
                iprot.readListEnd();
19095
              }
19096
            } else { 
19097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19098
            }
19099
            break;
19100
          default:
19101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19102
        }
19103
        iprot.readFieldEnd();
19104
      }
19105
      iprot.readStructEnd();
19106
      validate();
19107
    }
19108
 
19109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19110
      oprot.writeStructBegin(STRUCT_DESC);
19111
 
19112
      if (this.isSetSuccess()) {
19113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19114
        {
19115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19116
          for (String _iter56 : this.success)
4693 mandeep.dh 19117
          {
5864 rajveer 19118
            oprot.writeString(_iter56);
4693 mandeep.dh 19119
          }
19120
          oprot.writeListEnd();
19121
        }
19122
        oprot.writeFieldEnd();
19123
      }
19124
      oprot.writeFieldStop();
19125
      oprot.writeStructEnd();
19126
    }
19127
 
19128
    @Override
19129
    public String toString() {
19130
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19131
      boolean first = true;
19132
 
19133
      sb.append("success:");
19134
      if (this.success == null) {
19135
        sb.append("null");
19136
      } else {
19137
        sb.append(this.success);
19138
      }
19139
      first = false;
19140
      sb.append(")");
19141
      return sb.toString();
19142
    }
19143
 
19144
    public void validate() throws org.apache.thrift.TException {
19145
      // check for required fields
19146
    }
19147
 
19148
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19149
      try {
19150
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19151
      } catch (org.apache.thrift.TException te) {
19152
        throw new java.io.IOException(te);
19153
      }
19154
    }
19155
 
19156
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19157
      try {
19158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19159
      } catch (org.apache.thrift.TException te) {
19160
        throw new java.io.IOException(te);
19161
      }
19162
    }
19163
 
19164
  }
19165
 
19166
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19168
 
19169
    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);
19170
 
19171
    private String roleName; // required
19172
 
19173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19175
      ROLE_NAME((short)1, "roleName");
19176
 
19177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19178
 
19179
      static {
19180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19181
          byName.put(field.getFieldName(), field);
19182
        }
19183
      }
19184
 
19185
      /**
19186
       * Find the _Fields constant that matches fieldId, or null if its not found.
19187
       */
19188
      public static _Fields findByThriftId(int fieldId) {
19189
        switch(fieldId) {
19190
          case 1: // ROLE_NAME
19191
            return ROLE_NAME;
19192
          default:
19193
            return null;
19194
        }
19195
      }
19196
 
19197
      /**
19198
       * Find the _Fields constant that matches fieldId, throwing an exception
19199
       * if it is not found.
19200
       */
19201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19202
        _Fields fields = findByThriftId(fieldId);
19203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19204
        return fields;
19205
      }
19206
 
19207
      /**
19208
       * Find the _Fields constant that matches name, or null if its not found.
19209
       */
19210
      public static _Fields findByName(String name) {
19211
        return byName.get(name);
19212
      }
19213
 
19214
      private final short _thriftId;
19215
      private final String _fieldName;
19216
 
19217
      _Fields(short thriftId, String fieldName) {
19218
        _thriftId = thriftId;
19219
        _fieldName = fieldName;
19220
      }
19221
 
19222
      public short getThriftFieldId() {
19223
        return _thriftId;
19224
      }
19225
 
19226
      public String getFieldName() {
19227
        return _fieldName;
19228
      }
19229
    }
19230
 
19231
    // isset id assignments
19232
 
19233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19234
    static {
19235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19236
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19240
    }
19241
 
19242
    public getPermissionsForRoleName_args() {
19243
    }
19244
 
19245
    public getPermissionsForRoleName_args(
19246
      String roleName)
19247
    {
19248
      this();
19249
      this.roleName = roleName;
19250
    }
19251
 
19252
    /**
19253
     * Performs a deep copy on <i>other</i>.
19254
     */
19255
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19256
      if (other.isSetRoleName()) {
19257
        this.roleName = other.roleName;
19258
      }
19259
    }
19260
 
19261
    public getPermissionsForRoleName_args deepCopy() {
19262
      return new getPermissionsForRoleName_args(this);
19263
    }
19264
 
19265
    @Override
19266
    public void clear() {
19267
      this.roleName = null;
19268
    }
19269
 
19270
    public String getRoleName() {
19271
      return this.roleName;
19272
    }
19273
 
19274
    public void setRoleName(String roleName) {
19275
      this.roleName = roleName;
19276
    }
19277
 
19278
    public void unsetRoleName() {
19279
      this.roleName = null;
19280
    }
19281
 
19282
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19283
    public boolean isSetRoleName() {
19284
      return this.roleName != null;
19285
    }
19286
 
19287
    public void setRoleNameIsSet(boolean value) {
19288
      if (!value) {
19289
        this.roleName = null;
19290
      }
19291
    }
19292
 
19293
    public void setFieldValue(_Fields field, Object value) {
19294
      switch (field) {
19295
      case ROLE_NAME:
19296
        if (value == null) {
19297
          unsetRoleName();
19298
        } else {
19299
          setRoleName((String)value);
19300
        }
19301
        break;
19302
 
19303
      }
19304
    }
19305
 
19306
    public Object getFieldValue(_Fields field) {
19307
      switch (field) {
19308
      case ROLE_NAME:
19309
        return getRoleName();
19310
 
19311
      }
19312
      throw new IllegalStateException();
19313
    }
19314
 
19315
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19316
    public boolean isSet(_Fields field) {
19317
      if (field == null) {
19318
        throw new IllegalArgumentException();
19319
      }
19320
 
19321
      switch (field) {
19322
      case ROLE_NAME:
19323
        return isSetRoleName();
19324
      }
19325
      throw new IllegalStateException();
19326
    }
19327
 
19328
    @Override
19329
    public boolean equals(Object that) {
19330
      if (that == null)
19331
        return false;
19332
      if (that instanceof getPermissionsForRoleName_args)
19333
        return this.equals((getPermissionsForRoleName_args)that);
19334
      return false;
19335
    }
19336
 
19337
    public boolean equals(getPermissionsForRoleName_args that) {
19338
      if (that == null)
19339
        return false;
19340
 
19341
      boolean this_present_roleName = true && this.isSetRoleName();
19342
      boolean that_present_roleName = true && that.isSetRoleName();
19343
      if (this_present_roleName || that_present_roleName) {
19344
        if (!(this_present_roleName && that_present_roleName))
19345
          return false;
19346
        if (!this.roleName.equals(that.roleName))
19347
          return false;
19348
      }
19349
 
19350
      return true;
19351
    }
19352
 
19353
    @Override
19354
    public int hashCode() {
19355
      return 0;
19356
    }
19357
 
19358
    public int compareTo(getPermissionsForRoleName_args other) {
19359
      if (!getClass().equals(other.getClass())) {
19360
        return getClass().getName().compareTo(other.getClass().getName());
19361
      }
19362
 
19363
      int lastComparison = 0;
19364
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19365
 
19366
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19367
      if (lastComparison != 0) {
19368
        return lastComparison;
19369
      }
19370
      if (isSetRoleName()) {
19371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19372
        if (lastComparison != 0) {
19373
          return lastComparison;
19374
        }
19375
      }
19376
      return 0;
19377
    }
19378
 
19379
    public _Fields fieldForId(int fieldId) {
19380
      return _Fields.findByThriftId(fieldId);
19381
    }
19382
 
19383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19384
      org.apache.thrift.protocol.TField field;
19385
      iprot.readStructBegin();
19386
      while (true)
19387
      {
19388
        field = iprot.readFieldBegin();
19389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19390
          break;
19391
        }
19392
        switch (field.id) {
19393
          case 1: // ROLE_NAME
19394
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19395
              this.roleName = iprot.readString();
19396
            } else { 
19397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19398
            }
19399
            break;
19400
          default:
19401
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19402
        }
19403
        iprot.readFieldEnd();
19404
      }
19405
      iprot.readStructEnd();
19406
      validate();
19407
    }
19408
 
19409
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19410
      validate();
19411
 
19412
      oprot.writeStructBegin(STRUCT_DESC);
19413
      if (this.roleName != null) {
19414
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19415
        oprot.writeString(this.roleName);
19416
        oprot.writeFieldEnd();
19417
      }
19418
      oprot.writeFieldStop();
19419
      oprot.writeStructEnd();
19420
    }
19421
 
19422
    @Override
19423
    public String toString() {
19424
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19425
      boolean first = true;
19426
 
19427
      sb.append("roleName:");
19428
      if (this.roleName == null) {
19429
        sb.append("null");
19430
      } else {
19431
        sb.append(this.roleName);
19432
      }
19433
      first = false;
19434
      sb.append(")");
19435
      return sb.toString();
19436
    }
19437
 
19438
    public void validate() throws org.apache.thrift.TException {
19439
      // check for required fields
19440
    }
19441
 
19442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19443
      try {
19444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19445
      } catch (org.apache.thrift.TException te) {
19446
        throw new java.io.IOException(te);
19447
      }
19448
    }
19449
 
19450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19451
      try {
19452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19453
      } catch (org.apache.thrift.TException te) {
19454
        throw new java.io.IOException(te);
19455
      }
19456
    }
19457
 
19458
  }
19459
 
19460
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19462
 
19463
    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);
19464
 
19465
    private List<String> success; // required
19466
 
19467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19469
      SUCCESS((short)0, "success");
19470
 
19471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19472
 
19473
      static {
19474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19475
          byName.put(field.getFieldName(), field);
19476
        }
19477
      }
19478
 
19479
      /**
19480
       * Find the _Fields constant that matches fieldId, or null if its not found.
19481
       */
19482
      public static _Fields findByThriftId(int fieldId) {
19483
        switch(fieldId) {
19484
          case 0: // SUCCESS
19485
            return SUCCESS;
19486
          default:
19487
            return null;
19488
        }
19489
      }
19490
 
19491
      /**
19492
       * Find the _Fields constant that matches fieldId, throwing an exception
19493
       * if it is not found.
19494
       */
19495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19496
        _Fields fields = findByThriftId(fieldId);
19497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19498
        return fields;
19499
      }
19500
 
19501
      /**
19502
       * Find the _Fields constant that matches name, or null if its not found.
19503
       */
19504
      public static _Fields findByName(String name) {
19505
        return byName.get(name);
19506
      }
19507
 
19508
      private final short _thriftId;
19509
      private final String _fieldName;
19510
 
19511
      _Fields(short thriftId, String fieldName) {
19512
        _thriftId = thriftId;
19513
        _fieldName = fieldName;
19514
      }
19515
 
19516
      public short getThriftFieldId() {
19517
        return _thriftId;
19518
      }
19519
 
19520
      public String getFieldName() {
19521
        return _fieldName;
19522
      }
19523
    }
19524
 
19525
    // isset id assignments
19526
 
19527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19528
    static {
19529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19530
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19531
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19532
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19535
    }
19536
 
19537
    public getPermissionsForRoleName_result() {
19538
    }
19539
 
19540
    public getPermissionsForRoleName_result(
19541
      List<String> success)
19542
    {
19543
      this();
19544
      this.success = success;
19545
    }
19546
 
19547
    /**
19548
     * Performs a deep copy on <i>other</i>.
19549
     */
19550
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19551
      if (other.isSetSuccess()) {
19552
        List<String> __this__success = new ArrayList<String>();
19553
        for (String other_element : other.success) {
19554
          __this__success.add(other_element);
19555
        }
19556
        this.success = __this__success;
19557
      }
19558
    }
19559
 
19560
    public getPermissionsForRoleName_result deepCopy() {
19561
      return new getPermissionsForRoleName_result(this);
19562
    }
19563
 
19564
    @Override
19565
    public void clear() {
19566
      this.success = null;
19567
    }
19568
 
19569
    public int getSuccessSize() {
19570
      return (this.success == null) ? 0 : this.success.size();
19571
    }
19572
 
19573
    public java.util.Iterator<String> getSuccessIterator() {
19574
      return (this.success == null) ? null : this.success.iterator();
19575
    }
19576
 
19577
    public void addToSuccess(String elem) {
19578
      if (this.success == null) {
19579
        this.success = new ArrayList<String>();
19580
      }
19581
      this.success.add(elem);
19582
    }
19583
 
19584
    public List<String> getSuccess() {
19585
      return this.success;
19586
    }
19587
 
19588
    public void setSuccess(List<String> success) {
19589
      this.success = success;
19590
    }
19591
 
19592
    public void unsetSuccess() {
19593
      this.success = null;
19594
    }
19595
 
19596
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19597
    public boolean isSetSuccess() {
19598
      return this.success != null;
19599
    }
19600
 
19601
    public void setSuccessIsSet(boolean value) {
19602
      if (!value) {
19603
        this.success = null;
19604
      }
19605
    }
19606
 
19607
    public void setFieldValue(_Fields field, Object value) {
19608
      switch (field) {
19609
      case SUCCESS:
19610
        if (value == null) {
19611
          unsetSuccess();
19612
        } else {
19613
          setSuccess((List<String>)value);
19614
        }
19615
        break;
19616
 
19617
      }
19618
    }
19619
 
19620
    public Object getFieldValue(_Fields field) {
19621
      switch (field) {
19622
      case SUCCESS:
19623
        return getSuccess();
19624
 
19625
      }
19626
      throw new IllegalStateException();
19627
    }
19628
 
19629
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19630
    public boolean isSet(_Fields field) {
19631
      if (field == null) {
19632
        throw new IllegalArgumentException();
19633
      }
19634
 
19635
      switch (field) {
19636
      case SUCCESS:
19637
        return isSetSuccess();
19638
      }
19639
      throw new IllegalStateException();
19640
    }
19641
 
19642
    @Override
19643
    public boolean equals(Object that) {
19644
      if (that == null)
19645
        return false;
19646
      if (that instanceof getPermissionsForRoleName_result)
19647
        return this.equals((getPermissionsForRoleName_result)that);
19648
      return false;
19649
    }
19650
 
19651
    public boolean equals(getPermissionsForRoleName_result that) {
19652
      if (that == null)
19653
        return false;
19654
 
19655
      boolean this_present_success = true && this.isSetSuccess();
19656
      boolean that_present_success = true && that.isSetSuccess();
19657
      if (this_present_success || that_present_success) {
19658
        if (!(this_present_success && that_present_success))
19659
          return false;
19660
        if (!this.success.equals(that.success))
19661
          return false;
19662
      }
19663
 
19664
      return true;
19665
    }
19666
 
19667
    @Override
19668
    public int hashCode() {
19669
      return 0;
19670
    }
19671
 
19672
    public int compareTo(getPermissionsForRoleName_result other) {
19673
      if (!getClass().equals(other.getClass())) {
19674
        return getClass().getName().compareTo(other.getClass().getName());
19675
      }
19676
 
19677
      int lastComparison = 0;
19678
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19679
 
19680
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19681
      if (lastComparison != 0) {
19682
        return lastComparison;
19683
      }
19684
      if (isSetSuccess()) {
19685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19686
        if (lastComparison != 0) {
19687
          return lastComparison;
19688
        }
19689
      }
19690
      return 0;
19691
    }
19692
 
19693
    public _Fields fieldForId(int fieldId) {
19694
      return _Fields.findByThriftId(fieldId);
19695
    }
19696
 
19697
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19698
      org.apache.thrift.protocol.TField field;
19699
      iprot.readStructBegin();
19700
      while (true)
19701
      {
19702
        field = iprot.readFieldBegin();
19703
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19704
          break;
19705
        }
19706
        switch (field.id) {
19707
          case 0: // SUCCESS
19708
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19709
              {
5864 rajveer 19710
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19711
                this.success = new ArrayList<String>(_list57.size);
19712
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19713
                {
5864 rajveer 19714
                  String _elem59; // required
19715
                  _elem59 = iprot.readString();
19716
                  this.success.add(_elem59);
4693 mandeep.dh 19717
                }
19718
                iprot.readListEnd();
19719
              }
19720
            } else { 
19721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19722
            }
19723
            break;
19724
          default:
19725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19726
        }
19727
        iprot.readFieldEnd();
19728
      }
19729
      iprot.readStructEnd();
19730
      validate();
19731
    }
19732
 
19733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19734
      oprot.writeStructBegin(STRUCT_DESC);
19735
 
19736
      if (this.isSetSuccess()) {
19737
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19738
        {
19739
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19740
          for (String _iter60 : this.success)
4693 mandeep.dh 19741
          {
5864 rajveer 19742
            oprot.writeString(_iter60);
4693 mandeep.dh 19743
          }
19744
          oprot.writeListEnd();
19745
        }
19746
        oprot.writeFieldEnd();
19747
      }
19748
      oprot.writeFieldStop();
19749
      oprot.writeStructEnd();
19750
    }
19751
 
19752
    @Override
19753
    public String toString() {
19754
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19755
      boolean first = true;
19756
 
19757
      sb.append("success:");
19758
      if (this.success == null) {
19759
        sb.append("null");
19760
      } else {
19761
        sb.append(this.success);
19762
      }
19763
      first = false;
19764
      sb.append(")");
19765
      return sb.toString();
19766
    }
19767
 
19768
    public void validate() throws org.apache.thrift.TException {
19769
      // check for required fields
19770
    }
19771
 
19772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19773
      try {
19774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19775
      } catch (org.apache.thrift.TException te) {
19776
        throw new java.io.IOException(te);
19777
      }
19778
    }
19779
 
19780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19781
      try {
19782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19783
      } catch (org.apache.thrift.TException te) {
19784
        throw new java.io.IOException(te);
19785
      }
19786
    }
19787
 
19788
  }
19789
 
4806 varun.gupt 19790
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19792
 
19793
    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);
19794
    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);
19795
 
19796
    private String url; // required
19797
    private String text; // required
19798
 
19799
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19800
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19801
      URL((short)1, "url"),
19802
      TEXT((short)2, "text");
19803
 
19804
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19805
 
19806
      static {
19807
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19808
          byName.put(field.getFieldName(), field);
19809
        }
19810
      }
19811
 
19812
      /**
19813
       * Find the _Fields constant that matches fieldId, or null if its not found.
19814
       */
19815
      public static _Fields findByThriftId(int fieldId) {
19816
        switch(fieldId) {
19817
          case 1: // URL
19818
            return URL;
19819
          case 2: // TEXT
19820
            return TEXT;
19821
          default:
19822
            return null;
19823
        }
19824
      }
19825
 
19826
      /**
19827
       * Find the _Fields constant that matches fieldId, throwing an exception
19828
       * if it is not found.
19829
       */
19830
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19831
        _Fields fields = findByThriftId(fieldId);
19832
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19833
        return fields;
19834
      }
19835
 
19836
      /**
19837
       * Find the _Fields constant that matches name, or null if its not found.
19838
       */
19839
      public static _Fields findByName(String name) {
19840
        return byName.get(name);
19841
      }
19842
 
19843
      private final short _thriftId;
19844
      private final String _fieldName;
19845
 
19846
      _Fields(short thriftId, String fieldName) {
19847
        _thriftId = thriftId;
19848
        _fieldName = fieldName;
19849
      }
19850
 
19851
      public short getThriftFieldId() {
19852
        return _thriftId;
19853
      }
19854
 
19855
      public String getFieldName() {
19856
        return _fieldName;
19857
      }
19858
    }
19859
 
19860
    // isset id assignments
19861
 
19862
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19863
    static {
19864
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19865
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19866
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19867
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19871
    }
19872
 
19873
    public saveQuickLink_args() {
19874
    }
19875
 
19876
    public saveQuickLink_args(
19877
      String url,
19878
      String text)
19879
    {
19880
      this();
19881
      this.url = url;
19882
      this.text = text;
19883
    }
19884
 
19885
    /**
19886
     * Performs a deep copy on <i>other</i>.
19887
     */
19888
    public saveQuickLink_args(saveQuickLink_args other) {
19889
      if (other.isSetUrl()) {
19890
        this.url = other.url;
19891
      }
19892
      if (other.isSetText()) {
19893
        this.text = other.text;
19894
      }
19895
    }
19896
 
19897
    public saveQuickLink_args deepCopy() {
19898
      return new saveQuickLink_args(this);
19899
    }
19900
 
19901
    @Override
19902
    public void clear() {
19903
      this.url = null;
19904
      this.text = null;
19905
    }
19906
 
19907
    public String getUrl() {
19908
      return this.url;
19909
    }
19910
 
19911
    public void setUrl(String url) {
19912
      this.url = url;
19913
    }
19914
 
19915
    public void unsetUrl() {
19916
      this.url = null;
19917
    }
19918
 
19919
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19920
    public boolean isSetUrl() {
19921
      return this.url != null;
19922
    }
19923
 
19924
    public void setUrlIsSet(boolean value) {
19925
      if (!value) {
19926
        this.url = null;
19927
      }
19928
    }
19929
 
19930
    public String getText() {
19931
      return this.text;
19932
    }
19933
 
19934
    public void setText(String text) {
19935
      this.text = text;
19936
    }
19937
 
19938
    public void unsetText() {
19939
      this.text = null;
19940
    }
19941
 
19942
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19943
    public boolean isSetText() {
19944
      return this.text != null;
19945
    }
19946
 
19947
    public void setTextIsSet(boolean value) {
19948
      if (!value) {
19949
        this.text = null;
19950
      }
19951
    }
19952
 
19953
    public void setFieldValue(_Fields field, Object value) {
19954
      switch (field) {
19955
      case URL:
19956
        if (value == null) {
19957
          unsetUrl();
19958
        } else {
19959
          setUrl((String)value);
19960
        }
19961
        break;
19962
 
19963
      case TEXT:
19964
        if (value == null) {
19965
          unsetText();
19966
        } else {
19967
          setText((String)value);
19968
        }
19969
        break;
19970
 
19971
      }
19972
    }
19973
 
19974
    public Object getFieldValue(_Fields field) {
19975
      switch (field) {
19976
      case URL:
19977
        return getUrl();
19978
 
19979
      case TEXT:
19980
        return getText();
19981
 
19982
      }
19983
      throw new IllegalStateException();
19984
    }
19985
 
19986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19987
    public boolean isSet(_Fields field) {
19988
      if (field == null) {
19989
        throw new IllegalArgumentException();
19990
      }
19991
 
19992
      switch (field) {
19993
      case URL:
19994
        return isSetUrl();
19995
      case TEXT:
19996
        return isSetText();
19997
      }
19998
      throw new IllegalStateException();
19999
    }
20000
 
20001
    @Override
20002
    public boolean equals(Object that) {
20003
      if (that == null)
20004
        return false;
20005
      if (that instanceof saveQuickLink_args)
20006
        return this.equals((saveQuickLink_args)that);
20007
      return false;
20008
    }
20009
 
20010
    public boolean equals(saveQuickLink_args that) {
20011
      if (that == null)
20012
        return false;
20013
 
20014
      boolean this_present_url = true && this.isSetUrl();
20015
      boolean that_present_url = true && that.isSetUrl();
20016
      if (this_present_url || that_present_url) {
20017
        if (!(this_present_url && that_present_url))
20018
          return false;
20019
        if (!this.url.equals(that.url))
20020
          return false;
20021
      }
20022
 
20023
      boolean this_present_text = true && this.isSetText();
20024
      boolean that_present_text = true && that.isSetText();
20025
      if (this_present_text || that_present_text) {
20026
        if (!(this_present_text && that_present_text))
20027
          return false;
20028
        if (!this.text.equals(that.text))
20029
          return false;
20030
      }
20031
 
20032
      return true;
20033
    }
20034
 
20035
    @Override
20036
    public int hashCode() {
20037
      return 0;
20038
    }
20039
 
20040
    public int compareTo(saveQuickLink_args other) {
20041
      if (!getClass().equals(other.getClass())) {
20042
        return getClass().getName().compareTo(other.getClass().getName());
20043
      }
20044
 
20045
      int lastComparison = 0;
20046
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
20047
 
20048
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
20049
      if (lastComparison != 0) {
20050
        return lastComparison;
20051
      }
20052
      if (isSetUrl()) {
20053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
20054
        if (lastComparison != 0) {
20055
          return lastComparison;
20056
        }
20057
      }
20058
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
20059
      if (lastComparison != 0) {
20060
        return lastComparison;
20061
      }
20062
      if (isSetText()) {
20063
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
20064
        if (lastComparison != 0) {
20065
          return lastComparison;
20066
        }
20067
      }
20068
      return 0;
20069
    }
20070
 
20071
    public _Fields fieldForId(int fieldId) {
20072
      return _Fields.findByThriftId(fieldId);
20073
    }
20074
 
20075
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20076
      org.apache.thrift.protocol.TField field;
20077
      iprot.readStructBegin();
20078
      while (true)
20079
      {
20080
        field = iprot.readFieldBegin();
20081
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20082
          break;
20083
        }
20084
        switch (field.id) {
20085
          case 1: // URL
20086
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20087
              this.url = iprot.readString();
20088
            } else { 
20089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20090
            }
20091
            break;
20092
          case 2: // TEXT
20093
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20094
              this.text = iprot.readString();
20095
            } else { 
20096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20097
            }
20098
            break;
20099
          default:
20100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20101
        }
20102
        iprot.readFieldEnd();
20103
      }
20104
      iprot.readStructEnd();
20105
      validate();
20106
    }
20107
 
20108
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20109
      validate();
20110
 
20111
      oprot.writeStructBegin(STRUCT_DESC);
20112
      if (this.url != null) {
20113
        oprot.writeFieldBegin(URL_FIELD_DESC);
20114
        oprot.writeString(this.url);
20115
        oprot.writeFieldEnd();
20116
      }
20117
      if (this.text != null) {
20118
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20119
        oprot.writeString(this.text);
20120
        oprot.writeFieldEnd();
20121
      }
20122
      oprot.writeFieldStop();
20123
      oprot.writeStructEnd();
20124
    }
20125
 
20126
    @Override
20127
    public String toString() {
20128
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20129
      boolean first = true;
20130
 
20131
      sb.append("url:");
20132
      if (this.url == null) {
20133
        sb.append("null");
20134
      } else {
20135
        sb.append(this.url);
20136
      }
20137
      first = false;
20138
      if (!first) sb.append(", ");
20139
      sb.append("text:");
20140
      if (this.text == null) {
20141
        sb.append("null");
20142
      } else {
20143
        sb.append(this.text);
20144
      }
20145
      first = false;
20146
      sb.append(")");
20147
      return sb.toString();
20148
    }
20149
 
20150
    public void validate() throws org.apache.thrift.TException {
20151
      // check for required fields
20152
    }
20153
 
20154
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20155
      try {
20156
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20157
      } catch (org.apache.thrift.TException te) {
20158
        throw new java.io.IOException(te);
20159
      }
20160
    }
20161
 
20162
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20163
      try {
20164
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20165
      } catch (org.apache.thrift.TException te) {
20166
        throw new java.io.IOException(te);
20167
      }
20168
    }
20169
 
20170
  }
20171
 
20172
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20173
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20174
 
20175
    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);
20176
 
20177
    private HelperServiceException hse; // required
20178
 
20179
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20180
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20181
      HSE((short)1, "hse");
20182
 
20183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20184
 
20185
      static {
20186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20187
          byName.put(field.getFieldName(), field);
20188
        }
20189
      }
20190
 
20191
      /**
20192
       * Find the _Fields constant that matches fieldId, or null if its not found.
20193
       */
20194
      public static _Fields findByThriftId(int fieldId) {
20195
        switch(fieldId) {
20196
          case 1: // HSE
20197
            return HSE;
20198
          default:
20199
            return null;
20200
        }
20201
      }
20202
 
20203
      /**
20204
       * Find the _Fields constant that matches fieldId, throwing an exception
20205
       * if it is not found.
20206
       */
20207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20208
        _Fields fields = findByThriftId(fieldId);
20209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20210
        return fields;
20211
      }
20212
 
20213
      /**
20214
       * Find the _Fields constant that matches name, or null if its not found.
20215
       */
20216
      public static _Fields findByName(String name) {
20217
        return byName.get(name);
20218
      }
20219
 
20220
      private final short _thriftId;
20221
      private final String _fieldName;
20222
 
20223
      _Fields(short thriftId, String fieldName) {
20224
        _thriftId = thriftId;
20225
        _fieldName = fieldName;
20226
      }
20227
 
20228
      public short getThriftFieldId() {
20229
        return _thriftId;
20230
      }
20231
 
20232
      public String getFieldName() {
20233
        return _fieldName;
20234
      }
20235
    }
20236
 
20237
    // isset id assignments
20238
 
20239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20240
    static {
20241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20242
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20244
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20245
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20246
    }
20247
 
20248
    public saveQuickLink_result() {
20249
    }
20250
 
20251
    public saveQuickLink_result(
20252
      HelperServiceException hse)
20253
    {
20254
      this();
20255
      this.hse = hse;
20256
    }
20257
 
20258
    /**
20259
     * Performs a deep copy on <i>other</i>.
20260
     */
20261
    public saveQuickLink_result(saveQuickLink_result other) {
20262
      if (other.isSetHse()) {
20263
        this.hse = new HelperServiceException(other.hse);
20264
      }
20265
    }
20266
 
20267
    public saveQuickLink_result deepCopy() {
20268
      return new saveQuickLink_result(this);
20269
    }
20270
 
20271
    @Override
20272
    public void clear() {
20273
      this.hse = null;
20274
    }
20275
 
20276
    public HelperServiceException getHse() {
20277
      return this.hse;
20278
    }
20279
 
20280
    public void setHse(HelperServiceException hse) {
20281
      this.hse = hse;
20282
    }
20283
 
20284
    public void unsetHse() {
20285
      this.hse = null;
20286
    }
20287
 
20288
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20289
    public boolean isSetHse() {
20290
      return this.hse != null;
20291
    }
20292
 
20293
    public void setHseIsSet(boolean value) {
20294
      if (!value) {
20295
        this.hse = null;
20296
      }
20297
    }
20298
 
20299
    public void setFieldValue(_Fields field, Object value) {
20300
      switch (field) {
20301
      case HSE:
20302
        if (value == null) {
20303
          unsetHse();
20304
        } else {
20305
          setHse((HelperServiceException)value);
20306
        }
20307
        break;
20308
 
20309
      }
20310
    }
20311
 
20312
    public Object getFieldValue(_Fields field) {
20313
      switch (field) {
20314
      case HSE:
20315
        return getHse();
20316
 
20317
      }
20318
      throw new IllegalStateException();
20319
    }
20320
 
20321
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20322
    public boolean isSet(_Fields field) {
20323
      if (field == null) {
20324
        throw new IllegalArgumentException();
20325
      }
20326
 
20327
      switch (field) {
20328
      case HSE:
20329
        return isSetHse();
20330
      }
20331
      throw new IllegalStateException();
20332
    }
20333
 
20334
    @Override
20335
    public boolean equals(Object that) {
20336
      if (that == null)
20337
        return false;
20338
      if (that instanceof saveQuickLink_result)
20339
        return this.equals((saveQuickLink_result)that);
20340
      return false;
20341
    }
20342
 
20343
    public boolean equals(saveQuickLink_result that) {
20344
      if (that == null)
20345
        return false;
20346
 
20347
      boolean this_present_hse = true && this.isSetHse();
20348
      boolean that_present_hse = true && that.isSetHse();
20349
      if (this_present_hse || that_present_hse) {
20350
        if (!(this_present_hse && that_present_hse))
20351
          return false;
20352
        if (!this.hse.equals(that.hse))
20353
          return false;
20354
      }
20355
 
20356
      return true;
20357
    }
20358
 
20359
    @Override
20360
    public int hashCode() {
20361
      return 0;
20362
    }
20363
 
20364
    public int compareTo(saveQuickLink_result other) {
20365
      if (!getClass().equals(other.getClass())) {
20366
        return getClass().getName().compareTo(other.getClass().getName());
20367
      }
20368
 
20369
      int lastComparison = 0;
20370
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20371
 
20372
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20373
      if (lastComparison != 0) {
20374
        return lastComparison;
20375
      }
20376
      if (isSetHse()) {
20377
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20378
        if (lastComparison != 0) {
20379
          return lastComparison;
20380
        }
20381
      }
20382
      return 0;
20383
    }
20384
 
20385
    public _Fields fieldForId(int fieldId) {
20386
      return _Fields.findByThriftId(fieldId);
20387
    }
20388
 
20389
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20390
      org.apache.thrift.protocol.TField field;
20391
      iprot.readStructBegin();
20392
      while (true)
20393
      {
20394
        field = iprot.readFieldBegin();
20395
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20396
          break;
20397
        }
20398
        switch (field.id) {
20399
          case 1: // HSE
20400
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20401
              this.hse = new HelperServiceException();
20402
              this.hse.read(iprot);
20403
            } else { 
20404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20405
            }
20406
            break;
20407
          default:
20408
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20409
        }
20410
        iprot.readFieldEnd();
20411
      }
20412
      iprot.readStructEnd();
20413
      validate();
20414
    }
20415
 
20416
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20417
      oprot.writeStructBegin(STRUCT_DESC);
20418
 
20419
      if (this.isSetHse()) {
20420
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20421
        this.hse.write(oprot);
20422
        oprot.writeFieldEnd();
20423
      }
20424
      oprot.writeFieldStop();
20425
      oprot.writeStructEnd();
20426
    }
20427
 
20428
    @Override
20429
    public String toString() {
20430
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20431
      boolean first = true;
20432
 
20433
      sb.append("hse:");
20434
      if (this.hse == null) {
20435
        sb.append("null");
20436
      } else {
20437
        sb.append(this.hse);
20438
      }
20439
      first = false;
20440
      sb.append(")");
20441
      return sb.toString();
20442
    }
20443
 
20444
    public void validate() throws org.apache.thrift.TException {
20445
      // check for required fields
20446
    }
20447
 
20448
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20449
      try {
20450
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20451
      } catch (org.apache.thrift.TException te) {
20452
        throw new java.io.IOException(te);
20453
      }
20454
    }
20455
 
20456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20457
      try {
20458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20459
      } catch (org.apache.thrift.TException te) {
20460
        throw new java.io.IOException(te);
20461
      }
20462
    }
20463
 
20464
  }
20465
 
20466
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20468
 
20469
 
20470
 
20471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20472
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20473
;
20474
 
20475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20476
 
20477
      static {
20478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20479
          byName.put(field.getFieldName(), field);
20480
        }
20481
      }
20482
 
20483
      /**
20484
       * Find the _Fields constant that matches fieldId, or null if its not found.
20485
       */
20486
      public static _Fields findByThriftId(int fieldId) {
20487
        switch(fieldId) {
20488
          default:
20489
            return null;
20490
        }
20491
      }
20492
 
20493
      /**
20494
       * Find the _Fields constant that matches fieldId, throwing an exception
20495
       * if it is not found.
20496
       */
20497
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20498
        _Fields fields = findByThriftId(fieldId);
20499
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20500
        return fields;
20501
      }
20502
 
20503
      /**
20504
       * Find the _Fields constant that matches name, or null if its not found.
20505
       */
20506
      public static _Fields findByName(String name) {
20507
        return byName.get(name);
20508
      }
20509
 
20510
      private final short _thriftId;
20511
      private final String _fieldName;
20512
 
20513
      _Fields(short thriftId, String fieldName) {
20514
        _thriftId = thriftId;
20515
        _fieldName = fieldName;
20516
      }
20517
 
20518
      public short getThriftFieldId() {
20519
        return _thriftId;
20520
      }
20521
 
20522
      public String getFieldName() {
20523
        return _fieldName;
20524
      }
20525
    }
20526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20527
    static {
20528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20531
    }
20532
 
20533
    public getQuickLinks_args() {
20534
    }
20535
 
20536
    /**
20537
     * Performs a deep copy on <i>other</i>.
20538
     */
20539
    public getQuickLinks_args(getQuickLinks_args other) {
20540
    }
20541
 
20542
    public getQuickLinks_args deepCopy() {
20543
      return new getQuickLinks_args(this);
20544
    }
20545
 
20546
    @Override
20547
    public void clear() {
20548
    }
20549
 
20550
    public void setFieldValue(_Fields field, Object value) {
20551
      switch (field) {
20552
      }
20553
    }
20554
 
20555
    public Object getFieldValue(_Fields field) {
20556
      switch (field) {
20557
      }
20558
      throw new IllegalStateException();
20559
    }
20560
 
20561
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20562
    public boolean isSet(_Fields field) {
20563
      if (field == null) {
20564
        throw new IllegalArgumentException();
20565
      }
20566
 
20567
      switch (field) {
20568
      }
20569
      throw new IllegalStateException();
20570
    }
20571
 
20572
    @Override
20573
    public boolean equals(Object that) {
20574
      if (that == null)
20575
        return false;
20576
      if (that instanceof getQuickLinks_args)
20577
        return this.equals((getQuickLinks_args)that);
20578
      return false;
20579
    }
20580
 
20581
    public boolean equals(getQuickLinks_args that) {
20582
      if (that == null)
20583
        return false;
20584
 
20585
      return true;
20586
    }
20587
 
20588
    @Override
20589
    public int hashCode() {
20590
      return 0;
20591
    }
20592
 
20593
    public int compareTo(getQuickLinks_args other) {
20594
      if (!getClass().equals(other.getClass())) {
20595
        return getClass().getName().compareTo(other.getClass().getName());
20596
      }
20597
 
20598
      int lastComparison = 0;
20599
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20600
 
20601
      return 0;
20602
    }
20603
 
20604
    public _Fields fieldForId(int fieldId) {
20605
      return _Fields.findByThriftId(fieldId);
20606
    }
20607
 
20608
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20609
      org.apache.thrift.protocol.TField field;
20610
      iprot.readStructBegin();
20611
      while (true)
20612
      {
20613
        field = iprot.readFieldBegin();
20614
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20615
          break;
20616
        }
20617
        switch (field.id) {
20618
          default:
20619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20620
        }
20621
        iprot.readFieldEnd();
20622
      }
20623
      iprot.readStructEnd();
20624
      validate();
20625
    }
20626
 
20627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20628
      validate();
20629
 
20630
      oprot.writeStructBegin(STRUCT_DESC);
20631
      oprot.writeFieldStop();
20632
      oprot.writeStructEnd();
20633
    }
20634
 
20635
    @Override
20636
    public String toString() {
20637
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20638
      boolean first = true;
20639
 
20640
      sb.append(")");
20641
      return sb.toString();
20642
    }
20643
 
20644
    public void validate() throws org.apache.thrift.TException {
20645
      // check for required fields
20646
    }
20647
 
20648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20649
      try {
20650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20651
      } catch (org.apache.thrift.TException te) {
20652
        throw new java.io.IOException(te);
20653
      }
20654
    }
20655
 
20656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20657
      try {
20658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20659
      } catch (org.apache.thrift.TException te) {
20660
        throw new java.io.IOException(te);
20661
      }
20662
    }
20663
 
20664
  }
20665
 
20666
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20668
 
20669
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
20670
    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);
20671
 
20672
    private List<QuickLink> success; // required
20673
    private HelperServiceException hse; // required
20674
 
20675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20677
      SUCCESS((short)0, "success"),
20678
      HSE((short)1, "hse");
20679
 
20680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20681
 
20682
      static {
20683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20684
          byName.put(field.getFieldName(), field);
20685
        }
20686
      }
20687
 
20688
      /**
20689
       * Find the _Fields constant that matches fieldId, or null if its not found.
20690
       */
20691
      public static _Fields findByThriftId(int fieldId) {
20692
        switch(fieldId) {
20693
          case 0: // SUCCESS
20694
            return SUCCESS;
20695
          case 1: // HSE
20696
            return HSE;
20697
          default:
20698
            return null;
20699
        }
20700
      }
20701
 
20702
      /**
20703
       * Find the _Fields constant that matches fieldId, throwing an exception
20704
       * if it is not found.
20705
       */
20706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20707
        _Fields fields = findByThriftId(fieldId);
20708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20709
        return fields;
20710
      }
20711
 
20712
      /**
20713
       * Find the _Fields constant that matches name, or null if its not found.
20714
       */
20715
      public static _Fields findByName(String name) {
20716
        return byName.get(name);
20717
      }
20718
 
20719
      private final short _thriftId;
20720
      private final String _fieldName;
20721
 
20722
      _Fields(short thriftId, String fieldName) {
20723
        _thriftId = thriftId;
20724
        _fieldName = fieldName;
20725
      }
20726
 
20727
      public short getThriftFieldId() {
20728
        return _thriftId;
20729
      }
20730
 
20731
      public String getFieldName() {
20732
        return _fieldName;
20733
      }
20734
    }
20735
 
20736
    // isset id assignments
20737
 
20738
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20739
    static {
20740
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20741
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20742
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20743
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20744
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20748
    }
20749
 
20750
    public getQuickLinks_result() {
20751
    }
20752
 
20753
    public getQuickLinks_result(
20754
      List<QuickLink> success,
20755
      HelperServiceException hse)
20756
    {
20757
      this();
20758
      this.success = success;
20759
      this.hse = hse;
20760
    }
20761
 
20762
    /**
20763
     * Performs a deep copy on <i>other</i>.
20764
     */
20765
    public getQuickLinks_result(getQuickLinks_result other) {
20766
      if (other.isSetSuccess()) {
20767
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20768
        for (QuickLink other_element : other.success) {
20769
          __this__success.add(new QuickLink(other_element));
20770
        }
20771
        this.success = __this__success;
20772
      }
20773
      if (other.isSetHse()) {
20774
        this.hse = new HelperServiceException(other.hse);
20775
      }
20776
    }
20777
 
20778
    public getQuickLinks_result deepCopy() {
20779
      return new getQuickLinks_result(this);
20780
    }
20781
 
20782
    @Override
20783
    public void clear() {
20784
      this.success = null;
20785
      this.hse = null;
20786
    }
20787
 
20788
    public int getSuccessSize() {
20789
      return (this.success == null) ? 0 : this.success.size();
20790
    }
20791
 
20792
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20793
      return (this.success == null) ? null : this.success.iterator();
20794
    }
20795
 
20796
    public void addToSuccess(QuickLink elem) {
20797
      if (this.success == null) {
20798
        this.success = new ArrayList<QuickLink>();
20799
      }
20800
      this.success.add(elem);
20801
    }
20802
 
20803
    public List<QuickLink> getSuccess() {
20804
      return this.success;
20805
    }
20806
 
20807
    public void setSuccess(List<QuickLink> success) {
20808
      this.success = success;
20809
    }
20810
 
20811
    public void unsetSuccess() {
20812
      this.success = null;
20813
    }
20814
 
20815
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20816
    public boolean isSetSuccess() {
20817
      return this.success != null;
20818
    }
20819
 
20820
    public void setSuccessIsSet(boolean value) {
20821
      if (!value) {
20822
        this.success = null;
20823
      }
20824
    }
20825
 
20826
    public HelperServiceException getHse() {
20827
      return this.hse;
20828
    }
20829
 
20830
    public void setHse(HelperServiceException hse) {
20831
      this.hse = hse;
20832
    }
20833
 
20834
    public void unsetHse() {
20835
      this.hse = null;
20836
    }
20837
 
20838
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20839
    public boolean isSetHse() {
20840
      return this.hse != null;
20841
    }
20842
 
20843
    public void setHseIsSet(boolean value) {
20844
      if (!value) {
20845
        this.hse = null;
20846
      }
20847
    }
20848
 
20849
    public void setFieldValue(_Fields field, Object value) {
20850
      switch (field) {
20851
      case SUCCESS:
20852
        if (value == null) {
20853
          unsetSuccess();
20854
        } else {
20855
          setSuccess((List<QuickLink>)value);
20856
        }
20857
        break;
20858
 
20859
      case HSE:
20860
        if (value == null) {
20861
          unsetHse();
20862
        } else {
20863
          setHse((HelperServiceException)value);
20864
        }
20865
        break;
20866
 
20867
      }
20868
    }
20869
 
20870
    public Object getFieldValue(_Fields field) {
20871
      switch (field) {
20872
      case SUCCESS:
20873
        return getSuccess();
20874
 
20875
      case HSE:
20876
        return getHse();
20877
 
20878
      }
20879
      throw new IllegalStateException();
20880
    }
20881
 
20882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20883
    public boolean isSet(_Fields field) {
20884
      if (field == null) {
20885
        throw new IllegalArgumentException();
20886
      }
20887
 
20888
      switch (field) {
20889
      case SUCCESS:
20890
        return isSetSuccess();
20891
      case HSE:
20892
        return isSetHse();
20893
      }
20894
      throw new IllegalStateException();
20895
    }
20896
 
20897
    @Override
20898
    public boolean equals(Object that) {
20899
      if (that == null)
20900
        return false;
20901
      if (that instanceof getQuickLinks_result)
20902
        return this.equals((getQuickLinks_result)that);
20903
      return false;
20904
    }
20905
 
20906
    public boolean equals(getQuickLinks_result that) {
20907
      if (that == null)
20908
        return false;
20909
 
20910
      boolean this_present_success = true && this.isSetSuccess();
20911
      boolean that_present_success = true && that.isSetSuccess();
20912
      if (this_present_success || that_present_success) {
20913
        if (!(this_present_success && that_present_success))
20914
          return false;
20915
        if (!this.success.equals(that.success))
20916
          return false;
20917
      }
20918
 
20919
      boolean this_present_hse = true && this.isSetHse();
20920
      boolean that_present_hse = true && that.isSetHse();
20921
      if (this_present_hse || that_present_hse) {
20922
        if (!(this_present_hse && that_present_hse))
20923
          return false;
20924
        if (!this.hse.equals(that.hse))
20925
          return false;
20926
      }
20927
 
20928
      return true;
20929
    }
20930
 
20931
    @Override
20932
    public int hashCode() {
20933
      return 0;
20934
    }
20935
 
20936
    public int compareTo(getQuickLinks_result other) {
20937
      if (!getClass().equals(other.getClass())) {
20938
        return getClass().getName().compareTo(other.getClass().getName());
20939
      }
20940
 
20941
      int lastComparison = 0;
20942
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20943
 
20944
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20945
      if (lastComparison != 0) {
20946
        return lastComparison;
20947
      }
20948
      if (isSetSuccess()) {
20949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20950
        if (lastComparison != 0) {
20951
          return lastComparison;
20952
        }
20953
      }
20954
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20955
      if (lastComparison != 0) {
20956
        return lastComparison;
20957
      }
20958
      if (isSetHse()) {
20959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20960
        if (lastComparison != 0) {
20961
          return lastComparison;
20962
        }
20963
      }
20964
      return 0;
20965
    }
20966
 
20967
    public _Fields fieldForId(int fieldId) {
20968
      return _Fields.findByThriftId(fieldId);
20969
    }
20970
 
20971
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20972
      org.apache.thrift.protocol.TField field;
20973
      iprot.readStructBegin();
20974
      while (true)
20975
      {
20976
        field = iprot.readFieldBegin();
20977
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20978
          break;
20979
        }
20980
        switch (field.id) {
20981
          case 0: // SUCCESS
20982
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20983
              {
5864 rajveer 20984
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
20985
                this.success = new ArrayList<QuickLink>(_list61.size);
20986
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 20987
                {
5864 rajveer 20988
                  QuickLink _elem63; // required
20989
                  _elem63 = new QuickLink();
20990
                  _elem63.read(iprot);
20991
                  this.success.add(_elem63);
4806 varun.gupt 20992
                }
20993
                iprot.readListEnd();
20994
              }
20995
            } else { 
20996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20997
            }
20998
            break;
20999
          case 1: // HSE
21000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21001
              this.hse = new HelperServiceException();
21002
              this.hse.read(iprot);
21003
            } else { 
21004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21005
            }
21006
            break;
21007
          default:
21008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21009
        }
21010
        iprot.readFieldEnd();
21011
      }
21012
      iprot.readStructEnd();
21013
      validate();
21014
    }
21015
 
21016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21017
      oprot.writeStructBegin(STRUCT_DESC);
21018
 
21019
      if (this.isSetSuccess()) {
21020
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21021
        {
21022
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 21023
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 21024
          {
5864 rajveer 21025
            _iter64.write(oprot);
4806 varun.gupt 21026
          }
21027
          oprot.writeListEnd();
21028
        }
21029
        oprot.writeFieldEnd();
21030
      } else if (this.isSetHse()) {
21031
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21032
        this.hse.write(oprot);
21033
        oprot.writeFieldEnd();
21034
      }
21035
      oprot.writeFieldStop();
21036
      oprot.writeStructEnd();
21037
    }
21038
 
21039
    @Override
21040
    public String toString() {
21041
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
21042
      boolean first = true;
21043
 
21044
      sb.append("success:");
21045
      if (this.success == null) {
21046
        sb.append("null");
21047
      } else {
21048
        sb.append(this.success);
21049
      }
21050
      first = false;
21051
      if (!first) sb.append(", ");
21052
      sb.append("hse:");
21053
      if (this.hse == null) {
21054
        sb.append("null");
21055
      } else {
21056
        sb.append(this.hse);
21057
      }
21058
      first = false;
21059
      sb.append(")");
21060
      return sb.toString();
21061
    }
21062
 
21063
    public void validate() throws org.apache.thrift.TException {
21064
      // check for required fields
21065
    }
21066
 
21067
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21068
      try {
21069
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21070
      } catch (org.apache.thrift.TException te) {
21071
        throw new java.io.IOException(te);
21072
      }
21073
    }
21074
 
21075
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21076
      try {
21077
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21078
      } catch (org.apache.thrift.TException te) {
21079
        throw new java.io.IOException(te);
21080
      }
21081
    }
21082
 
21083
  }
21084
 
4996 varun.gupt 21085
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
21086
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
21087
 
21088
    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);
21089
    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);
21090
    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);
21091
 
21092
    private long id; // required
21093
    private String url; // required
21094
    private String text; // required
21095
 
21096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21098
      ID((short)1, "id"),
21099
      URL((short)2, "url"),
21100
      TEXT((short)3, "text");
21101
 
21102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21103
 
21104
      static {
21105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21106
          byName.put(field.getFieldName(), field);
21107
        }
21108
      }
21109
 
21110
      /**
21111
       * Find the _Fields constant that matches fieldId, or null if its not found.
21112
       */
21113
      public static _Fields findByThriftId(int fieldId) {
21114
        switch(fieldId) {
21115
          case 1: // ID
21116
            return ID;
21117
          case 2: // URL
21118
            return URL;
21119
          case 3: // TEXT
21120
            return TEXT;
21121
          default:
21122
            return null;
21123
        }
21124
      }
21125
 
21126
      /**
21127
       * Find the _Fields constant that matches fieldId, throwing an exception
21128
       * if it is not found.
21129
       */
21130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21131
        _Fields fields = findByThriftId(fieldId);
21132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21133
        return fields;
21134
      }
21135
 
21136
      /**
21137
       * Find the _Fields constant that matches name, or null if its not found.
21138
       */
21139
      public static _Fields findByName(String name) {
21140
        return byName.get(name);
21141
      }
21142
 
21143
      private final short _thriftId;
21144
      private final String _fieldName;
21145
 
21146
      _Fields(short thriftId, String fieldName) {
21147
        _thriftId = thriftId;
21148
        _fieldName = fieldName;
21149
      }
21150
 
21151
      public short getThriftFieldId() {
21152
        return _thriftId;
21153
      }
21154
 
21155
      public String getFieldName() {
21156
        return _fieldName;
21157
      }
21158
    }
21159
 
21160
    // isset id assignments
21161
    private static final int __ID_ISSET_ID = 0;
21162
    private BitSet __isset_bit_vector = new BitSet(1);
21163
 
21164
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21165
    static {
21166
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21167
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21169
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21171
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21175
    }
21176
 
21177
    public updateQuickLink_args() {
21178
    }
21179
 
21180
    public updateQuickLink_args(
21181
      long id,
21182
      String url,
21183
      String text)
21184
    {
21185
      this();
21186
      this.id = id;
21187
      setIdIsSet(true);
21188
      this.url = url;
21189
      this.text = text;
21190
    }
21191
 
21192
    /**
21193
     * Performs a deep copy on <i>other</i>.
21194
     */
21195
    public updateQuickLink_args(updateQuickLink_args other) {
21196
      __isset_bit_vector.clear();
21197
      __isset_bit_vector.or(other.__isset_bit_vector);
21198
      this.id = other.id;
21199
      if (other.isSetUrl()) {
21200
        this.url = other.url;
21201
      }
21202
      if (other.isSetText()) {
21203
        this.text = other.text;
21204
      }
21205
    }
21206
 
21207
    public updateQuickLink_args deepCopy() {
21208
      return new updateQuickLink_args(this);
21209
    }
21210
 
21211
    @Override
21212
    public void clear() {
21213
      setIdIsSet(false);
21214
      this.id = 0;
21215
      this.url = null;
21216
      this.text = null;
21217
    }
21218
 
21219
    public long getId() {
21220
      return this.id;
21221
    }
21222
 
21223
    public void setId(long id) {
21224
      this.id = id;
21225
      setIdIsSet(true);
21226
    }
21227
 
21228
    public void unsetId() {
21229
      __isset_bit_vector.clear(__ID_ISSET_ID);
21230
    }
21231
 
21232
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21233
    public boolean isSetId() {
21234
      return __isset_bit_vector.get(__ID_ISSET_ID);
21235
    }
21236
 
21237
    public void setIdIsSet(boolean value) {
21238
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21239
    }
21240
 
21241
    public String getUrl() {
21242
      return this.url;
21243
    }
21244
 
21245
    public void setUrl(String url) {
21246
      this.url = url;
21247
    }
21248
 
21249
    public void unsetUrl() {
21250
      this.url = null;
21251
    }
21252
 
21253
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21254
    public boolean isSetUrl() {
21255
      return this.url != null;
21256
    }
21257
 
21258
    public void setUrlIsSet(boolean value) {
21259
      if (!value) {
21260
        this.url = null;
21261
      }
21262
    }
21263
 
21264
    public String getText() {
21265
      return this.text;
21266
    }
21267
 
21268
    public void setText(String text) {
21269
      this.text = text;
21270
    }
21271
 
21272
    public void unsetText() {
21273
      this.text = null;
21274
    }
21275
 
21276
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21277
    public boolean isSetText() {
21278
      return this.text != null;
21279
    }
21280
 
21281
    public void setTextIsSet(boolean value) {
21282
      if (!value) {
21283
        this.text = null;
21284
      }
21285
    }
21286
 
21287
    public void setFieldValue(_Fields field, Object value) {
21288
      switch (field) {
21289
      case ID:
21290
        if (value == null) {
21291
          unsetId();
21292
        } else {
21293
          setId((Long)value);
21294
        }
21295
        break;
21296
 
21297
      case URL:
21298
        if (value == null) {
21299
          unsetUrl();
21300
        } else {
21301
          setUrl((String)value);
21302
        }
21303
        break;
21304
 
21305
      case TEXT:
21306
        if (value == null) {
21307
          unsetText();
21308
        } else {
21309
          setText((String)value);
21310
        }
21311
        break;
21312
 
21313
      }
21314
    }
21315
 
21316
    public Object getFieldValue(_Fields field) {
21317
      switch (field) {
21318
      case ID:
21319
        return Long.valueOf(getId());
21320
 
21321
      case URL:
21322
        return getUrl();
21323
 
21324
      case TEXT:
21325
        return getText();
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 ID:
21339
        return isSetId();
21340
      case URL:
21341
        return isSetUrl();
21342
      case TEXT:
21343
        return isSetText();
21344
      }
21345
      throw new IllegalStateException();
21346
    }
21347
 
21348
    @Override
21349
    public boolean equals(Object that) {
21350
      if (that == null)
21351
        return false;
21352
      if (that instanceof updateQuickLink_args)
21353
        return this.equals((updateQuickLink_args)that);
21354
      return false;
21355
    }
21356
 
21357
    public boolean equals(updateQuickLink_args that) {
21358
      if (that == null)
21359
        return false;
21360
 
21361
      boolean this_present_id = true;
21362
      boolean that_present_id = true;
21363
      if (this_present_id || that_present_id) {
21364
        if (!(this_present_id && that_present_id))
21365
          return false;
21366
        if (this.id != that.id)
21367
          return false;
21368
      }
21369
 
21370
      boolean this_present_url = true && this.isSetUrl();
21371
      boolean that_present_url = true && that.isSetUrl();
21372
      if (this_present_url || that_present_url) {
21373
        if (!(this_present_url && that_present_url))
21374
          return false;
21375
        if (!this.url.equals(that.url))
21376
          return false;
21377
      }
21378
 
21379
      boolean this_present_text = true && this.isSetText();
21380
      boolean that_present_text = true && that.isSetText();
21381
      if (this_present_text || that_present_text) {
21382
        if (!(this_present_text && that_present_text))
21383
          return false;
21384
        if (!this.text.equals(that.text))
21385
          return false;
21386
      }
21387
 
21388
      return true;
21389
    }
21390
 
21391
    @Override
21392
    public int hashCode() {
21393
      return 0;
21394
    }
21395
 
21396
    public int compareTo(updateQuickLink_args other) {
21397
      if (!getClass().equals(other.getClass())) {
21398
        return getClass().getName().compareTo(other.getClass().getName());
21399
      }
21400
 
21401
      int lastComparison = 0;
21402
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21403
 
21404
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21405
      if (lastComparison != 0) {
21406
        return lastComparison;
21407
      }
21408
      if (isSetId()) {
21409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21410
        if (lastComparison != 0) {
21411
          return lastComparison;
21412
        }
21413
      }
21414
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21415
      if (lastComparison != 0) {
21416
        return lastComparison;
21417
      }
21418
      if (isSetUrl()) {
21419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21420
        if (lastComparison != 0) {
21421
          return lastComparison;
21422
        }
21423
      }
21424
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21425
      if (lastComparison != 0) {
21426
        return lastComparison;
21427
      }
21428
      if (isSetText()) {
21429
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21430
        if (lastComparison != 0) {
21431
          return lastComparison;
21432
        }
21433
      }
21434
      return 0;
21435
    }
21436
 
21437
    public _Fields fieldForId(int fieldId) {
21438
      return _Fields.findByThriftId(fieldId);
21439
    }
21440
 
21441
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21442
      org.apache.thrift.protocol.TField field;
21443
      iprot.readStructBegin();
21444
      while (true)
21445
      {
21446
        field = iprot.readFieldBegin();
21447
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21448
          break;
21449
        }
21450
        switch (field.id) {
21451
          case 1: // ID
21452
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21453
              this.id = iprot.readI64();
21454
              setIdIsSet(true);
21455
            } else { 
21456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21457
            }
21458
            break;
21459
          case 2: // URL
21460
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21461
              this.url = iprot.readString();
21462
            } else { 
21463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21464
            }
21465
            break;
21466
          case 3: // TEXT
21467
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21468
              this.text = iprot.readString();
21469
            } else { 
21470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21471
            }
21472
            break;
21473
          default:
21474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21475
        }
21476
        iprot.readFieldEnd();
21477
      }
21478
      iprot.readStructEnd();
21479
      validate();
21480
    }
21481
 
21482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21483
      validate();
21484
 
21485
      oprot.writeStructBegin(STRUCT_DESC);
21486
      oprot.writeFieldBegin(ID_FIELD_DESC);
21487
      oprot.writeI64(this.id);
21488
      oprot.writeFieldEnd();
21489
      if (this.url != null) {
21490
        oprot.writeFieldBegin(URL_FIELD_DESC);
21491
        oprot.writeString(this.url);
21492
        oprot.writeFieldEnd();
21493
      }
21494
      if (this.text != null) {
21495
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21496
        oprot.writeString(this.text);
21497
        oprot.writeFieldEnd();
21498
      }
21499
      oprot.writeFieldStop();
21500
      oprot.writeStructEnd();
21501
    }
21502
 
21503
    @Override
21504
    public String toString() {
21505
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21506
      boolean first = true;
21507
 
21508
      sb.append("id:");
21509
      sb.append(this.id);
21510
      first = false;
21511
      if (!first) sb.append(", ");
21512
      sb.append("url:");
21513
      if (this.url == null) {
21514
        sb.append("null");
21515
      } else {
21516
        sb.append(this.url);
21517
      }
21518
      first = false;
21519
      if (!first) sb.append(", ");
21520
      sb.append("text:");
21521
      if (this.text == null) {
21522
        sb.append("null");
21523
      } else {
21524
        sb.append(this.text);
21525
      }
21526
      first = false;
21527
      sb.append(")");
21528
      return sb.toString();
21529
    }
21530
 
21531
    public void validate() throws org.apache.thrift.TException {
21532
      // check for required fields
21533
    }
21534
 
21535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21536
      try {
21537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21538
      } catch (org.apache.thrift.TException te) {
21539
        throw new java.io.IOException(te);
21540
      }
21541
    }
21542
 
21543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21544
      try {
21545
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21546
        __isset_bit_vector = new BitSet(1);
21547
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21548
      } catch (org.apache.thrift.TException te) {
21549
        throw new java.io.IOException(te);
21550
      }
21551
    }
21552
 
21553
  }
21554
 
21555
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21556
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21557
 
21558
    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);
21559
 
21560
    private HelperServiceException hse; // required
21561
 
21562
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21563
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21564
      HSE((short)1, "hse");
21565
 
21566
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21567
 
21568
      static {
21569
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21570
          byName.put(field.getFieldName(), field);
21571
        }
21572
      }
21573
 
21574
      /**
21575
       * Find the _Fields constant that matches fieldId, or null if its not found.
21576
       */
21577
      public static _Fields findByThriftId(int fieldId) {
21578
        switch(fieldId) {
21579
          case 1: // HSE
21580
            return HSE;
21581
          default:
21582
            return null;
21583
        }
21584
      }
21585
 
21586
      /**
21587
       * Find the _Fields constant that matches fieldId, throwing an exception
21588
       * if it is not found.
21589
       */
21590
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21591
        _Fields fields = findByThriftId(fieldId);
21592
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21593
        return fields;
21594
      }
21595
 
21596
      /**
21597
       * Find the _Fields constant that matches name, or null if its not found.
21598
       */
21599
      public static _Fields findByName(String name) {
21600
        return byName.get(name);
21601
      }
21602
 
21603
      private final short _thriftId;
21604
      private final String _fieldName;
21605
 
21606
      _Fields(short thriftId, String fieldName) {
21607
        _thriftId = thriftId;
21608
        _fieldName = fieldName;
21609
      }
21610
 
21611
      public short getThriftFieldId() {
21612
        return _thriftId;
21613
      }
21614
 
21615
      public String getFieldName() {
21616
        return _fieldName;
21617
      }
21618
    }
21619
 
21620
    // isset id assignments
21621
 
21622
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21623
    static {
21624
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21625
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21626
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21627
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21628
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21629
    }
21630
 
21631
    public updateQuickLink_result() {
21632
    }
21633
 
21634
    public updateQuickLink_result(
21635
      HelperServiceException hse)
21636
    {
21637
      this();
21638
      this.hse = hse;
21639
    }
21640
 
21641
    /**
21642
     * Performs a deep copy on <i>other</i>.
21643
     */
21644
    public updateQuickLink_result(updateQuickLink_result other) {
21645
      if (other.isSetHse()) {
21646
        this.hse = new HelperServiceException(other.hse);
21647
      }
21648
    }
21649
 
21650
    public updateQuickLink_result deepCopy() {
21651
      return new updateQuickLink_result(this);
21652
    }
21653
 
21654
    @Override
21655
    public void clear() {
21656
      this.hse = null;
21657
    }
21658
 
21659
    public HelperServiceException getHse() {
21660
      return this.hse;
21661
    }
21662
 
21663
    public void setHse(HelperServiceException hse) {
21664
      this.hse = hse;
21665
    }
21666
 
21667
    public void unsetHse() {
21668
      this.hse = null;
21669
    }
21670
 
21671
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21672
    public boolean isSetHse() {
21673
      return this.hse != null;
21674
    }
21675
 
21676
    public void setHseIsSet(boolean value) {
21677
      if (!value) {
21678
        this.hse = null;
21679
      }
21680
    }
21681
 
21682
    public void setFieldValue(_Fields field, Object value) {
21683
      switch (field) {
21684
      case HSE:
21685
        if (value == null) {
21686
          unsetHse();
21687
        } else {
21688
          setHse((HelperServiceException)value);
21689
        }
21690
        break;
21691
 
21692
      }
21693
    }
21694
 
21695
    public Object getFieldValue(_Fields field) {
21696
      switch (field) {
21697
      case HSE:
21698
        return getHse();
21699
 
21700
      }
21701
      throw new IllegalStateException();
21702
    }
21703
 
21704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21705
    public boolean isSet(_Fields field) {
21706
      if (field == null) {
21707
        throw new IllegalArgumentException();
21708
      }
21709
 
21710
      switch (field) {
21711
      case HSE:
21712
        return isSetHse();
21713
      }
21714
      throw new IllegalStateException();
21715
    }
21716
 
21717
    @Override
21718
    public boolean equals(Object that) {
21719
      if (that == null)
21720
        return false;
21721
      if (that instanceof updateQuickLink_result)
21722
        return this.equals((updateQuickLink_result)that);
21723
      return false;
21724
    }
21725
 
21726
    public boolean equals(updateQuickLink_result that) {
21727
      if (that == null)
21728
        return false;
21729
 
21730
      boolean this_present_hse = true && this.isSetHse();
21731
      boolean that_present_hse = true && that.isSetHse();
21732
      if (this_present_hse || that_present_hse) {
21733
        if (!(this_present_hse && that_present_hse))
21734
          return false;
21735
        if (!this.hse.equals(that.hse))
21736
          return false;
21737
      }
21738
 
21739
      return true;
21740
    }
21741
 
21742
    @Override
21743
    public int hashCode() {
21744
      return 0;
21745
    }
21746
 
21747
    public int compareTo(updateQuickLink_result other) {
21748
      if (!getClass().equals(other.getClass())) {
21749
        return getClass().getName().compareTo(other.getClass().getName());
21750
      }
21751
 
21752
      int lastComparison = 0;
21753
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21754
 
21755
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21756
      if (lastComparison != 0) {
21757
        return lastComparison;
21758
      }
21759
      if (isSetHse()) {
21760
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21761
        if (lastComparison != 0) {
21762
          return lastComparison;
21763
        }
21764
      }
21765
      return 0;
21766
    }
21767
 
21768
    public _Fields fieldForId(int fieldId) {
21769
      return _Fields.findByThriftId(fieldId);
21770
    }
21771
 
21772
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21773
      org.apache.thrift.protocol.TField field;
21774
      iprot.readStructBegin();
21775
      while (true)
21776
      {
21777
        field = iprot.readFieldBegin();
21778
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21779
          break;
21780
        }
21781
        switch (field.id) {
21782
          case 1: // HSE
21783
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21784
              this.hse = new HelperServiceException();
21785
              this.hse.read(iprot);
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
      oprot.writeStructBegin(STRUCT_DESC);
21801
 
21802
      if (this.isSetHse()) {
21803
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21804
        this.hse.write(oprot);
21805
        oprot.writeFieldEnd();
21806
      }
21807
      oprot.writeFieldStop();
21808
      oprot.writeStructEnd();
21809
    }
21810
 
21811
    @Override
21812
    public String toString() {
21813
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21814
      boolean first = true;
21815
 
21816
      sb.append("hse:");
21817
      if (this.hse == null) {
21818
        sb.append("null");
21819
      } else {
21820
        sb.append(this.hse);
21821
      }
21822
      first = false;
21823
      sb.append(")");
21824
      return sb.toString();
21825
    }
21826
 
21827
    public void validate() throws org.apache.thrift.TException {
21828
      // check for required fields
21829
    }
21830
 
21831
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21832
      try {
21833
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21834
      } catch (org.apache.thrift.TException te) {
21835
        throw new java.io.IOException(te);
21836
      }
21837
    }
21838
 
21839
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21840
      try {
21841
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21842
      } catch (org.apache.thrift.TException te) {
21843
        throw new java.io.IOException(te);
21844
      }
21845
    }
21846
 
21847
  }
21848
 
5055 varun.gupt 21849
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
21850
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
21851
 
21852
    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);
21853
    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);
21854
 
21855
    private long startDatetime; // required
21856
    private long endDatetime; // required
21857
 
21858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21860
      START_DATETIME((short)1, "startDatetime"),
21861
      END_DATETIME((short)2, "endDatetime");
21862
 
21863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21864
 
21865
      static {
21866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21867
          byName.put(field.getFieldName(), field);
21868
        }
21869
      }
21870
 
21871
      /**
21872
       * Find the _Fields constant that matches fieldId, or null if its not found.
21873
       */
21874
      public static _Fields findByThriftId(int fieldId) {
21875
        switch(fieldId) {
21876
          case 1: // START_DATETIME
21877
            return START_DATETIME;
21878
          case 2: // END_DATETIME
21879
            return END_DATETIME;
21880
          default:
21881
            return null;
21882
        }
21883
      }
21884
 
21885
      /**
21886
       * Find the _Fields constant that matches fieldId, throwing an exception
21887
       * if it is not found.
21888
       */
21889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21890
        _Fields fields = findByThriftId(fieldId);
21891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21892
        return fields;
21893
      }
21894
 
21895
      /**
21896
       * Find the _Fields constant that matches name, or null if its not found.
21897
       */
21898
      public static _Fields findByName(String name) {
21899
        return byName.get(name);
21900
      }
21901
 
21902
      private final short _thriftId;
21903
      private final String _fieldName;
21904
 
21905
      _Fields(short thriftId, String fieldName) {
21906
        _thriftId = thriftId;
21907
        _fieldName = fieldName;
21908
      }
21909
 
21910
      public short getThriftFieldId() {
21911
        return _thriftId;
21912
      }
21913
 
21914
      public String getFieldName() {
21915
        return _fieldName;
21916
      }
21917
    }
21918
 
21919
    // isset id assignments
21920
    private static final int __STARTDATETIME_ISSET_ID = 0;
21921
    private static final int __ENDDATETIME_ISSET_ID = 1;
21922
    private BitSet __isset_bit_vector = new BitSet(2);
21923
 
21924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21925
    static {
21926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21927
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21929
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
21933
    }
21934
 
21935
    public getEmailsForNotificationsSent_args() {
21936
    }
21937
 
21938
    public getEmailsForNotificationsSent_args(
21939
      long startDatetime,
21940
      long endDatetime)
21941
    {
21942
      this();
21943
      this.startDatetime = startDatetime;
21944
      setStartDatetimeIsSet(true);
21945
      this.endDatetime = endDatetime;
21946
      setEndDatetimeIsSet(true);
21947
    }
21948
 
21949
    /**
21950
     * Performs a deep copy on <i>other</i>.
21951
     */
21952
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
21953
      __isset_bit_vector.clear();
21954
      __isset_bit_vector.or(other.__isset_bit_vector);
21955
      this.startDatetime = other.startDatetime;
21956
      this.endDatetime = other.endDatetime;
21957
    }
21958
 
21959
    public getEmailsForNotificationsSent_args deepCopy() {
21960
      return new getEmailsForNotificationsSent_args(this);
21961
    }
21962
 
21963
    @Override
21964
    public void clear() {
21965
      setStartDatetimeIsSet(false);
21966
      this.startDatetime = 0;
21967
      setEndDatetimeIsSet(false);
21968
      this.endDatetime = 0;
21969
    }
21970
 
21971
    public long getStartDatetime() {
21972
      return this.startDatetime;
21973
    }
21974
 
21975
    public void setStartDatetime(long startDatetime) {
21976
      this.startDatetime = startDatetime;
21977
      setStartDatetimeIsSet(true);
21978
    }
21979
 
21980
    public void unsetStartDatetime() {
21981
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
21982
    }
21983
 
21984
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
21985
    public boolean isSetStartDatetime() {
21986
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
21987
    }
21988
 
21989
    public void setStartDatetimeIsSet(boolean value) {
21990
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
21991
    }
21992
 
21993
    public long getEndDatetime() {
21994
      return this.endDatetime;
21995
    }
21996
 
21997
    public void setEndDatetime(long endDatetime) {
21998
      this.endDatetime = endDatetime;
21999
      setEndDatetimeIsSet(true);
22000
    }
22001
 
22002
    public void unsetEndDatetime() {
22003
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
22004
    }
22005
 
22006
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
22007
    public boolean isSetEndDatetime() {
22008
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
22009
    }
22010
 
22011
    public void setEndDatetimeIsSet(boolean value) {
22012
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
22013
    }
22014
 
22015
    public void setFieldValue(_Fields field, Object value) {
22016
      switch (field) {
22017
      case START_DATETIME:
22018
        if (value == null) {
22019
          unsetStartDatetime();
22020
        } else {
22021
          setStartDatetime((Long)value);
22022
        }
22023
        break;
22024
 
22025
      case END_DATETIME:
22026
        if (value == null) {
22027
          unsetEndDatetime();
22028
        } else {
22029
          setEndDatetime((Long)value);
22030
        }
22031
        break;
22032
 
22033
      }
22034
    }
22035
 
22036
    public Object getFieldValue(_Fields field) {
22037
      switch (field) {
22038
      case START_DATETIME:
22039
        return Long.valueOf(getStartDatetime());
22040
 
22041
      case END_DATETIME:
22042
        return Long.valueOf(getEndDatetime());
22043
 
22044
      }
22045
      throw new IllegalStateException();
22046
    }
22047
 
22048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22049
    public boolean isSet(_Fields field) {
22050
      if (field == null) {
22051
        throw new IllegalArgumentException();
22052
      }
22053
 
22054
      switch (field) {
22055
      case START_DATETIME:
22056
        return isSetStartDatetime();
22057
      case END_DATETIME:
22058
        return isSetEndDatetime();
22059
      }
22060
      throw new IllegalStateException();
22061
    }
22062
 
22063
    @Override
22064
    public boolean equals(Object that) {
22065
      if (that == null)
22066
        return false;
22067
      if (that instanceof getEmailsForNotificationsSent_args)
22068
        return this.equals((getEmailsForNotificationsSent_args)that);
22069
      return false;
22070
    }
22071
 
22072
    public boolean equals(getEmailsForNotificationsSent_args that) {
22073
      if (that == null)
22074
        return false;
22075
 
22076
      boolean this_present_startDatetime = true;
22077
      boolean that_present_startDatetime = true;
22078
      if (this_present_startDatetime || that_present_startDatetime) {
22079
        if (!(this_present_startDatetime && that_present_startDatetime))
22080
          return false;
22081
        if (this.startDatetime != that.startDatetime)
22082
          return false;
22083
      }
22084
 
22085
      boolean this_present_endDatetime = true;
22086
      boolean that_present_endDatetime = true;
22087
      if (this_present_endDatetime || that_present_endDatetime) {
22088
        if (!(this_present_endDatetime && that_present_endDatetime))
22089
          return false;
22090
        if (this.endDatetime != that.endDatetime)
22091
          return false;
22092
      }
22093
 
22094
      return true;
22095
    }
22096
 
22097
    @Override
22098
    public int hashCode() {
22099
      return 0;
22100
    }
22101
 
22102
    public int compareTo(getEmailsForNotificationsSent_args other) {
22103
      if (!getClass().equals(other.getClass())) {
22104
        return getClass().getName().compareTo(other.getClass().getName());
22105
      }
22106
 
22107
      int lastComparison = 0;
22108
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22109
 
22110
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22111
      if (lastComparison != 0) {
22112
        return lastComparison;
22113
      }
22114
      if (isSetStartDatetime()) {
22115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22116
        if (lastComparison != 0) {
22117
          return lastComparison;
22118
        }
22119
      }
22120
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22121
      if (lastComparison != 0) {
22122
        return lastComparison;
22123
      }
22124
      if (isSetEndDatetime()) {
22125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22126
        if (lastComparison != 0) {
22127
          return lastComparison;
22128
        }
22129
      }
22130
      return 0;
22131
    }
22132
 
22133
    public _Fields fieldForId(int fieldId) {
22134
      return _Fields.findByThriftId(fieldId);
22135
    }
22136
 
22137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22138
      org.apache.thrift.protocol.TField field;
22139
      iprot.readStructBegin();
22140
      while (true)
22141
      {
22142
        field = iprot.readFieldBegin();
22143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22144
          break;
22145
        }
22146
        switch (field.id) {
22147
          case 1: // START_DATETIME
22148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22149
              this.startDatetime = iprot.readI64();
22150
              setStartDatetimeIsSet(true);
22151
            } else { 
22152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22153
            }
22154
            break;
22155
          case 2: // END_DATETIME
22156
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22157
              this.endDatetime = iprot.readI64();
22158
              setEndDatetimeIsSet(true);
22159
            } else { 
22160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22161
            }
22162
            break;
22163
          default:
22164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22165
        }
22166
        iprot.readFieldEnd();
22167
      }
22168
      iprot.readStructEnd();
22169
      validate();
22170
    }
22171
 
22172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22173
      validate();
22174
 
22175
      oprot.writeStructBegin(STRUCT_DESC);
22176
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22177
      oprot.writeI64(this.startDatetime);
22178
      oprot.writeFieldEnd();
22179
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22180
      oprot.writeI64(this.endDatetime);
22181
      oprot.writeFieldEnd();
22182
      oprot.writeFieldStop();
22183
      oprot.writeStructEnd();
22184
    }
22185
 
22186
    @Override
22187
    public String toString() {
22188
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22189
      boolean first = true;
22190
 
22191
      sb.append("startDatetime:");
22192
      sb.append(this.startDatetime);
22193
      first = false;
22194
      if (!first) sb.append(", ");
22195
      sb.append("endDatetime:");
22196
      sb.append(this.endDatetime);
22197
      first = false;
22198
      sb.append(")");
22199
      return sb.toString();
22200
    }
22201
 
22202
    public void validate() throws org.apache.thrift.TException {
22203
      // check for required fields
22204
    }
22205
 
22206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22207
      try {
22208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22209
      } catch (org.apache.thrift.TException te) {
22210
        throw new java.io.IOException(te);
22211
      }
22212
    }
22213
 
22214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22215
      try {
22216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22217
      } catch (org.apache.thrift.TException te) {
22218
        throw new java.io.IOException(te);
22219
      }
22220
    }
22221
 
22222
  }
22223
 
22224
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22226
 
22227
    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);
22228
    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);
22229
 
22230
    private List<String> success; // required
22231
    private HelperServiceException hse; // required
22232
 
22233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22235
      SUCCESS((short)0, "success"),
22236
      HSE((short)1, "hse");
22237
 
22238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22239
 
22240
      static {
22241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22242
          byName.put(field.getFieldName(), field);
22243
        }
22244
      }
22245
 
22246
      /**
22247
       * Find the _Fields constant that matches fieldId, or null if its not found.
22248
       */
22249
      public static _Fields findByThriftId(int fieldId) {
22250
        switch(fieldId) {
22251
          case 0: // SUCCESS
22252
            return SUCCESS;
22253
          case 1: // HSE
22254
            return HSE;
22255
          default:
22256
            return null;
22257
        }
22258
      }
22259
 
22260
      /**
22261
       * Find the _Fields constant that matches fieldId, throwing an exception
22262
       * if it is not found.
22263
       */
22264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22265
        _Fields fields = findByThriftId(fieldId);
22266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22267
        return fields;
22268
      }
22269
 
22270
      /**
22271
       * Find the _Fields constant that matches name, or null if its not found.
22272
       */
22273
      public static _Fields findByName(String name) {
22274
        return byName.get(name);
22275
      }
22276
 
22277
      private final short _thriftId;
22278
      private final String _fieldName;
22279
 
22280
      _Fields(short thriftId, String fieldName) {
22281
        _thriftId = thriftId;
22282
        _fieldName = fieldName;
22283
      }
22284
 
22285
      public short getThriftFieldId() {
22286
        return _thriftId;
22287
      }
22288
 
22289
      public String getFieldName() {
22290
        return _fieldName;
22291
      }
22292
    }
22293
 
22294
    // isset id assignments
22295
 
22296
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22297
    static {
22298
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22299
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22300
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22301
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22302
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22303
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22304
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22305
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22306
    }
22307
 
22308
    public getEmailsForNotificationsSent_result() {
22309
    }
22310
 
22311
    public getEmailsForNotificationsSent_result(
22312
      List<String> success,
22313
      HelperServiceException hse)
22314
    {
22315
      this();
22316
      this.success = success;
22317
      this.hse = hse;
22318
    }
22319
 
22320
    /**
22321
     * Performs a deep copy on <i>other</i>.
22322
     */
22323
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22324
      if (other.isSetSuccess()) {
22325
        List<String> __this__success = new ArrayList<String>();
22326
        for (String other_element : other.success) {
22327
          __this__success.add(other_element);
22328
        }
22329
        this.success = __this__success;
22330
      }
22331
      if (other.isSetHse()) {
22332
        this.hse = new HelperServiceException(other.hse);
22333
      }
22334
    }
22335
 
22336
    public getEmailsForNotificationsSent_result deepCopy() {
22337
      return new getEmailsForNotificationsSent_result(this);
22338
    }
22339
 
22340
    @Override
22341
    public void clear() {
22342
      this.success = null;
22343
      this.hse = null;
22344
    }
22345
 
22346
    public int getSuccessSize() {
22347
      return (this.success == null) ? 0 : this.success.size();
22348
    }
22349
 
22350
    public java.util.Iterator<String> getSuccessIterator() {
22351
      return (this.success == null) ? null : this.success.iterator();
22352
    }
22353
 
22354
    public void addToSuccess(String elem) {
22355
      if (this.success == null) {
22356
        this.success = new ArrayList<String>();
22357
      }
22358
      this.success.add(elem);
22359
    }
22360
 
22361
    public List<String> getSuccess() {
22362
      return this.success;
22363
    }
22364
 
22365
    public void setSuccess(List<String> success) {
22366
      this.success = success;
22367
    }
22368
 
22369
    public void unsetSuccess() {
22370
      this.success = null;
22371
    }
22372
 
22373
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22374
    public boolean isSetSuccess() {
22375
      return this.success != null;
22376
    }
22377
 
22378
    public void setSuccessIsSet(boolean value) {
22379
      if (!value) {
22380
        this.success = null;
22381
      }
22382
    }
22383
 
22384
    public HelperServiceException getHse() {
22385
      return this.hse;
22386
    }
22387
 
22388
    public void setHse(HelperServiceException hse) {
22389
      this.hse = hse;
22390
    }
22391
 
22392
    public void unsetHse() {
22393
      this.hse = null;
22394
    }
22395
 
22396
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22397
    public boolean isSetHse() {
22398
      return this.hse != null;
22399
    }
22400
 
22401
    public void setHseIsSet(boolean value) {
22402
      if (!value) {
22403
        this.hse = null;
22404
      }
22405
    }
22406
 
22407
    public void setFieldValue(_Fields field, Object value) {
22408
      switch (field) {
22409
      case SUCCESS:
22410
        if (value == null) {
22411
          unsetSuccess();
22412
        } else {
22413
          setSuccess((List<String>)value);
22414
        }
22415
        break;
22416
 
22417
      case HSE:
22418
        if (value == null) {
22419
          unsetHse();
22420
        } else {
22421
          setHse((HelperServiceException)value);
22422
        }
22423
        break;
22424
 
22425
      }
22426
    }
22427
 
22428
    public Object getFieldValue(_Fields field) {
22429
      switch (field) {
22430
      case SUCCESS:
22431
        return getSuccess();
22432
 
22433
      case HSE:
22434
        return getHse();
22435
 
22436
      }
22437
      throw new IllegalStateException();
22438
    }
22439
 
22440
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22441
    public boolean isSet(_Fields field) {
22442
      if (field == null) {
22443
        throw new IllegalArgumentException();
22444
      }
22445
 
22446
      switch (field) {
22447
      case SUCCESS:
22448
        return isSetSuccess();
22449
      case HSE:
22450
        return isSetHse();
22451
      }
22452
      throw new IllegalStateException();
22453
    }
22454
 
22455
    @Override
22456
    public boolean equals(Object that) {
22457
      if (that == null)
22458
        return false;
22459
      if (that instanceof getEmailsForNotificationsSent_result)
22460
        return this.equals((getEmailsForNotificationsSent_result)that);
22461
      return false;
22462
    }
22463
 
22464
    public boolean equals(getEmailsForNotificationsSent_result that) {
22465
      if (that == null)
22466
        return false;
22467
 
22468
      boolean this_present_success = true && this.isSetSuccess();
22469
      boolean that_present_success = true && that.isSetSuccess();
22470
      if (this_present_success || that_present_success) {
22471
        if (!(this_present_success && that_present_success))
22472
          return false;
22473
        if (!this.success.equals(that.success))
22474
          return false;
22475
      }
22476
 
22477
      boolean this_present_hse = true && this.isSetHse();
22478
      boolean that_present_hse = true && that.isSetHse();
22479
      if (this_present_hse || that_present_hse) {
22480
        if (!(this_present_hse && that_present_hse))
22481
          return false;
22482
        if (!this.hse.equals(that.hse))
22483
          return false;
22484
      }
22485
 
22486
      return true;
22487
    }
22488
 
22489
    @Override
22490
    public int hashCode() {
22491
      return 0;
22492
    }
22493
 
22494
    public int compareTo(getEmailsForNotificationsSent_result other) {
22495
      if (!getClass().equals(other.getClass())) {
22496
        return getClass().getName().compareTo(other.getClass().getName());
22497
      }
22498
 
22499
      int lastComparison = 0;
22500
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22501
 
22502
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22503
      if (lastComparison != 0) {
22504
        return lastComparison;
22505
      }
22506
      if (isSetSuccess()) {
22507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22508
        if (lastComparison != 0) {
22509
          return lastComparison;
22510
        }
22511
      }
22512
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22513
      if (lastComparison != 0) {
22514
        return lastComparison;
22515
      }
22516
      if (isSetHse()) {
22517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22518
        if (lastComparison != 0) {
22519
          return lastComparison;
22520
        }
22521
      }
22522
      return 0;
22523
    }
22524
 
22525
    public _Fields fieldForId(int fieldId) {
22526
      return _Fields.findByThriftId(fieldId);
22527
    }
22528
 
22529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22530
      org.apache.thrift.protocol.TField field;
22531
      iprot.readStructBegin();
22532
      while (true)
22533
      {
22534
        field = iprot.readFieldBegin();
22535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22536
          break;
22537
        }
22538
        switch (field.id) {
22539
          case 0: // SUCCESS
22540
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22541
              {
5864 rajveer 22542
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22543
                this.success = new ArrayList<String>(_list65.size);
22544
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22545
                {
5864 rajveer 22546
                  String _elem67; // required
22547
                  _elem67 = iprot.readString();
22548
                  this.success.add(_elem67);
5055 varun.gupt 22549
                }
22550
                iprot.readListEnd();
22551
              }
22552
            } else { 
22553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22554
            }
22555
            break;
22556
          case 1: // HSE
22557
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22558
              this.hse = new HelperServiceException();
22559
              this.hse.read(iprot);
22560
            } else { 
22561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22562
            }
22563
            break;
22564
          default:
22565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22566
        }
22567
        iprot.readFieldEnd();
22568
      }
22569
      iprot.readStructEnd();
22570
      validate();
22571
    }
22572
 
22573
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22574
      oprot.writeStructBegin(STRUCT_DESC);
22575
 
22576
      if (this.isSetSuccess()) {
22577
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22578
        {
22579
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22580
          for (String _iter68 : this.success)
5055 varun.gupt 22581
          {
5864 rajveer 22582
            oprot.writeString(_iter68);
5055 varun.gupt 22583
          }
22584
          oprot.writeListEnd();
22585
        }
22586
        oprot.writeFieldEnd();
22587
      } else if (this.isSetHse()) {
22588
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22589
        this.hse.write(oprot);
22590
        oprot.writeFieldEnd();
22591
      }
22592
      oprot.writeFieldStop();
22593
      oprot.writeStructEnd();
22594
    }
22595
 
22596
    @Override
22597
    public String toString() {
22598
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22599
      boolean first = true;
22600
 
22601
      sb.append("success:");
22602
      if (this.success == null) {
22603
        sb.append("null");
22604
      } else {
22605
        sb.append(this.success);
22606
      }
22607
      first = false;
22608
      if (!first) sb.append(", ");
22609
      sb.append("hse:");
22610
      if (this.hse == null) {
22611
        sb.append("null");
22612
      } else {
22613
        sb.append(this.hse);
22614
      }
22615
      first = false;
22616
      sb.append(")");
22617
      return sb.toString();
22618
    }
22619
 
22620
    public void validate() throws org.apache.thrift.TException {
22621
      // check for required fields
22622
    }
22623
 
22624
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22625
      try {
22626
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22627
      } catch (org.apache.thrift.TException te) {
22628
        throw new java.io.IOException(te);
22629
      }
22630
    }
22631
 
22632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22633
      try {
22634
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22635
      } catch (org.apache.thrift.TException te) {
22636
        throw new java.io.IOException(te);
22637
      }
22638
    }
22639
 
22640
  }
22641
 
6322 amar.kumar 22642
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
22643
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
22644
 
22645
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
22646
 
22647
    private long orderId; // required
22648
 
22649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22651
      ORDER_ID((short)1, "orderId");
22652
 
22653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22654
 
22655
      static {
22656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22657
          byName.put(field.getFieldName(), field);
22658
        }
22659
      }
22660
 
22661
      /**
22662
       * Find the _Fields constant that matches fieldId, or null if its not found.
22663
       */
22664
      public static _Fields findByThriftId(int fieldId) {
22665
        switch(fieldId) {
22666
          case 1: // ORDER_ID
22667
            return ORDER_ID;
22668
          default:
22669
            return null;
22670
        }
22671
      }
22672
 
22673
      /**
22674
       * Find the _Fields constant that matches fieldId, throwing an exception
22675
       * if it is not found.
22676
       */
22677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22678
        _Fields fields = findByThriftId(fieldId);
22679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22680
        return fields;
22681
      }
22682
 
22683
      /**
22684
       * Find the _Fields constant that matches name, or null if its not found.
22685
       */
22686
      public static _Fields findByName(String name) {
22687
        return byName.get(name);
22688
      }
22689
 
22690
      private final short _thriftId;
22691
      private final String _fieldName;
22692
 
22693
      _Fields(short thriftId, String fieldName) {
22694
        _thriftId = thriftId;
22695
        _fieldName = fieldName;
22696
      }
22697
 
22698
      public short getThriftFieldId() {
22699
        return _thriftId;
22700
      }
22701
 
22702
      public String getFieldName() {
22703
        return _fieldName;
22704
      }
22705
    }
22706
 
22707
    // isset id assignments
22708
    private static final int __ORDERID_ISSET_ID = 0;
22709
    private BitSet __isset_bit_vector = new BitSet(1);
22710
 
22711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22712
    static {
22713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22714
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
22718
    }
22719
 
22720
    public getOrderConfirmationMail_args() {
22721
    }
22722
 
22723
    public getOrderConfirmationMail_args(
22724
      long orderId)
22725
    {
22726
      this();
22727
      this.orderId = orderId;
22728
      setOrderIdIsSet(true);
22729
    }
22730
 
22731
    /**
22732
     * Performs a deep copy on <i>other</i>.
22733
     */
22734
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
22735
      __isset_bit_vector.clear();
22736
      __isset_bit_vector.or(other.__isset_bit_vector);
22737
      this.orderId = other.orderId;
22738
    }
22739
 
22740
    public getOrderConfirmationMail_args deepCopy() {
22741
      return new getOrderConfirmationMail_args(this);
22742
    }
22743
 
22744
    @Override
22745
    public void clear() {
22746
      setOrderIdIsSet(false);
22747
      this.orderId = 0;
22748
    }
22749
 
22750
    public long getOrderId() {
22751
      return this.orderId;
22752
    }
22753
 
22754
    public void setOrderId(long orderId) {
22755
      this.orderId = orderId;
22756
      setOrderIdIsSet(true);
22757
    }
22758
 
22759
    public void unsetOrderId() {
22760
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22761
    }
22762
 
22763
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
22764
    public boolean isSetOrderId() {
22765
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22766
    }
22767
 
22768
    public void setOrderIdIsSet(boolean value) {
22769
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22770
    }
22771
 
22772
    public void setFieldValue(_Fields field, Object value) {
22773
      switch (field) {
22774
      case ORDER_ID:
22775
        if (value == null) {
22776
          unsetOrderId();
22777
        } else {
22778
          setOrderId((Long)value);
22779
        }
22780
        break;
22781
 
22782
      }
22783
    }
22784
 
22785
    public Object getFieldValue(_Fields field) {
22786
      switch (field) {
22787
      case ORDER_ID:
22788
        return Long.valueOf(getOrderId());
22789
 
22790
      }
22791
      throw new IllegalStateException();
22792
    }
22793
 
22794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22795
    public boolean isSet(_Fields field) {
22796
      if (field == null) {
22797
        throw new IllegalArgumentException();
22798
      }
22799
 
22800
      switch (field) {
22801
      case ORDER_ID:
22802
        return isSetOrderId();
22803
      }
22804
      throw new IllegalStateException();
22805
    }
22806
 
22807
    @Override
22808
    public boolean equals(Object that) {
22809
      if (that == null)
22810
        return false;
22811
      if (that instanceof getOrderConfirmationMail_args)
22812
        return this.equals((getOrderConfirmationMail_args)that);
22813
      return false;
22814
    }
22815
 
22816
    public boolean equals(getOrderConfirmationMail_args that) {
22817
      if (that == null)
22818
        return false;
22819
 
22820
      boolean this_present_orderId = true;
22821
      boolean that_present_orderId = true;
22822
      if (this_present_orderId || that_present_orderId) {
22823
        if (!(this_present_orderId && that_present_orderId))
22824
          return false;
22825
        if (this.orderId != that.orderId)
22826
          return false;
22827
      }
22828
 
22829
      return true;
22830
    }
22831
 
22832
    @Override
22833
    public int hashCode() {
22834
      return 0;
22835
    }
22836
 
22837
    public int compareTo(getOrderConfirmationMail_args other) {
22838
      if (!getClass().equals(other.getClass())) {
22839
        return getClass().getName().compareTo(other.getClass().getName());
22840
      }
22841
 
22842
      int lastComparison = 0;
22843
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
22844
 
22845
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
22846
      if (lastComparison != 0) {
22847
        return lastComparison;
22848
      }
22849
      if (isSetOrderId()) {
22850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22851
        if (lastComparison != 0) {
22852
          return lastComparison;
22853
        }
22854
      }
22855
      return 0;
22856
    }
22857
 
22858
    public _Fields fieldForId(int fieldId) {
22859
      return _Fields.findByThriftId(fieldId);
22860
    }
22861
 
22862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22863
      org.apache.thrift.protocol.TField field;
22864
      iprot.readStructBegin();
22865
      while (true)
22866
      {
22867
        field = iprot.readFieldBegin();
22868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22869
          break;
22870
        }
22871
        switch (field.id) {
22872
          case 1: // ORDER_ID
22873
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22874
              this.orderId = iprot.readI64();
22875
              setOrderIdIsSet(true);
22876
            } else { 
22877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22878
            }
22879
            break;
22880
          default:
22881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22882
        }
22883
        iprot.readFieldEnd();
22884
      }
22885
      iprot.readStructEnd();
22886
      validate();
22887
    }
22888
 
22889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22890
      validate();
22891
 
22892
      oprot.writeStructBegin(STRUCT_DESC);
22893
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22894
      oprot.writeI64(this.orderId);
22895
      oprot.writeFieldEnd();
22896
      oprot.writeFieldStop();
22897
      oprot.writeStructEnd();
22898
    }
22899
 
22900
    @Override
22901
    public String toString() {
22902
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
22903
      boolean first = true;
22904
 
22905
      sb.append("orderId:");
22906
      sb.append(this.orderId);
22907
      first = false;
22908
      sb.append(")");
22909
      return sb.toString();
22910
    }
22911
 
22912
    public void validate() throws org.apache.thrift.TException {
22913
      // check for required fields
22914
    }
22915
 
22916
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22917
      try {
22918
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22919
      } catch (org.apache.thrift.TException te) {
22920
        throw new java.io.IOException(te);
22921
      }
22922
    }
22923
 
22924
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22925
      try {
22926
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22927
        __isset_bit_vector = new BitSet(1);
22928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22929
      } catch (org.apache.thrift.TException te) {
22930
        throw new java.io.IOException(te);
22931
      }
22932
    }
22933
 
22934
  }
22935
 
22936
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
22937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
22938
 
22939
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
22940
 
22941
    private String success; // required
22942
 
22943
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22944
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22945
      SUCCESS((short)0, "success");
22946
 
22947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22948
 
22949
      static {
22950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22951
          byName.put(field.getFieldName(), field);
22952
        }
22953
      }
22954
 
22955
      /**
22956
       * Find the _Fields constant that matches fieldId, or null if its not found.
22957
       */
22958
      public static _Fields findByThriftId(int fieldId) {
22959
        switch(fieldId) {
22960
          case 0: // SUCCESS
22961
            return SUCCESS;
22962
          default:
22963
            return null;
22964
        }
22965
      }
22966
 
22967
      /**
22968
       * Find the _Fields constant that matches fieldId, throwing an exception
22969
       * if it is not found.
22970
       */
22971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22972
        _Fields fields = findByThriftId(fieldId);
22973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22974
        return fields;
22975
      }
22976
 
22977
      /**
22978
       * Find the _Fields constant that matches name, or null if its not found.
22979
       */
22980
      public static _Fields findByName(String name) {
22981
        return byName.get(name);
22982
      }
22983
 
22984
      private final short _thriftId;
22985
      private final String _fieldName;
22986
 
22987
      _Fields(short thriftId, String fieldName) {
22988
        _thriftId = thriftId;
22989
        _fieldName = fieldName;
22990
      }
22991
 
22992
      public short getThriftFieldId() {
22993
        return _thriftId;
22994
      }
22995
 
22996
      public String getFieldName() {
22997
        return _fieldName;
22998
      }
22999
    }
23000
 
23001
    // isset id assignments
23002
 
23003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23004
    static {
23005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23006
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
23010
    }
23011
 
23012
    public getOrderConfirmationMail_result() {
23013
    }
23014
 
23015
    public getOrderConfirmationMail_result(
23016
      String success)
23017
    {
23018
      this();
23019
      this.success = success;
23020
    }
23021
 
23022
    /**
23023
     * Performs a deep copy on <i>other</i>.
23024
     */
23025
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
23026
      if (other.isSetSuccess()) {
23027
        this.success = other.success;
23028
      }
23029
    }
23030
 
23031
    public getOrderConfirmationMail_result deepCopy() {
23032
      return new getOrderConfirmationMail_result(this);
23033
    }
23034
 
23035
    @Override
23036
    public void clear() {
23037
      this.success = null;
23038
    }
23039
 
23040
    public String getSuccess() {
23041
      return this.success;
23042
    }
23043
 
23044
    public void setSuccess(String success) {
23045
      this.success = success;
23046
    }
23047
 
23048
    public void unsetSuccess() {
23049
      this.success = null;
23050
    }
23051
 
23052
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23053
    public boolean isSetSuccess() {
23054
      return this.success != null;
23055
    }
23056
 
23057
    public void setSuccessIsSet(boolean value) {
23058
      if (!value) {
23059
        this.success = null;
23060
      }
23061
    }
23062
 
23063
    public void setFieldValue(_Fields field, Object value) {
23064
      switch (field) {
23065
      case SUCCESS:
23066
        if (value == null) {
23067
          unsetSuccess();
23068
        } else {
23069
          setSuccess((String)value);
23070
        }
23071
        break;
23072
 
23073
      }
23074
    }
23075
 
23076
    public Object getFieldValue(_Fields field) {
23077
      switch (field) {
23078
      case SUCCESS:
23079
        return getSuccess();
23080
 
23081
      }
23082
      throw new IllegalStateException();
23083
    }
23084
 
23085
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23086
    public boolean isSet(_Fields field) {
23087
      if (field == null) {
23088
        throw new IllegalArgumentException();
23089
      }
23090
 
23091
      switch (field) {
23092
      case SUCCESS:
23093
        return isSetSuccess();
23094
      }
23095
      throw new IllegalStateException();
23096
    }
23097
 
23098
    @Override
23099
    public boolean equals(Object that) {
23100
      if (that == null)
23101
        return false;
23102
      if (that instanceof getOrderConfirmationMail_result)
23103
        return this.equals((getOrderConfirmationMail_result)that);
23104
      return false;
23105
    }
23106
 
23107
    public boolean equals(getOrderConfirmationMail_result that) {
23108
      if (that == null)
23109
        return false;
23110
 
23111
      boolean this_present_success = true && this.isSetSuccess();
23112
      boolean that_present_success = true && that.isSetSuccess();
23113
      if (this_present_success || that_present_success) {
23114
        if (!(this_present_success && that_present_success))
23115
          return false;
23116
        if (!this.success.equals(that.success))
23117
          return false;
23118
      }
23119
 
23120
      return true;
23121
    }
23122
 
23123
    @Override
23124
    public int hashCode() {
23125
      return 0;
23126
    }
23127
 
23128
    public int compareTo(getOrderConfirmationMail_result other) {
23129
      if (!getClass().equals(other.getClass())) {
23130
        return getClass().getName().compareTo(other.getClass().getName());
23131
      }
23132
 
23133
      int lastComparison = 0;
23134
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
23135
 
23136
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23137
      if (lastComparison != 0) {
23138
        return lastComparison;
23139
      }
23140
      if (isSetSuccess()) {
23141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23142
        if (lastComparison != 0) {
23143
          return lastComparison;
23144
        }
23145
      }
23146
      return 0;
23147
    }
23148
 
23149
    public _Fields fieldForId(int fieldId) {
23150
      return _Fields.findByThriftId(fieldId);
23151
    }
23152
 
23153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23154
      org.apache.thrift.protocol.TField field;
23155
      iprot.readStructBegin();
23156
      while (true)
23157
      {
23158
        field = iprot.readFieldBegin();
23159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23160
          break;
23161
        }
23162
        switch (field.id) {
23163
          case 0: // SUCCESS
23164
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23165
              this.success = iprot.readString();
23166
            } else { 
23167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23168
            }
23169
            break;
23170
          default:
23171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23172
        }
23173
        iprot.readFieldEnd();
23174
      }
23175
      iprot.readStructEnd();
23176
      validate();
23177
    }
23178
 
23179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23180
      oprot.writeStructBegin(STRUCT_DESC);
23181
 
23182
      if (this.isSetSuccess()) {
23183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23184
        oprot.writeString(this.success);
23185
        oprot.writeFieldEnd();
23186
      }
23187
      oprot.writeFieldStop();
23188
      oprot.writeStructEnd();
23189
    }
23190
 
23191
    @Override
23192
    public String toString() {
23193
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
23194
      boolean first = true;
23195
 
23196
      sb.append("success:");
23197
      if (this.success == null) {
23198
        sb.append("null");
23199
      } else {
23200
        sb.append(this.success);
23201
      }
23202
      first = false;
23203
      sb.append(")");
23204
      return sb.toString();
23205
    }
23206
 
23207
    public void validate() throws org.apache.thrift.TException {
23208
      // check for required fields
23209
    }
23210
 
23211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23212
      try {
23213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23214
      } catch (org.apache.thrift.TException te) {
23215
        throw new java.io.IOException(te);
23216
      }
23217
    }
23218
 
23219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23220
      try {
23221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23222
      } catch (org.apache.thrift.TException te) {
23223
        throw new java.io.IOException(te);
23224
      }
23225
    }
23226
 
23227
  }
23228
 
352 ashish 23229
}