Subversion Repositories SmartDukaan

Rev

Rev 5055 | Rev 6322 | 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
 
352 ashish 163
  }
164
 
3430 rajveer 165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
166
 
5864 rajveer 167
    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 168
 
169
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
192
 
193
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
202
 
4544 varun.gupt 203
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
204
 
4693 mandeep.dh 205
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
206
 
207
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
208
 
209
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
214
 
4806 varun.gupt 215
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
216
 
217
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
218
 
4996 varun.gupt 219
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
220
 
5055 varun.gupt 221
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
222
 
3430 rajveer 223
  }
224
 
3374 rajveer 225
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 226
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
227
      public Factory() {}
228
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
229
        return new Client(prot);
230
      }
231
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
232
        return new Client(iprot, oprot);
233
      }
234
    }
235
 
236
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 237
    {
3430 rajveer 238
      super(prot, prot);
352 ashish 239
    }
240
 
3430 rajveer 241
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 242
      super(iprot, oprot);
352 ashish 243
    }
244
 
5864 rajveer 245
    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 246
    {
5864 rajveer 247
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
3206 mandeep.dh 248
      return recv_saveUserEmailForSending();
1395 varun.gupt 249
    }
250
 
5864 rajveer 251
    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 252
    {
253
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 254
      args.setEmailTo(emailTo);
255
      args.setEmailFrom(emailFrom);
256
      args.setSubject(subject);
257
      args.setBody(body);
258
      args.setSource(source);
259
      args.setEmailType(emailType);
5864 rajveer 260
      args.setCc(cc);
261
      args.setBcc(bcc);
3430 rajveer 262
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 263
    }
264
 
3430 rajveer 265
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 266
    {
267
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 268
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 269
      if (result.isSetSuccess()) {
270
        return result.success;
271
      }
1395 varun.gupt 272
      if (result.se != null) {
273
        throw result.se;
274
      }
3430 rajveer 275
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 276
    }
277
 
3430 rajveer 278
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 279
    {
3086 rajveer 280
      send_getEmailsToBeSent();
1422 varun.gupt 281
      return recv_getEmailsToBeSent();
282
    }
283
 
3430 rajveer 284
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 285
    {
286
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 287
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 288
    }
289
 
3430 rajveer 290
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 291
    {
292
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 293
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 294
      if (result.isSetSuccess()) {
295
        return result.success;
296
      }
297
      if (result.se != null) {
298
        throw result.se;
299
      }
3430 rajveer 300
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 301
    }
302
 
3430 rajveer 303
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 304
    {
305
      send_markEmailAsSent(emailId);
306
      recv_markEmailAsSent();
307
    }
308
 
3430 rajveer 309
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 310
    {
311
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 312
      args.setEmailId(emailId);
313
      sendBase("markEmailAsSent", args);
1422 varun.gupt 314
    }
315
 
3430 rajveer 316
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 317
    {
318
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 319
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 320
      if (result.se != null) {
321
        throw result.se;
322
      }
323
      return;
324
    }
325
 
3430 rajveer 326
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 327
    {
328
      send_sendMail(mail);
329
      recv_sendMail();
330
    }
331
 
3430 rajveer 332
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 333
    {
334
      sendMail_args args = new sendMail_args();
3430 rajveer 335
      args.setMail(mail);
336
      sendBase("sendMail", args);
352 ashish 337
    }
338
 
3430 rajveer 339
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 340
    {
341
      sendMail_result result = new sendMail_result();
3430 rajveer 342
      receiveBase(result, "sendMail");
352 ashish 343
      if (result.se != null) {
344
        throw result.se;
345
      }
346
      return;
347
    }
348
 
3430 rajveer 349
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 350
    {
351
      send_sendText(message);
352
      recv_sendText();
353
    }
354
 
3430 rajveer 355
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 356
    {
357
      sendText_args args = new sendText_args();
3430 rajveer 358
      args.setMessage(message);
359
      sendBase("sendText", args);
352 ashish 360
    }
361
 
3430 rajveer 362
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 363
    {
364
      sendText_result result = new sendText_result();
3430 rajveer 365
      receiveBase(result, "sendText");
352 ashish 366
      if (result.se != null) {
367
        throw result.se;
368
      }
369
      return;
370
    }
371
 
3430 rajveer 372
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 373
    {
374
      send_addMessage(message);
375
      recv_addMessage();
376
    }
377
 
3430 rajveer 378
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 379
    {
380
      addMessage_args args = new addMessage_args();
3430 rajveer 381
      args.setMessage(message);
382
      sendBase("addMessage", args);
352 ashish 383
    }
384
 
3430 rajveer 385
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 386
    {
387
      addMessage_result result = new addMessage_result();
3430 rajveer 388
      receiveBase(result, "addMessage");
352 ashish 389
      if (result.se != null) {
390
        throw result.se;
391
      }
392
      return;
393
    }
394
 
3430 rajveer 395
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 396
    {
397
      send_updateMessage(id, message);
398
      recv_updateMessage();
399
    }
400
 
3430 rajveer 401
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 402
    {
403
      updateMessage_args args = new updateMessage_args();
3430 rajveer 404
      args.setId(id);
405
      args.setMessage(message);
406
      sendBase("updateMessage", args);
352 ashish 407
    }
408
 
3430 rajveer 409
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 410
    {
411
      updateMessage_result result = new updateMessage_result();
3430 rajveer 412
      receiveBase(result, "updateMessage");
352 ashish 413
      if (result.se != null) {
414
        throw result.se;
415
      }
416
      return;
417
    }
418
 
3430 rajveer 419
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 420
    {
421
      send_getMessage(id);
422
      return recv_getMessage();
423
    }
424
 
3430 rajveer 425
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 426
    {
427
      getMessage_args args = new getMessage_args();
3430 rajveer 428
      args.setId(id);
429
      sendBase("getMessage", args);
352 ashish 430
    }
431
 
3430 rajveer 432
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 433
    {
434
      getMessage_result result = new getMessage_result();
3430 rajveer 435
      receiveBase(result, "getMessage");
352 ashish 436
      if (result.isSetSuccess()) {
437
        return result.success;
438
      }
439
      if (result.se != null) {
440
        throw result.se;
441
      }
3430 rajveer 442
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 443
    }
444
 
3430 rajveer 445
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 446
    {
447
      send_getSubstitutedMessage(id, params);
448
      return recv_getSubstitutedMessage();
449
    }
450
 
3430 rajveer 451
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 452
    {
453
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 454
      args.setId(id);
455
      args.setParams(params);
456
      sendBase("getSubstitutedMessage", args);
352 ashish 457
    }
458
 
3430 rajveer 459
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 460
    {
461
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 462
      receiveBase(result, "getSubstitutedMessage");
352 ashish 463
      if (result.isSetSuccess()) {
464
        return result.success;
465
      }
466
      if (result.se != null) {
467
        throw result.se;
468
      }
3430 rajveer 469
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 470
    }
471
 
3430 rajveer 472
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 473
    {
474
      send_addUser(username, password, warehouseId);
475
      return recv_addUser();
476
    }
477
 
3430 rajveer 478
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 479
    {
480
      addUser_args args = new addUser_args();
3430 rajveer 481
      args.setUsername(username);
482
      args.setPassword(password);
483
      args.setWarehouseId(warehouseId);
484
      sendBase("addUser", args);
495 rajveer 485
    }
486
 
3430 rajveer 487
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 488
    {
489
      addUser_result result = new addUser_result();
3430 rajveer 490
      receiveBase(result, "addUser");
495 rajveer 491
      if (result.isSetSuccess()) {
492
        return result.success;
493
      }
494
      if (result.se != null) {
495
        throw result.se;
496
      }
3430 rajveer 497
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 498
    }
499
 
3430 rajveer 500
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 501
    {
502
      send_deleteUser(username);
503
      return recv_deleteUser();
504
    }
505
 
3430 rajveer 506
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 507
    {
508
      deleteUser_args args = new deleteUser_args();
3430 rajveer 509
      args.setUsername(username);
510
      sendBase("deleteUser", args);
495 rajveer 511
    }
512
 
3430 rajveer 513
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 514
    {
515
      deleteUser_result result = new deleteUser_result();
3430 rajveer 516
      receiveBase(result, "deleteUser");
495 rajveer 517
      if (result.isSetSuccess()) {
518
        return result.success;
519
      }
520
      if (result.se != null) {
521
        throw result.se;
522
      }
3430 rajveer 523
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 524
    }
525
 
3430 rajveer 526
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 527
    {
2443 chandransh 528
      send_authenticateDashboardUser(username, password);
529
      return recv_authenticateDashboardUser();
495 rajveer 530
    }
531
 
3430 rajveer 532
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 533
    {
2443 chandransh 534
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 535
      args.setUsername(username);
536
      args.setPassword(password);
537
      sendBase("authenticateDashboardUser", args);
495 rajveer 538
    }
539
 
3430 rajveer 540
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 541
    {
2443 chandransh 542
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 543
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 544
      if (result.isSetSuccess()) {
545
        return result.success;
546
      }
547
      if (result.se != null) {
548
        throw result.se;
549
      }
3430 rajveer 550
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 551
    }
552
 
3430 rajveer 553
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 554
    {
555
      send_updatePassword(username, oldPassword, newPassword);
556
      return recv_updatePassword();
557
    }
558
 
3430 rajveer 559
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 560
    {
561
      updatePassword_args args = new updatePassword_args();
3430 rajveer 562
      args.setUsername(username);
563
      args.setOldPassword(oldPassword);
564
      args.setNewPassword(newPassword);
565
      sendBase("updatePassword", args);
495 rajveer 566
    }
567
 
3430 rajveer 568
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 569
    {
570
      updatePassword_result result = new updatePassword_result();
3430 rajveer 571
      receiveBase(result, "updatePassword");
495 rajveer 572
      if (result.isSetSuccess()) {
573
        return result.success;
574
      }
575
      if (result.se != null) {
576
        throw result.se;
577
      }
3430 rajveer 578
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 579
    }
580
 
3430 rajveer 581
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 582
    {
583
      send_authenticateLogisticsUser(username, password);
584
      return recv_authenticateLogisticsUser();
585
    }
586
 
3430 rajveer 587
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 588
    {
589
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 590
      args.setUsername(username);
591
      args.setPassword(password);
592
      sendBase("authenticateLogisticsUser", args);
750 chandransh 593
    }
594
 
3430 rajveer 595
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 596
    {
597
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 598
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 599
      if (result.isSetSuccess()) {
600
        return result.success;
601
      }
602
      if (result.hse != null) {
603
        throw result.hse;
604
      }
3430 rajveer 605
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 606
    }
607
 
3430 rajveer 608
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 609
    {
610
      send_authenticateStatisticsUser(username, password);
611
      return recv_authenticateStatisticsUser();
612
    }
613
 
3430 rajveer 614
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 615
    {
616
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 617
      args.setUsername(username);
618
      args.setPassword(password);
619
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 620
    }
621
 
3430 rajveer 622
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 623
    {
624
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 625
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 626
      if (result.isSetSuccess()) {
627
        return result.success;
628
      }
629
      if (result.hse != null) {
630
        throw result.hse;
631
      }
3430 rajveer 632
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 633
    }
634
 
3430 rajveer 635
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 636
    {
637
      send_authenticateReportUser(username, password);
638
      return recv_authenticateReportUser();
639
    }
640
 
3430 rajveer 641
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 642
    {
643
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 644
      args.setUsername(username);
645
      args.setPassword(password);
646
      sendBase("authenticateReportUser", args);
1891 ankur.sing 647
    }
648
 
3430 rajveer 649
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 650
    {
651
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 652
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 653
      if (result.isSetSuccess()) {
654
        return result.success;
655
      }
656
      if (result.hse != null) {
657
        throw result.hse;
658
      }
3430 rajveer 659
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 660
    }
661
 
3430 rajveer 662
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 663
    {
664
      send_getReports(role);
665
      return recv_getReports();
666
    }
667
 
3430 rajveer 668
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 669
    {
670
      getReports_args args = new getReports_args();
3430 rajveer 671
      args.setRole(role);
672
      sendBase("getReports", args);
1891 ankur.sing 673
    }
674
 
3430 rajveer 675
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 676
    {
677
      getReports_result result = new getReports_result();
3430 rajveer 678
      receiveBase(result, "getReports");
1891 ankur.sing 679
      if (result.isSetSuccess()) {
680
        return result.success;
681
      }
3430 rajveer 682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 683
    }
684
 
3430 rajveer 685
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 686
    {
2357 ankur.sing 687
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 688
      return recv_authenticateCatalogUser();
689
    }
690
 
3430 rajveer 691
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 692
    {
693
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 694
      args.setUsername(username);
695
      args.setPassword(password);
696
      args.setRole(role);
697
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 698
    }
699
 
3430 rajveer 700
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 701
    {
702
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 703
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 704
      if (result.isSetSuccess()) {
705
        return result.success;
706
      }
707
      if (result.hse != null) {
708
        throw result.hse;
709
      }
3430 rajveer 710
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 711
    }
712
 
4544 varun.gupt 713
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
714
    {
715
      send_shareEntities(entityIds, email);
716
      recv_shareEntities();
717
    }
718
 
719
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
720
    {
721
      shareEntities_args args = new shareEntities_args();
722
      args.setEntityIds(entityIds);
723
      args.setEmail(email);
724
      sendBase("shareEntities", args);
725
    }
726
 
727
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
728
    {
729
      shareEntities_result result = new shareEntities_result();
730
      receiveBase(result, "shareEntities");
731
      if (result.hse != null) {
732
        throw result.hse;
733
      }
734
      return;
735
    }
736
 
4693 mandeep.dh 737
    public List<Agent> getAgents() throws org.apache.thrift.TException
738
    {
739
      send_getAgents();
740
      return recv_getAgents();
741
    }
742
 
743
    public void send_getAgents() throws org.apache.thrift.TException
744
    {
745
      getAgents_args args = new getAgents_args();
746
      sendBase("getAgents", args);
747
    }
748
 
749
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
750
    {
751
      getAgents_result result = new getAgents_result();
752
      receiveBase(result, "getAgents");
753
      if (result.isSetSuccess()) {
754
        return result.success;
755
      }
756
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
757
    }
758
 
759
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
760
    {
761
      send_validateLogIn(emailId, password);
762
      return recv_validateLogIn();
763
    }
764
 
765
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
766
    {
767
      validateLogIn_args args = new validateLogIn_args();
768
      args.setEmailId(emailId);
769
      args.setPassword(password);
770
      sendBase("validateLogIn", args);
771
    }
772
 
773
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
774
    {
775
      validateLogIn_result result = new validateLogIn_result();
776
      receiveBase(result, "validateLogIn");
777
      if (result.isSetSuccess()) {
778
        return result.success;
779
      }
780
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
781
    }
782
 
783
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
784
    {
785
      send_updatePasswordForAgent(agentEmailId, password);
786
      recv_updatePasswordForAgent();
787
    }
788
 
789
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
790
    {
791
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
792
      args.setAgentEmailId(agentEmailId);
793
      args.setPassword(password);
794
      sendBase("updatePasswordForAgent", args);
795
    }
796
 
797
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
798
    {
799
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
800
      receiveBase(result, "updatePasswordForAgent");
801
      return;
802
    }
803
 
804
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
805
    {
806
      send_getRoleNamesForAgent(agentEmailId);
807
      return recv_getRoleNamesForAgent();
808
    }
809
 
810
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
811
    {
812
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
813
      args.setAgentEmailId(agentEmailId);
814
      sendBase("getRoleNamesForAgent", args);
815
    }
816
 
817
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
818
    {
819
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
820
      receiveBase(result, "getRoleNamesForAgent");
821
      if (result.isSetSuccess()) {
822
        return result.success;
823
      }
824
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
825
    }
826
 
827
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
828
    {
829
      send_getPermissionsForRoleName(roleName);
830
      return recv_getPermissionsForRoleName();
831
    }
832
 
833
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
834
    {
835
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
836
      args.setRoleName(roleName);
837
      sendBase("getPermissionsForRoleName", args);
838
    }
839
 
840
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
841
    {
842
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
843
      receiveBase(result, "getPermissionsForRoleName");
844
      if (result.isSetSuccess()) {
845
        return result.success;
846
      }
847
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
848
    }
849
 
4806 varun.gupt 850
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
851
    {
852
      send_saveQuickLink(url, text);
853
      recv_saveQuickLink();
854
    }
855
 
856
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
857
    {
858
      saveQuickLink_args args = new saveQuickLink_args();
859
      args.setUrl(url);
860
      args.setText(text);
861
      sendBase("saveQuickLink", args);
862
    }
863
 
864
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
865
    {
866
      saveQuickLink_result result = new saveQuickLink_result();
867
      receiveBase(result, "saveQuickLink");
868
      if (result.hse != null) {
869
        throw result.hse;
870
      }
871
      return;
872
    }
873
 
874
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
875
    {
876
      send_getQuickLinks();
877
      return recv_getQuickLinks();
878
    }
879
 
880
    public void send_getQuickLinks() throws org.apache.thrift.TException
881
    {
882
      getQuickLinks_args args = new getQuickLinks_args();
883
      sendBase("getQuickLinks", args);
884
    }
885
 
886
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
887
    {
888
      getQuickLinks_result result = new getQuickLinks_result();
889
      receiveBase(result, "getQuickLinks");
890
      if (result.isSetSuccess()) {
891
        return result.success;
892
      }
893
      if (result.hse != null) {
894
        throw result.hse;
895
      }
896
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
897
    }
898
 
4996 varun.gupt 899
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
900
    {
901
      send_updateQuickLink(id, url, text);
902
      recv_updateQuickLink();
903
    }
904
 
905
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
906
    {
907
      updateQuickLink_args args = new updateQuickLink_args();
908
      args.setId(id);
909
      args.setUrl(url);
910
      args.setText(text);
911
      sendBase("updateQuickLink", args);
912
    }
913
 
914
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
915
    {
916
      updateQuickLink_result result = new updateQuickLink_result();
917
      receiveBase(result, "updateQuickLink");
918
      if (result.hse != null) {
919
        throw result.hse;
920
      }
921
      return;
922
    }
923
 
5055 varun.gupt 924
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
925
    {
926
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
927
      return recv_getEmailsForNotificationsSent();
928
    }
929
 
930
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
931
    {
932
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
933
      args.setStartDatetime(startDatetime);
934
      args.setEndDatetime(endDatetime);
935
      sendBase("getEmailsForNotificationsSent", args);
936
    }
937
 
938
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
939
    {
940
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
941
      receiveBase(result, "getEmailsForNotificationsSent");
942
      if (result.isSetSuccess()) {
943
        return result.success;
944
      }
945
      if (result.hse != null) {
946
        throw result.hse;
947
      }
948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
949
    }
950
 
352 ashish 951
  }
3430 rajveer 952
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
953
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
954
      private org.apache.thrift.async.TAsyncClientManager clientManager;
955
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
956
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
957
        this.clientManager = clientManager;
958
        this.protocolFactory = protocolFactory;
959
      }
960
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
961
        return new AsyncClient(protocolFactory, clientManager, transport);
962
      }
352 ashish 963
    }
964
 
3430 rajveer 965
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
966
      super(protocolFactory, clientManager, transport);
967
    }
352 ashish 968
 
5864 rajveer 969
    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 970
      checkReady();
5864 rajveer 971
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 972
      this.___currentMethod = method_call;
973
      ___manager.call(method_call);
974
    }
975
 
976
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 977
      private List<String> emailTo;
3430 rajveer 978
      private String emailFrom;
979
      private String subject;
980
      private String body;
981
      private String source;
982
      private String emailType;
5864 rajveer 983
      private List<String> cc;
984
      private List<String> bcc;
985
      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 986
        super(client, protocolFactory, transport, resultHandler, false);
987
        this.emailTo = emailTo;
988
        this.emailFrom = emailFrom;
989
        this.subject = subject;
990
        this.body = body;
991
        this.source = source;
992
        this.emailType = emailType;
5864 rajveer 993
        this.cc = cc;
994
        this.bcc = bcc;
352 ashish 995
      }
3430 rajveer 996
 
997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
999
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1000
        args.setEmailTo(emailTo);
1001
        args.setEmailFrom(emailFrom);
1002
        args.setSubject(subject);
1003
        args.setBody(body);
1004
        args.setSource(source);
1005
        args.setEmailType(emailType);
5864 rajveer 1006
        args.setCc(cc);
1007
        args.setBcc(bcc);
3430 rajveer 1008
        args.write(prot);
1009
        prot.writeMessageEnd();
1010
      }
1011
 
1012
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1013
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1014
          throw new IllegalStateException("Method call not finished!");
1015
        }
1016
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1017
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1018
        return (new Client(prot)).recv_saveUserEmailForSending();
1019
      }
352 ashish 1020
    }
1021
 
3430 rajveer 1022
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1023
      checkReady();
1024
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1025
      this.___currentMethod = method_call;
1026
      ___manager.call(method_call);
1027
    }
1028
 
1029
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1030
      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 {
1031
        super(client, protocolFactory, transport, resultHandler, false);
1032
      }
1033
 
1034
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1035
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1036
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1037
        args.write(prot);
1038
        prot.writeMessageEnd();
1039
      }
1040
 
1041
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1042
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1043
          throw new IllegalStateException("Method call not finished!");
1044
        }
1045
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1046
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1047
        return (new Client(prot)).recv_getEmailsToBeSent();
1048
      }
1049
    }
1050
 
1051
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1052
      checkReady();
1053
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1054
      this.___currentMethod = method_call;
1055
      ___manager.call(method_call);
1056
    }
1057
 
1058
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1059
      private long emailId;
1060
      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 {
1061
        super(client, protocolFactory, transport, resultHandler, false);
1062
        this.emailId = emailId;
1063
      }
1064
 
1065
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1066
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1067
        markEmailAsSent_args args = new markEmailAsSent_args();
1068
        args.setEmailId(emailId);
1069
        args.write(prot);
1070
        prot.writeMessageEnd();
1071
      }
1072
 
1073
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1074
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1075
          throw new IllegalStateException("Method call not finished!");
1076
        }
1077
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1078
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1079
        (new Client(prot)).recv_markEmailAsSent();
1080
      }
1081
    }
1082
 
1083
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1084
      checkReady();
1085
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1086
      this.___currentMethod = method_call;
1087
      ___manager.call(method_call);
1088
    }
1089
 
1090
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1091
      private Mail mail;
1092
      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 {
1093
        super(client, protocolFactory, transport, resultHandler, false);
1094
        this.mail = mail;
1095
      }
1096
 
1097
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1098
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1099
        sendMail_args args = new sendMail_args();
1100
        args.setMail(mail);
1101
        args.write(prot);
1102
        prot.writeMessageEnd();
1103
      }
1104
 
1105
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1106
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1107
          throw new IllegalStateException("Method call not finished!");
1108
        }
1109
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1110
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1111
        (new Client(prot)).recv_sendMail();
1112
      }
1113
    }
1114
 
1115
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1116
      checkReady();
1117
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1118
      this.___currentMethod = method_call;
1119
      ___manager.call(method_call);
1120
    }
1121
 
1122
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1123
      private TextMessage message;
1124
      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 {
1125
        super(client, protocolFactory, transport, resultHandler, false);
1126
        this.message = message;
1127
      }
1128
 
1129
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1130
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1131
        sendText_args args = new sendText_args();
1132
        args.setMessage(message);
1133
        args.write(prot);
1134
        prot.writeMessageEnd();
1135
      }
1136
 
1137
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1138
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1139
          throw new IllegalStateException("Method call not finished!");
1140
        }
1141
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1142
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1143
        (new Client(prot)).recv_sendText();
1144
      }
1145
    }
1146
 
1147
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1148
      checkReady();
1149
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1150
      this.___currentMethod = method_call;
1151
      ___manager.call(method_call);
1152
    }
1153
 
1154
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1155
      private Message message;
1156
      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 {
1157
        super(client, protocolFactory, transport, resultHandler, false);
1158
        this.message = message;
1159
      }
1160
 
1161
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1162
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1163
        addMessage_args args = new addMessage_args();
1164
        args.setMessage(message);
1165
        args.write(prot);
1166
        prot.writeMessageEnd();
1167
      }
1168
 
1169
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1170
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1171
          throw new IllegalStateException("Method call not finished!");
1172
        }
1173
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1174
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1175
        (new Client(prot)).recv_addMessage();
1176
      }
1177
    }
1178
 
1179
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1180
      checkReady();
1181
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1182
      this.___currentMethod = method_call;
1183
      ___manager.call(method_call);
1184
    }
1185
 
1186
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1187
      private long id;
1188
      private String message;
1189
      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 {
1190
        super(client, protocolFactory, transport, resultHandler, false);
1191
        this.id = id;
1192
        this.message = message;
1193
      }
1194
 
1195
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1196
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1197
        updateMessage_args args = new updateMessage_args();
1198
        args.setId(id);
1199
        args.setMessage(message);
1200
        args.write(prot);
1201
        prot.writeMessageEnd();
1202
      }
1203
 
1204
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1205
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1206
          throw new IllegalStateException("Method call not finished!");
1207
        }
1208
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1209
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1210
        (new Client(prot)).recv_updateMessage();
1211
      }
1212
    }
1213
 
1214
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1215
      checkReady();
1216
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1217
      this.___currentMethod = method_call;
1218
      ___manager.call(method_call);
1219
    }
1220
 
1221
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1222
      private long id;
1223
      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 {
1224
        super(client, protocolFactory, transport, resultHandler, false);
1225
        this.id = id;
1226
      }
1227
 
1228
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1229
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1230
        getMessage_args args = new getMessage_args();
1231
        args.setId(id);
1232
        args.write(prot);
1233
        prot.writeMessageEnd();
1234
      }
1235
 
1236
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1237
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1238
          throw new IllegalStateException("Method call not finished!");
1239
        }
1240
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1241
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1242
        return (new Client(prot)).recv_getMessage();
1243
      }
1244
    }
1245
 
1246
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1247
      checkReady();
1248
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1249
      this.___currentMethod = method_call;
1250
      ___manager.call(method_call);
1251
    }
1252
 
1253
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1254
      private long id;
1255
      private Map<String,String> params;
1256
      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 {
1257
        super(client, protocolFactory, transport, resultHandler, false);
1258
        this.id = id;
1259
        this.params = params;
1260
      }
1261
 
1262
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1263
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1264
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1265
        args.setId(id);
1266
        args.setParams(params);
1267
        args.write(prot);
1268
        prot.writeMessageEnd();
1269
      }
1270
 
1271
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1272
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1273
          throw new IllegalStateException("Method call not finished!");
1274
        }
1275
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1276
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1277
        return (new Client(prot)).recv_getSubstitutedMessage();
1278
      }
1279
    }
1280
 
1281
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1282
      checkReady();
1283
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1284
      this.___currentMethod = method_call;
1285
      ___manager.call(method_call);
1286
    }
1287
 
1288
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1289
      private String username;
1290
      private String password;
1291
      private long warehouseId;
1292
      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 {
1293
        super(client, protocolFactory, transport, resultHandler, false);
1294
        this.username = username;
1295
        this.password = password;
1296
        this.warehouseId = warehouseId;
1297
      }
1298
 
1299
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1300
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1301
        addUser_args args = new addUser_args();
1302
        args.setUsername(username);
1303
        args.setPassword(password);
1304
        args.setWarehouseId(warehouseId);
1305
        args.write(prot);
1306
        prot.writeMessageEnd();
1307
      }
1308
 
1309
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1310
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1311
          throw new IllegalStateException("Method call not finished!");
1312
        }
1313
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1314
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1315
        return (new Client(prot)).recv_addUser();
1316
      }
1317
    }
1318
 
1319
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1320
      checkReady();
1321
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1322
      this.___currentMethod = method_call;
1323
      ___manager.call(method_call);
1324
    }
1325
 
1326
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1327
      private String username;
1328
      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 {
1329
        super(client, protocolFactory, transport, resultHandler, false);
1330
        this.username = username;
1331
      }
1332
 
1333
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1334
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1335
        deleteUser_args args = new deleteUser_args();
1336
        args.setUsername(username);
1337
        args.write(prot);
1338
        prot.writeMessageEnd();
1339
      }
1340
 
1341
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1342
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1343
          throw new IllegalStateException("Method call not finished!");
1344
        }
1345
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1346
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1347
        return (new Client(prot)).recv_deleteUser();
1348
      }
1349
    }
1350
 
1351
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1352
      checkReady();
1353
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1354
      this.___currentMethod = method_call;
1355
      ___manager.call(method_call);
1356
    }
1357
 
1358
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1359
      private String username;
1360
      private String password;
1361
      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 {
1362
        super(client, protocolFactory, transport, resultHandler, false);
1363
        this.username = username;
1364
        this.password = password;
1365
      }
1366
 
1367
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1368
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1369
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1370
        args.setUsername(username);
1371
        args.setPassword(password);
1372
        args.write(prot);
1373
        prot.writeMessageEnd();
1374
      }
1375
 
1376
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1377
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1378
          throw new IllegalStateException("Method call not finished!");
1379
        }
1380
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1381
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1382
        return (new Client(prot)).recv_authenticateDashboardUser();
1383
      }
1384
    }
1385
 
1386
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1387
      checkReady();
1388
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1389
      this.___currentMethod = method_call;
1390
      ___manager.call(method_call);
1391
    }
1392
 
1393
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1394
      private String username;
1395
      private String oldPassword;
1396
      private String newPassword;
1397
      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 {
1398
        super(client, protocolFactory, transport, resultHandler, false);
1399
        this.username = username;
1400
        this.oldPassword = oldPassword;
1401
        this.newPassword = newPassword;
1402
      }
1403
 
1404
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1405
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1406
        updatePassword_args args = new updatePassword_args();
1407
        args.setUsername(username);
1408
        args.setOldPassword(oldPassword);
1409
        args.setNewPassword(newPassword);
1410
        args.write(prot);
1411
        prot.writeMessageEnd();
1412
      }
1413
 
1414
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1415
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1416
          throw new IllegalStateException("Method call not finished!");
1417
        }
1418
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1419
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1420
        return (new Client(prot)).recv_updatePassword();
1421
      }
1422
    }
1423
 
1424
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1425
      checkReady();
1426
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1427
      this.___currentMethod = method_call;
1428
      ___manager.call(method_call);
1429
    }
1430
 
1431
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1432
      private String username;
1433
      private String password;
1434
      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 {
1435
        super(client, protocolFactory, transport, resultHandler, false);
1436
        this.username = username;
1437
        this.password = password;
1438
      }
1439
 
1440
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1441
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1442
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1443
        args.setUsername(username);
1444
        args.setPassword(password);
1445
        args.write(prot);
1446
        prot.writeMessageEnd();
1447
      }
1448
 
1449
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1450
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1451
          throw new IllegalStateException("Method call not finished!");
1452
        }
1453
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1454
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1455
        return (new Client(prot)).recv_authenticateLogisticsUser();
1456
      }
1457
    }
1458
 
1459
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1460
      checkReady();
1461
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1462
      this.___currentMethod = method_call;
1463
      ___manager.call(method_call);
1464
    }
1465
 
1466
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1467
      private String username;
1468
      private String password;
1469
      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 {
1470
        super(client, protocolFactory, transport, resultHandler, false);
1471
        this.username = username;
1472
        this.password = password;
1473
      }
1474
 
1475
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1476
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1477
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1478
        args.setUsername(username);
1479
        args.setPassword(password);
1480
        args.write(prot);
1481
        prot.writeMessageEnd();
1482
      }
1483
 
1484
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1485
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1486
          throw new IllegalStateException("Method call not finished!");
1487
        }
1488
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1489
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1490
        return (new Client(prot)).recv_authenticateStatisticsUser();
1491
      }
1492
    }
1493
 
1494
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1495
      checkReady();
1496
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1497
      this.___currentMethod = method_call;
1498
      ___manager.call(method_call);
1499
    }
1500
 
1501
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1502
      private String username;
1503
      private String password;
1504
      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 {
1505
        super(client, protocolFactory, transport, resultHandler, false);
1506
        this.username = username;
1507
        this.password = password;
1508
      }
1509
 
1510
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1511
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1512
        authenticateReportUser_args args = new authenticateReportUser_args();
1513
        args.setUsername(username);
1514
        args.setPassword(password);
1515
        args.write(prot);
1516
        prot.writeMessageEnd();
1517
      }
1518
 
1519
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1520
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1521
          throw new IllegalStateException("Method call not finished!");
1522
        }
1523
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1524
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1525
        return (new Client(prot)).recv_authenticateReportUser();
1526
      }
1527
    }
1528
 
1529
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1530
      checkReady();
1531
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1532
      this.___currentMethod = method_call;
1533
      ___manager.call(method_call);
1534
    }
1535
 
1536
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1537
      private long role;
1538
      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 {
1539
        super(client, protocolFactory, transport, resultHandler, false);
1540
        this.role = role;
1541
      }
1542
 
1543
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1544
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1545
        getReports_args args = new getReports_args();
1546
        args.setRole(role);
1547
        args.write(prot);
1548
        prot.writeMessageEnd();
1549
      }
1550
 
1551
      public List<Report> getResult() throws org.apache.thrift.TException {
1552
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1553
          throw new IllegalStateException("Method call not finished!");
1554
        }
1555
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1556
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1557
        return (new Client(prot)).recv_getReports();
1558
      }
1559
    }
1560
 
1561
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1562
      checkReady();
1563
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1564
      this.___currentMethod = method_call;
1565
      ___manager.call(method_call);
1566
    }
1567
 
1568
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1569
      private String username;
1570
      private String password;
1571
      private long role;
1572
      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 {
1573
        super(client, protocolFactory, transport, resultHandler, false);
1574
        this.username = username;
1575
        this.password = password;
1576
        this.role = role;
1577
      }
1578
 
1579
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1580
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1581
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1582
        args.setUsername(username);
1583
        args.setPassword(password);
1584
        args.setRole(role);
1585
        args.write(prot);
1586
        prot.writeMessageEnd();
1587
      }
1588
 
1589
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1590
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1591
          throw new IllegalStateException("Method call not finished!");
1592
        }
1593
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1594
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1595
        return (new Client(prot)).recv_authenticateCatalogUser();
1596
      }
1597
    }
1598
 
4544 varun.gupt 1599
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1600
      checkReady();
1601
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1602
      this.___currentMethod = method_call;
1603
      ___manager.call(method_call);
1604
    }
1605
 
1606
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1607
      private List<Long> entityIds;
1608
      private String email;
1609
      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 {
1610
        super(client, protocolFactory, transport, resultHandler, false);
1611
        this.entityIds = entityIds;
1612
        this.email = email;
1613
      }
1614
 
1615
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1616
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1617
        shareEntities_args args = new shareEntities_args();
1618
        args.setEntityIds(entityIds);
1619
        args.setEmail(email);
1620
        args.write(prot);
1621
        prot.writeMessageEnd();
1622
      }
1623
 
1624
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1625
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1626
          throw new IllegalStateException("Method call not finished!");
1627
        }
1628
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1629
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1630
        (new Client(prot)).recv_shareEntities();
1631
      }
1632
    }
1633
 
4693 mandeep.dh 1634
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1635
      checkReady();
1636
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1637
      this.___currentMethod = method_call;
1638
      ___manager.call(method_call);
1639
    }
1640
 
1641
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1642
      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 {
1643
        super(client, protocolFactory, transport, resultHandler, false);
1644
      }
1645
 
1646
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1647
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1648
        getAgents_args args = new getAgents_args();
1649
        args.write(prot);
1650
        prot.writeMessageEnd();
1651
      }
1652
 
1653
      public List<Agent> getResult() throws org.apache.thrift.TException {
1654
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1655
          throw new IllegalStateException("Method call not finished!");
1656
        }
1657
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1658
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1659
        return (new Client(prot)).recv_getAgents();
1660
      }
1661
    }
1662
 
1663
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1664
      checkReady();
1665
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1666
      this.___currentMethod = method_call;
1667
      ___manager.call(method_call);
1668
    }
1669
 
1670
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1671
      private String emailId;
1672
      private String password;
1673
      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 {
1674
        super(client, protocolFactory, transport, resultHandler, false);
1675
        this.emailId = emailId;
1676
        this.password = password;
1677
      }
1678
 
1679
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1680
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1681
        validateLogIn_args args = new validateLogIn_args();
1682
        args.setEmailId(emailId);
1683
        args.setPassword(password);
1684
        args.write(prot);
1685
        prot.writeMessageEnd();
1686
      }
1687
 
1688
      public boolean getResult() throws org.apache.thrift.TException {
1689
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1690
          throw new IllegalStateException("Method call not finished!");
1691
        }
1692
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1693
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1694
        return (new Client(prot)).recv_validateLogIn();
1695
      }
1696
    }
1697
 
1698
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1699
      checkReady();
1700
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1701
      this.___currentMethod = method_call;
1702
      ___manager.call(method_call);
1703
    }
1704
 
1705
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1706
      private String agentEmailId;
1707
      private String password;
1708
      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 {
1709
        super(client, protocolFactory, transport, resultHandler, false);
1710
        this.agentEmailId = agentEmailId;
1711
        this.password = password;
1712
      }
1713
 
1714
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1715
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1716
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1717
        args.setAgentEmailId(agentEmailId);
1718
        args.setPassword(password);
1719
        args.write(prot);
1720
        prot.writeMessageEnd();
1721
      }
1722
 
1723
      public void getResult() throws org.apache.thrift.TException {
1724
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1725
          throw new IllegalStateException("Method call not finished!");
1726
        }
1727
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1728
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1729
        (new Client(prot)).recv_updatePasswordForAgent();
1730
      }
1731
    }
1732
 
1733
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1734
      checkReady();
1735
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1736
      this.___currentMethod = method_call;
1737
      ___manager.call(method_call);
1738
    }
1739
 
1740
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1741
      private String agentEmailId;
1742
      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 {
1743
        super(client, protocolFactory, transport, resultHandler, false);
1744
        this.agentEmailId = agentEmailId;
1745
      }
1746
 
1747
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1748
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1749
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1750
        args.setAgentEmailId(agentEmailId);
1751
        args.write(prot);
1752
        prot.writeMessageEnd();
1753
      }
1754
 
1755
      public List<String> getResult() throws org.apache.thrift.TException {
1756
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1757
          throw new IllegalStateException("Method call not finished!");
1758
        }
1759
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1760
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1761
        return (new Client(prot)).recv_getRoleNamesForAgent();
1762
      }
1763
    }
1764
 
1765
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1766
      checkReady();
1767
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1768
      this.___currentMethod = method_call;
1769
      ___manager.call(method_call);
1770
    }
1771
 
1772
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1773
      private String roleName;
1774
      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 {
1775
        super(client, protocolFactory, transport, resultHandler, false);
1776
        this.roleName = roleName;
1777
      }
1778
 
1779
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1780
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1781
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1782
        args.setRoleName(roleName);
1783
        args.write(prot);
1784
        prot.writeMessageEnd();
1785
      }
1786
 
1787
      public List<String> getResult() throws org.apache.thrift.TException {
1788
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1789
          throw new IllegalStateException("Method call not finished!");
1790
        }
1791
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1792
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1793
        return (new Client(prot)).recv_getPermissionsForRoleName();
1794
      }
1795
    }
1796
 
4806 varun.gupt 1797
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1798
      checkReady();
1799
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1800
      this.___currentMethod = method_call;
1801
      ___manager.call(method_call);
1802
    }
1803
 
1804
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1805
      private String url;
1806
      private String text;
1807
      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 {
1808
        super(client, protocolFactory, transport, resultHandler, false);
1809
        this.url = url;
1810
        this.text = text;
1811
      }
1812
 
1813
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1814
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1815
        saveQuickLink_args args = new saveQuickLink_args();
1816
        args.setUrl(url);
1817
        args.setText(text);
1818
        args.write(prot);
1819
        prot.writeMessageEnd();
1820
      }
1821
 
1822
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1823
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1824
          throw new IllegalStateException("Method call not finished!");
1825
        }
1826
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1827
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1828
        (new Client(prot)).recv_saveQuickLink();
1829
      }
1830
    }
1831
 
1832
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1833
      checkReady();
1834
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1835
      this.___currentMethod = method_call;
1836
      ___manager.call(method_call);
1837
    }
1838
 
1839
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1840
      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 {
1841
        super(client, protocolFactory, transport, resultHandler, false);
1842
      }
1843
 
1844
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1845
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1846
        getQuickLinks_args args = new getQuickLinks_args();
1847
        args.write(prot);
1848
        prot.writeMessageEnd();
1849
      }
1850
 
1851
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1852
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1853
          throw new IllegalStateException("Method call not finished!");
1854
        }
1855
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1856
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1857
        return (new Client(prot)).recv_getQuickLinks();
1858
      }
1859
    }
1860
 
4996 varun.gupt 1861
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1862
      checkReady();
1863
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1864
      this.___currentMethod = method_call;
1865
      ___manager.call(method_call);
1866
    }
1867
 
1868
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1869
      private long id;
1870
      private String url;
1871
      private String text;
1872
      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 {
1873
        super(client, protocolFactory, transport, resultHandler, false);
1874
        this.id = id;
1875
        this.url = url;
1876
        this.text = text;
1877
      }
1878
 
1879
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1880
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1881
        updateQuickLink_args args = new updateQuickLink_args();
1882
        args.setId(id);
1883
        args.setUrl(url);
1884
        args.setText(text);
1885
        args.write(prot);
1886
        prot.writeMessageEnd();
1887
      }
1888
 
1889
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1890
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1891
          throw new IllegalStateException("Method call not finished!");
1892
        }
1893
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1894
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1895
        (new Client(prot)).recv_updateQuickLink();
1896
      }
1897
    }
1898
 
5055 varun.gupt 1899
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1900
      checkReady();
1901
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1902
      this.___currentMethod = method_call;
1903
      ___manager.call(method_call);
1904
    }
1905
 
1906
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1907
      private long startDatetime;
1908
      private long endDatetime;
1909
      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 {
1910
        super(client, protocolFactory, transport, resultHandler, false);
1911
        this.startDatetime = startDatetime;
1912
        this.endDatetime = endDatetime;
1913
      }
1914
 
1915
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1916
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1917
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1918
        args.setStartDatetime(startDatetime);
1919
        args.setEndDatetime(endDatetime);
1920
        args.write(prot);
1921
        prot.writeMessageEnd();
1922
      }
1923
 
1924
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
1925
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1926
          throw new IllegalStateException("Method call not finished!");
1927
        }
1928
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1929
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1930
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1931
      }
1932
    }
1933
 
3430 rajveer 1934
  }
1935
 
1936
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1937
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1938
    public Processor(I iface) {
1939
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1940
    }
1941
 
1942
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1943
      super(iface, getProcessMap(processMap));
1944
    }
1945
 
1946
    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) {
1947
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1948
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1949
      processMap.put("markEmailAsSent", new markEmailAsSent());
1950
      processMap.put("sendMail", new sendMail());
1951
      processMap.put("sendText", new sendText());
1952
      processMap.put("addMessage", new addMessage());
1953
      processMap.put("updateMessage", new updateMessage());
1954
      processMap.put("getMessage", new getMessage());
1955
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1956
      processMap.put("addUser", new addUser());
1957
      processMap.put("deleteUser", new deleteUser());
1958
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1959
      processMap.put("updatePassword", new updatePassword());
1960
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1961
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1962
      processMap.put("authenticateReportUser", new authenticateReportUser());
1963
      processMap.put("getReports", new getReports());
1964
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 1965
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 1966
      processMap.put("getAgents", new getAgents());
1967
      processMap.put("validateLogIn", new validateLogIn());
1968
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1969
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1970
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 1971
      processMap.put("saveQuickLink", new saveQuickLink());
1972
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 1973
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 1974
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
3430 rajveer 1975
      return processMap;
1976
    }
1977
 
1978
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1979
      public saveUserEmailForSending() {
1980
        super("saveUserEmailForSending");
1981
      }
1982
 
1983
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1984
        return new saveUserEmailForSending_args();
1985
      }
1986
 
1987
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1988
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1989
        try {
5864 rajveer 1990
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
3206 mandeep.dh 1991
          result.setSuccessIsSet(true);
1395 varun.gupt 1992
        } catch (HelperServiceException se) {
1993
          result.se = se;
1994
        }
3430 rajveer 1995
        return result;
1395 varun.gupt 1996
      }
1997
    }
1998
 
3430 rajveer 1999
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2000
      public getEmailsToBeSent() {
2001
        super("getEmailsToBeSent");
2002
      }
2003
 
2004
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2005
        return new getEmailsToBeSent_args();
2006
      }
2007
 
2008
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2009
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2010
        try {
3430 rajveer 2011
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2012
        } catch (HelperServiceException se) {
2013
          result.se = se;
2014
        }
3430 rajveer 2015
        return result;
1422 varun.gupt 2016
      }
2017
    }
2018
 
3430 rajveer 2019
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2020
      public markEmailAsSent() {
2021
        super("markEmailAsSent");
2022
      }
2023
 
2024
      protected markEmailAsSent_args getEmptyArgsInstance() {
2025
        return new markEmailAsSent_args();
2026
      }
2027
 
2028
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2029
        markEmailAsSent_result result = new markEmailAsSent_result();
2030
        try {
3430 rajveer 2031
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2032
        } catch (HelperServiceException se) {
2033
          result.se = se;
2034
        }
3430 rajveer 2035
        return result;
1422 varun.gupt 2036
      }
2037
    }
2038
 
3430 rajveer 2039
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2040
      public sendMail() {
2041
        super("sendMail");
2042
      }
2043
 
2044
      protected sendMail_args getEmptyArgsInstance() {
2045
        return new sendMail_args();
2046
      }
2047
 
2048
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2049
        sendMail_result result = new sendMail_result();
2050
        try {
3430 rajveer 2051
          iface.sendMail(args.mail);
352 ashish 2052
        } catch (HelperServiceException se) {
2053
          result.se = se;
2054
        }
3430 rajveer 2055
        return result;
352 ashish 2056
      }
2057
    }
2058
 
3430 rajveer 2059
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2060
      public sendText() {
2061
        super("sendText");
2062
      }
2063
 
2064
      protected sendText_args getEmptyArgsInstance() {
2065
        return new sendText_args();
2066
      }
2067
 
2068
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2069
        sendText_result result = new sendText_result();
2070
        try {
3430 rajveer 2071
          iface.sendText(args.message);
352 ashish 2072
        } catch (HelperServiceException se) {
2073
          result.se = se;
2074
        }
3430 rajveer 2075
        return result;
352 ashish 2076
      }
2077
    }
2078
 
3430 rajveer 2079
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2080
      public addMessage() {
2081
        super("addMessage");
2082
      }
2083
 
2084
      protected addMessage_args getEmptyArgsInstance() {
2085
        return new addMessage_args();
2086
      }
2087
 
2088
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2089
        addMessage_result result = new addMessage_result();
2090
        try {
3430 rajveer 2091
          iface.addMessage(args.message);
352 ashish 2092
        } catch (HelperServiceException se) {
2093
          result.se = se;
2094
        }
3430 rajveer 2095
        return result;
352 ashish 2096
      }
2097
    }
2098
 
3430 rajveer 2099
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2100
      public updateMessage() {
2101
        super("updateMessage");
2102
      }
2103
 
2104
      protected updateMessage_args getEmptyArgsInstance() {
2105
        return new updateMessage_args();
2106
      }
2107
 
2108
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2109
        updateMessage_result result = new updateMessage_result();
2110
        try {
3430 rajveer 2111
          iface.updateMessage(args.id, args.message);
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 getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2120
      public getMessage() {
2121
        super("getMessage");
2122
      }
2123
 
2124
      protected getMessage_args getEmptyArgsInstance() {
2125
        return new getMessage_args();
2126
      }
2127
 
2128
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2129
        getMessage_result result = new getMessage_result();
2130
        try {
3430 rajveer 2131
          result.success = iface.getMessage(args.id);
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 getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2140
      public getSubstitutedMessage() {
2141
        super("getSubstitutedMessage");
2142
      }
2143
 
2144
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2145
        return new getSubstitutedMessage_args();
2146
      }
2147
 
2148
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2149
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2150
        try {
3430 rajveer 2151
          result.success = iface.getSubstitutedMessage(args.id, args.params);
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 addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2160
      public addUser() {
2161
        super("addUser");
2162
      }
2163
 
2164
      protected addUser_args getEmptyArgsInstance() {
2165
        return new addUser_args();
2166
      }
2167
 
2168
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2169
        addUser_result result = new addUser_result();
2170
        try {
3430 rajveer 2171
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2172
          result.setSuccessIsSet(true);
2173
        } catch (HelperServiceException se) {
2174
          result.se = se;
2175
        }
3430 rajveer 2176
        return result;
495 rajveer 2177
      }
2178
    }
2179
 
3430 rajveer 2180
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2181
      public deleteUser() {
2182
        super("deleteUser");
2183
      }
2184
 
2185
      protected deleteUser_args getEmptyArgsInstance() {
2186
        return new deleteUser_args();
2187
      }
2188
 
2189
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2190
        deleteUser_result result = new deleteUser_result();
2191
        try {
3430 rajveer 2192
          result.success = iface.deleteUser(args.username);
495 rajveer 2193
          result.setSuccessIsSet(true);
2194
        } catch (HelperServiceException se) {
2195
          result.se = se;
2196
        }
3430 rajveer 2197
        return result;
495 rajveer 2198
      }
2199
    }
2200
 
3430 rajveer 2201
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2202
      public authenticateDashboardUser() {
2203
        super("authenticateDashboardUser");
2204
      }
2205
 
2206
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2207
        return new authenticateDashboardUser_args();
2208
      }
2209
 
2210
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2211
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2212
        try {
3430 rajveer 2213
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2214
        } catch (HelperServiceException se) {
2215
          result.se = se;
2216
        }
3430 rajveer 2217
        return result;
495 rajveer 2218
      }
2219
    }
2220
 
3430 rajveer 2221
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2222
      public updatePassword() {
2223
        super("updatePassword");
2224
      }
2225
 
2226
      protected updatePassword_args getEmptyArgsInstance() {
2227
        return new updatePassword_args();
2228
      }
2229
 
2230
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2231
        updatePassword_result result = new updatePassword_result();
2232
        try {
3430 rajveer 2233
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2234
          result.setSuccessIsSet(true);
2235
        } catch (HelperServiceException se) {
2236
          result.se = se;
2237
        }
3430 rajveer 2238
        return result;
495 rajveer 2239
      }
2240
    }
2241
 
3430 rajveer 2242
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2243
      public authenticateLogisticsUser() {
2244
        super("authenticateLogisticsUser");
2245
      }
2246
 
2247
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2248
        return new authenticateLogisticsUser_args();
2249
      }
2250
 
2251
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2252
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2253
        try {
3430 rajveer 2254
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2255
        } catch (HelperServiceException hse) {
2256
          result.hse = hse;
2257
        }
3430 rajveer 2258
        return result;
750 chandransh 2259
      }
2260
    }
2261
 
3430 rajveer 2262
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2263
      public authenticateStatisticsUser() {
2264
        super("authenticateStatisticsUser");
2265
      }
2266
 
2267
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2268
        return new authenticateStatisticsUser_args();
2269
      }
2270
 
2271
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2272
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2273
        try {
3430 rajveer 2274
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2275
        } catch (HelperServiceException hse) {
2276
          result.hse = hse;
2277
        }
3430 rajveer 2278
        return result;
1611 ankur.sing 2279
      }
2280
    }
2281
 
3430 rajveer 2282
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2283
      public authenticateReportUser() {
2284
        super("authenticateReportUser");
2285
      }
2286
 
2287
      protected authenticateReportUser_args getEmptyArgsInstance() {
2288
        return new authenticateReportUser_args();
2289
      }
2290
 
2291
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2292
        authenticateReportUser_result result = new authenticateReportUser_result();
2293
        try {
3430 rajveer 2294
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2295
        } catch (HelperServiceException hse) {
2296
          result.hse = hse;
2297
        }
3430 rajveer 2298
        return result;
1891 ankur.sing 2299
      }
2300
    }
2301
 
3430 rajveer 2302
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2303
      public getReports() {
2304
        super("getReports");
2305
      }
2306
 
2307
      protected getReports_args getEmptyArgsInstance() {
2308
        return new getReports_args();
2309
      }
2310
 
2311
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2312
        getReports_result result = new getReports_result();
3430 rajveer 2313
        result.success = iface.getReports(args.role);
2314
        return result;
1891 ankur.sing 2315
      }
2316
    }
2317
 
3430 rajveer 2318
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2319
      public authenticateCatalogUser() {
2320
        super("authenticateCatalogUser");
2321
      }
2322
 
2323
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2324
        return new authenticateCatalogUser_args();
2325
      }
2326
 
2327
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2328
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2329
        try {
3430 rajveer 2330
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 2331
        } catch (HelperServiceException hse) {
2332
          result.hse = hse;
2333
        }
3430 rajveer 2334
        return result;
2024 ankur.sing 2335
      }
2336
    }
2337
 
4544 varun.gupt 2338
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2339
      public shareEntities() {
2340
        super("shareEntities");
2341
      }
2342
 
2343
      protected shareEntities_args getEmptyArgsInstance() {
2344
        return new shareEntities_args();
2345
      }
2346
 
2347
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2348
        shareEntities_result result = new shareEntities_result();
2349
        try {
2350
          iface.shareEntities(args.entityIds, args.email);
2351
        } catch (HelperServiceException hse) {
2352
          result.hse = hse;
2353
        }
2354
        return result;
2355
      }
2356
    }
2357
 
4693 mandeep.dh 2358
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2359
      public getAgents() {
2360
        super("getAgents");
2361
      }
2362
 
2363
      protected getAgents_args getEmptyArgsInstance() {
2364
        return new getAgents_args();
2365
      }
2366
 
2367
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2368
        getAgents_result result = new getAgents_result();
2369
        result.success = iface.getAgents();
2370
        return result;
2371
      }
2372
    }
2373
 
2374
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2375
      public validateLogIn() {
2376
        super("validateLogIn");
2377
      }
2378
 
2379
      protected validateLogIn_args getEmptyArgsInstance() {
2380
        return new validateLogIn_args();
2381
      }
2382
 
2383
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2384
        validateLogIn_result result = new validateLogIn_result();
2385
        result.success = iface.validateLogIn(args.emailId, args.password);
2386
        result.setSuccessIsSet(true);
2387
        return result;
2388
      }
2389
    }
2390
 
2391
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2392
      public updatePasswordForAgent() {
2393
        super("updatePasswordForAgent");
2394
      }
2395
 
2396
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2397
        return new updatePasswordForAgent_args();
2398
      }
2399
 
2400
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2401
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2402
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2403
        return result;
2404
      }
2405
    }
2406
 
2407
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2408
      public getRoleNamesForAgent() {
2409
        super("getRoleNamesForAgent");
2410
      }
2411
 
2412
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2413
        return new getRoleNamesForAgent_args();
2414
      }
2415
 
2416
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2417
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2418
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2419
        return result;
2420
      }
2421
    }
2422
 
2423
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2424
      public getPermissionsForRoleName() {
2425
        super("getPermissionsForRoleName");
2426
      }
2427
 
2428
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2429
        return new getPermissionsForRoleName_args();
2430
      }
2431
 
2432
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2433
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2434
        result.success = iface.getPermissionsForRoleName(args.roleName);
2435
        return result;
2436
      }
2437
    }
2438
 
4806 varun.gupt 2439
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2440
      public saveQuickLink() {
2441
        super("saveQuickLink");
2442
      }
2443
 
2444
      protected saveQuickLink_args getEmptyArgsInstance() {
2445
        return new saveQuickLink_args();
2446
      }
2447
 
2448
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2449
        saveQuickLink_result result = new saveQuickLink_result();
2450
        try {
2451
          iface.saveQuickLink(args.url, args.text);
2452
        } catch (HelperServiceException hse) {
2453
          result.hse = hse;
2454
        }
2455
        return result;
2456
      }
2457
    }
2458
 
2459
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2460
      public getQuickLinks() {
2461
        super("getQuickLinks");
2462
      }
2463
 
2464
      protected getQuickLinks_args getEmptyArgsInstance() {
2465
        return new getQuickLinks_args();
2466
      }
2467
 
2468
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2469
        getQuickLinks_result result = new getQuickLinks_result();
2470
        try {
2471
          result.success = iface.getQuickLinks();
2472
        } catch (HelperServiceException hse) {
2473
          result.hse = hse;
2474
        }
2475
        return result;
2476
      }
2477
    }
2478
 
4996 varun.gupt 2479
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2480
      public updateQuickLink() {
2481
        super("updateQuickLink");
2482
      }
2483
 
2484
      protected updateQuickLink_args getEmptyArgsInstance() {
2485
        return new updateQuickLink_args();
2486
      }
2487
 
2488
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2489
        updateQuickLink_result result = new updateQuickLink_result();
2490
        try {
2491
          iface.updateQuickLink(args.id, args.url, args.text);
2492
        } catch (HelperServiceException hse) {
2493
          result.hse = hse;
2494
        }
2495
        return result;
2496
      }
2497
    }
2498
 
5055 varun.gupt 2499
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2500
      public getEmailsForNotificationsSent() {
2501
        super("getEmailsForNotificationsSent");
2502
      }
2503
 
2504
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2505
        return new getEmailsForNotificationsSent_args();
2506
      }
2507
 
2508
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2509
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2510
        try {
2511
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2512
        } catch (HelperServiceException hse) {
2513
          result.hse = hse;
2514
        }
2515
        return result;
2516
      }
2517
    }
2518
 
352 ashish 2519
  }
2520
 
3430 rajveer 2521
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2523
 
5864 rajveer 2524
    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 2525
    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);
2526
    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);
2527
    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);
2528
    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);
2529
    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 2530
    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);
2531
    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 2532
 
5864 rajveer 2533
    private List<String> emailTo; // required
3430 rajveer 2534
    private String emailFrom; // required
2535
    private String subject; // required
2536
    private String body; // required
2537
    private String source; // required
2538
    private String emailType; // required
5864 rajveer 2539
    private List<String> cc; // required
2540
    private List<String> bcc; // required
1395 varun.gupt 2541
 
2542
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2543
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2544
      EMAIL_TO((short)1, "emailTo"),
2545
      EMAIL_FROM((short)2, "emailFrom"),
2546
      SUBJECT((short)3, "subject"),
2547
      BODY((short)4, "body"),
2548
      SOURCE((short)5, "source"),
5864 rajveer 2549
      EMAIL_TYPE((short)6, "emailType"),
2550
      CC((short)7, "cc"),
2551
      BCC((short)8, "bcc");
1395 varun.gupt 2552
 
2553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2554
 
2555
      static {
2556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2557
          byName.put(field.getFieldName(), field);
2558
        }
2559
      }
2560
 
2561
      /**
2562
       * Find the _Fields constant that matches fieldId, or null if its not found.
2563
       */
2564
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2565
        switch(fieldId) {
2566
          case 1: // EMAIL_TO
2567
            return EMAIL_TO;
2568
          case 2: // EMAIL_FROM
2569
            return EMAIL_FROM;
2570
          case 3: // SUBJECT
2571
            return SUBJECT;
2572
          case 4: // BODY
2573
            return BODY;
2574
          case 5: // SOURCE
2575
            return SOURCE;
2576
          case 6: // EMAIL_TYPE
2577
            return EMAIL_TYPE;
5864 rajveer 2578
          case 7: // CC
2579
            return CC;
2580
          case 8: // BCC
2581
            return BCC;
3430 rajveer 2582
          default:
2583
            return null;
2584
        }
1395 varun.gupt 2585
      }
2586
 
2587
      /**
2588
       * Find the _Fields constant that matches fieldId, throwing an exception
2589
       * if it is not found.
2590
       */
2591
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2592
        _Fields fields = findByThriftId(fieldId);
2593
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2594
        return fields;
2595
      }
2596
 
2597
      /**
2598
       * Find the _Fields constant that matches name, or null if its not found.
2599
       */
2600
      public static _Fields findByName(String name) {
2601
        return byName.get(name);
2602
      }
2603
 
2604
      private final short _thriftId;
2605
      private final String _fieldName;
2606
 
2607
      _Fields(short thriftId, String fieldName) {
2608
        _thriftId = thriftId;
2609
        _fieldName = fieldName;
2610
      }
2611
 
2612
      public short getThriftFieldId() {
2613
        return _thriftId;
2614
      }
2615
 
2616
      public String getFieldName() {
2617
        return _fieldName;
2618
      }
2619
    }
2620
 
2621
    // isset id assignments
2622
 
3430 rajveer 2623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2624
    static {
3430 rajveer 2625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2626
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 2627
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2628
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2629
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2631
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2632
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2633
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2635
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2637
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 2639
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2640
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2641
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2642
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2643
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2644
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2647
    }
2648
 
2649
    public saveUserEmailForSending_args() {
2650
    }
2651
 
2652
    public saveUserEmailForSending_args(
5864 rajveer 2653
      List<String> emailTo,
1395 varun.gupt 2654
      String emailFrom,
2655
      String subject,
2656
      String body,
2657
      String source,
5864 rajveer 2658
      String emailType,
2659
      List<String> cc,
2660
      List<String> bcc)
1395 varun.gupt 2661
    {
2662
      this();
2663
      this.emailTo = emailTo;
2664
      this.emailFrom = emailFrom;
2665
      this.subject = subject;
2666
      this.body = body;
2667
      this.source = source;
2668
      this.emailType = emailType;
5864 rajveer 2669
      this.cc = cc;
2670
      this.bcc = bcc;
1395 varun.gupt 2671
    }
2672
 
2673
    /**
2674
     * Performs a deep copy on <i>other</i>.
2675
     */
2676
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2677
      if (other.isSetEmailTo()) {
5864 rajveer 2678
        List<String> __this__emailTo = new ArrayList<String>();
2679
        for (String other_element : other.emailTo) {
2680
          __this__emailTo.add(other_element);
2681
        }
2682
        this.emailTo = __this__emailTo;
1395 varun.gupt 2683
      }
2684
      if (other.isSetEmailFrom()) {
2685
        this.emailFrom = other.emailFrom;
2686
      }
2687
      if (other.isSetSubject()) {
2688
        this.subject = other.subject;
2689
      }
2690
      if (other.isSetBody()) {
2691
        this.body = other.body;
2692
      }
2693
      if (other.isSetSource()) {
2694
        this.source = other.source;
2695
      }
2696
      if (other.isSetEmailType()) {
2697
        this.emailType = other.emailType;
2698
      }
5864 rajveer 2699
      if (other.isSetCc()) {
2700
        List<String> __this__cc = new ArrayList<String>();
2701
        for (String other_element : other.cc) {
2702
          __this__cc.add(other_element);
2703
        }
2704
        this.cc = __this__cc;
2705
      }
2706
      if (other.isSetBcc()) {
2707
        List<String> __this__bcc = new ArrayList<String>();
2708
        for (String other_element : other.bcc) {
2709
          __this__bcc.add(other_element);
2710
        }
2711
        this.bcc = __this__bcc;
2712
      }
1395 varun.gupt 2713
    }
2714
 
2715
    public saveUserEmailForSending_args deepCopy() {
2716
      return new saveUserEmailForSending_args(this);
2717
    }
2718
 
3430 rajveer 2719
    @Override
2720
    public void clear() {
2721
      this.emailTo = null;
2722
      this.emailFrom = null;
2723
      this.subject = null;
2724
      this.body = null;
2725
      this.source = null;
2726
      this.emailType = null;
5864 rajveer 2727
      this.cc = null;
2728
      this.bcc = null;
1395 varun.gupt 2729
    }
2730
 
5864 rajveer 2731
    public int getEmailToSize() {
2732
      return (this.emailTo == null) ? 0 : this.emailTo.size();
2733
    }
2734
 
2735
    public java.util.Iterator<String> getEmailToIterator() {
2736
      return (this.emailTo == null) ? null : this.emailTo.iterator();
2737
    }
2738
 
2739
    public void addToEmailTo(String elem) {
2740
      if (this.emailTo == null) {
2741
        this.emailTo = new ArrayList<String>();
2742
      }
2743
      this.emailTo.add(elem);
2744
    }
2745
 
2746
    public List<String> getEmailTo() {
1395 varun.gupt 2747
      return this.emailTo;
2748
    }
2749
 
5864 rajveer 2750
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 2751
      this.emailTo = emailTo;
2752
    }
2753
 
2754
    public void unsetEmailTo() {
2755
      this.emailTo = null;
2756
    }
2757
 
3430 rajveer 2758
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2759
    public boolean isSetEmailTo() {
2760
      return this.emailTo != null;
2761
    }
2762
 
2763
    public void setEmailToIsSet(boolean value) {
2764
      if (!value) {
2765
        this.emailTo = null;
2766
      }
2767
    }
2768
 
2769
    public String getEmailFrom() {
2770
      return this.emailFrom;
2771
    }
2772
 
3430 rajveer 2773
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2774
      this.emailFrom = emailFrom;
2775
    }
2776
 
2777
    public void unsetEmailFrom() {
2778
      this.emailFrom = null;
2779
    }
2780
 
3430 rajveer 2781
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2782
    public boolean isSetEmailFrom() {
2783
      return this.emailFrom != null;
2784
    }
2785
 
2786
    public void setEmailFromIsSet(boolean value) {
2787
      if (!value) {
2788
        this.emailFrom = null;
2789
      }
2790
    }
2791
 
2792
    public String getSubject() {
2793
      return this.subject;
2794
    }
2795
 
3430 rajveer 2796
    public void setSubject(String subject) {
1395 varun.gupt 2797
      this.subject = subject;
2798
    }
2799
 
2800
    public void unsetSubject() {
2801
      this.subject = null;
2802
    }
2803
 
3430 rajveer 2804
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2805
    public boolean isSetSubject() {
2806
      return this.subject != null;
2807
    }
2808
 
2809
    public void setSubjectIsSet(boolean value) {
2810
      if (!value) {
2811
        this.subject = null;
2812
      }
2813
    }
2814
 
2815
    public String getBody() {
2816
      return this.body;
2817
    }
2818
 
3430 rajveer 2819
    public void setBody(String body) {
1395 varun.gupt 2820
      this.body = body;
2821
    }
2822
 
2823
    public void unsetBody() {
2824
      this.body = null;
2825
    }
2826
 
3430 rajveer 2827
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2828
    public boolean isSetBody() {
2829
      return this.body != null;
2830
    }
2831
 
2832
    public void setBodyIsSet(boolean value) {
2833
      if (!value) {
2834
        this.body = null;
2835
      }
2836
    }
2837
 
2838
    public String getSource() {
2839
      return this.source;
2840
    }
2841
 
3430 rajveer 2842
    public void setSource(String source) {
1395 varun.gupt 2843
      this.source = source;
2844
    }
2845
 
2846
    public void unsetSource() {
2847
      this.source = null;
2848
    }
2849
 
3430 rajveer 2850
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2851
    public boolean isSetSource() {
2852
      return this.source != null;
2853
    }
2854
 
2855
    public void setSourceIsSet(boolean value) {
2856
      if (!value) {
2857
        this.source = null;
2858
      }
2859
    }
2860
 
2861
    public String getEmailType() {
2862
      return this.emailType;
2863
    }
2864
 
3430 rajveer 2865
    public void setEmailType(String emailType) {
1395 varun.gupt 2866
      this.emailType = emailType;
2867
    }
2868
 
2869
    public void unsetEmailType() {
2870
      this.emailType = null;
2871
    }
2872
 
3430 rajveer 2873
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2874
    public boolean isSetEmailType() {
2875
      return this.emailType != null;
2876
    }
2877
 
2878
    public void setEmailTypeIsSet(boolean value) {
2879
      if (!value) {
2880
        this.emailType = null;
2881
      }
2882
    }
2883
 
5864 rajveer 2884
    public int getCcSize() {
2885
      return (this.cc == null) ? 0 : this.cc.size();
2886
    }
2887
 
2888
    public java.util.Iterator<String> getCcIterator() {
2889
      return (this.cc == null) ? null : this.cc.iterator();
2890
    }
2891
 
2892
    public void addToCc(String elem) {
2893
      if (this.cc == null) {
2894
        this.cc = new ArrayList<String>();
2895
      }
2896
      this.cc.add(elem);
2897
    }
2898
 
2899
    public List<String> getCc() {
2900
      return this.cc;
2901
    }
2902
 
2903
    public void setCc(List<String> cc) {
2904
      this.cc = cc;
2905
    }
2906
 
2907
    public void unsetCc() {
2908
      this.cc = null;
2909
    }
2910
 
2911
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
2912
    public boolean isSetCc() {
2913
      return this.cc != null;
2914
    }
2915
 
2916
    public void setCcIsSet(boolean value) {
2917
      if (!value) {
2918
        this.cc = null;
2919
      }
2920
    }
2921
 
2922
    public int getBccSize() {
2923
      return (this.bcc == null) ? 0 : this.bcc.size();
2924
    }
2925
 
2926
    public java.util.Iterator<String> getBccIterator() {
2927
      return (this.bcc == null) ? null : this.bcc.iterator();
2928
    }
2929
 
2930
    public void addToBcc(String elem) {
2931
      if (this.bcc == null) {
2932
        this.bcc = new ArrayList<String>();
2933
      }
2934
      this.bcc.add(elem);
2935
    }
2936
 
2937
    public List<String> getBcc() {
2938
      return this.bcc;
2939
    }
2940
 
2941
    public void setBcc(List<String> bcc) {
2942
      this.bcc = bcc;
2943
    }
2944
 
2945
    public void unsetBcc() {
2946
      this.bcc = null;
2947
    }
2948
 
2949
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
2950
    public boolean isSetBcc() {
2951
      return this.bcc != null;
2952
    }
2953
 
2954
    public void setBccIsSet(boolean value) {
2955
      if (!value) {
2956
        this.bcc = null;
2957
      }
2958
    }
2959
 
1395 varun.gupt 2960
    public void setFieldValue(_Fields field, Object value) {
2961
      switch (field) {
2962
      case EMAIL_TO:
2963
        if (value == null) {
2964
          unsetEmailTo();
2965
        } else {
5864 rajveer 2966
          setEmailTo((List<String>)value);
1395 varun.gupt 2967
        }
2968
        break;
2969
 
2970
      case EMAIL_FROM:
2971
        if (value == null) {
2972
          unsetEmailFrom();
2973
        } else {
2974
          setEmailFrom((String)value);
2975
        }
2976
        break;
2977
 
2978
      case SUBJECT:
2979
        if (value == null) {
2980
          unsetSubject();
2981
        } else {
2982
          setSubject((String)value);
2983
        }
2984
        break;
2985
 
2986
      case BODY:
2987
        if (value == null) {
2988
          unsetBody();
2989
        } else {
2990
          setBody((String)value);
2991
        }
2992
        break;
2993
 
2994
      case SOURCE:
2995
        if (value == null) {
2996
          unsetSource();
2997
        } else {
2998
          setSource((String)value);
2999
        }
3000
        break;
3001
 
3002
      case EMAIL_TYPE:
3003
        if (value == null) {
3004
          unsetEmailType();
3005
        } else {
3006
          setEmailType((String)value);
3007
        }
3008
        break;
3009
 
5864 rajveer 3010
      case CC:
3011
        if (value == null) {
3012
          unsetCc();
3013
        } else {
3014
          setCc((List<String>)value);
3015
        }
3016
        break;
3017
 
3018
      case BCC:
3019
        if (value == null) {
3020
          unsetBcc();
3021
        } else {
3022
          setBcc((List<String>)value);
3023
        }
3024
        break;
3025
 
1395 varun.gupt 3026
      }
3027
    }
3028
 
3029
    public Object getFieldValue(_Fields field) {
3030
      switch (field) {
3031
      case EMAIL_TO:
3032
        return getEmailTo();
3033
 
3034
      case EMAIL_FROM:
3035
        return getEmailFrom();
3036
 
3037
      case SUBJECT:
3038
        return getSubject();
3039
 
3040
      case BODY:
3041
        return getBody();
3042
 
3043
      case SOURCE:
3044
        return getSource();
3045
 
3046
      case EMAIL_TYPE:
3047
        return getEmailType();
3048
 
5864 rajveer 3049
      case CC:
3050
        return getCc();
3051
 
3052
      case BCC:
3053
        return getBcc();
3054
 
1395 varun.gupt 3055
      }
3056
      throw new IllegalStateException();
3057
    }
3058
 
3430 rajveer 3059
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3060
    public boolean isSet(_Fields field) {
3061
      if (field == null) {
3062
        throw new IllegalArgumentException();
3063
      }
1395 varun.gupt 3064
 
3065
      switch (field) {
3066
      case EMAIL_TO:
3067
        return isSetEmailTo();
3068
      case EMAIL_FROM:
3069
        return isSetEmailFrom();
3070
      case SUBJECT:
3071
        return isSetSubject();
3072
      case BODY:
3073
        return isSetBody();
3074
      case SOURCE:
3075
        return isSetSource();
3076
      case EMAIL_TYPE:
3077
        return isSetEmailType();
5864 rajveer 3078
      case CC:
3079
        return isSetCc();
3080
      case BCC:
3081
        return isSetBcc();
1395 varun.gupt 3082
      }
3083
      throw new IllegalStateException();
3084
    }
3085
 
3086
    @Override
3087
    public boolean equals(Object that) {
3088
      if (that == null)
3089
        return false;
3090
      if (that instanceof saveUserEmailForSending_args)
3091
        return this.equals((saveUserEmailForSending_args)that);
3092
      return false;
3093
    }
3094
 
3095
    public boolean equals(saveUserEmailForSending_args that) {
3096
      if (that == null)
3097
        return false;
3098
 
3099
      boolean this_present_emailTo = true && this.isSetEmailTo();
3100
      boolean that_present_emailTo = true && that.isSetEmailTo();
3101
      if (this_present_emailTo || that_present_emailTo) {
3102
        if (!(this_present_emailTo && that_present_emailTo))
3103
          return false;
3104
        if (!this.emailTo.equals(that.emailTo))
3105
          return false;
3106
      }
3107
 
3108
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
3109
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
3110
      if (this_present_emailFrom || that_present_emailFrom) {
3111
        if (!(this_present_emailFrom && that_present_emailFrom))
3112
          return false;
3113
        if (!this.emailFrom.equals(that.emailFrom))
3114
          return false;
3115
      }
3116
 
3117
      boolean this_present_subject = true && this.isSetSubject();
3118
      boolean that_present_subject = true && that.isSetSubject();
3119
      if (this_present_subject || that_present_subject) {
3120
        if (!(this_present_subject && that_present_subject))
3121
          return false;
3122
        if (!this.subject.equals(that.subject))
3123
          return false;
3124
      }
3125
 
3126
      boolean this_present_body = true && this.isSetBody();
3127
      boolean that_present_body = true && that.isSetBody();
3128
      if (this_present_body || that_present_body) {
3129
        if (!(this_present_body && that_present_body))
3130
          return false;
3131
        if (!this.body.equals(that.body))
3132
          return false;
3133
      }
3134
 
3135
      boolean this_present_source = true && this.isSetSource();
3136
      boolean that_present_source = true && that.isSetSource();
3137
      if (this_present_source || that_present_source) {
3138
        if (!(this_present_source && that_present_source))
3139
          return false;
3140
        if (!this.source.equals(that.source))
3141
          return false;
3142
      }
3143
 
3144
      boolean this_present_emailType = true && this.isSetEmailType();
3145
      boolean that_present_emailType = true && that.isSetEmailType();
3146
      if (this_present_emailType || that_present_emailType) {
3147
        if (!(this_present_emailType && that_present_emailType))
3148
          return false;
3149
        if (!this.emailType.equals(that.emailType))
3150
          return false;
3151
      }
3152
 
5864 rajveer 3153
      boolean this_present_cc = true && this.isSetCc();
3154
      boolean that_present_cc = true && that.isSetCc();
3155
      if (this_present_cc || that_present_cc) {
3156
        if (!(this_present_cc && that_present_cc))
3157
          return false;
3158
        if (!this.cc.equals(that.cc))
3159
          return false;
3160
      }
3161
 
3162
      boolean this_present_bcc = true && this.isSetBcc();
3163
      boolean that_present_bcc = true && that.isSetBcc();
3164
      if (this_present_bcc || that_present_bcc) {
3165
        if (!(this_present_bcc && that_present_bcc))
3166
          return false;
3167
        if (!this.bcc.equals(that.bcc))
3168
          return false;
3169
      }
3170
 
1395 varun.gupt 3171
      return true;
3172
    }
3173
 
3174
    @Override
3175
    public int hashCode() {
3176
      return 0;
3177
    }
3178
 
3179
    public int compareTo(saveUserEmailForSending_args other) {
3180
      if (!getClass().equals(other.getClass())) {
3181
        return getClass().getName().compareTo(other.getClass().getName());
3182
      }
3183
 
3184
      int lastComparison = 0;
3185
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3186
 
3430 rajveer 3187
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3188
      if (lastComparison != 0) {
3189
        return lastComparison;
3190
      }
3430 rajveer 3191
      if (isSetEmailTo()) {
3192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3193
        if (lastComparison != 0) {
3194
          return lastComparison;
3195
        }
1395 varun.gupt 3196
      }
3430 rajveer 3197
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3198
      if (lastComparison != 0) {
3199
        return lastComparison;
3200
      }
3430 rajveer 3201
      if (isSetEmailFrom()) {
3202
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3203
        if (lastComparison != 0) {
3204
          return lastComparison;
3205
        }
1395 varun.gupt 3206
      }
3430 rajveer 3207
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3208
      if (lastComparison != 0) {
3209
        return lastComparison;
3210
      }
3430 rajveer 3211
      if (isSetSubject()) {
3212
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3213
        if (lastComparison != 0) {
3214
          return lastComparison;
3215
        }
1395 varun.gupt 3216
      }
3430 rajveer 3217
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3218
      if (lastComparison != 0) {
3219
        return lastComparison;
3220
      }
3430 rajveer 3221
      if (isSetBody()) {
3222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3223
        if (lastComparison != 0) {
3224
          return lastComparison;
3225
        }
1395 varun.gupt 3226
      }
3430 rajveer 3227
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3228
      if (lastComparison != 0) {
3229
        return lastComparison;
3230
      }
3430 rajveer 3231
      if (isSetSource()) {
3232
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3233
        if (lastComparison != 0) {
3234
          return lastComparison;
3235
        }
1395 varun.gupt 3236
      }
3430 rajveer 3237
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3238
      if (lastComparison != 0) {
3239
        return lastComparison;
3240
      }
3430 rajveer 3241
      if (isSetEmailType()) {
3242
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3243
        if (lastComparison != 0) {
3244
          return lastComparison;
3245
        }
1395 varun.gupt 3246
      }
5864 rajveer 3247
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
3248
      if (lastComparison != 0) {
3249
        return lastComparison;
3250
      }
3251
      if (isSetCc()) {
3252
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
3253
        if (lastComparison != 0) {
3254
          return lastComparison;
3255
        }
3256
      }
3257
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
3258
      if (lastComparison != 0) {
3259
        return lastComparison;
3260
      }
3261
      if (isSetBcc()) {
3262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
3263
        if (lastComparison != 0) {
3264
          return lastComparison;
3265
        }
3266
      }
1395 varun.gupt 3267
      return 0;
3268
    }
3269
 
3430 rajveer 3270
    public _Fields fieldForId(int fieldId) {
3271
      return _Fields.findByThriftId(fieldId);
3272
    }
3273
 
3274
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3275
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3276
      iprot.readStructBegin();
3277
      while (true)
3278
      {
3279
        field = iprot.readFieldBegin();
3430 rajveer 3280
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3281
          break;
3282
        }
3430 rajveer 3283
        switch (field.id) {
3284
          case 1: // EMAIL_TO
5864 rajveer 3285
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3286
              {
3287
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
3288
                this.emailTo = new ArrayList<String>(_list20.size);
3289
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3290
                {
3291
                  String _elem22; // required
3292
                  _elem22 = iprot.readString();
3293
                  this.emailTo.add(_elem22);
3294
                }
3295
                iprot.readListEnd();
3296
              }
3430 rajveer 3297
            } else { 
3298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3299
            }
3300
            break;
3301
          case 2: // EMAIL_FROM
3302
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3303
              this.emailFrom = iprot.readString();
3304
            } else { 
3305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3306
            }
3307
            break;
3308
          case 3: // SUBJECT
3309
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3310
              this.subject = iprot.readString();
3311
            } else { 
3312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3313
            }
3314
            break;
3315
          case 4: // BODY
3316
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3317
              this.body = iprot.readString();
3318
            } else { 
3319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3320
            }
3321
            break;
3322
          case 5: // SOURCE
3323
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3324
              this.source = iprot.readString();
3325
            } else { 
3326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3327
            }
3328
            break;
3329
          case 6: // EMAIL_TYPE
3330
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3331
              this.emailType = iprot.readString();
3332
            } else { 
3333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3334
            }
3335
            break;
5864 rajveer 3336
          case 7: // CC
3337
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3338
              {
3339
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
3340
                this.cc = new ArrayList<String>(_list23.size);
3341
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
3342
                {
3343
                  String _elem25; // required
3344
                  _elem25 = iprot.readString();
3345
                  this.cc.add(_elem25);
3346
                }
3347
                iprot.readListEnd();
3348
              }
3349
            } else { 
3350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3351
            }
3352
            break;
3353
          case 8: // BCC
3354
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3355
              {
3356
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
3357
                this.bcc = new ArrayList<String>(_list26.size);
3358
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3359
                {
3360
                  String _elem28; // required
3361
                  _elem28 = iprot.readString();
3362
                  this.bcc.add(_elem28);
3363
                }
3364
                iprot.readListEnd();
3365
              }
3366
            } else { 
3367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3368
            }
3369
            break;
3430 rajveer 3370
          default:
3371
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3372
        }
3430 rajveer 3373
        iprot.readFieldEnd();
1395 varun.gupt 3374
      }
3375
      iprot.readStructEnd();
3376
      validate();
3377
    }
3378
 
3430 rajveer 3379
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3380
      validate();
3381
 
3382
      oprot.writeStructBegin(STRUCT_DESC);
3383
      if (this.emailTo != null) {
3384
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 3385
        {
3386
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
3387
          for (String _iter29 : this.emailTo)
3388
          {
3389
            oprot.writeString(_iter29);
3390
          }
3391
          oprot.writeListEnd();
3392
        }
1395 varun.gupt 3393
        oprot.writeFieldEnd();
3394
      }
3395
      if (this.emailFrom != null) {
3396
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3397
        oprot.writeString(this.emailFrom);
3398
        oprot.writeFieldEnd();
3399
      }
3400
      if (this.subject != null) {
3401
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3402
        oprot.writeString(this.subject);
3403
        oprot.writeFieldEnd();
3404
      }
3405
      if (this.body != null) {
3406
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3407
        oprot.writeString(this.body);
3408
        oprot.writeFieldEnd();
3409
      }
3410
      if (this.source != null) {
3411
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3412
        oprot.writeString(this.source);
3413
        oprot.writeFieldEnd();
3414
      }
3415
      if (this.emailType != null) {
3416
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3417
        oprot.writeString(this.emailType);
3418
        oprot.writeFieldEnd();
3419
      }
5864 rajveer 3420
      if (this.cc != null) {
3421
        oprot.writeFieldBegin(CC_FIELD_DESC);
3422
        {
3423
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
3424
          for (String _iter30 : this.cc)
3425
          {
3426
            oprot.writeString(_iter30);
3427
          }
3428
          oprot.writeListEnd();
3429
        }
3430
        oprot.writeFieldEnd();
3431
      }
3432
      if (this.bcc != null) {
3433
        oprot.writeFieldBegin(BCC_FIELD_DESC);
3434
        {
3435
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
3436
          for (String _iter31 : this.bcc)
3437
          {
3438
            oprot.writeString(_iter31);
3439
          }
3440
          oprot.writeListEnd();
3441
        }
3442
        oprot.writeFieldEnd();
3443
      }
1395 varun.gupt 3444
      oprot.writeFieldStop();
3445
      oprot.writeStructEnd();
3446
    }
3447
 
3448
    @Override
3449
    public String toString() {
3450
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3451
      boolean first = true;
3452
 
3453
      sb.append("emailTo:");
3454
      if (this.emailTo == null) {
3455
        sb.append("null");
3456
      } else {
3457
        sb.append(this.emailTo);
3458
      }
3459
      first = false;
3460
      if (!first) sb.append(", ");
3461
      sb.append("emailFrom:");
3462
      if (this.emailFrom == null) {
3463
        sb.append("null");
3464
      } else {
3465
        sb.append(this.emailFrom);
3466
      }
3467
      first = false;
3468
      if (!first) sb.append(", ");
3469
      sb.append("subject:");
3470
      if (this.subject == null) {
3471
        sb.append("null");
3472
      } else {
3473
        sb.append(this.subject);
3474
      }
3475
      first = false;
3476
      if (!first) sb.append(", ");
3477
      sb.append("body:");
3478
      if (this.body == null) {
3479
        sb.append("null");
3480
      } else {
3481
        sb.append(this.body);
3482
      }
3483
      first = false;
3484
      if (!first) sb.append(", ");
3485
      sb.append("source:");
3486
      if (this.source == null) {
3487
        sb.append("null");
3488
      } else {
3489
        sb.append(this.source);
3490
      }
3491
      first = false;
3492
      if (!first) sb.append(", ");
3493
      sb.append("emailType:");
3494
      if (this.emailType == null) {
3495
        sb.append("null");
3496
      } else {
3497
        sb.append(this.emailType);
3498
      }
3499
      first = false;
5864 rajveer 3500
      if (!first) sb.append(", ");
3501
      sb.append("cc:");
3502
      if (this.cc == null) {
3503
        sb.append("null");
3504
      } else {
3505
        sb.append(this.cc);
3506
      }
3507
      first = false;
3508
      if (!first) sb.append(", ");
3509
      sb.append("bcc:");
3510
      if (this.bcc == null) {
3511
        sb.append("null");
3512
      } else {
3513
        sb.append(this.bcc);
3514
      }
3515
      first = false;
1395 varun.gupt 3516
      sb.append(")");
3517
      return sb.toString();
3518
    }
3519
 
3430 rajveer 3520
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3521
      // check for required fields
3522
    }
3523
 
3430 rajveer 3524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3525
      try {
3526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3527
      } catch (org.apache.thrift.TException te) {
3528
        throw new java.io.IOException(te);
3529
      }
3530
    }
3531
 
3532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3533
      try {
3534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3535
      } catch (org.apache.thrift.TException te) {
3536
        throw new java.io.IOException(te);
3537
      }
3538
    }
3539
 
1395 varun.gupt 3540
  }
3541
 
3430 rajveer 3542
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3544
 
3430 rajveer 3545
    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);
3546
    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 3547
 
3430 rajveer 3548
    private long success; // required
3549
    private HelperServiceException se; // required
1395 varun.gupt 3550
 
3551
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3552
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3553
      SUCCESS((short)0, "success"),
1395 varun.gupt 3554
      SE((short)1, "se");
3555
 
3556
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3557
 
3558
      static {
3559
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3560
          byName.put(field.getFieldName(), field);
3561
        }
3562
      }
3563
 
3564
      /**
3565
       * Find the _Fields constant that matches fieldId, or null if its not found.
3566
       */
3567
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3568
        switch(fieldId) {
3569
          case 0: // SUCCESS
3570
            return SUCCESS;
3571
          case 1: // SE
3572
            return SE;
3573
          default:
3574
            return null;
3575
        }
1395 varun.gupt 3576
      }
3577
 
3578
      /**
3579
       * Find the _Fields constant that matches fieldId, throwing an exception
3580
       * if it is not found.
3581
       */
3582
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3583
        _Fields fields = findByThriftId(fieldId);
3584
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3585
        return fields;
3586
      }
3587
 
3588
      /**
3589
       * Find the _Fields constant that matches name, or null if its not found.
3590
       */
3591
      public static _Fields findByName(String name) {
3592
        return byName.get(name);
3593
      }
3594
 
3595
      private final short _thriftId;
3596
      private final String _fieldName;
3597
 
3598
      _Fields(short thriftId, String fieldName) {
3599
        _thriftId = thriftId;
3600
        _fieldName = fieldName;
3601
      }
3602
 
3603
      public short getThriftFieldId() {
3604
        return _thriftId;
3605
      }
3606
 
3607
      public String getFieldName() {
3608
        return _fieldName;
3609
      }
3610
    }
3611
 
3612
    // isset id assignments
3206 mandeep.dh 3613
    private static final int __SUCCESS_ISSET_ID = 0;
3614
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3615
 
3430 rajveer 3616
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3617
    static {
3430 rajveer 3618
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3619
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3620
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3621
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3622
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3625
    }
3626
 
3627
    public saveUserEmailForSending_result() {
3628
    }
3629
 
3630
    public saveUserEmailForSending_result(
3206 mandeep.dh 3631
      long success,
1395 varun.gupt 3632
      HelperServiceException se)
3633
    {
3634
      this();
3206 mandeep.dh 3635
      this.success = success;
3636
      setSuccessIsSet(true);
1395 varun.gupt 3637
      this.se = se;
3638
    }
3639
 
3640
    /**
3641
     * Performs a deep copy on <i>other</i>.
3642
     */
3643
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3644
      __isset_bit_vector.clear();
3645
      __isset_bit_vector.or(other.__isset_bit_vector);
3646
      this.success = other.success;
1395 varun.gupt 3647
      if (other.isSetSe()) {
3648
        this.se = new HelperServiceException(other.se);
3649
      }
3650
    }
3651
 
3652
    public saveUserEmailForSending_result deepCopy() {
3653
      return new saveUserEmailForSending_result(this);
3654
    }
3655
 
3430 rajveer 3656
    @Override
3657
    public void clear() {
3658
      setSuccessIsSet(false);
3659
      this.success = 0;
3660
      this.se = null;
1395 varun.gupt 3661
    }
3662
 
3206 mandeep.dh 3663
    public long getSuccess() {
3664
      return this.success;
3665
    }
3666
 
3430 rajveer 3667
    public void setSuccess(long success) {
3206 mandeep.dh 3668
      this.success = success;
3669
      setSuccessIsSet(true);
3670
    }
3671
 
3672
    public void unsetSuccess() {
3673
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3674
    }
3675
 
3430 rajveer 3676
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3677
    public boolean isSetSuccess() {
3678
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3679
    }
3680
 
3681
    public void setSuccessIsSet(boolean value) {
3682
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3683
    }
3684
 
1395 varun.gupt 3685
    public HelperServiceException getSe() {
3686
      return this.se;
3687
    }
3688
 
3430 rajveer 3689
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3690
      this.se = se;
3691
    }
3692
 
3693
    public void unsetSe() {
3694
      this.se = null;
3695
    }
3696
 
3430 rajveer 3697
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3698
    public boolean isSetSe() {
3699
      return this.se != null;
3700
    }
3701
 
3702
    public void setSeIsSet(boolean value) {
3703
      if (!value) {
3704
        this.se = null;
3705
      }
3706
    }
3707
 
3708
    public void setFieldValue(_Fields field, Object value) {
3709
      switch (field) {
3206 mandeep.dh 3710
      case SUCCESS:
3711
        if (value == null) {
3712
          unsetSuccess();
3713
        } else {
3714
          setSuccess((Long)value);
3715
        }
3716
        break;
3717
 
1395 varun.gupt 3718
      case SE:
3719
        if (value == null) {
3720
          unsetSe();
3721
        } else {
3722
          setSe((HelperServiceException)value);
3723
        }
3724
        break;
3725
 
3726
      }
3727
    }
3728
 
3729
    public Object getFieldValue(_Fields field) {
3730
      switch (field) {
3206 mandeep.dh 3731
      case SUCCESS:
3430 rajveer 3732
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3733
 
1395 varun.gupt 3734
      case SE:
3735
        return getSe();
3736
 
3737
      }
3738
      throw new IllegalStateException();
3739
    }
3740
 
3430 rajveer 3741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3742
    public boolean isSet(_Fields field) {
3743
      if (field == null) {
3744
        throw new IllegalArgumentException();
3745
      }
1395 varun.gupt 3746
 
3747
      switch (field) {
3206 mandeep.dh 3748
      case SUCCESS:
3749
        return isSetSuccess();
1395 varun.gupt 3750
      case SE:
3751
        return isSetSe();
3752
      }
3753
      throw new IllegalStateException();
3754
    }
3755
 
3756
    @Override
3757
    public boolean equals(Object that) {
3758
      if (that == null)
3759
        return false;
3760
      if (that instanceof saveUserEmailForSending_result)
3761
        return this.equals((saveUserEmailForSending_result)that);
3762
      return false;
3763
    }
3764
 
3765
    public boolean equals(saveUserEmailForSending_result that) {
3766
      if (that == null)
3767
        return false;
3768
 
3206 mandeep.dh 3769
      boolean this_present_success = true;
3770
      boolean that_present_success = true;
3771
      if (this_present_success || that_present_success) {
3772
        if (!(this_present_success && that_present_success))
3773
          return false;
3774
        if (this.success != that.success)
3775
          return false;
3776
      }
3777
 
1395 varun.gupt 3778
      boolean this_present_se = true && this.isSetSe();
3779
      boolean that_present_se = true && that.isSetSe();
3780
      if (this_present_se || that_present_se) {
3781
        if (!(this_present_se && that_present_se))
3782
          return false;
3783
        if (!this.se.equals(that.se))
3784
          return false;
3785
      }
3786
 
3787
      return true;
3788
    }
3789
 
3790
    @Override
3791
    public int hashCode() {
3792
      return 0;
3793
    }
3794
 
3795
    public int compareTo(saveUserEmailForSending_result other) {
3796
      if (!getClass().equals(other.getClass())) {
3797
        return getClass().getName().compareTo(other.getClass().getName());
3798
      }
3799
 
3800
      int lastComparison = 0;
3801
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3802
 
3430 rajveer 3803
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3804
      if (lastComparison != 0) {
3805
        return lastComparison;
3806
      }
3430 rajveer 3807
      if (isSetSuccess()) {
3808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3809
        if (lastComparison != 0) {
3810
          return lastComparison;
3811
        }
3206 mandeep.dh 3812
      }
3430 rajveer 3813
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3814
      if (lastComparison != 0) {
3815
        return lastComparison;
3816
      }
3430 rajveer 3817
      if (isSetSe()) {
3818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3819
        if (lastComparison != 0) {
3820
          return lastComparison;
3821
        }
1395 varun.gupt 3822
      }
3823
      return 0;
3824
    }
3825
 
3430 rajveer 3826
    public _Fields fieldForId(int fieldId) {
3827
      return _Fields.findByThriftId(fieldId);
3828
    }
3829
 
3830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3831
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3832
      iprot.readStructBegin();
3833
      while (true)
3834
      {
3835
        field = iprot.readFieldBegin();
3430 rajveer 3836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3837
          break;
3838
        }
3430 rajveer 3839
        switch (field.id) {
3840
          case 0: // SUCCESS
3841
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3842
              this.success = iprot.readI64();
3843
              setSuccessIsSet(true);
3844
            } else { 
3845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3846
            }
3847
            break;
3848
          case 1: // SE
3849
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3850
              this.se = new HelperServiceException();
3851
              this.se.read(iprot);
3852
            } else { 
3853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3854
            }
3855
            break;
3856
          default:
3857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3858
        }
3430 rajveer 3859
        iprot.readFieldEnd();
1395 varun.gupt 3860
      }
3861
      iprot.readStructEnd();
3862
      validate();
3863
    }
3864
 
3430 rajveer 3865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3866
      oprot.writeStructBegin(STRUCT_DESC);
3867
 
3206 mandeep.dh 3868
      if (this.isSetSuccess()) {
3869
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3870
        oprot.writeI64(this.success);
3871
        oprot.writeFieldEnd();
3872
      } else if (this.isSetSe()) {
1395 varun.gupt 3873
        oprot.writeFieldBegin(SE_FIELD_DESC);
3874
        this.se.write(oprot);
3875
        oprot.writeFieldEnd();
3876
      }
3877
      oprot.writeFieldStop();
3878
      oprot.writeStructEnd();
3879
    }
3880
 
3881
    @Override
3882
    public String toString() {
3883
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3884
      boolean first = true;
3885
 
3206 mandeep.dh 3886
      sb.append("success:");
3887
      sb.append(this.success);
3888
      first = false;
3889
      if (!first) sb.append(", ");
1395 varun.gupt 3890
      sb.append("se:");
3891
      if (this.se == null) {
3892
        sb.append("null");
3893
      } else {
3894
        sb.append(this.se);
3895
      }
3896
      first = false;
3897
      sb.append(")");
3898
      return sb.toString();
3899
    }
3900
 
3430 rajveer 3901
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3902
      // check for required fields
3903
    }
3904
 
3430 rajveer 3905
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3906
      try {
3907
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3908
      } catch (org.apache.thrift.TException te) {
3909
        throw new java.io.IOException(te);
3910
      }
3911
    }
3912
 
3913
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3914
      try {
3915
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3916
      } catch (org.apache.thrift.TException te) {
3917
        throw new java.io.IOException(te);
3918
      }
3919
    }
3920
 
1395 varun.gupt 3921
  }
3922
 
3430 rajveer 3923
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
3924
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 3925
 
3926
 
3927
 
3928
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3929
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 3930
;
1422 varun.gupt 3931
 
3932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3933
 
3934
      static {
3935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3936
          byName.put(field.getFieldName(), field);
3937
        }
3938
      }
3939
 
3940
      /**
3941
       * Find the _Fields constant that matches fieldId, or null if its not found.
3942
       */
3943
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3944
        switch(fieldId) {
3945
          default:
3946
            return null;
3947
        }
1422 varun.gupt 3948
      }
3949
 
3950
      /**
3951
       * Find the _Fields constant that matches fieldId, throwing an exception
3952
       * if it is not found.
3953
       */
3954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3955
        _Fields fields = findByThriftId(fieldId);
3956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3957
        return fields;
3958
      }
3959
 
3960
      /**
3961
       * Find the _Fields constant that matches name, or null if its not found.
3962
       */
3963
      public static _Fields findByName(String name) {
3964
        return byName.get(name);
3965
      }
3966
 
3967
      private final short _thriftId;
3968
      private final String _fieldName;
3969
 
3970
      _Fields(short thriftId, String fieldName) {
3971
        _thriftId = thriftId;
3972
        _fieldName = fieldName;
3973
      }
3974
 
3975
      public short getThriftFieldId() {
3976
        return _thriftId;
3977
      }
3978
 
3979
      public String getFieldName() {
3980
        return _fieldName;
3981
      }
3982
    }
3430 rajveer 3983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3984
    static {
3430 rajveer 3985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3986
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3987
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 3988
    }
3989
 
3990
    public getEmailsToBeSent_args() {
3991
    }
3992
 
3993
    /**
3994
     * Performs a deep copy on <i>other</i>.
3995
     */
3996
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
3997
    }
3998
 
3999
    public getEmailsToBeSent_args deepCopy() {
4000
      return new getEmailsToBeSent_args(this);
4001
    }
4002
 
3430 rajveer 4003
    @Override
4004
    public void clear() {
1422 varun.gupt 4005
    }
4006
 
4007
    public void setFieldValue(_Fields field, Object value) {
4008
      switch (field) {
4009
      }
4010
    }
4011
 
4012
    public Object getFieldValue(_Fields field) {
4013
      switch (field) {
4014
      }
4015
      throw new IllegalStateException();
4016
    }
4017
 
3430 rajveer 4018
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4019
    public boolean isSet(_Fields field) {
4020
      if (field == null) {
4021
        throw new IllegalArgumentException();
4022
      }
1422 varun.gupt 4023
 
4024
      switch (field) {
4025
      }
4026
      throw new IllegalStateException();
4027
    }
4028
 
4029
    @Override
4030
    public boolean equals(Object that) {
4031
      if (that == null)
4032
        return false;
4033
      if (that instanceof getEmailsToBeSent_args)
4034
        return this.equals((getEmailsToBeSent_args)that);
4035
      return false;
4036
    }
4037
 
4038
    public boolean equals(getEmailsToBeSent_args that) {
4039
      if (that == null)
4040
        return false;
4041
 
4042
      return true;
4043
    }
4044
 
4045
    @Override
4046
    public int hashCode() {
4047
      return 0;
4048
    }
4049
 
4050
    public int compareTo(getEmailsToBeSent_args other) {
4051
      if (!getClass().equals(other.getClass())) {
4052
        return getClass().getName().compareTo(other.getClass().getName());
4053
      }
4054
 
4055
      int lastComparison = 0;
4056
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
4057
 
4058
      return 0;
4059
    }
4060
 
3430 rajveer 4061
    public _Fields fieldForId(int fieldId) {
4062
      return _Fields.findByThriftId(fieldId);
4063
    }
4064
 
4065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4066
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4067
      iprot.readStructBegin();
4068
      while (true)
4069
      {
4070
        field = iprot.readFieldBegin();
3430 rajveer 4071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4072
          break;
4073
        }
3430 rajveer 4074
        switch (field.id) {
4075
          default:
4076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4077
        }
3430 rajveer 4078
        iprot.readFieldEnd();
1422 varun.gupt 4079
      }
4080
      iprot.readStructEnd();
4081
      validate();
4082
    }
4083
 
3430 rajveer 4084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4085
      validate();
4086
 
4087
      oprot.writeStructBegin(STRUCT_DESC);
4088
      oprot.writeFieldStop();
4089
      oprot.writeStructEnd();
4090
    }
4091
 
4092
    @Override
4093
    public String toString() {
4094
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
4095
      boolean first = true;
4096
 
4097
      sb.append(")");
4098
      return sb.toString();
4099
    }
4100
 
3430 rajveer 4101
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4102
      // check for required fields
4103
    }
4104
 
3430 rajveer 4105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4106
      try {
4107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4108
      } catch (org.apache.thrift.TException te) {
4109
        throw new java.io.IOException(te);
4110
      }
4111
    }
4112
 
4113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4114
      try {
4115
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4116
      } catch (org.apache.thrift.TException te) {
4117
        throw new java.io.IOException(te);
4118
      }
4119
    }
4120
 
1422 varun.gupt 4121
  }
4122
 
3430 rajveer 4123
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
4124
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 4125
 
3430 rajveer 4126
    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);
4127
    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 4128
 
3430 rajveer 4129
    private List<UserEmail> success; // required
4130
    private HelperServiceException se; // required
1422 varun.gupt 4131
 
4132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4134
      SUCCESS((short)0, "success"),
4135
      SE((short)1, "se");
4136
 
4137
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4138
 
4139
      static {
4140
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4141
          byName.put(field.getFieldName(), field);
4142
        }
4143
      }
4144
 
4145
      /**
4146
       * Find the _Fields constant that matches fieldId, or null if its not found.
4147
       */
4148
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4149
        switch(fieldId) {
4150
          case 0: // SUCCESS
4151
            return SUCCESS;
4152
          case 1: // SE
4153
            return SE;
4154
          default:
4155
            return null;
4156
        }
1422 varun.gupt 4157
      }
4158
 
4159
      /**
4160
       * Find the _Fields constant that matches fieldId, throwing an exception
4161
       * if it is not found.
4162
       */
4163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4164
        _Fields fields = findByThriftId(fieldId);
4165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4166
        return fields;
4167
      }
4168
 
4169
      /**
4170
       * Find the _Fields constant that matches name, or null if its not found.
4171
       */
4172
      public static _Fields findByName(String name) {
4173
        return byName.get(name);
4174
      }
4175
 
4176
      private final short _thriftId;
4177
      private final String _fieldName;
4178
 
4179
      _Fields(short thriftId, String fieldName) {
4180
        _thriftId = thriftId;
4181
        _fieldName = fieldName;
4182
      }
4183
 
4184
      public short getThriftFieldId() {
4185
        return _thriftId;
4186
      }
4187
 
4188
      public String getFieldName() {
4189
        return _fieldName;
4190
      }
4191
    }
4192
 
4193
    // isset id assignments
4194
 
3430 rajveer 4195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4196
    static {
3430 rajveer 4197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4198
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4199
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4200
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
4201
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4202
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4203
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4204
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 4205
    }
4206
 
4207
    public getEmailsToBeSent_result() {
4208
    }
4209
 
4210
    public getEmailsToBeSent_result(
4211
      List<UserEmail> success,
4212
      HelperServiceException se)
4213
    {
4214
      this();
4215
      this.success = success;
4216
      this.se = se;
4217
    }
4218
 
4219
    /**
4220
     * Performs a deep copy on <i>other</i>.
4221
     */
4222
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
4223
      if (other.isSetSuccess()) {
4224
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
4225
        for (UserEmail other_element : other.success) {
4226
          __this__success.add(new UserEmail(other_element));
4227
        }
4228
        this.success = __this__success;
4229
      }
4230
      if (other.isSetSe()) {
4231
        this.se = new HelperServiceException(other.se);
4232
      }
4233
    }
4234
 
4235
    public getEmailsToBeSent_result deepCopy() {
4236
      return new getEmailsToBeSent_result(this);
4237
    }
4238
 
3430 rajveer 4239
    @Override
4240
    public void clear() {
4241
      this.success = null;
4242
      this.se = null;
1422 varun.gupt 4243
    }
4244
 
4245
    public int getSuccessSize() {
4246
      return (this.success == null) ? 0 : this.success.size();
4247
    }
4248
 
4249
    public java.util.Iterator<UserEmail> getSuccessIterator() {
4250
      return (this.success == null) ? null : this.success.iterator();
4251
    }
4252
 
4253
    public void addToSuccess(UserEmail elem) {
4254
      if (this.success == null) {
4255
        this.success = new ArrayList<UserEmail>();
4256
      }
4257
      this.success.add(elem);
4258
    }
4259
 
4260
    public List<UserEmail> getSuccess() {
4261
      return this.success;
4262
    }
4263
 
3430 rajveer 4264
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 4265
      this.success = success;
4266
    }
4267
 
4268
    public void unsetSuccess() {
4269
      this.success = null;
4270
    }
4271
 
3430 rajveer 4272
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4273
    public boolean isSetSuccess() {
4274
      return this.success != null;
4275
    }
4276
 
4277
    public void setSuccessIsSet(boolean value) {
4278
      if (!value) {
4279
        this.success = null;
4280
      }
4281
    }
4282
 
4283
    public HelperServiceException getSe() {
4284
      return this.se;
4285
    }
4286
 
3430 rajveer 4287
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4288
      this.se = se;
4289
    }
4290
 
4291
    public void unsetSe() {
4292
      this.se = null;
4293
    }
4294
 
3430 rajveer 4295
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4296
    public boolean isSetSe() {
4297
      return this.se != null;
4298
    }
4299
 
4300
    public void setSeIsSet(boolean value) {
4301
      if (!value) {
4302
        this.se = null;
4303
      }
4304
    }
4305
 
4306
    public void setFieldValue(_Fields field, Object value) {
4307
      switch (field) {
4308
      case SUCCESS:
4309
        if (value == null) {
4310
          unsetSuccess();
4311
        } else {
4312
          setSuccess((List<UserEmail>)value);
4313
        }
4314
        break;
4315
 
4316
      case SE:
4317
        if (value == null) {
4318
          unsetSe();
4319
        } else {
4320
          setSe((HelperServiceException)value);
4321
        }
4322
        break;
4323
 
4324
      }
4325
    }
4326
 
4327
    public Object getFieldValue(_Fields field) {
4328
      switch (field) {
4329
      case SUCCESS:
4330
        return getSuccess();
4331
 
4332
      case SE:
4333
        return getSe();
4334
 
4335
      }
4336
      throw new IllegalStateException();
4337
    }
4338
 
3430 rajveer 4339
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4340
    public boolean isSet(_Fields field) {
4341
      if (field == null) {
4342
        throw new IllegalArgumentException();
4343
      }
1422 varun.gupt 4344
 
4345
      switch (field) {
4346
      case SUCCESS:
4347
        return isSetSuccess();
4348
      case SE:
4349
        return isSetSe();
4350
      }
4351
      throw new IllegalStateException();
4352
    }
4353
 
4354
    @Override
4355
    public boolean equals(Object that) {
4356
      if (that == null)
4357
        return false;
4358
      if (that instanceof getEmailsToBeSent_result)
4359
        return this.equals((getEmailsToBeSent_result)that);
4360
      return false;
4361
    }
4362
 
4363
    public boolean equals(getEmailsToBeSent_result that) {
4364
      if (that == null)
4365
        return false;
4366
 
4367
      boolean this_present_success = true && this.isSetSuccess();
4368
      boolean that_present_success = true && that.isSetSuccess();
4369
      if (this_present_success || that_present_success) {
4370
        if (!(this_present_success && that_present_success))
4371
          return false;
4372
        if (!this.success.equals(that.success))
4373
          return false;
4374
      }
4375
 
4376
      boolean this_present_se = true && this.isSetSe();
4377
      boolean that_present_se = true && that.isSetSe();
4378
      if (this_present_se || that_present_se) {
4379
        if (!(this_present_se && that_present_se))
4380
          return false;
4381
        if (!this.se.equals(that.se))
4382
          return false;
4383
      }
4384
 
4385
      return true;
4386
    }
4387
 
4388
    @Override
4389
    public int hashCode() {
4390
      return 0;
4391
    }
4392
 
4393
    public int compareTo(getEmailsToBeSent_result other) {
4394
      if (!getClass().equals(other.getClass())) {
4395
        return getClass().getName().compareTo(other.getClass().getName());
4396
      }
4397
 
4398
      int lastComparison = 0;
4399
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4400
 
3430 rajveer 4401
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4402
      if (lastComparison != 0) {
4403
        return lastComparison;
4404
      }
3430 rajveer 4405
      if (isSetSuccess()) {
4406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4407
        if (lastComparison != 0) {
4408
          return lastComparison;
4409
        }
1422 varun.gupt 4410
      }
3430 rajveer 4411
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4412
      if (lastComparison != 0) {
4413
        return lastComparison;
4414
      }
3430 rajveer 4415
      if (isSetSe()) {
4416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4417
        if (lastComparison != 0) {
4418
          return lastComparison;
4419
        }
1422 varun.gupt 4420
      }
4421
      return 0;
4422
    }
4423
 
3430 rajveer 4424
    public _Fields fieldForId(int fieldId) {
4425
      return _Fields.findByThriftId(fieldId);
4426
    }
4427
 
4428
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4429
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4430
      iprot.readStructBegin();
4431
      while (true)
4432
      {
4433
        field = iprot.readFieldBegin();
3430 rajveer 4434
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4435
          break;
4436
        }
3430 rajveer 4437
        switch (field.id) {
4438
          case 0: // SUCCESS
4439
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4440
              {
5864 rajveer 4441
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4442
                this.success = new ArrayList<UserEmail>(_list32.size);
4443
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 4444
                {
5864 rajveer 4445
                  UserEmail _elem34; // required
4446
                  _elem34 = new UserEmail();
4447
                  _elem34.read(iprot);
4448
                  this.success.add(_elem34);
1422 varun.gupt 4449
                }
3430 rajveer 4450
                iprot.readListEnd();
1422 varun.gupt 4451
              }
3430 rajveer 4452
            } else { 
4453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4454
            }
4455
            break;
4456
          case 1: // SE
4457
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4458
              this.se = new HelperServiceException();
4459
              this.se.read(iprot);
4460
            } else { 
4461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4462
            }
4463
            break;
4464
          default:
4465
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4466
        }
3430 rajveer 4467
        iprot.readFieldEnd();
1422 varun.gupt 4468
      }
4469
      iprot.readStructEnd();
4470
      validate();
4471
    }
4472
 
3430 rajveer 4473
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4474
      oprot.writeStructBegin(STRUCT_DESC);
4475
 
4476
      if (this.isSetSuccess()) {
4477
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4478
        {
3430 rajveer 4479
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 4480
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 4481
          {
5864 rajveer 4482
            _iter35.write(oprot);
1422 varun.gupt 4483
          }
4484
          oprot.writeListEnd();
4485
        }
4486
        oprot.writeFieldEnd();
4487
      } else if (this.isSetSe()) {
4488
        oprot.writeFieldBegin(SE_FIELD_DESC);
4489
        this.se.write(oprot);
4490
        oprot.writeFieldEnd();
4491
      }
4492
      oprot.writeFieldStop();
4493
      oprot.writeStructEnd();
4494
    }
4495
 
4496
    @Override
4497
    public String toString() {
4498
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4499
      boolean first = true;
4500
 
4501
      sb.append("success:");
4502
      if (this.success == null) {
4503
        sb.append("null");
4504
      } else {
4505
        sb.append(this.success);
4506
      }
4507
      first = false;
4508
      if (!first) sb.append(", ");
4509
      sb.append("se:");
4510
      if (this.se == null) {
4511
        sb.append("null");
4512
      } else {
4513
        sb.append(this.se);
4514
      }
4515
      first = false;
4516
      sb.append(")");
4517
      return sb.toString();
4518
    }
4519
 
3430 rajveer 4520
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4521
      // check for required fields
4522
    }
4523
 
3430 rajveer 4524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4525
      try {
4526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4527
      } catch (org.apache.thrift.TException te) {
4528
        throw new java.io.IOException(te);
4529
      }
4530
    }
4531
 
4532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4533
      try {
4534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4535
      } catch (org.apache.thrift.TException te) {
4536
        throw new java.io.IOException(te);
4537
      }
4538
    }
4539
 
1422 varun.gupt 4540
  }
4541
 
3430 rajveer 4542
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4544
 
3430 rajveer 4545
    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 4546
 
3430 rajveer 4547
    private long emailId; // required
1422 varun.gupt 4548
 
4549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4551
      EMAIL_ID((short)1, "emailId");
4552
 
4553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4554
 
4555
      static {
4556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4557
          byName.put(field.getFieldName(), field);
4558
        }
4559
      }
4560
 
4561
      /**
4562
       * Find the _Fields constant that matches fieldId, or null if its not found.
4563
       */
4564
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4565
        switch(fieldId) {
4566
          case 1: // EMAIL_ID
4567
            return EMAIL_ID;
4568
          default:
4569
            return null;
4570
        }
1422 varun.gupt 4571
      }
4572
 
4573
      /**
4574
       * Find the _Fields constant that matches fieldId, throwing an exception
4575
       * if it is not found.
4576
       */
4577
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4578
        _Fields fields = findByThriftId(fieldId);
4579
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4580
        return fields;
4581
      }
4582
 
4583
      /**
4584
       * Find the _Fields constant that matches name, or null if its not found.
4585
       */
4586
      public static _Fields findByName(String name) {
4587
        return byName.get(name);
4588
      }
4589
 
4590
      private final short _thriftId;
4591
      private final String _fieldName;
4592
 
4593
      _Fields(short thriftId, String fieldName) {
4594
        _thriftId = thriftId;
4595
        _fieldName = fieldName;
4596
      }
4597
 
4598
      public short getThriftFieldId() {
4599
        return _thriftId;
4600
      }
4601
 
4602
      public String getFieldName() {
4603
        return _fieldName;
4604
      }
4605
    }
4606
 
4607
    // isset id assignments
4608
    private static final int __EMAILID_ISSET_ID = 0;
4609
    private BitSet __isset_bit_vector = new BitSet(1);
4610
 
3430 rajveer 4611
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4612
    static {
3430 rajveer 4613
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4614
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4618
    }
4619
 
4620
    public markEmailAsSent_args() {
4621
    }
4622
 
4623
    public markEmailAsSent_args(
4624
      long emailId)
4625
    {
4626
      this();
4627
      this.emailId = emailId;
4628
      setEmailIdIsSet(true);
4629
    }
4630
 
4631
    /**
4632
     * Performs a deep copy on <i>other</i>.
4633
     */
4634
    public markEmailAsSent_args(markEmailAsSent_args other) {
4635
      __isset_bit_vector.clear();
4636
      __isset_bit_vector.or(other.__isset_bit_vector);
4637
      this.emailId = other.emailId;
4638
    }
4639
 
4640
    public markEmailAsSent_args deepCopy() {
4641
      return new markEmailAsSent_args(this);
4642
    }
4643
 
3430 rajveer 4644
    @Override
4645
    public void clear() {
4646
      setEmailIdIsSet(false);
4647
      this.emailId = 0;
1422 varun.gupt 4648
    }
4649
 
4650
    public long getEmailId() {
4651
      return this.emailId;
4652
    }
4653
 
3430 rajveer 4654
    public void setEmailId(long emailId) {
1422 varun.gupt 4655
      this.emailId = emailId;
4656
      setEmailIdIsSet(true);
4657
    }
4658
 
4659
    public void unsetEmailId() {
4660
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4661
    }
4662
 
3430 rajveer 4663
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4664
    public boolean isSetEmailId() {
4665
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4666
    }
4667
 
4668
    public void setEmailIdIsSet(boolean value) {
4669
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4670
    }
4671
 
4672
    public void setFieldValue(_Fields field, Object value) {
4673
      switch (field) {
4674
      case EMAIL_ID:
4675
        if (value == null) {
4676
          unsetEmailId();
4677
        } else {
4678
          setEmailId((Long)value);
4679
        }
4680
        break;
4681
 
4682
      }
4683
    }
4684
 
4685
    public Object getFieldValue(_Fields field) {
4686
      switch (field) {
4687
      case EMAIL_ID:
3430 rajveer 4688
        return Long.valueOf(getEmailId());
1422 varun.gupt 4689
 
4690
      }
4691
      throw new IllegalStateException();
4692
    }
4693
 
3430 rajveer 4694
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4695
    public boolean isSet(_Fields field) {
4696
      if (field == null) {
4697
        throw new IllegalArgumentException();
4698
      }
1422 varun.gupt 4699
 
4700
      switch (field) {
4701
      case EMAIL_ID:
4702
        return isSetEmailId();
4703
      }
4704
      throw new IllegalStateException();
4705
    }
4706
 
4707
    @Override
4708
    public boolean equals(Object that) {
4709
      if (that == null)
4710
        return false;
4711
      if (that instanceof markEmailAsSent_args)
4712
        return this.equals((markEmailAsSent_args)that);
4713
      return false;
4714
    }
4715
 
4716
    public boolean equals(markEmailAsSent_args that) {
4717
      if (that == null)
4718
        return false;
4719
 
4720
      boolean this_present_emailId = true;
4721
      boolean that_present_emailId = true;
4722
      if (this_present_emailId || that_present_emailId) {
4723
        if (!(this_present_emailId && that_present_emailId))
4724
          return false;
4725
        if (this.emailId != that.emailId)
4726
          return false;
4727
      }
4728
 
4729
      return true;
4730
    }
4731
 
4732
    @Override
4733
    public int hashCode() {
4734
      return 0;
4735
    }
4736
 
4737
    public int compareTo(markEmailAsSent_args other) {
4738
      if (!getClass().equals(other.getClass())) {
4739
        return getClass().getName().compareTo(other.getClass().getName());
4740
      }
4741
 
4742
      int lastComparison = 0;
4743
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4744
 
3430 rajveer 4745
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4746
      if (lastComparison != 0) {
4747
        return lastComparison;
4748
      }
3430 rajveer 4749
      if (isSetEmailId()) {
4750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4751
        if (lastComparison != 0) {
4752
          return lastComparison;
4753
        }
1422 varun.gupt 4754
      }
4755
      return 0;
4756
    }
4757
 
3430 rajveer 4758
    public _Fields fieldForId(int fieldId) {
4759
      return _Fields.findByThriftId(fieldId);
4760
    }
4761
 
4762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4763
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4764
      iprot.readStructBegin();
4765
      while (true)
4766
      {
4767
        field = iprot.readFieldBegin();
3430 rajveer 4768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4769
          break;
4770
        }
3430 rajveer 4771
        switch (field.id) {
4772
          case 1: // EMAIL_ID
4773
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4774
              this.emailId = iprot.readI64();
4775
              setEmailIdIsSet(true);
4776
            } else { 
4777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4778
            }
4779
            break;
4780
          default:
4781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4782
        }
3430 rajveer 4783
        iprot.readFieldEnd();
1422 varun.gupt 4784
      }
4785
      iprot.readStructEnd();
4786
      validate();
4787
    }
4788
 
3430 rajveer 4789
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4790
      validate();
4791
 
4792
      oprot.writeStructBegin(STRUCT_DESC);
4793
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4794
      oprot.writeI64(this.emailId);
4795
      oprot.writeFieldEnd();
4796
      oprot.writeFieldStop();
4797
      oprot.writeStructEnd();
4798
    }
4799
 
4800
    @Override
4801
    public String toString() {
4802
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4803
      boolean first = true;
4804
 
4805
      sb.append("emailId:");
4806
      sb.append(this.emailId);
4807
      first = false;
4808
      sb.append(")");
4809
      return sb.toString();
4810
    }
4811
 
3430 rajveer 4812
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4813
      // check for required fields
4814
    }
4815
 
3430 rajveer 4816
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4817
      try {
4818
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4819
      } catch (org.apache.thrift.TException te) {
4820
        throw new java.io.IOException(te);
4821
      }
4822
    }
4823
 
4824
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4825
      try {
4826
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4827
        __isset_bit_vector = new BitSet(1);
4828
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4829
      } catch (org.apache.thrift.TException te) {
4830
        throw new java.io.IOException(te);
4831
      }
4832
    }
4833
 
1422 varun.gupt 4834
  }
4835
 
3430 rajveer 4836
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4837
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4838
 
3430 rajveer 4839
    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 4840
 
3430 rajveer 4841
    private HelperServiceException se; // required
1422 varun.gupt 4842
 
4843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4845
      SE((short)1, "se");
4846
 
4847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4848
 
4849
      static {
4850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4851
          byName.put(field.getFieldName(), field);
4852
        }
4853
      }
4854
 
4855
      /**
4856
       * Find the _Fields constant that matches fieldId, or null if its not found.
4857
       */
4858
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4859
        switch(fieldId) {
4860
          case 1: // SE
4861
            return SE;
4862
          default:
4863
            return null;
4864
        }
1422 varun.gupt 4865
      }
4866
 
4867
      /**
4868
       * Find the _Fields constant that matches fieldId, throwing an exception
4869
       * if it is not found.
4870
       */
4871
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4872
        _Fields fields = findByThriftId(fieldId);
4873
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4874
        return fields;
4875
      }
4876
 
4877
      /**
4878
       * Find the _Fields constant that matches name, or null if its not found.
4879
       */
4880
      public static _Fields findByName(String name) {
4881
        return byName.get(name);
4882
      }
4883
 
4884
      private final short _thriftId;
4885
      private final String _fieldName;
4886
 
4887
      _Fields(short thriftId, String fieldName) {
4888
        _thriftId = thriftId;
4889
        _fieldName = fieldName;
4890
      }
4891
 
4892
      public short getThriftFieldId() {
4893
        return _thriftId;
4894
      }
4895
 
4896
      public String getFieldName() {
4897
        return _fieldName;
4898
      }
4899
    }
4900
 
4901
    // isset id assignments
4902
 
3430 rajveer 4903
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4904
    static {
3430 rajveer 4905
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4906
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4908
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4909
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4910
    }
4911
 
4912
    public markEmailAsSent_result() {
4913
    }
4914
 
4915
    public markEmailAsSent_result(
4916
      HelperServiceException se)
4917
    {
4918
      this();
4919
      this.se = se;
4920
    }
4921
 
4922
    /**
4923
     * Performs a deep copy on <i>other</i>.
4924
     */
4925
    public markEmailAsSent_result(markEmailAsSent_result other) {
4926
      if (other.isSetSe()) {
4927
        this.se = new HelperServiceException(other.se);
4928
      }
4929
    }
4930
 
4931
    public markEmailAsSent_result deepCopy() {
4932
      return new markEmailAsSent_result(this);
4933
    }
4934
 
3430 rajveer 4935
    @Override
4936
    public void clear() {
4937
      this.se = null;
1422 varun.gupt 4938
    }
4939
 
4940
    public HelperServiceException getSe() {
4941
      return this.se;
4942
    }
4943
 
3430 rajveer 4944
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4945
      this.se = se;
4946
    }
4947
 
4948
    public void unsetSe() {
4949
      this.se = null;
4950
    }
4951
 
3430 rajveer 4952
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4953
    public boolean isSetSe() {
4954
      return this.se != null;
4955
    }
4956
 
4957
    public void setSeIsSet(boolean value) {
4958
      if (!value) {
4959
        this.se = null;
4960
      }
4961
    }
4962
 
4963
    public void setFieldValue(_Fields field, Object value) {
4964
      switch (field) {
4965
      case SE:
4966
        if (value == null) {
4967
          unsetSe();
4968
        } else {
4969
          setSe((HelperServiceException)value);
4970
        }
4971
        break;
4972
 
4973
      }
4974
    }
4975
 
4976
    public Object getFieldValue(_Fields field) {
4977
      switch (field) {
4978
      case SE:
4979
        return getSe();
4980
 
4981
      }
4982
      throw new IllegalStateException();
4983
    }
4984
 
3430 rajveer 4985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4986
    public boolean isSet(_Fields field) {
4987
      if (field == null) {
4988
        throw new IllegalArgumentException();
4989
      }
1422 varun.gupt 4990
 
4991
      switch (field) {
4992
      case SE:
4993
        return isSetSe();
4994
      }
4995
      throw new IllegalStateException();
4996
    }
4997
 
4998
    @Override
4999
    public boolean equals(Object that) {
5000
      if (that == null)
5001
        return false;
5002
      if (that instanceof markEmailAsSent_result)
5003
        return this.equals((markEmailAsSent_result)that);
5004
      return false;
5005
    }
5006
 
5007
    public boolean equals(markEmailAsSent_result that) {
5008
      if (that == null)
5009
        return false;
5010
 
5011
      boolean this_present_se = true && this.isSetSe();
5012
      boolean that_present_se = true && that.isSetSe();
5013
      if (this_present_se || that_present_se) {
5014
        if (!(this_present_se && that_present_se))
5015
          return false;
5016
        if (!this.se.equals(that.se))
5017
          return false;
5018
      }
5019
 
5020
      return true;
5021
    }
5022
 
5023
    @Override
5024
    public int hashCode() {
5025
      return 0;
5026
    }
5027
 
5028
    public int compareTo(markEmailAsSent_result other) {
5029
      if (!getClass().equals(other.getClass())) {
5030
        return getClass().getName().compareTo(other.getClass().getName());
5031
      }
5032
 
5033
      int lastComparison = 0;
5034
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5035
 
3430 rajveer 5036
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5037
      if (lastComparison != 0) {
5038
        return lastComparison;
5039
      }
3430 rajveer 5040
      if (isSetSe()) {
5041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5042
        if (lastComparison != 0) {
5043
          return lastComparison;
5044
        }
1422 varun.gupt 5045
      }
5046
      return 0;
5047
    }
5048
 
3430 rajveer 5049
    public _Fields fieldForId(int fieldId) {
5050
      return _Fields.findByThriftId(fieldId);
5051
    }
5052
 
5053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5054
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5055
      iprot.readStructBegin();
5056
      while (true)
5057
      {
5058
        field = iprot.readFieldBegin();
3430 rajveer 5059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5060
          break;
5061
        }
3430 rajveer 5062
        switch (field.id) {
5063
          case 1: // SE
5064
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5065
              this.se = new HelperServiceException();
5066
              this.se.read(iprot);
5067
            } else { 
5068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5069
            }
5070
            break;
5071
          default:
5072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5073
        }
3430 rajveer 5074
        iprot.readFieldEnd();
1422 varun.gupt 5075
      }
5076
      iprot.readStructEnd();
5077
      validate();
5078
    }
5079
 
3430 rajveer 5080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5081
      oprot.writeStructBegin(STRUCT_DESC);
5082
 
5083
      if (this.isSetSe()) {
5084
        oprot.writeFieldBegin(SE_FIELD_DESC);
5085
        this.se.write(oprot);
5086
        oprot.writeFieldEnd();
5087
      }
5088
      oprot.writeFieldStop();
5089
      oprot.writeStructEnd();
5090
    }
5091
 
5092
    @Override
5093
    public String toString() {
5094
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5095
      boolean first = true;
5096
 
5097
      sb.append("se:");
5098
      if (this.se == null) {
5099
        sb.append("null");
5100
      } else {
5101
        sb.append(this.se);
5102
      }
5103
      first = false;
5104
      sb.append(")");
5105
      return sb.toString();
5106
    }
5107
 
3430 rajveer 5108
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5109
      // check for required fields
5110
    }
5111
 
3430 rajveer 5112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5113
      try {
5114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5115
      } catch (org.apache.thrift.TException te) {
5116
        throw new java.io.IOException(te);
5117
      }
5118
    }
5119
 
5120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5121
      try {
5122
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5123
      } catch (org.apache.thrift.TException te) {
5124
        throw new java.io.IOException(te);
5125
      }
5126
    }
5127
 
1422 varun.gupt 5128
  }
5129
 
3430 rajveer 5130
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5131
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5132
 
3430 rajveer 5133
    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 5134
 
3430 rajveer 5135
    private Mail mail; // required
352 ashish 5136
 
5137
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5138
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5139
      MAIL((short)1, "mail");
5140
 
5141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5142
 
5143
      static {
5144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5145
          byName.put(field.getFieldName(), field);
5146
        }
5147
      }
5148
 
5149
      /**
5150
       * Find the _Fields constant that matches fieldId, or null if its not found.
5151
       */
5152
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5153
        switch(fieldId) {
5154
          case 1: // MAIL
5155
            return MAIL;
5156
          default:
5157
            return null;
5158
        }
352 ashish 5159
      }
5160
 
5161
      /**
5162
       * Find the _Fields constant that matches fieldId, throwing an exception
5163
       * if it is not found.
5164
       */
5165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5166
        _Fields fields = findByThriftId(fieldId);
5167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5168
        return fields;
5169
      }
5170
 
5171
      /**
5172
       * Find the _Fields constant that matches name, or null if its not found.
5173
       */
5174
      public static _Fields findByName(String name) {
5175
        return byName.get(name);
5176
      }
5177
 
5178
      private final short _thriftId;
5179
      private final String _fieldName;
5180
 
5181
      _Fields(short thriftId, String fieldName) {
5182
        _thriftId = thriftId;
5183
        _fieldName = fieldName;
5184
      }
5185
 
5186
      public short getThriftFieldId() {
5187
        return _thriftId;
5188
      }
5189
 
5190
      public String getFieldName() {
5191
        return _fieldName;
5192
      }
5193
    }
5194
 
5195
    // isset id assignments
5196
 
3430 rajveer 5197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5198
    static {
3430 rajveer 5199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5200
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5201
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5204
    }
5205
 
5206
    public sendMail_args() {
5207
    }
5208
 
5209
    public sendMail_args(
5210
      Mail mail)
5211
    {
5212
      this();
5213
      this.mail = mail;
5214
    }
5215
 
5216
    /**
5217
     * Performs a deep copy on <i>other</i>.
5218
     */
5219
    public sendMail_args(sendMail_args other) {
5220
      if (other.isSetMail()) {
5221
        this.mail = new Mail(other.mail);
5222
      }
5223
    }
5224
 
5225
    public sendMail_args deepCopy() {
5226
      return new sendMail_args(this);
5227
    }
5228
 
3430 rajveer 5229
    @Override
5230
    public void clear() {
5231
      this.mail = null;
352 ashish 5232
    }
5233
 
5234
    public Mail getMail() {
5235
      return this.mail;
5236
    }
5237
 
3430 rajveer 5238
    public void setMail(Mail mail) {
352 ashish 5239
      this.mail = mail;
5240
    }
5241
 
5242
    public void unsetMail() {
5243
      this.mail = null;
5244
    }
5245
 
3430 rajveer 5246
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5247
    public boolean isSetMail() {
5248
      return this.mail != null;
5249
    }
5250
 
5251
    public void setMailIsSet(boolean value) {
5252
      if (!value) {
5253
        this.mail = null;
5254
      }
5255
    }
5256
 
5257
    public void setFieldValue(_Fields field, Object value) {
5258
      switch (field) {
5259
      case MAIL:
5260
        if (value == null) {
5261
          unsetMail();
5262
        } else {
5263
          setMail((Mail)value);
5264
        }
5265
        break;
5266
 
5267
      }
5268
    }
5269
 
5270
    public Object getFieldValue(_Fields field) {
5271
      switch (field) {
5272
      case MAIL:
5273
        return getMail();
5274
 
5275
      }
5276
      throw new IllegalStateException();
5277
    }
5278
 
3430 rajveer 5279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5280
    public boolean isSet(_Fields field) {
5281
      if (field == null) {
5282
        throw new IllegalArgumentException();
5283
      }
352 ashish 5284
 
5285
      switch (field) {
5286
      case MAIL:
5287
        return isSetMail();
5288
      }
5289
      throw new IllegalStateException();
5290
    }
5291
 
5292
    @Override
5293
    public boolean equals(Object that) {
5294
      if (that == null)
5295
        return false;
5296
      if (that instanceof sendMail_args)
5297
        return this.equals((sendMail_args)that);
5298
      return false;
5299
    }
5300
 
5301
    public boolean equals(sendMail_args that) {
5302
      if (that == null)
5303
        return false;
5304
 
5305
      boolean this_present_mail = true && this.isSetMail();
5306
      boolean that_present_mail = true && that.isSetMail();
5307
      if (this_present_mail || that_present_mail) {
5308
        if (!(this_present_mail && that_present_mail))
5309
          return false;
5310
        if (!this.mail.equals(that.mail))
5311
          return false;
5312
      }
5313
 
5314
      return true;
5315
    }
5316
 
5317
    @Override
5318
    public int hashCode() {
5319
      return 0;
5320
    }
5321
 
5322
    public int compareTo(sendMail_args other) {
5323
      if (!getClass().equals(other.getClass())) {
5324
        return getClass().getName().compareTo(other.getClass().getName());
5325
      }
5326
 
5327
      int lastComparison = 0;
5328
      sendMail_args typedOther = (sendMail_args)other;
5329
 
3430 rajveer 5330
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5331
      if (lastComparison != 0) {
5332
        return lastComparison;
5333
      }
3430 rajveer 5334
      if (isSetMail()) {
5335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5336
        if (lastComparison != 0) {
5337
          return lastComparison;
5338
        }
352 ashish 5339
      }
5340
      return 0;
5341
    }
5342
 
3430 rajveer 5343
    public _Fields fieldForId(int fieldId) {
5344
      return _Fields.findByThriftId(fieldId);
5345
    }
5346
 
5347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5348
      org.apache.thrift.protocol.TField field;
352 ashish 5349
      iprot.readStructBegin();
5350
      while (true)
5351
      {
5352
        field = iprot.readFieldBegin();
3430 rajveer 5353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5354
          break;
5355
        }
3430 rajveer 5356
        switch (field.id) {
5357
          case 1: // MAIL
5358
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5359
              this.mail = new Mail();
5360
              this.mail.read(iprot);
5361
            } else { 
5362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5363
            }
5364
            break;
5365
          default:
5366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5367
        }
3430 rajveer 5368
        iprot.readFieldEnd();
352 ashish 5369
      }
5370
      iprot.readStructEnd();
5371
      validate();
5372
    }
5373
 
3430 rajveer 5374
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5375
      validate();
5376
 
5377
      oprot.writeStructBegin(STRUCT_DESC);
5378
      if (this.mail != null) {
5379
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5380
        this.mail.write(oprot);
5381
        oprot.writeFieldEnd();
5382
      }
5383
      oprot.writeFieldStop();
5384
      oprot.writeStructEnd();
5385
    }
5386
 
5387
    @Override
5388
    public String toString() {
5389
      StringBuilder sb = new StringBuilder("sendMail_args(");
5390
      boolean first = true;
5391
 
5392
      sb.append("mail:");
5393
      if (this.mail == null) {
5394
        sb.append("null");
5395
      } else {
5396
        sb.append(this.mail);
5397
      }
5398
      first = false;
5399
      sb.append(")");
5400
      return sb.toString();
5401
    }
5402
 
3430 rajveer 5403
    public void validate() throws org.apache.thrift.TException {
352 ashish 5404
      // check for required fields
5405
    }
5406
 
3430 rajveer 5407
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5408
      try {
5409
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5410
      } catch (org.apache.thrift.TException te) {
5411
        throw new java.io.IOException(te);
5412
      }
5413
    }
5414
 
5415
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5416
      try {
5417
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5418
      } catch (org.apache.thrift.TException te) {
5419
        throw new java.io.IOException(te);
5420
      }
5421
    }
5422
 
352 ashish 5423
  }
5424
 
3430 rajveer 5425
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5426
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5427
 
3430 rajveer 5428
    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 5429
 
3430 rajveer 5430
    private HelperServiceException se; // required
352 ashish 5431
 
5432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5434
      SE((short)1, "se");
5435
 
5436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5437
 
5438
      static {
5439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5440
          byName.put(field.getFieldName(), field);
5441
        }
5442
      }
5443
 
5444
      /**
5445
       * Find the _Fields constant that matches fieldId, or null if its not found.
5446
       */
5447
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5448
        switch(fieldId) {
5449
          case 1: // SE
5450
            return SE;
5451
          default:
5452
            return null;
5453
        }
352 ashish 5454
      }
5455
 
5456
      /**
5457
       * Find the _Fields constant that matches fieldId, throwing an exception
5458
       * if it is not found.
5459
       */
5460
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5461
        _Fields fields = findByThriftId(fieldId);
5462
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5463
        return fields;
5464
      }
5465
 
5466
      /**
5467
       * Find the _Fields constant that matches name, or null if its not found.
5468
       */
5469
      public static _Fields findByName(String name) {
5470
        return byName.get(name);
5471
      }
5472
 
5473
      private final short _thriftId;
5474
      private final String _fieldName;
5475
 
5476
      _Fields(short thriftId, String fieldName) {
5477
        _thriftId = thriftId;
5478
        _fieldName = fieldName;
5479
      }
5480
 
5481
      public short getThriftFieldId() {
5482
        return _thriftId;
5483
      }
5484
 
5485
      public String getFieldName() {
5486
        return _fieldName;
5487
      }
5488
    }
5489
 
5490
    // isset id assignments
5491
 
3430 rajveer 5492
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5493
    static {
3430 rajveer 5494
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5495
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5497
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5498
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5499
    }
5500
 
5501
    public sendMail_result() {
5502
    }
5503
 
5504
    public sendMail_result(
5505
      HelperServiceException se)
5506
    {
5507
      this();
5508
      this.se = se;
5509
    }
5510
 
5511
    /**
5512
     * Performs a deep copy on <i>other</i>.
5513
     */
5514
    public sendMail_result(sendMail_result other) {
5515
      if (other.isSetSe()) {
5516
        this.se = new HelperServiceException(other.se);
5517
      }
5518
    }
5519
 
5520
    public sendMail_result deepCopy() {
5521
      return new sendMail_result(this);
5522
    }
5523
 
3430 rajveer 5524
    @Override
5525
    public void clear() {
5526
      this.se = null;
352 ashish 5527
    }
5528
 
5529
    public HelperServiceException getSe() {
5530
      return this.se;
5531
    }
5532
 
3430 rajveer 5533
    public void setSe(HelperServiceException se) {
352 ashish 5534
      this.se = se;
5535
    }
5536
 
5537
    public void unsetSe() {
5538
      this.se = null;
5539
    }
5540
 
3430 rajveer 5541
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5542
    public boolean isSetSe() {
5543
      return this.se != null;
5544
    }
5545
 
5546
    public void setSeIsSet(boolean value) {
5547
      if (!value) {
5548
        this.se = null;
5549
      }
5550
    }
5551
 
5552
    public void setFieldValue(_Fields field, Object value) {
5553
      switch (field) {
5554
      case SE:
5555
        if (value == null) {
5556
          unsetSe();
5557
        } else {
5558
          setSe((HelperServiceException)value);
5559
        }
5560
        break;
5561
 
5562
      }
5563
    }
5564
 
5565
    public Object getFieldValue(_Fields field) {
5566
      switch (field) {
5567
      case SE:
5568
        return getSe();
5569
 
5570
      }
5571
      throw new IllegalStateException();
5572
    }
5573
 
3430 rajveer 5574
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5575
    public boolean isSet(_Fields field) {
5576
      if (field == null) {
5577
        throw new IllegalArgumentException();
5578
      }
352 ashish 5579
 
5580
      switch (field) {
5581
      case SE:
5582
        return isSetSe();
5583
      }
5584
      throw new IllegalStateException();
5585
    }
5586
 
5587
    @Override
5588
    public boolean equals(Object that) {
5589
      if (that == null)
5590
        return false;
5591
      if (that instanceof sendMail_result)
5592
        return this.equals((sendMail_result)that);
5593
      return false;
5594
    }
5595
 
5596
    public boolean equals(sendMail_result that) {
5597
      if (that == null)
5598
        return false;
5599
 
5600
      boolean this_present_se = true && this.isSetSe();
5601
      boolean that_present_se = true && that.isSetSe();
5602
      if (this_present_se || that_present_se) {
5603
        if (!(this_present_se && that_present_se))
5604
          return false;
5605
        if (!this.se.equals(that.se))
5606
          return false;
5607
      }
5608
 
5609
      return true;
5610
    }
5611
 
5612
    @Override
5613
    public int hashCode() {
5614
      return 0;
5615
    }
5616
 
5617
    public int compareTo(sendMail_result other) {
5618
      if (!getClass().equals(other.getClass())) {
5619
        return getClass().getName().compareTo(other.getClass().getName());
5620
      }
5621
 
5622
      int lastComparison = 0;
5623
      sendMail_result typedOther = (sendMail_result)other;
5624
 
3430 rajveer 5625
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5626
      if (lastComparison != 0) {
5627
        return lastComparison;
5628
      }
3430 rajveer 5629
      if (isSetSe()) {
5630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5631
        if (lastComparison != 0) {
5632
          return lastComparison;
5633
        }
352 ashish 5634
      }
5635
      return 0;
5636
    }
5637
 
3430 rajveer 5638
    public _Fields fieldForId(int fieldId) {
5639
      return _Fields.findByThriftId(fieldId);
5640
    }
5641
 
5642
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5643
      org.apache.thrift.protocol.TField field;
352 ashish 5644
      iprot.readStructBegin();
5645
      while (true)
5646
      {
5647
        field = iprot.readFieldBegin();
3430 rajveer 5648
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5649
          break;
5650
        }
3430 rajveer 5651
        switch (field.id) {
5652
          case 1: // SE
5653
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5654
              this.se = new HelperServiceException();
5655
              this.se.read(iprot);
5656
            } else { 
5657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5658
            }
5659
            break;
5660
          default:
5661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5662
        }
3430 rajveer 5663
        iprot.readFieldEnd();
352 ashish 5664
      }
5665
      iprot.readStructEnd();
5666
      validate();
5667
    }
5668
 
3430 rajveer 5669
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5670
      oprot.writeStructBegin(STRUCT_DESC);
5671
 
5672
      if (this.isSetSe()) {
5673
        oprot.writeFieldBegin(SE_FIELD_DESC);
5674
        this.se.write(oprot);
5675
        oprot.writeFieldEnd();
5676
      }
5677
      oprot.writeFieldStop();
5678
      oprot.writeStructEnd();
5679
    }
5680
 
5681
    @Override
5682
    public String toString() {
5683
      StringBuilder sb = new StringBuilder("sendMail_result(");
5684
      boolean first = true;
5685
 
5686
      sb.append("se:");
5687
      if (this.se == null) {
5688
        sb.append("null");
5689
      } else {
5690
        sb.append(this.se);
5691
      }
5692
      first = false;
5693
      sb.append(")");
5694
      return sb.toString();
5695
    }
5696
 
3430 rajveer 5697
    public void validate() throws org.apache.thrift.TException {
352 ashish 5698
      // check for required fields
5699
    }
5700
 
3430 rajveer 5701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5702
      try {
5703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5704
      } catch (org.apache.thrift.TException te) {
5705
        throw new java.io.IOException(te);
5706
      }
5707
    }
5708
 
5709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5710
      try {
5711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5712
      } catch (org.apache.thrift.TException te) {
5713
        throw new java.io.IOException(te);
5714
      }
5715
    }
5716
 
352 ashish 5717
  }
5718
 
3430 rajveer 5719
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5721
 
3430 rajveer 5722
    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 5723
 
3430 rajveer 5724
    private TextMessage message; // required
352 ashish 5725
 
5726
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5727
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5728
      MESSAGE((short)1, "message");
5729
 
5730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5731
 
5732
      static {
5733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5734
          byName.put(field.getFieldName(), field);
5735
        }
5736
      }
5737
 
5738
      /**
5739
       * Find the _Fields constant that matches fieldId, or null if its not found.
5740
       */
5741
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5742
        switch(fieldId) {
5743
          case 1: // MESSAGE
5744
            return MESSAGE;
5745
          default:
5746
            return null;
5747
        }
352 ashish 5748
      }
5749
 
5750
      /**
5751
       * Find the _Fields constant that matches fieldId, throwing an exception
5752
       * if it is not found.
5753
       */
5754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5755
        _Fields fields = findByThriftId(fieldId);
5756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5757
        return fields;
5758
      }
5759
 
5760
      /**
5761
       * Find the _Fields constant that matches name, or null if its not found.
5762
       */
5763
      public static _Fields findByName(String name) {
5764
        return byName.get(name);
5765
      }
5766
 
5767
      private final short _thriftId;
5768
      private final String _fieldName;
5769
 
5770
      _Fields(short thriftId, String fieldName) {
5771
        _thriftId = thriftId;
5772
        _fieldName = fieldName;
5773
      }
5774
 
5775
      public short getThriftFieldId() {
5776
        return _thriftId;
5777
      }
5778
 
5779
      public String getFieldName() {
5780
        return _fieldName;
5781
      }
5782
    }
5783
 
5784
    // isset id assignments
5785
 
3430 rajveer 5786
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5787
    static {
3430 rajveer 5788
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5789
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5790
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5791
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5792
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5793
    }
5794
 
5795
    public sendText_args() {
5796
    }
5797
 
5798
    public sendText_args(
5799
      TextMessage message)
5800
    {
5801
      this();
5802
      this.message = message;
5803
    }
5804
 
5805
    /**
5806
     * Performs a deep copy on <i>other</i>.
5807
     */
5808
    public sendText_args(sendText_args other) {
5809
      if (other.isSetMessage()) {
5810
        this.message = new TextMessage(other.message);
5811
      }
5812
    }
5813
 
5814
    public sendText_args deepCopy() {
5815
      return new sendText_args(this);
5816
    }
5817
 
3430 rajveer 5818
    @Override
5819
    public void clear() {
5820
      this.message = null;
352 ashish 5821
    }
5822
 
5823
    public TextMessage getMessage() {
5824
      return this.message;
5825
    }
5826
 
3430 rajveer 5827
    public void setMessage(TextMessage message) {
352 ashish 5828
      this.message = message;
5829
    }
5830
 
5831
    public void unsetMessage() {
5832
      this.message = null;
5833
    }
5834
 
3430 rajveer 5835
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5836
    public boolean isSetMessage() {
5837
      return this.message != null;
5838
    }
5839
 
5840
    public void setMessageIsSet(boolean value) {
5841
      if (!value) {
5842
        this.message = null;
5843
      }
5844
    }
5845
 
5846
    public void setFieldValue(_Fields field, Object value) {
5847
      switch (field) {
5848
      case MESSAGE:
5849
        if (value == null) {
5850
          unsetMessage();
5851
        } else {
5852
          setMessage((TextMessage)value);
5853
        }
5854
        break;
5855
 
5856
      }
5857
    }
5858
 
5859
    public Object getFieldValue(_Fields field) {
5860
      switch (field) {
5861
      case MESSAGE:
5862
        return getMessage();
5863
 
5864
      }
5865
      throw new IllegalStateException();
5866
    }
5867
 
3430 rajveer 5868
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5869
    public boolean isSet(_Fields field) {
5870
      if (field == null) {
5871
        throw new IllegalArgumentException();
5872
      }
352 ashish 5873
 
5874
      switch (field) {
5875
      case MESSAGE:
5876
        return isSetMessage();
5877
      }
5878
      throw new IllegalStateException();
5879
    }
5880
 
5881
    @Override
5882
    public boolean equals(Object that) {
5883
      if (that == null)
5884
        return false;
5885
      if (that instanceof sendText_args)
5886
        return this.equals((sendText_args)that);
5887
      return false;
5888
    }
5889
 
5890
    public boolean equals(sendText_args that) {
5891
      if (that == null)
5892
        return false;
5893
 
5894
      boolean this_present_message = true && this.isSetMessage();
5895
      boolean that_present_message = true && that.isSetMessage();
5896
      if (this_present_message || that_present_message) {
5897
        if (!(this_present_message && that_present_message))
5898
          return false;
5899
        if (!this.message.equals(that.message))
5900
          return false;
5901
      }
5902
 
5903
      return true;
5904
    }
5905
 
5906
    @Override
5907
    public int hashCode() {
5908
      return 0;
5909
    }
5910
 
5911
    public int compareTo(sendText_args other) {
5912
      if (!getClass().equals(other.getClass())) {
5913
        return getClass().getName().compareTo(other.getClass().getName());
5914
      }
5915
 
5916
      int lastComparison = 0;
5917
      sendText_args typedOther = (sendText_args)other;
5918
 
3430 rajveer 5919
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5920
      if (lastComparison != 0) {
5921
        return lastComparison;
5922
      }
3430 rajveer 5923
      if (isSetMessage()) {
5924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5925
        if (lastComparison != 0) {
5926
          return lastComparison;
5927
        }
352 ashish 5928
      }
5929
      return 0;
5930
    }
5931
 
3430 rajveer 5932
    public _Fields fieldForId(int fieldId) {
5933
      return _Fields.findByThriftId(fieldId);
5934
    }
5935
 
5936
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5937
      org.apache.thrift.protocol.TField field;
352 ashish 5938
      iprot.readStructBegin();
5939
      while (true)
5940
      {
5941
        field = iprot.readFieldBegin();
3430 rajveer 5942
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5943
          break;
5944
        }
3430 rajveer 5945
        switch (field.id) {
5946
          case 1: // MESSAGE
5947
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5948
              this.message = new TextMessage();
5949
              this.message.read(iprot);
5950
            } else { 
5951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5952
            }
5953
            break;
5954
          default:
5955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5956
        }
3430 rajveer 5957
        iprot.readFieldEnd();
352 ashish 5958
      }
5959
      iprot.readStructEnd();
5960
      validate();
5961
    }
5962
 
3430 rajveer 5963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5964
      validate();
5965
 
5966
      oprot.writeStructBegin(STRUCT_DESC);
5967
      if (this.message != null) {
5968
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5969
        this.message.write(oprot);
5970
        oprot.writeFieldEnd();
5971
      }
5972
      oprot.writeFieldStop();
5973
      oprot.writeStructEnd();
5974
    }
5975
 
5976
    @Override
5977
    public String toString() {
5978
      StringBuilder sb = new StringBuilder("sendText_args(");
5979
      boolean first = true;
5980
 
5981
      sb.append("message:");
5982
      if (this.message == null) {
5983
        sb.append("null");
5984
      } else {
5985
        sb.append(this.message);
5986
      }
5987
      first = false;
5988
      sb.append(")");
5989
      return sb.toString();
5990
    }
5991
 
3430 rajveer 5992
    public void validate() throws org.apache.thrift.TException {
352 ashish 5993
      // check for required fields
5994
    }
5995
 
3430 rajveer 5996
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5997
      try {
5998
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5999
      } catch (org.apache.thrift.TException te) {
6000
        throw new java.io.IOException(te);
6001
      }
6002
    }
6003
 
6004
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6005
      try {
6006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6007
      } catch (org.apache.thrift.TException te) {
6008
        throw new java.io.IOException(te);
6009
      }
6010
    }
6011
 
352 ashish 6012
  }
6013
 
3430 rajveer 6014
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6016
 
3430 rajveer 6017
    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 6018
 
3430 rajveer 6019
    private HelperServiceException se; // required
352 ashish 6020
 
6021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6022
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6023
      SE((short)1, "se");
6024
 
6025
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6026
 
6027
      static {
6028
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6029
          byName.put(field.getFieldName(), field);
6030
        }
6031
      }
6032
 
6033
      /**
6034
       * Find the _Fields constant that matches fieldId, or null if its not found.
6035
       */
6036
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6037
        switch(fieldId) {
6038
          case 1: // SE
6039
            return SE;
6040
          default:
6041
            return null;
6042
        }
352 ashish 6043
      }
6044
 
6045
      /**
6046
       * Find the _Fields constant that matches fieldId, throwing an exception
6047
       * if it is not found.
6048
       */
6049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6050
        _Fields fields = findByThriftId(fieldId);
6051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6052
        return fields;
6053
      }
6054
 
6055
      /**
6056
       * Find the _Fields constant that matches name, or null if its not found.
6057
       */
6058
      public static _Fields findByName(String name) {
6059
        return byName.get(name);
6060
      }
6061
 
6062
      private final short _thriftId;
6063
      private final String _fieldName;
6064
 
6065
      _Fields(short thriftId, String fieldName) {
6066
        _thriftId = thriftId;
6067
        _fieldName = fieldName;
6068
      }
6069
 
6070
      public short getThriftFieldId() {
6071
        return _thriftId;
6072
      }
6073
 
6074
      public String getFieldName() {
6075
        return _fieldName;
6076
      }
6077
    }
6078
 
6079
    // isset id assignments
6080
 
3430 rajveer 6081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6082
    static {
3430 rajveer 6083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6084
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6086
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6087
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6088
    }
6089
 
6090
    public sendText_result() {
6091
    }
6092
 
6093
    public sendText_result(
6094
      HelperServiceException se)
6095
    {
6096
      this();
6097
      this.se = se;
6098
    }
6099
 
6100
    /**
6101
     * Performs a deep copy on <i>other</i>.
6102
     */
6103
    public sendText_result(sendText_result other) {
6104
      if (other.isSetSe()) {
6105
        this.se = new HelperServiceException(other.se);
6106
      }
6107
    }
6108
 
6109
    public sendText_result deepCopy() {
6110
      return new sendText_result(this);
6111
    }
6112
 
3430 rajveer 6113
    @Override
6114
    public void clear() {
6115
      this.se = null;
352 ashish 6116
    }
6117
 
6118
    public HelperServiceException getSe() {
6119
      return this.se;
6120
    }
6121
 
3430 rajveer 6122
    public void setSe(HelperServiceException se) {
352 ashish 6123
      this.se = se;
6124
    }
6125
 
6126
    public void unsetSe() {
6127
      this.se = null;
6128
    }
6129
 
3430 rajveer 6130
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6131
    public boolean isSetSe() {
6132
      return this.se != null;
6133
    }
6134
 
6135
    public void setSeIsSet(boolean value) {
6136
      if (!value) {
6137
        this.se = null;
6138
      }
6139
    }
6140
 
6141
    public void setFieldValue(_Fields field, Object value) {
6142
      switch (field) {
6143
      case SE:
6144
        if (value == null) {
6145
          unsetSe();
6146
        } else {
6147
          setSe((HelperServiceException)value);
6148
        }
6149
        break;
6150
 
6151
      }
6152
    }
6153
 
6154
    public Object getFieldValue(_Fields field) {
6155
      switch (field) {
6156
      case SE:
6157
        return getSe();
6158
 
6159
      }
6160
      throw new IllegalStateException();
6161
    }
6162
 
3430 rajveer 6163
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6164
    public boolean isSet(_Fields field) {
6165
      if (field == null) {
6166
        throw new IllegalArgumentException();
6167
      }
352 ashish 6168
 
6169
      switch (field) {
6170
      case SE:
6171
        return isSetSe();
6172
      }
6173
      throw new IllegalStateException();
6174
    }
6175
 
6176
    @Override
6177
    public boolean equals(Object that) {
6178
      if (that == null)
6179
        return false;
6180
      if (that instanceof sendText_result)
6181
        return this.equals((sendText_result)that);
6182
      return false;
6183
    }
6184
 
6185
    public boolean equals(sendText_result that) {
6186
      if (that == null)
6187
        return false;
6188
 
6189
      boolean this_present_se = true && this.isSetSe();
6190
      boolean that_present_se = true && that.isSetSe();
6191
      if (this_present_se || that_present_se) {
6192
        if (!(this_present_se && that_present_se))
6193
          return false;
6194
        if (!this.se.equals(that.se))
6195
          return false;
6196
      }
6197
 
6198
      return true;
6199
    }
6200
 
6201
    @Override
6202
    public int hashCode() {
6203
      return 0;
6204
    }
6205
 
6206
    public int compareTo(sendText_result other) {
6207
      if (!getClass().equals(other.getClass())) {
6208
        return getClass().getName().compareTo(other.getClass().getName());
6209
      }
6210
 
6211
      int lastComparison = 0;
6212
      sendText_result typedOther = (sendText_result)other;
6213
 
3430 rajveer 6214
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6215
      if (lastComparison != 0) {
6216
        return lastComparison;
6217
      }
3430 rajveer 6218
      if (isSetSe()) {
6219
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6220
        if (lastComparison != 0) {
6221
          return lastComparison;
6222
        }
352 ashish 6223
      }
6224
      return 0;
6225
    }
6226
 
3430 rajveer 6227
    public _Fields fieldForId(int fieldId) {
6228
      return _Fields.findByThriftId(fieldId);
6229
    }
6230
 
6231
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6232
      org.apache.thrift.protocol.TField field;
352 ashish 6233
      iprot.readStructBegin();
6234
      while (true)
6235
      {
6236
        field = iprot.readFieldBegin();
3430 rajveer 6237
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6238
          break;
6239
        }
3430 rajveer 6240
        switch (field.id) {
6241
          case 1: // SE
6242
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6243
              this.se = new HelperServiceException();
6244
              this.se.read(iprot);
6245
            } else { 
6246
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6247
            }
6248
            break;
6249
          default:
6250
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6251
        }
3430 rajveer 6252
        iprot.readFieldEnd();
352 ashish 6253
      }
6254
      iprot.readStructEnd();
6255
      validate();
6256
    }
6257
 
3430 rajveer 6258
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6259
      oprot.writeStructBegin(STRUCT_DESC);
6260
 
6261
      if (this.isSetSe()) {
6262
        oprot.writeFieldBegin(SE_FIELD_DESC);
6263
        this.se.write(oprot);
6264
        oprot.writeFieldEnd();
6265
      }
6266
      oprot.writeFieldStop();
6267
      oprot.writeStructEnd();
6268
    }
6269
 
6270
    @Override
6271
    public String toString() {
6272
      StringBuilder sb = new StringBuilder("sendText_result(");
6273
      boolean first = true;
6274
 
6275
      sb.append("se:");
6276
      if (this.se == null) {
6277
        sb.append("null");
6278
      } else {
6279
        sb.append(this.se);
6280
      }
6281
      first = false;
6282
      sb.append(")");
6283
      return sb.toString();
6284
    }
6285
 
3430 rajveer 6286
    public void validate() throws org.apache.thrift.TException {
352 ashish 6287
      // check for required fields
6288
    }
6289
 
3430 rajveer 6290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6291
      try {
6292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6293
      } catch (org.apache.thrift.TException te) {
6294
        throw new java.io.IOException(te);
6295
      }
6296
    }
6297
 
6298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6299
      try {
6300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6301
      } catch (org.apache.thrift.TException te) {
6302
        throw new java.io.IOException(te);
6303
      }
6304
    }
6305
 
352 ashish 6306
  }
6307
 
3430 rajveer 6308
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6310
 
3430 rajveer 6311
    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 6312
 
3430 rajveer 6313
    private Message message; // required
352 ashish 6314
 
6315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6316
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6317
      MESSAGE((short)1, "message");
6318
 
6319
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6320
 
6321
      static {
6322
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6323
          byName.put(field.getFieldName(), field);
6324
        }
6325
      }
6326
 
6327
      /**
6328
       * Find the _Fields constant that matches fieldId, or null if its not found.
6329
       */
6330
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6331
        switch(fieldId) {
6332
          case 1: // MESSAGE
6333
            return MESSAGE;
6334
          default:
6335
            return null;
6336
        }
352 ashish 6337
      }
6338
 
6339
      /**
6340
       * Find the _Fields constant that matches fieldId, throwing an exception
6341
       * if it is not found.
6342
       */
6343
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6344
        _Fields fields = findByThriftId(fieldId);
6345
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6346
        return fields;
6347
      }
6348
 
6349
      /**
6350
       * Find the _Fields constant that matches name, or null if its not found.
6351
       */
6352
      public static _Fields findByName(String name) {
6353
        return byName.get(name);
6354
      }
6355
 
6356
      private final short _thriftId;
6357
      private final String _fieldName;
6358
 
6359
      _Fields(short thriftId, String fieldName) {
6360
        _thriftId = thriftId;
6361
        _fieldName = fieldName;
6362
      }
6363
 
6364
      public short getThriftFieldId() {
6365
        return _thriftId;
6366
      }
6367
 
6368
      public String getFieldName() {
6369
        return _fieldName;
6370
      }
6371
    }
6372
 
6373
    // isset id assignments
6374
 
3430 rajveer 6375
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6376
    static {
3430 rajveer 6377
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6378
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6379
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6382
    }
6383
 
6384
    public addMessage_args() {
6385
    }
6386
 
6387
    public addMessage_args(
6388
      Message message)
6389
    {
6390
      this();
6391
      this.message = message;
6392
    }
6393
 
6394
    /**
6395
     * Performs a deep copy on <i>other</i>.
6396
     */
6397
    public addMessage_args(addMessage_args other) {
6398
      if (other.isSetMessage()) {
6399
        this.message = new Message(other.message);
6400
      }
6401
    }
6402
 
6403
    public addMessage_args deepCopy() {
6404
      return new addMessage_args(this);
6405
    }
6406
 
3430 rajveer 6407
    @Override
6408
    public void clear() {
6409
      this.message = null;
352 ashish 6410
    }
6411
 
6412
    public Message getMessage() {
6413
      return this.message;
6414
    }
6415
 
3430 rajveer 6416
    public void setMessage(Message message) {
352 ashish 6417
      this.message = message;
6418
    }
6419
 
6420
    public void unsetMessage() {
6421
      this.message = null;
6422
    }
6423
 
3430 rajveer 6424
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6425
    public boolean isSetMessage() {
6426
      return this.message != null;
6427
    }
6428
 
6429
    public void setMessageIsSet(boolean value) {
6430
      if (!value) {
6431
        this.message = null;
6432
      }
6433
    }
6434
 
6435
    public void setFieldValue(_Fields field, Object value) {
6436
      switch (field) {
6437
      case MESSAGE:
6438
        if (value == null) {
6439
          unsetMessage();
6440
        } else {
6441
          setMessage((Message)value);
6442
        }
6443
        break;
6444
 
6445
      }
6446
    }
6447
 
6448
    public Object getFieldValue(_Fields field) {
6449
      switch (field) {
6450
      case MESSAGE:
6451
        return getMessage();
6452
 
6453
      }
6454
      throw new IllegalStateException();
6455
    }
6456
 
3430 rajveer 6457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6458
    public boolean isSet(_Fields field) {
6459
      if (field == null) {
6460
        throw new IllegalArgumentException();
6461
      }
352 ashish 6462
 
6463
      switch (field) {
6464
      case MESSAGE:
6465
        return isSetMessage();
6466
      }
6467
      throw new IllegalStateException();
6468
    }
6469
 
6470
    @Override
6471
    public boolean equals(Object that) {
6472
      if (that == null)
6473
        return false;
6474
      if (that instanceof addMessage_args)
6475
        return this.equals((addMessage_args)that);
6476
      return false;
6477
    }
6478
 
6479
    public boolean equals(addMessage_args that) {
6480
      if (that == null)
6481
        return false;
6482
 
6483
      boolean this_present_message = true && this.isSetMessage();
6484
      boolean that_present_message = true && that.isSetMessage();
6485
      if (this_present_message || that_present_message) {
6486
        if (!(this_present_message && that_present_message))
6487
          return false;
6488
        if (!this.message.equals(that.message))
6489
          return false;
6490
      }
6491
 
6492
      return true;
6493
    }
6494
 
6495
    @Override
6496
    public int hashCode() {
6497
      return 0;
6498
    }
6499
 
6500
    public int compareTo(addMessage_args other) {
6501
      if (!getClass().equals(other.getClass())) {
6502
        return getClass().getName().compareTo(other.getClass().getName());
6503
      }
6504
 
6505
      int lastComparison = 0;
6506
      addMessage_args typedOther = (addMessage_args)other;
6507
 
3430 rajveer 6508
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6509
      if (lastComparison != 0) {
6510
        return lastComparison;
6511
      }
3430 rajveer 6512
      if (isSetMessage()) {
6513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6514
        if (lastComparison != 0) {
6515
          return lastComparison;
6516
        }
352 ashish 6517
      }
6518
      return 0;
6519
    }
6520
 
3430 rajveer 6521
    public _Fields fieldForId(int fieldId) {
6522
      return _Fields.findByThriftId(fieldId);
6523
    }
6524
 
6525
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6526
      org.apache.thrift.protocol.TField field;
352 ashish 6527
      iprot.readStructBegin();
6528
      while (true)
6529
      {
6530
        field = iprot.readFieldBegin();
3430 rajveer 6531
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6532
          break;
6533
        }
3430 rajveer 6534
        switch (field.id) {
6535
          case 1: // MESSAGE
6536
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6537
              this.message = new Message();
6538
              this.message.read(iprot);
6539
            } else { 
6540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6541
            }
6542
            break;
6543
          default:
6544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6545
        }
3430 rajveer 6546
        iprot.readFieldEnd();
352 ashish 6547
      }
6548
      iprot.readStructEnd();
6549
      validate();
6550
    }
6551
 
3430 rajveer 6552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6553
      validate();
6554
 
6555
      oprot.writeStructBegin(STRUCT_DESC);
6556
      if (this.message != null) {
6557
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6558
        this.message.write(oprot);
6559
        oprot.writeFieldEnd();
6560
      }
6561
      oprot.writeFieldStop();
6562
      oprot.writeStructEnd();
6563
    }
6564
 
6565
    @Override
6566
    public String toString() {
6567
      StringBuilder sb = new StringBuilder("addMessage_args(");
6568
      boolean first = true;
6569
 
6570
      sb.append("message:");
6571
      if (this.message == null) {
6572
        sb.append("null");
6573
      } else {
6574
        sb.append(this.message);
6575
      }
6576
      first = false;
6577
      sb.append(")");
6578
      return sb.toString();
6579
    }
6580
 
3430 rajveer 6581
    public void validate() throws org.apache.thrift.TException {
352 ashish 6582
      // check for required fields
6583
    }
6584
 
3430 rajveer 6585
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6586
      try {
6587
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6588
      } catch (org.apache.thrift.TException te) {
6589
        throw new java.io.IOException(te);
6590
      }
6591
    }
6592
 
6593
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6594
      try {
6595
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6596
      } catch (org.apache.thrift.TException te) {
6597
        throw new java.io.IOException(te);
6598
      }
6599
    }
6600
 
352 ashish 6601
  }
6602
 
3430 rajveer 6603
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6604
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6605
 
3430 rajveer 6606
    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 6607
 
3430 rajveer 6608
    private HelperServiceException se; // required
352 ashish 6609
 
6610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6611
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6612
      SE((short)1, "se");
6613
 
6614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6615
 
6616
      static {
6617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6618
          byName.put(field.getFieldName(), field);
6619
        }
6620
      }
6621
 
6622
      /**
6623
       * Find the _Fields constant that matches fieldId, or null if its not found.
6624
       */
6625
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6626
        switch(fieldId) {
6627
          case 1: // SE
6628
            return SE;
6629
          default:
6630
            return null;
6631
        }
352 ashish 6632
      }
6633
 
6634
      /**
6635
       * Find the _Fields constant that matches fieldId, throwing an exception
6636
       * if it is not found.
6637
       */
6638
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6639
        _Fields fields = findByThriftId(fieldId);
6640
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6641
        return fields;
6642
      }
6643
 
6644
      /**
6645
       * Find the _Fields constant that matches name, or null if its not found.
6646
       */
6647
      public static _Fields findByName(String name) {
6648
        return byName.get(name);
6649
      }
6650
 
6651
      private final short _thriftId;
6652
      private final String _fieldName;
6653
 
6654
      _Fields(short thriftId, String fieldName) {
6655
        _thriftId = thriftId;
6656
        _fieldName = fieldName;
6657
      }
6658
 
6659
      public short getThriftFieldId() {
6660
        return _thriftId;
6661
      }
6662
 
6663
      public String getFieldName() {
6664
        return _fieldName;
6665
      }
6666
    }
6667
 
6668
    // isset id assignments
6669
 
3430 rajveer 6670
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6671
    static {
3430 rajveer 6672
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6673
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6674
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6675
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6676
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6677
    }
6678
 
6679
    public addMessage_result() {
6680
    }
6681
 
6682
    public addMessage_result(
6683
      HelperServiceException se)
6684
    {
6685
      this();
6686
      this.se = se;
6687
    }
6688
 
6689
    /**
6690
     * Performs a deep copy on <i>other</i>.
6691
     */
6692
    public addMessage_result(addMessage_result other) {
6693
      if (other.isSetSe()) {
6694
        this.se = new HelperServiceException(other.se);
6695
      }
6696
    }
6697
 
6698
    public addMessage_result deepCopy() {
6699
      return new addMessage_result(this);
6700
    }
6701
 
3430 rajveer 6702
    @Override
6703
    public void clear() {
6704
      this.se = null;
352 ashish 6705
    }
6706
 
6707
    public HelperServiceException getSe() {
6708
      return this.se;
6709
    }
6710
 
3430 rajveer 6711
    public void setSe(HelperServiceException se) {
352 ashish 6712
      this.se = se;
6713
    }
6714
 
6715
    public void unsetSe() {
6716
      this.se = null;
6717
    }
6718
 
3430 rajveer 6719
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6720
    public boolean isSetSe() {
6721
      return this.se != null;
6722
    }
6723
 
6724
    public void setSeIsSet(boolean value) {
6725
      if (!value) {
6726
        this.se = null;
6727
      }
6728
    }
6729
 
6730
    public void setFieldValue(_Fields field, Object value) {
6731
      switch (field) {
6732
      case SE:
6733
        if (value == null) {
6734
          unsetSe();
6735
        } else {
6736
          setSe((HelperServiceException)value);
6737
        }
6738
        break;
6739
 
6740
      }
6741
    }
6742
 
6743
    public Object getFieldValue(_Fields field) {
6744
      switch (field) {
6745
      case SE:
6746
        return getSe();
6747
 
6748
      }
6749
      throw new IllegalStateException();
6750
    }
6751
 
3430 rajveer 6752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6753
    public boolean isSet(_Fields field) {
6754
      if (field == null) {
6755
        throw new IllegalArgumentException();
6756
      }
352 ashish 6757
 
6758
      switch (field) {
6759
      case SE:
6760
        return isSetSe();
6761
      }
6762
      throw new IllegalStateException();
6763
    }
6764
 
6765
    @Override
6766
    public boolean equals(Object that) {
6767
      if (that == null)
6768
        return false;
6769
      if (that instanceof addMessage_result)
6770
        return this.equals((addMessage_result)that);
6771
      return false;
6772
    }
6773
 
6774
    public boolean equals(addMessage_result that) {
6775
      if (that == null)
6776
        return false;
6777
 
6778
      boolean this_present_se = true && this.isSetSe();
6779
      boolean that_present_se = true && that.isSetSe();
6780
      if (this_present_se || that_present_se) {
6781
        if (!(this_present_se && that_present_se))
6782
          return false;
6783
        if (!this.se.equals(that.se))
6784
          return false;
6785
      }
6786
 
6787
      return true;
6788
    }
6789
 
6790
    @Override
6791
    public int hashCode() {
6792
      return 0;
6793
    }
6794
 
6795
    public int compareTo(addMessage_result other) {
6796
      if (!getClass().equals(other.getClass())) {
6797
        return getClass().getName().compareTo(other.getClass().getName());
6798
      }
6799
 
6800
      int lastComparison = 0;
6801
      addMessage_result typedOther = (addMessage_result)other;
6802
 
3430 rajveer 6803
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6804
      if (lastComparison != 0) {
6805
        return lastComparison;
6806
      }
3430 rajveer 6807
      if (isSetSe()) {
6808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6809
        if (lastComparison != 0) {
6810
          return lastComparison;
6811
        }
352 ashish 6812
      }
6813
      return 0;
6814
    }
6815
 
3430 rajveer 6816
    public _Fields fieldForId(int fieldId) {
6817
      return _Fields.findByThriftId(fieldId);
6818
    }
6819
 
6820
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6821
      org.apache.thrift.protocol.TField field;
352 ashish 6822
      iprot.readStructBegin();
6823
      while (true)
6824
      {
6825
        field = iprot.readFieldBegin();
3430 rajveer 6826
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6827
          break;
6828
        }
3430 rajveer 6829
        switch (field.id) {
6830
          case 1: // SE
6831
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6832
              this.se = new HelperServiceException();
6833
              this.se.read(iprot);
6834
            } else { 
6835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6836
            }
6837
            break;
6838
          default:
6839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6840
        }
3430 rajveer 6841
        iprot.readFieldEnd();
352 ashish 6842
      }
6843
      iprot.readStructEnd();
6844
      validate();
6845
    }
6846
 
3430 rajveer 6847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6848
      oprot.writeStructBegin(STRUCT_DESC);
6849
 
6850
      if (this.isSetSe()) {
6851
        oprot.writeFieldBegin(SE_FIELD_DESC);
6852
        this.se.write(oprot);
6853
        oprot.writeFieldEnd();
6854
      }
6855
      oprot.writeFieldStop();
6856
      oprot.writeStructEnd();
6857
    }
6858
 
6859
    @Override
6860
    public String toString() {
6861
      StringBuilder sb = new StringBuilder("addMessage_result(");
6862
      boolean first = true;
6863
 
6864
      sb.append("se:");
6865
      if (this.se == null) {
6866
        sb.append("null");
6867
      } else {
6868
        sb.append(this.se);
6869
      }
6870
      first = false;
6871
      sb.append(")");
6872
      return sb.toString();
6873
    }
6874
 
3430 rajveer 6875
    public void validate() throws org.apache.thrift.TException {
352 ashish 6876
      // check for required fields
6877
    }
6878
 
3430 rajveer 6879
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6880
      try {
6881
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6882
      } catch (org.apache.thrift.TException te) {
6883
        throw new java.io.IOException(te);
6884
      }
6885
    }
6886
 
6887
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6888
      try {
6889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6890
      } catch (org.apache.thrift.TException te) {
6891
        throw new java.io.IOException(te);
6892
      }
6893
    }
6894
 
352 ashish 6895
  }
6896
 
3430 rajveer 6897
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6899
 
3430 rajveer 6900
    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);
6901
    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 6902
 
3430 rajveer 6903
    private long id; // required
6904
    private String message; // required
352 ashish 6905
 
6906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6908
      ID((short)1, "id"),
6909
      MESSAGE((short)2, "message");
6910
 
6911
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6912
 
6913
      static {
6914
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6915
          byName.put(field.getFieldName(), field);
6916
        }
6917
      }
6918
 
6919
      /**
6920
       * Find the _Fields constant that matches fieldId, or null if its not found.
6921
       */
6922
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6923
        switch(fieldId) {
6924
          case 1: // ID
6925
            return ID;
6926
          case 2: // MESSAGE
6927
            return MESSAGE;
6928
          default:
6929
            return null;
6930
        }
352 ashish 6931
      }
6932
 
6933
      /**
6934
       * Find the _Fields constant that matches fieldId, throwing an exception
6935
       * if it is not found.
6936
       */
6937
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6938
        _Fields fields = findByThriftId(fieldId);
6939
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6940
        return fields;
6941
      }
6942
 
6943
      /**
6944
       * Find the _Fields constant that matches name, or null if its not found.
6945
       */
6946
      public static _Fields findByName(String name) {
6947
        return byName.get(name);
6948
      }
6949
 
6950
      private final short _thriftId;
6951
      private final String _fieldName;
6952
 
6953
      _Fields(short thriftId, String fieldName) {
6954
        _thriftId = thriftId;
6955
        _fieldName = fieldName;
6956
      }
6957
 
6958
      public short getThriftFieldId() {
6959
        return _thriftId;
6960
      }
6961
 
6962
      public String getFieldName() {
6963
        return _fieldName;
6964
      }
6965
    }
6966
 
6967
    // isset id assignments
6968
    private static final int __ID_ISSET_ID = 0;
6969
    private BitSet __isset_bit_vector = new BitSet(1);
6970
 
3430 rajveer 6971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6972
    static {
3430 rajveer 6973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6974
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6975
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6976
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6977
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6978
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6979
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 6980
    }
6981
 
6982
    public updateMessage_args() {
6983
    }
6984
 
6985
    public updateMessage_args(
6986
      long id,
6987
      String message)
6988
    {
6989
      this();
6990
      this.id = id;
6991
      setIdIsSet(true);
6992
      this.message = message;
6993
    }
6994
 
6995
    /**
6996
     * Performs a deep copy on <i>other</i>.
6997
     */
6998
    public updateMessage_args(updateMessage_args other) {
6999
      __isset_bit_vector.clear();
7000
      __isset_bit_vector.or(other.__isset_bit_vector);
7001
      this.id = other.id;
7002
      if (other.isSetMessage()) {
7003
        this.message = other.message;
7004
      }
7005
    }
7006
 
7007
    public updateMessage_args deepCopy() {
7008
      return new updateMessage_args(this);
7009
    }
7010
 
3430 rajveer 7011
    @Override
7012
    public void clear() {
7013
      setIdIsSet(false);
7014
      this.id = 0;
7015
      this.message = null;
352 ashish 7016
    }
7017
 
7018
    public long getId() {
7019
      return this.id;
7020
    }
7021
 
3430 rajveer 7022
    public void setId(long id) {
352 ashish 7023
      this.id = id;
7024
      setIdIsSet(true);
7025
    }
7026
 
7027
    public void unsetId() {
7028
      __isset_bit_vector.clear(__ID_ISSET_ID);
7029
    }
7030
 
3430 rajveer 7031
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7032
    public boolean isSetId() {
7033
      return __isset_bit_vector.get(__ID_ISSET_ID);
7034
    }
7035
 
7036
    public void setIdIsSet(boolean value) {
7037
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7038
    }
7039
 
7040
    public String getMessage() {
7041
      return this.message;
7042
    }
7043
 
3430 rajveer 7044
    public void setMessage(String message) {
352 ashish 7045
      this.message = message;
7046
    }
7047
 
7048
    public void unsetMessage() {
7049
      this.message = null;
7050
    }
7051
 
3430 rajveer 7052
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7053
    public boolean isSetMessage() {
7054
      return this.message != null;
7055
    }
7056
 
7057
    public void setMessageIsSet(boolean value) {
7058
      if (!value) {
7059
        this.message = null;
7060
      }
7061
    }
7062
 
7063
    public void setFieldValue(_Fields field, Object value) {
7064
      switch (field) {
7065
      case ID:
7066
        if (value == null) {
7067
          unsetId();
7068
        } else {
7069
          setId((Long)value);
7070
        }
7071
        break;
7072
 
7073
      case MESSAGE:
7074
        if (value == null) {
7075
          unsetMessage();
7076
        } else {
7077
          setMessage((String)value);
7078
        }
7079
        break;
7080
 
7081
      }
7082
    }
7083
 
7084
    public Object getFieldValue(_Fields field) {
7085
      switch (field) {
7086
      case ID:
3430 rajveer 7087
        return Long.valueOf(getId());
352 ashish 7088
 
7089
      case MESSAGE:
7090
        return getMessage();
7091
 
7092
      }
7093
      throw new IllegalStateException();
7094
    }
7095
 
3430 rajveer 7096
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7097
    public boolean isSet(_Fields field) {
7098
      if (field == null) {
7099
        throw new IllegalArgumentException();
7100
      }
352 ashish 7101
 
7102
      switch (field) {
7103
      case ID:
7104
        return isSetId();
7105
      case MESSAGE:
7106
        return isSetMessage();
7107
      }
7108
      throw new IllegalStateException();
7109
    }
7110
 
7111
    @Override
7112
    public boolean equals(Object that) {
7113
      if (that == null)
7114
        return false;
7115
      if (that instanceof updateMessage_args)
7116
        return this.equals((updateMessage_args)that);
7117
      return false;
7118
    }
7119
 
7120
    public boolean equals(updateMessage_args that) {
7121
      if (that == null)
7122
        return false;
7123
 
7124
      boolean this_present_id = true;
7125
      boolean that_present_id = true;
7126
      if (this_present_id || that_present_id) {
7127
        if (!(this_present_id && that_present_id))
7128
          return false;
7129
        if (this.id != that.id)
7130
          return false;
7131
      }
7132
 
7133
      boolean this_present_message = true && this.isSetMessage();
7134
      boolean that_present_message = true && that.isSetMessage();
7135
      if (this_present_message || that_present_message) {
7136
        if (!(this_present_message && that_present_message))
7137
          return false;
7138
        if (!this.message.equals(that.message))
7139
          return false;
7140
      }
7141
 
7142
      return true;
7143
    }
7144
 
7145
    @Override
7146
    public int hashCode() {
7147
      return 0;
7148
    }
7149
 
7150
    public int compareTo(updateMessage_args other) {
7151
      if (!getClass().equals(other.getClass())) {
7152
        return getClass().getName().compareTo(other.getClass().getName());
7153
      }
7154
 
7155
      int lastComparison = 0;
7156
      updateMessage_args typedOther = (updateMessage_args)other;
7157
 
3430 rajveer 7158
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7159
      if (lastComparison != 0) {
7160
        return lastComparison;
7161
      }
3430 rajveer 7162
      if (isSetId()) {
7163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7164
        if (lastComparison != 0) {
7165
          return lastComparison;
7166
        }
352 ashish 7167
      }
3430 rajveer 7168
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7169
      if (lastComparison != 0) {
7170
        return lastComparison;
7171
      }
3430 rajveer 7172
      if (isSetMessage()) {
7173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7174
        if (lastComparison != 0) {
7175
          return lastComparison;
7176
        }
352 ashish 7177
      }
7178
      return 0;
7179
    }
7180
 
3430 rajveer 7181
    public _Fields fieldForId(int fieldId) {
7182
      return _Fields.findByThriftId(fieldId);
7183
    }
7184
 
7185
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7186
      org.apache.thrift.protocol.TField field;
352 ashish 7187
      iprot.readStructBegin();
7188
      while (true)
7189
      {
7190
        field = iprot.readFieldBegin();
3430 rajveer 7191
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7192
          break;
7193
        }
3430 rajveer 7194
        switch (field.id) {
7195
          case 1: // ID
7196
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7197
              this.id = iprot.readI64();
7198
              setIdIsSet(true);
7199
            } else { 
7200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7201
            }
7202
            break;
7203
          case 2: // MESSAGE
7204
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7205
              this.message = iprot.readString();
7206
            } else { 
7207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7208
            }
7209
            break;
7210
          default:
7211
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7212
        }
3430 rajveer 7213
        iprot.readFieldEnd();
352 ashish 7214
      }
7215
      iprot.readStructEnd();
7216
      validate();
7217
    }
7218
 
3430 rajveer 7219
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7220
      validate();
7221
 
7222
      oprot.writeStructBegin(STRUCT_DESC);
7223
      oprot.writeFieldBegin(ID_FIELD_DESC);
7224
      oprot.writeI64(this.id);
7225
      oprot.writeFieldEnd();
7226
      if (this.message != null) {
7227
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7228
        oprot.writeString(this.message);
7229
        oprot.writeFieldEnd();
7230
      }
7231
      oprot.writeFieldStop();
7232
      oprot.writeStructEnd();
7233
    }
7234
 
7235
    @Override
7236
    public String toString() {
7237
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7238
      boolean first = true;
7239
 
7240
      sb.append("id:");
7241
      sb.append(this.id);
7242
      first = false;
7243
      if (!first) sb.append(", ");
7244
      sb.append("message:");
7245
      if (this.message == null) {
7246
        sb.append("null");
7247
      } else {
7248
        sb.append(this.message);
7249
      }
7250
      first = false;
7251
      sb.append(")");
7252
      return sb.toString();
7253
    }
7254
 
3430 rajveer 7255
    public void validate() throws org.apache.thrift.TException {
352 ashish 7256
      // check for required fields
7257
    }
7258
 
3430 rajveer 7259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7260
      try {
7261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7262
      } catch (org.apache.thrift.TException te) {
7263
        throw new java.io.IOException(te);
7264
      }
7265
    }
7266
 
7267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7268
      try {
7269
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7270
        __isset_bit_vector = new BitSet(1);
7271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7272
      } catch (org.apache.thrift.TException te) {
7273
        throw new java.io.IOException(te);
7274
      }
7275
    }
7276
 
352 ashish 7277
  }
7278
 
3430 rajveer 7279
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7281
 
3430 rajveer 7282
    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 7283
 
3430 rajveer 7284
    private HelperServiceException se; // required
352 ashish 7285
 
7286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7288
      SE((short)1, "se");
7289
 
7290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7291
 
7292
      static {
7293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7294
          byName.put(field.getFieldName(), field);
7295
        }
7296
      }
7297
 
7298
      /**
7299
       * Find the _Fields constant that matches fieldId, or null if its not found.
7300
       */
7301
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7302
        switch(fieldId) {
7303
          case 1: // SE
7304
            return SE;
7305
          default:
7306
            return null;
7307
        }
352 ashish 7308
      }
7309
 
7310
      /**
7311
       * Find the _Fields constant that matches fieldId, throwing an exception
7312
       * if it is not found.
7313
       */
7314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7315
        _Fields fields = findByThriftId(fieldId);
7316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7317
        return fields;
7318
      }
7319
 
7320
      /**
7321
       * Find the _Fields constant that matches name, or null if its not found.
7322
       */
7323
      public static _Fields findByName(String name) {
7324
        return byName.get(name);
7325
      }
7326
 
7327
      private final short _thriftId;
7328
      private final String _fieldName;
7329
 
7330
      _Fields(short thriftId, String fieldName) {
7331
        _thriftId = thriftId;
7332
        _fieldName = fieldName;
7333
      }
7334
 
7335
      public short getThriftFieldId() {
7336
        return _thriftId;
7337
      }
7338
 
7339
      public String getFieldName() {
7340
        return _fieldName;
7341
      }
7342
    }
7343
 
7344
    // isset id assignments
7345
 
3430 rajveer 7346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7347
    static {
3430 rajveer 7348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7349
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7353
    }
7354
 
7355
    public updateMessage_result() {
7356
    }
7357
 
7358
    public updateMessage_result(
7359
      HelperServiceException se)
7360
    {
7361
      this();
7362
      this.se = se;
7363
    }
7364
 
7365
    /**
7366
     * Performs a deep copy on <i>other</i>.
7367
     */
7368
    public updateMessage_result(updateMessage_result other) {
7369
      if (other.isSetSe()) {
7370
        this.se = new HelperServiceException(other.se);
7371
      }
7372
    }
7373
 
7374
    public updateMessage_result deepCopy() {
7375
      return new updateMessage_result(this);
7376
    }
7377
 
3430 rajveer 7378
    @Override
7379
    public void clear() {
7380
      this.se = null;
352 ashish 7381
    }
7382
 
7383
    public HelperServiceException getSe() {
7384
      return this.se;
7385
    }
7386
 
3430 rajveer 7387
    public void setSe(HelperServiceException se) {
352 ashish 7388
      this.se = se;
7389
    }
7390
 
7391
    public void unsetSe() {
7392
      this.se = null;
7393
    }
7394
 
3430 rajveer 7395
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7396
    public boolean isSetSe() {
7397
      return this.se != null;
7398
    }
7399
 
7400
    public void setSeIsSet(boolean value) {
7401
      if (!value) {
7402
        this.se = null;
7403
      }
7404
    }
7405
 
7406
    public void setFieldValue(_Fields field, Object value) {
7407
      switch (field) {
7408
      case SE:
7409
        if (value == null) {
7410
          unsetSe();
7411
        } else {
7412
          setSe((HelperServiceException)value);
7413
        }
7414
        break;
7415
 
7416
      }
7417
    }
7418
 
7419
    public Object getFieldValue(_Fields field) {
7420
      switch (field) {
7421
      case SE:
7422
        return getSe();
7423
 
7424
      }
7425
      throw new IllegalStateException();
7426
    }
7427
 
3430 rajveer 7428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7429
    public boolean isSet(_Fields field) {
7430
      if (field == null) {
7431
        throw new IllegalArgumentException();
7432
      }
352 ashish 7433
 
7434
      switch (field) {
7435
      case SE:
7436
        return isSetSe();
7437
      }
7438
      throw new IllegalStateException();
7439
    }
7440
 
7441
    @Override
7442
    public boolean equals(Object that) {
7443
      if (that == null)
7444
        return false;
7445
      if (that instanceof updateMessage_result)
7446
        return this.equals((updateMessage_result)that);
7447
      return false;
7448
    }
7449
 
7450
    public boolean equals(updateMessage_result that) {
7451
      if (that == null)
7452
        return false;
7453
 
7454
      boolean this_present_se = true && this.isSetSe();
7455
      boolean that_present_se = true && that.isSetSe();
7456
      if (this_present_se || that_present_se) {
7457
        if (!(this_present_se && that_present_se))
7458
          return false;
7459
        if (!this.se.equals(that.se))
7460
          return false;
7461
      }
7462
 
7463
      return true;
7464
    }
7465
 
7466
    @Override
7467
    public int hashCode() {
7468
      return 0;
7469
    }
7470
 
7471
    public int compareTo(updateMessage_result other) {
7472
      if (!getClass().equals(other.getClass())) {
7473
        return getClass().getName().compareTo(other.getClass().getName());
7474
      }
7475
 
7476
      int lastComparison = 0;
7477
      updateMessage_result typedOther = (updateMessage_result)other;
7478
 
3430 rajveer 7479
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7480
      if (lastComparison != 0) {
7481
        return lastComparison;
7482
      }
3430 rajveer 7483
      if (isSetSe()) {
7484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7485
        if (lastComparison != 0) {
7486
          return lastComparison;
7487
        }
352 ashish 7488
      }
7489
      return 0;
7490
    }
7491
 
3430 rajveer 7492
    public _Fields fieldForId(int fieldId) {
7493
      return _Fields.findByThriftId(fieldId);
7494
    }
7495
 
7496
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7497
      org.apache.thrift.protocol.TField field;
352 ashish 7498
      iprot.readStructBegin();
7499
      while (true)
7500
      {
7501
        field = iprot.readFieldBegin();
3430 rajveer 7502
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7503
          break;
7504
        }
3430 rajveer 7505
        switch (field.id) {
7506
          case 1: // SE
7507
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7508
              this.se = new HelperServiceException();
7509
              this.se.read(iprot);
7510
            } else { 
7511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7512
            }
7513
            break;
7514
          default:
7515
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7516
        }
3430 rajveer 7517
        iprot.readFieldEnd();
352 ashish 7518
      }
7519
      iprot.readStructEnd();
7520
      validate();
7521
    }
7522
 
3430 rajveer 7523
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7524
      oprot.writeStructBegin(STRUCT_DESC);
7525
 
7526
      if (this.isSetSe()) {
7527
        oprot.writeFieldBegin(SE_FIELD_DESC);
7528
        this.se.write(oprot);
7529
        oprot.writeFieldEnd();
7530
      }
7531
      oprot.writeFieldStop();
7532
      oprot.writeStructEnd();
7533
    }
7534
 
7535
    @Override
7536
    public String toString() {
7537
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7538
      boolean first = true;
7539
 
7540
      sb.append("se:");
7541
      if (this.se == null) {
7542
        sb.append("null");
7543
      } else {
7544
        sb.append(this.se);
7545
      }
7546
      first = false;
7547
      sb.append(")");
7548
      return sb.toString();
7549
    }
7550
 
3430 rajveer 7551
    public void validate() throws org.apache.thrift.TException {
352 ashish 7552
      // check for required fields
7553
    }
7554
 
3430 rajveer 7555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7556
      try {
7557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7558
      } catch (org.apache.thrift.TException te) {
7559
        throw new java.io.IOException(te);
7560
      }
7561
    }
7562
 
7563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7564
      try {
7565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7566
      } catch (org.apache.thrift.TException te) {
7567
        throw new java.io.IOException(te);
7568
      }
7569
    }
7570
 
352 ashish 7571
  }
7572
 
3430 rajveer 7573
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7575
 
3430 rajveer 7576
    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 7577
 
3430 rajveer 7578
    private long id; // required
352 ashish 7579
 
7580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7582
      ID((short)1, "id");
7583
 
7584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7585
 
7586
      static {
7587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7588
          byName.put(field.getFieldName(), field);
7589
        }
7590
      }
7591
 
7592
      /**
7593
       * Find the _Fields constant that matches fieldId, or null if its not found.
7594
       */
7595
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7596
        switch(fieldId) {
7597
          case 1: // ID
7598
            return ID;
7599
          default:
7600
            return null;
7601
        }
352 ashish 7602
      }
7603
 
7604
      /**
7605
       * Find the _Fields constant that matches fieldId, throwing an exception
7606
       * if it is not found.
7607
       */
7608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7609
        _Fields fields = findByThriftId(fieldId);
7610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7611
        return fields;
7612
      }
7613
 
7614
      /**
7615
       * Find the _Fields constant that matches name, or null if its not found.
7616
       */
7617
      public static _Fields findByName(String name) {
7618
        return byName.get(name);
7619
      }
7620
 
7621
      private final short _thriftId;
7622
      private final String _fieldName;
7623
 
7624
      _Fields(short thriftId, String fieldName) {
7625
        _thriftId = thriftId;
7626
        _fieldName = fieldName;
7627
      }
7628
 
7629
      public short getThriftFieldId() {
7630
        return _thriftId;
7631
      }
7632
 
7633
      public String getFieldName() {
7634
        return _fieldName;
7635
      }
7636
    }
7637
 
7638
    // isset id assignments
7639
    private static final int __ID_ISSET_ID = 0;
7640
    private BitSet __isset_bit_vector = new BitSet(1);
7641
 
3430 rajveer 7642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7643
    static {
3430 rajveer 7644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7645
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7647
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7648
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7649
    }
7650
 
7651
    public getMessage_args() {
7652
    }
7653
 
7654
    public getMessage_args(
7655
      long id)
7656
    {
7657
      this();
7658
      this.id = id;
7659
      setIdIsSet(true);
7660
    }
7661
 
7662
    /**
7663
     * Performs a deep copy on <i>other</i>.
7664
     */
7665
    public getMessage_args(getMessage_args other) {
7666
      __isset_bit_vector.clear();
7667
      __isset_bit_vector.or(other.__isset_bit_vector);
7668
      this.id = other.id;
7669
    }
7670
 
7671
    public getMessage_args deepCopy() {
7672
      return new getMessage_args(this);
7673
    }
7674
 
3430 rajveer 7675
    @Override
7676
    public void clear() {
7677
      setIdIsSet(false);
7678
      this.id = 0;
352 ashish 7679
    }
7680
 
7681
    public long getId() {
7682
      return this.id;
7683
    }
7684
 
3430 rajveer 7685
    public void setId(long id) {
352 ashish 7686
      this.id = id;
7687
      setIdIsSet(true);
7688
    }
7689
 
7690
    public void unsetId() {
7691
      __isset_bit_vector.clear(__ID_ISSET_ID);
7692
    }
7693
 
3430 rajveer 7694
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7695
    public boolean isSetId() {
7696
      return __isset_bit_vector.get(__ID_ISSET_ID);
7697
    }
7698
 
7699
    public void setIdIsSet(boolean value) {
7700
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7701
    }
7702
 
7703
    public void setFieldValue(_Fields field, Object value) {
7704
      switch (field) {
7705
      case ID:
7706
        if (value == null) {
7707
          unsetId();
7708
        } else {
7709
          setId((Long)value);
7710
        }
7711
        break;
7712
 
7713
      }
7714
    }
7715
 
7716
    public Object getFieldValue(_Fields field) {
7717
      switch (field) {
7718
      case ID:
3430 rajveer 7719
        return Long.valueOf(getId());
352 ashish 7720
 
7721
      }
7722
      throw new IllegalStateException();
7723
    }
7724
 
3430 rajveer 7725
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7726
    public boolean isSet(_Fields field) {
7727
      if (field == null) {
7728
        throw new IllegalArgumentException();
7729
      }
352 ashish 7730
 
7731
      switch (field) {
7732
      case ID:
7733
        return isSetId();
7734
      }
7735
      throw new IllegalStateException();
7736
    }
7737
 
7738
    @Override
7739
    public boolean equals(Object that) {
7740
      if (that == null)
7741
        return false;
7742
      if (that instanceof getMessage_args)
7743
        return this.equals((getMessage_args)that);
7744
      return false;
7745
    }
7746
 
7747
    public boolean equals(getMessage_args that) {
7748
      if (that == null)
7749
        return false;
7750
 
7751
      boolean this_present_id = true;
7752
      boolean that_present_id = true;
7753
      if (this_present_id || that_present_id) {
7754
        if (!(this_present_id && that_present_id))
7755
          return false;
7756
        if (this.id != that.id)
7757
          return false;
7758
      }
7759
 
7760
      return true;
7761
    }
7762
 
7763
    @Override
7764
    public int hashCode() {
7765
      return 0;
7766
    }
7767
 
7768
    public int compareTo(getMessage_args other) {
7769
      if (!getClass().equals(other.getClass())) {
7770
        return getClass().getName().compareTo(other.getClass().getName());
7771
      }
7772
 
7773
      int lastComparison = 0;
7774
      getMessage_args typedOther = (getMessage_args)other;
7775
 
3430 rajveer 7776
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7777
      if (lastComparison != 0) {
7778
        return lastComparison;
7779
      }
3430 rajveer 7780
      if (isSetId()) {
7781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7782
        if (lastComparison != 0) {
7783
          return lastComparison;
7784
        }
352 ashish 7785
      }
7786
      return 0;
7787
    }
7788
 
3430 rajveer 7789
    public _Fields fieldForId(int fieldId) {
7790
      return _Fields.findByThriftId(fieldId);
7791
    }
7792
 
7793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7794
      org.apache.thrift.protocol.TField field;
352 ashish 7795
      iprot.readStructBegin();
7796
      while (true)
7797
      {
7798
        field = iprot.readFieldBegin();
3430 rajveer 7799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7800
          break;
7801
        }
3430 rajveer 7802
        switch (field.id) {
7803
          case 1: // ID
7804
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7805
              this.id = iprot.readI64();
7806
              setIdIsSet(true);
7807
            } else { 
7808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7809
            }
7810
            break;
7811
          default:
7812
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7813
        }
3430 rajveer 7814
        iprot.readFieldEnd();
352 ashish 7815
      }
7816
      iprot.readStructEnd();
7817
      validate();
7818
    }
7819
 
3430 rajveer 7820
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7821
      validate();
7822
 
7823
      oprot.writeStructBegin(STRUCT_DESC);
7824
      oprot.writeFieldBegin(ID_FIELD_DESC);
7825
      oprot.writeI64(this.id);
7826
      oprot.writeFieldEnd();
7827
      oprot.writeFieldStop();
7828
      oprot.writeStructEnd();
7829
    }
7830
 
7831
    @Override
7832
    public String toString() {
7833
      StringBuilder sb = new StringBuilder("getMessage_args(");
7834
      boolean first = true;
7835
 
7836
      sb.append("id:");
7837
      sb.append(this.id);
7838
      first = false;
7839
      sb.append(")");
7840
      return sb.toString();
7841
    }
7842
 
3430 rajveer 7843
    public void validate() throws org.apache.thrift.TException {
352 ashish 7844
      // check for required fields
7845
    }
7846
 
3430 rajveer 7847
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7848
      try {
7849
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7850
      } catch (org.apache.thrift.TException te) {
7851
        throw new java.io.IOException(te);
7852
      }
7853
    }
7854
 
7855
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7856
      try {
7857
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7858
        __isset_bit_vector = new BitSet(1);
7859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7860
      } catch (org.apache.thrift.TException te) {
7861
        throw new java.io.IOException(te);
7862
      }
7863
    }
7864
 
352 ashish 7865
  }
7866
 
3430 rajveer 7867
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7869
 
3430 rajveer 7870
    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);
7871
    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 7872
 
3430 rajveer 7873
    private Message success; // required
7874
    private HelperServiceException se; // required
352 ashish 7875
 
7876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7878
      SUCCESS((short)0, "success"),
7879
      SE((short)1, "se");
7880
 
7881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7882
 
7883
      static {
7884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7885
          byName.put(field.getFieldName(), field);
7886
        }
7887
      }
7888
 
7889
      /**
7890
       * Find the _Fields constant that matches fieldId, or null if its not found.
7891
       */
7892
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7893
        switch(fieldId) {
7894
          case 0: // SUCCESS
7895
            return SUCCESS;
7896
          case 1: // SE
7897
            return SE;
7898
          default:
7899
            return null;
7900
        }
352 ashish 7901
      }
7902
 
7903
      /**
7904
       * Find the _Fields constant that matches fieldId, throwing an exception
7905
       * if it is not found.
7906
       */
7907
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7908
        _Fields fields = findByThriftId(fieldId);
7909
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7910
        return fields;
7911
      }
7912
 
7913
      /**
7914
       * Find the _Fields constant that matches name, or null if its not found.
7915
       */
7916
      public static _Fields findByName(String name) {
7917
        return byName.get(name);
7918
      }
7919
 
7920
      private final short _thriftId;
7921
      private final String _fieldName;
7922
 
7923
      _Fields(short thriftId, String fieldName) {
7924
        _thriftId = thriftId;
7925
        _fieldName = fieldName;
7926
      }
7927
 
7928
      public short getThriftFieldId() {
7929
        return _thriftId;
7930
      }
7931
 
7932
      public String getFieldName() {
7933
        return _fieldName;
7934
      }
7935
    }
7936
 
7937
    // isset id assignments
7938
 
3430 rajveer 7939
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7940
    static {
3430 rajveer 7941
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7942
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7943
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7944
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7946
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7947
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 7948
    }
7949
 
7950
    public getMessage_result() {
7951
    }
7952
 
7953
    public getMessage_result(
7954
      Message success,
7955
      HelperServiceException se)
7956
    {
7957
      this();
7958
      this.success = success;
7959
      this.se = se;
7960
    }
7961
 
7962
    /**
7963
     * Performs a deep copy on <i>other</i>.
7964
     */
7965
    public getMessage_result(getMessage_result other) {
7966
      if (other.isSetSuccess()) {
7967
        this.success = new Message(other.success);
7968
      }
7969
      if (other.isSetSe()) {
7970
        this.se = new HelperServiceException(other.se);
7971
      }
7972
    }
7973
 
7974
    public getMessage_result deepCopy() {
7975
      return new getMessage_result(this);
7976
    }
7977
 
3430 rajveer 7978
    @Override
7979
    public void clear() {
7980
      this.success = null;
7981
      this.se = null;
352 ashish 7982
    }
7983
 
7984
    public Message getSuccess() {
7985
      return this.success;
7986
    }
7987
 
3430 rajveer 7988
    public void setSuccess(Message success) {
352 ashish 7989
      this.success = success;
7990
    }
7991
 
7992
    public void unsetSuccess() {
7993
      this.success = null;
7994
    }
7995
 
3430 rajveer 7996
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7997
    public boolean isSetSuccess() {
7998
      return this.success != null;
7999
    }
8000
 
8001
    public void setSuccessIsSet(boolean value) {
8002
      if (!value) {
8003
        this.success = null;
8004
      }
8005
    }
8006
 
8007
    public HelperServiceException getSe() {
8008
      return this.se;
8009
    }
8010
 
3430 rajveer 8011
    public void setSe(HelperServiceException se) {
352 ashish 8012
      this.se = se;
8013
    }
8014
 
8015
    public void unsetSe() {
8016
      this.se = null;
8017
    }
8018
 
3430 rajveer 8019
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8020
    public boolean isSetSe() {
8021
      return this.se != null;
8022
    }
8023
 
8024
    public void setSeIsSet(boolean value) {
8025
      if (!value) {
8026
        this.se = null;
8027
      }
8028
    }
8029
 
8030
    public void setFieldValue(_Fields field, Object value) {
8031
      switch (field) {
8032
      case SUCCESS:
8033
        if (value == null) {
8034
          unsetSuccess();
8035
        } else {
8036
          setSuccess((Message)value);
8037
        }
8038
        break;
8039
 
8040
      case SE:
8041
        if (value == null) {
8042
          unsetSe();
8043
        } else {
8044
          setSe((HelperServiceException)value);
8045
        }
8046
        break;
8047
 
8048
      }
8049
    }
8050
 
8051
    public Object getFieldValue(_Fields field) {
8052
      switch (field) {
8053
      case SUCCESS:
8054
        return getSuccess();
8055
 
8056
      case SE:
8057
        return getSe();
8058
 
8059
      }
8060
      throw new IllegalStateException();
8061
    }
8062
 
3430 rajveer 8063
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8064
    public boolean isSet(_Fields field) {
8065
      if (field == null) {
8066
        throw new IllegalArgumentException();
8067
      }
352 ashish 8068
 
8069
      switch (field) {
8070
      case SUCCESS:
8071
        return isSetSuccess();
8072
      case SE:
8073
        return isSetSe();
8074
      }
8075
      throw new IllegalStateException();
8076
    }
8077
 
8078
    @Override
8079
    public boolean equals(Object that) {
8080
      if (that == null)
8081
        return false;
8082
      if (that instanceof getMessage_result)
8083
        return this.equals((getMessage_result)that);
8084
      return false;
8085
    }
8086
 
8087
    public boolean equals(getMessage_result that) {
8088
      if (that == null)
8089
        return false;
8090
 
8091
      boolean this_present_success = true && this.isSetSuccess();
8092
      boolean that_present_success = true && that.isSetSuccess();
8093
      if (this_present_success || that_present_success) {
8094
        if (!(this_present_success && that_present_success))
8095
          return false;
8096
        if (!this.success.equals(that.success))
8097
          return false;
8098
      }
8099
 
8100
      boolean this_present_se = true && this.isSetSe();
8101
      boolean that_present_se = true && that.isSetSe();
8102
      if (this_present_se || that_present_se) {
8103
        if (!(this_present_se && that_present_se))
8104
          return false;
8105
        if (!this.se.equals(that.se))
8106
          return false;
8107
      }
8108
 
8109
      return true;
8110
    }
8111
 
8112
    @Override
8113
    public int hashCode() {
8114
      return 0;
8115
    }
8116
 
8117
    public int compareTo(getMessage_result other) {
8118
      if (!getClass().equals(other.getClass())) {
8119
        return getClass().getName().compareTo(other.getClass().getName());
8120
      }
8121
 
8122
      int lastComparison = 0;
8123
      getMessage_result typedOther = (getMessage_result)other;
8124
 
3430 rajveer 8125
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8126
      if (lastComparison != 0) {
8127
        return lastComparison;
8128
      }
3430 rajveer 8129
      if (isSetSuccess()) {
8130
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8131
        if (lastComparison != 0) {
8132
          return lastComparison;
8133
        }
352 ashish 8134
      }
3430 rajveer 8135
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8136
      if (lastComparison != 0) {
8137
        return lastComparison;
8138
      }
3430 rajveer 8139
      if (isSetSe()) {
8140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8141
        if (lastComparison != 0) {
8142
          return lastComparison;
8143
        }
352 ashish 8144
      }
8145
      return 0;
8146
    }
8147
 
3430 rajveer 8148
    public _Fields fieldForId(int fieldId) {
8149
      return _Fields.findByThriftId(fieldId);
8150
    }
8151
 
8152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8153
      org.apache.thrift.protocol.TField field;
352 ashish 8154
      iprot.readStructBegin();
8155
      while (true)
8156
      {
8157
        field = iprot.readFieldBegin();
3430 rajveer 8158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8159
          break;
8160
        }
3430 rajveer 8161
        switch (field.id) {
8162
          case 0: // SUCCESS
8163
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8164
              this.success = new Message();
8165
              this.success.read(iprot);
8166
            } else { 
8167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8168
            }
8169
            break;
8170
          case 1: // SE
8171
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8172
              this.se = new HelperServiceException();
8173
              this.se.read(iprot);
8174
            } else { 
8175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8176
            }
8177
            break;
8178
          default:
8179
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8180
        }
3430 rajveer 8181
        iprot.readFieldEnd();
352 ashish 8182
      }
8183
      iprot.readStructEnd();
8184
      validate();
8185
    }
8186
 
3430 rajveer 8187
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8188
      oprot.writeStructBegin(STRUCT_DESC);
8189
 
8190
      if (this.isSetSuccess()) {
8191
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8192
        this.success.write(oprot);
8193
        oprot.writeFieldEnd();
8194
      } else if (this.isSetSe()) {
8195
        oprot.writeFieldBegin(SE_FIELD_DESC);
8196
        this.se.write(oprot);
8197
        oprot.writeFieldEnd();
8198
      }
8199
      oprot.writeFieldStop();
8200
      oprot.writeStructEnd();
8201
    }
8202
 
8203
    @Override
8204
    public String toString() {
8205
      StringBuilder sb = new StringBuilder("getMessage_result(");
8206
      boolean first = true;
8207
 
8208
      sb.append("success:");
8209
      if (this.success == null) {
8210
        sb.append("null");
8211
      } else {
8212
        sb.append(this.success);
8213
      }
8214
      first = false;
8215
      if (!first) sb.append(", ");
8216
      sb.append("se:");
8217
      if (this.se == null) {
8218
        sb.append("null");
8219
      } else {
8220
        sb.append(this.se);
8221
      }
8222
      first = false;
8223
      sb.append(")");
8224
      return sb.toString();
8225
    }
8226
 
3430 rajveer 8227
    public void validate() throws org.apache.thrift.TException {
352 ashish 8228
      // check for required fields
8229
    }
8230
 
3430 rajveer 8231
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8232
      try {
8233
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8234
      } catch (org.apache.thrift.TException te) {
8235
        throw new java.io.IOException(te);
8236
      }
8237
    }
8238
 
8239
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8240
      try {
8241
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8242
      } catch (org.apache.thrift.TException te) {
8243
        throw new java.io.IOException(te);
8244
      }
8245
    }
8246
 
352 ashish 8247
  }
8248
 
3430 rajveer 8249
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8250
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8251
 
3430 rajveer 8252
    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);
8253
    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 8254
 
3430 rajveer 8255
    private long id; // required
8256
    private Map<String,String> params; // required
352 ashish 8257
 
8258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8259
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8260
      ID((short)1, "id"),
8261
      PARAMS((short)2, "params");
8262
 
8263
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8264
 
8265
      static {
8266
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8267
          byName.put(field.getFieldName(), field);
8268
        }
8269
      }
8270
 
8271
      /**
8272
       * Find the _Fields constant that matches fieldId, or null if its not found.
8273
       */
8274
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8275
        switch(fieldId) {
8276
          case 1: // ID
8277
            return ID;
8278
          case 2: // PARAMS
8279
            return PARAMS;
8280
          default:
8281
            return null;
8282
        }
352 ashish 8283
      }
8284
 
8285
      /**
8286
       * Find the _Fields constant that matches fieldId, throwing an exception
8287
       * if it is not found.
8288
       */
8289
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8290
        _Fields fields = findByThriftId(fieldId);
8291
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8292
        return fields;
8293
      }
8294
 
8295
      /**
8296
       * Find the _Fields constant that matches name, or null if its not found.
8297
       */
8298
      public static _Fields findByName(String name) {
8299
        return byName.get(name);
8300
      }
8301
 
8302
      private final short _thriftId;
8303
      private final String _fieldName;
8304
 
8305
      _Fields(short thriftId, String fieldName) {
8306
        _thriftId = thriftId;
8307
        _fieldName = fieldName;
8308
      }
8309
 
8310
      public short getThriftFieldId() {
8311
        return _thriftId;
8312
      }
8313
 
8314
      public String getFieldName() {
8315
        return _fieldName;
8316
      }
8317
    }
8318
 
8319
    // isset id assignments
8320
    private static final int __ID_ISSET_ID = 0;
8321
    private BitSet __isset_bit_vector = new BitSet(1);
8322
 
3430 rajveer 8323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8324
    static {
3430 rajveer 8325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8326
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8328
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8329
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8330
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8331
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8332
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8333
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8334
    }
8335
 
8336
    public getSubstitutedMessage_args() {
8337
    }
8338
 
8339
    public getSubstitutedMessage_args(
8340
      long id,
8341
      Map<String,String> params)
8342
    {
8343
      this();
8344
      this.id = id;
8345
      setIdIsSet(true);
8346
      this.params = params;
8347
    }
8348
 
8349
    /**
8350
     * Performs a deep copy on <i>other</i>.
8351
     */
8352
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8353
      __isset_bit_vector.clear();
8354
      __isset_bit_vector.or(other.__isset_bit_vector);
8355
      this.id = other.id;
8356
      if (other.isSetParams()) {
8357
        Map<String,String> __this__params = new HashMap<String,String>();
8358
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8359
 
8360
          String other_element_key = other_element.getKey();
8361
          String other_element_value = other_element.getValue();
8362
 
8363
          String __this__params_copy_key = other_element_key;
8364
 
8365
          String __this__params_copy_value = other_element_value;
8366
 
8367
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8368
        }
8369
        this.params = __this__params;
8370
      }
8371
    }
8372
 
8373
    public getSubstitutedMessage_args deepCopy() {
8374
      return new getSubstitutedMessage_args(this);
8375
    }
8376
 
3430 rajveer 8377
    @Override
8378
    public void clear() {
8379
      setIdIsSet(false);
8380
      this.id = 0;
8381
      this.params = null;
352 ashish 8382
    }
8383
 
8384
    public long getId() {
8385
      return this.id;
8386
    }
8387
 
3430 rajveer 8388
    public void setId(long id) {
352 ashish 8389
      this.id = id;
8390
      setIdIsSet(true);
8391
    }
8392
 
8393
    public void unsetId() {
8394
      __isset_bit_vector.clear(__ID_ISSET_ID);
8395
    }
8396
 
3430 rajveer 8397
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8398
    public boolean isSetId() {
8399
      return __isset_bit_vector.get(__ID_ISSET_ID);
8400
    }
8401
 
8402
    public void setIdIsSet(boolean value) {
8403
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8404
    }
8405
 
8406
    public int getParamsSize() {
8407
      return (this.params == null) ? 0 : this.params.size();
8408
    }
8409
 
8410
    public void putToParams(String key, String val) {
8411
      if (this.params == null) {
8412
        this.params = new HashMap<String,String>();
8413
      }
8414
      this.params.put(key, val);
8415
    }
8416
 
8417
    public Map<String,String> getParams() {
8418
      return this.params;
8419
    }
8420
 
3430 rajveer 8421
    public void setParams(Map<String,String> params) {
352 ashish 8422
      this.params = params;
8423
    }
8424
 
8425
    public void unsetParams() {
8426
      this.params = null;
8427
    }
8428
 
3430 rajveer 8429
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8430
    public boolean isSetParams() {
8431
      return this.params != null;
8432
    }
8433
 
8434
    public void setParamsIsSet(boolean value) {
8435
      if (!value) {
8436
        this.params = null;
8437
      }
8438
    }
8439
 
8440
    public void setFieldValue(_Fields field, Object value) {
8441
      switch (field) {
8442
      case ID:
8443
        if (value == null) {
8444
          unsetId();
8445
        } else {
8446
          setId((Long)value);
8447
        }
8448
        break;
8449
 
8450
      case PARAMS:
8451
        if (value == null) {
8452
          unsetParams();
8453
        } else {
8454
          setParams((Map<String,String>)value);
8455
        }
8456
        break;
8457
 
8458
      }
8459
    }
8460
 
8461
    public Object getFieldValue(_Fields field) {
8462
      switch (field) {
8463
      case ID:
3430 rajveer 8464
        return Long.valueOf(getId());
352 ashish 8465
 
8466
      case PARAMS:
8467
        return getParams();
8468
 
8469
      }
8470
      throw new IllegalStateException();
8471
    }
8472
 
3430 rajveer 8473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8474
    public boolean isSet(_Fields field) {
8475
      if (field == null) {
8476
        throw new IllegalArgumentException();
8477
      }
352 ashish 8478
 
8479
      switch (field) {
8480
      case ID:
8481
        return isSetId();
8482
      case PARAMS:
8483
        return isSetParams();
8484
      }
8485
      throw new IllegalStateException();
8486
    }
8487
 
8488
    @Override
8489
    public boolean equals(Object that) {
8490
      if (that == null)
8491
        return false;
8492
      if (that instanceof getSubstitutedMessage_args)
8493
        return this.equals((getSubstitutedMessage_args)that);
8494
      return false;
8495
    }
8496
 
8497
    public boolean equals(getSubstitutedMessage_args that) {
8498
      if (that == null)
8499
        return false;
8500
 
8501
      boolean this_present_id = true;
8502
      boolean that_present_id = true;
8503
      if (this_present_id || that_present_id) {
8504
        if (!(this_present_id && that_present_id))
8505
          return false;
8506
        if (this.id != that.id)
8507
          return false;
8508
      }
8509
 
8510
      boolean this_present_params = true && this.isSetParams();
8511
      boolean that_present_params = true && that.isSetParams();
8512
      if (this_present_params || that_present_params) {
8513
        if (!(this_present_params && that_present_params))
8514
          return false;
8515
        if (!this.params.equals(that.params))
8516
          return false;
8517
      }
8518
 
8519
      return true;
8520
    }
8521
 
8522
    @Override
8523
    public int hashCode() {
8524
      return 0;
8525
    }
8526
 
3430 rajveer 8527
    public int compareTo(getSubstitutedMessage_args other) {
8528
      if (!getClass().equals(other.getClass())) {
8529
        return getClass().getName().compareTo(other.getClass().getName());
8530
      }
8531
 
8532
      int lastComparison = 0;
8533
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8534
 
8535
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8536
      if (lastComparison != 0) {
8537
        return lastComparison;
8538
      }
8539
      if (isSetId()) {
8540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8541
        if (lastComparison != 0) {
8542
          return lastComparison;
8543
        }
8544
      }
8545
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8546
      if (lastComparison != 0) {
8547
        return lastComparison;
8548
      }
8549
      if (isSetParams()) {
8550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8551
        if (lastComparison != 0) {
8552
          return lastComparison;
8553
        }
8554
      }
8555
      return 0;
8556
    }
8557
 
8558
    public _Fields fieldForId(int fieldId) {
8559
      return _Fields.findByThriftId(fieldId);
8560
    }
8561
 
8562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8563
      org.apache.thrift.protocol.TField field;
352 ashish 8564
      iprot.readStructBegin();
8565
      while (true)
8566
      {
8567
        field = iprot.readFieldBegin();
3430 rajveer 8568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8569
          break;
8570
        }
3430 rajveer 8571
        switch (field.id) {
8572
          case 1: // ID
8573
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8574
              this.id = iprot.readI64();
8575
              setIdIsSet(true);
8576
            } else { 
8577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8578
            }
8579
            break;
8580
          case 2: // PARAMS
8581
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8582
              {
5864 rajveer 8583
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8584
                this.params = new HashMap<String,String>(2*_map36.size);
8585
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8586
                {
5864 rajveer 8587
                  String _key38; // required
8588
                  String _val39; // required
8589
                  _key38 = iprot.readString();
8590
                  _val39 = iprot.readString();
8591
                  this.params.put(_key38, _val39);
352 ashish 8592
                }
3430 rajveer 8593
                iprot.readMapEnd();
352 ashish 8594
              }
3430 rajveer 8595
            } else { 
8596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8597
            }
8598
            break;
8599
          default:
8600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8601
        }
3430 rajveer 8602
        iprot.readFieldEnd();
352 ashish 8603
      }
8604
      iprot.readStructEnd();
8605
      validate();
8606
    }
8607
 
3430 rajveer 8608
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8609
      validate();
8610
 
8611
      oprot.writeStructBegin(STRUCT_DESC);
8612
      oprot.writeFieldBegin(ID_FIELD_DESC);
8613
      oprot.writeI64(this.id);
8614
      oprot.writeFieldEnd();
8615
      if (this.params != null) {
8616
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8617
        {
3430 rajveer 8618
          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 8619
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8620
          {
5864 rajveer 8621
            oprot.writeString(_iter40.getKey());
8622
            oprot.writeString(_iter40.getValue());
352 ashish 8623
          }
8624
          oprot.writeMapEnd();
8625
        }
8626
        oprot.writeFieldEnd();
8627
      }
8628
      oprot.writeFieldStop();
8629
      oprot.writeStructEnd();
8630
    }
8631
 
8632
    @Override
8633
    public String toString() {
8634
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8635
      boolean first = true;
8636
 
8637
      sb.append("id:");
8638
      sb.append(this.id);
8639
      first = false;
8640
      if (!first) sb.append(", ");
8641
      sb.append("params:");
8642
      if (this.params == null) {
8643
        sb.append("null");
8644
      } else {
8645
        sb.append(this.params);
8646
      }
8647
      first = false;
8648
      sb.append(")");
8649
      return sb.toString();
8650
    }
8651
 
3430 rajveer 8652
    public void validate() throws org.apache.thrift.TException {
352 ashish 8653
      // check for required fields
8654
    }
8655
 
3430 rajveer 8656
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8657
      try {
8658
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8659
      } catch (org.apache.thrift.TException te) {
8660
        throw new java.io.IOException(te);
8661
      }
8662
    }
8663
 
8664
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8665
      try {
8666
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8667
        __isset_bit_vector = new BitSet(1);
8668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8669
      } catch (org.apache.thrift.TException te) {
8670
        throw new java.io.IOException(te);
8671
      }
8672
    }
8673
 
352 ashish 8674
  }
8675
 
3430 rajveer 8676
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8677
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8678
 
3430 rajveer 8679
    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);
8680
    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 8681
 
3430 rajveer 8682
    private Message success; // required
8683
    private HelperServiceException se; // required
352 ashish 8684
 
8685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8687
      SUCCESS((short)0, "success"),
8688
      SE((short)1, "se");
8689
 
8690
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8691
 
8692
      static {
8693
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8694
          byName.put(field.getFieldName(), field);
8695
        }
8696
      }
8697
 
8698
      /**
8699
       * Find the _Fields constant that matches fieldId, or null if its not found.
8700
       */
8701
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8702
        switch(fieldId) {
8703
          case 0: // SUCCESS
8704
            return SUCCESS;
8705
          case 1: // SE
8706
            return SE;
8707
          default:
8708
            return null;
8709
        }
352 ashish 8710
      }
8711
 
8712
      /**
8713
       * Find the _Fields constant that matches fieldId, throwing an exception
8714
       * if it is not found.
8715
       */
8716
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8717
        _Fields fields = findByThriftId(fieldId);
8718
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8719
        return fields;
8720
      }
8721
 
8722
      /**
8723
       * Find the _Fields constant that matches name, or null if its not found.
8724
       */
8725
      public static _Fields findByName(String name) {
8726
        return byName.get(name);
8727
      }
8728
 
8729
      private final short _thriftId;
8730
      private final String _fieldName;
8731
 
8732
      _Fields(short thriftId, String fieldName) {
8733
        _thriftId = thriftId;
8734
        _fieldName = fieldName;
8735
      }
8736
 
8737
      public short getThriftFieldId() {
8738
        return _thriftId;
8739
      }
8740
 
8741
      public String getFieldName() {
8742
        return _fieldName;
8743
      }
8744
    }
8745
 
8746
    // isset id assignments
8747
 
3430 rajveer 8748
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8749
    static {
3430 rajveer 8750
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8751
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8752
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8753
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8754
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8755
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8756
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8757
    }
8758
 
8759
    public getSubstitutedMessage_result() {
8760
    }
8761
 
8762
    public getSubstitutedMessage_result(
8763
      Message success,
8764
      HelperServiceException se)
8765
    {
8766
      this();
8767
      this.success = success;
8768
      this.se = se;
8769
    }
8770
 
8771
    /**
8772
     * Performs a deep copy on <i>other</i>.
8773
     */
8774
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8775
      if (other.isSetSuccess()) {
8776
        this.success = new Message(other.success);
8777
      }
8778
      if (other.isSetSe()) {
8779
        this.se = new HelperServiceException(other.se);
8780
      }
8781
    }
8782
 
8783
    public getSubstitutedMessage_result deepCopy() {
8784
      return new getSubstitutedMessage_result(this);
8785
    }
8786
 
3430 rajveer 8787
    @Override
8788
    public void clear() {
8789
      this.success = null;
8790
      this.se = null;
352 ashish 8791
    }
8792
 
8793
    public Message getSuccess() {
8794
      return this.success;
8795
    }
8796
 
3430 rajveer 8797
    public void setSuccess(Message success) {
352 ashish 8798
      this.success = success;
8799
    }
8800
 
8801
    public void unsetSuccess() {
8802
      this.success = null;
8803
    }
8804
 
3430 rajveer 8805
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8806
    public boolean isSetSuccess() {
8807
      return this.success != null;
8808
    }
8809
 
8810
    public void setSuccessIsSet(boolean value) {
8811
      if (!value) {
8812
        this.success = null;
8813
      }
8814
    }
8815
 
8816
    public HelperServiceException getSe() {
8817
      return this.se;
8818
    }
8819
 
3430 rajveer 8820
    public void setSe(HelperServiceException se) {
352 ashish 8821
      this.se = se;
8822
    }
8823
 
8824
    public void unsetSe() {
8825
      this.se = null;
8826
    }
8827
 
3430 rajveer 8828
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8829
    public boolean isSetSe() {
8830
      return this.se != null;
8831
    }
8832
 
8833
    public void setSeIsSet(boolean value) {
8834
      if (!value) {
8835
        this.se = null;
8836
      }
8837
    }
8838
 
8839
    public void setFieldValue(_Fields field, Object value) {
8840
      switch (field) {
8841
      case SUCCESS:
8842
        if (value == null) {
8843
          unsetSuccess();
8844
        } else {
8845
          setSuccess((Message)value);
8846
        }
8847
        break;
8848
 
8849
      case SE:
8850
        if (value == null) {
8851
          unsetSe();
8852
        } else {
8853
          setSe((HelperServiceException)value);
8854
        }
8855
        break;
8856
 
8857
      }
8858
    }
8859
 
8860
    public Object getFieldValue(_Fields field) {
8861
      switch (field) {
8862
      case SUCCESS:
8863
        return getSuccess();
8864
 
8865
      case SE:
8866
        return getSe();
8867
 
8868
      }
8869
      throw new IllegalStateException();
8870
    }
8871
 
3430 rajveer 8872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8873
    public boolean isSet(_Fields field) {
8874
      if (field == null) {
8875
        throw new IllegalArgumentException();
8876
      }
352 ashish 8877
 
8878
      switch (field) {
8879
      case SUCCESS:
8880
        return isSetSuccess();
8881
      case SE:
8882
        return isSetSe();
8883
      }
8884
      throw new IllegalStateException();
8885
    }
8886
 
8887
    @Override
8888
    public boolean equals(Object that) {
8889
      if (that == null)
8890
        return false;
8891
      if (that instanceof getSubstitutedMessage_result)
8892
        return this.equals((getSubstitutedMessage_result)that);
8893
      return false;
8894
    }
8895
 
8896
    public boolean equals(getSubstitutedMessage_result that) {
8897
      if (that == null)
8898
        return false;
8899
 
8900
      boolean this_present_success = true && this.isSetSuccess();
8901
      boolean that_present_success = true && that.isSetSuccess();
8902
      if (this_present_success || that_present_success) {
8903
        if (!(this_present_success && that_present_success))
8904
          return false;
8905
        if (!this.success.equals(that.success))
8906
          return false;
8907
      }
8908
 
8909
      boolean this_present_se = true && this.isSetSe();
8910
      boolean that_present_se = true && that.isSetSe();
8911
      if (this_present_se || that_present_se) {
8912
        if (!(this_present_se && that_present_se))
8913
          return false;
8914
        if (!this.se.equals(that.se))
8915
          return false;
8916
      }
8917
 
8918
      return true;
8919
    }
8920
 
8921
    @Override
8922
    public int hashCode() {
8923
      return 0;
8924
    }
8925
 
8926
    public int compareTo(getSubstitutedMessage_result other) {
8927
      if (!getClass().equals(other.getClass())) {
8928
        return getClass().getName().compareTo(other.getClass().getName());
8929
      }
8930
 
8931
      int lastComparison = 0;
8932
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
8933
 
3430 rajveer 8934
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8935
      if (lastComparison != 0) {
8936
        return lastComparison;
8937
      }
3430 rajveer 8938
      if (isSetSuccess()) {
8939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8940
        if (lastComparison != 0) {
8941
          return lastComparison;
8942
        }
352 ashish 8943
      }
3430 rajveer 8944
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8945
      if (lastComparison != 0) {
8946
        return lastComparison;
8947
      }
3430 rajveer 8948
      if (isSetSe()) {
8949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8950
        if (lastComparison != 0) {
8951
          return lastComparison;
8952
        }
352 ashish 8953
      }
8954
      return 0;
8955
    }
8956
 
3430 rajveer 8957
    public _Fields fieldForId(int fieldId) {
8958
      return _Fields.findByThriftId(fieldId);
8959
    }
8960
 
8961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8962
      org.apache.thrift.protocol.TField field;
352 ashish 8963
      iprot.readStructBegin();
8964
      while (true)
8965
      {
8966
        field = iprot.readFieldBegin();
3430 rajveer 8967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8968
          break;
8969
        }
3430 rajveer 8970
        switch (field.id) {
8971
          case 0: // SUCCESS
8972
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8973
              this.success = new Message();
8974
              this.success.read(iprot);
8975
            } else { 
8976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8977
            }
8978
            break;
8979
          case 1: // SE
8980
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8981
              this.se = new HelperServiceException();
8982
              this.se.read(iprot);
8983
            } else { 
8984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8985
            }
8986
            break;
8987
          default:
8988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8989
        }
3430 rajveer 8990
        iprot.readFieldEnd();
352 ashish 8991
      }
8992
      iprot.readStructEnd();
8993
      validate();
8994
    }
8995
 
3430 rajveer 8996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8997
      oprot.writeStructBegin(STRUCT_DESC);
8998
 
8999
      if (this.isSetSuccess()) {
9000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9001
        this.success.write(oprot);
9002
        oprot.writeFieldEnd();
9003
      } else if (this.isSetSe()) {
9004
        oprot.writeFieldBegin(SE_FIELD_DESC);
9005
        this.se.write(oprot);
9006
        oprot.writeFieldEnd();
9007
      }
9008
      oprot.writeFieldStop();
9009
      oprot.writeStructEnd();
9010
    }
9011
 
9012
    @Override
9013
    public String toString() {
9014
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9015
      boolean first = true;
9016
 
9017
      sb.append("success:");
9018
      if (this.success == null) {
9019
        sb.append("null");
9020
      } else {
9021
        sb.append(this.success);
9022
      }
9023
      first = false;
9024
      if (!first) sb.append(", ");
9025
      sb.append("se:");
9026
      if (this.se == null) {
9027
        sb.append("null");
9028
      } else {
9029
        sb.append(this.se);
9030
      }
9031
      first = false;
9032
      sb.append(")");
9033
      return sb.toString();
9034
    }
9035
 
3430 rajveer 9036
    public void validate() throws org.apache.thrift.TException {
352 ashish 9037
      // check for required fields
9038
    }
9039
 
3430 rajveer 9040
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9041
      try {
9042
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9043
      } catch (org.apache.thrift.TException te) {
9044
        throw new java.io.IOException(te);
9045
      }
9046
    }
9047
 
9048
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9049
      try {
9050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9051
      } catch (org.apache.thrift.TException te) {
9052
        throw new java.io.IOException(te);
9053
      }
9054
    }
9055
 
352 ashish 9056
  }
9057
 
3430 rajveer 9058
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9060
 
3430 rajveer 9061
    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);
9062
    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);
9063
    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 9064
 
3430 rajveer 9065
    private String username; // required
9066
    private String password; // required
9067
    private long warehouseId; // required
495 rajveer 9068
 
9069
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9070
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9071
      USERNAME((short)1, "username"),
9072
      PASSWORD((short)2, "password"),
9073
      WAREHOUSE_ID((short)3, "warehouseId");
9074
 
9075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9076
 
9077
      static {
9078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9079
          byName.put(field.getFieldName(), field);
9080
        }
9081
      }
9082
 
9083
      /**
9084
       * Find the _Fields constant that matches fieldId, or null if its not found.
9085
       */
9086
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9087
        switch(fieldId) {
9088
          case 1: // USERNAME
9089
            return USERNAME;
9090
          case 2: // PASSWORD
9091
            return PASSWORD;
9092
          case 3: // WAREHOUSE_ID
9093
            return WAREHOUSE_ID;
9094
          default:
9095
            return null;
9096
        }
495 rajveer 9097
      }
9098
 
9099
      /**
9100
       * Find the _Fields constant that matches fieldId, throwing an exception
9101
       * if it is not found.
9102
       */
9103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9104
        _Fields fields = findByThriftId(fieldId);
9105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9106
        return fields;
9107
      }
9108
 
9109
      /**
9110
       * Find the _Fields constant that matches name, or null if its not found.
9111
       */
9112
      public static _Fields findByName(String name) {
9113
        return byName.get(name);
9114
      }
9115
 
9116
      private final short _thriftId;
9117
      private final String _fieldName;
9118
 
9119
      _Fields(short thriftId, String fieldName) {
9120
        _thriftId = thriftId;
9121
        _fieldName = fieldName;
9122
      }
9123
 
9124
      public short getThriftFieldId() {
9125
        return _thriftId;
9126
      }
9127
 
9128
      public String getFieldName() {
9129
        return _fieldName;
9130
      }
9131
    }
9132
 
9133
    // isset id assignments
9134
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9135
    private BitSet __isset_bit_vector = new BitSet(1);
9136
 
3430 rajveer 9137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9138
    static {
3430 rajveer 9139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9140
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9142
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9144
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9146
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9147
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9148
    }
9149
 
9150
    public addUser_args() {
9151
    }
9152
 
9153
    public addUser_args(
9154
      String username,
9155
      String password,
9156
      long warehouseId)
9157
    {
9158
      this();
9159
      this.username = username;
9160
      this.password = password;
9161
      this.warehouseId = warehouseId;
9162
      setWarehouseIdIsSet(true);
9163
    }
9164
 
9165
    /**
9166
     * Performs a deep copy on <i>other</i>.
9167
     */
9168
    public addUser_args(addUser_args other) {
9169
      __isset_bit_vector.clear();
9170
      __isset_bit_vector.or(other.__isset_bit_vector);
9171
      if (other.isSetUsername()) {
9172
        this.username = other.username;
9173
      }
9174
      if (other.isSetPassword()) {
9175
        this.password = other.password;
9176
      }
9177
      this.warehouseId = other.warehouseId;
9178
    }
9179
 
9180
    public addUser_args deepCopy() {
9181
      return new addUser_args(this);
9182
    }
9183
 
3430 rajveer 9184
    @Override
9185
    public void clear() {
9186
      this.username = null;
9187
      this.password = null;
9188
      setWarehouseIdIsSet(false);
9189
      this.warehouseId = 0;
495 rajveer 9190
    }
9191
 
9192
    public String getUsername() {
9193
      return this.username;
9194
    }
9195
 
3430 rajveer 9196
    public void setUsername(String username) {
495 rajveer 9197
      this.username = username;
9198
    }
9199
 
9200
    public void unsetUsername() {
9201
      this.username = null;
9202
    }
9203
 
3430 rajveer 9204
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9205
    public boolean isSetUsername() {
9206
      return this.username != null;
9207
    }
9208
 
9209
    public void setUsernameIsSet(boolean value) {
9210
      if (!value) {
9211
        this.username = null;
9212
      }
9213
    }
9214
 
9215
    public String getPassword() {
9216
      return this.password;
9217
    }
9218
 
3430 rajveer 9219
    public void setPassword(String password) {
495 rajveer 9220
      this.password = password;
9221
    }
9222
 
9223
    public void unsetPassword() {
9224
      this.password = null;
9225
    }
9226
 
3430 rajveer 9227
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9228
    public boolean isSetPassword() {
9229
      return this.password != null;
9230
    }
9231
 
9232
    public void setPasswordIsSet(boolean value) {
9233
      if (!value) {
9234
        this.password = null;
9235
      }
9236
    }
9237
 
9238
    public long getWarehouseId() {
9239
      return this.warehouseId;
9240
    }
9241
 
3430 rajveer 9242
    public void setWarehouseId(long warehouseId) {
495 rajveer 9243
      this.warehouseId = warehouseId;
9244
      setWarehouseIdIsSet(true);
9245
    }
9246
 
9247
    public void unsetWarehouseId() {
9248
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9249
    }
9250
 
3430 rajveer 9251
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9252
    public boolean isSetWarehouseId() {
9253
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9254
    }
9255
 
9256
    public void setWarehouseIdIsSet(boolean value) {
9257
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9258
    }
9259
 
9260
    public void setFieldValue(_Fields field, Object value) {
9261
      switch (field) {
9262
      case USERNAME:
9263
        if (value == null) {
9264
          unsetUsername();
9265
        } else {
9266
          setUsername((String)value);
9267
        }
9268
        break;
9269
 
9270
      case PASSWORD:
9271
        if (value == null) {
9272
          unsetPassword();
9273
        } else {
9274
          setPassword((String)value);
9275
        }
9276
        break;
9277
 
9278
      case WAREHOUSE_ID:
9279
        if (value == null) {
9280
          unsetWarehouseId();
9281
        } else {
9282
          setWarehouseId((Long)value);
9283
        }
9284
        break;
9285
 
9286
      }
9287
    }
9288
 
9289
    public Object getFieldValue(_Fields field) {
9290
      switch (field) {
9291
      case USERNAME:
9292
        return getUsername();
9293
 
9294
      case PASSWORD:
9295
        return getPassword();
9296
 
9297
      case WAREHOUSE_ID:
3430 rajveer 9298
        return Long.valueOf(getWarehouseId());
495 rajveer 9299
 
9300
      }
9301
      throw new IllegalStateException();
9302
    }
9303
 
3430 rajveer 9304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9305
    public boolean isSet(_Fields field) {
9306
      if (field == null) {
9307
        throw new IllegalArgumentException();
9308
      }
495 rajveer 9309
 
9310
      switch (field) {
9311
      case USERNAME:
9312
        return isSetUsername();
9313
      case PASSWORD:
9314
        return isSetPassword();
9315
      case WAREHOUSE_ID:
9316
        return isSetWarehouseId();
9317
      }
9318
      throw new IllegalStateException();
9319
    }
9320
 
9321
    @Override
9322
    public boolean equals(Object that) {
9323
      if (that == null)
9324
        return false;
9325
      if (that instanceof addUser_args)
9326
        return this.equals((addUser_args)that);
9327
      return false;
9328
    }
9329
 
9330
    public boolean equals(addUser_args that) {
9331
      if (that == null)
9332
        return false;
9333
 
9334
      boolean this_present_username = true && this.isSetUsername();
9335
      boolean that_present_username = true && that.isSetUsername();
9336
      if (this_present_username || that_present_username) {
9337
        if (!(this_present_username && that_present_username))
9338
          return false;
9339
        if (!this.username.equals(that.username))
9340
          return false;
9341
      }
9342
 
9343
      boolean this_present_password = true && this.isSetPassword();
9344
      boolean that_present_password = true && that.isSetPassword();
9345
      if (this_present_password || that_present_password) {
9346
        if (!(this_present_password && that_present_password))
9347
          return false;
9348
        if (!this.password.equals(that.password))
9349
          return false;
9350
      }
9351
 
9352
      boolean this_present_warehouseId = true;
9353
      boolean that_present_warehouseId = true;
9354
      if (this_present_warehouseId || that_present_warehouseId) {
9355
        if (!(this_present_warehouseId && that_present_warehouseId))
9356
          return false;
9357
        if (this.warehouseId != that.warehouseId)
9358
          return false;
9359
      }
9360
 
9361
      return true;
9362
    }
9363
 
9364
    @Override
9365
    public int hashCode() {
9366
      return 0;
9367
    }
9368
 
9369
    public int compareTo(addUser_args other) {
9370
      if (!getClass().equals(other.getClass())) {
9371
        return getClass().getName().compareTo(other.getClass().getName());
9372
      }
9373
 
9374
      int lastComparison = 0;
9375
      addUser_args typedOther = (addUser_args)other;
9376
 
3430 rajveer 9377
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9378
      if (lastComparison != 0) {
9379
        return lastComparison;
9380
      }
3430 rajveer 9381
      if (isSetUsername()) {
9382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9383
        if (lastComparison != 0) {
9384
          return lastComparison;
9385
        }
495 rajveer 9386
      }
3430 rajveer 9387
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9388
      if (lastComparison != 0) {
9389
        return lastComparison;
9390
      }
3430 rajveer 9391
      if (isSetPassword()) {
9392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9393
        if (lastComparison != 0) {
9394
          return lastComparison;
9395
        }
495 rajveer 9396
      }
3430 rajveer 9397
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9398
      if (lastComparison != 0) {
9399
        return lastComparison;
9400
      }
3430 rajveer 9401
      if (isSetWarehouseId()) {
9402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9403
        if (lastComparison != 0) {
9404
          return lastComparison;
9405
        }
495 rajveer 9406
      }
9407
      return 0;
9408
    }
9409
 
3430 rajveer 9410
    public _Fields fieldForId(int fieldId) {
9411
      return _Fields.findByThriftId(fieldId);
9412
    }
9413
 
9414
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9415
      org.apache.thrift.protocol.TField field;
495 rajveer 9416
      iprot.readStructBegin();
9417
      while (true)
9418
      {
9419
        field = iprot.readFieldBegin();
3430 rajveer 9420
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9421
          break;
9422
        }
3430 rajveer 9423
        switch (field.id) {
9424
          case 1: // USERNAME
9425
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9426
              this.username = iprot.readString();
9427
            } else { 
9428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9429
            }
9430
            break;
9431
          case 2: // PASSWORD
9432
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9433
              this.password = iprot.readString();
9434
            } else { 
9435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9436
            }
9437
            break;
9438
          case 3: // WAREHOUSE_ID
9439
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9440
              this.warehouseId = iprot.readI64();
9441
              setWarehouseIdIsSet(true);
9442
            } else { 
9443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9444
            }
9445
            break;
9446
          default:
9447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9448
        }
3430 rajveer 9449
        iprot.readFieldEnd();
495 rajveer 9450
      }
9451
      iprot.readStructEnd();
9452
      validate();
9453
    }
9454
 
3430 rajveer 9455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9456
      validate();
9457
 
9458
      oprot.writeStructBegin(STRUCT_DESC);
9459
      if (this.username != null) {
9460
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9461
        oprot.writeString(this.username);
9462
        oprot.writeFieldEnd();
9463
      }
9464
      if (this.password != null) {
9465
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9466
        oprot.writeString(this.password);
9467
        oprot.writeFieldEnd();
9468
      }
9469
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9470
      oprot.writeI64(this.warehouseId);
9471
      oprot.writeFieldEnd();
9472
      oprot.writeFieldStop();
9473
      oprot.writeStructEnd();
9474
    }
9475
 
9476
    @Override
9477
    public String toString() {
9478
      StringBuilder sb = new StringBuilder("addUser_args(");
9479
      boolean first = true;
9480
 
9481
      sb.append("username:");
9482
      if (this.username == null) {
9483
        sb.append("null");
9484
      } else {
9485
        sb.append(this.username);
9486
      }
9487
      first = false;
9488
      if (!first) sb.append(", ");
9489
      sb.append("password:");
9490
      if (this.password == null) {
9491
        sb.append("null");
9492
      } else {
9493
        sb.append(this.password);
9494
      }
9495
      first = false;
9496
      if (!first) sb.append(", ");
9497
      sb.append("warehouseId:");
9498
      sb.append(this.warehouseId);
9499
      first = false;
9500
      sb.append(")");
9501
      return sb.toString();
9502
    }
9503
 
3430 rajveer 9504
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9505
      // check for required fields
9506
    }
9507
 
3430 rajveer 9508
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9509
      try {
9510
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9511
      } catch (org.apache.thrift.TException te) {
9512
        throw new java.io.IOException(te);
9513
      }
9514
    }
9515
 
9516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9517
      try {
9518
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9519
        __isset_bit_vector = new BitSet(1);
9520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9521
      } catch (org.apache.thrift.TException te) {
9522
        throw new java.io.IOException(te);
9523
      }
9524
    }
9525
 
495 rajveer 9526
  }
9527
 
3430 rajveer 9528
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9530
 
3430 rajveer 9531
    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);
9532
    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 9533
 
3430 rajveer 9534
    private boolean success; // required
9535
    private HelperServiceException se; // required
495 rajveer 9536
 
9537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9538
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9539
      SUCCESS((short)0, "success"),
9540
      SE((short)1, "se");
9541
 
9542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9543
 
9544
      static {
9545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9546
          byName.put(field.getFieldName(), field);
9547
        }
9548
      }
9549
 
9550
      /**
9551
       * Find the _Fields constant that matches fieldId, or null if its not found.
9552
       */
9553
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9554
        switch(fieldId) {
9555
          case 0: // SUCCESS
9556
            return SUCCESS;
9557
          case 1: // SE
9558
            return SE;
9559
          default:
9560
            return null;
9561
        }
495 rajveer 9562
      }
9563
 
9564
      /**
9565
       * Find the _Fields constant that matches fieldId, throwing an exception
9566
       * if it is not found.
9567
       */
9568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9569
        _Fields fields = findByThriftId(fieldId);
9570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9571
        return fields;
9572
      }
9573
 
9574
      /**
9575
       * Find the _Fields constant that matches name, or null if its not found.
9576
       */
9577
      public static _Fields findByName(String name) {
9578
        return byName.get(name);
9579
      }
9580
 
9581
      private final short _thriftId;
9582
      private final String _fieldName;
9583
 
9584
      _Fields(short thriftId, String fieldName) {
9585
        _thriftId = thriftId;
9586
        _fieldName = fieldName;
9587
      }
9588
 
9589
      public short getThriftFieldId() {
9590
        return _thriftId;
9591
      }
9592
 
9593
      public String getFieldName() {
9594
        return _fieldName;
9595
      }
9596
    }
9597
 
9598
    // isset id assignments
9599
    private static final int __SUCCESS_ISSET_ID = 0;
9600
    private BitSet __isset_bit_vector = new BitSet(1);
9601
 
3430 rajveer 9602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9603
    static {
3430 rajveer 9604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9605
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9607
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9611
    }
9612
 
9613
    public addUser_result() {
9614
    }
9615
 
9616
    public addUser_result(
9617
      boolean success,
9618
      HelperServiceException se)
9619
    {
9620
      this();
9621
      this.success = success;
9622
      setSuccessIsSet(true);
9623
      this.se = se;
9624
    }
9625
 
9626
    /**
9627
     * Performs a deep copy on <i>other</i>.
9628
     */
9629
    public addUser_result(addUser_result other) {
9630
      __isset_bit_vector.clear();
9631
      __isset_bit_vector.or(other.__isset_bit_vector);
9632
      this.success = other.success;
9633
      if (other.isSetSe()) {
9634
        this.se = new HelperServiceException(other.se);
9635
      }
9636
    }
9637
 
9638
    public addUser_result deepCopy() {
9639
      return new addUser_result(this);
9640
    }
9641
 
3430 rajveer 9642
    @Override
9643
    public void clear() {
9644
      setSuccessIsSet(false);
9645
      this.success = false;
9646
      this.se = null;
495 rajveer 9647
    }
9648
 
9649
    public boolean isSuccess() {
9650
      return this.success;
9651
    }
9652
 
3430 rajveer 9653
    public void setSuccess(boolean success) {
495 rajveer 9654
      this.success = success;
9655
      setSuccessIsSet(true);
9656
    }
9657
 
9658
    public void unsetSuccess() {
9659
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9660
    }
9661
 
3430 rajveer 9662
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9663
    public boolean isSetSuccess() {
9664
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9665
    }
9666
 
9667
    public void setSuccessIsSet(boolean value) {
9668
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9669
    }
9670
 
9671
    public HelperServiceException getSe() {
9672
      return this.se;
9673
    }
9674
 
3430 rajveer 9675
    public void setSe(HelperServiceException se) {
495 rajveer 9676
      this.se = se;
9677
    }
9678
 
9679
    public void unsetSe() {
9680
      this.se = null;
9681
    }
9682
 
3430 rajveer 9683
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9684
    public boolean isSetSe() {
9685
      return this.se != null;
9686
    }
9687
 
9688
    public void setSeIsSet(boolean value) {
9689
      if (!value) {
9690
        this.se = null;
9691
      }
9692
    }
9693
 
9694
    public void setFieldValue(_Fields field, Object value) {
9695
      switch (field) {
9696
      case SUCCESS:
9697
        if (value == null) {
9698
          unsetSuccess();
9699
        } else {
9700
          setSuccess((Boolean)value);
9701
        }
9702
        break;
9703
 
9704
      case SE:
9705
        if (value == null) {
9706
          unsetSe();
9707
        } else {
9708
          setSe((HelperServiceException)value);
9709
        }
9710
        break;
9711
 
9712
      }
9713
    }
9714
 
9715
    public Object getFieldValue(_Fields field) {
9716
      switch (field) {
9717
      case SUCCESS:
3430 rajveer 9718
        return Boolean.valueOf(isSuccess());
495 rajveer 9719
 
9720
      case SE:
9721
        return getSe();
9722
 
9723
      }
9724
      throw new IllegalStateException();
9725
    }
9726
 
3430 rajveer 9727
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9728
    public boolean isSet(_Fields field) {
9729
      if (field == null) {
9730
        throw new IllegalArgumentException();
9731
      }
495 rajveer 9732
 
9733
      switch (field) {
9734
      case SUCCESS:
9735
        return isSetSuccess();
9736
      case SE:
9737
        return isSetSe();
9738
      }
9739
      throw new IllegalStateException();
9740
    }
9741
 
9742
    @Override
9743
    public boolean equals(Object that) {
9744
      if (that == null)
9745
        return false;
9746
      if (that instanceof addUser_result)
9747
        return this.equals((addUser_result)that);
9748
      return false;
9749
    }
9750
 
9751
    public boolean equals(addUser_result that) {
9752
      if (that == null)
9753
        return false;
9754
 
9755
      boolean this_present_success = true;
9756
      boolean that_present_success = true;
9757
      if (this_present_success || that_present_success) {
9758
        if (!(this_present_success && that_present_success))
9759
          return false;
9760
        if (this.success != that.success)
9761
          return false;
9762
      }
9763
 
9764
      boolean this_present_se = true && this.isSetSe();
9765
      boolean that_present_se = true && that.isSetSe();
9766
      if (this_present_se || that_present_se) {
9767
        if (!(this_present_se && that_present_se))
9768
          return false;
9769
        if (!this.se.equals(that.se))
9770
          return false;
9771
      }
9772
 
9773
      return true;
9774
    }
9775
 
9776
    @Override
9777
    public int hashCode() {
9778
      return 0;
9779
    }
9780
 
9781
    public int compareTo(addUser_result other) {
9782
      if (!getClass().equals(other.getClass())) {
9783
        return getClass().getName().compareTo(other.getClass().getName());
9784
      }
9785
 
9786
      int lastComparison = 0;
9787
      addUser_result typedOther = (addUser_result)other;
9788
 
3430 rajveer 9789
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9790
      if (lastComparison != 0) {
9791
        return lastComparison;
9792
      }
3430 rajveer 9793
      if (isSetSuccess()) {
9794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9795
        if (lastComparison != 0) {
9796
          return lastComparison;
9797
        }
495 rajveer 9798
      }
3430 rajveer 9799
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9800
      if (lastComparison != 0) {
9801
        return lastComparison;
9802
      }
3430 rajveer 9803
      if (isSetSe()) {
9804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9805
        if (lastComparison != 0) {
9806
          return lastComparison;
9807
        }
495 rajveer 9808
      }
9809
      return 0;
9810
    }
9811
 
3430 rajveer 9812
    public _Fields fieldForId(int fieldId) {
9813
      return _Fields.findByThriftId(fieldId);
9814
    }
9815
 
9816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9817
      org.apache.thrift.protocol.TField field;
495 rajveer 9818
      iprot.readStructBegin();
9819
      while (true)
9820
      {
9821
        field = iprot.readFieldBegin();
3430 rajveer 9822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9823
          break;
9824
        }
3430 rajveer 9825
        switch (field.id) {
9826
          case 0: // SUCCESS
9827
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9828
              this.success = iprot.readBool();
9829
              setSuccessIsSet(true);
9830
            } else { 
9831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9832
            }
9833
            break;
9834
          case 1: // SE
9835
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9836
              this.se = new HelperServiceException();
9837
              this.se.read(iprot);
9838
            } else { 
9839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9840
            }
9841
            break;
9842
          default:
9843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9844
        }
3430 rajveer 9845
        iprot.readFieldEnd();
495 rajveer 9846
      }
9847
      iprot.readStructEnd();
9848
      validate();
9849
    }
9850
 
3430 rajveer 9851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9852
      oprot.writeStructBegin(STRUCT_DESC);
9853
 
9854
      if (this.isSetSuccess()) {
9855
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9856
        oprot.writeBool(this.success);
9857
        oprot.writeFieldEnd();
9858
      } else if (this.isSetSe()) {
9859
        oprot.writeFieldBegin(SE_FIELD_DESC);
9860
        this.se.write(oprot);
9861
        oprot.writeFieldEnd();
9862
      }
9863
      oprot.writeFieldStop();
9864
      oprot.writeStructEnd();
9865
    }
9866
 
9867
    @Override
9868
    public String toString() {
9869
      StringBuilder sb = new StringBuilder("addUser_result(");
9870
      boolean first = true;
9871
 
9872
      sb.append("success:");
9873
      sb.append(this.success);
9874
      first = false;
9875
      if (!first) sb.append(", ");
9876
      sb.append("se:");
9877
      if (this.se == null) {
9878
        sb.append("null");
9879
      } else {
9880
        sb.append(this.se);
9881
      }
9882
      first = false;
9883
      sb.append(")");
9884
      return sb.toString();
9885
    }
9886
 
3430 rajveer 9887
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9888
      // check for required fields
9889
    }
9890
 
3430 rajveer 9891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9892
      try {
9893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9894
      } catch (org.apache.thrift.TException te) {
9895
        throw new java.io.IOException(te);
9896
      }
9897
    }
9898
 
9899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9900
      try {
9901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9902
      } catch (org.apache.thrift.TException te) {
9903
        throw new java.io.IOException(te);
9904
      }
9905
    }
9906
 
495 rajveer 9907
  }
9908
 
3430 rajveer 9909
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9911
 
3430 rajveer 9912
    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 9913
 
3430 rajveer 9914
    private String username; // required
495 rajveer 9915
 
9916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9918
      USERNAME((short)1, "username");
9919
 
9920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9921
 
9922
      static {
9923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9924
          byName.put(field.getFieldName(), field);
9925
        }
9926
      }
9927
 
9928
      /**
9929
       * Find the _Fields constant that matches fieldId, or null if its not found.
9930
       */
9931
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9932
        switch(fieldId) {
9933
          case 1: // USERNAME
9934
            return USERNAME;
9935
          default:
9936
            return null;
9937
        }
495 rajveer 9938
      }
9939
 
9940
      /**
9941
       * Find the _Fields constant that matches fieldId, throwing an exception
9942
       * if it is not found.
9943
       */
9944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9945
        _Fields fields = findByThriftId(fieldId);
9946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9947
        return fields;
9948
      }
9949
 
9950
      /**
9951
       * Find the _Fields constant that matches name, or null if its not found.
9952
       */
9953
      public static _Fields findByName(String name) {
9954
        return byName.get(name);
9955
      }
9956
 
9957
      private final short _thriftId;
9958
      private final String _fieldName;
9959
 
9960
      _Fields(short thriftId, String fieldName) {
9961
        _thriftId = thriftId;
9962
        _fieldName = fieldName;
9963
      }
9964
 
9965
      public short getThriftFieldId() {
9966
        return _thriftId;
9967
      }
9968
 
9969
      public String getFieldName() {
9970
        return _fieldName;
9971
      }
9972
    }
9973
 
9974
    // isset id assignments
9975
 
3430 rajveer 9976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9977
    static {
3430 rajveer 9978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9979
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 9983
    }
9984
 
9985
    public deleteUser_args() {
9986
    }
9987
 
9988
    public deleteUser_args(
9989
      String username)
9990
    {
9991
      this();
9992
      this.username = username;
9993
    }
9994
 
9995
    /**
9996
     * Performs a deep copy on <i>other</i>.
9997
     */
9998
    public deleteUser_args(deleteUser_args other) {
9999
      if (other.isSetUsername()) {
10000
        this.username = other.username;
10001
      }
10002
    }
10003
 
10004
    public deleteUser_args deepCopy() {
10005
      return new deleteUser_args(this);
10006
    }
10007
 
3430 rajveer 10008
    @Override
10009
    public void clear() {
10010
      this.username = null;
495 rajveer 10011
    }
10012
 
10013
    public String getUsername() {
10014
      return this.username;
10015
    }
10016
 
3430 rajveer 10017
    public void setUsername(String username) {
495 rajveer 10018
      this.username = username;
10019
    }
10020
 
10021
    public void unsetUsername() {
10022
      this.username = null;
10023
    }
10024
 
3430 rajveer 10025
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10026
    public boolean isSetUsername() {
10027
      return this.username != null;
10028
    }
10029
 
10030
    public void setUsernameIsSet(boolean value) {
10031
      if (!value) {
10032
        this.username = null;
10033
      }
10034
    }
10035
 
10036
    public void setFieldValue(_Fields field, Object value) {
10037
      switch (field) {
10038
      case USERNAME:
10039
        if (value == null) {
10040
          unsetUsername();
10041
        } else {
10042
          setUsername((String)value);
10043
        }
10044
        break;
10045
 
10046
      }
10047
    }
10048
 
10049
    public Object getFieldValue(_Fields field) {
10050
      switch (field) {
10051
      case USERNAME:
10052
        return getUsername();
10053
 
10054
      }
10055
      throw new IllegalStateException();
10056
    }
10057
 
3430 rajveer 10058
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10059
    public boolean isSet(_Fields field) {
10060
      if (field == null) {
10061
        throw new IllegalArgumentException();
10062
      }
495 rajveer 10063
 
10064
      switch (field) {
10065
      case USERNAME:
10066
        return isSetUsername();
10067
      }
10068
      throw new IllegalStateException();
10069
    }
10070
 
10071
    @Override
10072
    public boolean equals(Object that) {
10073
      if (that == null)
10074
        return false;
10075
      if (that instanceof deleteUser_args)
10076
        return this.equals((deleteUser_args)that);
10077
      return false;
10078
    }
10079
 
10080
    public boolean equals(deleteUser_args that) {
10081
      if (that == null)
10082
        return false;
10083
 
10084
      boolean this_present_username = true && this.isSetUsername();
10085
      boolean that_present_username = true && that.isSetUsername();
10086
      if (this_present_username || that_present_username) {
10087
        if (!(this_present_username && that_present_username))
10088
          return false;
10089
        if (!this.username.equals(that.username))
10090
          return false;
10091
      }
10092
 
10093
      return true;
10094
    }
10095
 
10096
    @Override
10097
    public int hashCode() {
10098
      return 0;
10099
    }
10100
 
10101
    public int compareTo(deleteUser_args other) {
10102
      if (!getClass().equals(other.getClass())) {
10103
        return getClass().getName().compareTo(other.getClass().getName());
10104
      }
10105
 
10106
      int lastComparison = 0;
10107
      deleteUser_args typedOther = (deleteUser_args)other;
10108
 
3430 rajveer 10109
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10110
      if (lastComparison != 0) {
10111
        return lastComparison;
10112
      }
3430 rajveer 10113
      if (isSetUsername()) {
10114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10115
        if (lastComparison != 0) {
10116
          return lastComparison;
10117
        }
495 rajveer 10118
      }
10119
      return 0;
10120
    }
10121
 
3430 rajveer 10122
    public _Fields fieldForId(int fieldId) {
10123
      return _Fields.findByThriftId(fieldId);
10124
    }
10125
 
10126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10127
      org.apache.thrift.protocol.TField field;
495 rajveer 10128
      iprot.readStructBegin();
10129
      while (true)
10130
      {
10131
        field = iprot.readFieldBegin();
3430 rajveer 10132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10133
          break;
10134
        }
3430 rajveer 10135
        switch (field.id) {
10136
          case 1: // USERNAME
10137
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10138
              this.username = iprot.readString();
10139
            } else { 
10140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10141
            }
10142
            break;
10143
          default:
10144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10145
        }
3430 rajveer 10146
        iprot.readFieldEnd();
495 rajveer 10147
      }
10148
      iprot.readStructEnd();
10149
      validate();
10150
    }
10151
 
3430 rajveer 10152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10153
      validate();
10154
 
10155
      oprot.writeStructBegin(STRUCT_DESC);
10156
      if (this.username != null) {
10157
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10158
        oprot.writeString(this.username);
10159
        oprot.writeFieldEnd();
10160
      }
10161
      oprot.writeFieldStop();
10162
      oprot.writeStructEnd();
10163
    }
10164
 
10165
    @Override
10166
    public String toString() {
10167
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10168
      boolean first = true;
10169
 
10170
      sb.append("username:");
10171
      if (this.username == null) {
10172
        sb.append("null");
10173
      } else {
10174
        sb.append(this.username);
10175
      }
10176
      first = false;
10177
      sb.append(")");
10178
      return sb.toString();
10179
    }
10180
 
3430 rajveer 10181
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10182
      // check for required fields
10183
    }
10184
 
3430 rajveer 10185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10186
      try {
10187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10188
      } catch (org.apache.thrift.TException te) {
10189
        throw new java.io.IOException(te);
10190
      }
10191
    }
10192
 
10193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10194
      try {
10195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10196
      } catch (org.apache.thrift.TException te) {
10197
        throw new java.io.IOException(te);
10198
      }
10199
    }
10200
 
495 rajveer 10201
  }
10202
 
3430 rajveer 10203
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10205
 
3430 rajveer 10206
    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);
10207
    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 10208
 
3430 rajveer 10209
    private boolean success; // required
10210
    private HelperServiceException se; // required
495 rajveer 10211
 
10212
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10213
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10214
      SUCCESS((short)0, "success"),
10215
      SE((short)1, "se");
10216
 
10217
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10218
 
10219
      static {
10220
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10221
          byName.put(field.getFieldName(), field);
10222
        }
10223
      }
10224
 
10225
      /**
10226
       * Find the _Fields constant that matches fieldId, or null if its not found.
10227
       */
10228
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10229
        switch(fieldId) {
10230
          case 0: // SUCCESS
10231
            return SUCCESS;
10232
          case 1: // SE
10233
            return SE;
10234
          default:
10235
            return null;
10236
        }
495 rajveer 10237
      }
10238
 
10239
      /**
10240
       * Find the _Fields constant that matches fieldId, throwing an exception
10241
       * if it is not found.
10242
       */
10243
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10244
        _Fields fields = findByThriftId(fieldId);
10245
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10246
        return fields;
10247
      }
10248
 
10249
      /**
10250
       * Find the _Fields constant that matches name, or null if its not found.
10251
       */
10252
      public static _Fields findByName(String name) {
10253
        return byName.get(name);
10254
      }
10255
 
10256
      private final short _thriftId;
10257
      private final String _fieldName;
10258
 
10259
      _Fields(short thriftId, String fieldName) {
10260
        _thriftId = thriftId;
10261
        _fieldName = fieldName;
10262
      }
10263
 
10264
      public short getThriftFieldId() {
10265
        return _thriftId;
10266
      }
10267
 
10268
      public String getFieldName() {
10269
        return _fieldName;
10270
      }
10271
    }
10272
 
10273
    // isset id assignments
10274
    private static final int __SUCCESS_ISSET_ID = 0;
10275
    private BitSet __isset_bit_vector = new BitSet(1);
10276
 
3430 rajveer 10277
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10278
    static {
3430 rajveer 10279
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10280
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10281
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10282
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10283
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10284
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10285
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10286
    }
10287
 
10288
    public deleteUser_result() {
10289
    }
10290
 
10291
    public deleteUser_result(
10292
      boolean success,
10293
      HelperServiceException se)
10294
    {
10295
      this();
10296
      this.success = success;
10297
      setSuccessIsSet(true);
10298
      this.se = se;
10299
    }
10300
 
10301
    /**
10302
     * Performs a deep copy on <i>other</i>.
10303
     */
10304
    public deleteUser_result(deleteUser_result other) {
10305
      __isset_bit_vector.clear();
10306
      __isset_bit_vector.or(other.__isset_bit_vector);
10307
      this.success = other.success;
10308
      if (other.isSetSe()) {
10309
        this.se = new HelperServiceException(other.se);
10310
      }
10311
    }
10312
 
10313
    public deleteUser_result deepCopy() {
10314
      return new deleteUser_result(this);
10315
    }
10316
 
3430 rajveer 10317
    @Override
10318
    public void clear() {
10319
      setSuccessIsSet(false);
10320
      this.success = false;
10321
      this.se = null;
495 rajveer 10322
    }
10323
 
10324
    public boolean isSuccess() {
10325
      return this.success;
10326
    }
10327
 
3430 rajveer 10328
    public void setSuccess(boolean success) {
495 rajveer 10329
      this.success = success;
10330
      setSuccessIsSet(true);
10331
    }
10332
 
10333
    public void unsetSuccess() {
10334
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10335
    }
10336
 
3430 rajveer 10337
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10338
    public boolean isSetSuccess() {
10339
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10340
    }
10341
 
10342
    public void setSuccessIsSet(boolean value) {
10343
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10344
    }
10345
 
10346
    public HelperServiceException getSe() {
10347
      return this.se;
10348
    }
10349
 
3430 rajveer 10350
    public void setSe(HelperServiceException se) {
495 rajveer 10351
      this.se = se;
10352
    }
10353
 
10354
    public void unsetSe() {
10355
      this.se = null;
10356
    }
10357
 
3430 rajveer 10358
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10359
    public boolean isSetSe() {
10360
      return this.se != null;
10361
    }
10362
 
10363
    public void setSeIsSet(boolean value) {
10364
      if (!value) {
10365
        this.se = null;
10366
      }
10367
    }
10368
 
10369
    public void setFieldValue(_Fields field, Object value) {
10370
      switch (field) {
10371
      case SUCCESS:
10372
        if (value == null) {
10373
          unsetSuccess();
10374
        } else {
10375
          setSuccess((Boolean)value);
10376
        }
10377
        break;
10378
 
10379
      case SE:
10380
        if (value == null) {
10381
          unsetSe();
10382
        } else {
10383
          setSe((HelperServiceException)value);
10384
        }
10385
        break;
10386
 
10387
      }
10388
    }
10389
 
10390
    public Object getFieldValue(_Fields field) {
10391
      switch (field) {
10392
      case SUCCESS:
3430 rajveer 10393
        return Boolean.valueOf(isSuccess());
495 rajveer 10394
 
10395
      case SE:
10396
        return getSe();
10397
 
10398
      }
10399
      throw new IllegalStateException();
10400
    }
10401
 
3430 rajveer 10402
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10403
    public boolean isSet(_Fields field) {
10404
      if (field == null) {
10405
        throw new IllegalArgumentException();
10406
      }
495 rajveer 10407
 
10408
      switch (field) {
10409
      case SUCCESS:
10410
        return isSetSuccess();
10411
      case SE:
10412
        return isSetSe();
10413
      }
10414
      throw new IllegalStateException();
10415
    }
10416
 
10417
    @Override
10418
    public boolean equals(Object that) {
10419
      if (that == null)
10420
        return false;
10421
      if (that instanceof deleteUser_result)
10422
        return this.equals((deleteUser_result)that);
10423
      return false;
10424
    }
10425
 
10426
    public boolean equals(deleteUser_result that) {
10427
      if (that == null)
10428
        return false;
10429
 
10430
      boolean this_present_success = true;
10431
      boolean that_present_success = true;
10432
      if (this_present_success || that_present_success) {
10433
        if (!(this_present_success && that_present_success))
10434
          return false;
10435
        if (this.success != that.success)
10436
          return false;
10437
      }
10438
 
10439
      boolean this_present_se = true && this.isSetSe();
10440
      boolean that_present_se = true && that.isSetSe();
10441
      if (this_present_se || that_present_se) {
10442
        if (!(this_present_se && that_present_se))
10443
          return false;
10444
        if (!this.se.equals(that.se))
10445
          return false;
10446
      }
10447
 
10448
      return true;
10449
    }
10450
 
10451
    @Override
10452
    public int hashCode() {
10453
      return 0;
10454
    }
10455
 
10456
    public int compareTo(deleteUser_result other) {
10457
      if (!getClass().equals(other.getClass())) {
10458
        return getClass().getName().compareTo(other.getClass().getName());
10459
      }
10460
 
10461
      int lastComparison = 0;
10462
      deleteUser_result typedOther = (deleteUser_result)other;
10463
 
3430 rajveer 10464
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10465
      if (lastComparison != 0) {
10466
        return lastComparison;
10467
      }
3430 rajveer 10468
      if (isSetSuccess()) {
10469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10470
        if (lastComparison != 0) {
10471
          return lastComparison;
10472
        }
495 rajveer 10473
      }
3430 rajveer 10474
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10475
      if (lastComparison != 0) {
10476
        return lastComparison;
10477
      }
3430 rajveer 10478
      if (isSetSe()) {
10479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10480
        if (lastComparison != 0) {
10481
          return lastComparison;
10482
        }
495 rajveer 10483
      }
10484
      return 0;
10485
    }
10486
 
3430 rajveer 10487
    public _Fields fieldForId(int fieldId) {
10488
      return _Fields.findByThriftId(fieldId);
10489
    }
10490
 
10491
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10492
      org.apache.thrift.protocol.TField field;
495 rajveer 10493
      iprot.readStructBegin();
10494
      while (true)
10495
      {
10496
        field = iprot.readFieldBegin();
3430 rajveer 10497
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10498
          break;
10499
        }
3430 rajveer 10500
        switch (field.id) {
10501
          case 0: // SUCCESS
10502
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10503
              this.success = iprot.readBool();
10504
              setSuccessIsSet(true);
10505
            } else { 
10506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10507
            }
10508
            break;
10509
          case 1: // SE
10510
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10511
              this.se = new HelperServiceException();
10512
              this.se.read(iprot);
10513
            } else { 
10514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10515
            }
10516
            break;
10517
          default:
10518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10519
        }
3430 rajveer 10520
        iprot.readFieldEnd();
495 rajveer 10521
      }
10522
      iprot.readStructEnd();
10523
      validate();
10524
    }
10525
 
3430 rajveer 10526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10527
      oprot.writeStructBegin(STRUCT_DESC);
10528
 
10529
      if (this.isSetSuccess()) {
10530
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10531
        oprot.writeBool(this.success);
10532
        oprot.writeFieldEnd();
10533
      } else if (this.isSetSe()) {
10534
        oprot.writeFieldBegin(SE_FIELD_DESC);
10535
        this.se.write(oprot);
10536
        oprot.writeFieldEnd();
10537
      }
10538
      oprot.writeFieldStop();
10539
      oprot.writeStructEnd();
10540
    }
10541
 
10542
    @Override
10543
    public String toString() {
10544
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10545
      boolean first = true;
10546
 
10547
      sb.append("success:");
10548
      sb.append(this.success);
10549
      first = false;
10550
      if (!first) sb.append(", ");
10551
      sb.append("se:");
10552
      if (this.se == null) {
10553
        sb.append("null");
10554
      } else {
10555
        sb.append(this.se);
10556
      }
10557
      first = false;
10558
      sb.append(")");
10559
      return sb.toString();
10560
    }
10561
 
3430 rajveer 10562
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10563
      // check for required fields
10564
    }
10565
 
3430 rajveer 10566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10567
      try {
10568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10569
      } catch (org.apache.thrift.TException te) {
10570
        throw new java.io.IOException(te);
10571
      }
10572
    }
10573
 
10574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10575
      try {
10576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10577
      } catch (org.apache.thrift.TException te) {
10578
        throw new java.io.IOException(te);
10579
      }
10580
    }
10581
 
495 rajveer 10582
  }
10583
 
3430 rajveer 10584
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10586
 
3430 rajveer 10587
    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);
10588
    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 10589
 
3430 rajveer 10590
    private String username; // required
10591
    private String password; // required
495 rajveer 10592
 
10593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10595
      USERNAME((short)1, "username"),
10596
      PASSWORD((short)2, "password");
10597
 
10598
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10599
 
10600
      static {
10601
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10602
          byName.put(field.getFieldName(), field);
10603
        }
10604
      }
10605
 
10606
      /**
10607
       * Find the _Fields constant that matches fieldId, or null if its not found.
10608
       */
10609
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10610
        switch(fieldId) {
10611
          case 1: // USERNAME
10612
            return USERNAME;
10613
          case 2: // PASSWORD
10614
            return PASSWORD;
10615
          default:
10616
            return null;
10617
        }
495 rajveer 10618
      }
10619
 
10620
      /**
10621
       * Find the _Fields constant that matches fieldId, throwing an exception
10622
       * if it is not found.
10623
       */
10624
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10625
        _Fields fields = findByThriftId(fieldId);
10626
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10627
        return fields;
10628
      }
10629
 
10630
      /**
10631
       * Find the _Fields constant that matches name, or null if its not found.
10632
       */
10633
      public static _Fields findByName(String name) {
10634
        return byName.get(name);
10635
      }
10636
 
10637
      private final short _thriftId;
10638
      private final String _fieldName;
10639
 
10640
      _Fields(short thriftId, String fieldName) {
10641
        _thriftId = thriftId;
10642
        _fieldName = fieldName;
10643
      }
10644
 
10645
      public short getThriftFieldId() {
10646
        return _thriftId;
10647
      }
10648
 
10649
      public String getFieldName() {
10650
        return _fieldName;
10651
      }
10652
    }
10653
 
10654
    // isset id assignments
10655
 
3430 rajveer 10656
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10657
    static {
3430 rajveer 10658
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10659
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10660
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10661
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10662
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10665
    }
10666
 
2443 chandransh 10667
    public authenticateDashboardUser_args() {
495 rajveer 10668
    }
10669
 
2443 chandransh 10670
    public authenticateDashboardUser_args(
495 rajveer 10671
      String username,
10672
      String password)
10673
    {
10674
      this();
10675
      this.username = username;
10676
      this.password = password;
10677
    }
10678
 
10679
    /**
10680
     * Performs a deep copy on <i>other</i>.
10681
     */
2443 chandransh 10682
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10683
      if (other.isSetUsername()) {
10684
        this.username = other.username;
10685
      }
10686
      if (other.isSetPassword()) {
10687
        this.password = other.password;
10688
      }
10689
    }
10690
 
2443 chandransh 10691
    public authenticateDashboardUser_args deepCopy() {
10692
      return new authenticateDashboardUser_args(this);
495 rajveer 10693
    }
10694
 
3430 rajveer 10695
    @Override
10696
    public void clear() {
10697
      this.username = null;
10698
      this.password = null;
495 rajveer 10699
    }
10700
 
10701
    public String getUsername() {
10702
      return this.username;
10703
    }
10704
 
3430 rajveer 10705
    public void setUsername(String username) {
495 rajveer 10706
      this.username = username;
10707
    }
10708
 
10709
    public void unsetUsername() {
10710
      this.username = null;
10711
    }
10712
 
3430 rajveer 10713
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10714
    public boolean isSetUsername() {
10715
      return this.username != null;
10716
    }
10717
 
10718
    public void setUsernameIsSet(boolean value) {
10719
      if (!value) {
10720
        this.username = null;
10721
      }
10722
    }
10723
 
10724
    public String getPassword() {
10725
      return this.password;
10726
    }
10727
 
3430 rajveer 10728
    public void setPassword(String password) {
495 rajveer 10729
      this.password = password;
10730
    }
10731
 
10732
    public void unsetPassword() {
10733
      this.password = null;
10734
    }
10735
 
3430 rajveer 10736
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10737
    public boolean isSetPassword() {
10738
      return this.password != null;
10739
    }
10740
 
10741
    public void setPasswordIsSet(boolean value) {
10742
      if (!value) {
10743
        this.password = null;
10744
      }
10745
    }
10746
 
10747
    public void setFieldValue(_Fields field, Object value) {
10748
      switch (field) {
10749
      case USERNAME:
10750
        if (value == null) {
10751
          unsetUsername();
10752
        } else {
10753
          setUsername((String)value);
10754
        }
10755
        break;
10756
 
10757
      case PASSWORD:
10758
        if (value == null) {
10759
          unsetPassword();
10760
        } else {
10761
          setPassword((String)value);
10762
        }
10763
        break;
10764
 
10765
      }
10766
    }
10767
 
10768
    public Object getFieldValue(_Fields field) {
10769
      switch (field) {
10770
      case USERNAME:
10771
        return getUsername();
10772
 
10773
      case PASSWORD:
10774
        return getPassword();
10775
 
10776
      }
10777
      throw new IllegalStateException();
10778
    }
10779
 
3430 rajveer 10780
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10781
    public boolean isSet(_Fields field) {
10782
      if (field == null) {
10783
        throw new IllegalArgumentException();
10784
      }
495 rajveer 10785
 
10786
      switch (field) {
10787
      case USERNAME:
10788
        return isSetUsername();
10789
      case PASSWORD:
10790
        return isSetPassword();
10791
      }
10792
      throw new IllegalStateException();
10793
    }
10794
 
10795
    @Override
10796
    public boolean equals(Object that) {
10797
      if (that == null)
10798
        return false;
2443 chandransh 10799
      if (that instanceof authenticateDashboardUser_args)
10800
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10801
      return false;
10802
    }
10803
 
2443 chandransh 10804
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10805
      if (that == null)
10806
        return false;
10807
 
10808
      boolean this_present_username = true && this.isSetUsername();
10809
      boolean that_present_username = true && that.isSetUsername();
10810
      if (this_present_username || that_present_username) {
10811
        if (!(this_present_username && that_present_username))
10812
          return false;
10813
        if (!this.username.equals(that.username))
10814
          return false;
10815
      }
10816
 
10817
      boolean this_present_password = true && this.isSetPassword();
10818
      boolean that_present_password = true && that.isSetPassword();
10819
      if (this_present_password || that_present_password) {
10820
        if (!(this_present_password && that_present_password))
10821
          return false;
10822
        if (!this.password.equals(that.password))
10823
          return false;
10824
      }
10825
 
10826
      return true;
10827
    }
10828
 
10829
    @Override
10830
    public int hashCode() {
10831
      return 0;
10832
    }
10833
 
2443 chandransh 10834
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10835
      if (!getClass().equals(other.getClass())) {
10836
        return getClass().getName().compareTo(other.getClass().getName());
10837
      }
10838
 
10839
      int lastComparison = 0;
2443 chandransh 10840
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10841
 
3430 rajveer 10842
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10843
      if (lastComparison != 0) {
10844
        return lastComparison;
10845
      }
3430 rajveer 10846
      if (isSetUsername()) {
10847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10848
        if (lastComparison != 0) {
10849
          return lastComparison;
10850
        }
495 rajveer 10851
      }
3430 rajveer 10852
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10853
      if (lastComparison != 0) {
10854
        return lastComparison;
10855
      }
3430 rajveer 10856
      if (isSetPassword()) {
10857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10858
        if (lastComparison != 0) {
10859
          return lastComparison;
10860
        }
495 rajveer 10861
      }
10862
      return 0;
10863
    }
10864
 
3430 rajveer 10865
    public _Fields fieldForId(int fieldId) {
10866
      return _Fields.findByThriftId(fieldId);
10867
    }
10868
 
10869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10870
      org.apache.thrift.protocol.TField field;
495 rajveer 10871
      iprot.readStructBegin();
10872
      while (true)
10873
      {
10874
        field = iprot.readFieldBegin();
3430 rajveer 10875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10876
          break;
10877
        }
3430 rajveer 10878
        switch (field.id) {
10879
          case 1: // USERNAME
10880
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10881
              this.username = iprot.readString();
10882
            } else { 
10883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10884
            }
10885
            break;
10886
          case 2: // PASSWORD
10887
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10888
              this.password = iprot.readString();
10889
            } else { 
10890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10891
            }
10892
            break;
10893
          default:
10894
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10895
        }
3430 rajveer 10896
        iprot.readFieldEnd();
495 rajveer 10897
      }
10898
      iprot.readStructEnd();
10899
      validate();
10900
    }
10901
 
3430 rajveer 10902
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10903
      validate();
10904
 
10905
      oprot.writeStructBegin(STRUCT_DESC);
10906
      if (this.username != null) {
10907
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10908
        oprot.writeString(this.username);
10909
        oprot.writeFieldEnd();
10910
      }
10911
      if (this.password != null) {
10912
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10913
        oprot.writeString(this.password);
10914
        oprot.writeFieldEnd();
10915
      }
10916
      oprot.writeFieldStop();
10917
      oprot.writeStructEnd();
10918
    }
10919
 
10920
    @Override
10921
    public String toString() {
2443 chandransh 10922
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10923
      boolean first = true;
10924
 
10925
      sb.append("username:");
10926
      if (this.username == null) {
10927
        sb.append("null");
10928
      } else {
10929
        sb.append(this.username);
10930
      }
10931
      first = false;
10932
      if (!first) sb.append(", ");
10933
      sb.append("password:");
10934
      if (this.password == null) {
10935
        sb.append("null");
10936
      } else {
10937
        sb.append(this.password);
10938
      }
10939
      first = false;
10940
      sb.append(")");
10941
      return sb.toString();
10942
    }
10943
 
3430 rajveer 10944
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10945
      // check for required fields
10946
    }
10947
 
3430 rajveer 10948
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10949
      try {
10950
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10951
      } catch (org.apache.thrift.TException te) {
10952
        throw new java.io.IOException(te);
10953
      }
10954
    }
10955
 
10956
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10957
      try {
10958
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10959
      } catch (org.apache.thrift.TException te) {
10960
        throw new java.io.IOException(te);
10961
      }
10962
    }
10963
 
495 rajveer 10964
  }
10965
 
3430 rajveer 10966
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
10967
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 10968
 
3430 rajveer 10969
    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);
10970
    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 10971
 
3430 rajveer 10972
    private DashboardUser success; // required
10973
    private HelperServiceException se; // required
495 rajveer 10974
 
10975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10977
      SUCCESS((short)0, "success"),
10978
      SE((short)1, "se");
10979
 
10980
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10981
 
10982
      static {
10983
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10984
          byName.put(field.getFieldName(), field);
10985
        }
10986
      }
10987
 
10988
      /**
10989
       * Find the _Fields constant that matches fieldId, or null if its not found.
10990
       */
10991
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10992
        switch(fieldId) {
10993
          case 0: // SUCCESS
10994
            return SUCCESS;
10995
          case 1: // SE
10996
            return SE;
10997
          default:
10998
            return null;
10999
        }
495 rajveer 11000
      }
11001
 
11002
      /**
11003
       * Find the _Fields constant that matches fieldId, throwing an exception
11004
       * if it is not found.
11005
       */
11006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11007
        _Fields fields = findByThriftId(fieldId);
11008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11009
        return fields;
11010
      }
11011
 
11012
      /**
11013
       * Find the _Fields constant that matches name, or null if its not found.
11014
       */
11015
      public static _Fields findByName(String name) {
11016
        return byName.get(name);
11017
      }
11018
 
11019
      private final short _thriftId;
11020
      private final String _fieldName;
11021
 
11022
      _Fields(short thriftId, String fieldName) {
11023
        _thriftId = thriftId;
11024
        _fieldName = fieldName;
11025
      }
11026
 
11027
      public short getThriftFieldId() {
11028
        return _thriftId;
11029
      }
11030
 
11031
      public String getFieldName() {
11032
        return _fieldName;
11033
      }
11034
    }
11035
 
11036
    // isset id assignments
11037
 
3430 rajveer 11038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11039
    static {
3430 rajveer 11040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11041
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11042
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11043
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11044
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11045
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11046
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11047
    }
11048
 
2443 chandransh 11049
    public authenticateDashboardUser_result() {
495 rajveer 11050
    }
11051
 
2443 chandransh 11052
    public authenticateDashboardUser_result(
11053
      DashboardUser success,
495 rajveer 11054
      HelperServiceException se)
11055
    {
11056
      this();
11057
      this.success = success;
11058
      this.se = se;
11059
    }
11060
 
11061
    /**
11062
     * Performs a deep copy on <i>other</i>.
11063
     */
2443 chandransh 11064
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11065
      if (other.isSetSuccess()) {
11066
        this.success = new DashboardUser(other.success);
11067
      }
495 rajveer 11068
      if (other.isSetSe()) {
11069
        this.se = new HelperServiceException(other.se);
11070
      }
11071
    }
11072
 
2443 chandransh 11073
    public authenticateDashboardUser_result deepCopy() {
11074
      return new authenticateDashboardUser_result(this);
495 rajveer 11075
    }
11076
 
3430 rajveer 11077
    @Override
11078
    public void clear() {
11079
      this.success = null;
11080
      this.se = null;
495 rajveer 11081
    }
11082
 
2443 chandransh 11083
    public DashboardUser getSuccess() {
495 rajveer 11084
      return this.success;
11085
    }
11086
 
3430 rajveer 11087
    public void setSuccess(DashboardUser success) {
495 rajveer 11088
      this.success = success;
11089
    }
11090
 
11091
    public void unsetSuccess() {
2443 chandransh 11092
      this.success = null;
495 rajveer 11093
    }
11094
 
3430 rajveer 11095
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11096
    public boolean isSetSuccess() {
2443 chandransh 11097
      return this.success != null;
495 rajveer 11098
    }
11099
 
11100
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11101
      if (!value) {
11102
        this.success = null;
11103
      }
495 rajveer 11104
    }
11105
 
11106
    public HelperServiceException getSe() {
11107
      return this.se;
11108
    }
11109
 
3430 rajveer 11110
    public void setSe(HelperServiceException se) {
495 rajveer 11111
      this.se = se;
11112
    }
11113
 
11114
    public void unsetSe() {
11115
      this.se = null;
11116
    }
11117
 
3430 rajveer 11118
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11119
    public boolean isSetSe() {
11120
      return this.se != null;
11121
    }
11122
 
11123
    public void setSeIsSet(boolean value) {
11124
      if (!value) {
11125
        this.se = null;
11126
      }
11127
    }
11128
 
11129
    public void setFieldValue(_Fields field, Object value) {
11130
      switch (field) {
11131
      case SUCCESS:
11132
        if (value == null) {
11133
          unsetSuccess();
11134
        } else {
2443 chandransh 11135
          setSuccess((DashboardUser)value);
495 rajveer 11136
        }
11137
        break;
11138
 
11139
      case SE:
11140
        if (value == null) {
11141
          unsetSe();
11142
        } else {
11143
          setSe((HelperServiceException)value);
11144
        }
11145
        break;
11146
 
11147
      }
11148
    }
11149
 
11150
    public Object getFieldValue(_Fields field) {
11151
      switch (field) {
11152
      case SUCCESS:
2443 chandransh 11153
        return getSuccess();
495 rajveer 11154
 
11155
      case SE:
11156
        return getSe();
11157
 
11158
      }
11159
      throw new IllegalStateException();
11160
    }
11161
 
3430 rajveer 11162
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11163
    public boolean isSet(_Fields field) {
11164
      if (field == null) {
11165
        throw new IllegalArgumentException();
11166
      }
495 rajveer 11167
 
11168
      switch (field) {
11169
      case SUCCESS:
11170
        return isSetSuccess();
11171
      case SE:
11172
        return isSetSe();
11173
      }
11174
      throw new IllegalStateException();
11175
    }
11176
 
11177
    @Override
11178
    public boolean equals(Object that) {
11179
      if (that == null)
11180
        return false;
2443 chandransh 11181
      if (that instanceof authenticateDashboardUser_result)
11182
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11183
      return false;
11184
    }
11185
 
2443 chandransh 11186
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11187
      if (that == null)
11188
        return false;
11189
 
2443 chandransh 11190
      boolean this_present_success = true && this.isSetSuccess();
11191
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11192
      if (this_present_success || that_present_success) {
11193
        if (!(this_present_success && that_present_success))
11194
          return false;
2443 chandransh 11195
        if (!this.success.equals(that.success))
495 rajveer 11196
          return false;
11197
      }
11198
 
11199
      boolean this_present_se = true && this.isSetSe();
11200
      boolean that_present_se = true && that.isSetSe();
11201
      if (this_present_se || that_present_se) {
11202
        if (!(this_present_se && that_present_se))
11203
          return false;
11204
        if (!this.se.equals(that.se))
11205
          return false;
11206
      }
11207
 
11208
      return true;
11209
    }
11210
 
11211
    @Override
11212
    public int hashCode() {
11213
      return 0;
11214
    }
11215
 
2443 chandransh 11216
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11217
      if (!getClass().equals(other.getClass())) {
11218
        return getClass().getName().compareTo(other.getClass().getName());
11219
      }
11220
 
11221
      int lastComparison = 0;
2443 chandransh 11222
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11223
 
3430 rajveer 11224
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11225
      if (lastComparison != 0) {
11226
        return lastComparison;
11227
      }
3430 rajveer 11228
      if (isSetSuccess()) {
11229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11230
        if (lastComparison != 0) {
11231
          return lastComparison;
11232
        }
495 rajveer 11233
      }
3430 rajveer 11234
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11235
      if (lastComparison != 0) {
11236
        return lastComparison;
11237
      }
3430 rajveer 11238
      if (isSetSe()) {
11239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11240
        if (lastComparison != 0) {
11241
          return lastComparison;
11242
        }
495 rajveer 11243
      }
11244
      return 0;
11245
    }
11246
 
3430 rajveer 11247
    public _Fields fieldForId(int fieldId) {
11248
      return _Fields.findByThriftId(fieldId);
11249
    }
11250
 
11251
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11252
      org.apache.thrift.protocol.TField field;
495 rajveer 11253
      iprot.readStructBegin();
11254
      while (true)
11255
      {
11256
        field = iprot.readFieldBegin();
3430 rajveer 11257
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11258
          break;
11259
        }
3430 rajveer 11260
        switch (field.id) {
11261
          case 0: // SUCCESS
11262
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11263
              this.success = new DashboardUser();
11264
              this.success.read(iprot);
11265
            } else { 
11266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11267
            }
11268
            break;
11269
          case 1: // SE
11270
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11271
              this.se = new HelperServiceException();
11272
              this.se.read(iprot);
11273
            } else { 
11274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11275
            }
11276
            break;
11277
          default:
11278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11279
        }
3430 rajveer 11280
        iprot.readFieldEnd();
495 rajveer 11281
      }
11282
      iprot.readStructEnd();
11283
      validate();
11284
    }
11285
 
3430 rajveer 11286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11287
      oprot.writeStructBegin(STRUCT_DESC);
11288
 
11289
      if (this.isSetSuccess()) {
11290
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11291
        this.success.write(oprot);
495 rajveer 11292
        oprot.writeFieldEnd();
11293
      } else if (this.isSetSe()) {
11294
        oprot.writeFieldBegin(SE_FIELD_DESC);
11295
        this.se.write(oprot);
11296
        oprot.writeFieldEnd();
11297
      }
11298
      oprot.writeFieldStop();
11299
      oprot.writeStructEnd();
11300
    }
11301
 
11302
    @Override
11303
    public String toString() {
2443 chandransh 11304
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11305
      boolean first = true;
11306
 
11307
      sb.append("success:");
2443 chandransh 11308
      if (this.success == null) {
11309
        sb.append("null");
11310
      } else {
11311
        sb.append(this.success);
11312
      }
495 rajveer 11313
      first = false;
11314
      if (!first) sb.append(", ");
11315
      sb.append("se:");
11316
      if (this.se == null) {
11317
        sb.append("null");
11318
      } else {
11319
        sb.append(this.se);
11320
      }
11321
      first = false;
11322
      sb.append(")");
11323
      return sb.toString();
11324
    }
11325
 
3430 rajveer 11326
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11327
      // check for required fields
11328
    }
11329
 
3430 rajveer 11330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11331
      try {
11332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11333
      } catch (org.apache.thrift.TException te) {
11334
        throw new java.io.IOException(te);
11335
      }
11336
    }
11337
 
11338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11339
      try {
11340
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11341
      } catch (org.apache.thrift.TException te) {
11342
        throw new java.io.IOException(te);
11343
      }
11344
    }
11345
 
495 rajveer 11346
  }
11347
 
3430 rajveer 11348
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11349
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11350
 
3430 rajveer 11351
    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);
11352
    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);
11353
    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 11354
 
3430 rajveer 11355
    private String username; // required
11356
    private String oldPassword; // required
11357
    private String newPassword; // required
495 rajveer 11358
 
11359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11360
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11361
      USERNAME((short)1, "username"),
11362
      OLD_PASSWORD((short)2, "oldPassword"),
11363
      NEW_PASSWORD((short)3, "newPassword");
11364
 
11365
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11366
 
11367
      static {
11368
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11369
          byName.put(field.getFieldName(), field);
11370
        }
11371
      }
11372
 
11373
      /**
11374
       * Find the _Fields constant that matches fieldId, or null if its not found.
11375
       */
11376
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11377
        switch(fieldId) {
11378
          case 1: // USERNAME
11379
            return USERNAME;
11380
          case 2: // OLD_PASSWORD
11381
            return OLD_PASSWORD;
11382
          case 3: // NEW_PASSWORD
11383
            return NEW_PASSWORD;
11384
          default:
11385
            return null;
11386
        }
495 rajveer 11387
      }
11388
 
11389
      /**
11390
       * Find the _Fields constant that matches fieldId, throwing an exception
11391
       * if it is not found.
11392
       */
11393
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11394
        _Fields fields = findByThriftId(fieldId);
11395
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11396
        return fields;
11397
      }
11398
 
11399
      /**
11400
       * Find the _Fields constant that matches name, or null if its not found.
11401
       */
11402
      public static _Fields findByName(String name) {
11403
        return byName.get(name);
11404
      }
11405
 
11406
      private final short _thriftId;
11407
      private final String _fieldName;
11408
 
11409
      _Fields(short thriftId, String fieldName) {
11410
        _thriftId = thriftId;
11411
        _fieldName = fieldName;
11412
      }
11413
 
11414
      public short getThriftFieldId() {
11415
        return _thriftId;
11416
      }
11417
 
11418
      public String getFieldName() {
11419
        return _fieldName;
11420
      }
11421
    }
11422
 
11423
    // isset id assignments
11424
 
3430 rajveer 11425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11426
    static {
3430 rajveer 11427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11428
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11430
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11431
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11432
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11436
    }
11437
 
11438
    public updatePassword_args() {
11439
    }
11440
 
11441
    public updatePassword_args(
11442
      String username,
11443
      String oldPassword,
11444
      String newPassword)
11445
    {
11446
      this();
11447
      this.username = username;
11448
      this.oldPassword = oldPassword;
11449
      this.newPassword = newPassword;
11450
    }
11451
 
11452
    /**
11453
     * Performs a deep copy on <i>other</i>.
11454
     */
11455
    public updatePassword_args(updatePassword_args other) {
11456
      if (other.isSetUsername()) {
11457
        this.username = other.username;
11458
      }
11459
      if (other.isSetOldPassword()) {
11460
        this.oldPassword = other.oldPassword;
11461
      }
11462
      if (other.isSetNewPassword()) {
11463
        this.newPassword = other.newPassword;
11464
      }
11465
    }
11466
 
11467
    public updatePassword_args deepCopy() {
11468
      return new updatePassword_args(this);
11469
    }
11470
 
3430 rajveer 11471
    @Override
11472
    public void clear() {
11473
      this.username = null;
11474
      this.oldPassword = null;
11475
      this.newPassword = null;
495 rajveer 11476
    }
11477
 
11478
    public String getUsername() {
11479
      return this.username;
11480
    }
11481
 
3430 rajveer 11482
    public void setUsername(String username) {
495 rajveer 11483
      this.username = username;
11484
    }
11485
 
11486
    public void unsetUsername() {
11487
      this.username = null;
11488
    }
11489
 
3430 rajveer 11490
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11491
    public boolean isSetUsername() {
11492
      return this.username != null;
11493
    }
11494
 
11495
    public void setUsernameIsSet(boolean value) {
11496
      if (!value) {
11497
        this.username = null;
11498
      }
11499
    }
11500
 
11501
    public String getOldPassword() {
11502
      return this.oldPassword;
11503
    }
11504
 
3430 rajveer 11505
    public void setOldPassword(String oldPassword) {
495 rajveer 11506
      this.oldPassword = oldPassword;
11507
    }
11508
 
11509
    public void unsetOldPassword() {
11510
      this.oldPassword = null;
11511
    }
11512
 
3430 rajveer 11513
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11514
    public boolean isSetOldPassword() {
11515
      return this.oldPassword != null;
11516
    }
11517
 
11518
    public void setOldPasswordIsSet(boolean value) {
11519
      if (!value) {
11520
        this.oldPassword = null;
11521
      }
11522
    }
11523
 
11524
    public String getNewPassword() {
11525
      return this.newPassword;
11526
    }
11527
 
3430 rajveer 11528
    public void setNewPassword(String newPassword) {
495 rajveer 11529
      this.newPassword = newPassword;
11530
    }
11531
 
11532
    public void unsetNewPassword() {
11533
      this.newPassword = null;
11534
    }
11535
 
3430 rajveer 11536
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11537
    public boolean isSetNewPassword() {
11538
      return this.newPassword != null;
11539
    }
11540
 
11541
    public void setNewPasswordIsSet(boolean value) {
11542
      if (!value) {
11543
        this.newPassword = null;
11544
      }
11545
    }
11546
 
11547
    public void setFieldValue(_Fields field, Object value) {
11548
      switch (field) {
11549
      case USERNAME:
11550
        if (value == null) {
11551
          unsetUsername();
11552
        } else {
11553
          setUsername((String)value);
11554
        }
11555
        break;
11556
 
11557
      case OLD_PASSWORD:
11558
        if (value == null) {
11559
          unsetOldPassword();
11560
        } else {
11561
          setOldPassword((String)value);
11562
        }
11563
        break;
11564
 
11565
      case NEW_PASSWORD:
11566
        if (value == null) {
11567
          unsetNewPassword();
11568
        } else {
11569
          setNewPassword((String)value);
11570
        }
11571
        break;
11572
 
11573
      }
11574
    }
11575
 
11576
    public Object getFieldValue(_Fields field) {
11577
      switch (field) {
11578
      case USERNAME:
11579
        return getUsername();
11580
 
11581
      case OLD_PASSWORD:
11582
        return getOldPassword();
11583
 
11584
      case NEW_PASSWORD:
11585
        return getNewPassword();
11586
 
11587
      }
11588
      throw new IllegalStateException();
11589
    }
11590
 
3430 rajveer 11591
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11592
    public boolean isSet(_Fields field) {
11593
      if (field == null) {
11594
        throw new IllegalArgumentException();
11595
      }
495 rajveer 11596
 
11597
      switch (field) {
11598
      case USERNAME:
11599
        return isSetUsername();
11600
      case OLD_PASSWORD:
11601
        return isSetOldPassword();
11602
      case NEW_PASSWORD:
11603
        return isSetNewPassword();
11604
      }
11605
      throw new IllegalStateException();
11606
    }
11607
 
11608
    @Override
11609
    public boolean equals(Object that) {
11610
      if (that == null)
11611
        return false;
11612
      if (that instanceof updatePassword_args)
11613
        return this.equals((updatePassword_args)that);
11614
      return false;
11615
    }
11616
 
11617
    public boolean equals(updatePassword_args that) {
11618
      if (that == null)
11619
        return false;
11620
 
11621
      boolean this_present_username = true && this.isSetUsername();
11622
      boolean that_present_username = true && that.isSetUsername();
11623
      if (this_present_username || that_present_username) {
11624
        if (!(this_present_username && that_present_username))
11625
          return false;
11626
        if (!this.username.equals(that.username))
11627
          return false;
11628
      }
11629
 
11630
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11631
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11632
      if (this_present_oldPassword || that_present_oldPassword) {
11633
        if (!(this_present_oldPassword && that_present_oldPassword))
11634
          return false;
11635
        if (!this.oldPassword.equals(that.oldPassword))
11636
          return false;
11637
      }
11638
 
11639
      boolean this_present_newPassword = true && this.isSetNewPassword();
11640
      boolean that_present_newPassword = true && that.isSetNewPassword();
11641
      if (this_present_newPassword || that_present_newPassword) {
11642
        if (!(this_present_newPassword && that_present_newPassword))
11643
          return false;
11644
        if (!this.newPassword.equals(that.newPassword))
11645
          return false;
11646
      }
11647
 
11648
      return true;
11649
    }
11650
 
11651
    @Override
11652
    public int hashCode() {
11653
      return 0;
11654
    }
11655
 
11656
    public int compareTo(updatePassword_args other) {
11657
      if (!getClass().equals(other.getClass())) {
11658
        return getClass().getName().compareTo(other.getClass().getName());
11659
      }
11660
 
11661
      int lastComparison = 0;
11662
      updatePassword_args typedOther = (updatePassword_args)other;
11663
 
3430 rajveer 11664
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11665
      if (lastComparison != 0) {
11666
        return lastComparison;
11667
      }
3430 rajveer 11668
      if (isSetUsername()) {
11669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11670
        if (lastComparison != 0) {
11671
          return lastComparison;
11672
        }
495 rajveer 11673
      }
3430 rajveer 11674
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11675
      if (lastComparison != 0) {
11676
        return lastComparison;
11677
      }
3430 rajveer 11678
      if (isSetOldPassword()) {
11679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11680
        if (lastComparison != 0) {
11681
          return lastComparison;
11682
        }
495 rajveer 11683
      }
3430 rajveer 11684
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11685
      if (lastComparison != 0) {
11686
        return lastComparison;
11687
      }
3430 rajveer 11688
      if (isSetNewPassword()) {
11689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11690
        if (lastComparison != 0) {
11691
          return lastComparison;
11692
        }
495 rajveer 11693
      }
11694
      return 0;
11695
    }
11696
 
3430 rajveer 11697
    public _Fields fieldForId(int fieldId) {
11698
      return _Fields.findByThriftId(fieldId);
11699
    }
11700
 
11701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11702
      org.apache.thrift.protocol.TField field;
495 rajveer 11703
      iprot.readStructBegin();
11704
      while (true)
11705
      {
11706
        field = iprot.readFieldBegin();
3430 rajveer 11707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11708
          break;
11709
        }
3430 rajveer 11710
        switch (field.id) {
11711
          case 1: // USERNAME
11712
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11713
              this.username = iprot.readString();
11714
            } else { 
11715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11716
            }
11717
            break;
11718
          case 2: // OLD_PASSWORD
11719
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11720
              this.oldPassword = iprot.readString();
11721
            } else { 
11722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11723
            }
11724
            break;
11725
          case 3: // NEW_PASSWORD
11726
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11727
              this.newPassword = iprot.readString();
11728
            } else { 
11729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11730
            }
11731
            break;
11732
          default:
11733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11734
        }
3430 rajveer 11735
        iprot.readFieldEnd();
495 rajveer 11736
      }
11737
      iprot.readStructEnd();
11738
      validate();
11739
    }
11740
 
3430 rajveer 11741
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11742
      validate();
11743
 
11744
      oprot.writeStructBegin(STRUCT_DESC);
11745
      if (this.username != null) {
11746
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11747
        oprot.writeString(this.username);
11748
        oprot.writeFieldEnd();
11749
      }
11750
      if (this.oldPassword != null) {
11751
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11752
        oprot.writeString(this.oldPassword);
11753
        oprot.writeFieldEnd();
11754
      }
11755
      if (this.newPassword != null) {
11756
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11757
        oprot.writeString(this.newPassword);
11758
        oprot.writeFieldEnd();
11759
      }
11760
      oprot.writeFieldStop();
11761
      oprot.writeStructEnd();
11762
    }
11763
 
11764
    @Override
11765
    public String toString() {
11766
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11767
      boolean first = true;
11768
 
11769
      sb.append("username:");
11770
      if (this.username == null) {
11771
        sb.append("null");
11772
      } else {
11773
        sb.append(this.username);
11774
      }
11775
      first = false;
11776
      if (!first) sb.append(", ");
11777
      sb.append("oldPassword:");
11778
      if (this.oldPassword == null) {
11779
        sb.append("null");
11780
      } else {
11781
        sb.append(this.oldPassword);
11782
      }
11783
      first = false;
11784
      if (!first) sb.append(", ");
11785
      sb.append("newPassword:");
11786
      if (this.newPassword == null) {
11787
        sb.append("null");
11788
      } else {
11789
        sb.append(this.newPassword);
11790
      }
11791
      first = false;
11792
      sb.append(")");
11793
      return sb.toString();
11794
    }
11795
 
3430 rajveer 11796
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11797
      // check for required fields
11798
    }
11799
 
3430 rajveer 11800
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11801
      try {
11802
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11803
      } catch (org.apache.thrift.TException te) {
11804
        throw new java.io.IOException(te);
11805
      }
11806
    }
11807
 
11808
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11809
      try {
11810
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11811
      } catch (org.apache.thrift.TException te) {
11812
        throw new java.io.IOException(te);
11813
      }
11814
    }
11815
 
495 rajveer 11816
  }
11817
 
3430 rajveer 11818
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11820
 
3430 rajveer 11821
    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);
11822
    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 11823
 
3430 rajveer 11824
    private boolean success; // required
11825
    private HelperServiceException se; // required
495 rajveer 11826
 
11827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11829
      SUCCESS((short)0, "success"),
11830
      SE((short)1, "se");
11831
 
11832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11833
 
11834
      static {
11835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11836
          byName.put(field.getFieldName(), field);
11837
        }
11838
      }
11839
 
11840
      /**
11841
       * Find the _Fields constant that matches fieldId, or null if its not found.
11842
       */
11843
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11844
        switch(fieldId) {
11845
          case 0: // SUCCESS
11846
            return SUCCESS;
11847
          case 1: // SE
11848
            return SE;
11849
          default:
11850
            return null;
11851
        }
495 rajveer 11852
      }
11853
 
11854
      /**
11855
       * Find the _Fields constant that matches fieldId, throwing an exception
11856
       * if it is not found.
11857
       */
11858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11859
        _Fields fields = findByThriftId(fieldId);
11860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11861
        return fields;
11862
      }
11863
 
11864
      /**
11865
       * Find the _Fields constant that matches name, or null if its not found.
11866
       */
11867
      public static _Fields findByName(String name) {
11868
        return byName.get(name);
11869
      }
11870
 
11871
      private final short _thriftId;
11872
      private final String _fieldName;
11873
 
11874
      _Fields(short thriftId, String fieldName) {
11875
        _thriftId = thriftId;
11876
        _fieldName = fieldName;
11877
      }
11878
 
11879
      public short getThriftFieldId() {
11880
        return _thriftId;
11881
      }
11882
 
11883
      public String getFieldName() {
11884
        return _fieldName;
11885
      }
11886
    }
11887
 
11888
    // isset id assignments
11889
    private static final int __SUCCESS_ISSET_ID = 0;
11890
    private BitSet __isset_bit_vector = new BitSet(1);
11891
 
3430 rajveer 11892
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11893
    static {
3430 rajveer 11894
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11895
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11897
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11898
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11899
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11900
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11901
    }
11902
 
11903
    public updatePassword_result() {
11904
    }
11905
 
11906
    public updatePassword_result(
11907
      boolean success,
11908
      HelperServiceException se)
11909
    {
11910
      this();
11911
      this.success = success;
11912
      setSuccessIsSet(true);
11913
      this.se = se;
11914
    }
11915
 
11916
    /**
11917
     * Performs a deep copy on <i>other</i>.
11918
     */
11919
    public updatePassword_result(updatePassword_result other) {
11920
      __isset_bit_vector.clear();
11921
      __isset_bit_vector.or(other.__isset_bit_vector);
11922
      this.success = other.success;
11923
      if (other.isSetSe()) {
11924
        this.se = new HelperServiceException(other.se);
11925
      }
11926
    }
11927
 
11928
    public updatePassword_result deepCopy() {
11929
      return new updatePassword_result(this);
11930
    }
11931
 
3430 rajveer 11932
    @Override
11933
    public void clear() {
11934
      setSuccessIsSet(false);
11935
      this.success = false;
11936
      this.se = null;
495 rajveer 11937
    }
11938
 
11939
    public boolean isSuccess() {
11940
      return this.success;
11941
    }
11942
 
3430 rajveer 11943
    public void setSuccess(boolean success) {
495 rajveer 11944
      this.success = success;
11945
      setSuccessIsSet(true);
11946
    }
11947
 
11948
    public void unsetSuccess() {
11949
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11950
    }
11951
 
3430 rajveer 11952
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11953
    public boolean isSetSuccess() {
11954
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11955
    }
11956
 
11957
    public void setSuccessIsSet(boolean value) {
11958
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11959
    }
11960
 
11961
    public HelperServiceException getSe() {
11962
      return this.se;
11963
    }
11964
 
3430 rajveer 11965
    public void setSe(HelperServiceException se) {
495 rajveer 11966
      this.se = se;
11967
    }
11968
 
11969
    public void unsetSe() {
11970
      this.se = null;
11971
    }
11972
 
3430 rajveer 11973
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11974
    public boolean isSetSe() {
11975
      return this.se != null;
11976
    }
11977
 
11978
    public void setSeIsSet(boolean value) {
11979
      if (!value) {
11980
        this.se = null;
11981
      }
11982
    }
11983
 
11984
    public void setFieldValue(_Fields field, Object value) {
11985
      switch (field) {
11986
      case SUCCESS:
11987
        if (value == null) {
11988
          unsetSuccess();
11989
        } else {
11990
          setSuccess((Boolean)value);
11991
        }
11992
        break;
11993
 
11994
      case SE:
11995
        if (value == null) {
11996
          unsetSe();
11997
        } else {
11998
          setSe((HelperServiceException)value);
11999
        }
12000
        break;
12001
 
12002
      }
12003
    }
12004
 
12005
    public Object getFieldValue(_Fields field) {
12006
      switch (field) {
12007
      case SUCCESS:
3430 rajveer 12008
        return Boolean.valueOf(isSuccess());
495 rajveer 12009
 
12010
      case SE:
12011
        return getSe();
12012
 
12013
      }
12014
      throw new IllegalStateException();
12015
    }
12016
 
3430 rajveer 12017
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12018
    public boolean isSet(_Fields field) {
12019
      if (field == null) {
12020
        throw new IllegalArgumentException();
12021
      }
495 rajveer 12022
 
12023
      switch (field) {
12024
      case SUCCESS:
12025
        return isSetSuccess();
12026
      case SE:
12027
        return isSetSe();
12028
      }
12029
      throw new IllegalStateException();
12030
    }
12031
 
12032
    @Override
12033
    public boolean equals(Object that) {
12034
      if (that == null)
12035
        return false;
12036
      if (that instanceof updatePassword_result)
12037
        return this.equals((updatePassword_result)that);
12038
      return false;
12039
    }
12040
 
12041
    public boolean equals(updatePassword_result that) {
12042
      if (that == null)
12043
        return false;
12044
 
12045
      boolean this_present_success = true;
12046
      boolean that_present_success = true;
12047
      if (this_present_success || that_present_success) {
12048
        if (!(this_present_success && that_present_success))
12049
          return false;
12050
        if (this.success != that.success)
12051
          return false;
12052
      }
12053
 
12054
      boolean this_present_se = true && this.isSetSe();
12055
      boolean that_present_se = true && that.isSetSe();
12056
      if (this_present_se || that_present_se) {
12057
        if (!(this_present_se && that_present_se))
12058
          return false;
12059
        if (!this.se.equals(that.se))
12060
          return false;
12061
      }
12062
 
12063
      return true;
12064
    }
12065
 
12066
    @Override
12067
    public int hashCode() {
12068
      return 0;
12069
    }
12070
 
12071
    public int compareTo(updatePassword_result other) {
12072
      if (!getClass().equals(other.getClass())) {
12073
        return getClass().getName().compareTo(other.getClass().getName());
12074
      }
12075
 
12076
      int lastComparison = 0;
12077
      updatePassword_result typedOther = (updatePassword_result)other;
12078
 
3430 rajveer 12079
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12080
      if (lastComparison != 0) {
12081
        return lastComparison;
12082
      }
3430 rajveer 12083
      if (isSetSuccess()) {
12084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12085
        if (lastComparison != 0) {
12086
          return lastComparison;
12087
        }
495 rajveer 12088
      }
3430 rajveer 12089
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12090
      if (lastComparison != 0) {
12091
        return lastComparison;
12092
      }
3430 rajveer 12093
      if (isSetSe()) {
12094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12095
        if (lastComparison != 0) {
12096
          return lastComparison;
12097
        }
495 rajveer 12098
      }
12099
      return 0;
12100
    }
12101
 
3430 rajveer 12102
    public _Fields fieldForId(int fieldId) {
12103
      return _Fields.findByThriftId(fieldId);
12104
    }
12105
 
12106
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12107
      org.apache.thrift.protocol.TField field;
495 rajveer 12108
      iprot.readStructBegin();
12109
      while (true)
12110
      {
12111
        field = iprot.readFieldBegin();
3430 rajveer 12112
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12113
          break;
12114
        }
3430 rajveer 12115
        switch (field.id) {
12116
          case 0: // SUCCESS
12117
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12118
              this.success = iprot.readBool();
12119
              setSuccessIsSet(true);
12120
            } else { 
12121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12122
            }
12123
            break;
12124
          case 1: // SE
12125
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12126
              this.se = new HelperServiceException();
12127
              this.se.read(iprot);
12128
            } else { 
12129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12130
            }
12131
            break;
12132
          default:
12133
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12134
        }
3430 rajveer 12135
        iprot.readFieldEnd();
495 rajveer 12136
      }
12137
      iprot.readStructEnd();
12138
      validate();
12139
    }
12140
 
3430 rajveer 12141
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12142
      oprot.writeStructBegin(STRUCT_DESC);
12143
 
12144
      if (this.isSetSuccess()) {
12145
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12146
        oprot.writeBool(this.success);
12147
        oprot.writeFieldEnd();
12148
      } else if (this.isSetSe()) {
12149
        oprot.writeFieldBegin(SE_FIELD_DESC);
12150
        this.se.write(oprot);
12151
        oprot.writeFieldEnd();
12152
      }
12153
      oprot.writeFieldStop();
12154
      oprot.writeStructEnd();
12155
    }
12156
 
12157
    @Override
12158
    public String toString() {
12159
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12160
      boolean first = true;
12161
 
12162
      sb.append("success:");
12163
      sb.append(this.success);
12164
      first = false;
12165
      if (!first) sb.append(", ");
12166
      sb.append("se:");
12167
      if (this.se == null) {
12168
        sb.append("null");
12169
      } else {
12170
        sb.append(this.se);
12171
      }
12172
      first = false;
12173
      sb.append(")");
12174
      return sb.toString();
12175
    }
12176
 
3430 rajveer 12177
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12178
      // check for required fields
12179
    }
12180
 
3430 rajveer 12181
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12182
      try {
12183
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12184
      } catch (org.apache.thrift.TException te) {
12185
        throw new java.io.IOException(te);
12186
      }
12187
    }
12188
 
12189
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12190
      try {
12191
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12192
      } catch (org.apache.thrift.TException te) {
12193
        throw new java.io.IOException(te);
12194
      }
12195
    }
12196
 
495 rajveer 12197
  }
12198
 
3430 rajveer 12199
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12200
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12201
 
3430 rajveer 12202
    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);
12203
    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 12204
 
3430 rajveer 12205
    private String username; // required
12206
    private String password; // required
750 chandransh 12207
 
12208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12209
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12210
      USERNAME((short)1, "username"),
12211
      PASSWORD((short)2, "password");
12212
 
12213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12214
 
12215
      static {
12216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12217
          byName.put(field.getFieldName(), field);
12218
        }
12219
      }
12220
 
12221
      /**
12222
       * Find the _Fields constant that matches fieldId, or null if its not found.
12223
       */
12224
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12225
        switch(fieldId) {
12226
          case 1: // USERNAME
12227
            return USERNAME;
12228
          case 2: // PASSWORD
12229
            return PASSWORD;
12230
          default:
12231
            return null;
12232
        }
750 chandransh 12233
      }
12234
 
12235
      /**
12236
       * Find the _Fields constant that matches fieldId, throwing an exception
12237
       * if it is not found.
12238
       */
12239
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12240
        _Fields fields = findByThriftId(fieldId);
12241
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12242
        return fields;
12243
      }
12244
 
12245
      /**
12246
       * Find the _Fields constant that matches name, or null if its not found.
12247
       */
12248
      public static _Fields findByName(String name) {
12249
        return byName.get(name);
12250
      }
12251
 
12252
      private final short _thriftId;
12253
      private final String _fieldName;
12254
 
12255
      _Fields(short thriftId, String fieldName) {
12256
        _thriftId = thriftId;
12257
        _fieldName = fieldName;
12258
      }
12259
 
12260
      public short getThriftFieldId() {
12261
        return _thriftId;
12262
      }
12263
 
12264
      public String getFieldName() {
12265
        return _fieldName;
12266
      }
12267
    }
12268
 
12269
    // isset id assignments
12270
 
3430 rajveer 12271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12272
    static {
3430 rajveer 12273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12274
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12276
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12278
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12279
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12280
    }
12281
 
12282
    public authenticateLogisticsUser_args() {
12283
    }
12284
 
12285
    public authenticateLogisticsUser_args(
12286
      String username,
12287
      String password)
12288
    {
12289
      this();
12290
      this.username = username;
12291
      this.password = password;
12292
    }
12293
 
12294
    /**
12295
     * Performs a deep copy on <i>other</i>.
12296
     */
12297
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12298
      if (other.isSetUsername()) {
12299
        this.username = other.username;
12300
      }
12301
      if (other.isSetPassword()) {
12302
        this.password = other.password;
12303
      }
12304
    }
12305
 
12306
    public authenticateLogisticsUser_args deepCopy() {
12307
      return new authenticateLogisticsUser_args(this);
12308
    }
12309
 
3430 rajveer 12310
    @Override
12311
    public void clear() {
12312
      this.username = null;
12313
      this.password = null;
750 chandransh 12314
    }
12315
 
12316
    public String getUsername() {
12317
      return this.username;
12318
    }
12319
 
3430 rajveer 12320
    public void setUsername(String username) {
750 chandransh 12321
      this.username = username;
12322
    }
12323
 
12324
    public void unsetUsername() {
12325
      this.username = null;
12326
    }
12327
 
3430 rajveer 12328
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12329
    public boolean isSetUsername() {
12330
      return this.username != null;
12331
    }
12332
 
12333
    public void setUsernameIsSet(boolean value) {
12334
      if (!value) {
12335
        this.username = null;
12336
      }
12337
    }
12338
 
12339
    public String getPassword() {
12340
      return this.password;
12341
    }
12342
 
3430 rajveer 12343
    public void setPassword(String password) {
750 chandransh 12344
      this.password = password;
12345
    }
12346
 
12347
    public void unsetPassword() {
12348
      this.password = null;
12349
    }
12350
 
3430 rajveer 12351
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12352
    public boolean isSetPassword() {
12353
      return this.password != null;
12354
    }
12355
 
12356
    public void setPasswordIsSet(boolean value) {
12357
      if (!value) {
12358
        this.password = null;
12359
      }
12360
    }
12361
 
12362
    public void setFieldValue(_Fields field, Object value) {
12363
      switch (field) {
12364
      case USERNAME:
12365
        if (value == null) {
12366
          unsetUsername();
12367
        } else {
12368
          setUsername((String)value);
12369
        }
12370
        break;
12371
 
12372
      case PASSWORD:
12373
        if (value == null) {
12374
          unsetPassword();
12375
        } else {
12376
          setPassword((String)value);
12377
        }
12378
        break;
12379
 
12380
      }
12381
    }
12382
 
12383
    public Object getFieldValue(_Fields field) {
12384
      switch (field) {
12385
      case USERNAME:
12386
        return getUsername();
12387
 
12388
      case PASSWORD:
12389
        return getPassword();
12390
 
12391
      }
12392
      throw new IllegalStateException();
12393
    }
12394
 
3430 rajveer 12395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12396
    public boolean isSet(_Fields field) {
12397
      if (field == null) {
12398
        throw new IllegalArgumentException();
12399
      }
750 chandransh 12400
 
12401
      switch (field) {
12402
      case USERNAME:
12403
        return isSetUsername();
12404
      case PASSWORD:
12405
        return isSetPassword();
12406
      }
12407
      throw new IllegalStateException();
12408
    }
12409
 
12410
    @Override
12411
    public boolean equals(Object that) {
12412
      if (that == null)
12413
        return false;
12414
      if (that instanceof authenticateLogisticsUser_args)
12415
        return this.equals((authenticateLogisticsUser_args)that);
12416
      return false;
12417
    }
12418
 
12419
    public boolean equals(authenticateLogisticsUser_args that) {
12420
      if (that == null)
12421
        return false;
12422
 
12423
      boolean this_present_username = true && this.isSetUsername();
12424
      boolean that_present_username = true && that.isSetUsername();
12425
      if (this_present_username || that_present_username) {
12426
        if (!(this_present_username && that_present_username))
12427
          return false;
12428
        if (!this.username.equals(that.username))
12429
          return false;
12430
      }
12431
 
12432
      boolean this_present_password = true && this.isSetPassword();
12433
      boolean that_present_password = true && that.isSetPassword();
12434
      if (this_present_password || that_present_password) {
12435
        if (!(this_present_password && that_present_password))
12436
          return false;
12437
        if (!this.password.equals(that.password))
12438
          return false;
12439
      }
12440
 
12441
      return true;
12442
    }
12443
 
12444
    @Override
12445
    public int hashCode() {
12446
      return 0;
12447
    }
12448
 
12449
    public int compareTo(authenticateLogisticsUser_args other) {
12450
      if (!getClass().equals(other.getClass())) {
12451
        return getClass().getName().compareTo(other.getClass().getName());
12452
      }
12453
 
12454
      int lastComparison = 0;
12455
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12456
 
3430 rajveer 12457
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12458
      if (lastComparison != 0) {
12459
        return lastComparison;
12460
      }
3430 rajveer 12461
      if (isSetUsername()) {
12462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12463
        if (lastComparison != 0) {
12464
          return lastComparison;
12465
        }
750 chandransh 12466
      }
3430 rajveer 12467
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12468
      if (lastComparison != 0) {
12469
        return lastComparison;
12470
      }
3430 rajveer 12471
      if (isSetPassword()) {
12472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12473
        if (lastComparison != 0) {
12474
          return lastComparison;
12475
        }
750 chandransh 12476
      }
12477
      return 0;
12478
    }
12479
 
3430 rajveer 12480
    public _Fields fieldForId(int fieldId) {
12481
      return _Fields.findByThriftId(fieldId);
12482
    }
12483
 
12484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12485
      org.apache.thrift.protocol.TField field;
750 chandransh 12486
      iprot.readStructBegin();
12487
      while (true)
12488
      {
12489
        field = iprot.readFieldBegin();
3430 rajveer 12490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12491
          break;
12492
        }
3430 rajveer 12493
        switch (field.id) {
12494
          case 1: // USERNAME
12495
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12496
              this.username = iprot.readString();
12497
            } else { 
12498
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12499
            }
12500
            break;
12501
          case 2: // PASSWORD
12502
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12503
              this.password = iprot.readString();
12504
            } else { 
12505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12506
            }
12507
            break;
12508
          default:
12509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12510
        }
3430 rajveer 12511
        iprot.readFieldEnd();
750 chandransh 12512
      }
12513
      iprot.readStructEnd();
12514
      validate();
12515
    }
12516
 
3430 rajveer 12517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12518
      validate();
12519
 
12520
      oprot.writeStructBegin(STRUCT_DESC);
12521
      if (this.username != null) {
12522
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12523
        oprot.writeString(this.username);
12524
        oprot.writeFieldEnd();
12525
      }
12526
      if (this.password != null) {
12527
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12528
        oprot.writeString(this.password);
12529
        oprot.writeFieldEnd();
12530
      }
12531
      oprot.writeFieldStop();
12532
      oprot.writeStructEnd();
12533
    }
12534
 
12535
    @Override
12536
    public String toString() {
12537
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12538
      boolean first = true;
12539
 
12540
      sb.append("username:");
12541
      if (this.username == null) {
12542
        sb.append("null");
12543
      } else {
12544
        sb.append(this.username);
12545
      }
12546
      first = false;
12547
      if (!first) sb.append(", ");
12548
      sb.append("password:");
12549
      if (this.password == null) {
12550
        sb.append("null");
12551
      } else {
12552
        sb.append(this.password);
12553
      }
12554
      first = false;
12555
      sb.append(")");
12556
      return sb.toString();
12557
    }
12558
 
3430 rajveer 12559
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12560
      // check for required fields
12561
    }
12562
 
3430 rajveer 12563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12564
      try {
12565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12566
      } catch (org.apache.thrift.TException te) {
12567
        throw new java.io.IOException(te);
12568
      }
12569
    }
12570
 
12571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12572
      try {
12573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12574
      } catch (org.apache.thrift.TException te) {
12575
        throw new java.io.IOException(te);
12576
      }
12577
    }
12578
 
750 chandransh 12579
  }
12580
 
3430 rajveer 12581
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12583
 
3430 rajveer 12584
    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);
12585
    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 12586
 
3430 rajveer 12587
    private LogisticsUser success; // required
12588
    private HelperServiceException hse; // required
750 chandransh 12589
 
12590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12592
      SUCCESS((short)0, "success"),
12593
      HSE((short)1, "hse");
12594
 
12595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12596
 
12597
      static {
12598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12599
          byName.put(field.getFieldName(), field);
12600
        }
12601
      }
12602
 
12603
      /**
12604
       * Find the _Fields constant that matches fieldId, or null if its not found.
12605
       */
12606
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12607
        switch(fieldId) {
12608
          case 0: // SUCCESS
12609
            return SUCCESS;
12610
          case 1: // HSE
12611
            return HSE;
12612
          default:
12613
            return null;
12614
        }
750 chandransh 12615
      }
12616
 
12617
      /**
12618
       * Find the _Fields constant that matches fieldId, throwing an exception
12619
       * if it is not found.
12620
       */
12621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12622
        _Fields fields = findByThriftId(fieldId);
12623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12624
        return fields;
12625
      }
12626
 
12627
      /**
12628
       * Find the _Fields constant that matches name, or null if its not found.
12629
       */
12630
      public static _Fields findByName(String name) {
12631
        return byName.get(name);
12632
      }
12633
 
12634
      private final short _thriftId;
12635
      private final String _fieldName;
12636
 
12637
      _Fields(short thriftId, String fieldName) {
12638
        _thriftId = thriftId;
12639
        _fieldName = fieldName;
12640
      }
12641
 
12642
      public short getThriftFieldId() {
12643
        return _thriftId;
12644
      }
12645
 
12646
      public String getFieldName() {
12647
        return _fieldName;
12648
      }
12649
    }
12650
 
12651
    // isset id assignments
12652
 
3430 rajveer 12653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12654
    static {
3430 rajveer 12655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12656
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12657
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12658
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12662
    }
12663
 
12664
    public authenticateLogisticsUser_result() {
12665
    }
12666
 
12667
    public authenticateLogisticsUser_result(
12668
      LogisticsUser success,
12669
      HelperServiceException hse)
12670
    {
12671
      this();
12672
      this.success = success;
12673
      this.hse = hse;
12674
    }
12675
 
12676
    /**
12677
     * Performs a deep copy on <i>other</i>.
12678
     */
12679
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12680
      if (other.isSetSuccess()) {
12681
        this.success = new LogisticsUser(other.success);
12682
      }
12683
      if (other.isSetHse()) {
12684
        this.hse = new HelperServiceException(other.hse);
12685
      }
12686
    }
12687
 
12688
    public authenticateLogisticsUser_result deepCopy() {
12689
      return new authenticateLogisticsUser_result(this);
12690
    }
12691
 
3430 rajveer 12692
    @Override
12693
    public void clear() {
12694
      this.success = null;
12695
      this.hse = null;
750 chandransh 12696
    }
12697
 
12698
    public LogisticsUser getSuccess() {
12699
      return this.success;
12700
    }
12701
 
3430 rajveer 12702
    public void setSuccess(LogisticsUser success) {
750 chandransh 12703
      this.success = success;
12704
    }
12705
 
12706
    public void unsetSuccess() {
12707
      this.success = null;
12708
    }
12709
 
3430 rajveer 12710
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12711
    public boolean isSetSuccess() {
12712
      return this.success != null;
12713
    }
12714
 
12715
    public void setSuccessIsSet(boolean value) {
12716
      if (!value) {
12717
        this.success = null;
12718
      }
12719
    }
12720
 
12721
    public HelperServiceException getHse() {
12722
      return this.hse;
12723
    }
12724
 
3430 rajveer 12725
    public void setHse(HelperServiceException hse) {
750 chandransh 12726
      this.hse = hse;
12727
    }
12728
 
12729
    public void unsetHse() {
12730
      this.hse = null;
12731
    }
12732
 
3430 rajveer 12733
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12734
    public boolean isSetHse() {
12735
      return this.hse != null;
12736
    }
12737
 
12738
    public void setHseIsSet(boolean value) {
12739
      if (!value) {
12740
        this.hse = null;
12741
      }
12742
    }
12743
 
12744
    public void setFieldValue(_Fields field, Object value) {
12745
      switch (field) {
12746
      case SUCCESS:
12747
        if (value == null) {
12748
          unsetSuccess();
12749
        } else {
12750
          setSuccess((LogisticsUser)value);
12751
        }
12752
        break;
12753
 
12754
      case HSE:
12755
        if (value == null) {
12756
          unsetHse();
12757
        } else {
12758
          setHse((HelperServiceException)value);
12759
        }
12760
        break;
12761
 
12762
      }
12763
    }
12764
 
12765
    public Object getFieldValue(_Fields field) {
12766
      switch (field) {
12767
      case SUCCESS:
12768
        return getSuccess();
12769
 
12770
      case HSE:
12771
        return getHse();
12772
 
12773
      }
12774
      throw new IllegalStateException();
12775
    }
12776
 
3430 rajveer 12777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12778
    public boolean isSet(_Fields field) {
12779
      if (field == null) {
12780
        throw new IllegalArgumentException();
12781
      }
750 chandransh 12782
 
12783
      switch (field) {
12784
      case SUCCESS:
12785
        return isSetSuccess();
12786
      case HSE:
12787
        return isSetHse();
12788
      }
12789
      throw new IllegalStateException();
12790
    }
12791
 
12792
    @Override
12793
    public boolean equals(Object that) {
12794
      if (that == null)
12795
        return false;
12796
      if (that instanceof authenticateLogisticsUser_result)
12797
        return this.equals((authenticateLogisticsUser_result)that);
12798
      return false;
12799
    }
12800
 
12801
    public boolean equals(authenticateLogisticsUser_result that) {
12802
      if (that == null)
12803
        return false;
12804
 
12805
      boolean this_present_success = true && this.isSetSuccess();
12806
      boolean that_present_success = true && that.isSetSuccess();
12807
      if (this_present_success || that_present_success) {
12808
        if (!(this_present_success && that_present_success))
12809
          return false;
12810
        if (!this.success.equals(that.success))
12811
          return false;
12812
      }
12813
 
12814
      boolean this_present_hse = true && this.isSetHse();
12815
      boolean that_present_hse = true && that.isSetHse();
12816
      if (this_present_hse || that_present_hse) {
12817
        if (!(this_present_hse && that_present_hse))
12818
          return false;
12819
        if (!this.hse.equals(that.hse))
12820
          return false;
12821
      }
12822
 
12823
      return true;
12824
    }
12825
 
12826
    @Override
12827
    public int hashCode() {
12828
      return 0;
12829
    }
12830
 
12831
    public int compareTo(authenticateLogisticsUser_result other) {
12832
      if (!getClass().equals(other.getClass())) {
12833
        return getClass().getName().compareTo(other.getClass().getName());
12834
      }
12835
 
12836
      int lastComparison = 0;
12837
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12838
 
3430 rajveer 12839
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12840
      if (lastComparison != 0) {
12841
        return lastComparison;
12842
      }
3430 rajveer 12843
      if (isSetSuccess()) {
12844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12845
        if (lastComparison != 0) {
12846
          return lastComparison;
12847
        }
750 chandransh 12848
      }
3430 rajveer 12849
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12850
      if (lastComparison != 0) {
12851
        return lastComparison;
12852
      }
3430 rajveer 12853
      if (isSetHse()) {
12854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12855
        if (lastComparison != 0) {
12856
          return lastComparison;
12857
        }
750 chandransh 12858
      }
12859
      return 0;
12860
    }
12861
 
3430 rajveer 12862
    public _Fields fieldForId(int fieldId) {
12863
      return _Fields.findByThriftId(fieldId);
12864
    }
12865
 
12866
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12867
      org.apache.thrift.protocol.TField field;
750 chandransh 12868
      iprot.readStructBegin();
12869
      while (true)
12870
      {
12871
        field = iprot.readFieldBegin();
3430 rajveer 12872
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12873
          break;
12874
        }
3430 rajveer 12875
        switch (field.id) {
12876
          case 0: // SUCCESS
12877
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12878
              this.success = new LogisticsUser();
12879
              this.success.read(iprot);
12880
            } else { 
12881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12882
            }
12883
            break;
12884
          case 1: // HSE
12885
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12886
              this.hse = new HelperServiceException();
12887
              this.hse.read(iprot);
12888
            } else { 
12889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12890
            }
12891
            break;
12892
          default:
12893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12894
        }
3430 rajveer 12895
        iprot.readFieldEnd();
750 chandransh 12896
      }
12897
      iprot.readStructEnd();
12898
      validate();
12899
    }
12900
 
3430 rajveer 12901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12902
      oprot.writeStructBegin(STRUCT_DESC);
12903
 
12904
      if (this.isSetSuccess()) {
12905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12906
        this.success.write(oprot);
12907
        oprot.writeFieldEnd();
12908
      } else if (this.isSetHse()) {
12909
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12910
        this.hse.write(oprot);
12911
        oprot.writeFieldEnd();
12912
      }
12913
      oprot.writeFieldStop();
12914
      oprot.writeStructEnd();
12915
    }
12916
 
12917
    @Override
12918
    public String toString() {
12919
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12920
      boolean first = true;
12921
 
12922
      sb.append("success:");
12923
      if (this.success == null) {
12924
        sb.append("null");
12925
      } else {
12926
        sb.append(this.success);
12927
      }
12928
      first = false;
12929
      if (!first) sb.append(", ");
12930
      sb.append("hse:");
12931
      if (this.hse == null) {
12932
        sb.append("null");
12933
      } else {
12934
        sb.append(this.hse);
12935
      }
12936
      first = false;
12937
      sb.append(")");
12938
      return sb.toString();
12939
    }
12940
 
3430 rajveer 12941
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12942
      // check for required fields
12943
    }
12944
 
3430 rajveer 12945
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12946
      try {
12947
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12948
      } catch (org.apache.thrift.TException te) {
12949
        throw new java.io.IOException(te);
12950
      }
12951
    }
12952
 
12953
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12954
      try {
12955
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12956
      } catch (org.apache.thrift.TException te) {
12957
        throw new java.io.IOException(te);
12958
      }
12959
    }
12960
 
750 chandransh 12961
  }
12962
 
3430 rajveer 12963
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12964
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 12965
 
3430 rajveer 12966
    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);
12967
    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 12968
 
3430 rajveer 12969
    private String username; // required
12970
    private String password; // required
1611 ankur.sing 12971
 
12972
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12973
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12974
      USERNAME((short)1, "username"),
12975
      PASSWORD((short)2, "password");
12976
 
12977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12978
 
12979
      static {
12980
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12981
          byName.put(field.getFieldName(), field);
12982
        }
12983
      }
12984
 
12985
      /**
12986
       * Find the _Fields constant that matches fieldId, or null if its not found.
12987
       */
12988
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12989
        switch(fieldId) {
12990
          case 1: // USERNAME
12991
            return USERNAME;
12992
          case 2: // PASSWORD
12993
            return PASSWORD;
12994
          default:
12995
            return null;
12996
        }
1611 ankur.sing 12997
      }
12998
 
12999
      /**
13000
       * Find the _Fields constant that matches fieldId, throwing an exception
13001
       * if it is not found.
13002
       */
13003
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13004
        _Fields fields = findByThriftId(fieldId);
13005
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13006
        return fields;
13007
      }
13008
 
13009
      /**
13010
       * Find the _Fields constant that matches name, or null if its not found.
13011
       */
13012
      public static _Fields findByName(String name) {
13013
        return byName.get(name);
13014
      }
13015
 
13016
      private final short _thriftId;
13017
      private final String _fieldName;
13018
 
13019
      _Fields(short thriftId, String fieldName) {
13020
        _thriftId = thriftId;
13021
        _fieldName = fieldName;
13022
      }
13023
 
13024
      public short getThriftFieldId() {
13025
        return _thriftId;
13026
      }
13027
 
13028
      public String getFieldName() {
13029
        return _fieldName;
13030
      }
13031
    }
13032
 
13033
    // isset id assignments
13034
 
3430 rajveer 13035
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13036
    static {
3430 rajveer 13037
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13038
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13040
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13042
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13043
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13044
    }
13045
 
13046
    public authenticateStatisticsUser_args() {
13047
    }
13048
 
13049
    public authenticateStatisticsUser_args(
13050
      String username,
13051
      String password)
13052
    {
13053
      this();
13054
      this.username = username;
13055
      this.password = password;
13056
    }
13057
 
13058
    /**
13059
     * Performs a deep copy on <i>other</i>.
13060
     */
13061
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13062
      if (other.isSetUsername()) {
13063
        this.username = other.username;
13064
      }
13065
      if (other.isSetPassword()) {
13066
        this.password = other.password;
13067
      }
13068
    }
13069
 
13070
    public authenticateStatisticsUser_args deepCopy() {
13071
      return new authenticateStatisticsUser_args(this);
13072
    }
13073
 
3430 rajveer 13074
    @Override
13075
    public void clear() {
13076
      this.username = null;
13077
      this.password = null;
1611 ankur.sing 13078
    }
13079
 
13080
    public String getUsername() {
13081
      return this.username;
13082
    }
13083
 
3430 rajveer 13084
    public void setUsername(String username) {
1611 ankur.sing 13085
      this.username = username;
13086
    }
13087
 
13088
    public void unsetUsername() {
13089
      this.username = null;
13090
    }
13091
 
3430 rajveer 13092
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13093
    public boolean isSetUsername() {
13094
      return this.username != null;
13095
    }
13096
 
13097
    public void setUsernameIsSet(boolean value) {
13098
      if (!value) {
13099
        this.username = null;
13100
      }
13101
    }
13102
 
13103
    public String getPassword() {
13104
      return this.password;
13105
    }
13106
 
3430 rajveer 13107
    public void setPassword(String password) {
1611 ankur.sing 13108
      this.password = password;
13109
    }
13110
 
13111
    public void unsetPassword() {
13112
      this.password = null;
13113
    }
13114
 
3430 rajveer 13115
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13116
    public boolean isSetPassword() {
13117
      return this.password != null;
13118
    }
13119
 
13120
    public void setPasswordIsSet(boolean value) {
13121
      if (!value) {
13122
        this.password = null;
13123
      }
13124
    }
13125
 
13126
    public void setFieldValue(_Fields field, Object value) {
13127
      switch (field) {
13128
      case USERNAME:
13129
        if (value == null) {
13130
          unsetUsername();
13131
        } else {
13132
          setUsername((String)value);
13133
        }
13134
        break;
13135
 
13136
      case PASSWORD:
13137
        if (value == null) {
13138
          unsetPassword();
13139
        } else {
13140
          setPassword((String)value);
13141
        }
13142
        break;
13143
 
13144
      }
13145
    }
13146
 
13147
    public Object getFieldValue(_Fields field) {
13148
      switch (field) {
13149
      case USERNAME:
13150
        return getUsername();
13151
 
13152
      case PASSWORD:
13153
        return getPassword();
13154
 
13155
      }
13156
      throw new IllegalStateException();
13157
    }
13158
 
3430 rajveer 13159
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13160
    public boolean isSet(_Fields field) {
13161
      if (field == null) {
13162
        throw new IllegalArgumentException();
13163
      }
1611 ankur.sing 13164
 
13165
      switch (field) {
13166
      case USERNAME:
13167
        return isSetUsername();
13168
      case PASSWORD:
13169
        return isSetPassword();
13170
      }
13171
      throw new IllegalStateException();
13172
    }
13173
 
13174
    @Override
13175
    public boolean equals(Object that) {
13176
      if (that == null)
13177
        return false;
13178
      if (that instanceof authenticateStatisticsUser_args)
13179
        return this.equals((authenticateStatisticsUser_args)that);
13180
      return false;
13181
    }
13182
 
13183
    public boolean equals(authenticateStatisticsUser_args that) {
13184
      if (that == null)
13185
        return false;
13186
 
13187
      boolean this_present_username = true && this.isSetUsername();
13188
      boolean that_present_username = true && that.isSetUsername();
13189
      if (this_present_username || that_present_username) {
13190
        if (!(this_present_username && that_present_username))
13191
          return false;
13192
        if (!this.username.equals(that.username))
13193
          return false;
13194
      }
13195
 
13196
      boolean this_present_password = true && this.isSetPassword();
13197
      boolean that_present_password = true && that.isSetPassword();
13198
      if (this_present_password || that_present_password) {
13199
        if (!(this_present_password && that_present_password))
13200
          return false;
13201
        if (!this.password.equals(that.password))
13202
          return false;
13203
      }
13204
 
13205
      return true;
13206
    }
13207
 
13208
    @Override
13209
    public int hashCode() {
13210
      return 0;
13211
    }
13212
 
13213
    public int compareTo(authenticateStatisticsUser_args other) {
13214
      if (!getClass().equals(other.getClass())) {
13215
        return getClass().getName().compareTo(other.getClass().getName());
13216
      }
13217
 
13218
      int lastComparison = 0;
13219
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13220
 
3430 rajveer 13221
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13222
      if (lastComparison != 0) {
13223
        return lastComparison;
13224
      }
3430 rajveer 13225
      if (isSetUsername()) {
13226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13227
        if (lastComparison != 0) {
13228
          return lastComparison;
13229
        }
1611 ankur.sing 13230
      }
3430 rajveer 13231
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13232
      if (lastComparison != 0) {
13233
        return lastComparison;
13234
      }
3430 rajveer 13235
      if (isSetPassword()) {
13236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13237
        if (lastComparison != 0) {
13238
          return lastComparison;
13239
        }
1611 ankur.sing 13240
      }
13241
      return 0;
13242
    }
13243
 
3430 rajveer 13244
    public _Fields fieldForId(int fieldId) {
13245
      return _Fields.findByThriftId(fieldId);
13246
    }
13247
 
13248
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13249
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13250
      iprot.readStructBegin();
13251
      while (true)
13252
      {
13253
        field = iprot.readFieldBegin();
3430 rajveer 13254
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13255
          break;
13256
        }
3430 rajveer 13257
        switch (field.id) {
13258
          case 1: // USERNAME
13259
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13260
              this.username = iprot.readString();
13261
            } else { 
13262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13263
            }
13264
            break;
13265
          case 2: // PASSWORD
13266
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13267
              this.password = iprot.readString();
13268
            } else { 
13269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13270
            }
13271
            break;
13272
          default:
13273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13274
        }
3430 rajveer 13275
        iprot.readFieldEnd();
1611 ankur.sing 13276
      }
13277
      iprot.readStructEnd();
13278
      validate();
13279
    }
13280
 
3430 rajveer 13281
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13282
      validate();
13283
 
13284
      oprot.writeStructBegin(STRUCT_DESC);
13285
      if (this.username != null) {
13286
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13287
        oprot.writeString(this.username);
13288
        oprot.writeFieldEnd();
13289
      }
13290
      if (this.password != null) {
13291
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13292
        oprot.writeString(this.password);
13293
        oprot.writeFieldEnd();
13294
      }
13295
      oprot.writeFieldStop();
13296
      oprot.writeStructEnd();
13297
    }
13298
 
13299
    @Override
13300
    public String toString() {
13301
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13302
      boolean first = true;
13303
 
13304
      sb.append("username:");
13305
      if (this.username == null) {
13306
        sb.append("null");
13307
      } else {
13308
        sb.append(this.username);
13309
      }
13310
      first = false;
13311
      if (!first) sb.append(", ");
13312
      sb.append("password:");
13313
      if (this.password == null) {
13314
        sb.append("null");
13315
      } else {
13316
        sb.append(this.password);
13317
      }
13318
      first = false;
13319
      sb.append(")");
13320
      return sb.toString();
13321
    }
13322
 
3430 rajveer 13323
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13324
      // check for required fields
13325
    }
13326
 
3430 rajveer 13327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13328
      try {
13329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13330
      } catch (org.apache.thrift.TException te) {
13331
        throw new java.io.IOException(te);
13332
      }
13333
    }
13334
 
13335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13336
      try {
13337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13338
      } catch (org.apache.thrift.TException te) {
13339
        throw new java.io.IOException(te);
13340
      }
13341
    }
13342
 
1611 ankur.sing 13343
  }
13344
 
3430 rajveer 13345
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13347
 
3430 rajveer 13348
    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);
13349
    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 13350
 
3430 rajveer 13351
    private StatisticsUser success; // required
13352
    private HelperServiceException hse; // required
1611 ankur.sing 13353
 
13354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13356
      SUCCESS((short)0, "success"),
13357
      HSE((short)1, "hse");
13358
 
13359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13360
 
13361
      static {
13362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13363
          byName.put(field.getFieldName(), field);
13364
        }
13365
      }
13366
 
13367
      /**
13368
       * Find the _Fields constant that matches fieldId, or null if its not found.
13369
       */
13370
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13371
        switch(fieldId) {
13372
          case 0: // SUCCESS
13373
            return SUCCESS;
13374
          case 1: // HSE
13375
            return HSE;
13376
          default:
13377
            return null;
13378
        }
1611 ankur.sing 13379
      }
13380
 
13381
      /**
13382
       * Find the _Fields constant that matches fieldId, throwing an exception
13383
       * if it is not found.
13384
       */
13385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13386
        _Fields fields = findByThriftId(fieldId);
13387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13388
        return fields;
13389
      }
13390
 
13391
      /**
13392
       * Find the _Fields constant that matches name, or null if its not found.
13393
       */
13394
      public static _Fields findByName(String name) {
13395
        return byName.get(name);
13396
      }
13397
 
13398
      private final short _thriftId;
13399
      private final String _fieldName;
13400
 
13401
      _Fields(short thriftId, String fieldName) {
13402
        _thriftId = thriftId;
13403
        _fieldName = fieldName;
13404
      }
13405
 
13406
      public short getThriftFieldId() {
13407
        return _thriftId;
13408
      }
13409
 
13410
      public String getFieldName() {
13411
        return _fieldName;
13412
      }
13413
    }
13414
 
13415
    // isset id assignments
13416
 
3430 rajveer 13417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13418
    static {
3430 rajveer 13419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13421
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13422
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13426
    }
13427
 
13428
    public authenticateStatisticsUser_result() {
13429
    }
13430
 
13431
    public authenticateStatisticsUser_result(
13432
      StatisticsUser success,
13433
      HelperServiceException hse)
13434
    {
13435
      this();
13436
      this.success = success;
13437
      this.hse = hse;
13438
    }
13439
 
13440
    /**
13441
     * Performs a deep copy on <i>other</i>.
13442
     */
13443
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13444
      if (other.isSetSuccess()) {
13445
        this.success = new StatisticsUser(other.success);
13446
      }
13447
      if (other.isSetHse()) {
13448
        this.hse = new HelperServiceException(other.hse);
13449
      }
13450
    }
13451
 
13452
    public authenticateStatisticsUser_result deepCopy() {
13453
      return new authenticateStatisticsUser_result(this);
13454
    }
13455
 
3430 rajveer 13456
    @Override
13457
    public void clear() {
13458
      this.success = null;
13459
      this.hse = null;
1611 ankur.sing 13460
    }
13461
 
13462
    public StatisticsUser getSuccess() {
13463
      return this.success;
13464
    }
13465
 
3430 rajveer 13466
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13467
      this.success = success;
13468
    }
13469
 
13470
    public void unsetSuccess() {
13471
      this.success = null;
13472
    }
13473
 
3430 rajveer 13474
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13475
    public boolean isSetSuccess() {
13476
      return this.success != null;
13477
    }
13478
 
13479
    public void setSuccessIsSet(boolean value) {
13480
      if (!value) {
13481
        this.success = null;
13482
      }
13483
    }
13484
 
13485
    public HelperServiceException getHse() {
13486
      return this.hse;
13487
    }
13488
 
3430 rajveer 13489
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13490
      this.hse = hse;
13491
    }
13492
 
13493
    public void unsetHse() {
13494
      this.hse = null;
13495
    }
13496
 
3430 rajveer 13497
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13498
    public boolean isSetHse() {
13499
      return this.hse != null;
13500
    }
13501
 
13502
    public void setHseIsSet(boolean value) {
13503
      if (!value) {
13504
        this.hse = null;
13505
      }
13506
    }
13507
 
13508
    public void setFieldValue(_Fields field, Object value) {
13509
      switch (field) {
13510
      case SUCCESS:
13511
        if (value == null) {
13512
          unsetSuccess();
13513
        } else {
13514
          setSuccess((StatisticsUser)value);
13515
        }
13516
        break;
13517
 
13518
      case HSE:
13519
        if (value == null) {
13520
          unsetHse();
13521
        } else {
13522
          setHse((HelperServiceException)value);
13523
        }
13524
        break;
13525
 
13526
      }
13527
    }
13528
 
13529
    public Object getFieldValue(_Fields field) {
13530
      switch (field) {
13531
      case SUCCESS:
13532
        return getSuccess();
13533
 
13534
      case HSE:
13535
        return getHse();
13536
 
13537
      }
13538
      throw new IllegalStateException();
13539
    }
13540
 
3430 rajveer 13541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13542
    public boolean isSet(_Fields field) {
13543
      if (field == null) {
13544
        throw new IllegalArgumentException();
13545
      }
1611 ankur.sing 13546
 
13547
      switch (field) {
13548
      case SUCCESS:
13549
        return isSetSuccess();
13550
      case HSE:
13551
        return isSetHse();
13552
      }
13553
      throw new IllegalStateException();
13554
    }
13555
 
13556
    @Override
13557
    public boolean equals(Object that) {
13558
      if (that == null)
13559
        return false;
13560
      if (that instanceof authenticateStatisticsUser_result)
13561
        return this.equals((authenticateStatisticsUser_result)that);
13562
      return false;
13563
    }
13564
 
13565
    public boolean equals(authenticateStatisticsUser_result that) {
13566
      if (that == null)
13567
        return false;
13568
 
13569
      boolean this_present_success = true && this.isSetSuccess();
13570
      boolean that_present_success = true && that.isSetSuccess();
13571
      if (this_present_success || that_present_success) {
13572
        if (!(this_present_success && that_present_success))
13573
          return false;
13574
        if (!this.success.equals(that.success))
13575
          return false;
13576
      }
13577
 
13578
      boolean this_present_hse = true && this.isSetHse();
13579
      boolean that_present_hse = true && that.isSetHse();
13580
      if (this_present_hse || that_present_hse) {
13581
        if (!(this_present_hse && that_present_hse))
13582
          return false;
13583
        if (!this.hse.equals(that.hse))
13584
          return false;
13585
      }
13586
 
13587
      return true;
13588
    }
13589
 
13590
    @Override
13591
    public int hashCode() {
13592
      return 0;
13593
    }
13594
 
13595
    public int compareTo(authenticateStatisticsUser_result other) {
13596
      if (!getClass().equals(other.getClass())) {
13597
        return getClass().getName().compareTo(other.getClass().getName());
13598
      }
13599
 
13600
      int lastComparison = 0;
13601
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13602
 
3430 rajveer 13603
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13604
      if (lastComparison != 0) {
13605
        return lastComparison;
13606
      }
3430 rajveer 13607
      if (isSetSuccess()) {
13608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13609
        if (lastComparison != 0) {
13610
          return lastComparison;
13611
        }
1611 ankur.sing 13612
      }
3430 rajveer 13613
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13614
      if (lastComparison != 0) {
13615
        return lastComparison;
13616
      }
3430 rajveer 13617
      if (isSetHse()) {
13618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13619
        if (lastComparison != 0) {
13620
          return lastComparison;
13621
        }
1611 ankur.sing 13622
      }
13623
      return 0;
13624
    }
13625
 
3430 rajveer 13626
    public _Fields fieldForId(int fieldId) {
13627
      return _Fields.findByThriftId(fieldId);
13628
    }
13629
 
13630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13631
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13632
      iprot.readStructBegin();
13633
      while (true)
13634
      {
13635
        field = iprot.readFieldBegin();
3430 rajveer 13636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13637
          break;
13638
        }
3430 rajveer 13639
        switch (field.id) {
13640
          case 0: // SUCCESS
13641
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13642
              this.success = new StatisticsUser();
13643
              this.success.read(iprot);
13644
            } else { 
13645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13646
            }
13647
            break;
13648
          case 1: // HSE
13649
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13650
              this.hse = new HelperServiceException();
13651
              this.hse.read(iprot);
13652
            } else { 
13653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13654
            }
13655
            break;
13656
          default:
13657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13658
        }
3430 rajveer 13659
        iprot.readFieldEnd();
1611 ankur.sing 13660
      }
13661
      iprot.readStructEnd();
13662
      validate();
13663
    }
13664
 
3430 rajveer 13665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13666
      oprot.writeStructBegin(STRUCT_DESC);
13667
 
13668
      if (this.isSetSuccess()) {
13669
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13670
        this.success.write(oprot);
13671
        oprot.writeFieldEnd();
13672
      } else if (this.isSetHse()) {
13673
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13674
        this.hse.write(oprot);
13675
        oprot.writeFieldEnd();
13676
      }
13677
      oprot.writeFieldStop();
13678
      oprot.writeStructEnd();
13679
    }
13680
 
13681
    @Override
13682
    public String toString() {
13683
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13684
      boolean first = true;
13685
 
13686
      sb.append("success:");
13687
      if (this.success == null) {
13688
        sb.append("null");
13689
      } else {
13690
        sb.append(this.success);
13691
      }
13692
      first = false;
13693
      if (!first) sb.append(", ");
13694
      sb.append("hse:");
13695
      if (this.hse == null) {
13696
        sb.append("null");
13697
      } else {
13698
        sb.append(this.hse);
13699
      }
13700
      first = false;
13701
      sb.append(")");
13702
      return sb.toString();
13703
    }
13704
 
3430 rajveer 13705
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13706
      // check for required fields
13707
    }
13708
 
3430 rajveer 13709
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13710
      try {
13711
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13712
      } catch (org.apache.thrift.TException te) {
13713
        throw new java.io.IOException(te);
13714
      }
13715
    }
13716
 
13717
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13718
      try {
13719
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13720
      } catch (org.apache.thrift.TException te) {
13721
        throw new java.io.IOException(te);
13722
      }
13723
    }
13724
 
1611 ankur.sing 13725
  }
13726
 
3430 rajveer 13727
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13728
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13729
 
3430 rajveer 13730
    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);
13731
    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 13732
 
3430 rajveer 13733
    private String username; // required
13734
    private String password; // required
1891 ankur.sing 13735
 
13736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13738
      USERNAME((short)1, "username"),
13739
      PASSWORD((short)2, "password");
13740
 
13741
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13742
 
13743
      static {
13744
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13745
          byName.put(field.getFieldName(), field);
13746
        }
13747
      }
13748
 
13749
      /**
13750
       * Find the _Fields constant that matches fieldId, or null if its not found.
13751
       */
13752
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13753
        switch(fieldId) {
13754
          case 1: // USERNAME
13755
            return USERNAME;
13756
          case 2: // PASSWORD
13757
            return PASSWORD;
13758
          default:
13759
            return null;
13760
        }
1891 ankur.sing 13761
      }
13762
 
13763
      /**
13764
       * Find the _Fields constant that matches fieldId, throwing an exception
13765
       * if it is not found.
13766
       */
13767
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13768
        _Fields fields = findByThriftId(fieldId);
13769
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13770
        return fields;
13771
      }
13772
 
13773
      /**
13774
       * Find the _Fields constant that matches name, or null if its not found.
13775
       */
13776
      public static _Fields findByName(String name) {
13777
        return byName.get(name);
13778
      }
13779
 
13780
      private final short _thriftId;
13781
      private final String _fieldName;
13782
 
13783
      _Fields(short thriftId, String fieldName) {
13784
        _thriftId = thriftId;
13785
        _fieldName = fieldName;
13786
      }
13787
 
13788
      public short getThriftFieldId() {
13789
        return _thriftId;
13790
      }
13791
 
13792
      public String getFieldName() {
13793
        return _fieldName;
13794
      }
13795
    }
13796
 
13797
    // isset id assignments
13798
 
3430 rajveer 13799
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13800
    static {
3430 rajveer 13801
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13802
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13804
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13806
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13807
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13808
    }
13809
 
13810
    public authenticateReportUser_args() {
13811
    }
13812
 
13813
    public authenticateReportUser_args(
13814
      String username,
13815
      String password)
13816
    {
13817
      this();
13818
      this.username = username;
13819
      this.password = password;
13820
    }
13821
 
13822
    /**
13823
     * Performs a deep copy on <i>other</i>.
13824
     */
13825
    public authenticateReportUser_args(authenticateReportUser_args other) {
13826
      if (other.isSetUsername()) {
13827
        this.username = other.username;
13828
      }
13829
      if (other.isSetPassword()) {
13830
        this.password = other.password;
13831
      }
13832
    }
13833
 
13834
    public authenticateReportUser_args deepCopy() {
13835
      return new authenticateReportUser_args(this);
13836
    }
13837
 
3430 rajveer 13838
    @Override
13839
    public void clear() {
13840
      this.username = null;
13841
      this.password = null;
1891 ankur.sing 13842
    }
13843
 
13844
    public String getUsername() {
13845
      return this.username;
13846
    }
13847
 
3430 rajveer 13848
    public void setUsername(String username) {
1891 ankur.sing 13849
      this.username = username;
13850
    }
13851
 
13852
    public void unsetUsername() {
13853
      this.username = null;
13854
    }
13855
 
3430 rajveer 13856
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13857
    public boolean isSetUsername() {
13858
      return this.username != null;
13859
    }
13860
 
13861
    public void setUsernameIsSet(boolean value) {
13862
      if (!value) {
13863
        this.username = null;
13864
      }
13865
    }
13866
 
13867
    public String getPassword() {
13868
      return this.password;
13869
    }
13870
 
3430 rajveer 13871
    public void setPassword(String password) {
1891 ankur.sing 13872
      this.password = password;
13873
    }
13874
 
13875
    public void unsetPassword() {
13876
      this.password = null;
13877
    }
13878
 
3430 rajveer 13879
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13880
    public boolean isSetPassword() {
13881
      return this.password != null;
13882
    }
13883
 
13884
    public void setPasswordIsSet(boolean value) {
13885
      if (!value) {
13886
        this.password = null;
13887
      }
13888
    }
13889
 
13890
    public void setFieldValue(_Fields field, Object value) {
13891
      switch (field) {
13892
      case USERNAME:
13893
        if (value == null) {
13894
          unsetUsername();
13895
        } else {
13896
          setUsername((String)value);
13897
        }
13898
        break;
13899
 
13900
      case PASSWORD:
13901
        if (value == null) {
13902
          unsetPassword();
13903
        } else {
13904
          setPassword((String)value);
13905
        }
13906
        break;
13907
 
13908
      }
13909
    }
13910
 
13911
    public Object getFieldValue(_Fields field) {
13912
      switch (field) {
13913
      case USERNAME:
13914
        return getUsername();
13915
 
13916
      case PASSWORD:
13917
        return getPassword();
13918
 
13919
      }
13920
      throw new IllegalStateException();
13921
    }
13922
 
3430 rajveer 13923
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13924
    public boolean isSet(_Fields field) {
13925
      if (field == null) {
13926
        throw new IllegalArgumentException();
13927
      }
1891 ankur.sing 13928
 
13929
      switch (field) {
13930
      case USERNAME:
13931
        return isSetUsername();
13932
      case PASSWORD:
13933
        return isSetPassword();
13934
      }
13935
      throw new IllegalStateException();
13936
    }
13937
 
13938
    @Override
13939
    public boolean equals(Object that) {
13940
      if (that == null)
13941
        return false;
13942
      if (that instanceof authenticateReportUser_args)
13943
        return this.equals((authenticateReportUser_args)that);
13944
      return false;
13945
    }
13946
 
13947
    public boolean equals(authenticateReportUser_args that) {
13948
      if (that == null)
13949
        return false;
13950
 
13951
      boolean this_present_username = true && this.isSetUsername();
13952
      boolean that_present_username = true && that.isSetUsername();
13953
      if (this_present_username || that_present_username) {
13954
        if (!(this_present_username && that_present_username))
13955
          return false;
13956
        if (!this.username.equals(that.username))
13957
          return false;
13958
      }
13959
 
13960
      boolean this_present_password = true && this.isSetPassword();
13961
      boolean that_present_password = true && that.isSetPassword();
13962
      if (this_present_password || that_present_password) {
13963
        if (!(this_present_password && that_present_password))
13964
          return false;
13965
        if (!this.password.equals(that.password))
13966
          return false;
13967
      }
13968
 
13969
      return true;
13970
    }
13971
 
13972
    @Override
13973
    public int hashCode() {
13974
      return 0;
13975
    }
13976
 
13977
    public int compareTo(authenticateReportUser_args other) {
13978
      if (!getClass().equals(other.getClass())) {
13979
        return getClass().getName().compareTo(other.getClass().getName());
13980
      }
13981
 
13982
      int lastComparison = 0;
13983
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
13984
 
3430 rajveer 13985
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 13986
      if (lastComparison != 0) {
13987
        return lastComparison;
13988
      }
3430 rajveer 13989
      if (isSetUsername()) {
13990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13991
        if (lastComparison != 0) {
13992
          return lastComparison;
13993
        }
1891 ankur.sing 13994
      }
3430 rajveer 13995
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 13996
      if (lastComparison != 0) {
13997
        return lastComparison;
13998
      }
3430 rajveer 13999
      if (isSetPassword()) {
14000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14001
        if (lastComparison != 0) {
14002
          return lastComparison;
14003
        }
1891 ankur.sing 14004
      }
14005
      return 0;
14006
    }
14007
 
3430 rajveer 14008
    public _Fields fieldForId(int fieldId) {
14009
      return _Fields.findByThriftId(fieldId);
14010
    }
14011
 
14012
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14013
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14014
      iprot.readStructBegin();
14015
      while (true)
14016
      {
14017
        field = iprot.readFieldBegin();
3430 rajveer 14018
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14019
          break;
14020
        }
3430 rajveer 14021
        switch (field.id) {
14022
          case 1: // USERNAME
14023
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14024
              this.username = iprot.readString();
14025
            } else { 
14026
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14027
            }
14028
            break;
14029
          case 2: // PASSWORD
14030
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14031
              this.password = iprot.readString();
14032
            } else { 
14033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14034
            }
14035
            break;
14036
          default:
14037
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14038
        }
3430 rajveer 14039
        iprot.readFieldEnd();
1891 ankur.sing 14040
      }
14041
      iprot.readStructEnd();
14042
      validate();
14043
    }
14044
 
3430 rajveer 14045
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14046
      validate();
14047
 
14048
      oprot.writeStructBegin(STRUCT_DESC);
14049
      if (this.username != null) {
14050
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14051
        oprot.writeString(this.username);
14052
        oprot.writeFieldEnd();
14053
      }
14054
      if (this.password != null) {
14055
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14056
        oprot.writeString(this.password);
14057
        oprot.writeFieldEnd();
14058
      }
14059
      oprot.writeFieldStop();
14060
      oprot.writeStructEnd();
14061
    }
14062
 
14063
    @Override
14064
    public String toString() {
14065
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14066
      boolean first = true;
14067
 
14068
      sb.append("username:");
14069
      if (this.username == null) {
14070
        sb.append("null");
14071
      } else {
14072
        sb.append(this.username);
14073
      }
14074
      first = false;
14075
      if (!first) sb.append(", ");
14076
      sb.append("password:");
14077
      if (this.password == null) {
14078
        sb.append("null");
14079
      } else {
14080
        sb.append(this.password);
14081
      }
14082
      first = false;
14083
      sb.append(")");
14084
      return sb.toString();
14085
    }
14086
 
3430 rajveer 14087
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14088
      // check for required fields
14089
    }
14090
 
3430 rajveer 14091
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14092
      try {
14093
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14094
      } catch (org.apache.thrift.TException te) {
14095
        throw new java.io.IOException(te);
14096
      }
14097
    }
14098
 
14099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14100
      try {
14101
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14102
      } catch (org.apache.thrift.TException te) {
14103
        throw new java.io.IOException(te);
14104
      }
14105
    }
14106
 
1891 ankur.sing 14107
  }
14108
 
3430 rajveer 14109
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14110
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14111
 
3430 rajveer 14112
    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);
14113
    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 14114
 
3430 rajveer 14115
    private ReportUser success; // required
14116
    private HelperServiceException hse; // required
1891 ankur.sing 14117
 
14118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14120
      SUCCESS((short)0, "success"),
14121
      HSE((short)1, "hse");
14122
 
14123
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14124
 
14125
      static {
14126
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14127
          byName.put(field.getFieldName(), field);
14128
        }
14129
      }
14130
 
14131
      /**
14132
       * Find the _Fields constant that matches fieldId, or null if its not found.
14133
       */
14134
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14135
        switch(fieldId) {
14136
          case 0: // SUCCESS
14137
            return SUCCESS;
14138
          case 1: // HSE
14139
            return HSE;
14140
          default:
14141
            return null;
14142
        }
1891 ankur.sing 14143
      }
14144
 
14145
      /**
14146
       * Find the _Fields constant that matches fieldId, throwing an exception
14147
       * if it is not found.
14148
       */
14149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14150
        _Fields fields = findByThriftId(fieldId);
14151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14152
        return fields;
14153
      }
14154
 
14155
      /**
14156
       * Find the _Fields constant that matches name, or null if its not found.
14157
       */
14158
      public static _Fields findByName(String name) {
14159
        return byName.get(name);
14160
      }
14161
 
14162
      private final short _thriftId;
14163
      private final String _fieldName;
14164
 
14165
      _Fields(short thriftId, String fieldName) {
14166
        _thriftId = thriftId;
14167
        _fieldName = fieldName;
14168
      }
14169
 
14170
      public short getThriftFieldId() {
14171
        return _thriftId;
14172
      }
14173
 
14174
      public String getFieldName() {
14175
        return _fieldName;
14176
      }
14177
    }
14178
 
14179
    // isset id assignments
14180
 
3430 rajveer 14181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14182
    static {
3430 rajveer 14183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14184
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14185
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14186
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14187
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14190
    }
14191
 
14192
    public authenticateReportUser_result() {
14193
    }
14194
 
14195
    public authenticateReportUser_result(
14196
      ReportUser success,
14197
      HelperServiceException hse)
14198
    {
14199
      this();
14200
      this.success = success;
14201
      this.hse = hse;
14202
    }
14203
 
14204
    /**
14205
     * Performs a deep copy on <i>other</i>.
14206
     */
14207
    public authenticateReportUser_result(authenticateReportUser_result other) {
14208
      if (other.isSetSuccess()) {
14209
        this.success = new ReportUser(other.success);
14210
      }
14211
      if (other.isSetHse()) {
14212
        this.hse = new HelperServiceException(other.hse);
14213
      }
14214
    }
14215
 
14216
    public authenticateReportUser_result deepCopy() {
14217
      return new authenticateReportUser_result(this);
14218
    }
14219
 
3430 rajveer 14220
    @Override
14221
    public void clear() {
14222
      this.success = null;
14223
      this.hse = null;
1891 ankur.sing 14224
    }
14225
 
14226
    public ReportUser getSuccess() {
14227
      return this.success;
14228
    }
14229
 
3430 rajveer 14230
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14231
      this.success = success;
14232
    }
14233
 
14234
    public void unsetSuccess() {
14235
      this.success = null;
14236
    }
14237
 
3430 rajveer 14238
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14239
    public boolean isSetSuccess() {
14240
      return this.success != null;
14241
    }
14242
 
14243
    public void setSuccessIsSet(boolean value) {
14244
      if (!value) {
14245
        this.success = null;
14246
      }
14247
    }
14248
 
14249
    public HelperServiceException getHse() {
14250
      return this.hse;
14251
    }
14252
 
3430 rajveer 14253
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14254
      this.hse = hse;
14255
    }
14256
 
14257
    public void unsetHse() {
14258
      this.hse = null;
14259
    }
14260
 
3430 rajveer 14261
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14262
    public boolean isSetHse() {
14263
      return this.hse != null;
14264
    }
14265
 
14266
    public void setHseIsSet(boolean value) {
14267
      if (!value) {
14268
        this.hse = null;
14269
      }
14270
    }
14271
 
14272
    public void setFieldValue(_Fields field, Object value) {
14273
      switch (field) {
14274
      case SUCCESS:
14275
        if (value == null) {
14276
          unsetSuccess();
14277
        } else {
14278
          setSuccess((ReportUser)value);
14279
        }
14280
        break;
14281
 
14282
      case HSE:
14283
        if (value == null) {
14284
          unsetHse();
14285
        } else {
14286
          setHse((HelperServiceException)value);
14287
        }
14288
        break;
14289
 
14290
      }
14291
    }
14292
 
14293
    public Object getFieldValue(_Fields field) {
14294
      switch (field) {
14295
      case SUCCESS:
14296
        return getSuccess();
14297
 
14298
      case HSE:
14299
        return getHse();
14300
 
14301
      }
14302
      throw new IllegalStateException();
14303
    }
14304
 
3430 rajveer 14305
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14306
    public boolean isSet(_Fields field) {
14307
      if (field == null) {
14308
        throw new IllegalArgumentException();
14309
      }
1891 ankur.sing 14310
 
14311
      switch (field) {
14312
      case SUCCESS:
14313
        return isSetSuccess();
14314
      case HSE:
14315
        return isSetHse();
14316
      }
14317
      throw new IllegalStateException();
14318
    }
14319
 
14320
    @Override
14321
    public boolean equals(Object that) {
14322
      if (that == null)
14323
        return false;
14324
      if (that instanceof authenticateReportUser_result)
14325
        return this.equals((authenticateReportUser_result)that);
14326
      return false;
14327
    }
14328
 
14329
    public boolean equals(authenticateReportUser_result that) {
14330
      if (that == null)
14331
        return false;
14332
 
14333
      boolean this_present_success = true && this.isSetSuccess();
14334
      boolean that_present_success = true && that.isSetSuccess();
14335
      if (this_present_success || that_present_success) {
14336
        if (!(this_present_success && that_present_success))
14337
          return false;
14338
        if (!this.success.equals(that.success))
14339
          return false;
14340
      }
14341
 
14342
      boolean this_present_hse = true && this.isSetHse();
14343
      boolean that_present_hse = true && that.isSetHse();
14344
      if (this_present_hse || that_present_hse) {
14345
        if (!(this_present_hse && that_present_hse))
14346
          return false;
14347
        if (!this.hse.equals(that.hse))
14348
          return false;
14349
      }
14350
 
14351
      return true;
14352
    }
14353
 
14354
    @Override
14355
    public int hashCode() {
14356
      return 0;
14357
    }
14358
 
14359
    public int compareTo(authenticateReportUser_result other) {
14360
      if (!getClass().equals(other.getClass())) {
14361
        return getClass().getName().compareTo(other.getClass().getName());
14362
      }
14363
 
14364
      int lastComparison = 0;
14365
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14366
 
3430 rajveer 14367
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14368
      if (lastComparison != 0) {
14369
        return lastComparison;
14370
      }
3430 rajveer 14371
      if (isSetSuccess()) {
14372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14373
        if (lastComparison != 0) {
14374
          return lastComparison;
14375
        }
1891 ankur.sing 14376
      }
3430 rajveer 14377
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14378
      if (lastComparison != 0) {
14379
        return lastComparison;
14380
      }
3430 rajveer 14381
      if (isSetHse()) {
14382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14383
        if (lastComparison != 0) {
14384
          return lastComparison;
14385
        }
1891 ankur.sing 14386
      }
14387
      return 0;
14388
    }
14389
 
3430 rajveer 14390
    public _Fields fieldForId(int fieldId) {
14391
      return _Fields.findByThriftId(fieldId);
14392
    }
14393
 
14394
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14395
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14396
      iprot.readStructBegin();
14397
      while (true)
14398
      {
14399
        field = iprot.readFieldBegin();
3430 rajveer 14400
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14401
          break;
14402
        }
3430 rajveer 14403
        switch (field.id) {
14404
          case 0: // SUCCESS
14405
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14406
              this.success = new ReportUser();
14407
              this.success.read(iprot);
14408
            } else { 
14409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14410
            }
14411
            break;
14412
          case 1: // HSE
14413
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14414
              this.hse = new HelperServiceException();
14415
              this.hse.read(iprot);
14416
            } else { 
14417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14418
            }
14419
            break;
14420
          default:
14421
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14422
        }
3430 rajveer 14423
        iprot.readFieldEnd();
1891 ankur.sing 14424
      }
14425
      iprot.readStructEnd();
14426
      validate();
14427
    }
14428
 
3430 rajveer 14429
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14430
      oprot.writeStructBegin(STRUCT_DESC);
14431
 
14432
      if (this.isSetSuccess()) {
14433
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14434
        this.success.write(oprot);
14435
        oprot.writeFieldEnd();
14436
      } else if (this.isSetHse()) {
14437
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14438
        this.hse.write(oprot);
14439
        oprot.writeFieldEnd();
14440
      }
14441
      oprot.writeFieldStop();
14442
      oprot.writeStructEnd();
14443
    }
14444
 
14445
    @Override
14446
    public String toString() {
14447
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14448
      boolean first = true;
14449
 
14450
      sb.append("success:");
14451
      if (this.success == null) {
14452
        sb.append("null");
14453
      } else {
14454
        sb.append(this.success);
14455
      }
14456
      first = false;
14457
      if (!first) sb.append(", ");
14458
      sb.append("hse:");
14459
      if (this.hse == null) {
14460
        sb.append("null");
14461
      } else {
14462
        sb.append(this.hse);
14463
      }
14464
      first = false;
14465
      sb.append(")");
14466
      return sb.toString();
14467
    }
14468
 
3430 rajveer 14469
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14470
      // check for required fields
14471
    }
14472
 
3430 rajveer 14473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14474
      try {
14475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14476
      } catch (org.apache.thrift.TException te) {
14477
        throw new java.io.IOException(te);
14478
      }
14479
    }
14480
 
14481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14482
      try {
14483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14484
      } catch (org.apache.thrift.TException te) {
14485
        throw new java.io.IOException(te);
14486
      }
14487
    }
14488
 
1891 ankur.sing 14489
  }
14490
 
3430 rajveer 14491
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14493
 
3430 rajveer 14494
    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 14495
 
3430 rajveer 14496
    private long role; // required
1891 ankur.sing 14497
 
14498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14500
      ROLE((short)1, "role");
14501
 
14502
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14503
 
14504
      static {
14505
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14506
          byName.put(field.getFieldName(), field);
14507
        }
14508
      }
14509
 
14510
      /**
14511
       * Find the _Fields constant that matches fieldId, or null if its not found.
14512
       */
14513
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14514
        switch(fieldId) {
14515
          case 1: // ROLE
14516
            return ROLE;
14517
          default:
14518
            return null;
14519
        }
1891 ankur.sing 14520
      }
14521
 
14522
      /**
14523
       * Find the _Fields constant that matches fieldId, throwing an exception
14524
       * if it is not found.
14525
       */
14526
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14527
        _Fields fields = findByThriftId(fieldId);
14528
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14529
        return fields;
14530
      }
14531
 
14532
      /**
14533
       * Find the _Fields constant that matches name, or null if its not found.
14534
       */
14535
      public static _Fields findByName(String name) {
14536
        return byName.get(name);
14537
      }
14538
 
14539
      private final short _thriftId;
14540
      private final String _fieldName;
14541
 
14542
      _Fields(short thriftId, String fieldName) {
14543
        _thriftId = thriftId;
14544
        _fieldName = fieldName;
14545
      }
14546
 
14547
      public short getThriftFieldId() {
14548
        return _thriftId;
14549
      }
14550
 
14551
      public String getFieldName() {
14552
        return _fieldName;
14553
      }
14554
    }
14555
 
14556
    // isset id assignments
14557
    private static final int __ROLE_ISSET_ID = 0;
14558
    private BitSet __isset_bit_vector = new BitSet(1);
14559
 
3430 rajveer 14560
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14561
    static {
3430 rajveer 14562
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14563
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14564
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14565
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14566
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14567
    }
14568
 
14569
    public getReports_args() {
14570
    }
14571
 
14572
    public getReports_args(
14573
      long role)
14574
    {
14575
      this();
14576
      this.role = role;
14577
      setRoleIsSet(true);
14578
    }
14579
 
14580
    /**
14581
     * Performs a deep copy on <i>other</i>.
14582
     */
14583
    public getReports_args(getReports_args other) {
14584
      __isset_bit_vector.clear();
14585
      __isset_bit_vector.or(other.__isset_bit_vector);
14586
      this.role = other.role;
14587
    }
14588
 
14589
    public getReports_args deepCopy() {
14590
      return new getReports_args(this);
14591
    }
14592
 
3430 rajveer 14593
    @Override
14594
    public void clear() {
14595
      setRoleIsSet(false);
14596
      this.role = 0;
1891 ankur.sing 14597
    }
14598
 
14599
    public long getRole() {
14600
      return this.role;
14601
    }
14602
 
3430 rajveer 14603
    public void setRole(long role) {
1891 ankur.sing 14604
      this.role = role;
14605
      setRoleIsSet(true);
14606
    }
14607
 
14608
    public void unsetRole() {
14609
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14610
    }
14611
 
3430 rajveer 14612
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14613
    public boolean isSetRole() {
14614
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14615
    }
14616
 
14617
    public void setRoleIsSet(boolean value) {
14618
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14619
    }
14620
 
14621
    public void setFieldValue(_Fields field, Object value) {
14622
      switch (field) {
14623
      case ROLE:
14624
        if (value == null) {
14625
          unsetRole();
14626
        } else {
14627
          setRole((Long)value);
14628
        }
14629
        break;
14630
 
14631
      }
14632
    }
14633
 
14634
    public Object getFieldValue(_Fields field) {
14635
      switch (field) {
14636
      case ROLE:
3430 rajveer 14637
        return Long.valueOf(getRole());
1891 ankur.sing 14638
 
14639
      }
14640
      throw new IllegalStateException();
14641
    }
14642
 
3430 rajveer 14643
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14644
    public boolean isSet(_Fields field) {
14645
      if (field == null) {
14646
        throw new IllegalArgumentException();
14647
      }
1891 ankur.sing 14648
 
14649
      switch (field) {
14650
      case ROLE:
14651
        return isSetRole();
14652
      }
14653
      throw new IllegalStateException();
14654
    }
14655
 
14656
    @Override
14657
    public boolean equals(Object that) {
14658
      if (that == null)
14659
        return false;
14660
      if (that instanceof getReports_args)
14661
        return this.equals((getReports_args)that);
14662
      return false;
14663
    }
14664
 
14665
    public boolean equals(getReports_args that) {
14666
      if (that == null)
14667
        return false;
14668
 
14669
      boolean this_present_role = true;
14670
      boolean that_present_role = true;
14671
      if (this_present_role || that_present_role) {
14672
        if (!(this_present_role && that_present_role))
14673
          return false;
14674
        if (this.role != that.role)
14675
          return false;
14676
      }
14677
 
14678
      return true;
14679
    }
14680
 
14681
    @Override
14682
    public int hashCode() {
14683
      return 0;
14684
    }
14685
 
14686
    public int compareTo(getReports_args other) {
14687
      if (!getClass().equals(other.getClass())) {
14688
        return getClass().getName().compareTo(other.getClass().getName());
14689
      }
14690
 
14691
      int lastComparison = 0;
14692
      getReports_args typedOther = (getReports_args)other;
14693
 
3430 rajveer 14694
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14695
      if (lastComparison != 0) {
14696
        return lastComparison;
14697
      }
3430 rajveer 14698
      if (isSetRole()) {
14699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14700
        if (lastComparison != 0) {
14701
          return lastComparison;
14702
        }
1891 ankur.sing 14703
      }
14704
      return 0;
14705
    }
14706
 
3430 rajveer 14707
    public _Fields fieldForId(int fieldId) {
14708
      return _Fields.findByThriftId(fieldId);
14709
    }
14710
 
14711
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14712
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14713
      iprot.readStructBegin();
14714
      while (true)
14715
      {
14716
        field = iprot.readFieldBegin();
3430 rajveer 14717
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14718
          break;
14719
        }
3430 rajveer 14720
        switch (field.id) {
14721
          case 1: // ROLE
14722
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14723
              this.role = iprot.readI64();
14724
              setRoleIsSet(true);
14725
            } else { 
14726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14727
            }
14728
            break;
14729
          default:
14730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14731
        }
3430 rajveer 14732
        iprot.readFieldEnd();
1891 ankur.sing 14733
      }
14734
      iprot.readStructEnd();
14735
      validate();
14736
    }
14737
 
3430 rajveer 14738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14739
      validate();
14740
 
14741
      oprot.writeStructBegin(STRUCT_DESC);
14742
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14743
      oprot.writeI64(this.role);
14744
      oprot.writeFieldEnd();
14745
      oprot.writeFieldStop();
14746
      oprot.writeStructEnd();
14747
    }
14748
 
14749
    @Override
14750
    public String toString() {
14751
      StringBuilder sb = new StringBuilder("getReports_args(");
14752
      boolean first = true;
14753
 
14754
      sb.append("role:");
14755
      sb.append(this.role);
14756
      first = false;
14757
      sb.append(")");
14758
      return sb.toString();
14759
    }
14760
 
3430 rajveer 14761
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14762
      // check for required fields
14763
    }
14764
 
3430 rajveer 14765
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14766
      try {
14767
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14768
      } catch (org.apache.thrift.TException te) {
14769
        throw new java.io.IOException(te);
14770
      }
14771
    }
14772
 
14773
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14774
      try {
14775
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14776
        __isset_bit_vector = new BitSet(1);
14777
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14778
      } catch (org.apache.thrift.TException te) {
14779
        throw new java.io.IOException(te);
14780
      }
14781
    }
14782
 
1891 ankur.sing 14783
  }
14784
 
3430 rajveer 14785
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14787
 
3430 rajveer 14788
    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 14789
 
3430 rajveer 14790
    private List<Report> success; // required
1891 ankur.sing 14791
 
14792
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14793
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14794
      SUCCESS((short)0, "success");
14795
 
14796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14797
 
14798
      static {
14799
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14800
          byName.put(field.getFieldName(), field);
14801
        }
14802
      }
14803
 
14804
      /**
14805
       * Find the _Fields constant that matches fieldId, or null if its not found.
14806
       */
14807
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14808
        switch(fieldId) {
14809
          case 0: // SUCCESS
14810
            return SUCCESS;
14811
          default:
14812
            return null;
14813
        }
1891 ankur.sing 14814
      }
14815
 
14816
      /**
14817
       * Find the _Fields constant that matches fieldId, throwing an exception
14818
       * if it is not found.
14819
       */
14820
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14821
        _Fields fields = findByThriftId(fieldId);
14822
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14823
        return fields;
14824
      }
14825
 
14826
      /**
14827
       * Find the _Fields constant that matches name, or null if its not found.
14828
       */
14829
      public static _Fields findByName(String name) {
14830
        return byName.get(name);
14831
      }
14832
 
14833
      private final short _thriftId;
14834
      private final String _fieldName;
14835
 
14836
      _Fields(short thriftId, String fieldName) {
14837
        _thriftId = thriftId;
14838
        _fieldName = fieldName;
14839
      }
14840
 
14841
      public short getThriftFieldId() {
14842
        return _thriftId;
14843
      }
14844
 
14845
      public String getFieldName() {
14846
        return _fieldName;
14847
      }
14848
    }
14849
 
14850
    // isset id assignments
14851
 
3430 rajveer 14852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14853
    static {
3430 rajveer 14854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14855
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14856
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14857
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14860
    }
14861
 
14862
    public getReports_result() {
14863
    }
14864
 
14865
    public getReports_result(
14866
      List<Report> success)
14867
    {
14868
      this();
14869
      this.success = success;
14870
    }
14871
 
14872
    /**
14873
     * Performs a deep copy on <i>other</i>.
14874
     */
14875
    public getReports_result(getReports_result other) {
14876
      if (other.isSetSuccess()) {
14877
        List<Report> __this__success = new ArrayList<Report>();
14878
        for (Report other_element : other.success) {
14879
          __this__success.add(new Report(other_element));
14880
        }
14881
        this.success = __this__success;
14882
      }
14883
    }
14884
 
14885
    public getReports_result deepCopy() {
14886
      return new getReports_result(this);
14887
    }
14888
 
3430 rajveer 14889
    @Override
14890
    public void clear() {
14891
      this.success = null;
1891 ankur.sing 14892
    }
14893
 
14894
    public int getSuccessSize() {
14895
      return (this.success == null) ? 0 : this.success.size();
14896
    }
14897
 
14898
    public java.util.Iterator<Report> getSuccessIterator() {
14899
      return (this.success == null) ? null : this.success.iterator();
14900
    }
14901
 
14902
    public void addToSuccess(Report elem) {
14903
      if (this.success == null) {
14904
        this.success = new ArrayList<Report>();
14905
      }
14906
      this.success.add(elem);
14907
    }
14908
 
14909
    public List<Report> getSuccess() {
14910
      return this.success;
14911
    }
14912
 
3430 rajveer 14913
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14914
      this.success = success;
14915
    }
14916
 
14917
    public void unsetSuccess() {
14918
      this.success = null;
14919
    }
14920
 
3430 rajveer 14921
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14922
    public boolean isSetSuccess() {
14923
      return this.success != null;
14924
    }
14925
 
14926
    public void setSuccessIsSet(boolean value) {
14927
      if (!value) {
14928
        this.success = null;
14929
      }
14930
    }
14931
 
14932
    public void setFieldValue(_Fields field, Object value) {
14933
      switch (field) {
14934
      case SUCCESS:
14935
        if (value == null) {
14936
          unsetSuccess();
14937
        } else {
14938
          setSuccess((List<Report>)value);
14939
        }
14940
        break;
14941
 
14942
      }
14943
    }
14944
 
14945
    public Object getFieldValue(_Fields field) {
14946
      switch (field) {
14947
      case SUCCESS:
14948
        return getSuccess();
14949
 
14950
      }
14951
      throw new IllegalStateException();
14952
    }
14953
 
3430 rajveer 14954
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14955
    public boolean isSet(_Fields field) {
14956
      if (field == null) {
14957
        throw new IllegalArgumentException();
14958
      }
1891 ankur.sing 14959
 
14960
      switch (field) {
14961
      case SUCCESS:
14962
        return isSetSuccess();
14963
      }
14964
      throw new IllegalStateException();
14965
    }
14966
 
14967
    @Override
14968
    public boolean equals(Object that) {
14969
      if (that == null)
14970
        return false;
14971
      if (that instanceof getReports_result)
14972
        return this.equals((getReports_result)that);
14973
      return false;
14974
    }
14975
 
14976
    public boolean equals(getReports_result that) {
14977
      if (that == null)
14978
        return false;
14979
 
14980
      boolean this_present_success = true && this.isSetSuccess();
14981
      boolean that_present_success = true && that.isSetSuccess();
14982
      if (this_present_success || that_present_success) {
14983
        if (!(this_present_success && that_present_success))
14984
          return false;
14985
        if (!this.success.equals(that.success))
14986
          return false;
14987
      }
14988
 
14989
      return true;
14990
    }
14991
 
14992
    @Override
14993
    public int hashCode() {
14994
      return 0;
14995
    }
14996
 
14997
    public int compareTo(getReports_result other) {
14998
      if (!getClass().equals(other.getClass())) {
14999
        return getClass().getName().compareTo(other.getClass().getName());
15000
      }
15001
 
15002
      int lastComparison = 0;
15003
      getReports_result typedOther = (getReports_result)other;
15004
 
3430 rajveer 15005
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15006
      if (lastComparison != 0) {
15007
        return lastComparison;
15008
      }
3430 rajveer 15009
      if (isSetSuccess()) {
15010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15011
        if (lastComparison != 0) {
15012
          return lastComparison;
15013
        }
1891 ankur.sing 15014
      }
15015
      return 0;
15016
    }
15017
 
3430 rajveer 15018
    public _Fields fieldForId(int fieldId) {
15019
      return _Fields.findByThriftId(fieldId);
15020
    }
15021
 
15022
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15023
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15024
      iprot.readStructBegin();
15025
      while (true)
15026
      {
15027
        field = iprot.readFieldBegin();
3430 rajveer 15028
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15029
          break;
15030
        }
3430 rajveer 15031
        switch (field.id) {
15032
          case 0: // SUCCESS
15033
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15034
              {
5864 rajveer 15035
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15036
                this.success = new ArrayList<Report>(_list41.size);
15037
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15038
                {
5864 rajveer 15039
                  Report _elem43; // required
15040
                  _elem43 = new Report();
15041
                  _elem43.read(iprot);
15042
                  this.success.add(_elem43);
1891 ankur.sing 15043
                }
3430 rajveer 15044
                iprot.readListEnd();
1891 ankur.sing 15045
              }
3430 rajveer 15046
            } else { 
15047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15048
            }
15049
            break;
15050
          default:
15051
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15052
        }
3430 rajveer 15053
        iprot.readFieldEnd();
1891 ankur.sing 15054
      }
15055
      iprot.readStructEnd();
15056
      validate();
15057
    }
15058
 
3430 rajveer 15059
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15060
      oprot.writeStructBegin(STRUCT_DESC);
15061
 
15062
      if (this.isSetSuccess()) {
15063
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15064
        {
3430 rajveer 15065
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15066
          for (Report _iter44 : this.success)
1891 ankur.sing 15067
          {
5864 rajveer 15068
            _iter44.write(oprot);
1891 ankur.sing 15069
          }
15070
          oprot.writeListEnd();
15071
        }
15072
        oprot.writeFieldEnd();
15073
      }
15074
      oprot.writeFieldStop();
15075
      oprot.writeStructEnd();
15076
    }
15077
 
15078
    @Override
15079
    public String toString() {
15080
      StringBuilder sb = new StringBuilder("getReports_result(");
15081
      boolean first = true;
15082
 
15083
      sb.append("success:");
15084
      if (this.success == null) {
15085
        sb.append("null");
15086
      } else {
15087
        sb.append(this.success);
15088
      }
15089
      first = false;
15090
      sb.append(")");
15091
      return sb.toString();
15092
    }
15093
 
3430 rajveer 15094
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15095
      // check for required fields
15096
    }
15097
 
3430 rajveer 15098
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15099
      try {
15100
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15101
      } catch (org.apache.thrift.TException te) {
15102
        throw new java.io.IOException(te);
15103
      }
15104
    }
15105
 
15106
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15107
      try {
15108
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15109
      } catch (org.apache.thrift.TException te) {
15110
        throw new java.io.IOException(te);
15111
      }
15112
    }
15113
 
1891 ankur.sing 15114
  }
15115
 
3430 rajveer 15116
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15117
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15118
 
3430 rajveer 15119
    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);
15120
    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);
15121
    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 15122
 
3430 rajveer 15123
    private String username; // required
15124
    private String password; // required
15125
    private long role; // required
2024 ankur.sing 15126
 
15127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15129
      USERNAME((short)1, "username"),
2357 ankur.sing 15130
      PASSWORD((short)2, "password"),
15131
      ROLE((short)3, "role");
2024 ankur.sing 15132
 
15133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15134
 
15135
      static {
15136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15137
          byName.put(field.getFieldName(), field);
15138
        }
15139
      }
15140
 
15141
      /**
15142
       * Find the _Fields constant that matches fieldId, or null if its not found.
15143
       */
15144
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15145
        switch(fieldId) {
15146
          case 1: // USERNAME
15147
            return USERNAME;
15148
          case 2: // PASSWORD
15149
            return PASSWORD;
15150
          case 3: // ROLE
15151
            return ROLE;
15152
          default:
15153
            return null;
15154
        }
2024 ankur.sing 15155
      }
15156
 
15157
      /**
15158
       * Find the _Fields constant that matches fieldId, throwing an exception
15159
       * if it is not found.
15160
       */
15161
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15162
        _Fields fields = findByThriftId(fieldId);
15163
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15164
        return fields;
15165
      }
15166
 
15167
      /**
15168
       * Find the _Fields constant that matches name, or null if its not found.
15169
       */
15170
      public static _Fields findByName(String name) {
15171
        return byName.get(name);
15172
      }
15173
 
15174
      private final short _thriftId;
15175
      private final String _fieldName;
15176
 
15177
      _Fields(short thriftId, String fieldName) {
15178
        _thriftId = thriftId;
15179
        _fieldName = fieldName;
15180
      }
15181
 
15182
      public short getThriftFieldId() {
15183
        return _thriftId;
15184
      }
15185
 
15186
      public String getFieldName() {
15187
        return _fieldName;
15188
      }
15189
    }
15190
 
15191
    // isset id assignments
2357 ankur.sing 15192
    private static final int __ROLE_ISSET_ID = 0;
15193
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 15194
 
3430 rajveer 15195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15196
    static {
3430 rajveer 15197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15198
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15199
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15200
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15202
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15206
    }
15207
 
15208
    public authenticateCatalogUser_args() {
15209
    }
15210
 
15211
    public authenticateCatalogUser_args(
15212
      String username,
2357 ankur.sing 15213
      String password,
15214
      long role)
2024 ankur.sing 15215
    {
15216
      this();
15217
      this.username = username;
15218
      this.password = password;
2357 ankur.sing 15219
      this.role = role;
15220
      setRoleIsSet(true);
2024 ankur.sing 15221
    }
15222
 
15223
    /**
15224
     * Performs a deep copy on <i>other</i>.
15225
     */
15226
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 15227
      __isset_bit_vector.clear();
15228
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 15229
      if (other.isSetUsername()) {
15230
        this.username = other.username;
15231
      }
15232
      if (other.isSetPassword()) {
15233
        this.password = other.password;
15234
      }
2357 ankur.sing 15235
      this.role = other.role;
2024 ankur.sing 15236
    }
15237
 
15238
    public authenticateCatalogUser_args deepCopy() {
15239
      return new authenticateCatalogUser_args(this);
15240
    }
15241
 
3430 rajveer 15242
    @Override
15243
    public void clear() {
15244
      this.username = null;
15245
      this.password = null;
15246
      setRoleIsSet(false);
15247
      this.role = 0;
2024 ankur.sing 15248
    }
15249
 
15250
    public String getUsername() {
15251
      return this.username;
15252
    }
15253
 
3430 rajveer 15254
    public void setUsername(String username) {
2024 ankur.sing 15255
      this.username = username;
15256
    }
15257
 
15258
    public void unsetUsername() {
15259
      this.username = null;
15260
    }
15261
 
3430 rajveer 15262
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15263
    public boolean isSetUsername() {
15264
      return this.username != null;
15265
    }
15266
 
15267
    public void setUsernameIsSet(boolean value) {
15268
      if (!value) {
15269
        this.username = null;
15270
      }
15271
    }
15272
 
15273
    public String getPassword() {
15274
      return this.password;
15275
    }
15276
 
3430 rajveer 15277
    public void setPassword(String password) {
2024 ankur.sing 15278
      this.password = password;
15279
    }
15280
 
15281
    public void unsetPassword() {
15282
      this.password = null;
15283
    }
15284
 
3430 rajveer 15285
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15286
    public boolean isSetPassword() {
15287
      return this.password != null;
15288
    }
15289
 
15290
    public void setPasswordIsSet(boolean value) {
15291
      if (!value) {
15292
        this.password = null;
15293
      }
15294
    }
15295
 
2357 ankur.sing 15296
    public long getRole() {
15297
      return this.role;
15298
    }
15299
 
3430 rajveer 15300
    public void setRole(long role) {
2357 ankur.sing 15301
      this.role = role;
15302
      setRoleIsSet(true);
15303
    }
15304
 
15305
    public void unsetRole() {
15306
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
15307
    }
15308
 
3430 rajveer 15309
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 15310
    public boolean isSetRole() {
15311
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
15312
    }
15313
 
15314
    public void setRoleIsSet(boolean value) {
15315
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
15316
    }
15317
 
2024 ankur.sing 15318
    public void setFieldValue(_Fields field, Object value) {
15319
      switch (field) {
15320
      case USERNAME:
15321
        if (value == null) {
15322
          unsetUsername();
15323
        } else {
15324
          setUsername((String)value);
15325
        }
15326
        break;
15327
 
15328
      case PASSWORD:
15329
        if (value == null) {
15330
          unsetPassword();
15331
        } else {
15332
          setPassword((String)value);
15333
        }
15334
        break;
15335
 
2357 ankur.sing 15336
      case ROLE:
15337
        if (value == null) {
15338
          unsetRole();
15339
        } else {
15340
          setRole((Long)value);
15341
        }
15342
        break;
15343
 
2024 ankur.sing 15344
      }
15345
    }
15346
 
15347
    public Object getFieldValue(_Fields field) {
15348
      switch (field) {
15349
      case USERNAME:
15350
        return getUsername();
15351
 
15352
      case PASSWORD:
15353
        return getPassword();
15354
 
2357 ankur.sing 15355
      case ROLE:
3430 rajveer 15356
        return Long.valueOf(getRole());
2357 ankur.sing 15357
 
2024 ankur.sing 15358
      }
15359
      throw new IllegalStateException();
15360
    }
15361
 
3430 rajveer 15362
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15363
    public boolean isSet(_Fields field) {
15364
      if (field == null) {
15365
        throw new IllegalArgumentException();
15366
      }
2024 ankur.sing 15367
 
15368
      switch (field) {
15369
      case USERNAME:
15370
        return isSetUsername();
15371
      case PASSWORD:
15372
        return isSetPassword();
2357 ankur.sing 15373
      case ROLE:
15374
        return isSetRole();
2024 ankur.sing 15375
      }
15376
      throw new IllegalStateException();
15377
    }
15378
 
15379
    @Override
15380
    public boolean equals(Object that) {
15381
      if (that == null)
15382
        return false;
15383
      if (that instanceof authenticateCatalogUser_args)
15384
        return this.equals((authenticateCatalogUser_args)that);
15385
      return false;
15386
    }
15387
 
15388
    public boolean equals(authenticateCatalogUser_args that) {
15389
      if (that == null)
15390
        return false;
15391
 
15392
      boolean this_present_username = true && this.isSetUsername();
15393
      boolean that_present_username = true && that.isSetUsername();
15394
      if (this_present_username || that_present_username) {
15395
        if (!(this_present_username && that_present_username))
15396
          return false;
15397
        if (!this.username.equals(that.username))
15398
          return false;
15399
      }
15400
 
15401
      boolean this_present_password = true && this.isSetPassword();
15402
      boolean that_present_password = true && that.isSetPassword();
15403
      if (this_present_password || that_present_password) {
15404
        if (!(this_present_password && that_present_password))
15405
          return false;
15406
        if (!this.password.equals(that.password))
15407
          return false;
15408
      }
15409
 
2357 ankur.sing 15410
      boolean this_present_role = true;
15411
      boolean that_present_role = true;
15412
      if (this_present_role || that_present_role) {
15413
        if (!(this_present_role && that_present_role))
15414
          return false;
15415
        if (this.role != that.role)
15416
          return false;
15417
      }
15418
 
2024 ankur.sing 15419
      return true;
15420
    }
15421
 
15422
    @Override
15423
    public int hashCode() {
15424
      return 0;
15425
    }
15426
 
15427
    public int compareTo(authenticateCatalogUser_args other) {
15428
      if (!getClass().equals(other.getClass())) {
15429
        return getClass().getName().compareTo(other.getClass().getName());
15430
      }
15431
 
15432
      int lastComparison = 0;
15433
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15434
 
3430 rajveer 15435
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15436
      if (lastComparison != 0) {
15437
        return lastComparison;
15438
      }
3430 rajveer 15439
      if (isSetUsername()) {
15440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15441
        if (lastComparison != 0) {
15442
          return lastComparison;
15443
        }
2024 ankur.sing 15444
      }
3430 rajveer 15445
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15446
      if (lastComparison != 0) {
15447
        return lastComparison;
15448
      }
3430 rajveer 15449
      if (isSetPassword()) {
15450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15451
        if (lastComparison != 0) {
15452
          return lastComparison;
15453
        }
2024 ankur.sing 15454
      }
3430 rajveer 15455
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 15456
      if (lastComparison != 0) {
15457
        return lastComparison;
15458
      }
3430 rajveer 15459
      if (isSetRole()) {
15460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15461
        if (lastComparison != 0) {
15462
          return lastComparison;
15463
        }
2357 ankur.sing 15464
      }
2024 ankur.sing 15465
      return 0;
15466
    }
15467
 
3430 rajveer 15468
    public _Fields fieldForId(int fieldId) {
15469
      return _Fields.findByThriftId(fieldId);
15470
    }
15471
 
15472
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15473
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15474
      iprot.readStructBegin();
15475
      while (true)
15476
      {
15477
        field = iprot.readFieldBegin();
3430 rajveer 15478
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15479
          break;
15480
        }
3430 rajveer 15481
        switch (field.id) {
15482
          case 1: // USERNAME
15483
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15484
              this.username = iprot.readString();
15485
            } else { 
15486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15487
            }
15488
            break;
15489
          case 2: // PASSWORD
15490
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15491
              this.password = iprot.readString();
15492
            } else { 
15493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15494
            }
15495
            break;
15496
          case 3: // ROLE
15497
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15498
              this.role = iprot.readI64();
15499
              setRoleIsSet(true);
15500
            } else { 
15501
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15502
            }
15503
            break;
15504
          default:
15505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15506
        }
3430 rajveer 15507
        iprot.readFieldEnd();
2024 ankur.sing 15508
      }
15509
      iprot.readStructEnd();
15510
      validate();
15511
    }
15512
 
3430 rajveer 15513
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15514
      validate();
15515
 
15516
      oprot.writeStructBegin(STRUCT_DESC);
15517
      if (this.username != null) {
15518
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15519
        oprot.writeString(this.username);
15520
        oprot.writeFieldEnd();
15521
      }
15522
      if (this.password != null) {
15523
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15524
        oprot.writeString(this.password);
15525
        oprot.writeFieldEnd();
15526
      }
2357 ankur.sing 15527
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15528
      oprot.writeI64(this.role);
15529
      oprot.writeFieldEnd();
2024 ankur.sing 15530
      oprot.writeFieldStop();
15531
      oprot.writeStructEnd();
15532
    }
15533
 
15534
    @Override
15535
    public String toString() {
15536
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15537
      boolean first = true;
15538
 
15539
      sb.append("username:");
15540
      if (this.username == null) {
15541
        sb.append("null");
15542
      } else {
15543
        sb.append(this.username);
15544
      }
15545
      first = false;
15546
      if (!first) sb.append(", ");
15547
      sb.append("password:");
15548
      if (this.password == null) {
15549
        sb.append("null");
15550
      } else {
15551
        sb.append(this.password);
15552
      }
15553
      first = false;
2357 ankur.sing 15554
      if (!first) sb.append(", ");
15555
      sb.append("role:");
15556
      sb.append(this.role);
15557
      first = false;
2024 ankur.sing 15558
      sb.append(")");
15559
      return sb.toString();
15560
    }
15561
 
3430 rajveer 15562
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15563
      // check for required fields
15564
    }
15565
 
3430 rajveer 15566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15567
      try {
15568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15569
      } catch (org.apache.thrift.TException te) {
15570
        throw new java.io.IOException(te);
15571
      }
15572
    }
15573
 
15574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15575
      try {
15576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15577
      } catch (org.apache.thrift.TException te) {
15578
        throw new java.io.IOException(te);
15579
      }
15580
    }
15581
 
2024 ankur.sing 15582
  }
15583
 
3430 rajveer 15584
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15586
 
3430 rajveer 15587
    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);
15588
    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 15589
 
3430 rajveer 15590
    private CatalogDashboardUser success; // required
15591
    private HelperServiceException hse; // required
2024 ankur.sing 15592
 
15593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15595
      SUCCESS((short)0, "success"),
15596
      HSE((short)1, "hse");
15597
 
15598
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15599
 
15600
      static {
15601
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15602
          byName.put(field.getFieldName(), field);
15603
        }
15604
      }
15605
 
15606
      /**
15607
       * Find the _Fields constant that matches fieldId, or null if its not found.
15608
       */
15609
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15610
        switch(fieldId) {
15611
          case 0: // SUCCESS
15612
            return SUCCESS;
15613
          case 1: // HSE
15614
            return HSE;
15615
          default:
15616
            return null;
15617
        }
2024 ankur.sing 15618
      }
15619
 
15620
      /**
15621
       * Find the _Fields constant that matches fieldId, throwing an exception
15622
       * if it is not found.
15623
       */
15624
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15625
        _Fields fields = findByThriftId(fieldId);
15626
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15627
        return fields;
15628
      }
15629
 
15630
      /**
15631
       * Find the _Fields constant that matches name, or null if its not found.
15632
       */
15633
      public static _Fields findByName(String name) {
15634
        return byName.get(name);
15635
      }
15636
 
15637
      private final short _thriftId;
15638
      private final String _fieldName;
15639
 
15640
      _Fields(short thriftId, String fieldName) {
15641
        _thriftId = thriftId;
15642
        _fieldName = fieldName;
15643
      }
15644
 
15645
      public short getThriftFieldId() {
15646
        return _thriftId;
15647
      }
15648
 
15649
      public String getFieldName() {
15650
        return _fieldName;
15651
      }
15652
    }
15653
 
15654
    // isset id assignments
15655
 
3430 rajveer 15656
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15657
    static {
3430 rajveer 15658
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15659
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15660
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15661
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15662
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15665
    }
15666
 
15667
    public authenticateCatalogUser_result() {
15668
    }
15669
 
15670
    public authenticateCatalogUser_result(
15671
      CatalogDashboardUser success,
15672
      HelperServiceException hse)
15673
    {
15674
      this();
15675
      this.success = success;
15676
      this.hse = hse;
15677
    }
15678
 
15679
    /**
15680
     * Performs a deep copy on <i>other</i>.
15681
     */
15682
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15683
      if (other.isSetSuccess()) {
15684
        this.success = new CatalogDashboardUser(other.success);
15685
      }
15686
      if (other.isSetHse()) {
15687
        this.hse = new HelperServiceException(other.hse);
15688
      }
15689
    }
15690
 
15691
    public authenticateCatalogUser_result deepCopy() {
15692
      return new authenticateCatalogUser_result(this);
15693
    }
15694
 
3430 rajveer 15695
    @Override
15696
    public void clear() {
15697
      this.success = null;
15698
      this.hse = null;
2024 ankur.sing 15699
    }
15700
 
15701
    public CatalogDashboardUser getSuccess() {
15702
      return this.success;
15703
    }
15704
 
3430 rajveer 15705
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15706
      this.success = success;
15707
    }
15708
 
15709
    public void unsetSuccess() {
15710
      this.success = null;
15711
    }
15712
 
3430 rajveer 15713
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15714
    public boolean isSetSuccess() {
15715
      return this.success != null;
15716
    }
15717
 
15718
    public void setSuccessIsSet(boolean value) {
15719
      if (!value) {
15720
        this.success = null;
15721
      }
15722
    }
15723
 
15724
    public HelperServiceException getHse() {
15725
      return this.hse;
15726
    }
15727
 
3430 rajveer 15728
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15729
      this.hse = hse;
15730
    }
15731
 
15732
    public void unsetHse() {
15733
      this.hse = null;
15734
    }
15735
 
3430 rajveer 15736
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15737
    public boolean isSetHse() {
15738
      return this.hse != null;
15739
    }
15740
 
15741
    public void setHseIsSet(boolean value) {
15742
      if (!value) {
15743
        this.hse = null;
15744
      }
15745
    }
15746
 
15747
    public void setFieldValue(_Fields field, Object value) {
15748
      switch (field) {
15749
      case SUCCESS:
15750
        if (value == null) {
15751
          unsetSuccess();
15752
        } else {
15753
          setSuccess((CatalogDashboardUser)value);
15754
        }
15755
        break;
15756
 
15757
      case HSE:
15758
        if (value == null) {
15759
          unsetHse();
15760
        } else {
15761
          setHse((HelperServiceException)value);
15762
        }
15763
        break;
15764
 
15765
      }
15766
    }
15767
 
15768
    public Object getFieldValue(_Fields field) {
15769
      switch (field) {
15770
      case SUCCESS:
15771
        return getSuccess();
15772
 
15773
      case HSE:
15774
        return getHse();
15775
 
15776
      }
15777
      throw new IllegalStateException();
15778
    }
15779
 
3430 rajveer 15780
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15781
    public boolean isSet(_Fields field) {
15782
      if (field == null) {
15783
        throw new IllegalArgumentException();
15784
      }
2024 ankur.sing 15785
 
15786
      switch (field) {
15787
      case SUCCESS:
15788
        return isSetSuccess();
15789
      case HSE:
15790
        return isSetHse();
15791
      }
15792
      throw new IllegalStateException();
15793
    }
15794
 
15795
    @Override
15796
    public boolean equals(Object that) {
15797
      if (that == null)
15798
        return false;
15799
      if (that instanceof authenticateCatalogUser_result)
15800
        return this.equals((authenticateCatalogUser_result)that);
15801
      return false;
15802
    }
15803
 
15804
    public boolean equals(authenticateCatalogUser_result that) {
15805
      if (that == null)
15806
        return false;
15807
 
15808
      boolean this_present_success = true && this.isSetSuccess();
15809
      boolean that_present_success = true && that.isSetSuccess();
15810
      if (this_present_success || that_present_success) {
15811
        if (!(this_present_success && that_present_success))
15812
          return false;
15813
        if (!this.success.equals(that.success))
15814
          return false;
15815
      }
15816
 
15817
      boolean this_present_hse = true && this.isSetHse();
15818
      boolean that_present_hse = true && that.isSetHse();
15819
      if (this_present_hse || that_present_hse) {
15820
        if (!(this_present_hse && that_present_hse))
15821
          return false;
15822
        if (!this.hse.equals(that.hse))
15823
          return false;
15824
      }
15825
 
15826
      return true;
15827
    }
15828
 
15829
    @Override
15830
    public int hashCode() {
15831
      return 0;
15832
    }
15833
 
15834
    public int compareTo(authenticateCatalogUser_result other) {
15835
      if (!getClass().equals(other.getClass())) {
15836
        return getClass().getName().compareTo(other.getClass().getName());
15837
      }
15838
 
15839
      int lastComparison = 0;
15840
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15841
 
3430 rajveer 15842
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15843
      if (lastComparison != 0) {
15844
        return lastComparison;
15845
      }
3430 rajveer 15846
      if (isSetSuccess()) {
15847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15848
        if (lastComparison != 0) {
15849
          return lastComparison;
15850
        }
2024 ankur.sing 15851
      }
3430 rajveer 15852
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15853
      if (lastComparison != 0) {
15854
        return lastComparison;
15855
      }
3430 rajveer 15856
      if (isSetHse()) {
15857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15858
        if (lastComparison != 0) {
15859
          return lastComparison;
15860
        }
2024 ankur.sing 15861
      }
15862
      return 0;
15863
    }
15864
 
3430 rajveer 15865
    public _Fields fieldForId(int fieldId) {
15866
      return _Fields.findByThriftId(fieldId);
15867
    }
15868
 
15869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15870
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15871
      iprot.readStructBegin();
15872
      while (true)
15873
      {
15874
        field = iprot.readFieldBegin();
3430 rajveer 15875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15876
          break;
15877
        }
3430 rajveer 15878
        switch (field.id) {
15879
          case 0: // SUCCESS
15880
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15881
              this.success = new CatalogDashboardUser();
15882
              this.success.read(iprot);
15883
            } else { 
15884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15885
            }
15886
            break;
15887
          case 1: // HSE
15888
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15889
              this.hse = new HelperServiceException();
15890
              this.hse.read(iprot);
15891
            } else { 
15892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15893
            }
15894
            break;
15895
          default:
15896
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15897
        }
3430 rajveer 15898
        iprot.readFieldEnd();
2024 ankur.sing 15899
      }
15900
      iprot.readStructEnd();
15901
      validate();
15902
    }
15903
 
3430 rajveer 15904
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15905
      oprot.writeStructBegin(STRUCT_DESC);
15906
 
15907
      if (this.isSetSuccess()) {
15908
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15909
        this.success.write(oprot);
15910
        oprot.writeFieldEnd();
15911
      } else if (this.isSetHse()) {
15912
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15913
        this.hse.write(oprot);
15914
        oprot.writeFieldEnd();
15915
      }
15916
      oprot.writeFieldStop();
15917
      oprot.writeStructEnd();
15918
    }
15919
 
15920
    @Override
15921
    public String toString() {
15922
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15923
      boolean first = true;
15924
 
15925
      sb.append("success:");
15926
      if (this.success == null) {
15927
        sb.append("null");
15928
      } else {
15929
        sb.append(this.success);
15930
      }
15931
      first = false;
15932
      if (!first) sb.append(", ");
15933
      sb.append("hse:");
15934
      if (this.hse == null) {
15935
        sb.append("null");
15936
      } else {
15937
        sb.append(this.hse);
15938
      }
15939
      first = false;
15940
      sb.append(")");
15941
      return sb.toString();
15942
    }
15943
 
3430 rajveer 15944
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15945
      // check for required fields
15946
    }
15947
 
3430 rajveer 15948
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15949
      try {
15950
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15951
      } catch (org.apache.thrift.TException te) {
15952
        throw new java.io.IOException(te);
15953
      }
15954
    }
15955
 
15956
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15957
      try {
15958
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15959
      } catch (org.apache.thrift.TException te) {
15960
        throw new java.io.IOException(te);
15961
      }
15962
    }
15963
 
2024 ankur.sing 15964
  }
15965
 
4544 varun.gupt 15966
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
15967
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
15968
 
15969
    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);
15970
    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);
15971
 
15972
    private List<Long> entityIds; // required
15973
    private String email; // required
15974
 
15975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15977
      ENTITY_IDS((short)1, "entityIds"),
15978
      EMAIL((short)2, "email");
15979
 
15980
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15981
 
15982
      static {
15983
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15984
          byName.put(field.getFieldName(), field);
15985
        }
15986
      }
15987
 
15988
      /**
15989
       * Find the _Fields constant that matches fieldId, or null if its not found.
15990
       */
15991
      public static _Fields findByThriftId(int fieldId) {
15992
        switch(fieldId) {
15993
          case 1: // ENTITY_IDS
15994
            return ENTITY_IDS;
15995
          case 2: // EMAIL
15996
            return EMAIL;
15997
          default:
15998
            return null;
15999
        }
16000
      }
16001
 
16002
      /**
16003
       * Find the _Fields constant that matches fieldId, throwing an exception
16004
       * if it is not found.
16005
       */
16006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16007
        _Fields fields = findByThriftId(fieldId);
16008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16009
        return fields;
16010
      }
16011
 
16012
      /**
16013
       * Find the _Fields constant that matches name, or null if its not found.
16014
       */
16015
      public static _Fields findByName(String name) {
16016
        return byName.get(name);
16017
      }
16018
 
16019
      private final short _thriftId;
16020
      private final String _fieldName;
16021
 
16022
      _Fields(short thriftId, String fieldName) {
16023
        _thriftId = thriftId;
16024
        _fieldName = fieldName;
16025
      }
16026
 
16027
      public short getThriftFieldId() {
16028
        return _thriftId;
16029
      }
16030
 
16031
      public String getFieldName() {
16032
        return _fieldName;
16033
      }
16034
    }
16035
 
16036
    // isset id assignments
16037
 
16038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16039
    static {
16040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16041
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16042
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16043
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16044
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16045
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16046
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16047
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16048
    }
16049
 
16050
    public shareEntities_args() {
16051
    }
16052
 
16053
    public shareEntities_args(
16054
      List<Long> entityIds,
16055
      String email)
16056
    {
16057
      this();
16058
      this.entityIds = entityIds;
16059
      this.email = email;
16060
    }
16061
 
16062
    /**
16063
     * Performs a deep copy on <i>other</i>.
16064
     */
16065
    public shareEntities_args(shareEntities_args other) {
16066
      if (other.isSetEntityIds()) {
16067
        List<Long> __this__entityIds = new ArrayList<Long>();
16068
        for (Long other_element : other.entityIds) {
16069
          __this__entityIds.add(other_element);
16070
        }
16071
        this.entityIds = __this__entityIds;
16072
      }
16073
      if (other.isSetEmail()) {
16074
        this.email = other.email;
16075
      }
16076
    }
16077
 
16078
    public shareEntities_args deepCopy() {
16079
      return new shareEntities_args(this);
16080
    }
16081
 
16082
    @Override
16083
    public void clear() {
16084
      this.entityIds = null;
16085
      this.email = null;
16086
    }
16087
 
16088
    public int getEntityIdsSize() {
16089
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16090
    }
16091
 
16092
    public java.util.Iterator<Long> getEntityIdsIterator() {
16093
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16094
    }
16095
 
16096
    public void addToEntityIds(long elem) {
16097
      if (this.entityIds == null) {
16098
        this.entityIds = new ArrayList<Long>();
16099
      }
16100
      this.entityIds.add(elem);
16101
    }
16102
 
16103
    public List<Long> getEntityIds() {
16104
      return this.entityIds;
16105
    }
16106
 
16107
    public void setEntityIds(List<Long> entityIds) {
16108
      this.entityIds = entityIds;
16109
    }
16110
 
16111
    public void unsetEntityIds() {
16112
      this.entityIds = null;
16113
    }
16114
 
16115
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16116
    public boolean isSetEntityIds() {
16117
      return this.entityIds != null;
16118
    }
16119
 
16120
    public void setEntityIdsIsSet(boolean value) {
16121
      if (!value) {
16122
        this.entityIds = null;
16123
      }
16124
    }
16125
 
16126
    public String getEmail() {
16127
      return this.email;
16128
    }
16129
 
16130
    public void setEmail(String email) {
16131
      this.email = email;
16132
    }
16133
 
16134
    public void unsetEmail() {
16135
      this.email = null;
16136
    }
16137
 
16138
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16139
    public boolean isSetEmail() {
16140
      return this.email != null;
16141
    }
16142
 
16143
    public void setEmailIsSet(boolean value) {
16144
      if (!value) {
16145
        this.email = null;
16146
      }
16147
    }
16148
 
16149
    public void setFieldValue(_Fields field, Object value) {
16150
      switch (field) {
16151
      case ENTITY_IDS:
16152
        if (value == null) {
16153
          unsetEntityIds();
16154
        } else {
16155
          setEntityIds((List<Long>)value);
16156
        }
16157
        break;
16158
 
16159
      case EMAIL:
16160
        if (value == null) {
16161
          unsetEmail();
16162
        } else {
16163
          setEmail((String)value);
16164
        }
16165
        break;
16166
 
16167
      }
16168
    }
16169
 
16170
    public Object getFieldValue(_Fields field) {
16171
      switch (field) {
16172
      case ENTITY_IDS:
16173
        return getEntityIds();
16174
 
16175
      case EMAIL:
16176
        return getEmail();
16177
 
16178
      }
16179
      throw new IllegalStateException();
16180
    }
16181
 
16182
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16183
    public boolean isSet(_Fields field) {
16184
      if (field == null) {
16185
        throw new IllegalArgumentException();
16186
      }
16187
 
16188
      switch (field) {
16189
      case ENTITY_IDS:
16190
        return isSetEntityIds();
16191
      case EMAIL:
16192
        return isSetEmail();
16193
      }
16194
      throw new IllegalStateException();
16195
    }
16196
 
16197
    @Override
16198
    public boolean equals(Object that) {
16199
      if (that == null)
16200
        return false;
16201
      if (that instanceof shareEntities_args)
16202
        return this.equals((shareEntities_args)that);
16203
      return false;
16204
    }
16205
 
16206
    public boolean equals(shareEntities_args that) {
16207
      if (that == null)
16208
        return false;
16209
 
16210
      boolean this_present_entityIds = true && this.isSetEntityIds();
16211
      boolean that_present_entityIds = true && that.isSetEntityIds();
16212
      if (this_present_entityIds || that_present_entityIds) {
16213
        if (!(this_present_entityIds && that_present_entityIds))
16214
          return false;
16215
        if (!this.entityIds.equals(that.entityIds))
16216
          return false;
16217
      }
16218
 
16219
      boolean this_present_email = true && this.isSetEmail();
16220
      boolean that_present_email = true && that.isSetEmail();
16221
      if (this_present_email || that_present_email) {
16222
        if (!(this_present_email && that_present_email))
16223
          return false;
16224
        if (!this.email.equals(that.email))
16225
          return false;
16226
      }
16227
 
16228
      return true;
16229
    }
16230
 
16231
    @Override
16232
    public int hashCode() {
16233
      return 0;
16234
    }
16235
 
16236
    public int compareTo(shareEntities_args other) {
16237
      if (!getClass().equals(other.getClass())) {
16238
        return getClass().getName().compareTo(other.getClass().getName());
16239
      }
16240
 
16241
      int lastComparison = 0;
16242
      shareEntities_args typedOther = (shareEntities_args)other;
16243
 
16244
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16245
      if (lastComparison != 0) {
16246
        return lastComparison;
16247
      }
16248
      if (isSetEntityIds()) {
16249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16250
        if (lastComparison != 0) {
16251
          return lastComparison;
16252
        }
16253
      }
16254
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16255
      if (lastComparison != 0) {
16256
        return lastComparison;
16257
      }
16258
      if (isSetEmail()) {
16259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16260
        if (lastComparison != 0) {
16261
          return lastComparison;
16262
        }
16263
      }
16264
      return 0;
16265
    }
16266
 
16267
    public _Fields fieldForId(int fieldId) {
16268
      return _Fields.findByThriftId(fieldId);
16269
    }
16270
 
16271
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16272
      org.apache.thrift.protocol.TField field;
16273
      iprot.readStructBegin();
16274
      while (true)
16275
      {
16276
        field = iprot.readFieldBegin();
16277
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16278
          break;
16279
        }
16280
        switch (field.id) {
16281
          case 1: // ENTITY_IDS
16282
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16283
              {
5864 rajveer 16284
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16285
                this.entityIds = new ArrayList<Long>(_list45.size);
16286
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16287
                {
5864 rajveer 16288
                  long _elem47; // required
16289
                  _elem47 = iprot.readI64();
16290
                  this.entityIds.add(_elem47);
4544 varun.gupt 16291
                }
16292
                iprot.readListEnd();
16293
              }
16294
            } else { 
16295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16296
            }
16297
            break;
16298
          case 2: // EMAIL
16299
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16300
              this.email = iprot.readString();
16301
            } else { 
16302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16303
            }
16304
            break;
16305
          default:
16306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16307
        }
16308
        iprot.readFieldEnd();
16309
      }
16310
      iprot.readStructEnd();
16311
      validate();
16312
    }
16313
 
16314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16315
      validate();
16316
 
16317
      oprot.writeStructBegin(STRUCT_DESC);
16318
      if (this.entityIds != null) {
16319
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16320
        {
16321
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16322
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16323
          {
5864 rajveer 16324
            oprot.writeI64(_iter48);
4544 varun.gupt 16325
          }
16326
          oprot.writeListEnd();
16327
        }
16328
        oprot.writeFieldEnd();
16329
      }
16330
      if (this.email != null) {
16331
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16332
        oprot.writeString(this.email);
16333
        oprot.writeFieldEnd();
16334
      }
16335
      oprot.writeFieldStop();
16336
      oprot.writeStructEnd();
16337
    }
16338
 
16339
    @Override
16340
    public String toString() {
16341
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16342
      boolean first = true;
16343
 
16344
      sb.append("entityIds:");
16345
      if (this.entityIds == null) {
16346
        sb.append("null");
16347
      } else {
16348
        sb.append(this.entityIds);
16349
      }
16350
      first = false;
16351
      if (!first) sb.append(", ");
16352
      sb.append("email:");
16353
      if (this.email == null) {
16354
        sb.append("null");
16355
      } else {
16356
        sb.append(this.email);
16357
      }
16358
      first = false;
16359
      sb.append(")");
16360
      return sb.toString();
16361
    }
16362
 
16363
    public void validate() throws org.apache.thrift.TException {
16364
      // check for required fields
16365
    }
16366
 
16367
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16368
      try {
16369
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16370
      } catch (org.apache.thrift.TException te) {
16371
        throw new java.io.IOException(te);
16372
      }
16373
    }
16374
 
16375
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16376
      try {
16377
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16378
      } catch (org.apache.thrift.TException te) {
16379
        throw new java.io.IOException(te);
16380
      }
16381
    }
16382
 
16383
  }
16384
 
16385
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16386
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16387
 
16388
    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);
16389
 
16390
    private HelperServiceException hse; // required
16391
 
16392
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16393
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16394
      HSE((short)1, "hse");
16395
 
16396
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16397
 
16398
      static {
16399
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16400
          byName.put(field.getFieldName(), field);
16401
        }
16402
      }
16403
 
16404
      /**
16405
       * Find the _Fields constant that matches fieldId, or null if its not found.
16406
       */
16407
      public static _Fields findByThriftId(int fieldId) {
16408
        switch(fieldId) {
16409
          case 1: // HSE
16410
            return HSE;
16411
          default:
16412
            return null;
16413
        }
16414
      }
16415
 
16416
      /**
16417
       * Find the _Fields constant that matches fieldId, throwing an exception
16418
       * if it is not found.
16419
       */
16420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16421
        _Fields fields = findByThriftId(fieldId);
16422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16423
        return fields;
16424
      }
16425
 
16426
      /**
16427
       * Find the _Fields constant that matches name, or null if its not found.
16428
       */
16429
      public static _Fields findByName(String name) {
16430
        return byName.get(name);
16431
      }
16432
 
16433
      private final short _thriftId;
16434
      private final String _fieldName;
16435
 
16436
      _Fields(short thriftId, String fieldName) {
16437
        _thriftId = thriftId;
16438
        _fieldName = fieldName;
16439
      }
16440
 
16441
      public short getThriftFieldId() {
16442
        return _thriftId;
16443
      }
16444
 
16445
      public String getFieldName() {
16446
        return _fieldName;
16447
      }
16448
    }
16449
 
16450
    // isset id assignments
16451
 
16452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16453
    static {
16454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16455
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16459
    }
16460
 
16461
    public shareEntities_result() {
16462
    }
16463
 
16464
    public shareEntities_result(
16465
      HelperServiceException hse)
16466
    {
16467
      this();
16468
      this.hse = hse;
16469
    }
16470
 
16471
    /**
16472
     * Performs a deep copy on <i>other</i>.
16473
     */
16474
    public shareEntities_result(shareEntities_result other) {
16475
      if (other.isSetHse()) {
16476
        this.hse = new HelperServiceException(other.hse);
16477
      }
16478
    }
16479
 
16480
    public shareEntities_result deepCopy() {
16481
      return new shareEntities_result(this);
16482
    }
16483
 
16484
    @Override
16485
    public void clear() {
16486
      this.hse = null;
16487
    }
16488
 
16489
    public HelperServiceException getHse() {
16490
      return this.hse;
16491
    }
16492
 
16493
    public void setHse(HelperServiceException hse) {
16494
      this.hse = hse;
16495
    }
16496
 
16497
    public void unsetHse() {
16498
      this.hse = null;
16499
    }
16500
 
16501
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16502
    public boolean isSetHse() {
16503
      return this.hse != null;
16504
    }
16505
 
16506
    public void setHseIsSet(boolean value) {
16507
      if (!value) {
16508
        this.hse = null;
16509
      }
16510
    }
16511
 
16512
    public void setFieldValue(_Fields field, Object value) {
16513
      switch (field) {
16514
      case HSE:
16515
        if (value == null) {
16516
          unsetHse();
16517
        } else {
16518
          setHse((HelperServiceException)value);
16519
        }
16520
        break;
16521
 
16522
      }
16523
    }
16524
 
16525
    public Object getFieldValue(_Fields field) {
16526
      switch (field) {
16527
      case HSE:
16528
        return getHse();
16529
 
16530
      }
16531
      throw new IllegalStateException();
16532
    }
16533
 
16534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16535
    public boolean isSet(_Fields field) {
16536
      if (field == null) {
16537
        throw new IllegalArgumentException();
16538
      }
16539
 
16540
      switch (field) {
16541
      case HSE:
16542
        return isSetHse();
16543
      }
16544
      throw new IllegalStateException();
16545
    }
16546
 
16547
    @Override
16548
    public boolean equals(Object that) {
16549
      if (that == null)
16550
        return false;
16551
      if (that instanceof shareEntities_result)
16552
        return this.equals((shareEntities_result)that);
16553
      return false;
16554
    }
16555
 
16556
    public boolean equals(shareEntities_result that) {
16557
      if (that == null)
16558
        return false;
16559
 
16560
      boolean this_present_hse = true && this.isSetHse();
16561
      boolean that_present_hse = true && that.isSetHse();
16562
      if (this_present_hse || that_present_hse) {
16563
        if (!(this_present_hse && that_present_hse))
16564
          return false;
16565
        if (!this.hse.equals(that.hse))
16566
          return false;
16567
      }
16568
 
16569
      return true;
16570
    }
16571
 
16572
    @Override
16573
    public int hashCode() {
16574
      return 0;
16575
    }
16576
 
16577
    public int compareTo(shareEntities_result other) {
16578
      if (!getClass().equals(other.getClass())) {
16579
        return getClass().getName().compareTo(other.getClass().getName());
16580
      }
16581
 
16582
      int lastComparison = 0;
16583
      shareEntities_result typedOther = (shareEntities_result)other;
16584
 
16585
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16586
      if (lastComparison != 0) {
16587
        return lastComparison;
16588
      }
16589
      if (isSetHse()) {
16590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16591
        if (lastComparison != 0) {
16592
          return lastComparison;
16593
        }
16594
      }
16595
      return 0;
16596
    }
16597
 
16598
    public _Fields fieldForId(int fieldId) {
16599
      return _Fields.findByThriftId(fieldId);
16600
    }
16601
 
16602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16603
      org.apache.thrift.protocol.TField field;
16604
      iprot.readStructBegin();
16605
      while (true)
16606
      {
16607
        field = iprot.readFieldBegin();
16608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16609
          break;
16610
        }
16611
        switch (field.id) {
16612
          case 1: // HSE
16613
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16614
              this.hse = new HelperServiceException();
16615
              this.hse.read(iprot);
16616
            } else { 
16617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16618
            }
16619
            break;
16620
          default:
16621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16622
        }
16623
        iprot.readFieldEnd();
16624
      }
16625
      iprot.readStructEnd();
16626
      validate();
16627
    }
16628
 
16629
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16630
      oprot.writeStructBegin(STRUCT_DESC);
16631
 
16632
      if (this.isSetHse()) {
16633
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16634
        this.hse.write(oprot);
16635
        oprot.writeFieldEnd();
16636
      }
16637
      oprot.writeFieldStop();
16638
      oprot.writeStructEnd();
16639
    }
16640
 
16641
    @Override
16642
    public String toString() {
16643
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16644
      boolean first = true;
16645
 
16646
      sb.append("hse:");
16647
      if (this.hse == null) {
16648
        sb.append("null");
16649
      } else {
16650
        sb.append(this.hse);
16651
      }
16652
      first = false;
16653
      sb.append(")");
16654
      return sb.toString();
16655
    }
16656
 
16657
    public void validate() throws org.apache.thrift.TException {
16658
      // check for required fields
16659
    }
16660
 
16661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16662
      try {
16663
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16664
      } catch (org.apache.thrift.TException te) {
16665
        throw new java.io.IOException(te);
16666
      }
16667
    }
16668
 
16669
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16670
      try {
16671
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16672
      } catch (org.apache.thrift.TException te) {
16673
        throw new java.io.IOException(te);
16674
      }
16675
    }
16676
 
16677
  }
16678
 
4693 mandeep.dh 16679
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16680
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16681
 
16682
 
16683
 
16684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16686
;
16687
 
16688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16689
 
16690
      static {
16691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16692
          byName.put(field.getFieldName(), field);
16693
        }
16694
      }
16695
 
16696
      /**
16697
       * Find the _Fields constant that matches fieldId, or null if its not found.
16698
       */
16699
      public static _Fields findByThriftId(int fieldId) {
16700
        switch(fieldId) {
16701
          default:
16702
            return null;
16703
        }
16704
      }
16705
 
16706
      /**
16707
       * Find the _Fields constant that matches fieldId, throwing an exception
16708
       * if it is not found.
16709
       */
16710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16711
        _Fields fields = findByThriftId(fieldId);
16712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16713
        return fields;
16714
      }
16715
 
16716
      /**
16717
       * Find the _Fields constant that matches name, or null if its not found.
16718
       */
16719
      public static _Fields findByName(String name) {
16720
        return byName.get(name);
16721
      }
16722
 
16723
      private final short _thriftId;
16724
      private final String _fieldName;
16725
 
16726
      _Fields(short thriftId, String fieldName) {
16727
        _thriftId = thriftId;
16728
        _fieldName = fieldName;
16729
      }
16730
 
16731
      public short getThriftFieldId() {
16732
        return _thriftId;
16733
      }
16734
 
16735
      public String getFieldName() {
16736
        return _fieldName;
16737
      }
16738
    }
16739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16740
    static {
16741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16744
    }
16745
 
16746
    public getAgents_args() {
16747
    }
16748
 
16749
    /**
16750
     * Performs a deep copy on <i>other</i>.
16751
     */
16752
    public getAgents_args(getAgents_args other) {
16753
    }
16754
 
16755
    public getAgents_args deepCopy() {
16756
      return new getAgents_args(this);
16757
    }
16758
 
16759
    @Override
16760
    public void clear() {
16761
    }
16762
 
16763
    public void setFieldValue(_Fields field, Object value) {
16764
      switch (field) {
16765
      }
16766
    }
16767
 
16768
    public Object getFieldValue(_Fields field) {
16769
      switch (field) {
16770
      }
16771
      throw new IllegalStateException();
16772
    }
16773
 
16774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16775
    public boolean isSet(_Fields field) {
16776
      if (field == null) {
16777
        throw new IllegalArgumentException();
16778
      }
16779
 
16780
      switch (field) {
16781
      }
16782
      throw new IllegalStateException();
16783
    }
16784
 
16785
    @Override
16786
    public boolean equals(Object that) {
16787
      if (that == null)
16788
        return false;
16789
      if (that instanceof getAgents_args)
16790
        return this.equals((getAgents_args)that);
16791
      return false;
16792
    }
16793
 
16794
    public boolean equals(getAgents_args that) {
16795
      if (that == null)
16796
        return false;
16797
 
16798
      return true;
16799
    }
16800
 
16801
    @Override
16802
    public int hashCode() {
16803
      return 0;
16804
    }
16805
 
16806
    public int compareTo(getAgents_args other) {
16807
      if (!getClass().equals(other.getClass())) {
16808
        return getClass().getName().compareTo(other.getClass().getName());
16809
      }
16810
 
16811
      int lastComparison = 0;
16812
      getAgents_args typedOther = (getAgents_args)other;
16813
 
16814
      return 0;
16815
    }
16816
 
16817
    public _Fields fieldForId(int fieldId) {
16818
      return _Fields.findByThriftId(fieldId);
16819
    }
16820
 
16821
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16822
      org.apache.thrift.protocol.TField field;
16823
      iprot.readStructBegin();
16824
      while (true)
16825
      {
16826
        field = iprot.readFieldBegin();
16827
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16828
          break;
16829
        }
16830
        switch (field.id) {
16831
          default:
16832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16833
        }
16834
        iprot.readFieldEnd();
16835
      }
16836
      iprot.readStructEnd();
16837
      validate();
16838
    }
16839
 
16840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16841
      validate();
16842
 
16843
      oprot.writeStructBegin(STRUCT_DESC);
16844
      oprot.writeFieldStop();
16845
      oprot.writeStructEnd();
16846
    }
16847
 
16848
    @Override
16849
    public String toString() {
16850
      StringBuilder sb = new StringBuilder("getAgents_args(");
16851
      boolean first = true;
16852
 
16853
      sb.append(")");
16854
      return sb.toString();
16855
    }
16856
 
16857
    public void validate() throws org.apache.thrift.TException {
16858
      // check for required fields
16859
    }
16860
 
16861
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16862
      try {
16863
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16864
      } catch (org.apache.thrift.TException te) {
16865
        throw new java.io.IOException(te);
16866
      }
16867
    }
16868
 
16869
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16870
      try {
16871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16872
      } catch (org.apache.thrift.TException te) {
16873
        throw new java.io.IOException(te);
16874
      }
16875
    }
16876
 
16877
  }
16878
 
16879
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16881
 
16882
    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);
16883
 
16884
    private List<Agent> success; // required
16885
 
16886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16888
      SUCCESS((short)0, "success");
16889
 
16890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16891
 
16892
      static {
16893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16894
          byName.put(field.getFieldName(), field);
16895
        }
16896
      }
16897
 
16898
      /**
16899
       * Find the _Fields constant that matches fieldId, or null if its not found.
16900
       */
16901
      public static _Fields findByThriftId(int fieldId) {
16902
        switch(fieldId) {
16903
          case 0: // SUCCESS
16904
            return SUCCESS;
16905
          default:
16906
            return null;
16907
        }
16908
      }
16909
 
16910
      /**
16911
       * Find the _Fields constant that matches fieldId, throwing an exception
16912
       * if it is not found.
16913
       */
16914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16915
        _Fields fields = findByThriftId(fieldId);
16916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16917
        return fields;
16918
      }
16919
 
16920
      /**
16921
       * Find the _Fields constant that matches name, or null if its not found.
16922
       */
16923
      public static _Fields findByName(String name) {
16924
        return byName.get(name);
16925
      }
16926
 
16927
      private final short _thriftId;
16928
      private final String _fieldName;
16929
 
16930
      _Fields(short thriftId, String fieldName) {
16931
        _thriftId = thriftId;
16932
        _fieldName = fieldName;
16933
      }
16934
 
16935
      public short getThriftFieldId() {
16936
        return _thriftId;
16937
      }
16938
 
16939
      public String getFieldName() {
16940
        return _fieldName;
16941
      }
16942
    }
16943
 
16944
    // isset id assignments
16945
 
16946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16947
    static {
16948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16949
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16950
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16951
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
16952
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16953
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
16954
    }
16955
 
16956
    public getAgents_result() {
16957
    }
16958
 
16959
    public getAgents_result(
16960
      List<Agent> success)
16961
    {
16962
      this();
16963
      this.success = success;
16964
    }
16965
 
16966
    /**
16967
     * Performs a deep copy on <i>other</i>.
16968
     */
16969
    public getAgents_result(getAgents_result other) {
16970
      if (other.isSetSuccess()) {
16971
        List<Agent> __this__success = new ArrayList<Agent>();
16972
        for (Agent other_element : other.success) {
16973
          __this__success.add(new Agent(other_element));
16974
        }
16975
        this.success = __this__success;
16976
      }
16977
    }
16978
 
16979
    public getAgents_result deepCopy() {
16980
      return new getAgents_result(this);
16981
    }
16982
 
16983
    @Override
16984
    public void clear() {
16985
      this.success = null;
16986
    }
16987
 
16988
    public int getSuccessSize() {
16989
      return (this.success == null) ? 0 : this.success.size();
16990
    }
16991
 
16992
    public java.util.Iterator<Agent> getSuccessIterator() {
16993
      return (this.success == null) ? null : this.success.iterator();
16994
    }
16995
 
16996
    public void addToSuccess(Agent elem) {
16997
      if (this.success == null) {
16998
        this.success = new ArrayList<Agent>();
16999
      }
17000
      this.success.add(elem);
17001
    }
17002
 
17003
    public List<Agent> getSuccess() {
17004
      return this.success;
17005
    }
17006
 
17007
    public void setSuccess(List<Agent> success) {
17008
      this.success = success;
17009
    }
17010
 
17011
    public void unsetSuccess() {
17012
      this.success = null;
17013
    }
17014
 
17015
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17016
    public boolean isSetSuccess() {
17017
      return this.success != null;
17018
    }
17019
 
17020
    public void setSuccessIsSet(boolean value) {
17021
      if (!value) {
17022
        this.success = null;
17023
      }
17024
    }
17025
 
17026
    public void setFieldValue(_Fields field, Object value) {
17027
      switch (field) {
17028
      case SUCCESS:
17029
        if (value == null) {
17030
          unsetSuccess();
17031
        } else {
17032
          setSuccess((List<Agent>)value);
17033
        }
17034
        break;
17035
 
17036
      }
17037
    }
17038
 
17039
    public Object getFieldValue(_Fields field) {
17040
      switch (field) {
17041
      case SUCCESS:
17042
        return getSuccess();
17043
 
17044
      }
17045
      throw new IllegalStateException();
17046
    }
17047
 
17048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17049
    public boolean isSet(_Fields field) {
17050
      if (field == null) {
17051
        throw new IllegalArgumentException();
17052
      }
17053
 
17054
      switch (field) {
17055
      case SUCCESS:
17056
        return isSetSuccess();
17057
      }
17058
      throw new IllegalStateException();
17059
    }
17060
 
17061
    @Override
17062
    public boolean equals(Object that) {
17063
      if (that == null)
17064
        return false;
17065
      if (that instanceof getAgents_result)
17066
        return this.equals((getAgents_result)that);
17067
      return false;
17068
    }
17069
 
17070
    public boolean equals(getAgents_result that) {
17071
      if (that == null)
17072
        return false;
17073
 
17074
      boolean this_present_success = true && this.isSetSuccess();
17075
      boolean that_present_success = true && that.isSetSuccess();
17076
      if (this_present_success || that_present_success) {
17077
        if (!(this_present_success && that_present_success))
17078
          return false;
17079
        if (!this.success.equals(that.success))
17080
          return false;
17081
      }
17082
 
17083
      return true;
17084
    }
17085
 
17086
    @Override
17087
    public int hashCode() {
17088
      return 0;
17089
    }
17090
 
17091
    public int compareTo(getAgents_result other) {
17092
      if (!getClass().equals(other.getClass())) {
17093
        return getClass().getName().compareTo(other.getClass().getName());
17094
      }
17095
 
17096
      int lastComparison = 0;
17097
      getAgents_result typedOther = (getAgents_result)other;
17098
 
17099
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17100
      if (lastComparison != 0) {
17101
        return lastComparison;
17102
      }
17103
      if (isSetSuccess()) {
17104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17105
        if (lastComparison != 0) {
17106
          return lastComparison;
17107
        }
17108
      }
17109
      return 0;
17110
    }
17111
 
17112
    public _Fields fieldForId(int fieldId) {
17113
      return _Fields.findByThriftId(fieldId);
17114
    }
17115
 
17116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17117
      org.apache.thrift.protocol.TField field;
17118
      iprot.readStructBegin();
17119
      while (true)
17120
      {
17121
        field = iprot.readFieldBegin();
17122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17123
          break;
17124
        }
17125
        switch (field.id) {
17126
          case 0: // SUCCESS
17127
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17128
              {
5864 rajveer 17129
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17130
                this.success = new ArrayList<Agent>(_list49.size);
17131
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17132
                {
5864 rajveer 17133
                  Agent _elem51; // required
17134
                  _elem51 = new Agent();
17135
                  _elem51.read(iprot);
17136
                  this.success.add(_elem51);
4693 mandeep.dh 17137
                }
17138
                iprot.readListEnd();
17139
              }
17140
            } else { 
17141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17142
            }
17143
            break;
17144
          default:
17145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17146
        }
17147
        iprot.readFieldEnd();
17148
      }
17149
      iprot.readStructEnd();
17150
      validate();
17151
    }
17152
 
17153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17154
      oprot.writeStructBegin(STRUCT_DESC);
17155
 
17156
      if (this.isSetSuccess()) {
17157
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17158
        {
17159
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17160
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17161
          {
5864 rajveer 17162
            _iter52.write(oprot);
4693 mandeep.dh 17163
          }
17164
          oprot.writeListEnd();
17165
        }
17166
        oprot.writeFieldEnd();
17167
      }
17168
      oprot.writeFieldStop();
17169
      oprot.writeStructEnd();
17170
    }
17171
 
17172
    @Override
17173
    public String toString() {
17174
      StringBuilder sb = new StringBuilder("getAgents_result(");
17175
      boolean first = true;
17176
 
17177
      sb.append("success:");
17178
      if (this.success == null) {
17179
        sb.append("null");
17180
      } else {
17181
        sb.append(this.success);
17182
      }
17183
      first = false;
17184
      sb.append(")");
17185
      return sb.toString();
17186
    }
17187
 
17188
    public void validate() throws org.apache.thrift.TException {
17189
      // check for required fields
17190
    }
17191
 
17192
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17193
      try {
17194
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17195
      } catch (org.apache.thrift.TException te) {
17196
        throw new java.io.IOException(te);
17197
      }
17198
    }
17199
 
17200
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17201
      try {
17202
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17203
      } catch (org.apache.thrift.TException te) {
17204
        throw new java.io.IOException(te);
17205
      }
17206
    }
17207
 
17208
  }
17209
 
17210
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17211
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17212
 
17213
    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);
17214
    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);
17215
 
17216
    private String emailId; // required
17217
    private String password; // required
17218
 
17219
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17220
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17221
      EMAIL_ID((short)1, "emailId"),
17222
      PASSWORD((short)2, "password");
17223
 
17224
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17225
 
17226
      static {
17227
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17228
          byName.put(field.getFieldName(), field);
17229
        }
17230
      }
17231
 
17232
      /**
17233
       * Find the _Fields constant that matches fieldId, or null if its not found.
17234
       */
17235
      public static _Fields findByThriftId(int fieldId) {
17236
        switch(fieldId) {
17237
          case 1: // EMAIL_ID
17238
            return EMAIL_ID;
17239
          case 2: // PASSWORD
17240
            return PASSWORD;
17241
          default:
17242
            return null;
17243
        }
17244
      }
17245
 
17246
      /**
17247
       * Find the _Fields constant that matches fieldId, throwing an exception
17248
       * if it is not found.
17249
       */
17250
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17251
        _Fields fields = findByThriftId(fieldId);
17252
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17253
        return fields;
17254
      }
17255
 
17256
      /**
17257
       * Find the _Fields constant that matches name, or null if its not found.
17258
       */
17259
      public static _Fields findByName(String name) {
17260
        return byName.get(name);
17261
      }
17262
 
17263
      private final short _thriftId;
17264
      private final String _fieldName;
17265
 
17266
      _Fields(short thriftId, String fieldName) {
17267
        _thriftId = thriftId;
17268
        _fieldName = fieldName;
17269
      }
17270
 
17271
      public short getThriftFieldId() {
17272
        return _thriftId;
17273
      }
17274
 
17275
      public String getFieldName() {
17276
        return _fieldName;
17277
      }
17278
    }
17279
 
17280
    // isset id assignments
17281
 
17282
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17283
    static {
17284
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17285
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17287
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17289
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17290
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17291
    }
17292
 
17293
    public validateLogIn_args() {
17294
    }
17295
 
17296
    public validateLogIn_args(
17297
      String emailId,
17298
      String password)
17299
    {
17300
      this();
17301
      this.emailId = emailId;
17302
      this.password = password;
17303
    }
17304
 
17305
    /**
17306
     * Performs a deep copy on <i>other</i>.
17307
     */
17308
    public validateLogIn_args(validateLogIn_args other) {
17309
      if (other.isSetEmailId()) {
17310
        this.emailId = other.emailId;
17311
      }
17312
      if (other.isSetPassword()) {
17313
        this.password = other.password;
17314
      }
17315
    }
17316
 
17317
    public validateLogIn_args deepCopy() {
17318
      return new validateLogIn_args(this);
17319
    }
17320
 
17321
    @Override
17322
    public void clear() {
17323
      this.emailId = null;
17324
      this.password = null;
17325
    }
17326
 
17327
    public String getEmailId() {
17328
      return this.emailId;
17329
    }
17330
 
17331
    public void setEmailId(String emailId) {
17332
      this.emailId = emailId;
17333
    }
17334
 
17335
    public void unsetEmailId() {
17336
      this.emailId = null;
17337
    }
17338
 
17339
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17340
    public boolean isSetEmailId() {
17341
      return this.emailId != null;
17342
    }
17343
 
17344
    public void setEmailIdIsSet(boolean value) {
17345
      if (!value) {
17346
        this.emailId = null;
17347
      }
17348
    }
17349
 
17350
    public String getPassword() {
17351
      return this.password;
17352
    }
17353
 
17354
    public void setPassword(String password) {
17355
      this.password = password;
17356
    }
17357
 
17358
    public void unsetPassword() {
17359
      this.password = null;
17360
    }
17361
 
17362
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17363
    public boolean isSetPassword() {
17364
      return this.password != null;
17365
    }
17366
 
17367
    public void setPasswordIsSet(boolean value) {
17368
      if (!value) {
17369
        this.password = null;
17370
      }
17371
    }
17372
 
17373
    public void setFieldValue(_Fields field, Object value) {
17374
      switch (field) {
17375
      case EMAIL_ID:
17376
        if (value == null) {
17377
          unsetEmailId();
17378
        } else {
17379
          setEmailId((String)value);
17380
        }
17381
        break;
17382
 
17383
      case PASSWORD:
17384
        if (value == null) {
17385
          unsetPassword();
17386
        } else {
17387
          setPassword((String)value);
17388
        }
17389
        break;
17390
 
17391
      }
17392
    }
17393
 
17394
    public Object getFieldValue(_Fields field) {
17395
      switch (field) {
17396
      case EMAIL_ID:
17397
        return getEmailId();
17398
 
17399
      case PASSWORD:
17400
        return getPassword();
17401
 
17402
      }
17403
      throw new IllegalStateException();
17404
    }
17405
 
17406
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17407
    public boolean isSet(_Fields field) {
17408
      if (field == null) {
17409
        throw new IllegalArgumentException();
17410
      }
17411
 
17412
      switch (field) {
17413
      case EMAIL_ID:
17414
        return isSetEmailId();
17415
      case PASSWORD:
17416
        return isSetPassword();
17417
      }
17418
      throw new IllegalStateException();
17419
    }
17420
 
17421
    @Override
17422
    public boolean equals(Object that) {
17423
      if (that == null)
17424
        return false;
17425
      if (that instanceof validateLogIn_args)
17426
        return this.equals((validateLogIn_args)that);
17427
      return false;
17428
    }
17429
 
17430
    public boolean equals(validateLogIn_args that) {
17431
      if (that == null)
17432
        return false;
17433
 
17434
      boolean this_present_emailId = true && this.isSetEmailId();
17435
      boolean that_present_emailId = true && that.isSetEmailId();
17436
      if (this_present_emailId || that_present_emailId) {
17437
        if (!(this_present_emailId && that_present_emailId))
17438
          return false;
17439
        if (!this.emailId.equals(that.emailId))
17440
          return false;
17441
      }
17442
 
17443
      boolean this_present_password = true && this.isSetPassword();
17444
      boolean that_present_password = true && that.isSetPassword();
17445
      if (this_present_password || that_present_password) {
17446
        if (!(this_present_password && that_present_password))
17447
          return false;
17448
        if (!this.password.equals(that.password))
17449
          return false;
17450
      }
17451
 
17452
      return true;
17453
    }
17454
 
17455
    @Override
17456
    public int hashCode() {
17457
      return 0;
17458
    }
17459
 
17460
    public int compareTo(validateLogIn_args other) {
17461
      if (!getClass().equals(other.getClass())) {
17462
        return getClass().getName().compareTo(other.getClass().getName());
17463
      }
17464
 
17465
      int lastComparison = 0;
17466
      validateLogIn_args typedOther = (validateLogIn_args)other;
17467
 
17468
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17469
      if (lastComparison != 0) {
17470
        return lastComparison;
17471
      }
17472
      if (isSetEmailId()) {
17473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17474
        if (lastComparison != 0) {
17475
          return lastComparison;
17476
        }
17477
      }
17478
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17479
      if (lastComparison != 0) {
17480
        return lastComparison;
17481
      }
17482
      if (isSetPassword()) {
17483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17484
        if (lastComparison != 0) {
17485
          return lastComparison;
17486
        }
17487
      }
17488
      return 0;
17489
    }
17490
 
17491
    public _Fields fieldForId(int fieldId) {
17492
      return _Fields.findByThriftId(fieldId);
17493
    }
17494
 
17495
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17496
      org.apache.thrift.protocol.TField field;
17497
      iprot.readStructBegin();
17498
      while (true)
17499
      {
17500
        field = iprot.readFieldBegin();
17501
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17502
          break;
17503
        }
17504
        switch (field.id) {
17505
          case 1: // EMAIL_ID
17506
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17507
              this.emailId = iprot.readString();
17508
            } else { 
17509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17510
            }
17511
            break;
17512
          case 2: // PASSWORD
17513
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17514
              this.password = iprot.readString();
17515
            } else { 
17516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17517
            }
17518
            break;
17519
          default:
17520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17521
        }
17522
        iprot.readFieldEnd();
17523
      }
17524
      iprot.readStructEnd();
17525
      validate();
17526
    }
17527
 
17528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17529
      validate();
17530
 
17531
      oprot.writeStructBegin(STRUCT_DESC);
17532
      if (this.emailId != null) {
17533
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17534
        oprot.writeString(this.emailId);
17535
        oprot.writeFieldEnd();
17536
      }
17537
      if (this.password != null) {
17538
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17539
        oprot.writeString(this.password);
17540
        oprot.writeFieldEnd();
17541
      }
17542
      oprot.writeFieldStop();
17543
      oprot.writeStructEnd();
17544
    }
17545
 
17546
    @Override
17547
    public String toString() {
17548
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17549
      boolean first = true;
17550
 
17551
      sb.append("emailId:");
17552
      if (this.emailId == null) {
17553
        sb.append("null");
17554
      } else {
17555
        sb.append(this.emailId);
17556
      }
17557
      first = false;
17558
      if (!first) sb.append(", ");
17559
      sb.append("password:");
17560
      if (this.password == null) {
17561
        sb.append("null");
17562
      } else {
17563
        sb.append(this.password);
17564
      }
17565
      first = false;
17566
      sb.append(")");
17567
      return sb.toString();
17568
    }
17569
 
17570
    public void validate() throws org.apache.thrift.TException {
17571
      // check for required fields
17572
    }
17573
 
17574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17575
      try {
17576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17577
      } catch (org.apache.thrift.TException te) {
17578
        throw new java.io.IOException(te);
17579
      }
17580
    }
17581
 
17582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17583
      try {
17584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17585
      } catch (org.apache.thrift.TException te) {
17586
        throw new java.io.IOException(te);
17587
      }
17588
    }
17589
 
17590
  }
17591
 
17592
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17594
 
17595
    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);
17596
 
17597
    private boolean success; // required
17598
 
17599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17601
      SUCCESS((short)0, "success");
17602
 
17603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17604
 
17605
      static {
17606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17607
          byName.put(field.getFieldName(), field);
17608
        }
17609
      }
17610
 
17611
      /**
17612
       * Find the _Fields constant that matches fieldId, or null if its not found.
17613
       */
17614
      public static _Fields findByThriftId(int fieldId) {
17615
        switch(fieldId) {
17616
          case 0: // SUCCESS
17617
            return SUCCESS;
17618
          default:
17619
            return null;
17620
        }
17621
      }
17622
 
17623
      /**
17624
       * Find the _Fields constant that matches fieldId, throwing an exception
17625
       * if it is not found.
17626
       */
17627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17628
        _Fields fields = findByThriftId(fieldId);
17629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17630
        return fields;
17631
      }
17632
 
17633
      /**
17634
       * Find the _Fields constant that matches name, or null if its not found.
17635
       */
17636
      public static _Fields findByName(String name) {
17637
        return byName.get(name);
17638
      }
17639
 
17640
      private final short _thriftId;
17641
      private final String _fieldName;
17642
 
17643
      _Fields(short thriftId, String fieldName) {
17644
        _thriftId = thriftId;
17645
        _fieldName = fieldName;
17646
      }
17647
 
17648
      public short getThriftFieldId() {
17649
        return _thriftId;
17650
      }
17651
 
17652
      public String getFieldName() {
17653
        return _fieldName;
17654
      }
17655
    }
17656
 
17657
    // isset id assignments
17658
    private static final int __SUCCESS_ISSET_ID = 0;
17659
    private BitSet __isset_bit_vector = new BitSet(1);
17660
 
17661
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17662
    static {
17663
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17664
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17666
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17667
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17668
    }
17669
 
17670
    public validateLogIn_result() {
17671
    }
17672
 
17673
    public validateLogIn_result(
17674
      boolean success)
17675
    {
17676
      this();
17677
      this.success = success;
17678
      setSuccessIsSet(true);
17679
    }
17680
 
17681
    /**
17682
     * Performs a deep copy on <i>other</i>.
17683
     */
17684
    public validateLogIn_result(validateLogIn_result other) {
17685
      __isset_bit_vector.clear();
17686
      __isset_bit_vector.or(other.__isset_bit_vector);
17687
      this.success = other.success;
17688
    }
17689
 
17690
    public validateLogIn_result deepCopy() {
17691
      return new validateLogIn_result(this);
17692
    }
17693
 
17694
    @Override
17695
    public void clear() {
17696
      setSuccessIsSet(false);
17697
      this.success = false;
17698
    }
17699
 
17700
    public boolean isSuccess() {
17701
      return this.success;
17702
    }
17703
 
17704
    public void setSuccess(boolean success) {
17705
      this.success = success;
17706
      setSuccessIsSet(true);
17707
    }
17708
 
17709
    public void unsetSuccess() {
17710
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17711
    }
17712
 
17713
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17714
    public boolean isSetSuccess() {
17715
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17716
    }
17717
 
17718
    public void setSuccessIsSet(boolean value) {
17719
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17720
    }
17721
 
17722
    public void setFieldValue(_Fields field, Object value) {
17723
      switch (field) {
17724
      case SUCCESS:
17725
        if (value == null) {
17726
          unsetSuccess();
17727
        } else {
17728
          setSuccess((Boolean)value);
17729
        }
17730
        break;
17731
 
17732
      }
17733
    }
17734
 
17735
    public Object getFieldValue(_Fields field) {
17736
      switch (field) {
17737
      case SUCCESS:
17738
        return Boolean.valueOf(isSuccess());
17739
 
17740
      }
17741
      throw new IllegalStateException();
17742
    }
17743
 
17744
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17745
    public boolean isSet(_Fields field) {
17746
      if (field == null) {
17747
        throw new IllegalArgumentException();
17748
      }
17749
 
17750
      switch (field) {
17751
      case SUCCESS:
17752
        return isSetSuccess();
17753
      }
17754
      throw new IllegalStateException();
17755
    }
17756
 
17757
    @Override
17758
    public boolean equals(Object that) {
17759
      if (that == null)
17760
        return false;
17761
      if (that instanceof validateLogIn_result)
17762
        return this.equals((validateLogIn_result)that);
17763
      return false;
17764
    }
17765
 
17766
    public boolean equals(validateLogIn_result that) {
17767
      if (that == null)
17768
        return false;
17769
 
17770
      boolean this_present_success = true;
17771
      boolean that_present_success = true;
17772
      if (this_present_success || that_present_success) {
17773
        if (!(this_present_success && that_present_success))
17774
          return false;
17775
        if (this.success != that.success)
17776
          return false;
17777
      }
17778
 
17779
      return true;
17780
    }
17781
 
17782
    @Override
17783
    public int hashCode() {
17784
      return 0;
17785
    }
17786
 
17787
    public int compareTo(validateLogIn_result other) {
17788
      if (!getClass().equals(other.getClass())) {
17789
        return getClass().getName().compareTo(other.getClass().getName());
17790
      }
17791
 
17792
      int lastComparison = 0;
17793
      validateLogIn_result typedOther = (validateLogIn_result)other;
17794
 
17795
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17796
      if (lastComparison != 0) {
17797
        return lastComparison;
17798
      }
17799
      if (isSetSuccess()) {
17800
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17801
        if (lastComparison != 0) {
17802
          return lastComparison;
17803
        }
17804
      }
17805
      return 0;
17806
    }
17807
 
17808
    public _Fields fieldForId(int fieldId) {
17809
      return _Fields.findByThriftId(fieldId);
17810
    }
17811
 
17812
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17813
      org.apache.thrift.protocol.TField field;
17814
      iprot.readStructBegin();
17815
      while (true)
17816
      {
17817
        field = iprot.readFieldBegin();
17818
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17819
          break;
17820
        }
17821
        switch (field.id) {
17822
          case 0: // SUCCESS
17823
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17824
              this.success = iprot.readBool();
17825
              setSuccessIsSet(true);
17826
            } else { 
17827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17828
            }
17829
            break;
17830
          default:
17831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17832
        }
17833
        iprot.readFieldEnd();
17834
      }
17835
      iprot.readStructEnd();
17836
      validate();
17837
    }
17838
 
17839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17840
      oprot.writeStructBegin(STRUCT_DESC);
17841
 
17842
      if (this.isSetSuccess()) {
17843
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17844
        oprot.writeBool(this.success);
17845
        oprot.writeFieldEnd();
17846
      }
17847
      oprot.writeFieldStop();
17848
      oprot.writeStructEnd();
17849
    }
17850
 
17851
    @Override
17852
    public String toString() {
17853
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17854
      boolean first = true;
17855
 
17856
      sb.append("success:");
17857
      sb.append(this.success);
17858
      first = false;
17859
      sb.append(")");
17860
      return sb.toString();
17861
    }
17862
 
17863
    public void validate() throws org.apache.thrift.TException {
17864
      // check for required fields
17865
    }
17866
 
17867
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17868
      try {
17869
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17870
      } catch (org.apache.thrift.TException te) {
17871
        throw new java.io.IOException(te);
17872
      }
17873
    }
17874
 
17875
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17876
      try {
17877
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17878
      } catch (org.apache.thrift.TException te) {
17879
        throw new java.io.IOException(te);
17880
      }
17881
    }
17882
 
17883
  }
17884
 
17885
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17886
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17887
 
17888
    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);
17889
    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);
17890
 
17891
    private String agentEmailId; // required
17892
    private String password; // required
17893
 
17894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17895
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17896
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17897
      PASSWORD((short)2, "password");
17898
 
17899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17900
 
17901
      static {
17902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17903
          byName.put(field.getFieldName(), field);
17904
        }
17905
      }
17906
 
17907
      /**
17908
       * Find the _Fields constant that matches fieldId, or null if its not found.
17909
       */
17910
      public static _Fields findByThriftId(int fieldId) {
17911
        switch(fieldId) {
17912
          case 1: // AGENT_EMAIL_ID
17913
            return AGENT_EMAIL_ID;
17914
          case 2: // PASSWORD
17915
            return PASSWORD;
17916
          default:
17917
            return null;
17918
        }
17919
      }
17920
 
17921
      /**
17922
       * Find the _Fields constant that matches fieldId, throwing an exception
17923
       * if it is not found.
17924
       */
17925
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17926
        _Fields fields = findByThriftId(fieldId);
17927
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17928
        return fields;
17929
      }
17930
 
17931
      /**
17932
       * Find the _Fields constant that matches name, or null if its not found.
17933
       */
17934
      public static _Fields findByName(String name) {
17935
        return byName.get(name);
17936
      }
17937
 
17938
      private final short _thriftId;
17939
      private final String _fieldName;
17940
 
17941
      _Fields(short thriftId, String fieldName) {
17942
        _thriftId = thriftId;
17943
        _fieldName = fieldName;
17944
      }
17945
 
17946
      public short getThriftFieldId() {
17947
        return _thriftId;
17948
      }
17949
 
17950
      public String getFieldName() {
17951
        return _fieldName;
17952
      }
17953
    }
17954
 
17955
    // isset id assignments
17956
 
17957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17958
    static {
17959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17960
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17962
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17963
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17964
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17965
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
17966
    }
17967
 
17968
    public updatePasswordForAgent_args() {
17969
    }
17970
 
17971
    public updatePasswordForAgent_args(
17972
      String agentEmailId,
17973
      String password)
17974
    {
17975
      this();
17976
      this.agentEmailId = agentEmailId;
17977
      this.password = password;
17978
    }
17979
 
17980
    /**
17981
     * Performs a deep copy on <i>other</i>.
17982
     */
17983
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
17984
      if (other.isSetAgentEmailId()) {
17985
        this.agentEmailId = other.agentEmailId;
17986
      }
17987
      if (other.isSetPassword()) {
17988
        this.password = other.password;
17989
      }
17990
    }
17991
 
17992
    public updatePasswordForAgent_args deepCopy() {
17993
      return new updatePasswordForAgent_args(this);
17994
    }
17995
 
17996
    @Override
17997
    public void clear() {
17998
      this.agentEmailId = null;
17999
      this.password = null;
18000
    }
18001
 
18002
    public String getAgentEmailId() {
18003
      return this.agentEmailId;
18004
    }
18005
 
18006
    public void setAgentEmailId(String agentEmailId) {
18007
      this.agentEmailId = agentEmailId;
18008
    }
18009
 
18010
    public void unsetAgentEmailId() {
18011
      this.agentEmailId = null;
18012
    }
18013
 
18014
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18015
    public boolean isSetAgentEmailId() {
18016
      return this.agentEmailId != null;
18017
    }
18018
 
18019
    public void setAgentEmailIdIsSet(boolean value) {
18020
      if (!value) {
18021
        this.agentEmailId = null;
18022
      }
18023
    }
18024
 
18025
    public String getPassword() {
18026
      return this.password;
18027
    }
18028
 
18029
    public void setPassword(String password) {
18030
      this.password = password;
18031
    }
18032
 
18033
    public void unsetPassword() {
18034
      this.password = null;
18035
    }
18036
 
18037
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18038
    public boolean isSetPassword() {
18039
      return this.password != null;
18040
    }
18041
 
18042
    public void setPasswordIsSet(boolean value) {
18043
      if (!value) {
18044
        this.password = null;
18045
      }
18046
    }
18047
 
18048
    public void setFieldValue(_Fields field, Object value) {
18049
      switch (field) {
18050
      case AGENT_EMAIL_ID:
18051
        if (value == null) {
18052
          unsetAgentEmailId();
18053
        } else {
18054
          setAgentEmailId((String)value);
18055
        }
18056
        break;
18057
 
18058
      case PASSWORD:
18059
        if (value == null) {
18060
          unsetPassword();
18061
        } else {
18062
          setPassword((String)value);
18063
        }
18064
        break;
18065
 
18066
      }
18067
    }
18068
 
18069
    public Object getFieldValue(_Fields field) {
18070
      switch (field) {
18071
      case AGENT_EMAIL_ID:
18072
        return getAgentEmailId();
18073
 
18074
      case PASSWORD:
18075
        return getPassword();
18076
 
18077
      }
18078
      throw new IllegalStateException();
18079
    }
18080
 
18081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18082
    public boolean isSet(_Fields field) {
18083
      if (field == null) {
18084
        throw new IllegalArgumentException();
18085
      }
18086
 
18087
      switch (field) {
18088
      case AGENT_EMAIL_ID:
18089
        return isSetAgentEmailId();
18090
      case PASSWORD:
18091
        return isSetPassword();
18092
      }
18093
      throw new IllegalStateException();
18094
    }
18095
 
18096
    @Override
18097
    public boolean equals(Object that) {
18098
      if (that == null)
18099
        return false;
18100
      if (that instanceof updatePasswordForAgent_args)
18101
        return this.equals((updatePasswordForAgent_args)that);
18102
      return false;
18103
    }
18104
 
18105
    public boolean equals(updatePasswordForAgent_args that) {
18106
      if (that == null)
18107
        return false;
18108
 
18109
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18110
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18111
      if (this_present_agentEmailId || that_present_agentEmailId) {
18112
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18113
          return false;
18114
        if (!this.agentEmailId.equals(that.agentEmailId))
18115
          return false;
18116
      }
18117
 
18118
      boolean this_present_password = true && this.isSetPassword();
18119
      boolean that_present_password = true && that.isSetPassword();
18120
      if (this_present_password || that_present_password) {
18121
        if (!(this_present_password && that_present_password))
18122
          return false;
18123
        if (!this.password.equals(that.password))
18124
          return false;
18125
      }
18126
 
18127
      return true;
18128
    }
18129
 
18130
    @Override
18131
    public int hashCode() {
18132
      return 0;
18133
    }
18134
 
18135
    public int compareTo(updatePasswordForAgent_args other) {
18136
      if (!getClass().equals(other.getClass())) {
18137
        return getClass().getName().compareTo(other.getClass().getName());
18138
      }
18139
 
18140
      int lastComparison = 0;
18141
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18142
 
18143
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18144
      if (lastComparison != 0) {
18145
        return lastComparison;
18146
      }
18147
      if (isSetAgentEmailId()) {
18148
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18149
        if (lastComparison != 0) {
18150
          return lastComparison;
18151
        }
18152
      }
18153
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18154
      if (lastComparison != 0) {
18155
        return lastComparison;
18156
      }
18157
      if (isSetPassword()) {
18158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18159
        if (lastComparison != 0) {
18160
          return lastComparison;
18161
        }
18162
      }
18163
      return 0;
18164
    }
18165
 
18166
    public _Fields fieldForId(int fieldId) {
18167
      return _Fields.findByThriftId(fieldId);
18168
    }
18169
 
18170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18171
      org.apache.thrift.protocol.TField field;
18172
      iprot.readStructBegin();
18173
      while (true)
18174
      {
18175
        field = iprot.readFieldBegin();
18176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18177
          break;
18178
        }
18179
        switch (field.id) {
18180
          case 1: // AGENT_EMAIL_ID
18181
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18182
              this.agentEmailId = iprot.readString();
18183
            } else { 
18184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18185
            }
18186
            break;
18187
          case 2: // PASSWORD
18188
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18189
              this.password = iprot.readString();
18190
            } else { 
18191
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18192
            }
18193
            break;
18194
          default:
18195
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18196
        }
18197
        iprot.readFieldEnd();
18198
      }
18199
      iprot.readStructEnd();
18200
      validate();
18201
    }
18202
 
18203
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18204
      validate();
18205
 
18206
      oprot.writeStructBegin(STRUCT_DESC);
18207
      if (this.agentEmailId != null) {
18208
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18209
        oprot.writeString(this.agentEmailId);
18210
        oprot.writeFieldEnd();
18211
      }
18212
      if (this.password != null) {
18213
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18214
        oprot.writeString(this.password);
18215
        oprot.writeFieldEnd();
18216
      }
18217
      oprot.writeFieldStop();
18218
      oprot.writeStructEnd();
18219
    }
18220
 
18221
    @Override
18222
    public String toString() {
18223
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18224
      boolean first = true;
18225
 
18226
      sb.append("agentEmailId:");
18227
      if (this.agentEmailId == null) {
18228
        sb.append("null");
18229
      } else {
18230
        sb.append(this.agentEmailId);
18231
      }
18232
      first = false;
18233
      if (!first) sb.append(", ");
18234
      sb.append("password:");
18235
      if (this.password == null) {
18236
        sb.append("null");
18237
      } else {
18238
        sb.append(this.password);
18239
      }
18240
      first = false;
18241
      sb.append(")");
18242
      return sb.toString();
18243
    }
18244
 
18245
    public void validate() throws org.apache.thrift.TException {
18246
      // check for required fields
18247
    }
18248
 
18249
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18250
      try {
18251
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18252
      } catch (org.apache.thrift.TException te) {
18253
        throw new java.io.IOException(te);
18254
      }
18255
    }
18256
 
18257
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18258
      try {
18259
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18260
      } catch (org.apache.thrift.TException te) {
18261
        throw new java.io.IOException(te);
18262
      }
18263
    }
18264
 
18265
  }
18266
 
18267
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18268
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18269
 
18270
 
18271
 
18272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18274
;
18275
 
18276
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18277
 
18278
      static {
18279
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18280
          byName.put(field.getFieldName(), field);
18281
        }
18282
      }
18283
 
18284
      /**
18285
       * Find the _Fields constant that matches fieldId, or null if its not found.
18286
       */
18287
      public static _Fields findByThriftId(int fieldId) {
18288
        switch(fieldId) {
18289
          default:
18290
            return null;
18291
        }
18292
      }
18293
 
18294
      /**
18295
       * Find the _Fields constant that matches fieldId, throwing an exception
18296
       * if it is not found.
18297
       */
18298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18299
        _Fields fields = findByThriftId(fieldId);
18300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18301
        return fields;
18302
      }
18303
 
18304
      /**
18305
       * Find the _Fields constant that matches name, or null if its not found.
18306
       */
18307
      public static _Fields findByName(String name) {
18308
        return byName.get(name);
18309
      }
18310
 
18311
      private final short _thriftId;
18312
      private final String _fieldName;
18313
 
18314
      _Fields(short thriftId, String fieldName) {
18315
        _thriftId = thriftId;
18316
        _fieldName = fieldName;
18317
      }
18318
 
18319
      public short getThriftFieldId() {
18320
        return _thriftId;
18321
      }
18322
 
18323
      public String getFieldName() {
18324
        return _fieldName;
18325
      }
18326
    }
18327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18328
    static {
18329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18330
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18331
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18332
    }
18333
 
18334
    public updatePasswordForAgent_result() {
18335
    }
18336
 
18337
    /**
18338
     * Performs a deep copy on <i>other</i>.
18339
     */
18340
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18341
    }
18342
 
18343
    public updatePasswordForAgent_result deepCopy() {
18344
      return new updatePasswordForAgent_result(this);
18345
    }
18346
 
18347
    @Override
18348
    public void clear() {
18349
    }
18350
 
18351
    public void setFieldValue(_Fields field, Object value) {
18352
      switch (field) {
18353
      }
18354
    }
18355
 
18356
    public Object getFieldValue(_Fields field) {
18357
      switch (field) {
18358
      }
18359
      throw new IllegalStateException();
18360
    }
18361
 
18362
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18363
    public boolean isSet(_Fields field) {
18364
      if (field == null) {
18365
        throw new IllegalArgumentException();
18366
      }
18367
 
18368
      switch (field) {
18369
      }
18370
      throw new IllegalStateException();
18371
    }
18372
 
18373
    @Override
18374
    public boolean equals(Object that) {
18375
      if (that == null)
18376
        return false;
18377
      if (that instanceof updatePasswordForAgent_result)
18378
        return this.equals((updatePasswordForAgent_result)that);
18379
      return false;
18380
    }
18381
 
18382
    public boolean equals(updatePasswordForAgent_result that) {
18383
      if (that == null)
18384
        return false;
18385
 
18386
      return true;
18387
    }
18388
 
18389
    @Override
18390
    public int hashCode() {
18391
      return 0;
18392
    }
18393
 
18394
    public int compareTo(updatePasswordForAgent_result other) {
18395
      if (!getClass().equals(other.getClass())) {
18396
        return getClass().getName().compareTo(other.getClass().getName());
18397
      }
18398
 
18399
      int lastComparison = 0;
18400
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18401
 
18402
      return 0;
18403
    }
18404
 
18405
    public _Fields fieldForId(int fieldId) {
18406
      return _Fields.findByThriftId(fieldId);
18407
    }
18408
 
18409
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18410
      org.apache.thrift.protocol.TField field;
18411
      iprot.readStructBegin();
18412
      while (true)
18413
      {
18414
        field = iprot.readFieldBegin();
18415
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18416
          break;
18417
        }
18418
        switch (field.id) {
18419
          default:
18420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18421
        }
18422
        iprot.readFieldEnd();
18423
      }
18424
      iprot.readStructEnd();
18425
      validate();
18426
    }
18427
 
18428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18429
      oprot.writeStructBegin(STRUCT_DESC);
18430
 
18431
      oprot.writeFieldStop();
18432
      oprot.writeStructEnd();
18433
    }
18434
 
18435
    @Override
18436
    public String toString() {
18437
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18438
      boolean first = true;
18439
 
18440
      sb.append(")");
18441
      return sb.toString();
18442
    }
18443
 
18444
    public void validate() throws org.apache.thrift.TException {
18445
      // check for required fields
18446
    }
18447
 
18448
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18449
      try {
18450
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18451
      } catch (org.apache.thrift.TException te) {
18452
        throw new java.io.IOException(te);
18453
      }
18454
    }
18455
 
18456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18457
      try {
18458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18459
      } catch (org.apache.thrift.TException te) {
18460
        throw new java.io.IOException(te);
18461
      }
18462
    }
18463
 
18464
  }
18465
 
18466
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18468
 
18469
    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);
18470
 
18471
    private String agentEmailId; // required
18472
 
18473
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18474
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18475
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18476
 
18477
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18478
 
18479
      static {
18480
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18481
          byName.put(field.getFieldName(), field);
18482
        }
18483
      }
18484
 
18485
      /**
18486
       * Find the _Fields constant that matches fieldId, or null if its not found.
18487
       */
18488
      public static _Fields findByThriftId(int fieldId) {
18489
        switch(fieldId) {
18490
          case 1: // AGENT_EMAIL_ID
18491
            return AGENT_EMAIL_ID;
18492
          default:
18493
            return null;
18494
        }
18495
      }
18496
 
18497
      /**
18498
       * Find the _Fields constant that matches fieldId, throwing an exception
18499
       * if it is not found.
18500
       */
18501
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18502
        _Fields fields = findByThriftId(fieldId);
18503
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18504
        return fields;
18505
      }
18506
 
18507
      /**
18508
       * Find the _Fields constant that matches name, or null if its not found.
18509
       */
18510
      public static _Fields findByName(String name) {
18511
        return byName.get(name);
18512
      }
18513
 
18514
      private final short _thriftId;
18515
      private final String _fieldName;
18516
 
18517
      _Fields(short thriftId, String fieldName) {
18518
        _thriftId = thriftId;
18519
        _fieldName = fieldName;
18520
      }
18521
 
18522
      public short getThriftFieldId() {
18523
        return _thriftId;
18524
      }
18525
 
18526
      public String getFieldName() {
18527
        return _fieldName;
18528
      }
18529
    }
18530
 
18531
    // isset id assignments
18532
 
18533
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18534
    static {
18535
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18536
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18540
    }
18541
 
18542
    public getRoleNamesForAgent_args() {
18543
    }
18544
 
18545
    public getRoleNamesForAgent_args(
18546
      String agentEmailId)
18547
    {
18548
      this();
18549
      this.agentEmailId = agentEmailId;
18550
    }
18551
 
18552
    /**
18553
     * Performs a deep copy on <i>other</i>.
18554
     */
18555
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18556
      if (other.isSetAgentEmailId()) {
18557
        this.agentEmailId = other.agentEmailId;
18558
      }
18559
    }
18560
 
18561
    public getRoleNamesForAgent_args deepCopy() {
18562
      return new getRoleNamesForAgent_args(this);
18563
    }
18564
 
18565
    @Override
18566
    public void clear() {
18567
      this.agentEmailId = null;
18568
    }
18569
 
18570
    public String getAgentEmailId() {
18571
      return this.agentEmailId;
18572
    }
18573
 
18574
    public void setAgentEmailId(String agentEmailId) {
18575
      this.agentEmailId = agentEmailId;
18576
    }
18577
 
18578
    public void unsetAgentEmailId() {
18579
      this.agentEmailId = null;
18580
    }
18581
 
18582
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18583
    public boolean isSetAgentEmailId() {
18584
      return this.agentEmailId != null;
18585
    }
18586
 
18587
    public void setAgentEmailIdIsSet(boolean value) {
18588
      if (!value) {
18589
        this.agentEmailId = null;
18590
      }
18591
    }
18592
 
18593
    public void setFieldValue(_Fields field, Object value) {
18594
      switch (field) {
18595
      case AGENT_EMAIL_ID:
18596
        if (value == null) {
18597
          unsetAgentEmailId();
18598
        } else {
18599
          setAgentEmailId((String)value);
18600
        }
18601
        break;
18602
 
18603
      }
18604
    }
18605
 
18606
    public Object getFieldValue(_Fields field) {
18607
      switch (field) {
18608
      case AGENT_EMAIL_ID:
18609
        return getAgentEmailId();
18610
 
18611
      }
18612
      throw new IllegalStateException();
18613
    }
18614
 
18615
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18616
    public boolean isSet(_Fields field) {
18617
      if (field == null) {
18618
        throw new IllegalArgumentException();
18619
      }
18620
 
18621
      switch (field) {
18622
      case AGENT_EMAIL_ID:
18623
        return isSetAgentEmailId();
18624
      }
18625
      throw new IllegalStateException();
18626
    }
18627
 
18628
    @Override
18629
    public boolean equals(Object that) {
18630
      if (that == null)
18631
        return false;
18632
      if (that instanceof getRoleNamesForAgent_args)
18633
        return this.equals((getRoleNamesForAgent_args)that);
18634
      return false;
18635
    }
18636
 
18637
    public boolean equals(getRoleNamesForAgent_args that) {
18638
      if (that == null)
18639
        return false;
18640
 
18641
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18642
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18643
      if (this_present_agentEmailId || that_present_agentEmailId) {
18644
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18645
          return false;
18646
        if (!this.agentEmailId.equals(that.agentEmailId))
18647
          return false;
18648
      }
18649
 
18650
      return true;
18651
    }
18652
 
18653
    @Override
18654
    public int hashCode() {
18655
      return 0;
18656
    }
18657
 
18658
    public int compareTo(getRoleNamesForAgent_args other) {
18659
      if (!getClass().equals(other.getClass())) {
18660
        return getClass().getName().compareTo(other.getClass().getName());
18661
      }
18662
 
18663
      int lastComparison = 0;
18664
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18665
 
18666
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18667
      if (lastComparison != 0) {
18668
        return lastComparison;
18669
      }
18670
      if (isSetAgentEmailId()) {
18671
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18672
        if (lastComparison != 0) {
18673
          return lastComparison;
18674
        }
18675
      }
18676
      return 0;
18677
    }
18678
 
18679
    public _Fields fieldForId(int fieldId) {
18680
      return _Fields.findByThriftId(fieldId);
18681
    }
18682
 
18683
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18684
      org.apache.thrift.protocol.TField field;
18685
      iprot.readStructBegin();
18686
      while (true)
18687
      {
18688
        field = iprot.readFieldBegin();
18689
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18690
          break;
18691
        }
18692
        switch (field.id) {
18693
          case 1: // AGENT_EMAIL_ID
18694
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18695
              this.agentEmailId = iprot.readString();
18696
            } else { 
18697
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18698
            }
18699
            break;
18700
          default:
18701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18702
        }
18703
        iprot.readFieldEnd();
18704
      }
18705
      iprot.readStructEnd();
18706
      validate();
18707
    }
18708
 
18709
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18710
      validate();
18711
 
18712
      oprot.writeStructBegin(STRUCT_DESC);
18713
      if (this.agentEmailId != null) {
18714
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18715
        oprot.writeString(this.agentEmailId);
18716
        oprot.writeFieldEnd();
18717
      }
18718
      oprot.writeFieldStop();
18719
      oprot.writeStructEnd();
18720
    }
18721
 
18722
    @Override
18723
    public String toString() {
18724
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18725
      boolean first = true;
18726
 
18727
      sb.append("agentEmailId:");
18728
      if (this.agentEmailId == null) {
18729
        sb.append("null");
18730
      } else {
18731
        sb.append(this.agentEmailId);
18732
      }
18733
      first = false;
18734
      sb.append(")");
18735
      return sb.toString();
18736
    }
18737
 
18738
    public void validate() throws org.apache.thrift.TException {
18739
      // check for required fields
18740
    }
18741
 
18742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18743
      try {
18744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18745
      } catch (org.apache.thrift.TException te) {
18746
        throw new java.io.IOException(te);
18747
      }
18748
    }
18749
 
18750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18751
      try {
18752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18753
      } catch (org.apache.thrift.TException te) {
18754
        throw new java.io.IOException(te);
18755
      }
18756
    }
18757
 
18758
  }
18759
 
18760
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18762
 
18763
    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);
18764
 
18765
    private List<String> success; // required
18766
 
18767
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18768
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18769
      SUCCESS((short)0, "success");
18770
 
18771
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18772
 
18773
      static {
18774
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18775
          byName.put(field.getFieldName(), field);
18776
        }
18777
      }
18778
 
18779
      /**
18780
       * Find the _Fields constant that matches fieldId, or null if its not found.
18781
       */
18782
      public static _Fields findByThriftId(int fieldId) {
18783
        switch(fieldId) {
18784
          case 0: // SUCCESS
18785
            return SUCCESS;
18786
          default:
18787
            return null;
18788
        }
18789
      }
18790
 
18791
      /**
18792
       * Find the _Fields constant that matches fieldId, throwing an exception
18793
       * if it is not found.
18794
       */
18795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18796
        _Fields fields = findByThriftId(fieldId);
18797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18798
        return fields;
18799
      }
18800
 
18801
      /**
18802
       * Find the _Fields constant that matches name, or null if its not found.
18803
       */
18804
      public static _Fields findByName(String name) {
18805
        return byName.get(name);
18806
      }
18807
 
18808
      private final short _thriftId;
18809
      private final String _fieldName;
18810
 
18811
      _Fields(short thriftId, String fieldName) {
18812
        _thriftId = thriftId;
18813
        _fieldName = fieldName;
18814
      }
18815
 
18816
      public short getThriftFieldId() {
18817
        return _thriftId;
18818
      }
18819
 
18820
      public String getFieldName() {
18821
        return _fieldName;
18822
      }
18823
    }
18824
 
18825
    // isset id assignments
18826
 
18827
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18828
    static {
18829
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18830
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18831
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18832
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18835
    }
18836
 
18837
    public getRoleNamesForAgent_result() {
18838
    }
18839
 
18840
    public getRoleNamesForAgent_result(
18841
      List<String> success)
18842
    {
18843
      this();
18844
      this.success = success;
18845
    }
18846
 
18847
    /**
18848
     * Performs a deep copy on <i>other</i>.
18849
     */
18850
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18851
      if (other.isSetSuccess()) {
18852
        List<String> __this__success = new ArrayList<String>();
18853
        for (String other_element : other.success) {
18854
          __this__success.add(other_element);
18855
        }
18856
        this.success = __this__success;
18857
      }
18858
    }
18859
 
18860
    public getRoleNamesForAgent_result deepCopy() {
18861
      return new getRoleNamesForAgent_result(this);
18862
    }
18863
 
18864
    @Override
18865
    public void clear() {
18866
      this.success = null;
18867
    }
18868
 
18869
    public int getSuccessSize() {
18870
      return (this.success == null) ? 0 : this.success.size();
18871
    }
18872
 
18873
    public java.util.Iterator<String> getSuccessIterator() {
18874
      return (this.success == null) ? null : this.success.iterator();
18875
    }
18876
 
18877
    public void addToSuccess(String elem) {
18878
      if (this.success == null) {
18879
        this.success = new ArrayList<String>();
18880
      }
18881
      this.success.add(elem);
18882
    }
18883
 
18884
    public List<String> getSuccess() {
18885
      return this.success;
18886
    }
18887
 
18888
    public void setSuccess(List<String> success) {
18889
      this.success = success;
18890
    }
18891
 
18892
    public void unsetSuccess() {
18893
      this.success = null;
18894
    }
18895
 
18896
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18897
    public boolean isSetSuccess() {
18898
      return this.success != null;
18899
    }
18900
 
18901
    public void setSuccessIsSet(boolean value) {
18902
      if (!value) {
18903
        this.success = null;
18904
      }
18905
    }
18906
 
18907
    public void setFieldValue(_Fields field, Object value) {
18908
      switch (field) {
18909
      case SUCCESS:
18910
        if (value == null) {
18911
          unsetSuccess();
18912
        } else {
18913
          setSuccess((List<String>)value);
18914
        }
18915
        break;
18916
 
18917
      }
18918
    }
18919
 
18920
    public Object getFieldValue(_Fields field) {
18921
      switch (field) {
18922
      case SUCCESS:
18923
        return getSuccess();
18924
 
18925
      }
18926
      throw new IllegalStateException();
18927
    }
18928
 
18929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18930
    public boolean isSet(_Fields field) {
18931
      if (field == null) {
18932
        throw new IllegalArgumentException();
18933
      }
18934
 
18935
      switch (field) {
18936
      case SUCCESS:
18937
        return isSetSuccess();
18938
      }
18939
      throw new IllegalStateException();
18940
    }
18941
 
18942
    @Override
18943
    public boolean equals(Object that) {
18944
      if (that == null)
18945
        return false;
18946
      if (that instanceof getRoleNamesForAgent_result)
18947
        return this.equals((getRoleNamesForAgent_result)that);
18948
      return false;
18949
    }
18950
 
18951
    public boolean equals(getRoleNamesForAgent_result that) {
18952
      if (that == null)
18953
        return false;
18954
 
18955
      boolean this_present_success = true && this.isSetSuccess();
18956
      boolean that_present_success = true && that.isSetSuccess();
18957
      if (this_present_success || that_present_success) {
18958
        if (!(this_present_success && that_present_success))
18959
          return false;
18960
        if (!this.success.equals(that.success))
18961
          return false;
18962
      }
18963
 
18964
      return true;
18965
    }
18966
 
18967
    @Override
18968
    public int hashCode() {
18969
      return 0;
18970
    }
18971
 
18972
    public int compareTo(getRoleNamesForAgent_result other) {
18973
      if (!getClass().equals(other.getClass())) {
18974
        return getClass().getName().compareTo(other.getClass().getName());
18975
      }
18976
 
18977
      int lastComparison = 0;
18978
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
18979
 
18980
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18981
      if (lastComparison != 0) {
18982
        return lastComparison;
18983
      }
18984
      if (isSetSuccess()) {
18985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18986
        if (lastComparison != 0) {
18987
          return lastComparison;
18988
        }
18989
      }
18990
      return 0;
18991
    }
18992
 
18993
    public _Fields fieldForId(int fieldId) {
18994
      return _Fields.findByThriftId(fieldId);
18995
    }
18996
 
18997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18998
      org.apache.thrift.protocol.TField field;
18999
      iprot.readStructBegin();
19000
      while (true)
19001
      {
19002
        field = iprot.readFieldBegin();
19003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19004
          break;
19005
        }
19006
        switch (field.id) {
19007
          case 0: // SUCCESS
19008
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19009
              {
5864 rajveer 19010
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
19011
                this.success = new ArrayList<String>(_list53.size);
19012
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 19013
                {
5864 rajveer 19014
                  String _elem55; // required
19015
                  _elem55 = iprot.readString();
19016
                  this.success.add(_elem55);
4693 mandeep.dh 19017
                }
19018
                iprot.readListEnd();
19019
              }
19020
            } else { 
19021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19022
            }
19023
            break;
19024
          default:
19025
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19026
        }
19027
        iprot.readFieldEnd();
19028
      }
19029
      iprot.readStructEnd();
19030
      validate();
19031
    }
19032
 
19033
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19034
      oprot.writeStructBegin(STRUCT_DESC);
19035
 
19036
      if (this.isSetSuccess()) {
19037
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19038
        {
19039
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19040
          for (String _iter56 : this.success)
4693 mandeep.dh 19041
          {
5864 rajveer 19042
            oprot.writeString(_iter56);
4693 mandeep.dh 19043
          }
19044
          oprot.writeListEnd();
19045
        }
19046
        oprot.writeFieldEnd();
19047
      }
19048
      oprot.writeFieldStop();
19049
      oprot.writeStructEnd();
19050
    }
19051
 
19052
    @Override
19053
    public String toString() {
19054
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19055
      boolean first = true;
19056
 
19057
      sb.append("success:");
19058
      if (this.success == null) {
19059
        sb.append("null");
19060
      } else {
19061
        sb.append(this.success);
19062
      }
19063
      first = false;
19064
      sb.append(")");
19065
      return sb.toString();
19066
    }
19067
 
19068
    public void validate() throws org.apache.thrift.TException {
19069
      // check for required fields
19070
    }
19071
 
19072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19073
      try {
19074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19075
      } catch (org.apache.thrift.TException te) {
19076
        throw new java.io.IOException(te);
19077
      }
19078
    }
19079
 
19080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19081
      try {
19082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19083
      } catch (org.apache.thrift.TException te) {
19084
        throw new java.io.IOException(te);
19085
      }
19086
    }
19087
 
19088
  }
19089
 
19090
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19092
 
19093
    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);
19094
 
19095
    private String roleName; // required
19096
 
19097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19099
      ROLE_NAME((short)1, "roleName");
19100
 
19101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19102
 
19103
      static {
19104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19105
          byName.put(field.getFieldName(), field);
19106
        }
19107
      }
19108
 
19109
      /**
19110
       * Find the _Fields constant that matches fieldId, or null if its not found.
19111
       */
19112
      public static _Fields findByThriftId(int fieldId) {
19113
        switch(fieldId) {
19114
          case 1: // ROLE_NAME
19115
            return ROLE_NAME;
19116
          default:
19117
            return null;
19118
        }
19119
      }
19120
 
19121
      /**
19122
       * Find the _Fields constant that matches fieldId, throwing an exception
19123
       * if it is not found.
19124
       */
19125
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19126
        _Fields fields = findByThriftId(fieldId);
19127
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19128
        return fields;
19129
      }
19130
 
19131
      /**
19132
       * Find the _Fields constant that matches name, or null if its not found.
19133
       */
19134
      public static _Fields findByName(String name) {
19135
        return byName.get(name);
19136
      }
19137
 
19138
      private final short _thriftId;
19139
      private final String _fieldName;
19140
 
19141
      _Fields(short thriftId, String fieldName) {
19142
        _thriftId = thriftId;
19143
        _fieldName = fieldName;
19144
      }
19145
 
19146
      public short getThriftFieldId() {
19147
        return _thriftId;
19148
      }
19149
 
19150
      public String getFieldName() {
19151
        return _fieldName;
19152
      }
19153
    }
19154
 
19155
    // isset id assignments
19156
 
19157
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19158
    static {
19159
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19160
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19162
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19163
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19164
    }
19165
 
19166
    public getPermissionsForRoleName_args() {
19167
    }
19168
 
19169
    public getPermissionsForRoleName_args(
19170
      String roleName)
19171
    {
19172
      this();
19173
      this.roleName = roleName;
19174
    }
19175
 
19176
    /**
19177
     * Performs a deep copy on <i>other</i>.
19178
     */
19179
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19180
      if (other.isSetRoleName()) {
19181
        this.roleName = other.roleName;
19182
      }
19183
    }
19184
 
19185
    public getPermissionsForRoleName_args deepCopy() {
19186
      return new getPermissionsForRoleName_args(this);
19187
    }
19188
 
19189
    @Override
19190
    public void clear() {
19191
      this.roleName = null;
19192
    }
19193
 
19194
    public String getRoleName() {
19195
      return this.roleName;
19196
    }
19197
 
19198
    public void setRoleName(String roleName) {
19199
      this.roleName = roleName;
19200
    }
19201
 
19202
    public void unsetRoleName() {
19203
      this.roleName = null;
19204
    }
19205
 
19206
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19207
    public boolean isSetRoleName() {
19208
      return this.roleName != null;
19209
    }
19210
 
19211
    public void setRoleNameIsSet(boolean value) {
19212
      if (!value) {
19213
        this.roleName = null;
19214
      }
19215
    }
19216
 
19217
    public void setFieldValue(_Fields field, Object value) {
19218
      switch (field) {
19219
      case ROLE_NAME:
19220
        if (value == null) {
19221
          unsetRoleName();
19222
        } else {
19223
          setRoleName((String)value);
19224
        }
19225
        break;
19226
 
19227
      }
19228
    }
19229
 
19230
    public Object getFieldValue(_Fields field) {
19231
      switch (field) {
19232
      case ROLE_NAME:
19233
        return getRoleName();
19234
 
19235
      }
19236
      throw new IllegalStateException();
19237
    }
19238
 
19239
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19240
    public boolean isSet(_Fields field) {
19241
      if (field == null) {
19242
        throw new IllegalArgumentException();
19243
      }
19244
 
19245
      switch (field) {
19246
      case ROLE_NAME:
19247
        return isSetRoleName();
19248
      }
19249
      throw new IllegalStateException();
19250
    }
19251
 
19252
    @Override
19253
    public boolean equals(Object that) {
19254
      if (that == null)
19255
        return false;
19256
      if (that instanceof getPermissionsForRoleName_args)
19257
        return this.equals((getPermissionsForRoleName_args)that);
19258
      return false;
19259
    }
19260
 
19261
    public boolean equals(getPermissionsForRoleName_args that) {
19262
      if (that == null)
19263
        return false;
19264
 
19265
      boolean this_present_roleName = true && this.isSetRoleName();
19266
      boolean that_present_roleName = true && that.isSetRoleName();
19267
      if (this_present_roleName || that_present_roleName) {
19268
        if (!(this_present_roleName && that_present_roleName))
19269
          return false;
19270
        if (!this.roleName.equals(that.roleName))
19271
          return false;
19272
      }
19273
 
19274
      return true;
19275
    }
19276
 
19277
    @Override
19278
    public int hashCode() {
19279
      return 0;
19280
    }
19281
 
19282
    public int compareTo(getPermissionsForRoleName_args other) {
19283
      if (!getClass().equals(other.getClass())) {
19284
        return getClass().getName().compareTo(other.getClass().getName());
19285
      }
19286
 
19287
      int lastComparison = 0;
19288
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19289
 
19290
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19291
      if (lastComparison != 0) {
19292
        return lastComparison;
19293
      }
19294
      if (isSetRoleName()) {
19295
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19296
        if (lastComparison != 0) {
19297
          return lastComparison;
19298
        }
19299
      }
19300
      return 0;
19301
    }
19302
 
19303
    public _Fields fieldForId(int fieldId) {
19304
      return _Fields.findByThriftId(fieldId);
19305
    }
19306
 
19307
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19308
      org.apache.thrift.protocol.TField field;
19309
      iprot.readStructBegin();
19310
      while (true)
19311
      {
19312
        field = iprot.readFieldBegin();
19313
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19314
          break;
19315
        }
19316
        switch (field.id) {
19317
          case 1: // ROLE_NAME
19318
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19319
              this.roleName = iprot.readString();
19320
            } else { 
19321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19322
            }
19323
            break;
19324
          default:
19325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19326
        }
19327
        iprot.readFieldEnd();
19328
      }
19329
      iprot.readStructEnd();
19330
      validate();
19331
    }
19332
 
19333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19334
      validate();
19335
 
19336
      oprot.writeStructBegin(STRUCT_DESC);
19337
      if (this.roleName != null) {
19338
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19339
        oprot.writeString(this.roleName);
19340
        oprot.writeFieldEnd();
19341
      }
19342
      oprot.writeFieldStop();
19343
      oprot.writeStructEnd();
19344
    }
19345
 
19346
    @Override
19347
    public String toString() {
19348
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19349
      boolean first = true;
19350
 
19351
      sb.append("roleName:");
19352
      if (this.roleName == null) {
19353
        sb.append("null");
19354
      } else {
19355
        sb.append(this.roleName);
19356
      }
19357
      first = false;
19358
      sb.append(")");
19359
      return sb.toString();
19360
    }
19361
 
19362
    public void validate() throws org.apache.thrift.TException {
19363
      // check for required fields
19364
    }
19365
 
19366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19367
      try {
19368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19369
      } catch (org.apache.thrift.TException te) {
19370
        throw new java.io.IOException(te);
19371
      }
19372
    }
19373
 
19374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19375
      try {
19376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19377
      } catch (org.apache.thrift.TException te) {
19378
        throw new java.io.IOException(te);
19379
      }
19380
    }
19381
 
19382
  }
19383
 
19384
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19386
 
19387
    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);
19388
 
19389
    private List<String> success; // required
19390
 
19391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19393
      SUCCESS((short)0, "success");
19394
 
19395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19396
 
19397
      static {
19398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19399
          byName.put(field.getFieldName(), field);
19400
        }
19401
      }
19402
 
19403
      /**
19404
       * Find the _Fields constant that matches fieldId, or null if its not found.
19405
       */
19406
      public static _Fields findByThriftId(int fieldId) {
19407
        switch(fieldId) {
19408
          case 0: // SUCCESS
19409
            return SUCCESS;
19410
          default:
19411
            return null;
19412
        }
19413
      }
19414
 
19415
      /**
19416
       * Find the _Fields constant that matches fieldId, throwing an exception
19417
       * if it is not found.
19418
       */
19419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19420
        _Fields fields = findByThriftId(fieldId);
19421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19422
        return fields;
19423
      }
19424
 
19425
      /**
19426
       * Find the _Fields constant that matches name, or null if its not found.
19427
       */
19428
      public static _Fields findByName(String name) {
19429
        return byName.get(name);
19430
      }
19431
 
19432
      private final short _thriftId;
19433
      private final String _fieldName;
19434
 
19435
      _Fields(short thriftId, String fieldName) {
19436
        _thriftId = thriftId;
19437
        _fieldName = fieldName;
19438
      }
19439
 
19440
      public short getThriftFieldId() {
19441
        return _thriftId;
19442
      }
19443
 
19444
      public String getFieldName() {
19445
        return _fieldName;
19446
      }
19447
    }
19448
 
19449
    // isset id assignments
19450
 
19451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19452
    static {
19453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19454
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19455
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19456
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19459
    }
19460
 
19461
    public getPermissionsForRoleName_result() {
19462
    }
19463
 
19464
    public getPermissionsForRoleName_result(
19465
      List<String> success)
19466
    {
19467
      this();
19468
      this.success = success;
19469
    }
19470
 
19471
    /**
19472
     * Performs a deep copy on <i>other</i>.
19473
     */
19474
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19475
      if (other.isSetSuccess()) {
19476
        List<String> __this__success = new ArrayList<String>();
19477
        for (String other_element : other.success) {
19478
          __this__success.add(other_element);
19479
        }
19480
        this.success = __this__success;
19481
      }
19482
    }
19483
 
19484
    public getPermissionsForRoleName_result deepCopy() {
19485
      return new getPermissionsForRoleName_result(this);
19486
    }
19487
 
19488
    @Override
19489
    public void clear() {
19490
      this.success = null;
19491
    }
19492
 
19493
    public int getSuccessSize() {
19494
      return (this.success == null) ? 0 : this.success.size();
19495
    }
19496
 
19497
    public java.util.Iterator<String> getSuccessIterator() {
19498
      return (this.success == null) ? null : this.success.iterator();
19499
    }
19500
 
19501
    public void addToSuccess(String elem) {
19502
      if (this.success == null) {
19503
        this.success = new ArrayList<String>();
19504
      }
19505
      this.success.add(elem);
19506
    }
19507
 
19508
    public List<String> getSuccess() {
19509
      return this.success;
19510
    }
19511
 
19512
    public void setSuccess(List<String> success) {
19513
      this.success = success;
19514
    }
19515
 
19516
    public void unsetSuccess() {
19517
      this.success = null;
19518
    }
19519
 
19520
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19521
    public boolean isSetSuccess() {
19522
      return this.success != null;
19523
    }
19524
 
19525
    public void setSuccessIsSet(boolean value) {
19526
      if (!value) {
19527
        this.success = null;
19528
      }
19529
    }
19530
 
19531
    public void setFieldValue(_Fields field, Object value) {
19532
      switch (field) {
19533
      case SUCCESS:
19534
        if (value == null) {
19535
          unsetSuccess();
19536
        } else {
19537
          setSuccess((List<String>)value);
19538
        }
19539
        break;
19540
 
19541
      }
19542
    }
19543
 
19544
    public Object getFieldValue(_Fields field) {
19545
      switch (field) {
19546
      case SUCCESS:
19547
        return getSuccess();
19548
 
19549
      }
19550
      throw new IllegalStateException();
19551
    }
19552
 
19553
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19554
    public boolean isSet(_Fields field) {
19555
      if (field == null) {
19556
        throw new IllegalArgumentException();
19557
      }
19558
 
19559
      switch (field) {
19560
      case SUCCESS:
19561
        return isSetSuccess();
19562
      }
19563
      throw new IllegalStateException();
19564
    }
19565
 
19566
    @Override
19567
    public boolean equals(Object that) {
19568
      if (that == null)
19569
        return false;
19570
      if (that instanceof getPermissionsForRoleName_result)
19571
        return this.equals((getPermissionsForRoleName_result)that);
19572
      return false;
19573
    }
19574
 
19575
    public boolean equals(getPermissionsForRoleName_result that) {
19576
      if (that == null)
19577
        return false;
19578
 
19579
      boolean this_present_success = true && this.isSetSuccess();
19580
      boolean that_present_success = true && that.isSetSuccess();
19581
      if (this_present_success || that_present_success) {
19582
        if (!(this_present_success && that_present_success))
19583
          return false;
19584
        if (!this.success.equals(that.success))
19585
          return false;
19586
      }
19587
 
19588
      return true;
19589
    }
19590
 
19591
    @Override
19592
    public int hashCode() {
19593
      return 0;
19594
    }
19595
 
19596
    public int compareTo(getPermissionsForRoleName_result other) {
19597
      if (!getClass().equals(other.getClass())) {
19598
        return getClass().getName().compareTo(other.getClass().getName());
19599
      }
19600
 
19601
      int lastComparison = 0;
19602
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19603
 
19604
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19605
      if (lastComparison != 0) {
19606
        return lastComparison;
19607
      }
19608
      if (isSetSuccess()) {
19609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19610
        if (lastComparison != 0) {
19611
          return lastComparison;
19612
        }
19613
      }
19614
      return 0;
19615
    }
19616
 
19617
    public _Fields fieldForId(int fieldId) {
19618
      return _Fields.findByThriftId(fieldId);
19619
    }
19620
 
19621
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19622
      org.apache.thrift.protocol.TField field;
19623
      iprot.readStructBegin();
19624
      while (true)
19625
      {
19626
        field = iprot.readFieldBegin();
19627
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19628
          break;
19629
        }
19630
        switch (field.id) {
19631
          case 0: // SUCCESS
19632
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19633
              {
5864 rajveer 19634
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19635
                this.success = new ArrayList<String>(_list57.size);
19636
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19637
                {
5864 rajveer 19638
                  String _elem59; // required
19639
                  _elem59 = iprot.readString();
19640
                  this.success.add(_elem59);
4693 mandeep.dh 19641
                }
19642
                iprot.readListEnd();
19643
              }
19644
            } else { 
19645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19646
            }
19647
            break;
19648
          default:
19649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19650
        }
19651
        iprot.readFieldEnd();
19652
      }
19653
      iprot.readStructEnd();
19654
      validate();
19655
    }
19656
 
19657
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19658
      oprot.writeStructBegin(STRUCT_DESC);
19659
 
19660
      if (this.isSetSuccess()) {
19661
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19662
        {
19663
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19664
          for (String _iter60 : this.success)
4693 mandeep.dh 19665
          {
5864 rajveer 19666
            oprot.writeString(_iter60);
4693 mandeep.dh 19667
          }
19668
          oprot.writeListEnd();
19669
        }
19670
        oprot.writeFieldEnd();
19671
      }
19672
      oprot.writeFieldStop();
19673
      oprot.writeStructEnd();
19674
    }
19675
 
19676
    @Override
19677
    public String toString() {
19678
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19679
      boolean first = true;
19680
 
19681
      sb.append("success:");
19682
      if (this.success == null) {
19683
        sb.append("null");
19684
      } else {
19685
        sb.append(this.success);
19686
      }
19687
      first = false;
19688
      sb.append(")");
19689
      return sb.toString();
19690
    }
19691
 
19692
    public void validate() throws org.apache.thrift.TException {
19693
      // check for required fields
19694
    }
19695
 
19696
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19697
      try {
19698
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19699
      } catch (org.apache.thrift.TException te) {
19700
        throw new java.io.IOException(te);
19701
      }
19702
    }
19703
 
19704
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19705
      try {
19706
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19707
      } catch (org.apache.thrift.TException te) {
19708
        throw new java.io.IOException(te);
19709
      }
19710
    }
19711
 
19712
  }
19713
 
4806 varun.gupt 19714
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19715
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19716
 
19717
    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);
19718
    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);
19719
 
19720
    private String url; // required
19721
    private String text; // required
19722
 
19723
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19724
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19725
      URL((short)1, "url"),
19726
      TEXT((short)2, "text");
19727
 
19728
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19729
 
19730
      static {
19731
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19732
          byName.put(field.getFieldName(), field);
19733
        }
19734
      }
19735
 
19736
      /**
19737
       * Find the _Fields constant that matches fieldId, or null if its not found.
19738
       */
19739
      public static _Fields findByThriftId(int fieldId) {
19740
        switch(fieldId) {
19741
          case 1: // URL
19742
            return URL;
19743
          case 2: // TEXT
19744
            return TEXT;
19745
          default:
19746
            return null;
19747
        }
19748
      }
19749
 
19750
      /**
19751
       * Find the _Fields constant that matches fieldId, throwing an exception
19752
       * if it is not found.
19753
       */
19754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19755
        _Fields fields = findByThriftId(fieldId);
19756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19757
        return fields;
19758
      }
19759
 
19760
      /**
19761
       * Find the _Fields constant that matches name, or null if its not found.
19762
       */
19763
      public static _Fields findByName(String name) {
19764
        return byName.get(name);
19765
      }
19766
 
19767
      private final short _thriftId;
19768
      private final String _fieldName;
19769
 
19770
      _Fields(short thriftId, String fieldName) {
19771
        _thriftId = thriftId;
19772
        _fieldName = fieldName;
19773
      }
19774
 
19775
      public short getThriftFieldId() {
19776
        return _thriftId;
19777
      }
19778
 
19779
      public String getFieldName() {
19780
        return _fieldName;
19781
      }
19782
    }
19783
 
19784
    // isset id assignments
19785
 
19786
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19787
    static {
19788
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19789
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19790
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19791
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19795
    }
19796
 
19797
    public saveQuickLink_args() {
19798
    }
19799
 
19800
    public saveQuickLink_args(
19801
      String url,
19802
      String text)
19803
    {
19804
      this();
19805
      this.url = url;
19806
      this.text = text;
19807
    }
19808
 
19809
    /**
19810
     * Performs a deep copy on <i>other</i>.
19811
     */
19812
    public saveQuickLink_args(saveQuickLink_args other) {
19813
      if (other.isSetUrl()) {
19814
        this.url = other.url;
19815
      }
19816
      if (other.isSetText()) {
19817
        this.text = other.text;
19818
      }
19819
    }
19820
 
19821
    public saveQuickLink_args deepCopy() {
19822
      return new saveQuickLink_args(this);
19823
    }
19824
 
19825
    @Override
19826
    public void clear() {
19827
      this.url = null;
19828
      this.text = null;
19829
    }
19830
 
19831
    public String getUrl() {
19832
      return this.url;
19833
    }
19834
 
19835
    public void setUrl(String url) {
19836
      this.url = url;
19837
    }
19838
 
19839
    public void unsetUrl() {
19840
      this.url = null;
19841
    }
19842
 
19843
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19844
    public boolean isSetUrl() {
19845
      return this.url != null;
19846
    }
19847
 
19848
    public void setUrlIsSet(boolean value) {
19849
      if (!value) {
19850
        this.url = null;
19851
      }
19852
    }
19853
 
19854
    public String getText() {
19855
      return this.text;
19856
    }
19857
 
19858
    public void setText(String text) {
19859
      this.text = text;
19860
    }
19861
 
19862
    public void unsetText() {
19863
      this.text = null;
19864
    }
19865
 
19866
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19867
    public boolean isSetText() {
19868
      return this.text != null;
19869
    }
19870
 
19871
    public void setTextIsSet(boolean value) {
19872
      if (!value) {
19873
        this.text = null;
19874
      }
19875
    }
19876
 
19877
    public void setFieldValue(_Fields field, Object value) {
19878
      switch (field) {
19879
      case URL:
19880
        if (value == null) {
19881
          unsetUrl();
19882
        } else {
19883
          setUrl((String)value);
19884
        }
19885
        break;
19886
 
19887
      case TEXT:
19888
        if (value == null) {
19889
          unsetText();
19890
        } else {
19891
          setText((String)value);
19892
        }
19893
        break;
19894
 
19895
      }
19896
    }
19897
 
19898
    public Object getFieldValue(_Fields field) {
19899
      switch (field) {
19900
      case URL:
19901
        return getUrl();
19902
 
19903
      case TEXT:
19904
        return getText();
19905
 
19906
      }
19907
      throw new IllegalStateException();
19908
    }
19909
 
19910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19911
    public boolean isSet(_Fields field) {
19912
      if (field == null) {
19913
        throw new IllegalArgumentException();
19914
      }
19915
 
19916
      switch (field) {
19917
      case URL:
19918
        return isSetUrl();
19919
      case TEXT:
19920
        return isSetText();
19921
      }
19922
      throw new IllegalStateException();
19923
    }
19924
 
19925
    @Override
19926
    public boolean equals(Object that) {
19927
      if (that == null)
19928
        return false;
19929
      if (that instanceof saveQuickLink_args)
19930
        return this.equals((saveQuickLink_args)that);
19931
      return false;
19932
    }
19933
 
19934
    public boolean equals(saveQuickLink_args that) {
19935
      if (that == null)
19936
        return false;
19937
 
19938
      boolean this_present_url = true && this.isSetUrl();
19939
      boolean that_present_url = true && that.isSetUrl();
19940
      if (this_present_url || that_present_url) {
19941
        if (!(this_present_url && that_present_url))
19942
          return false;
19943
        if (!this.url.equals(that.url))
19944
          return false;
19945
      }
19946
 
19947
      boolean this_present_text = true && this.isSetText();
19948
      boolean that_present_text = true && that.isSetText();
19949
      if (this_present_text || that_present_text) {
19950
        if (!(this_present_text && that_present_text))
19951
          return false;
19952
        if (!this.text.equals(that.text))
19953
          return false;
19954
      }
19955
 
19956
      return true;
19957
    }
19958
 
19959
    @Override
19960
    public int hashCode() {
19961
      return 0;
19962
    }
19963
 
19964
    public int compareTo(saveQuickLink_args other) {
19965
      if (!getClass().equals(other.getClass())) {
19966
        return getClass().getName().compareTo(other.getClass().getName());
19967
      }
19968
 
19969
      int lastComparison = 0;
19970
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
19971
 
19972
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
19973
      if (lastComparison != 0) {
19974
        return lastComparison;
19975
      }
19976
      if (isSetUrl()) {
19977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
19978
        if (lastComparison != 0) {
19979
          return lastComparison;
19980
        }
19981
      }
19982
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
19983
      if (lastComparison != 0) {
19984
        return lastComparison;
19985
      }
19986
      if (isSetText()) {
19987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
19988
        if (lastComparison != 0) {
19989
          return lastComparison;
19990
        }
19991
      }
19992
      return 0;
19993
    }
19994
 
19995
    public _Fields fieldForId(int fieldId) {
19996
      return _Fields.findByThriftId(fieldId);
19997
    }
19998
 
19999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20000
      org.apache.thrift.protocol.TField field;
20001
      iprot.readStructBegin();
20002
      while (true)
20003
      {
20004
        field = iprot.readFieldBegin();
20005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20006
          break;
20007
        }
20008
        switch (field.id) {
20009
          case 1: // URL
20010
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20011
              this.url = iprot.readString();
20012
            } else { 
20013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20014
            }
20015
            break;
20016
          case 2: // TEXT
20017
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20018
              this.text = iprot.readString();
20019
            } else { 
20020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20021
            }
20022
            break;
20023
          default:
20024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20025
        }
20026
        iprot.readFieldEnd();
20027
      }
20028
      iprot.readStructEnd();
20029
      validate();
20030
    }
20031
 
20032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20033
      validate();
20034
 
20035
      oprot.writeStructBegin(STRUCT_DESC);
20036
      if (this.url != null) {
20037
        oprot.writeFieldBegin(URL_FIELD_DESC);
20038
        oprot.writeString(this.url);
20039
        oprot.writeFieldEnd();
20040
      }
20041
      if (this.text != null) {
20042
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20043
        oprot.writeString(this.text);
20044
        oprot.writeFieldEnd();
20045
      }
20046
      oprot.writeFieldStop();
20047
      oprot.writeStructEnd();
20048
    }
20049
 
20050
    @Override
20051
    public String toString() {
20052
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20053
      boolean first = true;
20054
 
20055
      sb.append("url:");
20056
      if (this.url == null) {
20057
        sb.append("null");
20058
      } else {
20059
        sb.append(this.url);
20060
      }
20061
      first = false;
20062
      if (!first) sb.append(", ");
20063
      sb.append("text:");
20064
      if (this.text == null) {
20065
        sb.append("null");
20066
      } else {
20067
        sb.append(this.text);
20068
      }
20069
      first = false;
20070
      sb.append(")");
20071
      return sb.toString();
20072
    }
20073
 
20074
    public void validate() throws org.apache.thrift.TException {
20075
      // check for required fields
20076
    }
20077
 
20078
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20079
      try {
20080
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20081
      } catch (org.apache.thrift.TException te) {
20082
        throw new java.io.IOException(te);
20083
      }
20084
    }
20085
 
20086
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20087
      try {
20088
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20089
      } catch (org.apache.thrift.TException te) {
20090
        throw new java.io.IOException(te);
20091
      }
20092
    }
20093
 
20094
  }
20095
 
20096
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20097
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20098
 
20099
    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);
20100
 
20101
    private HelperServiceException hse; // required
20102
 
20103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20105
      HSE((short)1, "hse");
20106
 
20107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20108
 
20109
      static {
20110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20111
          byName.put(field.getFieldName(), field);
20112
        }
20113
      }
20114
 
20115
      /**
20116
       * Find the _Fields constant that matches fieldId, or null if its not found.
20117
       */
20118
      public static _Fields findByThriftId(int fieldId) {
20119
        switch(fieldId) {
20120
          case 1: // HSE
20121
            return HSE;
20122
          default:
20123
            return null;
20124
        }
20125
      }
20126
 
20127
      /**
20128
       * Find the _Fields constant that matches fieldId, throwing an exception
20129
       * if it is not found.
20130
       */
20131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20132
        _Fields fields = findByThriftId(fieldId);
20133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20134
        return fields;
20135
      }
20136
 
20137
      /**
20138
       * Find the _Fields constant that matches name, or null if its not found.
20139
       */
20140
      public static _Fields findByName(String name) {
20141
        return byName.get(name);
20142
      }
20143
 
20144
      private final short _thriftId;
20145
      private final String _fieldName;
20146
 
20147
      _Fields(short thriftId, String fieldName) {
20148
        _thriftId = thriftId;
20149
        _fieldName = fieldName;
20150
      }
20151
 
20152
      public short getThriftFieldId() {
20153
        return _thriftId;
20154
      }
20155
 
20156
      public String getFieldName() {
20157
        return _fieldName;
20158
      }
20159
    }
20160
 
20161
    // isset id assignments
20162
 
20163
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20164
    static {
20165
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20166
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20168
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20169
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20170
    }
20171
 
20172
    public saveQuickLink_result() {
20173
    }
20174
 
20175
    public saveQuickLink_result(
20176
      HelperServiceException hse)
20177
    {
20178
      this();
20179
      this.hse = hse;
20180
    }
20181
 
20182
    /**
20183
     * Performs a deep copy on <i>other</i>.
20184
     */
20185
    public saveQuickLink_result(saveQuickLink_result other) {
20186
      if (other.isSetHse()) {
20187
        this.hse = new HelperServiceException(other.hse);
20188
      }
20189
    }
20190
 
20191
    public saveQuickLink_result deepCopy() {
20192
      return new saveQuickLink_result(this);
20193
    }
20194
 
20195
    @Override
20196
    public void clear() {
20197
      this.hse = null;
20198
    }
20199
 
20200
    public HelperServiceException getHse() {
20201
      return this.hse;
20202
    }
20203
 
20204
    public void setHse(HelperServiceException hse) {
20205
      this.hse = hse;
20206
    }
20207
 
20208
    public void unsetHse() {
20209
      this.hse = null;
20210
    }
20211
 
20212
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20213
    public boolean isSetHse() {
20214
      return this.hse != null;
20215
    }
20216
 
20217
    public void setHseIsSet(boolean value) {
20218
      if (!value) {
20219
        this.hse = null;
20220
      }
20221
    }
20222
 
20223
    public void setFieldValue(_Fields field, Object value) {
20224
      switch (field) {
20225
      case HSE:
20226
        if (value == null) {
20227
          unsetHse();
20228
        } else {
20229
          setHse((HelperServiceException)value);
20230
        }
20231
        break;
20232
 
20233
      }
20234
    }
20235
 
20236
    public Object getFieldValue(_Fields field) {
20237
      switch (field) {
20238
      case HSE:
20239
        return getHse();
20240
 
20241
      }
20242
      throw new IllegalStateException();
20243
    }
20244
 
20245
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20246
    public boolean isSet(_Fields field) {
20247
      if (field == null) {
20248
        throw new IllegalArgumentException();
20249
      }
20250
 
20251
      switch (field) {
20252
      case HSE:
20253
        return isSetHse();
20254
      }
20255
      throw new IllegalStateException();
20256
    }
20257
 
20258
    @Override
20259
    public boolean equals(Object that) {
20260
      if (that == null)
20261
        return false;
20262
      if (that instanceof saveQuickLink_result)
20263
        return this.equals((saveQuickLink_result)that);
20264
      return false;
20265
    }
20266
 
20267
    public boolean equals(saveQuickLink_result that) {
20268
      if (that == null)
20269
        return false;
20270
 
20271
      boolean this_present_hse = true && this.isSetHse();
20272
      boolean that_present_hse = true && that.isSetHse();
20273
      if (this_present_hse || that_present_hse) {
20274
        if (!(this_present_hse && that_present_hse))
20275
          return false;
20276
        if (!this.hse.equals(that.hse))
20277
          return false;
20278
      }
20279
 
20280
      return true;
20281
    }
20282
 
20283
    @Override
20284
    public int hashCode() {
20285
      return 0;
20286
    }
20287
 
20288
    public int compareTo(saveQuickLink_result other) {
20289
      if (!getClass().equals(other.getClass())) {
20290
        return getClass().getName().compareTo(other.getClass().getName());
20291
      }
20292
 
20293
      int lastComparison = 0;
20294
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20295
 
20296
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20297
      if (lastComparison != 0) {
20298
        return lastComparison;
20299
      }
20300
      if (isSetHse()) {
20301
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20302
        if (lastComparison != 0) {
20303
          return lastComparison;
20304
        }
20305
      }
20306
      return 0;
20307
    }
20308
 
20309
    public _Fields fieldForId(int fieldId) {
20310
      return _Fields.findByThriftId(fieldId);
20311
    }
20312
 
20313
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20314
      org.apache.thrift.protocol.TField field;
20315
      iprot.readStructBegin();
20316
      while (true)
20317
      {
20318
        field = iprot.readFieldBegin();
20319
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20320
          break;
20321
        }
20322
        switch (field.id) {
20323
          case 1: // HSE
20324
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20325
              this.hse = new HelperServiceException();
20326
              this.hse.read(iprot);
20327
            } else { 
20328
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20329
            }
20330
            break;
20331
          default:
20332
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20333
        }
20334
        iprot.readFieldEnd();
20335
      }
20336
      iprot.readStructEnd();
20337
      validate();
20338
    }
20339
 
20340
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20341
      oprot.writeStructBegin(STRUCT_DESC);
20342
 
20343
      if (this.isSetHse()) {
20344
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20345
        this.hse.write(oprot);
20346
        oprot.writeFieldEnd();
20347
      }
20348
      oprot.writeFieldStop();
20349
      oprot.writeStructEnd();
20350
    }
20351
 
20352
    @Override
20353
    public String toString() {
20354
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20355
      boolean first = true;
20356
 
20357
      sb.append("hse:");
20358
      if (this.hse == null) {
20359
        sb.append("null");
20360
      } else {
20361
        sb.append(this.hse);
20362
      }
20363
      first = false;
20364
      sb.append(")");
20365
      return sb.toString();
20366
    }
20367
 
20368
    public void validate() throws org.apache.thrift.TException {
20369
      // check for required fields
20370
    }
20371
 
20372
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20373
      try {
20374
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20375
      } catch (org.apache.thrift.TException te) {
20376
        throw new java.io.IOException(te);
20377
      }
20378
    }
20379
 
20380
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20381
      try {
20382
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20383
      } catch (org.apache.thrift.TException te) {
20384
        throw new java.io.IOException(te);
20385
      }
20386
    }
20387
 
20388
  }
20389
 
20390
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20391
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20392
 
20393
 
20394
 
20395
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20396
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20397
;
20398
 
20399
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20400
 
20401
      static {
20402
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20403
          byName.put(field.getFieldName(), field);
20404
        }
20405
      }
20406
 
20407
      /**
20408
       * Find the _Fields constant that matches fieldId, or null if its not found.
20409
       */
20410
      public static _Fields findByThriftId(int fieldId) {
20411
        switch(fieldId) {
20412
          default:
20413
            return null;
20414
        }
20415
      }
20416
 
20417
      /**
20418
       * Find the _Fields constant that matches fieldId, throwing an exception
20419
       * if it is not found.
20420
       */
20421
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20422
        _Fields fields = findByThriftId(fieldId);
20423
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20424
        return fields;
20425
      }
20426
 
20427
      /**
20428
       * Find the _Fields constant that matches name, or null if its not found.
20429
       */
20430
      public static _Fields findByName(String name) {
20431
        return byName.get(name);
20432
      }
20433
 
20434
      private final short _thriftId;
20435
      private final String _fieldName;
20436
 
20437
      _Fields(short thriftId, String fieldName) {
20438
        _thriftId = thriftId;
20439
        _fieldName = fieldName;
20440
      }
20441
 
20442
      public short getThriftFieldId() {
20443
        return _thriftId;
20444
      }
20445
 
20446
      public String getFieldName() {
20447
        return _fieldName;
20448
      }
20449
    }
20450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20451
    static {
20452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20453
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20454
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20455
    }
20456
 
20457
    public getQuickLinks_args() {
20458
    }
20459
 
20460
    /**
20461
     * Performs a deep copy on <i>other</i>.
20462
     */
20463
    public getQuickLinks_args(getQuickLinks_args other) {
20464
    }
20465
 
20466
    public getQuickLinks_args deepCopy() {
20467
      return new getQuickLinks_args(this);
20468
    }
20469
 
20470
    @Override
20471
    public void clear() {
20472
    }
20473
 
20474
    public void setFieldValue(_Fields field, Object value) {
20475
      switch (field) {
20476
      }
20477
    }
20478
 
20479
    public Object getFieldValue(_Fields field) {
20480
      switch (field) {
20481
      }
20482
      throw new IllegalStateException();
20483
    }
20484
 
20485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20486
    public boolean isSet(_Fields field) {
20487
      if (field == null) {
20488
        throw new IllegalArgumentException();
20489
      }
20490
 
20491
      switch (field) {
20492
      }
20493
      throw new IllegalStateException();
20494
    }
20495
 
20496
    @Override
20497
    public boolean equals(Object that) {
20498
      if (that == null)
20499
        return false;
20500
      if (that instanceof getQuickLinks_args)
20501
        return this.equals((getQuickLinks_args)that);
20502
      return false;
20503
    }
20504
 
20505
    public boolean equals(getQuickLinks_args that) {
20506
      if (that == null)
20507
        return false;
20508
 
20509
      return true;
20510
    }
20511
 
20512
    @Override
20513
    public int hashCode() {
20514
      return 0;
20515
    }
20516
 
20517
    public int compareTo(getQuickLinks_args other) {
20518
      if (!getClass().equals(other.getClass())) {
20519
        return getClass().getName().compareTo(other.getClass().getName());
20520
      }
20521
 
20522
      int lastComparison = 0;
20523
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20524
 
20525
      return 0;
20526
    }
20527
 
20528
    public _Fields fieldForId(int fieldId) {
20529
      return _Fields.findByThriftId(fieldId);
20530
    }
20531
 
20532
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20533
      org.apache.thrift.protocol.TField field;
20534
      iprot.readStructBegin();
20535
      while (true)
20536
      {
20537
        field = iprot.readFieldBegin();
20538
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20539
          break;
20540
        }
20541
        switch (field.id) {
20542
          default:
20543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20544
        }
20545
        iprot.readFieldEnd();
20546
      }
20547
      iprot.readStructEnd();
20548
      validate();
20549
    }
20550
 
20551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20552
      validate();
20553
 
20554
      oprot.writeStructBegin(STRUCT_DESC);
20555
      oprot.writeFieldStop();
20556
      oprot.writeStructEnd();
20557
    }
20558
 
20559
    @Override
20560
    public String toString() {
20561
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20562
      boolean first = true;
20563
 
20564
      sb.append(")");
20565
      return sb.toString();
20566
    }
20567
 
20568
    public void validate() throws org.apache.thrift.TException {
20569
      // check for required fields
20570
    }
20571
 
20572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20573
      try {
20574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20575
      } catch (org.apache.thrift.TException te) {
20576
        throw new java.io.IOException(te);
20577
      }
20578
    }
20579
 
20580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20581
      try {
20582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20583
      } catch (org.apache.thrift.TException te) {
20584
        throw new java.io.IOException(te);
20585
      }
20586
    }
20587
 
20588
  }
20589
 
20590
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20592
 
20593
    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);
20594
    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);
20595
 
20596
    private List<QuickLink> success; // required
20597
    private HelperServiceException hse; // required
20598
 
20599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20601
      SUCCESS((short)0, "success"),
20602
      HSE((short)1, "hse");
20603
 
20604
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20605
 
20606
      static {
20607
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20608
          byName.put(field.getFieldName(), field);
20609
        }
20610
      }
20611
 
20612
      /**
20613
       * Find the _Fields constant that matches fieldId, or null if its not found.
20614
       */
20615
      public static _Fields findByThriftId(int fieldId) {
20616
        switch(fieldId) {
20617
          case 0: // SUCCESS
20618
            return SUCCESS;
20619
          case 1: // HSE
20620
            return HSE;
20621
          default:
20622
            return null;
20623
        }
20624
      }
20625
 
20626
      /**
20627
       * Find the _Fields constant that matches fieldId, throwing an exception
20628
       * if it is not found.
20629
       */
20630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20631
        _Fields fields = findByThriftId(fieldId);
20632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20633
        return fields;
20634
      }
20635
 
20636
      /**
20637
       * Find the _Fields constant that matches name, or null if its not found.
20638
       */
20639
      public static _Fields findByName(String name) {
20640
        return byName.get(name);
20641
      }
20642
 
20643
      private final short _thriftId;
20644
      private final String _fieldName;
20645
 
20646
      _Fields(short thriftId, String fieldName) {
20647
        _thriftId = thriftId;
20648
        _fieldName = fieldName;
20649
      }
20650
 
20651
      public short getThriftFieldId() {
20652
        return _thriftId;
20653
      }
20654
 
20655
      public String getFieldName() {
20656
        return _fieldName;
20657
      }
20658
    }
20659
 
20660
    // isset id assignments
20661
 
20662
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20663
    static {
20664
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20665
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20666
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20667
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20668
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20672
    }
20673
 
20674
    public getQuickLinks_result() {
20675
    }
20676
 
20677
    public getQuickLinks_result(
20678
      List<QuickLink> success,
20679
      HelperServiceException hse)
20680
    {
20681
      this();
20682
      this.success = success;
20683
      this.hse = hse;
20684
    }
20685
 
20686
    /**
20687
     * Performs a deep copy on <i>other</i>.
20688
     */
20689
    public getQuickLinks_result(getQuickLinks_result other) {
20690
      if (other.isSetSuccess()) {
20691
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20692
        for (QuickLink other_element : other.success) {
20693
          __this__success.add(new QuickLink(other_element));
20694
        }
20695
        this.success = __this__success;
20696
      }
20697
      if (other.isSetHse()) {
20698
        this.hse = new HelperServiceException(other.hse);
20699
      }
20700
    }
20701
 
20702
    public getQuickLinks_result deepCopy() {
20703
      return new getQuickLinks_result(this);
20704
    }
20705
 
20706
    @Override
20707
    public void clear() {
20708
      this.success = null;
20709
      this.hse = null;
20710
    }
20711
 
20712
    public int getSuccessSize() {
20713
      return (this.success == null) ? 0 : this.success.size();
20714
    }
20715
 
20716
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20717
      return (this.success == null) ? null : this.success.iterator();
20718
    }
20719
 
20720
    public void addToSuccess(QuickLink elem) {
20721
      if (this.success == null) {
20722
        this.success = new ArrayList<QuickLink>();
20723
      }
20724
      this.success.add(elem);
20725
    }
20726
 
20727
    public List<QuickLink> getSuccess() {
20728
      return this.success;
20729
    }
20730
 
20731
    public void setSuccess(List<QuickLink> success) {
20732
      this.success = success;
20733
    }
20734
 
20735
    public void unsetSuccess() {
20736
      this.success = null;
20737
    }
20738
 
20739
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20740
    public boolean isSetSuccess() {
20741
      return this.success != null;
20742
    }
20743
 
20744
    public void setSuccessIsSet(boolean value) {
20745
      if (!value) {
20746
        this.success = null;
20747
      }
20748
    }
20749
 
20750
    public HelperServiceException getHse() {
20751
      return this.hse;
20752
    }
20753
 
20754
    public void setHse(HelperServiceException hse) {
20755
      this.hse = hse;
20756
    }
20757
 
20758
    public void unsetHse() {
20759
      this.hse = null;
20760
    }
20761
 
20762
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20763
    public boolean isSetHse() {
20764
      return this.hse != null;
20765
    }
20766
 
20767
    public void setHseIsSet(boolean value) {
20768
      if (!value) {
20769
        this.hse = null;
20770
      }
20771
    }
20772
 
20773
    public void setFieldValue(_Fields field, Object value) {
20774
      switch (field) {
20775
      case SUCCESS:
20776
        if (value == null) {
20777
          unsetSuccess();
20778
        } else {
20779
          setSuccess((List<QuickLink>)value);
20780
        }
20781
        break;
20782
 
20783
      case HSE:
20784
        if (value == null) {
20785
          unsetHse();
20786
        } else {
20787
          setHse((HelperServiceException)value);
20788
        }
20789
        break;
20790
 
20791
      }
20792
    }
20793
 
20794
    public Object getFieldValue(_Fields field) {
20795
      switch (field) {
20796
      case SUCCESS:
20797
        return getSuccess();
20798
 
20799
      case HSE:
20800
        return getHse();
20801
 
20802
      }
20803
      throw new IllegalStateException();
20804
    }
20805
 
20806
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20807
    public boolean isSet(_Fields field) {
20808
      if (field == null) {
20809
        throw new IllegalArgumentException();
20810
      }
20811
 
20812
      switch (field) {
20813
      case SUCCESS:
20814
        return isSetSuccess();
20815
      case HSE:
20816
        return isSetHse();
20817
      }
20818
      throw new IllegalStateException();
20819
    }
20820
 
20821
    @Override
20822
    public boolean equals(Object that) {
20823
      if (that == null)
20824
        return false;
20825
      if (that instanceof getQuickLinks_result)
20826
        return this.equals((getQuickLinks_result)that);
20827
      return false;
20828
    }
20829
 
20830
    public boolean equals(getQuickLinks_result that) {
20831
      if (that == null)
20832
        return false;
20833
 
20834
      boolean this_present_success = true && this.isSetSuccess();
20835
      boolean that_present_success = true && that.isSetSuccess();
20836
      if (this_present_success || that_present_success) {
20837
        if (!(this_present_success && that_present_success))
20838
          return false;
20839
        if (!this.success.equals(that.success))
20840
          return false;
20841
      }
20842
 
20843
      boolean this_present_hse = true && this.isSetHse();
20844
      boolean that_present_hse = true && that.isSetHse();
20845
      if (this_present_hse || that_present_hse) {
20846
        if (!(this_present_hse && that_present_hse))
20847
          return false;
20848
        if (!this.hse.equals(that.hse))
20849
          return false;
20850
      }
20851
 
20852
      return true;
20853
    }
20854
 
20855
    @Override
20856
    public int hashCode() {
20857
      return 0;
20858
    }
20859
 
20860
    public int compareTo(getQuickLinks_result other) {
20861
      if (!getClass().equals(other.getClass())) {
20862
        return getClass().getName().compareTo(other.getClass().getName());
20863
      }
20864
 
20865
      int lastComparison = 0;
20866
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20867
 
20868
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20869
      if (lastComparison != 0) {
20870
        return lastComparison;
20871
      }
20872
      if (isSetSuccess()) {
20873
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20874
        if (lastComparison != 0) {
20875
          return lastComparison;
20876
        }
20877
      }
20878
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20879
      if (lastComparison != 0) {
20880
        return lastComparison;
20881
      }
20882
      if (isSetHse()) {
20883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20884
        if (lastComparison != 0) {
20885
          return lastComparison;
20886
        }
20887
      }
20888
      return 0;
20889
    }
20890
 
20891
    public _Fields fieldForId(int fieldId) {
20892
      return _Fields.findByThriftId(fieldId);
20893
    }
20894
 
20895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20896
      org.apache.thrift.protocol.TField field;
20897
      iprot.readStructBegin();
20898
      while (true)
20899
      {
20900
        field = iprot.readFieldBegin();
20901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20902
          break;
20903
        }
20904
        switch (field.id) {
20905
          case 0: // SUCCESS
20906
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20907
              {
5864 rajveer 20908
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
20909
                this.success = new ArrayList<QuickLink>(_list61.size);
20910
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 20911
                {
5864 rajveer 20912
                  QuickLink _elem63; // required
20913
                  _elem63 = new QuickLink();
20914
                  _elem63.read(iprot);
20915
                  this.success.add(_elem63);
4806 varun.gupt 20916
                }
20917
                iprot.readListEnd();
20918
              }
20919
            } else { 
20920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20921
            }
20922
            break;
20923
          case 1: // HSE
20924
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20925
              this.hse = new HelperServiceException();
20926
              this.hse.read(iprot);
20927
            } else { 
20928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20929
            }
20930
            break;
20931
          default:
20932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20933
        }
20934
        iprot.readFieldEnd();
20935
      }
20936
      iprot.readStructEnd();
20937
      validate();
20938
    }
20939
 
20940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20941
      oprot.writeStructBegin(STRUCT_DESC);
20942
 
20943
      if (this.isSetSuccess()) {
20944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20945
        {
20946
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 20947
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 20948
          {
5864 rajveer 20949
            _iter64.write(oprot);
4806 varun.gupt 20950
          }
20951
          oprot.writeListEnd();
20952
        }
20953
        oprot.writeFieldEnd();
20954
      } else if (this.isSetHse()) {
20955
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20956
        this.hse.write(oprot);
20957
        oprot.writeFieldEnd();
20958
      }
20959
      oprot.writeFieldStop();
20960
      oprot.writeStructEnd();
20961
    }
20962
 
20963
    @Override
20964
    public String toString() {
20965
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
20966
      boolean first = true;
20967
 
20968
      sb.append("success:");
20969
      if (this.success == null) {
20970
        sb.append("null");
20971
      } else {
20972
        sb.append(this.success);
20973
      }
20974
      first = false;
20975
      if (!first) sb.append(", ");
20976
      sb.append("hse:");
20977
      if (this.hse == null) {
20978
        sb.append("null");
20979
      } else {
20980
        sb.append(this.hse);
20981
      }
20982
      first = false;
20983
      sb.append(")");
20984
      return sb.toString();
20985
    }
20986
 
20987
    public void validate() throws org.apache.thrift.TException {
20988
      // check for required fields
20989
    }
20990
 
20991
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20992
      try {
20993
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20994
      } catch (org.apache.thrift.TException te) {
20995
        throw new java.io.IOException(te);
20996
      }
20997
    }
20998
 
20999
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21000
      try {
21001
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21002
      } catch (org.apache.thrift.TException te) {
21003
        throw new java.io.IOException(te);
21004
      }
21005
    }
21006
 
21007
  }
21008
 
4996 varun.gupt 21009
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
21010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
21011
 
21012
    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);
21013
    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);
21014
    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);
21015
 
21016
    private long id; // required
21017
    private String url; // required
21018
    private String text; // required
21019
 
21020
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21021
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21022
      ID((short)1, "id"),
21023
      URL((short)2, "url"),
21024
      TEXT((short)3, "text");
21025
 
21026
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21027
 
21028
      static {
21029
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21030
          byName.put(field.getFieldName(), field);
21031
        }
21032
      }
21033
 
21034
      /**
21035
       * Find the _Fields constant that matches fieldId, or null if its not found.
21036
       */
21037
      public static _Fields findByThriftId(int fieldId) {
21038
        switch(fieldId) {
21039
          case 1: // ID
21040
            return ID;
21041
          case 2: // URL
21042
            return URL;
21043
          case 3: // TEXT
21044
            return TEXT;
21045
          default:
21046
            return null;
21047
        }
21048
      }
21049
 
21050
      /**
21051
       * Find the _Fields constant that matches fieldId, throwing an exception
21052
       * if it is not found.
21053
       */
21054
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21055
        _Fields fields = findByThriftId(fieldId);
21056
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21057
        return fields;
21058
      }
21059
 
21060
      /**
21061
       * Find the _Fields constant that matches name, or null if its not found.
21062
       */
21063
      public static _Fields findByName(String name) {
21064
        return byName.get(name);
21065
      }
21066
 
21067
      private final short _thriftId;
21068
      private final String _fieldName;
21069
 
21070
      _Fields(short thriftId, String fieldName) {
21071
        _thriftId = thriftId;
21072
        _fieldName = fieldName;
21073
      }
21074
 
21075
      public short getThriftFieldId() {
21076
        return _thriftId;
21077
      }
21078
 
21079
      public String getFieldName() {
21080
        return _fieldName;
21081
      }
21082
    }
21083
 
21084
    // isset id assignments
21085
    private static final int __ID_ISSET_ID = 0;
21086
    private BitSet __isset_bit_vector = new BitSet(1);
21087
 
21088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21089
    static {
21090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21091
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21093
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21095
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21096
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21097
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21098
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21099
    }
21100
 
21101
    public updateQuickLink_args() {
21102
    }
21103
 
21104
    public updateQuickLink_args(
21105
      long id,
21106
      String url,
21107
      String text)
21108
    {
21109
      this();
21110
      this.id = id;
21111
      setIdIsSet(true);
21112
      this.url = url;
21113
      this.text = text;
21114
    }
21115
 
21116
    /**
21117
     * Performs a deep copy on <i>other</i>.
21118
     */
21119
    public updateQuickLink_args(updateQuickLink_args other) {
21120
      __isset_bit_vector.clear();
21121
      __isset_bit_vector.or(other.__isset_bit_vector);
21122
      this.id = other.id;
21123
      if (other.isSetUrl()) {
21124
        this.url = other.url;
21125
      }
21126
      if (other.isSetText()) {
21127
        this.text = other.text;
21128
      }
21129
    }
21130
 
21131
    public updateQuickLink_args deepCopy() {
21132
      return new updateQuickLink_args(this);
21133
    }
21134
 
21135
    @Override
21136
    public void clear() {
21137
      setIdIsSet(false);
21138
      this.id = 0;
21139
      this.url = null;
21140
      this.text = null;
21141
    }
21142
 
21143
    public long getId() {
21144
      return this.id;
21145
    }
21146
 
21147
    public void setId(long id) {
21148
      this.id = id;
21149
      setIdIsSet(true);
21150
    }
21151
 
21152
    public void unsetId() {
21153
      __isset_bit_vector.clear(__ID_ISSET_ID);
21154
    }
21155
 
21156
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21157
    public boolean isSetId() {
21158
      return __isset_bit_vector.get(__ID_ISSET_ID);
21159
    }
21160
 
21161
    public void setIdIsSet(boolean value) {
21162
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21163
    }
21164
 
21165
    public String getUrl() {
21166
      return this.url;
21167
    }
21168
 
21169
    public void setUrl(String url) {
21170
      this.url = url;
21171
    }
21172
 
21173
    public void unsetUrl() {
21174
      this.url = null;
21175
    }
21176
 
21177
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21178
    public boolean isSetUrl() {
21179
      return this.url != null;
21180
    }
21181
 
21182
    public void setUrlIsSet(boolean value) {
21183
      if (!value) {
21184
        this.url = null;
21185
      }
21186
    }
21187
 
21188
    public String getText() {
21189
      return this.text;
21190
    }
21191
 
21192
    public void setText(String text) {
21193
      this.text = text;
21194
    }
21195
 
21196
    public void unsetText() {
21197
      this.text = null;
21198
    }
21199
 
21200
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21201
    public boolean isSetText() {
21202
      return this.text != null;
21203
    }
21204
 
21205
    public void setTextIsSet(boolean value) {
21206
      if (!value) {
21207
        this.text = null;
21208
      }
21209
    }
21210
 
21211
    public void setFieldValue(_Fields field, Object value) {
21212
      switch (field) {
21213
      case ID:
21214
        if (value == null) {
21215
          unsetId();
21216
        } else {
21217
          setId((Long)value);
21218
        }
21219
        break;
21220
 
21221
      case URL:
21222
        if (value == null) {
21223
          unsetUrl();
21224
        } else {
21225
          setUrl((String)value);
21226
        }
21227
        break;
21228
 
21229
      case TEXT:
21230
        if (value == null) {
21231
          unsetText();
21232
        } else {
21233
          setText((String)value);
21234
        }
21235
        break;
21236
 
21237
      }
21238
    }
21239
 
21240
    public Object getFieldValue(_Fields field) {
21241
      switch (field) {
21242
      case ID:
21243
        return Long.valueOf(getId());
21244
 
21245
      case URL:
21246
        return getUrl();
21247
 
21248
      case TEXT:
21249
        return getText();
21250
 
21251
      }
21252
      throw new IllegalStateException();
21253
    }
21254
 
21255
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21256
    public boolean isSet(_Fields field) {
21257
      if (field == null) {
21258
        throw new IllegalArgumentException();
21259
      }
21260
 
21261
      switch (field) {
21262
      case ID:
21263
        return isSetId();
21264
      case URL:
21265
        return isSetUrl();
21266
      case TEXT:
21267
        return isSetText();
21268
      }
21269
      throw new IllegalStateException();
21270
    }
21271
 
21272
    @Override
21273
    public boolean equals(Object that) {
21274
      if (that == null)
21275
        return false;
21276
      if (that instanceof updateQuickLink_args)
21277
        return this.equals((updateQuickLink_args)that);
21278
      return false;
21279
    }
21280
 
21281
    public boolean equals(updateQuickLink_args that) {
21282
      if (that == null)
21283
        return false;
21284
 
21285
      boolean this_present_id = true;
21286
      boolean that_present_id = true;
21287
      if (this_present_id || that_present_id) {
21288
        if (!(this_present_id && that_present_id))
21289
          return false;
21290
        if (this.id != that.id)
21291
          return false;
21292
      }
21293
 
21294
      boolean this_present_url = true && this.isSetUrl();
21295
      boolean that_present_url = true && that.isSetUrl();
21296
      if (this_present_url || that_present_url) {
21297
        if (!(this_present_url && that_present_url))
21298
          return false;
21299
        if (!this.url.equals(that.url))
21300
          return false;
21301
      }
21302
 
21303
      boolean this_present_text = true && this.isSetText();
21304
      boolean that_present_text = true && that.isSetText();
21305
      if (this_present_text || that_present_text) {
21306
        if (!(this_present_text && that_present_text))
21307
          return false;
21308
        if (!this.text.equals(that.text))
21309
          return false;
21310
      }
21311
 
21312
      return true;
21313
    }
21314
 
21315
    @Override
21316
    public int hashCode() {
21317
      return 0;
21318
    }
21319
 
21320
    public int compareTo(updateQuickLink_args other) {
21321
      if (!getClass().equals(other.getClass())) {
21322
        return getClass().getName().compareTo(other.getClass().getName());
21323
      }
21324
 
21325
      int lastComparison = 0;
21326
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21327
 
21328
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21329
      if (lastComparison != 0) {
21330
        return lastComparison;
21331
      }
21332
      if (isSetId()) {
21333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21334
        if (lastComparison != 0) {
21335
          return lastComparison;
21336
        }
21337
      }
21338
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21339
      if (lastComparison != 0) {
21340
        return lastComparison;
21341
      }
21342
      if (isSetUrl()) {
21343
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21344
        if (lastComparison != 0) {
21345
          return lastComparison;
21346
        }
21347
      }
21348
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21349
      if (lastComparison != 0) {
21350
        return lastComparison;
21351
      }
21352
      if (isSetText()) {
21353
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21354
        if (lastComparison != 0) {
21355
          return lastComparison;
21356
        }
21357
      }
21358
      return 0;
21359
    }
21360
 
21361
    public _Fields fieldForId(int fieldId) {
21362
      return _Fields.findByThriftId(fieldId);
21363
    }
21364
 
21365
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21366
      org.apache.thrift.protocol.TField field;
21367
      iprot.readStructBegin();
21368
      while (true)
21369
      {
21370
        field = iprot.readFieldBegin();
21371
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21372
          break;
21373
        }
21374
        switch (field.id) {
21375
          case 1: // ID
21376
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21377
              this.id = iprot.readI64();
21378
              setIdIsSet(true);
21379
            } else { 
21380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21381
            }
21382
            break;
21383
          case 2: // URL
21384
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21385
              this.url = iprot.readString();
21386
            } else { 
21387
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21388
            }
21389
            break;
21390
          case 3: // TEXT
21391
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21392
              this.text = iprot.readString();
21393
            } else { 
21394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21395
            }
21396
            break;
21397
          default:
21398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21399
        }
21400
        iprot.readFieldEnd();
21401
      }
21402
      iprot.readStructEnd();
21403
      validate();
21404
    }
21405
 
21406
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21407
      validate();
21408
 
21409
      oprot.writeStructBegin(STRUCT_DESC);
21410
      oprot.writeFieldBegin(ID_FIELD_DESC);
21411
      oprot.writeI64(this.id);
21412
      oprot.writeFieldEnd();
21413
      if (this.url != null) {
21414
        oprot.writeFieldBegin(URL_FIELD_DESC);
21415
        oprot.writeString(this.url);
21416
        oprot.writeFieldEnd();
21417
      }
21418
      if (this.text != null) {
21419
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21420
        oprot.writeString(this.text);
21421
        oprot.writeFieldEnd();
21422
      }
21423
      oprot.writeFieldStop();
21424
      oprot.writeStructEnd();
21425
    }
21426
 
21427
    @Override
21428
    public String toString() {
21429
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21430
      boolean first = true;
21431
 
21432
      sb.append("id:");
21433
      sb.append(this.id);
21434
      first = false;
21435
      if (!first) sb.append(", ");
21436
      sb.append("url:");
21437
      if (this.url == null) {
21438
        sb.append("null");
21439
      } else {
21440
        sb.append(this.url);
21441
      }
21442
      first = false;
21443
      if (!first) sb.append(", ");
21444
      sb.append("text:");
21445
      if (this.text == null) {
21446
        sb.append("null");
21447
      } else {
21448
        sb.append(this.text);
21449
      }
21450
      first = false;
21451
      sb.append(")");
21452
      return sb.toString();
21453
    }
21454
 
21455
    public void validate() throws org.apache.thrift.TException {
21456
      // check for required fields
21457
    }
21458
 
21459
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21460
      try {
21461
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21462
      } catch (org.apache.thrift.TException te) {
21463
        throw new java.io.IOException(te);
21464
      }
21465
    }
21466
 
21467
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21468
      try {
21469
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21470
        __isset_bit_vector = new BitSet(1);
21471
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21472
      } catch (org.apache.thrift.TException te) {
21473
        throw new java.io.IOException(te);
21474
      }
21475
    }
21476
 
21477
  }
21478
 
21479
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21480
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21481
 
21482
    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);
21483
 
21484
    private HelperServiceException hse; // required
21485
 
21486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21488
      HSE((short)1, "hse");
21489
 
21490
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21491
 
21492
      static {
21493
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21494
          byName.put(field.getFieldName(), field);
21495
        }
21496
      }
21497
 
21498
      /**
21499
       * Find the _Fields constant that matches fieldId, or null if its not found.
21500
       */
21501
      public static _Fields findByThriftId(int fieldId) {
21502
        switch(fieldId) {
21503
          case 1: // HSE
21504
            return HSE;
21505
          default:
21506
            return null;
21507
        }
21508
      }
21509
 
21510
      /**
21511
       * Find the _Fields constant that matches fieldId, throwing an exception
21512
       * if it is not found.
21513
       */
21514
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21515
        _Fields fields = findByThriftId(fieldId);
21516
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21517
        return fields;
21518
      }
21519
 
21520
      /**
21521
       * Find the _Fields constant that matches name, or null if its not found.
21522
       */
21523
      public static _Fields findByName(String name) {
21524
        return byName.get(name);
21525
      }
21526
 
21527
      private final short _thriftId;
21528
      private final String _fieldName;
21529
 
21530
      _Fields(short thriftId, String fieldName) {
21531
        _thriftId = thriftId;
21532
        _fieldName = fieldName;
21533
      }
21534
 
21535
      public short getThriftFieldId() {
21536
        return _thriftId;
21537
      }
21538
 
21539
      public String getFieldName() {
21540
        return _fieldName;
21541
      }
21542
    }
21543
 
21544
    // isset id assignments
21545
 
21546
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21547
    static {
21548
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21549
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21553
    }
21554
 
21555
    public updateQuickLink_result() {
21556
    }
21557
 
21558
    public updateQuickLink_result(
21559
      HelperServiceException hse)
21560
    {
21561
      this();
21562
      this.hse = hse;
21563
    }
21564
 
21565
    /**
21566
     * Performs a deep copy on <i>other</i>.
21567
     */
21568
    public updateQuickLink_result(updateQuickLink_result other) {
21569
      if (other.isSetHse()) {
21570
        this.hse = new HelperServiceException(other.hse);
21571
      }
21572
    }
21573
 
21574
    public updateQuickLink_result deepCopy() {
21575
      return new updateQuickLink_result(this);
21576
    }
21577
 
21578
    @Override
21579
    public void clear() {
21580
      this.hse = null;
21581
    }
21582
 
21583
    public HelperServiceException getHse() {
21584
      return this.hse;
21585
    }
21586
 
21587
    public void setHse(HelperServiceException hse) {
21588
      this.hse = hse;
21589
    }
21590
 
21591
    public void unsetHse() {
21592
      this.hse = null;
21593
    }
21594
 
21595
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21596
    public boolean isSetHse() {
21597
      return this.hse != null;
21598
    }
21599
 
21600
    public void setHseIsSet(boolean value) {
21601
      if (!value) {
21602
        this.hse = null;
21603
      }
21604
    }
21605
 
21606
    public void setFieldValue(_Fields field, Object value) {
21607
      switch (field) {
21608
      case HSE:
21609
        if (value == null) {
21610
          unsetHse();
21611
        } else {
21612
          setHse((HelperServiceException)value);
21613
        }
21614
        break;
21615
 
21616
      }
21617
    }
21618
 
21619
    public Object getFieldValue(_Fields field) {
21620
      switch (field) {
21621
      case HSE:
21622
        return getHse();
21623
 
21624
      }
21625
      throw new IllegalStateException();
21626
    }
21627
 
21628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21629
    public boolean isSet(_Fields field) {
21630
      if (field == null) {
21631
        throw new IllegalArgumentException();
21632
      }
21633
 
21634
      switch (field) {
21635
      case HSE:
21636
        return isSetHse();
21637
      }
21638
      throw new IllegalStateException();
21639
    }
21640
 
21641
    @Override
21642
    public boolean equals(Object that) {
21643
      if (that == null)
21644
        return false;
21645
      if (that instanceof updateQuickLink_result)
21646
        return this.equals((updateQuickLink_result)that);
21647
      return false;
21648
    }
21649
 
21650
    public boolean equals(updateQuickLink_result that) {
21651
      if (that == null)
21652
        return false;
21653
 
21654
      boolean this_present_hse = true && this.isSetHse();
21655
      boolean that_present_hse = true && that.isSetHse();
21656
      if (this_present_hse || that_present_hse) {
21657
        if (!(this_present_hse && that_present_hse))
21658
          return false;
21659
        if (!this.hse.equals(that.hse))
21660
          return false;
21661
      }
21662
 
21663
      return true;
21664
    }
21665
 
21666
    @Override
21667
    public int hashCode() {
21668
      return 0;
21669
    }
21670
 
21671
    public int compareTo(updateQuickLink_result other) {
21672
      if (!getClass().equals(other.getClass())) {
21673
        return getClass().getName().compareTo(other.getClass().getName());
21674
      }
21675
 
21676
      int lastComparison = 0;
21677
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21678
 
21679
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21680
      if (lastComparison != 0) {
21681
        return lastComparison;
21682
      }
21683
      if (isSetHse()) {
21684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21685
        if (lastComparison != 0) {
21686
          return lastComparison;
21687
        }
21688
      }
21689
      return 0;
21690
    }
21691
 
21692
    public _Fields fieldForId(int fieldId) {
21693
      return _Fields.findByThriftId(fieldId);
21694
    }
21695
 
21696
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21697
      org.apache.thrift.protocol.TField field;
21698
      iprot.readStructBegin();
21699
      while (true)
21700
      {
21701
        field = iprot.readFieldBegin();
21702
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21703
          break;
21704
        }
21705
        switch (field.id) {
21706
          case 1: // HSE
21707
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21708
              this.hse = new HelperServiceException();
21709
              this.hse.read(iprot);
21710
            } else { 
21711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21712
            }
21713
            break;
21714
          default:
21715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21716
        }
21717
        iprot.readFieldEnd();
21718
      }
21719
      iprot.readStructEnd();
21720
      validate();
21721
    }
21722
 
21723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21724
      oprot.writeStructBegin(STRUCT_DESC);
21725
 
21726
      if (this.isSetHse()) {
21727
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21728
        this.hse.write(oprot);
21729
        oprot.writeFieldEnd();
21730
      }
21731
      oprot.writeFieldStop();
21732
      oprot.writeStructEnd();
21733
    }
21734
 
21735
    @Override
21736
    public String toString() {
21737
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21738
      boolean first = true;
21739
 
21740
      sb.append("hse:");
21741
      if (this.hse == null) {
21742
        sb.append("null");
21743
      } else {
21744
        sb.append(this.hse);
21745
      }
21746
      first = false;
21747
      sb.append(")");
21748
      return sb.toString();
21749
    }
21750
 
21751
    public void validate() throws org.apache.thrift.TException {
21752
      // check for required fields
21753
    }
21754
 
21755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21756
      try {
21757
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21758
      } catch (org.apache.thrift.TException te) {
21759
        throw new java.io.IOException(te);
21760
      }
21761
    }
21762
 
21763
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21764
      try {
21765
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21766
      } catch (org.apache.thrift.TException te) {
21767
        throw new java.io.IOException(te);
21768
      }
21769
    }
21770
 
21771
  }
21772
 
5055 varun.gupt 21773
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
21774
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
21775
 
21776
    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);
21777
    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);
21778
 
21779
    private long startDatetime; // required
21780
    private long endDatetime; // required
21781
 
21782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21783
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21784
      START_DATETIME((short)1, "startDatetime"),
21785
      END_DATETIME((short)2, "endDatetime");
21786
 
21787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21788
 
21789
      static {
21790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21791
          byName.put(field.getFieldName(), field);
21792
        }
21793
      }
21794
 
21795
      /**
21796
       * Find the _Fields constant that matches fieldId, or null if its not found.
21797
       */
21798
      public static _Fields findByThriftId(int fieldId) {
21799
        switch(fieldId) {
21800
          case 1: // START_DATETIME
21801
            return START_DATETIME;
21802
          case 2: // END_DATETIME
21803
            return END_DATETIME;
21804
          default:
21805
            return null;
21806
        }
21807
      }
21808
 
21809
      /**
21810
       * Find the _Fields constant that matches fieldId, throwing an exception
21811
       * if it is not found.
21812
       */
21813
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21814
        _Fields fields = findByThriftId(fieldId);
21815
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21816
        return fields;
21817
      }
21818
 
21819
      /**
21820
       * Find the _Fields constant that matches name, or null if its not found.
21821
       */
21822
      public static _Fields findByName(String name) {
21823
        return byName.get(name);
21824
      }
21825
 
21826
      private final short _thriftId;
21827
      private final String _fieldName;
21828
 
21829
      _Fields(short thriftId, String fieldName) {
21830
        _thriftId = thriftId;
21831
        _fieldName = fieldName;
21832
      }
21833
 
21834
      public short getThriftFieldId() {
21835
        return _thriftId;
21836
      }
21837
 
21838
      public String getFieldName() {
21839
        return _fieldName;
21840
      }
21841
    }
21842
 
21843
    // isset id assignments
21844
    private static final int __STARTDATETIME_ISSET_ID = 0;
21845
    private static final int __ENDDATETIME_ISSET_ID = 1;
21846
    private BitSet __isset_bit_vector = new BitSet(2);
21847
 
21848
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21849
    static {
21850
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21851
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21852
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21853
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21854
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21855
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21856
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
21857
    }
21858
 
21859
    public getEmailsForNotificationsSent_args() {
21860
    }
21861
 
21862
    public getEmailsForNotificationsSent_args(
21863
      long startDatetime,
21864
      long endDatetime)
21865
    {
21866
      this();
21867
      this.startDatetime = startDatetime;
21868
      setStartDatetimeIsSet(true);
21869
      this.endDatetime = endDatetime;
21870
      setEndDatetimeIsSet(true);
21871
    }
21872
 
21873
    /**
21874
     * Performs a deep copy on <i>other</i>.
21875
     */
21876
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
21877
      __isset_bit_vector.clear();
21878
      __isset_bit_vector.or(other.__isset_bit_vector);
21879
      this.startDatetime = other.startDatetime;
21880
      this.endDatetime = other.endDatetime;
21881
    }
21882
 
21883
    public getEmailsForNotificationsSent_args deepCopy() {
21884
      return new getEmailsForNotificationsSent_args(this);
21885
    }
21886
 
21887
    @Override
21888
    public void clear() {
21889
      setStartDatetimeIsSet(false);
21890
      this.startDatetime = 0;
21891
      setEndDatetimeIsSet(false);
21892
      this.endDatetime = 0;
21893
    }
21894
 
21895
    public long getStartDatetime() {
21896
      return this.startDatetime;
21897
    }
21898
 
21899
    public void setStartDatetime(long startDatetime) {
21900
      this.startDatetime = startDatetime;
21901
      setStartDatetimeIsSet(true);
21902
    }
21903
 
21904
    public void unsetStartDatetime() {
21905
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
21906
    }
21907
 
21908
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
21909
    public boolean isSetStartDatetime() {
21910
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
21911
    }
21912
 
21913
    public void setStartDatetimeIsSet(boolean value) {
21914
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
21915
    }
21916
 
21917
    public long getEndDatetime() {
21918
      return this.endDatetime;
21919
    }
21920
 
21921
    public void setEndDatetime(long endDatetime) {
21922
      this.endDatetime = endDatetime;
21923
      setEndDatetimeIsSet(true);
21924
    }
21925
 
21926
    public void unsetEndDatetime() {
21927
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
21928
    }
21929
 
21930
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
21931
    public boolean isSetEndDatetime() {
21932
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
21933
    }
21934
 
21935
    public void setEndDatetimeIsSet(boolean value) {
21936
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
21937
    }
21938
 
21939
    public void setFieldValue(_Fields field, Object value) {
21940
      switch (field) {
21941
      case START_DATETIME:
21942
        if (value == null) {
21943
          unsetStartDatetime();
21944
        } else {
21945
          setStartDatetime((Long)value);
21946
        }
21947
        break;
21948
 
21949
      case END_DATETIME:
21950
        if (value == null) {
21951
          unsetEndDatetime();
21952
        } else {
21953
          setEndDatetime((Long)value);
21954
        }
21955
        break;
21956
 
21957
      }
21958
    }
21959
 
21960
    public Object getFieldValue(_Fields field) {
21961
      switch (field) {
21962
      case START_DATETIME:
21963
        return Long.valueOf(getStartDatetime());
21964
 
21965
      case END_DATETIME:
21966
        return Long.valueOf(getEndDatetime());
21967
 
21968
      }
21969
      throw new IllegalStateException();
21970
    }
21971
 
21972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21973
    public boolean isSet(_Fields field) {
21974
      if (field == null) {
21975
        throw new IllegalArgumentException();
21976
      }
21977
 
21978
      switch (field) {
21979
      case START_DATETIME:
21980
        return isSetStartDatetime();
21981
      case END_DATETIME:
21982
        return isSetEndDatetime();
21983
      }
21984
      throw new IllegalStateException();
21985
    }
21986
 
21987
    @Override
21988
    public boolean equals(Object that) {
21989
      if (that == null)
21990
        return false;
21991
      if (that instanceof getEmailsForNotificationsSent_args)
21992
        return this.equals((getEmailsForNotificationsSent_args)that);
21993
      return false;
21994
    }
21995
 
21996
    public boolean equals(getEmailsForNotificationsSent_args that) {
21997
      if (that == null)
21998
        return false;
21999
 
22000
      boolean this_present_startDatetime = true;
22001
      boolean that_present_startDatetime = true;
22002
      if (this_present_startDatetime || that_present_startDatetime) {
22003
        if (!(this_present_startDatetime && that_present_startDatetime))
22004
          return false;
22005
        if (this.startDatetime != that.startDatetime)
22006
          return false;
22007
      }
22008
 
22009
      boolean this_present_endDatetime = true;
22010
      boolean that_present_endDatetime = true;
22011
      if (this_present_endDatetime || that_present_endDatetime) {
22012
        if (!(this_present_endDatetime && that_present_endDatetime))
22013
          return false;
22014
        if (this.endDatetime != that.endDatetime)
22015
          return false;
22016
      }
22017
 
22018
      return true;
22019
    }
22020
 
22021
    @Override
22022
    public int hashCode() {
22023
      return 0;
22024
    }
22025
 
22026
    public int compareTo(getEmailsForNotificationsSent_args other) {
22027
      if (!getClass().equals(other.getClass())) {
22028
        return getClass().getName().compareTo(other.getClass().getName());
22029
      }
22030
 
22031
      int lastComparison = 0;
22032
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22033
 
22034
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22035
      if (lastComparison != 0) {
22036
        return lastComparison;
22037
      }
22038
      if (isSetStartDatetime()) {
22039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22040
        if (lastComparison != 0) {
22041
          return lastComparison;
22042
        }
22043
      }
22044
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22045
      if (lastComparison != 0) {
22046
        return lastComparison;
22047
      }
22048
      if (isSetEndDatetime()) {
22049
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22050
        if (lastComparison != 0) {
22051
          return lastComparison;
22052
        }
22053
      }
22054
      return 0;
22055
    }
22056
 
22057
    public _Fields fieldForId(int fieldId) {
22058
      return _Fields.findByThriftId(fieldId);
22059
    }
22060
 
22061
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22062
      org.apache.thrift.protocol.TField field;
22063
      iprot.readStructBegin();
22064
      while (true)
22065
      {
22066
        field = iprot.readFieldBegin();
22067
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22068
          break;
22069
        }
22070
        switch (field.id) {
22071
          case 1: // START_DATETIME
22072
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22073
              this.startDatetime = iprot.readI64();
22074
              setStartDatetimeIsSet(true);
22075
            } else { 
22076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22077
            }
22078
            break;
22079
          case 2: // END_DATETIME
22080
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22081
              this.endDatetime = iprot.readI64();
22082
              setEndDatetimeIsSet(true);
22083
            } else { 
22084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22085
            }
22086
            break;
22087
          default:
22088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22089
        }
22090
        iprot.readFieldEnd();
22091
      }
22092
      iprot.readStructEnd();
22093
      validate();
22094
    }
22095
 
22096
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22097
      validate();
22098
 
22099
      oprot.writeStructBegin(STRUCT_DESC);
22100
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22101
      oprot.writeI64(this.startDatetime);
22102
      oprot.writeFieldEnd();
22103
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22104
      oprot.writeI64(this.endDatetime);
22105
      oprot.writeFieldEnd();
22106
      oprot.writeFieldStop();
22107
      oprot.writeStructEnd();
22108
    }
22109
 
22110
    @Override
22111
    public String toString() {
22112
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22113
      boolean first = true;
22114
 
22115
      sb.append("startDatetime:");
22116
      sb.append(this.startDatetime);
22117
      first = false;
22118
      if (!first) sb.append(", ");
22119
      sb.append("endDatetime:");
22120
      sb.append(this.endDatetime);
22121
      first = false;
22122
      sb.append(")");
22123
      return sb.toString();
22124
    }
22125
 
22126
    public void validate() throws org.apache.thrift.TException {
22127
      // check for required fields
22128
    }
22129
 
22130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22131
      try {
22132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22133
      } catch (org.apache.thrift.TException te) {
22134
        throw new java.io.IOException(te);
22135
      }
22136
    }
22137
 
22138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22139
      try {
22140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22141
      } catch (org.apache.thrift.TException te) {
22142
        throw new java.io.IOException(te);
22143
      }
22144
    }
22145
 
22146
  }
22147
 
22148
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22150
 
22151
    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);
22152
    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);
22153
 
22154
    private List<String> success; // required
22155
    private HelperServiceException hse; // required
22156
 
22157
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22158
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22159
      SUCCESS((short)0, "success"),
22160
      HSE((short)1, "hse");
22161
 
22162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22163
 
22164
      static {
22165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22166
          byName.put(field.getFieldName(), field);
22167
        }
22168
      }
22169
 
22170
      /**
22171
       * Find the _Fields constant that matches fieldId, or null if its not found.
22172
       */
22173
      public static _Fields findByThriftId(int fieldId) {
22174
        switch(fieldId) {
22175
          case 0: // SUCCESS
22176
            return SUCCESS;
22177
          case 1: // HSE
22178
            return HSE;
22179
          default:
22180
            return null;
22181
        }
22182
      }
22183
 
22184
      /**
22185
       * Find the _Fields constant that matches fieldId, throwing an exception
22186
       * if it is not found.
22187
       */
22188
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22189
        _Fields fields = findByThriftId(fieldId);
22190
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22191
        return fields;
22192
      }
22193
 
22194
      /**
22195
       * Find the _Fields constant that matches name, or null if its not found.
22196
       */
22197
      public static _Fields findByName(String name) {
22198
        return byName.get(name);
22199
      }
22200
 
22201
      private final short _thriftId;
22202
      private final String _fieldName;
22203
 
22204
      _Fields(short thriftId, String fieldName) {
22205
        _thriftId = thriftId;
22206
        _fieldName = fieldName;
22207
      }
22208
 
22209
      public short getThriftFieldId() {
22210
        return _thriftId;
22211
      }
22212
 
22213
      public String getFieldName() {
22214
        return _fieldName;
22215
      }
22216
    }
22217
 
22218
    // isset id assignments
22219
 
22220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22221
    static {
22222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22223
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22224
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22225
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22226
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22228
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22229
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22230
    }
22231
 
22232
    public getEmailsForNotificationsSent_result() {
22233
    }
22234
 
22235
    public getEmailsForNotificationsSent_result(
22236
      List<String> success,
22237
      HelperServiceException hse)
22238
    {
22239
      this();
22240
      this.success = success;
22241
      this.hse = hse;
22242
    }
22243
 
22244
    /**
22245
     * Performs a deep copy on <i>other</i>.
22246
     */
22247
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22248
      if (other.isSetSuccess()) {
22249
        List<String> __this__success = new ArrayList<String>();
22250
        for (String other_element : other.success) {
22251
          __this__success.add(other_element);
22252
        }
22253
        this.success = __this__success;
22254
      }
22255
      if (other.isSetHse()) {
22256
        this.hse = new HelperServiceException(other.hse);
22257
      }
22258
    }
22259
 
22260
    public getEmailsForNotificationsSent_result deepCopy() {
22261
      return new getEmailsForNotificationsSent_result(this);
22262
    }
22263
 
22264
    @Override
22265
    public void clear() {
22266
      this.success = null;
22267
      this.hse = null;
22268
    }
22269
 
22270
    public int getSuccessSize() {
22271
      return (this.success == null) ? 0 : this.success.size();
22272
    }
22273
 
22274
    public java.util.Iterator<String> getSuccessIterator() {
22275
      return (this.success == null) ? null : this.success.iterator();
22276
    }
22277
 
22278
    public void addToSuccess(String elem) {
22279
      if (this.success == null) {
22280
        this.success = new ArrayList<String>();
22281
      }
22282
      this.success.add(elem);
22283
    }
22284
 
22285
    public List<String> getSuccess() {
22286
      return this.success;
22287
    }
22288
 
22289
    public void setSuccess(List<String> success) {
22290
      this.success = success;
22291
    }
22292
 
22293
    public void unsetSuccess() {
22294
      this.success = null;
22295
    }
22296
 
22297
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22298
    public boolean isSetSuccess() {
22299
      return this.success != null;
22300
    }
22301
 
22302
    public void setSuccessIsSet(boolean value) {
22303
      if (!value) {
22304
        this.success = null;
22305
      }
22306
    }
22307
 
22308
    public HelperServiceException getHse() {
22309
      return this.hse;
22310
    }
22311
 
22312
    public void setHse(HelperServiceException hse) {
22313
      this.hse = hse;
22314
    }
22315
 
22316
    public void unsetHse() {
22317
      this.hse = null;
22318
    }
22319
 
22320
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22321
    public boolean isSetHse() {
22322
      return this.hse != null;
22323
    }
22324
 
22325
    public void setHseIsSet(boolean value) {
22326
      if (!value) {
22327
        this.hse = null;
22328
      }
22329
    }
22330
 
22331
    public void setFieldValue(_Fields field, Object value) {
22332
      switch (field) {
22333
      case SUCCESS:
22334
        if (value == null) {
22335
          unsetSuccess();
22336
        } else {
22337
          setSuccess((List<String>)value);
22338
        }
22339
        break;
22340
 
22341
      case HSE:
22342
        if (value == null) {
22343
          unsetHse();
22344
        } else {
22345
          setHse((HelperServiceException)value);
22346
        }
22347
        break;
22348
 
22349
      }
22350
    }
22351
 
22352
    public Object getFieldValue(_Fields field) {
22353
      switch (field) {
22354
      case SUCCESS:
22355
        return getSuccess();
22356
 
22357
      case HSE:
22358
        return getHse();
22359
 
22360
      }
22361
      throw new IllegalStateException();
22362
    }
22363
 
22364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22365
    public boolean isSet(_Fields field) {
22366
      if (field == null) {
22367
        throw new IllegalArgumentException();
22368
      }
22369
 
22370
      switch (field) {
22371
      case SUCCESS:
22372
        return isSetSuccess();
22373
      case HSE:
22374
        return isSetHse();
22375
      }
22376
      throw new IllegalStateException();
22377
    }
22378
 
22379
    @Override
22380
    public boolean equals(Object that) {
22381
      if (that == null)
22382
        return false;
22383
      if (that instanceof getEmailsForNotificationsSent_result)
22384
        return this.equals((getEmailsForNotificationsSent_result)that);
22385
      return false;
22386
    }
22387
 
22388
    public boolean equals(getEmailsForNotificationsSent_result that) {
22389
      if (that == null)
22390
        return false;
22391
 
22392
      boolean this_present_success = true && this.isSetSuccess();
22393
      boolean that_present_success = true && that.isSetSuccess();
22394
      if (this_present_success || that_present_success) {
22395
        if (!(this_present_success && that_present_success))
22396
          return false;
22397
        if (!this.success.equals(that.success))
22398
          return false;
22399
      }
22400
 
22401
      boolean this_present_hse = true && this.isSetHse();
22402
      boolean that_present_hse = true && that.isSetHse();
22403
      if (this_present_hse || that_present_hse) {
22404
        if (!(this_present_hse && that_present_hse))
22405
          return false;
22406
        if (!this.hse.equals(that.hse))
22407
          return false;
22408
      }
22409
 
22410
      return true;
22411
    }
22412
 
22413
    @Override
22414
    public int hashCode() {
22415
      return 0;
22416
    }
22417
 
22418
    public int compareTo(getEmailsForNotificationsSent_result other) {
22419
      if (!getClass().equals(other.getClass())) {
22420
        return getClass().getName().compareTo(other.getClass().getName());
22421
      }
22422
 
22423
      int lastComparison = 0;
22424
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22425
 
22426
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22427
      if (lastComparison != 0) {
22428
        return lastComparison;
22429
      }
22430
      if (isSetSuccess()) {
22431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22432
        if (lastComparison != 0) {
22433
          return lastComparison;
22434
        }
22435
      }
22436
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22437
      if (lastComparison != 0) {
22438
        return lastComparison;
22439
      }
22440
      if (isSetHse()) {
22441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22442
        if (lastComparison != 0) {
22443
          return lastComparison;
22444
        }
22445
      }
22446
      return 0;
22447
    }
22448
 
22449
    public _Fields fieldForId(int fieldId) {
22450
      return _Fields.findByThriftId(fieldId);
22451
    }
22452
 
22453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22454
      org.apache.thrift.protocol.TField field;
22455
      iprot.readStructBegin();
22456
      while (true)
22457
      {
22458
        field = iprot.readFieldBegin();
22459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22460
          break;
22461
        }
22462
        switch (field.id) {
22463
          case 0: // SUCCESS
22464
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22465
              {
5864 rajveer 22466
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22467
                this.success = new ArrayList<String>(_list65.size);
22468
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22469
                {
5864 rajveer 22470
                  String _elem67; // required
22471
                  _elem67 = iprot.readString();
22472
                  this.success.add(_elem67);
5055 varun.gupt 22473
                }
22474
                iprot.readListEnd();
22475
              }
22476
            } else { 
22477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22478
            }
22479
            break;
22480
          case 1: // HSE
22481
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22482
              this.hse = new HelperServiceException();
22483
              this.hse.read(iprot);
22484
            } else { 
22485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22486
            }
22487
            break;
22488
          default:
22489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22490
        }
22491
        iprot.readFieldEnd();
22492
      }
22493
      iprot.readStructEnd();
22494
      validate();
22495
    }
22496
 
22497
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22498
      oprot.writeStructBegin(STRUCT_DESC);
22499
 
22500
      if (this.isSetSuccess()) {
22501
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22502
        {
22503
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22504
          for (String _iter68 : this.success)
5055 varun.gupt 22505
          {
5864 rajveer 22506
            oprot.writeString(_iter68);
5055 varun.gupt 22507
          }
22508
          oprot.writeListEnd();
22509
        }
22510
        oprot.writeFieldEnd();
22511
      } else if (this.isSetHse()) {
22512
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22513
        this.hse.write(oprot);
22514
        oprot.writeFieldEnd();
22515
      }
22516
      oprot.writeFieldStop();
22517
      oprot.writeStructEnd();
22518
    }
22519
 
22520
    @Override
22521
    public String toString() {
22522
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22523
      boolean first = true;
22524
 
22525
      sb.append("success:");
22526
      if (this.success == null) {
22527
        sb.append("null");
22528
      } else {
22529
        sb.append(this.success);
22530
      }
22531
      first = false;
22532
      if (!first) sb.append(", ");
22533
      sb.append("hse:");
22534
      if (this.hse == null) {
22535
        sb.append("null");
22536
      } else {
22537
        sb.append(this.hse);
22538
      }
22539
      first = false;
22540
      sb.append(")");
22541
      return sb.toString();
22542
    }
22543
 
22544
    public void validate() throws org.apache.thrift.TException {
22545
      // check for required fields
22546
    }
22547
 
22548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22549
      try {
22550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22551
      } catch (org.apache.thrift.TException te) {
22552
        throw new java.io.IOException(te);
22553
      }
22554
    }
22555
 
22556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22557
      try {
22558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22559
      } catch (org.apache.thrift.TException te) {
22560
        throw new java.io.IOException(te);
22561
      }
22562
    }
22563
 
22564
  }
22565
 
352 ashish 22566
}