Subversion Repositories SmartDukaan

Rev

Rev 4544 | Rev 4806 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
36
     */
3430 rajveer 37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 38
 
2779 chandransh 39
    /**
40
     * Retreives all the emails pending for dispatch
41
     */
3430 rajveer 42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 43
 
2779 chandransh 44
    /**
45
     * Marks email as sent after successful dispatch
46
     * 
47
     * @param emailId
48
     */
3430 rajveer 49
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 50
 
3430 rajveer 51
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 52
 
3430 rajveer 53
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 64
 
3430 rajveer 65
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
750 chandransh 67
    /**
2443 chandransh 68
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
69
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 70
     * 
71
     * @param username
72
     * @param password
73
     */
3430 rajveer 74
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 75
 
2443 chandransh 76
    /**
77
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
78
     * 
79
     * @param username
80
     * @param oldPassword
81
     * @param newPassword
82
     */
3430 rajveer 83
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 84
 
750 chandransh 85
    /**
86
     * Returns the LogisticsUser struct associated with the given username and password if they match.
87
     * Throws an exception otherwise.
88
     * 
89
     * @param username
90
     * @param password
91
     */
3430 rajveer 92
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 93
 
1611 ankur.sing 94
    /**
95
     * Returns the StatisticsUser struct associated with the given username and password if they match.
96
     * Throws an exception otherwise.
97
     * 
98
     * @param username
99
     * @param password
100
     */
3430 rajveer 101
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 102
 
1891 ankur.sing 103
    /**
104
     * Returns the ReportUser struct associated with the given username and password if they match.
105
     * Throws an exception otherwise.
106
     * 
107
     * @param username
108
     * @param password
109
     */
3430 rajveer 110
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 111
 
112
    /**
113
     * Returns list of reports which are configured for the given role.
114
     * 
115
     * @param role
116
     */
3430 rajveer 117
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 118
 
2024 ankur.sing 119
    /**
2357 ankur.sing 120
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 121
     * Throws an exception otherwise.
122
     * 
123
     * @param username
124
     * @param password
2357 ankur.sing 125
     * @param role
2024 ankur.sing 126
     */
3430 rajveer 127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 128
 
4544 varun.gupt 129
    /**
130
     * Saves the list of entity Ids to be shared with an email address
131
     * 
132
     * @param entityIds
133
     * @param email
134
     */
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
136
 
4693 mandeep.dh 137
    public List<Agent> getAgents() throws org.apache.thrift.TException;
138
 
139
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
140
 
141
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
142
 
143
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
144
 
145
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
146
 
352 ashish 147
  }
148
 
3430 rajveer 149
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
150
 
151
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
152
 
153
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
154
 
155
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
156
 
157
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
160
 
161
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
162
 
163
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
186
 
4544 varun.gupt 187
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
188
 
4693 mandeep.dh 189
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
192
 
193
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
198
 
3430 rajveer 199
  }
200
 
3374 rajveer 201
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 202
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
203
      public Factory() {}
204
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
205
        return new Client(prot);
206
      }
207
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
208
        return new Client(iprot, oprot);
209
      }
210
    }
211
 
212
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 213
    {
3430 rajveer 214
      super(prot, prot);
352 ashish 215
    }
216
 
3430 rajveer 217
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 218
      super(iprot, oprot);
352 ashish 219
    }
220
 
3430 rajveer 221
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 222
    {
223
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
3206 mandeep.dh 224
      return recv_saveUserEmailForSending();
1395 varun.gupt 225
    }
226
 
3430 rajveer 227
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
1395 varun.gupt 228
    {
229
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 230
      args.setEmailTo(emailTo);
231
      args.setEmailFrom(emailFrom);
232
      args.setSubject(subject);
233
      args.setBody(body);
234
      args.setSource(source);
235
      args.setEmailType(emailType);
236
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 237
    }
238
 
3430 rajveer 239
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 240
    {
241
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 242
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 243
      if (result.isSetSuccess()) {
244
        return result.success;
245
      }
1395 varun.gupt 246
      if (result.se != null) {
247
        throw result.se;
248
      }
3430 rajveer 249
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 250
    }
251
 
3430 rajveer 252
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 253
    {
3086 rajveer 254
      send_getEmailsToBeSent();
1422 varun.gupt 255
      return recv_getEmailsToBeSent();
256
    }
257
 
3430 rajveer 258
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 259
    {
260
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 261
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 262
    }
263
 
3430 rajveer 264
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 265
    {
266
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 267
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 268
      if (result.isSetSuccess()) {
269
        return result.success;
270
      }
271
      if (result.se != null) {
272
        throw result.se;
273
      }
3430 rajveer 274
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 275
    }
276
 
3430 rajveer 277
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 278
    {
279
      send_markEmailAsSent(emailId);
280
      recv_markEmailAsSent();
281
    }
282
 
3430 rajveer 283
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 284
    {
285
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 286
      args.setEmailId(emailId);
287
      sendBase("markEmailAsSent", args);
1422 varun.gupt 288
    }
289
 
3430 rajveer 290
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 291
    {
292
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 293
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 294
      if (result.se != null) {
295
        throw result.se;
296
      }
297
      return;
298
    }
299
 
3430 rajveer 300
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 301
    {
302
      send_sendMail(mail);
303
      recv_sendMail();
304
    }
305
 
3430 rajveer 306
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 307
    {
308
      sendMail_args args = new sendMail_args();
3430 rajveer 309
      args.setMail(mail);
310
      sendBase("sendMail", args);
352 ashish 311
    }
312
 
3430 rajveer 313
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 314
    {
315
      sendMail_result result = new sendMail_result();
3430 rajveer 316
      receiveBase(result, "sendMail");
352 ashish 317
      if (result.se != null) {
318
        throw result.se;
319
      }
320
      return;
321
    }
322
 
3430 rajveer 323
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 324
    {
325
      send_sendText(message);
326
      recv_sendText();
327
    }
328
 
3430 rajveer 329
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 330
    {
331
      sendText_args args = new sendText_args();
3430 rajveer 332
      args.setMessage(message);
333
      sendBase("sendText", args);
352 ashish 334
    }
335
 
3430 rajveer 336
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 337
    {
338
      sendText_result result = new sendText_result();
3430 rajveer 339
      receiveBase(result, "sendText");
352 ashish 340
      if (result.se != null) {
341
        throw result.se;
342
      }
343
      return;
344
    }
345
 
3430 rajveer 346
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 347
    {
348
      send_addMessage(message);
349
      recv_addMessage();
350
    }
351
 
3430 rajveer 352
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 353
    {
354
      addMessage_args args = new addMessage_args();
3430 rajveer 355
      args.setMessage(message);
356
      sendBase("addMessage", args);
352 ashish 357
    }
358
 
3430 rajveer 359
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 360
    {
361
      addMessage_result result = new addMessage_result();
3430 rajveer 362
      receiveBase(result, "addMessage");
352 ashish 363
      if (result.se != null) {
364
        throw result.se;
365
      }
366
      return;
367
    }
368
 
3430 rajveer 369
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 370
    {
371
      send_updateMessage(id, message);
372
      recv_updateMessage();
373
    }
374
 
3430 rajveer 375
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 376
    {
377
      updateMessage_args args = new updateMessage_args();
3430 rajveer 378
      args.setId(id);
379
      args.setMessage(message);
380
      sendBase("updateMessage", args);
352 ashish 381
    }
382
 
3430 rajveer 383
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 384
    {
385
      updateMessage_result result = new updateMessage_result();
3430 rajveer 386
      receiveBase(result, "updateMessage");
352 ashish 387
      if (result.se != null) {
388
        throw result.se;
389
      }
390
      return;
391
    }
392
 
3430 rajveer 393
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 394
    {
395
      send_getMessage(id);
396
      return recv_getMessage();
397
    }
398
 
3430 rajveer 399
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 400
    {
401
      getMessage_args args = new getMessage_args();
3430 rajveer 402
      args.setId(id);
403
      sendBase("getMessage", args);
352 ashish 404
    }
405
 
3430 rajveer 406
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 407
    {
408
      getMessage_result result = new getMessage_result();
3430 rajveer 409
      receiveBase(result, "getMessage");
352 ashish 410
      if (result.isSetSuccess()) {
411
        return result.success;
412
      }
413
      if (result.se != null) {
414
        throw result.se;
415
      }
3430 rajveer 416
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 417
    }
418
 
3430 rajveer 419
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 420
    {
421
      send_getSubstitutedMessage(id, params);
422
      return recv_getSubstitutedMessage();
423
    }
424
 
3430 rajveer 425
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 426
    {
427
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 428
      args.setId(id);
429
      args.setParams(params);
430
      sendBase("getSubstitutedMessage", args);
352 ashish 431
    }
432
 
3430 rajveer 433
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 434
    {
435
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 436
      receiveBase(result, "getSubstitutedMessage");
352 ashish 437
      if (result.isSetSuccess()) {
438
        return result.success;
439
      }
440
      if (result.se != null) {
441
        throw result.se;
442
      }
3430 rajveer 443
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 444
    }
445
 
3430 rajveer 446
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 447
    {
448
      send_addUser(username, password, warehouseId);
449
      return recv_addUser();
450
    }
451
 
3430 rajveer 452
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 453
    {
454
      addUser_args args = new addUser_args();
3430 rajveer 455
      args.setUsername(username);
456
      args.setPassword(password);
457
      args.setWarehouseId(warehouseId);
458
      sendBase("addUser", args);
495 rajveer 459
    }
460
 
3430 rajveer 461
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 462
    {
463
      addUser_result result = new addUser_result();
3430 rajveer 464
      receiveBase(result, "addUser");
495 rajveer 465
      if (result.isSetSuccess()) {
466
        return result.success;
467
      }
468
      if (result.se != null) {
469
        throw result.se;
470
      }
3430 rajveer 471
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 472
    }
473
 
3430 rajveer 474
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 475
    {
476
      send_deleteUser(username);
477
      return recv_deleteUser();
478
    }
479
 
3430 rajveer 480
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 481
    {
482
      deleteUser_args args = new deleteUser_args();
3430 rajveer 483
      args.setUsername(username);
484
      sendBase("deleteUser", args);
495 rajveer 485
    }
486
 
3430 rajveer 487
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 488
    {
489
      deleteUser_result result = new deleteUser_result();
3430 rajveer 490
      receiveBase(result, "deleteUser");
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, "deleteUser failed: unknown result");
495 rajveer 498
    }
499
 
3430 rajveer 500
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 501
    {
2443 chandransh 502
      send_authenticateDashboardUser(username, password);
503
      return recv_authenticateDashboardUser();
495 rajveer 504
    }
505
 
3430 rajveer 506
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 507
    {
2443 chandransh 508
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 509
      args.setUsername(username);
510
      args.setPassword(password);
511
      sendBase("authenticateDashboardUser", args);
495 rajveer 512
    }
513
 
3430 rajveer 514
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 515
    {
2443 chandransh 516
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 517
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 518
      if (result.isSetSuccess()) {
519
        return result.success;
520
      }
521
      if (result.se != null) {
522
        throw result.se;
523
      }
3430 rajveer 524
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 525
    }
526
 
3430 rajveer 527
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 528
    {
529
      send_updatePassword(username, oldPassword, newPassword);
530
      return recv_updatePassword();
531
    }
532
 
3430 rajveer 533
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 534
    {
535
      updatePassword_args args = new updatePassword_args();
3430 rajveer 536
      args.setUsername(username);
537
      args.setOldPassword(oldPassword);
538
      args.setNewPassword(newPassword);
539
      sendBase("updatePassword", args);
495 rajveer 540
    }
541
 
3430 rajveer 542
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 543
    {
544
      updatePassword_result result = new updatePassword_result();
3430 rajveer 545
      receiveBase(result, "updatePassword");
495 rajveer 546
      if (result.isSetSuccess()) {
547
        return result.success;
548
      }
549
      if (result.se != null) {
550
        throw result.se;
551
      }
3430 rajveer 552
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 553
    }
554
 
3430 rajveer 555
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 556
    {
557
      send_authenticateLogisticsUser(username, password);
558
      return recv_authenticateLogisticsUser();
559
    }
560
 
3430 rajveer 561
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 562
    {
563
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 564
      args.setUsername(username);
565
      args.setPassword(password);
566
      sendBase("authenticateLogisticsUser", args);
750 chandransh 567
    }
568
 
3430 rajveer 569
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 570
    {
571
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 572
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 573
      if (result.isSetSuccess()) {
574
        return result.success;
575
      }
576
      if (result.hse != null) {
577
        throw result.hse;
578
      }
3430 rajveer 579
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 580
    }
581
 
3430 rajveer 582
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 583
    {
584
      send_authenticateStatisticsUser(username, password);
585
      return recv_authenticateStatisticsUser();
586
    }
587
 
3430 rajveer 588
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 589
    {
590
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 591
      args.setUsername(username);
592
      args.setPassword(password);
593
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 594
    }
595
 
3430 rajveer 596
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 597
    {
598
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 599
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 600
      if (result.isSetSuccess()) {
601
        return result.success;
602
      }
603
      if (result.hse != null) {
604
        throw result.hse;
605
      }
3430 rajveer 606
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 607
    }
608
 
3430 rajveer 609
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 610
    {
611
      send_authenticateReportUser(username, password);
612
      return recv_authenticateReportUser();
613
    }
614
 
3430 rajveer 615
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 616
    {
617
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 618
      args.setUsername(username);
619
      args.setPassword(password);
620
      sendBase("authenticateReportUser", args);
1891 ankur.sing 621
    }
622
 
3430 rajveer 623
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 624
    {
625
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 626
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 627
      if (result.isSetSuccess()) {
628
        return result.success;
629
      }
630
      if (result.hse != null) {
631
        throw result.hse;
632
      }
3430 rajveer 633
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 634
    }
635
 
3430 rajveer 636
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 637
    {
638
      send_getReports(role);
639
      return recv_getReports();
640
    }
641
 
3430 rajveer 642
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 643
    {
644
      getReports_args args = new getReports_args();
3430 rajveer 645
      args.setRole(role);
646
      sendBase("getReports", args);
1891 ankur.sing 647
    }
648
 
3430 rajveer 649
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 650
    {
651
      getReports_result result = new getReports_result();
3430 rajveer 652
      receiveBase(result, "getReports");
1891 ankur.sing 653
      if (result.isSetSuccess()) {
654
        return result.success;
655
      }
3430 rajveer 656
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 657
    }
658
 
3430 rajveer 659
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 660
    {
2357 ankur.sing 661
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 662
      return recv_authenticateCatalogUser();
663
    }
664
 
3430 rajveer 665
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 666
    {
667
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 668
      args.setUsername(username);
669
      args.setPassword(password);
670
      args.setRole(role);
671
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 672
    }
673
 
3430 rajveer 674
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 675
    {
676
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 677
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 678
      if (result.isSetSuccess()) {
679
        return result.success;
680
      }
681
      if (result.hse != null) {
682
        throw result.hse;
683
      }
3430 rajveer 684
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 685
    }
686
 
4544 varun.gupt 687
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
688
    {
689
      send_shareEntities(entityIds, email);
690
      recv_shareEntities();
691
    }
692
 
693
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
694
    {
695
      shareEntities_args args = new shareEntities_args();
696
      args.setEntityIds(entityIds);
697
      args.setEmail(email);
698
      sendBase("shareEntities", args);
699
    }
700
 
701
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
702
    {
703
      shareEntities_result result = new shareEntities_result();
704
      receiveBase(result, "shareEntities");
705
      if (result.hse != null) {
706
        throw result.hse;
707
      }
708
      return;
709
    }
710
 
4693 mandeep.dh 711
    public List<Agent> getAgents() throws org.apache.thrift.TException
712
    {
713
      send_getAgents();
714
      return recv_getAgents();
715
    }
716
 
717
    public void send_getAgents() throws org.apache.thrift.TException
718
    {
719
      getAgents_args args = new getAgents_args();
720
      sendBase("getAgents", args);
721
    }
722
 
723
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
724
    {
725
      getAgents_result result = new getAgents_result();
726
      receiveBase(result, "getAgents");
727
      if (result.isSetSuccess()) {
728
        return result.success;
729
      }
730
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
731
    }
732
 
733
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
734
    {
735
      send_validateLogIn(emailId, password);
736
      return recv_validateLogIn();
737
    }
738
 
739
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
740
    {
741
      validateLogIn_args args = new validateLogIn_args();
742
      args.setEmailId(emailId);
743
      args.setPassword(password);
744
      sendBase("validateLogIn", args);
745
    }
746
 
747
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
748
    {
749
      validateLogIn_result result = new validateLogIn_result();
750
      receiveBase(result, "validateLogIn");
751
      if (result.isSetSuccess()) {
752
        return result.success;
753
      }
754
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
755
    }
756
 
757
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
758
    {
759
      send_updatePasswordForAgent(agentEmailId, password);
760
      recv_updatePasswordForAgent();
761
    }
762
 
763
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
764
    {
765
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
766
      args.setAgentEmailId(agentEmailId);
767
      args.setPassword(password);
768
      sendBase("updatePasswordForAgent", args);
769
    }
770
 
771
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
772
    {
773
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
774
      receiveBase(result, "updatePasswordForAgent");
775
      return;
776
    }
777
 
778
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
779
    {
780
      send_getRoleNamesForAgent(agentEmailId);
781
      return recv_getRoleNamesForAgent();
782
    }
783
 
784
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
785
    {
786
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
787
      args.setAgentEmailId(agentEmailId);
788
      sendBase("getRoleNamesForAgent", args);
789
    }
790
 
791
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
792
    {
793
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
794
      receiveBase(result, "getRoleNamesForAgent");
795
      if (result.isSetSuccess()) {
796
        return result.success;
797
      }
798
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
799
    }
800
 
801
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
802
    {
803
      send_getPermissionsForRoleName(roleName);
804
      return recv_getPermissionsForRoleName();
805
    }
806
 
807
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
808
    {
809
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
810
      args.setRoleName(roleName);
811
      sendBase("getPermissionsForRoleName", args);
812
    }
813
 
814
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
815
    {
816
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
817
      receiveBase(result, "getPermissionsForRoleName");
818
      if (result.isSetSuccess()) {
819
        return result.success;
820
      }
821
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
822
    }
823
 
352 ashish 824
  }
3430 rajveer 825
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
826
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
827
      private org.apache.thrift.async.TAsyncClientManager clientManager;
828
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
829
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
830
        this.clientManager = clientManager;
831
        this.protocolFactory = protocolFactory;
832
      }
833
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
834
        return new AsyncClient(protocolFactory, clientManager, transport);
835
      }
352 ashish 836
    }
837
 
3430 rajveer 838
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
839
      super(protocolFactory, clientManager, transport);
840
    }
352 ashish 841
 
3430 rajveer 842
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
843
      checkReady();
844
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
845
      this.___currentMethod = method_call;
846
      ___manager.call(method_call);
847
    }
848
 
849
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
850
      private String emailTo;
851
      private String emailFrom;
852
      private String subject;
853
      private String body;
854
      private String source;
855
      private String emailType;
856
      public saveUserEmailForSending_call(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
857
        super(client, protocolFactory, transport, resultHandler, false);
858
        this.emailTo = emailTo;
859
        this.emailFrom = emailFrom;
860
        this.subject = subject;
861
        this.body = body;
862
        this.source = source;
863
        this.emailType = emailType;
352 ashish 864
      }
3430 rajveer 865
 
866
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
867
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
868
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
869
        args.setEmailTo(emailTo);
870
        args.setEmailFrom(emailFrom);
871
        args.setSubject(subject);
872
        args.setBody(body);
873
        args.setSource(source);
874
        args.setEmailType(emailType);
875
        args.write(prot);
876
        prot.writeMessageEnd();
877
      }
878
 
879
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
880
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
881
          throw new IllegalStateException("Method call not finished!");
882
        }
883
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
885
        return (new Client(prot)).recv_saveUserEmailForSending();
886
      }
352 ashish 887
    }
888
 
3430 rajveer 889
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
890
      checkReady();
891
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
892
      this.___currentMethod = method_call;
893
      ___manager.call(method_call);
894
    }
895
 
896
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
897
      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 {
898
        super(client, protocolFactory, transport, resultHandler, false);
899
      }
900
 
901
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
903
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
904
        args.write(prot);
905
        prot.writeMessageEnd();
906
      }
907
 
908
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
909
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
910
          throw new IllegalStateException("Method call not finished!");
911
        }
912
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
913
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
914
        return (new Client(prot)).recv_getEmailsToBeSent();
915
      }
916
    }
917
 
918
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
919
      checkReady();
920
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
921
      this.___currentMethod = method_call;
922
      ___manager.call(method_call);
923
    }
924
 
925
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
926
      private long emailId;
927
      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 {
928
        super(client, protocolFactory, transport, resultHandler, false);
929
        this.emailId = emailId;
930
      }
931
 
932
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
933
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
934
        markEmailAsSent_args args = new markEmailAsSent_args();
935
        args.setEmailId(emailId);
936
        args.write(prot);
937
        prot.writeMessageEnd();
938
      }
939
 
940
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
941
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
942
          throw new IllegalStateException("Method call not finished!");
943
        }
944
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
945
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
946
        (new Client(prot)).recv_markEmailAsSent();
947
      }
948
    }
949
 
950
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
951
      checkReady();
952
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
953
      this.___currentMethod = method_call;
954
      ___manager.call(method_call);
955
    }
956
 
957
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
958
      private Mail mail;
959
      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 {
960
        super(client, protocolFactory, transport, resultHandler, false);
961
        this.mail = mail;
962
      }
963
 
964
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
965
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
966
        sendMail_args args = new sendMail_args();
967
        args.setMail(mail);
968
        args.write(prot);
969
        prot.writeMessageEnd();
970
      }
971
 
972
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
973
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
974
          throw new IllegalStateException("Method call not finished!");
975
        }
976
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
977
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
978
        (new Client(prot)).recv_sendMail();
979
      }
980
    }
981
 
982
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
983
      checkReady();
984
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
985
      this.___currentMethod = method_call;
986
      ___manager.call(method_call);
987
    }
988
 
989
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
990
      private TextMessage message;
991
      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 {
992
        super(client, protocolFactory, transport, resultHandler, false);
993
        this.message = message;
994
      }
995
 
996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        sendText_args args = new sendText_args();
999
        args.setMessage(message);
1000
        args.write(prot);
1001
        prot.writeMessageEnd();
1002
      }
1003
 
1004
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1005
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1006
          throw new IllegalStateException("Method call not finished!");
1007
        }
1008
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1009
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1010
        (new Client(prot)).recv_sendText();
1011
      }
1012
    }
1013
 
1014
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1015
      checkReady();
1016
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1017
      this.___currentMethod = method_call;
1018
      ___manager.call(method_call);
1019
    }
1020
 
1021
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1022
      private Message message;
1023
      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 {
1024
        super(client, protocolFactory, transport, resultHandler, false);
1025
        this.message = message;
1026
      }
1027
 
1028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1030
        addMessage_args args = new addMessage_args();
1031
        args.setMessage(message);
1032
        args.write(prot);
1033
        prot.writeMessageEnd();
1034
      }
1035
 
1036
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1037
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1038
          throw new IllegalStateException("Method call not finished!");
1039
        }
1040
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1042
        (new Client(prot)).recv_addMessage();
1043
      }
1044
    }
1045
 
1046
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1047
      checkReady();
1048
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1049
      this.___currentMethod = method_call;
1050
      ___manager.call(method_call);
1051
    }
1052
 
1053
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1054
      private long id;
1055
      private String message;
1056
      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 {
1057
        super(client, protocolFactory, transport, resultHandler, false);
1058
        this.id = id;
1059
        this.message = message;
1060
      }
1061
 
1062
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1063
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1064
        updateMessage_args args = new updateMessage_args();
1065
        args.setId(id);
1066
        args.setMessage(message);
1067
        args.write(prot);
1068
        prot.writeMessageEnd();
1069
      }
1070
 
1071
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1072
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1073
          throw new IllegalStateException("Method call not finished!");
1074
        }
1075
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1076
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1077
        (new Client(prot)).recv_updateMessage();
1078
      }
1079
    }
1080
 
1081
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1082
      checkReady();
1083
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1084
      this.___currentMethod = method_call;
1085
      ___manager.call(method_call);
1086
    }
1087
 
1088
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1089
      private long id;
1090
      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 {
1091
        super(client, protocolFactory, transport, resultHandler, false);
1092
        this.id = id;
1093
      }
1094
 
1095
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1096
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1097
        getMessage_args args = new getMessage_args();
1098
        args.setId(id);
1099
        args.write(prot);
1100
        prot.writeMessageEnd();
1101
      }
1102
 
1103
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1104
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1105
          throw new IllegalStateException("Method call not finished!");
1106
        }
1107
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1109
        return (new Client(prot)).recv_getMessage();
1110
      }
1111
    }
1112
 
1113
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1114
      checkReady();
1115
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1116
      this.___currentMethod = method_call;
1117
      ___manager.call(method_call);
1118
    }
1119
 
1120
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1121
      private long id;
1122
      private Map<String,String> params;
1123
      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 {
1124
        super(client, protocolFactory, transport, resultHandler, false);
1125
        this.id = id;
1126
        this.params = params;
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("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1131
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1132
        args.setId(id);
1133
        args.setParams(params);
1134
        args.write(prot);
1135
        prot.writeMessageEnd();
1136
      }
1137
 
1138
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1139
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1140
          throw new IllegalStateException("Method call not finished!");
1141
        }
1142
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1143
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1144
        return (new Client(prot)).recv_getSubstitutedMessage();
1145
      }
1146
    }
1147
 
1148
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1149
      checkReady();
1150
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1151
      this.___currentMethod = method_call;
1152
      ___manager.call(method_call);
1153
    }
1154
 
1155
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1156
      private String username;
1157
      private String password;
1158
      private long warehouseId;
1159
      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 {
1160
        super(client, protocolFactory, transport, resultHandler, false);
1161
        this.username = username;
1162
        this.password = password;
1163
        this.warehouseId = warehouseId;
1164
      }
1165
 
1166
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1167
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1168
        addUser_args args = new addUser_args();
1169
        args.setUsername(username);
1170
        args.setPassword(password);
1171
        args.setWarehouseId(warehouseId);
1172
        args.write(prot);
1173
        prot.writeMessageEnd();
1174
      }
1175
 
1176
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1177
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1178
          throw new IllegalStateException("Method call not finished!");
1179
        }
1180
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1181
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1182
        return (new Client(prot)).recv_addUser();
1183
      }
1184
    }
1185
 
1186
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1187
      checkReady();
1188
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1189
      this.___currentMethod = method_call;
1190
      ___manager.call(method_call);
1191
    }
1192
 
1193
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1194
      private String username;
1195
      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 {
1196
        super(client, protocolFactory, transport, resultHandler, false);
1197
        this.username = username;
1198
      }
1199
 
1200
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1201
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1202
        deleteUser_args args = new deleteUser_args();
1203
        args.setUsername(username);
1204
        args.write(prot);
1205
        prot.writeMessageEnd();
1206
      }
1207
 
1208
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1209
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1210
          throw new IllegalStateException("Method call not finished!");
1211
        }
1212
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1213
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1214
        return (new Client(prot)).recv_deleteUser();
1215
      }
1216
    }
1217
 
1218
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1219
      checkReady();
1220
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1221
      this.___currentMethod = method_call;
1222
      ___manager.call(method_call);
1223
    }
1224
 
1225
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1226
      private String username;
1227
      private String password;
1228
      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 {
1229
        super(client, protocolFactory, transport, resultHandler, false);
1230
        this.username = username;
1231
        this.password = password;
1232
      }
1233
 
1234
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1235
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1236
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1237
        args.setUsername(username);
1238
        args.setPassword(password);
1239
        args.write(prot);
1240
        prot.writeMessageEnd();
1241
      }
1242
 
1243
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1245
          throw new IllegalStateException("Method call not finished!");
1246
        }
1247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1249
        return (new Client(prot)).recv_authenticateDashboardUser();
1250
      }
1251
    }
1252
 
1253
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1254
      checkReady();
1255
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1256
      this.___currentMethod = method_call;
1257
      ___manager.call(method_call);
1258
    }
1259
 
1260
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1261
      private String username;
1262
      private String oldPassword;
1263
      private String newPassword;
1264
      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 {
1265
        super(client, protocolFactory, transport, resultHandler, false);
1266
        this.username = username;
1267
        this.oldPassword = oldPassword;
1268
        this.newPassword = newPassword;
1269
      }
1270
 
1271
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1272
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1273
        updatePassword_args args = new updatePassword_args();
1274
        args.setUsername(username);
1275
        args.setOldPassword(oldPassword);
1276
        args.setNewPassword(newPassword);
1277
        args.write(prot);
1278
        prot.writeMessageEnd();
1279
      }
1280
 
1281
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1282
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1283
          throw new IllegalStateException("Method call not finished!");
1284
        }
1285
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1286
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1287
        return (new Client(prot)).recv_updatePassword();
1288
      }
1289
    }
1290
 
1291
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1292
      checkReady();
1293
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1294
      this.___currentMethod = method_call;
1295
      ___manager.call(method_call);
1296
    }
1297
 
1298
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1299
      private String username;
1300
      private String password;
1301
      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 {
1302
        super(client, protocolFactory, transport, resultHandler, false);
1303
        this.username = username;
1304
        this.password = password;
1305
      }
1306
 
1307
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1308
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1309
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1310
        args.setUsername(username);
1311
        args.setPassword(password);
1312
        args.write(prot);
1313
        prot.writeMessageEnd();
1314
      }
1315
 
1316
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1317
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1318
          throw new IllegalStateException("Method call not finished!");
1319
        }
1320
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1321
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1322
        return (new Client(prot)).recv_authenticateLogisticsUser();
1323
      }
1324
    }
1325
 
1326
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1327
      checkReady();
1328
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1329
      this.___currentMethod = method_call;
1330
      ___manager.call(method_call);
1331
    }
1332
 
1333
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1334
      private String username;
1335
      private String password;
1336
      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 {
1337
        super(client, protocolFactory, transport, resultHandler, false);
1338
        this.username = username;
1339
        this.password = password;
1340
      }
1341
 
1342
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1343
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1344
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1345
        args.setUsername(username);
1346
        args.setPassword(password);
1347
        args.write(prot);
1348
        prot.writeMessageEnd();
1349
      }
1350
 
1351
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1353
          throw new IllegalStateException("Method call not finished!");
1354
        }
1355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1357
        return (new Client(prot)).recv_authenticateStatisticsUser();
1358
      }
1359
    }
1360
 
1361
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1362
      checkReady();
1363
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1364
      this.___currentMethod = method_call;
1365
      ___manager.call(method_call);
1366
    }
1367
 
1368
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1369
      private String username;
1370
      private String password;
1371
      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 {
1372
        super(client, protocolFactory, transport, resultHandler, false);
1373
        this.username = username;
1374
        this.password = password;
1375
      }
1376
 
1377
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1378
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1379
        authenticateReportUser_args args = new authenticateReportUser_args();
1380
        args.setUsername(username);
1381
        args.setPassword(password);
1382
        args.write(prot);
1383
        prot.writeMessageEnd();
1384
      }
1385
 
1386
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1387
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1388
          throw new IllegalStateException("Method call not finished!");
1389
        }
1390
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1391
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1392
        return (new Client(prot)).recv_authenticateReportUser();
1393
      }
1394
    }
1395
 
1396
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1397
      checkReady();
1398
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1399
      this.___currentMethod = method_call;
1400
      ___manager.call(method_call);
1401
    }
1402
 
1403
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1404
      private long role;
1405
      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 {
1406
        super(client, protocolFactory, transport, resultHandler, false);
1407
        this.role = role;
1408
      }
1409
 
1410
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1411
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1412
        getReports_args args = new getReports_args();
1413
        args.setRole(role);
1414
        args.write(prot);
1415
        prot.writeMessageEnd();
1416
      }
1417
 
1418
      public List<Report> getResult() throws org.apache.thrift.TException {
1419
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1420
          throw new IllegalStateException("Method call not finished!");
1421
        }
1422
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1423
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1424
        return (new Client(prot)).recv_getReports();
1425
      }
1426
    }
1427
 
1428
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1429
      checkReady();
1430
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1431
      this.___currentMethod = method_call;
1432
      ___manager.call(method_call);
1433
    }
1434
 
1435
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1436
      private String username;
1437
      private String password;
1438
      private long role;
1439
      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 {
1440
        super(client, protocolFactory, transport, resultHandler, false);
1441
        this.username = username;
1442
        this.password = password;
1443
        this.role = role;
1444
      }
1445
 
1446
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1447
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1448
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1449
        args.setUsername(username);
1450
        args.setPassword(password);
1451
        args.setRole(role);
1452
        args.write(prot);
1453
        prot.writeMessageEnd();
1454
      }
1455
 
1456
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1457
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1458
          throw new IllegalStateException("Method call not finished!");
1459
        }
1460
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1461
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1462
        return (new Client(prot)).recv_authenticateCatalogUser();
1463
      }
1464
    }
1465
 
4544 varun.gupt 1466
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1467
      checkReady();
1468
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1469
      this.___currentMethod = method_call;
1470
      ___manager.call(method_call);
1471
    }
1472
 
1473
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1474
      private List<Long> entityIds;
1475
      private String email;
1476
      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 {
1477
        super(client, protocolFactory, transport, resultHandler, false);
1478
        this.entityIds = entityIds;
1479
        this.email = email;
1480
      }
1481
 
1482
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1483
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1484
        shareEntities_args args = new shareEntities_args();
1485
        args.setEntityIds(entityIds);
1486
        args.setEmail(email);
1487
        args.write(prot);
1488
        prot.writeMessageEnd();
1489
      }
1490
 
1491
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1492
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1493
          throw new IllegalStateException("Method call not finished!");
1494
        }
1495
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1496
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1497
        (new Client(prot)).recv_shareEntities();
1498
      }
1499
    }
1500
 
4693 mandeep.dh 1501
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1502
      checkReady();
1503
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1504
      this.___currentMethod = method_call;
1505
      ___manager.call(method_call);
1506
    }
1507
 
1508
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1509
      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 {
1510
        super(client, protocolFactory, transport, resultHandler, false);
1511
      }
1512
 
1513
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1514
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1515
        getAgents_args args = new getAgents_args();
1516
        args.write(prot);
1517
        prot.writeMessageEnd();
1518
      }
1519
 
1520
      public List<Agent> getResult() throws org.apache.thrift.TException {
1521
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1522
          throw new IllegalStateException("Method call not finished!");
1523
        }
1524
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1525
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1526
        return (new Client(prot)).recv_getAgents();
1527
      }
1528
    }
1529
 
1530
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1531
      checkReady();
1532
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1533
      this.___currentMethod = method_call;
1534
      ___manager.call(method_call);
1535
    }
1536
 
1537
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1538
      private String emailId;
1539
      private String password;
1540
      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 {
1541
        super(client, protocolFactory, transport, resultHandler, false);
1542
        this.emailId = emailId;
1543
        this.password = password;
1544
      }
1545
 
1546
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1547
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1548
        validateLogIn_args args = new validateLogIn_args();
1549
        args.setEmailId(emailId);
1550
        args.setPassword(password);
1551
        args.write(prot);
1552
        prot.writeMessageEnd();
1553
      }
1554
 
1555
      public boolean getResult() throws org.apache.thrift.TException {
1556
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1557
          throw new IllegalStateException("Method call not finished!");
1558
        }
1559
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1560
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1561
        return (new Client(prot)).recv_validateLogIn();
1562
      }
1563
    }
1564
 
1565
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1566
      checkReady();
1567
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1568
      this.___currentMethod = method_call;
1569
      ___manager.call(method_call);
1570
    }
1571
 
1572
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1573
      private String agentEmailId;
1574
      private String password;
1575
      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 {
1576
        super(client, protocolFactory, transport, resultHandler, false);
1577
        this.agentEmailId = agentEmailId;
1578
        this.password = password;
1579
      }
1580
 
1581
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1582
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1583
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1584
        args.setAgentEmailId(agentEmailId);
1585
        args.setPassword(password);
1586
        args.write(prot);
1587
        prot.writeMessageEnd();
1588
      }
1589
 
1590
      public void getResult() throws org.apache.thrift.TException {
1591
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1592
          throw new IllegalStateException("Method call not finished!");
1593
        }
1594
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1595
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1596
        (new Client(prot)).recv_updatePasswordForAgent();
1597
      }
1598
    }
1599
 
1600
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1601
      checkReady();
1602
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1603
      this.___currentMethod = method_call;
1604
      ___manager.call(method_call);
1605
    }
1606
 
1607
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1608
      private String agentEmailId;
1609
      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 {
1610
        super(client, protocolFactory, transport, resultHandler, false);
1611
        this.agentEmailId = agentEmailId;
1612
      }
1613
 
1614
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1615
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1616
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1617
        args.setAgentEmailId(agentEmailId);
1618
        args.write(prot);
1619
        prot.writeMessageEnd();
1620
      }
1621
 
1622
      public List<String> getResult() throws org.apache.thrift.TException {
1623
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1624
          throw new IllegalStateException("Method call not finished!");
1625
        }
1626
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1627
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1628
        return (new Client(prot)).recv_getRoleNamesForAgent();
1629
      }
1630
    }
1631
 
1632
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1633
      checkReady();
1634
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1635
      this.___currentMethod = method_call;
1636
      ___manager.call(method_call);
1637
    }
1638
 
1639
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1640
      private String roleName;
1641
      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 {
1642
        super(client, protocolFactory, transport, resultHandler, false);
1643
        this.roleName = roleName;
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("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1648
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1649
        args.setRoleName(roleName);
1650
        args.write(prot);
1651
        prot.writeMessageEnd();
1652
      }
1653
 
1654
      public List<String> getResult() throws org.apache.thrift.TException {
1655
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1656
          throw new IllegalStateException("Method call not finished!");
1657
        }
1658
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1659
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1660
        return (new Client(prot)).recv_getPermissionsForRoleName();
1661
      }
1662
    }
1663
 
3430 rajveer 1664
  }
1665
 
1666
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1667
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1668
    public Processor(I iface) {
1669
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1670
    }
1671
 
1672
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1673
      super(iface, getProcessMap(processMap));
1674
    }
1675
 
1676
    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) {
1677
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1678
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1679
      processMap.put("markEmailAsSent", new markEmailAsSent());
1680
      processMap.put("sendMail", new sendMail());
1681
      processMap.put("sendText", new sendText());
1682
      processMap.put("addMessage", new addMessage());
1683
      processMap.put("updateMessage", new updateMessage());
1684
      processMap.put("getMessage", new getMessage());
1685
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1686
      processMap.put("addUser", new addUser());
1687
      processMap.put("deleteUser", new deleteUser());
1688
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1689
      processMap.put("updatePassword", new updatePassword());
1690
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1691
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1692
      processMap.put("authenticateReportUser", new authenticateReportUser());
1693
      processMap.put("getReports", new getReports());
1694
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 1695
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 1696
      processMap.put("getAgents", new getAgents());
1697
      processMap.put("validateLogIn", new validateLogIn());
1698
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1699
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1700
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
3430 rajveer 1701
      return processMap;
1702
    }
1703
 
1704
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1705
      public saveUserEmailForSending() {
1706
        super("saveUserEmailForSending");
1707
      }
1708
 
1709
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1710
        return new saveUserEmailForSending_args();
1711
      }
1712
 
1713
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1714
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1715
        try {
3430 rajveer 1716
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
3206 mandeep.dh 1717
          result.setSuccessIsSet(true);
1395 varun.gupt 1718
        } catch (HelperServiceException se) {
1719
          result.se = se;
1720
        }
3430 rajveer 1721
        return result;
1395 varun.gupt 1722
      }
1723
    }
1724
 
3430 rajveer 1725
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
1726
      public getEmailsToBeSent() {
1727
        super("getEmailsToBeSent");
1728
      }
1729
 
1730
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
1731
        return new getEmailsToBeSent_args();
1732
      }
1733
 
1734
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1735
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
1736
        try {
3430 rajveer 1737
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 1738
        } catch (HelperServiceException se) {
1739
          result.se = se;
1740
        }
3430 rajveer 1741
        return result;
1422 varun.gupt 1742
      }
1743
    }
1744
 
3430 rajveer 1745
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
1746
      public markEmailAsSent() {
1747
        super("markEmailAsSent");
1748
      }
1749
 
1750
      protected markEmailAsSent_args getEmptyArgsInstance() {
1751
        return new markEmailAsSent_args();
1752
      }
1753
 
1754
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1755
        markEmailAsSent_result result = new markEmailAsSent_result();
1756
        try {
3430 rajveer 1757
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 1758
        } catch (HelperServiceException se) {
1759
          result.se = se;
1760
        }
3430 rajveer 1761
        return result;
1422 varun.gupt 1762
      }
1763
    }
1764
 
3430 rajveer 1765
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
1766
      public sendMail() {
1767
        super("sendMail");
1768
      }
1769
 
1770
      protected sendMail_args getEmptyArgsInstance() {
1771
        return new sendMail_args();
1772
      }
1773
 
1774
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 1775
        sendMail_result result = new sendMail_result();
1776
        try {
3430 rajveer 1777
          iface.sendMail(args.mail);
352 ashish 1778
        } catch (HelperServiceException se) {
1779
          result.se = se;
1780
        }
3430 rajveer 1781
        return result;
352 ashish 1782
      }
1783
    }
1784
 
3430 rajveer 1785
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
1786
      public sendText() {
1787
        super("sendText");
1788
      }
1789
 
1790
      protected sendText_args getEmptyArgsInstance() {
1791
        return new sendText_args();
1792
      }
1793
 
1794
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 1795
        sendText_result result = new sendText_result();
1796
        try {
3430 rajveer 1797
          iface.sendText(args.message);
352 ashish 1798
        } catch (HelperServiceException se) {
1799
          result.se = se;
1800
        }
3430 rajveer 1801
        return result;
352 ashish 1802
      }
1803
    }
1804
 
3430 rajveer 1805
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
1806
      public addMessage() {
1807
        super("addMessage");
1808
      }
1809
 
1810
      protected addMessage_args getEmptyArgsInstance() {
1811
        return new addMessage_args();
1812
      }
1813
 
1814
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 1815
        addMessage_result result = new addMessage_result();
1816
        try {
3430 rajveer 1817
          iface.addMessage(args.message);
352 ashish 1818
        } catch (HelperServiceException se) {
1819
          result.se = se;
1820
        }
3430 rajveer 1821
        return result;
352 ashish 1822
      }
1823
    }
1824
 
3430 rajveer 1825
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
1826
      public updateMessage() {
1827
        super("updateMessage");
1828
      }
1829
 
1830
      protected updateMessage_args getEmptyArgsInstance() {
1831
        return new updateMessage_args();
1832
      }
1833
 
1834
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 1835
        updateMessage_result result = new updateMessage_result();
1836
        try {
3430 rajveer 1837
          iface.updateMessage(args.id, args.message);
352 ashish 1838
        } catch (HelperServiceException se) {
1839
          result.se = se;
1840
        }
3430 rajveer 1841
        return result;
352 ashish 1842
      }
1843
    }
1844
 
3430 rajveer 1845
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
1846
      public getMessage() {
1847
        super("getMessage");
1848
      }
1849
 
1850
      protected getMessage_args getEmptyArgsInstance() {
1851
        return new getMessage_args();
1852
      }
1853
 
1854
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 1855
        getMessage_result result = new getMessage_result();
1856
        try {
3430 rajveer 1857
          result.success = iface.getMessage(args.id);
352 ashish 1858
        } catch (HelperServiceException se) {
1859
          result.se = se;
1860
        }
3430 rajveer 1861
        return result;
352 ashish 1862
      }
1863
    }
1864
 
3430 rajveer 1865
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
1866
      public getSubstitutedMessage() {
1867
        super("getSubstitutedMessage");
1868
      }
1869
 
1870
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
1871
        return new getSubstitutedMessage_args();
1872
      }
1873
 
1874
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 1875
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
1876
        try {
3430 rajveer 1877
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 1878
        } catch (HelperServiceException se) {
1879
          result.se = se;
1880
        }
3430 rajveer 1881
        return result;
352 ashish 1882
      }
1883
    }
1884
 
3430 rajveer 1885
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
1886
      public addUser() {
1887
        super("addUser");
1888
      }
1889
 
1890
      protected addUser_args getEmptyArgsInstance() {
1891
        return new addUser_args();
1892
      }
1893
 
1894
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 1895
        addUser_result result = new addUser_result();
1896
        try {
3430 rajveer 1897
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 1898
          result.setSuccessIsSet(true);
1899
        } catch (HelperServiceException se) {
1900
          result.se = se;
1901
        }
3430 rajveer 1902
        return result;
495 rajveer 1903
      }
1904
    }
1905
 
3430 rajveer 1906
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
1907
      public deleteUser() {
1908
        super("deleteUser");
1909
      }
1910
 
1911
      protected deleteUser_args getEmptyArgsInstance() {
1912
        return new deleteUser_args();
1913
      }
1914
 
1915
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 1916
        deleteUser_result result = new deleteUser_result();
1917
        try {
3430 rajveer 1918
          result.success = iface.deleteUser(args.username);
495 rajveer 1919
          result.setSuccessIsSet(true);
1920
        } catch (HelperServiceException se) {
1921
          result.se = se;
1922
        }
3430 rajveer 1923
        return result;
495 rajveer 1924
      }
1925
    }
1926
 
3430 rajveer 1927
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
1928
      public authenticateDashboardUser() {
1929
        super("authenticateDashboardUser");
1930
      }
1931
 
1932
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
1933
        return new authenticateDashboardUser_args();
1934
      }
1935
 
1936
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 1937
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 1938
        try {
3430 rajveer 1939
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 1940
        } catch (HelperServiceException se) {
1941
          result.se = se;
1942
        }
3430 rajveer 1943
        return result;
495 rajveer 1944
      }
1945
    }
1946
 
3430 rajveer 1947
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
1948
      public updatePassword() {
1949
        super("updatePassword");
1950
      }
1951
 
1952
      protected updatePassword_args getEmptyArgsInstance() {
1953
        return new updatePassword_args();
1954
      }
1955
 
1956
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 1957
        updatePassword_result result = new updatePassword_result();
1958
        try {
3430 rajveer 1959
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 1960
          result.setSuccessIsSet(true);
1961
        } catch (HelperServiceException se) {
1962
          result.se = se;
1963
        }
3430 rajveer 1964
        return result;
495 rajveer 1965
      }
1966
    }
1967
 
3430 rajveer 1968
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
1969
      public authenticateLogisticsUser() {
1970
        super("authenticateLogisticsUser");
1971
      }
1972
 
1973
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
1974
        return new authenticateLogisticsUser_args();
1975
      }
1976
 
1977
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 1978
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
1979
        try {
3430 rajveer 1980
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 1981
        } catch (HelperServiceException hse) {
1982
          result.hse = hse;
1983
        }
3430 rajveer 1984
        return result;
750 chandransh 1985
      }
1986
    }
1987
 
3430 rajveer 1988
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
1989
      public authenticateStatisticsUser() {
1990
        super("authenticateStatisticsUser");
1991
      }
1992
 
1993
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
1994
        return new authenticateStatisticsUser_args();
1995
      }
1996
 
1997
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 1998
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
1999
        try {
3430 rajveer 2000
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2001
        } catch (HelperServiceException hse) {
2002
          result.hse = hse;
2003
        }
3430 rajveer 2004
        return result;
1611 ankur.sing 2005
      }
2006
    }
2007
 
3430 rajveer 2008
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2009
      public authenticateReportUser() {
2010
        super("authenticateReportUser");
2011
      }
2012
 
2013
      protected authenticateReportUser_args getEmptyArgsInstance() {
2014
        return new authenticateReportUser_args();
2015
      }
2016
 
2017
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2018
        authenticateReportUser_result result = new authenticateReportUser_result();
2019
        try {
3430 rajveer 2020
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2021
        } catch (HelperServiceException hse) {
2022
          result.hse = hse;
2023
        }
3430 rajveer 2024
        return result;
1891 ankur.sing 2025
      }
2026
    }
2027
 
3430 rajveer 2028
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2029
      public getReports() {
2030
        super("getReports");
2031
      }
2032
 
2033
      protected getReports_args getEmptyArgsInstance() {
2034
        return new getReports_args();
2035
      }
2036
 
2037
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2038
        getReports_result result = new getReports_result();
3430 rajveer 2039
        result.success = iface.getReports(args.role);
2040
        return result;
1891 ankur.sing 2041
      }
2042
    }
2043
 
3430 rajveer 2044
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2045
      public authenticateCatalogUser() {
2046
        super("authenticateCatalogUser");
2047
      }
2048
 
2049
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2050
        return new authenticateCatalogUser_args();
2051
      }
2052
 
2053
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2054
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2055
        try {
3430 rajveer 2056
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 2057
        } catch (HelperServiceException hse) {
2058
          result.hse = hse;
2059
        }
3430 rajveer 2060
        return result;
2024 ankur.sing 2061
      }
2062
    }
2063
 
4544 varun.gupt 2064
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2065
      public shareEntities() {
2066
        super("shareEntities");
2067
      }
2068
 
2069
      protected shareEntities_args getEmptyArgsInstance() {
2070
        return new shareEntities_args();
2071
      }
2072
 
2073
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2074
        shareEntities_result result = new shareEntities_result();
2075
        try {
2076
          iface.shareEntities(args.entityIds, args.email);
2077
        } catch (HelperServiceException hse) {
2078
          result.hse = hse;
2079
        }
2080
        return result;
2081
      }
2082
    }
2083
 
4693 mandeep.dh 2084
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2085
      public getAgents() {
2086
        super("getAgents");
2087
      }
2088
 
2089
      protected getAgents_args getEmptyArgsInstance() {
2090
        return new getAgents_args();
2091
      }
2092
 
2093
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2094
        getAgents_result result = new getAgents_result();
2095
        result.success = iface.getAgents();
2096
        return result;
2097
      }
2098
    }
2099
 
2100
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2101
      public validateLogIn() {
2102
        super("validateLogIn");
2103
      }
2104
 
2105
      protected validateLogIn_args getEmptyArgsInstance() {
2106
        return new validateLogIn_args();
2107
      }
2108
 
2109
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2110
        validateLogIn_result result = new validateLogIn_result();
2111
        result.success = iface.validateLogIn(args.emailId, args.password);
2112
        result.setSuccessIsSet(true);
2113
        return result;
2114
      }
2115
    }
2116
 
2117
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2118
      public updatePasswordForAgent() {
2119
        super("updatePasswordForAgent");
2120
      }
2121
 
2122
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2123
        return new updatePasswordForAgent_args();
2124
      }
2125
 
2126
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2127
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2128
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2129
        return result;
2130
      }
2131
    }
2132
 
2133
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2134
      public getRoleNamesForAgent() {
2135
        super("getRoleNamesForAgent");
2136
      }
2137
 
2138
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2139
        return new getRoleNamesForAgent_args();
2140
      }
2141
 
2142
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2143
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2144
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2145
        return result;
2146
      }
2147
    }
2148
 
2149
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2150
      public getPermissionsForRoleName() {
2151
        super("getPermissionsForRoleName");
2152
      }
2153
 
2154
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2155
        return new getPermissionsForRoleName_args();
2156
      }
2157
 
2158
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2159
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2160
        result.success = iface.getPermissionsForRoleName(args.roleName);
2161
        return result;
2162
      }
2163
    }
2164
 
352 ashish 2165
  }
2166
 
3430 rajveer 2167
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2169
 
3430 rajveer 2170
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.STRING, (short)1);
2171
    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);
2172
    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);
2173
    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);
2174
    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);
2175
    private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)6);
1395 varun.gupt 2176
 
3430 rajveer 2177
    private String emailTo; // required
2178
    private String emailFrom; // required
2179
    private String subject; // required
2180
    private String body; // required
2181
    private String source; // required
2182
    private String emailType; // required
1395 varun.gupt 2183
 
2184
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2185
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2186
      EMAIL_TO((short)1, "emailTo"),
2187
      EMAIL_FROM((short)2, "emailFrom"),
2188
      SUBJECT((short)3, "subject"),
2189
      BODY((short)4, "body"),
2190
      SOURCE((short)5, "source"),
2191
      EMAIL_TYPE((short)6, "emailType");
2192
 
2193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2194
 
2195
      static {
2196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2197
          byName.put(field.getFieldName(), field);
2198
        }
2199
      }
2200
 
2201
      /**
2202
       * Find the _Fields constant that matches fieldId, or null if its not found.
2203
       */
2204
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2205
        switch(fieldId) {
2206
          case 1: // EMAIL_TO
2207
            return EMAIL_TO;
2208
          case 2: // EMAIL_FROM
2209
            return EMAIL_FROM;
2210
          case 3: // SUBJECT
2211
            return SUBJECT;
2212
          case 4: // BODY
2213
            return BODY;
2214
          case 5: // SOURCE
2215
            return SOURCE;
2216
          case 6: // EMAIL_TYPE
2217
            return EMAIL_TYPE;
2218
          default:
2219
            return null;
2220
        }
1395 varun.gupt 2221
      }
2222
 
2223
      /**
2224
       * Find the _Fields constant that matches fieldId, throwing an exception
2225
       * if it is not found.
2226
       */
2227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2228
        _Fields fields = findByThriftId(fieldId);
2229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2230
        return fields;
2231
      }
2232
 
2233
      /**
2234
       * Find the _Fields constant that matches name, or null if its not found.
2235
       */
2236
      public static _Fields findByName(String name) {
2237
        return byName.get(name);
2238
      }
2239
 
2240
      private final short _thriftId;
2241
      private final String _fieldName;
2242
 
2243
      _Fields(short thriftId, String fieldName) {
2244
        _thriftId = thriftId;
2245
        _fieldName = fieldName;
2246
      }
2247
 
2248
      public short getThriftFieldId() {
2249
        return _thriftId;
2250
      }
2251
 
2252
      public String getFieldName() {
2253
        return _fieldName;
2254
      }
2255
    }
2256
 
2257
    // isset id assignments
2258
 
3430 rajveer 2259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2260
    static {
3430 rajveer 2261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2262
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2264
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2266
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2267
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2268
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2269
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2270
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2272
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2276
    }
2277
 
2278
    public saveUserEmailForSending_args() {
2279
    }
2280
 
2281
    public saveUserEmailForSending_args(
2282
      String emailTo,
2283
      String emailFrom,
2284
      String subject,
2285
      String body,
2286
      String source,
2287
      String emailType)
2288
    {
2289
      this();
2290
      this.emailTo = emailTo;
2291
      this.emailFrom = emailFrom;
2292
      this.subject = subject;
2293
      this.body = body;
2294
      this.source = source;
2295
      this.emailType = emailType;
2296
    }
2297
 
2298
    /**
2299
     * Performs a deep copy on <i>other</i>.
2300
     */
2301
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2302
      if (other.isSetEmailTo()) {
2303
        this.emailTo = other.emailTo;
2304
      }
2305
      if (other.isSetEmailFrom()) {
2306
        this.emailFrom = other.emailFrom;
2307
      }
2308
      if (other.isSetSubject()) {
2309
        this.subject = other.subject;
2310
      }
2311
      if (other.isSetBody()) {
2312
        this.body = other.body;
2313
      }
2314
      if (other.isSetSource()) {
2315
        this.source = other.source;
2316
      }
2317
      if (other.isSetEmailType()) {
2318
        this.emailType = other.emailType;
2319
      }
2320
    }
2321
 
2322
    public saveUserEmailForSending_args deepCopy() {
2323
      return new saveUserEmailForSending_args(this);
2324
    }
2325
 
3430 rajveer 2326
    @Override
2327
    public void clear() {
2328
      this.emailTo = null;
2329
      this.emailFrom = null;
2330
      this.subject = null;
2331
      this.body = null;
2332
      this.source = null;
2333
      this.emailType = null;
1395 varun.gupt 2334
    }
2335
 
2336
    public String getEmailTo() {
2337
      return this.emailTo;
2338
    }
2339
 
3430 rajveer 2340
    public void setEmailTo(String emailTo) {
1395 varun.gupt 2341
      this.emailTo = emailTo;
2342
    }
2343
 
2344
    public void unsetEmailTo() {
2345
      this.emailTo = null;
2346
    }
2347
 
3430 rajveer 2348
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2349
    public boolean isSetEmailTo() {
2350
      return this.emailTo != null;
2351
    }
2352
 
2353
    public void setEmailToIsSet(boolean value) {
2354
      if (!value) {
2355
        this.emailTo = null;
2356
      }
2357
    }
2358
 
2359
    public String getEmailFrom() {
2360
      return this.emailFrom;
2361
    }
2362
 
3430 rajveer 2363
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2364
      this.emailFrom = emailFrom;
2365
    }
2366
 
2367
    public void unsetEmailFrom() {
2368
      this.emailFrom = null;
2369
    }
2370
 
3430 rajveer 2371
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2372
    public boolean isSetEmailFrom() {
2373
      return this.emailFrom != null;
2374
    }
2375
 
2376
    public void setEmailFromIsSet(boolean value) {
2377
      if (!value) {
2378
        this.emailFrom = null;
2379
      }
2380
    }
2381
 
2382
    public String getSubject() {
2383
      return this.subject;
2384
    }
2385
 
3430 rajveer 2386
    public void setSubject(String subject) {
1395 varun.gupt 2387
      this.subject = subject;
2388
    }
2389
 
2390
    public void unsetSubject() {
2391
      this.subject = null;
2392
    }
2393
 
3430 rajveer 2394
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2395
    public boolean isSetSubject() {
2396
      return this.subject != null;
2397
    }
2398
 
2399
    public void setSubjectIsSet(boolean value) {
2400
      if (!value) {
2401
        this.subject = null;
2402
      }
2403
    }
2404
 
2405
    public String getBody() {
2406
      return this.body;
2407
    }
2408
 
3430 rajveer 2409
    public void setBody(String body) {
1395 varun.gupt 2410
      this.body = body;
2411
    }
2412
 
2413
    public void unsetBody() {
2414
      this.body = null;
2415
    }
2416
 
3430 rajveer 2417
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2418
    public boolean isSetBody() {
2419
      return this.body != null;
2420
    }
2421
 
2422
    public void setBodyIsSet(boolean value) {
2423
      if (!value) {
2424
        this.body = null;
2425
      }
2426
    }
2427
 
2428
    public String getSource() {
2429
      return this.source;
2430
    }
2431
 
3430 rajveer 2432
    public void setSource(String source) {
1395 varun.gupt 2433
      this.source = source;
2434
    }
2435
 
2436
    public void unsetSource() {
2437
      this.source = null;
2438
    }
2439
 
3430 rajveer 2440
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2441
    public boolean isSetSource() {
2442
      return this.source != null;
2443
    }
2444
 
2445
    public void setSourceIsSet(boolean value) {
2446
      if (!value) {
2447
        this.source = null;
2448
      }
2449
    }
2450
 
2451
    public String getEmailType() {
2452
      return this.emailType;
2453
    }
2454
 
3430 rajveer 2455
    public void setEmailType(String emailType) {
1395 varun.gupt 2456
      this.emailType = emailType;
2457
    }
2458
 
2459
    public void unsetEmailType() {
2460
      this.emailType = null;
2461
    }
2462
 
3430 rajveer 2463
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2464
    public boolean isSetEmailType() {
2465
      return this.emailType != null;
2466
    }
2467
 
2468
    public void setEmailTypeIsSet(boolean value) {
2469
      if (!value) {
2470
        this.emailType = null;
2471
      }
2472
    }
2473
 
2474
    public void setFieldValue(_Fields field, Object value) {
2475
      switch (field) {
2476
      case EMAIL_TO:
2477
        if (value == null) {
2478
          unsetEmailTo();
2479
        } else {
2480
          setEmailTo((String)value);
2481
        }
2482
        break;
2483
 
2484
      case EMAIL_FROM:
2485
        if (value == null) {
2486
          unsetEmailFrom();
2487
        } else {
2488
          setEmailFrom((String)value);
2489
        }
2490
        break;
2491
 
2492
      case SUBJECT:
2493
        if (value == null) {
2494
          unsetSubject();
2495
        } else {
2496
          setSubject((String)value);
2497
        }
2498
        break;
2499
 
2500
      case BODY:
2501
        if (value == null) {
2502
          unsetBody();
2503
        } else {
2504
          setBody((String)value);
2505
        }
2506
        break;
2507
 
2508
      case SOURCE:
2509
        if (value == null) {
2510
          unsetSource();
2511
        } else {
2512
          setSource((String)value);
2513
        }
2514
        break;
2515
 
2516
      case EMAIL_TYPE:
2517
        if (value == null) {
2518
          unsetEmailType();
2519
        } else {
2520
          setEmailType((String)value);
2521
        }
2522
        break;
2523
 
2524
      }
2525
    }
2526
 
2527
    public Object getFieldValue(_Fields field) {
2528
      switch (field) {
2529
      case EMAIL_TO:
2530
        return getEmailTo();
2531
 
2532
      case EMAIL_FROM:
2533
        return getEmailFrom();
2534
 
2535
      case SUBJECT:
2536
        return getSubject();
2537
 
2538
      case BODY:
2539
        return getBody();
2540
 
2541
      case SOURCE:
2542
        return getSource();
2543
 
2544
      case EMAIL_TYPE:
2545
        return getEmailType();
2546
 
2547
      }
2548
      throw new IllegalStateException();
2549
    }
2550
 
3430 rajveer 2551
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2552
    public boolean isSet(_Fields field) {
2553
      if (field == null) {
2554
        throw new IllegalArgumentException();
2555
      }
1395 varun.gupt 2556
 
2557
      switch (field) {
2558
      case EMAIL_TO:
2559
        return isSetEmailTo();
2560
      case EMAIL_FROM:
2561
        return isSetEmailFrom();
2562
      case SUBJECT:
2563
        return isSetSubject();
2564
      case BODY:
2565
        return isSetBody();
2566
      case SOURCE:
2567
        return isSetSource();
2568
      case EMAIL_TYPE:
2569
        return isSetEmailType();
2570
      }
2571
      throw new IllegalStateException();
2572
    }
2573
 
2574
    @Override
2575
    public boolean equals(Object that) {
2576
      if (that == null)
2577
        return false;
2578
      if (that instanceof saveUserEmailForSending_args)
2579
        return this.equals((saveUserEmailForSending_args)that);
2580
      return false;
2581
    }
2582
 
2583
    public boolean equals(saveUserEmailForSending_args that) {
2584
      if (that == null)
2585
        return false;
2586
 
2587
      boolean this_present_emailTo = true && this.isSetEmailTo();
2588
      boolean that_present_emailTo = true && that.isSetEmailTo();
2589
      if (this_present_emailTo || that_present_emailTo) {
2590
        if (!(this_present_emailTo && that_present_emailTo))
2591
          return false;
2592
        if (!this.emailTo.equals(that.emailTo))
2593
          return false;
2594
      }
2595
 
2596
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
2597
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
2598
      if (this_present_emailFrom || that_present_emailFrom) {
2599
        if (!(this_present_emailFrom && that_present_emailFrom))
2600
          return false;
2601
        if (!this.emailFrom.equals(that.emailFrom))
2602
          return false;
2603
      }
2604
 
2605
      boolean this_present_subject = true && this.isSetSubject();
2606
      boolean that_present_subject = true && that.isSetSubject();
2607
      if (this_present_subject || that_present_subject) {
2608
        if (!(this_present_subject && that_present_subject))
2609
          return false;
2610
        if (!this.subject.equals(that.subject))
2611
          return false;
2612
      }
2613
 
2614
      boolean this_present_body = true && this.isSetBody();
2615
      boolean that_present_body = true && that.isSetBody();
2616
      if (this_present_body || that_present_body) {
2617
        if (!(this_present_body && that_present_body))
2618
          return false;
2619
        if (!this.body.equals(that.body))
2620
          return false;
2621
      }
2622
 
2623
      boolean this_present_source = true && this.isSetSource();
2624
      boolean that_present_source = true && that.isSetSource();
2625
      if (this_present_source || that_present_source) {
2626
        if (!(this_present_source && that_present_source))
2627
          return false;
2628
        if (!this.source.equals(that.source))
2629
          return false;
2630
      }
2631
 
2632
      boolean this_present_emailType = true && this.isSetEmailType();
2633
      boolean that_present_emailType = true && that.isSetEmailType();
2634
      if (this_present_emailType || that_present_emailType) {
2635
        if (!(this_present_emailType && that_present_emailType))
2636
          return false;
2637
        if (!this.emailType.equals(that.emailType))
2638
          return false;
2639
      }
2640
 
2641
      return true;
2642
    }
2643
 
2644
    @Override
2645
    public int hashCode() {
2646
      return 0;
2647
    }
2648
 
2649
    public int compareTo(saveUserEmailForSending_args other) {
2650
      if (!getClass().equals(other.getClass())) {
2651
        return getClass().getName().compareTo(other.getClass().getName());
2652
      }
2653
 
2654
      int lastComparison = 0;
2655
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
2656
 
3430 rajveer 2657
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 2658
      if (lastComparison != 0) {
2659
        return lastComparison;
2660
      }
3430 rajveer 2661
      if (isSetEmailTo()) {
2662
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
2663
        if (lastComparison != 0) {
2664
          return lastComparison;
2665
        }
1395 varun.gupt 2666
      }
3430 rajveer 2667
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 2668
      if (lastComparison != 0) {
2669
        return lastComparison;
2670
      }
3430 rajveer 2671
      if (isSetEmailFrom()) {
2672
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
2673
        if (lastComparison != 0) {
2674
          return lastComparison;
2675
        }
1395 varun.gupt 2676
      }
3430 rajveer 2677
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 2678
      if (lastComparison != 0) {
2679
        return lastComparison;
2680
      }
3430 rajveer 2681
      if (isSetSubject()) {
2682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
2683
        if (lastComparison != 0) {
2684
          return lastComparison;
2685
        }
1395 varun.gupt 2686
      }
3430 rajveer 2687
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 2688
      if (lastComparison != 0) {
2689
        return lastComparison;
2690
      }
3430 rajveer 2691
      if (isSetBody()) {
2692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
2693
        if (lastComparison != 0) {
2694
          return lastComparison;
2695
        }
1395 varun.gupt 2696
      }
3430 rajveer 2697
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 2698
      if (lastComparison != 0) {
2699
        return lastComparison;
2700
      }
3430 rajveer 2701
      if (isSetSource()) {
2702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
2703
        if (lastComparison != 0) {
2704
          return lastComparison;
2705
        }
1395 varun.gupt 2706
      }
3430 rajveer 2707
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 2708
      if (lastComparison != 0) {
2709
        return lastComparison;
2710
      }
3430 rajveer 2711
      if (isSetEmailType()) {
2712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
2713
        if (lastComparison != 0) {
2714
          return lastComparison;
2715
        }
1395 varun.gupt 2716
      }
2717
      return 0;
2718
    }
2719
 
3430 rajveer 2720
    public _Fields fieldForId(int fieldId) {
2721
      return _Fields.findByThriftId(fieldId);
2722
    }
2723
 
2724
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2725
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2726
      iprot.readStructBegin();
2727
      while (true)
2728
      {
2729
        field = iprot.readFieldBegin();
3430 rajveer 2730
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2731
          break;
2732
        }
3430 rajveer 2733
        switch (field.id) {
2734
          case 1: // EMAIL_TO
2735
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2736
              this.emailTo = iprot.readString();
2737
            } else { 
2738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2739
            }
2740
            break;
2741
          case 2: // EMAIL_FROM
2742
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2743
              this.emailFrom = iprot.readString();
2744
            } else { 
2745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2746
            }
2747
            break;
2748
          case 3: // SUBJECT
2749
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2750
              this.subject = iprot.readString();
2751
            } else { 
2752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2753
            }
2754
            break;
2755
          case 4: // BODY
2756
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2757
              this.body = iprot.readString();
2758
            } else { 
2759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2760
            }
2761
            break;
2762
          case 5: // SOURCE
2763
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2764
              this.source = iprot.readString();
2765
            } else { 
2766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2767
            }
2768
            break;
2769
          case 6: // EMAIL_TYPE
2770
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2771
              this.emailType = iprot.readString();
2772
            } else { 
2773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2774
            }
2775
            break;
2776
          default:
2777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 2778
        }
3430 rajveer 2779
        iprot.readFieldEnd();
1395 varun.gupt 2780
      }
2781
      iprot.readStructEnd();
2782
      validate();
2783
    }
2784
 
3430 rajveer 2785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 2786
      validate();
2787
 
2788
      oprot.writeStructBegin(STRUCT_DESC);
2789
      if (this.emailTo != null) {
2790
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
2791
        oprot.writeString(this.emailTo);
2792
        oprot.writeFieldEnd();
2793
      }
2794
      if (this.emailFrom != null) {
2795
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
2796
        oprot.writeString(this.emailFrom);
2797
        oprot.writeFieldEnd();
2798
      }
2799
      if (this.subject != null) {
2800
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
2801
        oprot.writeString(this.subject);
2802
        oprot.writeFieldEnd();
2803
      }
2804
      if (this.body != null) {
2805
        oprot.writeFieldBegin(BODY_FIELD_DESC);
2806
        oprot.writeString(this.body);
2807
        oprot.writeFieldEnd();
2808
      }
2809
      if (this.source != null) {
2810
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
2811
        oprot.writeString(this.source);
2812
        oprot.writeFieldEnd();
2813
      }
2814
      if (this.emailType != null) {
2815
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
2816
        oprot.writeString(this.emailType);
2817
        oprot.writeFieldEnd();
2818
      }
2819
      oprot.writeFieldStop();
2820
      oprot.writeStructEnd();
2821
    }
2822
 
2823
    @Override
2824
    public String toString() {
2825
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
2826
      boolean first = true;
2827
 
2828
      sb.append("emailTo:");
2829
      if (this.emailTo == null) {
2830
        sb.append("null");
2831
      } else {
2832
        sb.append(this.emailTo);
2833
      }
2834
      first = false;
2835
      if (!first) sb.append(", ");
2836
      sb.append("emailFrom:");
2837
      if (this.emailFrom == null) {
2838
        sb.append("null");
2839
      } else {
2840
        sb.append(this.emailFrom);
2841
      }
2842
      first = false;
2843
      if (!first) sb.append(", ");
2844
      sb.append("subject:");
2845
      if (this.subject == null) {
2846
        sb.append("null");
2847
      } else {
2848
        sb.append(this.subject);
2849
      }
2850
      first = false;
2851
      if (!first) sb.append(", ");
2852
      sb.append("body:");
2853
      if (this.body == null) {
2854
        sb.append("null");
2855
      } else {
2856
        sb.append(this.body);
2857
      }
2858
      first = false;
2859
      if (!first) sb.append(", ");
2860
      sb.append("source:");
2861
      if (this.source == null) {
2862
        sb.append("null");
2863
      } else {
2864
        sb.append(this.source);
2865
      }
2866
      first = false;
2867
      if (!first) sb.append(", ");
2868
      sb.append("emailType:");
2869
      if (this.emailType == null) {
2870
        sb.append("null");
2871
      } else {
2872
        sb.append(this.emailType);
2873
      }
2874
      first = false;
2875
      sb.append(")");
2876
      return sb.toString();
2877
    }
2878
 
3430 rajveer 2879
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 2880
      // check for required fields
2881
    }
2882
 
3430 rajveer 2883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2884
      try {
2885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2886
      } catch (org.apache.thrift.TException te) {
2887
        throw new java.io.IOException(te);
2888
      }
2889
    }
2890
 
2891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2892
      try {
2893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2894
      } catch (org.apache.thrift.TException te) {
2895
        throw new java.io.IOException(te);
2896
      }
2897
    }
2898
 
1395 varun.gupt 2899
  }
2900
 
3430 rajveer 2901
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
2902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 2903
 
3430 rajveer 2904
    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);
2905
    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 2906
 
3430 rajveer 2907
    private long success; // required
2908
    private HelperServiceException se; // required
1395 varun.gupt 2909
 
2910
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2911
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 2912
      SUCCESS((short)0, "success"),
1395 varun.gupt 2913
      SE((short)1, "se");
2914
 
2915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2916
 
2917
      static {
2918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2919
          byName.put(field.getFieldName(), field);
2920
        }
2921
      }
2922
 
2923
      /**
2924
       * Find the _Fields constant that matches fieldId, or null if its not found.
2925
       */
2926
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2927
        switch(fieldId) {
2928
          case 0: // SUCCESS
2929
            return SUCCESS;
2930
          case 1: // SE
2931
            return SE;
2932
          default:
2933
            return null;
2934
        }
1395 varun.gupt 2935
      }
2936
 
2937
      /**
2938
       * Find the _Fields constant that matches fieldId, throwing an exception
2939
       * if it is not found.
2940
       */
2941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2942
        _Fields fields = findByThriftId(fieldId);
2943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2944
        return fields;
2945
      }
2946
 
2947
      /**
2948
       * Find the _Fields constant that matches name, or null if its not found.
2949
       */
2950
      public static _Fields findByName(String name) {
2951
        return byName.get(name);
2952
      }
2953
 
2954
      private final short _thriftId;
2955
      private final String _fieldName;
2956
 
2957
      _Fields(short thriftId, String fieldName) {
2958
        _thriftId = thriftId;
2959
        _fieldName = fieldName;
2960
      }
2961
 
2962
      public short getThriftFieldId() {
2963
        return _thriftId;
2964
      }
2965
 
2966
      public String getFieldName() {
2967
        return _fieldName;
2968
      }
2969
    }
2970
 
2971
    // isset id assignments
3206 mandeep.dh 2972
    private static final int __SUCCESS_ISSET_ID = 0;
2973
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 2974
 
3430 rajveer 2975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2976
    static {
3430 rajveer 2977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2978
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2979
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2980
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2981
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2982
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2983
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 2984
    }
2985
 
2986
    public saveUserEmailForSending_result() {
2987
    }
2988
 
2989
    public saveUserEmailForSending_result(
3206 mandeep.dh 2990
      long success,
1395 varun.gupt 2991
      HelperServiceException se)
2992
    {
2993
      this();
3206 mandeep.dh 2994
      this.success = success;
2995
      setSuccessIsSet(true);
1395 varun.gupt 2996
      this.se = se;
2997
    }
2998
 
2999
    /**
3000
     * Performs a deep copy on <i>other</i>.
3001
     */
3002
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3003
      __isset_bit_vector.clear();
3004
      __isset_bit_vector.or(other.__isset_bit_vector);
3005
      this.success = other.success;
1395 varun.gupt 3006
      if (other.isSetSe()) {
3007
        this.se = new HelperServiceException(other.se);
3008
      }
3009
    }
3010
 
3011
    public saveUserEmailForSending_result deepCopy() {
3012
      return new saveUserEmailForSending_result(this);
3013
    }
3014
 
3430 rajveer 3015
    @Override
3016
    public void clear() {
3017
      setSuccessIsSet(false);
3018
      this.success = 0;
3019
      this.se = null;
1395 varun.gupt 3020
    }
3021
 
3206 mandeep.dh 3022
    public long getSuccess() {
3023
      return this.success;
3024
    }
3025
 
3430 rajveer 3026
    public void setSuccess(long success) {
3206 mandeep.dh 3027
      this.success = success;
3028
      setSuccessIsSet(true);
3029
    }
3030
 
3031
    public void unsetSuccess() {
3032
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3033
    }
3034
 
3430 rajveer 3035
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3036
    public boolean isSetSuccess() {
3037
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3038
    }
3039
 
3040
    public void setSuccessIsSet(boolean value) {
3041
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3042
    }
3043
 
1395 varun.gupt 3044
    public HelperServiceException getSe() {
3045
      return this.se;
3046
    }
3047
 
3430 rajveer 3048
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3049
      this.se = se;
3050
    }
3051
 
3052
    public void unsetSe() {
3053
      this.se = null;
3054
    }
3055
 
3430 rajveer 3056
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3057
    public boolean isSetSe() {
3058
      return this.se != null;
3059
    }
3060
 
3061
    public void setSeIsSet(boolean value) {
3062
      if (!value) {
3063
        this.se = null;
3064
      }
3065
    }
3066
 
3067
    public void setFieldValue(_Fields field, Object value) {
3068
      switch (field) {
3206 mandeep.dh 3069
      case SUCCESS:
3070
        if (value == null) {
3071
          unsetSuccess();
3072
        } else {
3073
          setSuccess((Long)value);
3074
        }
3075
        break;
3076
 
1395 varun.gupt 3077
      case SE:
3078
        if (value == null) {
3079
          unsetSe();
3080
        } else {
3081
          setSe((HelperServiceException)value);
3082
        }
3083
        break;
3084
 
3085
      }
3086
    }
3087
 
3088
    public Object getFieldValue(_Fields field) {
3089
      switch (field) {
3206 mandeep.dh 3090
      case SUCCESS:
3430 rajveer 3091
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3092
 
1395 varun.gupt 3093
      case SE:
3094
        return getSe();
3095
 
3096
      }
3097
      throw new IllegalStateException();
3098
    }
3099
 
3430 rajveer 3100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3101
    public boolean isSet(_Fields field) {
3102
      if (field == null) {
3103
        throw new IllegalArgumentException();
3104
      }
1395 varun.gupt 3105
 
3106
      switch (field) {
3206 mandeep.dh 3107
      case SUCCESS:
3108
        return isSetSuccess();
1395 varun.gupt 3109
      case SE:
3110
        return isSetSe();
3111
      }
3112
      throw new IllegalStateException();
3113
    }
3114
 
3115
    @Override
3116
    public boolean equals(Object that) {
3117
      if (that == null)
3118
        return false;
3119
      if (that instanceof saveUserEmailForSending_result)
3120
        return this.equals((saveUserEmailForSending_result)that);
3121
      return false;
3122
    }
3123
 
3124
    public boolean equals(saveUserEmailForSending_result that) {
3125
      if (that == null)
3126
        return false;
3127
 
3206 mandeep.dh 3128
      boolean this_present_success = true;
3129
      boolean that_present_success = true;
3130
      if (this_present_success || that_present_success) {
3131
        if (!(this_present_success && that_present_success))
3132
          return false;
3133
        if (this.success != that.success)
3134
          return false;
3135
      }
3136
 
1395 varun.gupt 3137
      boolean this_present_se = true && this.isSetSe();
3138
      boolean that_present_se = true && that.isSetSe();
3139
      if (this_present_se || that_present_se) {
3140
        if (!(this_present_se && that_present_se))
3141
          return false;
3142
        if (!this.se.equals(that.se))
3143
          return false;
3144
      }
3145
 
3146
      return true;
3147
    }
3148
 
3149
    @Override
3150
    public int hashCode() {
3151
      return 0;
3152
    }
3153
 
3154
    public int compareTo(saveUserEmailForSending_result other) {
3155
      if (!getClass().equals(other.getClass())) {
3156
        return getClass().getName().compareTo(other.getClass().getName());
3157
      }
3158
 
3159
      int lastComparison = 0;
3160
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3161
 
3430 rajveer 3162
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3163
      if (lastComparison != 0) {
3164
        return lastComparison;
3165
      }
3430 rajveer 3166
      if (isSetSuccess()) {
3167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3168
        if (lastComparison != 0) {
3169
          return lastComparison;
3170
        }
3206 mandeep.dh 3171
      }
3430 rajveer 3172
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3173
      if (lastComparison != 0) {
3174
        return lastComparison;
3175
      }
3430 rajveer 3176
      if (isSetSe()) {
3177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3178
        if (lastComparison != 0) {
3179
          return lastComparison;
3180
        }
1395 varun.gupt 3181
      }
3182
      return 0;
3183
    }
3184
 
3430 rajveer 3185
    public _Fields fieldForId(int fieldId) {
3186
      return _Fields.findByThriftId(fieldId);
3187
    }
3188
 
3189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3190
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3191
      iprot.readStructBegin();
3192
      while (true)
3193
      {
3194
        field = iprot.readFieldBegin();
3430 rajveer 3195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3196
          break;
3197
        }
3430 rajveer 3198
        switch (field.id) {
3199
          case 0: // SUCCESS
3200
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3201
              this.success = iprot.readI64();
3202
              setSuccessIsSet(true);
3203
            } else { 
3204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3205
            }
3206
            break;
3207
          case 1: // SE
3208
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3209
              this.se = new HelperServiceException();
3210
              this.se.read(iprot);
3211
            } else { 
3212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3213
            }
3214
            break;
3215
          default:
3216
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3217
        }
3430 rajveer 3218
        iprot.readFieldEnd();
1395 varun.gupt 3219
      }
3220
      iprot.readStructEnd();
3221
      validate();
3222
    }
3223
 
3430 rajveer 3224
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3225
      oprot.writeStructBegin(STRUCT_DESC);
3226
 
3206 mandeep.dh 3227
      if (this.isSetSuccess()) {
3228
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3229
        oprot.writeI64(this.success);
3230
        oprot.writeFieldEnd();
3231
      } else if (this.isSetSe()) {
1395 varun.gupt 3232
        oprot.writeFieldBegin(SE_FIELD_DESC);
3233
        this.se.write(oprot);
3234
        oprot.writeFieldEnd();
3235
      }
3236
      oprot.writeFieldStop();
3237
      oprot.writeStructEnd();
3238
    }
3239
 
3240
    @Override
3241
    public String toString() {
3242
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3243
      boolean first = true;
3244
 
3206 mandeep.dh 3245
      sb.append("success:");
3246
      sb.append(this.success);
3247
      first = false;
3248
      if (!first) sb.append(", ");
1395 varun.gupt 3249
      sb.append("se:");
3250
      if (this.se == null) {
3251
        sb.append("null");
3252
      } else {
3253
        sb.append(this.se);
3254
      }
3255
      first = false;
3256
      sb.append(")");
3257
      return sb.toString();
3258
    }
3259
 
3430 rajveer 3260
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3261
      // check for required fields
3262
    }
3263
 
3430 rajveer 3264
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3265
      try {
3266
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3267
      } catch (org.apache.thrift.TException te) {
3268
        throw new java.io.IOException(te);
3269
      }
3270
    }
3271
 
3272
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3273
      try {
3274
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3275
      } catch (org.apache.thrift.TException te) {
3276
        throw new java.io.IOException(te);
3277
      }
3278
    }
3279
 
1395 varun.gupt 3280
  }
3281
 
3430 rajveer 3282
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
3283
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 3284
 
3285
 
3286
 
3287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 3289
;
1422 varun.gupt 3290
 
3291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3292
 
3293
      static {
3294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3295
          byName.put(field.getFieldName(), field);
3296
        }
3297
      }
3298
 
3299
      /**
3300
       * Find the _Fields constant that matches fieldId, or null if its not found.
3301
       */
3302
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3303
        switch(fieldId) {
3304
          default:
3305
            return null;
3306
        }
1422 varun.gupt 3307
      }
3308
 
3309
      /**
3310
       * Find the _Fields constant that matches fieldId, throwing an exception
3311
       * if it is not found.
3312
       */
3313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3314
        _Fields fields = findByThriftId(fieldId);
3315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3316
        return fields;
3317
      }
3318
 
3319
      /**
3320
       * Find the _Fields constant that matches name, or null if its not found.
3321
       */
3322
      public static _Fields findByName(String name) {
3323
        return byName.get(name);
3324
      }
3325
 
3326
      private final short _thriftId;
3327
      private final String _fieldName;
3328
 
3329
      _Fields(short thriftId, String fieldName) {
3330
        _thriftId = thriftId;
3331
        _fieldName = fieldName;
3332
      }
3333
 
3334
      public short getThriftFieldId() {
3335
        return _thriftId;
3336
      }
3337
 
3338
      public String getFieldName() {
3339
        return _fieldName;
3340
      }
3341
    }
3430 rajveer 3342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3343
    static {
3430 rajveer 3344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3345
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3346
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 3347
    }
3348
 
3349
    public getEmailsToBeSent_args() {
3350
    }
3351
 
3352
    /**
3353
     * Performs a deep copy on <i>other</i>.
3354
     */
3355
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
3356
    }
3357
 
3358
    public getEmailsToBeSent_args deepCopy() {
3359
      return new getEmailsToBeSent_args(this);
3360
    }
3361
 
3430 rajveer 3362
    @Override
3363
    public void clear() {
1422 varun.gupt 3364
    }
3365
 
3366
    public void setFieldValue(_Fields field, Object value) {
3367
      switch (field) {
3368
      }
3369
    }
3370
 
3371
    public Object getFieldValue(_Fields field) {
3372
      switch (field) {
3373
      }
3374
      throw new IllegalStateException();
3375
    }
3376
 
3430 rajveer 3377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3378
    public boolean isSet(_Fields field) {
3379
      if (field == null) {
3380
        throw new IllegalArgumentException();
3381
      }
1422 varun.gupt 3382
 
3383
      switch (field) {
3384
      }
3385
      throw new IllegalStateException();
3386
    }
3387
 
3388
    @Override
3389
    public boolean equals(Object that) {
3390
      if (that == null)
3391
        return false;
3392
      if (that instanceof getEmailsToBeSent_args)
3393
        return this.equals((getEmailsToBeSent_args)that);
3394
      return false;
3395
    }
3396
 
3397
    public boolean equals(getEmailsToBeSent_args that) {
3398
      if (that == null)
3399
        return false;
3400
 
3401
      return true;
3402
    }
3403
 
3404
    @Override
3405
    public int hashCode() {
3406
      return 0;
3407
    }
3408
 
3409
    public int compareTo(getEmailsToBeSent_args other) {
3410
      if (!getClass().equals(other.getClass())) {
3411
        return getClass().getName().compareTo(other.getClass().getName());
3412
      }
3413
 
3414
      int lastComparison = 0;
3415
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
3416
 
3417
      return 0;
3418
    }
3419
 
3430 rajveer 3420
    public _Fields fieldForId(int fieldId) {
3421
      return _Fields.findByThriftId(fieldId);
3422
    }
3423
 
3424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3425
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3426
      iprot.readStructBegin();
3427
      while (true)
3428
      {
3429
        field = iprot.readFieldBegin();
3430 rajveer 3430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3431
          break;
3432
        }
3430 rajveer 3433
        switch (field.id) {
3434
          default:
3435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3436
        }
3430 rajveer 3437
        iprot.readFieldEnd();
1422 varun.gupt 3438
      }
3439
      iprot.readStructEnd();
3440
      validate();
3441
    }
3442
 
3430 rajveer 3443
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3444
      validate();
3445
 
3446
      oprot.writeStructBegin(STRUCT_DESC);
3447
      oprot.writeFieldStop();
3448
      oprot.writeStructEnd();
3449
    }
3450
 
3451
    @Override
3452
    public String toString() {
3453
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
3454
      boolean first = true;
3455
 
3456
      sb.append(")");
3457
      return sb.toString();
3458
    }
3459
 
3430 rajveer 3460
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3461
      // check for required fields
3462
    }
3463
 
3430 rajveer 3464
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3465
      try {
3466
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3467
      } catch (org.apache.thrift.TException te) {
3468
        throw new java.io.IOException(te);
3469
      }
3470
    }
3471
 
3472
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3473
      try {
3474
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3475
      } catch (org.apache.thrift.TException te) {
3476
        throw new java.io.IOException(te);
3477
      }
3478
    }
3479
 
1422 varun.gupt 3480
  }
3481
 
3430 rajveer 3482
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
3483
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 3484
 
3430 rajveer 3485
    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);
3486
    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 3487
 
3430 rajveer 3488
    private List<UserEmail> success; // required
3489
    private HelperServiceException se; // required
1422 varun.gupt 3490
 
3491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3493
      SUCCESS((short)0, "success"),
3494
      SE((short)1, "se");
3495
 
3496
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3497
 
3498
      static {
3499
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3500
          byName.put(field.getFieldName(), field);
3501
        }
3502
      }
3503
 
3504
      /**
3505
       * Find the _Fields constant that matches fieldId, or null if its not found.
3506
       */
3507
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3508
        switch(fieldId) {
3509
          case 0: // SUCCESS
3510
            return SUCCESS;
3511
          case 1: // SE
3512
            return SE;
3513
          default:
3514
            return null;
3515
        }
1422 varun.gupt 3516
      }
3517
 
3518
      /**
3519
       * Find the _Fields constant that matches fieldId, throwing an exception
3520
       * if it is not found.
3521
       */
3522
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3523
        _Fields fields = findByThriftId(fieldId);
3524
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3525
        return fields;
3526
      }
3527
 
3528
      /**
3529
       * Find the _Fields constant that matches name, or null if its not found.
3530
       */
3531
      public static _Fields findByName(String name) {
3532
        return byName.get(name);
3533
      }
3534
 
3535
      private final short _thriftId;
3536
      private final String _fieldName;
3537
 
3538
      _Fields(short thriftId, String fieldName) {
3539
        _thriftId = thriftId;
3540
        _fieldName = fieldName;
3541
      }
3542
 
3543
      public short getThriftFieldId() {
3544
        return _thriftId;
3545
      }
3546
 
3547
      public String getFieldName() {
3548
        return _fieldName;
3549
      }
3550
    }
3551
 
3552
    // isset id assignments
3553
 
3430 rajveer 3554
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3555
    static {
3430 rajveer 3556
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3557
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3558
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3559
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
3560
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 3564
    }
3565
 
3566
    public getEmailsToBeSent_result() {
3567
    }
3568
 
3569
    public getEmailsToBeSent_result(
3570
      List<UserEmail> success,
3571
      HelperServiceException se)
3572
    {
3573
      this();
3574
      this.success = success;
3575
      this.se = se;
3576
    }
3577
 
3578
    /**
3579
     * Performs a deep copy on <i>other</i>.
3580
     */
3581
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
3582
      if (other.isSetSuccess()) {
3583
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
3584
        for (UserEmail other_element : other.success) {
3585
          __this__success.add(new UserEmail(other_element));
3586
        }
3587
        this.success = __this__success;
3588
      }
3589
      if (other.isSetSe()) {
3590
        this.se = new HelperServiceException(other.se);
3591
      }
3592
    }
3593
 
3594
    public getEmailsToBeSent_result deepCopy() {
3595
      return new getEmailsToBeSent_result(this);
3596
    }
3597
 
3430 rajveer 3598
    @Override
3599
    public void clear() {
3600
      this.success = null;
3601
      this.se = null;
1422 varun.gupt 3602
    }
3603
 
3604
    public int getSuccessSize() {
3605
      return (this.success == null) ? 0 : this.success.size();
3606
    }
3607
 
3608
    public java.util.Iterator<UserEmail> getSuccessIterator() {
3609
      return (this.success == null) ? null : this.success.iterator();
3610
    }
3611
 
3612
    public void addToSuccess(UserEmail elem) {
3613
      if (this.success == null) {
3614
        this.success = new ArrayList<UserEmail>();
3615
      }
3616
      this.success.add(elem);
3617
    }
3618
 
3619
    public List<UserEmail> getSuccess() {
3620
      return this.success;
3621
    }
3622
 
3430 rajveer 3623
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 3624
      this.success = success;
3625
    }
3626
 
3627
    public void unsetSuccess() {
3628
      this.success = null;
3629
    }
3630
 
3430 rajveer 3631
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3632
    public boolean isSetSuccess() {
3633
      return this.success != null;
3634
    }
3635
 
3636
    public void setSuccessIsSet(boolean value) {
3637
      if (!value) {
3638
        this.success = null;
3639
      }
3640
    }
3641
 
3642
    public HelperServiceException getSe() {
3643
      return this.se;
3644
    }
3645
 
3430 rajveer 3646
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3647
      this.se = se;
3648
    }
3649
 
3650
    public void unsetSe() {
3651
      this.se = null;
3652
    }
3653
 
3430 rajveer 3654
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3655
    public boolean isSetSe() {
3656
      return this.se != null;
3657
    }
3658
 
3659
    public void setSeIsSet(boolean value) {
3660
      if (!value) {
3661
        this.se = null;
3662
      }
3663
    }
3664
 
3665
    public void setFieldValue(_Fields field, Object value) {
3666
      switch (field) {
3667
      case SUCCESS:
3668
        if (value == null) {
3669
          unsetSuccess();
3670
        } else {
3671
          setSuccess((List<UserEmail>)value);
3672
        }
3673
        break;
3674
 
3675
      case SE:
3676
        if (value == null) {
3677
          unsetSe();
3678
        } else {
3679
          setSe((HelperServiceException)value);
3680
        }
3681
        break;
3682
 
3683
      }
3684
    }
3685
 
3686
    public Object getFieldValue(_Fields field) {
3687
      switch (field) {
3688
      case SUCCESS:
3689
        return getSuccess();
3690
 
3691
      case SE:
3692
        return getSe();
3693
 
3694
      }
3695
      throw new IllegalStateException();
3696
    }
3697
 
3430 rajveer 3698
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3699
    public boolean isSet(_Fields field) {
3700
      if (field == null) {
3701
        throw new IllegalArgumentException();
3702
      }
1422 varun.gupt 3703
 
3704
      switch (field) {
3705
      case SUCCESS:
3706
        return isSetSuccess();
3707
      case SE:
3708
        return isSetSe();
3709
      }
3710
      throw new IllegalStateException();
3711
    }
3712
 
3713
    @Override
3714
    public boolean equals(Object that) {
3715
      if (that == null)
3716
        return false;
3717
      if (that instanceof getEmailsToBeSent_result)
3718
        return this.equals((getEmailsToBeSent_result)that);
3719
      return false;
3720
    }
3721
 
3722
    public boolean equals(getEmailsToBeSent_result that) {
3723
      if (that == null)
3724
        return false;
3725
 
3726
      boolean this_present_success = true && this.isSetSuccess();
3727
      boolean that_present_success = true && that.isSetSuccess();
3728
      if (this_present_success || that_present_success) {
3729
        if (!(this_present_success && that_present_success))
3730
          return false;
3731
        if (!this.success.equals(that.success))
3732
          return false;
3733
      }
3734
 
3735
      boolean this_present_se = true && this.isSetSe();
3736
      boolean that_present_se = true && that.isSetSe();
3737
      if (this_present_se || that_present_se) {
3738
        if (!(this_present_se && that_present_se))
3739
          return false;
3740
        if (!this.se.equals(that.se))
3741
          return false;
3742
      }
3743
 
3744
      return true;
3745
    }
3746
 
3747
    @Override
3748
    public int hashCode() {
3749
      return 0;
3750
    }
3751
 
3752
    public int compareTo(getEmailsToBeSent_result other) {
3753
      if (!getClass().equals(other.getClass())) {
3754
        return getClass().getName().compareTo(other.getClass().getName());
3755
      }
3756
 
3757
      int lastComparison = 0;
3758
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
3759
 
3430 rajveer 3760
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 3761
      if (lastComparison != 0) {
3762
        return lastComparison;
3763
      }
3430 rajveer 3764
      if (isSetSuccess()) {
3765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3766
        if (lastComparison != 0) {
3767
          return lastComparison;
3768
        }
1422 varun.gupt 3769
      }
3430 rajveer 3770
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 3771
      if (lastComparison != 0) {
3772
        return lastComparison;
3773
      }
3430 rajveer 3774
      if (isSetSe()) {
3775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3776
        if (lastComparison != 0) {
3777
          return lastComparison;
3778
        }
1422 varun.gupt 3779
      }
3780
      return 0;
3781
    }
3782
 
3430 rajveer 3783
    public _Fields fieldForId(int fieldId) {
3784
      return _Fields.findByThriftId(fieldId);
3785
    }
3786
 
3787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3788
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3789
      iprot.readStructBegin();
3790
      while (true)
3791
      {
3792
        field = iprot.readFieldBegin();
3430 rajveer 3793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3794
          break;
3795
        }
3430 rajveer 3796
        switch (field.id) {
3797
          case 0: // SUCCESS
3798
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3799
              {
3800
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
3801
                this.success = new ArrayList<UserEmail>(_list8.size);
3802
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1422 varun.gupt 3803
                {
3430 rajveer 3804
                  UserEmail _elem10; // required
3805
                  _elem10 = new UserEmail();
3806
                  _elem10.read(iprot);
3807
                  this.success.add(_elem10);
1422 varun.gupt 3808
                }
3430 rajveer 3809
                iprot.readListEnd();
1422 varun.gupt 3810
              }
3430 rajveer 3811
            } else { 
3812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3813
            }
3814
            break;
3815
          case 1: // SE
3816
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3817
              this.se = new HelperServiceException();
3818
              this.se.read(iprot);
3819
            } else { 
3820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3821
            }
3822
            break;
3823
          default:
3824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3825
        }
3430 rajveer 3826
        iprot.readFieldEnd();
1422 varun.gupt 3827
      }
3828
      iprot.readStructEnd();
3829
      validate();
3830
    }
3831
 
3430 rajveer 3832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3833
      oprot.writeStructBegin(STRUCT_DESC);
3834
 
3835
      if (this.isSetSuccess()) {
3836
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3837
        {
3430 rajveer 3838
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1422 varun.gupt 3839
          for (UserEmail _iter11 : this.success)
3840
          {
3841
            _iter11.write(oprot);
3842
          }
3843
          oprot.writeListEnd();
3844
        }
3845
        oprot.writeFieldEnd();
3846
      } else if (this.isSetSe()) {
3847
        oprot.writeFieldBegin(SE_FIELD_DESC);
3848
        this.se.write(oprot);
3849
        oprot.writeFieldEnd();
3850
      }
3851
      oprot.writeFieldStop();
3852
      oprot.writeStructEnd();
3853
    }
3854
 
3855
    @Override
3856
    public String toString() {
3857
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
3858
      boolean first = true;
3859
 
3860
      sb.append("success:");
3861
      if (this.success == null) {
3862
        sb.append("null");
3863
      } else {
3864
        sb.append(this.success);
3865
      }
3866
      first = false;
3867
      if (!first) sb.append(", ");
3868
      sb.append("se:");
3869
      if (this.se == null) {
3870
        sb.append("null");
3871
      } else {
3872
        sb.append(this.se);
3873
      }
3874
      first = false;
3875
      sb.append(")");
3876
      return sb.toString();
3877
    }
3878
 
3430 rajveer 3879
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3880
      // check for required fields
3881
    }
3882
 
3430 rajveer 3883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3884
      try {
3885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3886
      } catch (org.apache.thrift.TException te) {
3887
        throw new java.io.IOException(te);
3888
      }
3889
    }
3890
 
3891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3892
      try {
3893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3894
      } catch (org.apache.thrift.TException te) {
3895
        throw new java.io.IOException(te);
3896
      }
3897
    }
3898
 
1422 varun.gupt 3899
  }
3900
 
3430 rajveer 3901
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
3902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 3903
 
3430 rajveer 3904
    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 3905
 
3430 rajveer 3906
    private long emailId; // required
1422 varun.gupt 3907
 
3908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3910
      EMAIL_ID((short)1, "emailId");
3911
 
3912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3913
 
3914
      static {
3915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3916
          byName.put(field.getFieldName(), field);
3917
        }
3918
      }
3919
 
3920
      /**
3921
       * Find the _Fields constant that matches fieldId, or null if its not found.
3922
       */
3923
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3924
        switch(fieldId) {
3925
          case 1: // EMAIL_ID
3926
            return EMAIL_ID;
3927
          default:
3928
            return null;
3929
        }
1422 varun.gupt 3930
      }
3931
 
3932
      /**
3933
       * Find the _Fields constant that matches fieldId, throwing an exception
3934
       * if it is not found.
3935
       */
3936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3937
        _Fields fields = findByThriftId(fieldId);
3938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3939
        return fields;
3940
      }
3941
 
3942
      /**
3943
       * Find the _Fields constant that matches name, or null if its not found.
3944
       */
3945
      public static _Fields findByName(String name) {
3946
        return byName.get(name);
3947
      }
3948
 
3949
      private final short _thriftId;
3950
      private final String _fieldName;
3951
 
3952
      _Fields(short thriftId, String fieldName) {
3953
        _thriftId = thriftId;
3954
        _fieldName = fieldName;
3955
      }
3956
 
3957
      public short getThriftFieldId() {
3958
        return _thriftId;
3959
      }
3960
 
3961
      public String getFieldName() {
3962
        return _fieldName;
3963
      }
3964
    }
3965
 
3966
    // isset id assignments
3967
    private static final int __EMAILID_ISSET_ID = 0;
3968
    private BitSet __isset_bit_vector = new BitSet(1);
3969
 
3430 rajveer 3970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3971
    static {
3430 rajveer 3972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3973
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 3977
    }
3978
 
3979
    public markEmailAsSent_args() {
3980
    }
3981
 
3982
    public markEmailAsSent_args(
3983
      long emailId)
3984
    {
3985
      this();
3986
      this.emailId = emailId;
3987
      setEmailIdIsSet(true);
3988
    }
3989
 
3990
    /**
3991
     * Performs a deep copy on <i>other</i>.
3992
     */
3993
    public markEmailAsSent_args(markEmailAsSent_args other) {
3994
      __isset_bit_vector.clear();
3995
      __isset_bit_vector.or(other.__isset_bit_vector);
3996
      this.emailId = other.emailId;
3997
    }
3998
 
3999
    public markEmailAsSent_args deepCopy() {
4000
      return new markEmailAsSent_args(this);
4001
    }
4002
 
3430 rajveer 4003
    @Override
4004
    public void clear() {
4005
      setEmailIdIsSet(false);
4006
      this.emailId = 0;
1422 varun.gupt 4007
    }
4008
 
4009
    public long getEmailId() {
4010
      return this.emailId;
4011
    }
4012
 
3430 rajveer 4013
    public void setEmailId(long emailId) {
1422 varun.gupt 4014
      this.emailId = emailId;
4015
      setEmailIdIsSet(true);
4016
    }
4017
 
4018
    public void unsetEmailId() {
4019
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4020
    }
4021
 
3430 rajveer 4022
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4023
    public boolean isSetEmailId() {
4024
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4025
    }
4026
 
4027
    public void setEmailIdIsSet(boolean value) {
4028
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4029
    }
4030
 
4031
    public void setFieldValue(_Fields field, Object value) {
4032
      switch (field) {
4033
      case EMAIL_ID:
4034
        if (value == null) {
4035
          unsetEmailId();
4036
        } else {
4037
          setEmailId((Long)value);
4038
        }
4039
        break;
4040
 
4041
      }
4042
    }
4043
 
4044
    public Object getFieldValue(_Fields field) {
4045
      switch (field) {
4046
      case EMAIL_ID:
3430 rajveer 4047
        return Long.valueOf(getEmailId());
1422 varun.gupt 4048
 
4049
      }
4050
      throw new IllegalStateException();
4051
    }
4052
 
3430 rajveer 4053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4054
    public boolean isSet(_Fields field) {
4055
      if (field == null) {
4056
        throw new IllegalArgumentException();
4057
      }
1422 varun.gupt 4058
 
4059
      switch (field) {
4060
      case EMAIL_ID:
4061
        return isSetEmailId();
4062
      }
4063
      throw new IllegalStateException();
4064
    }
4065
 
4066
    @Override
4067
    public boolean equals(Object that) {
4068
      if (that == null)
4069
        return false;
4070
      if (that instanceof markEmailAsSent_args)
4071
        return this.equals((markEmailAsSent_args)that);
4072
      return false;
4073
    }
4074
 
4075
    public boolean equals(markEmailAsSent_args that) {
4076
      if (that == null)
4077
        return false;
4078
 
4079
      boolean this_present_emailId = true;
4080
      boolean that_present_emailId = true;
4081
      if (this_present_emailId || that_present_emailId) {
4082
        if (!(this_present_emailId && that_present_emailId))
4083
          return false;
4084
        if (this.emailId != that.emailId)
4085
          return false;
4086
      }
4087
 
4088
      return true;
4089
    }
4090
 
4091
    @Override
4092
    public int hashCode() {
4093
      return 0;
4094
    }
4095
 
4096
    public int compareTo(markEmailAsSent_args other) {
4097
      if (!getClass().equals(other.getClass())) {
4098
        return getClass().getName().compareTo(other.getClass().getName());
4099
      }
4100
 
4101
      int lastComparison = 0;
4102
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4103
 
3430 rajveer 4104
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4105
      if (lastComparison != 0) {
4106
        return lastComparison;
4107
      }
3430 rajveer 4108
      if (isSetEmailId()) {
4109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4110
        if (lastComparison != 0) {
4111
          return lastComparison;
4112
        }
1422 varun.gupt 4113
      }
4114
      return 0;
4115
    }
4116
 
3430 rajveer 4117
    public _Fields fieldForId(int fieldId) {
4118
      return _Fields.findByThriftId(fieldId);
4119
    }
4120
 
4121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4122
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4123
      iprot.readStructBegin();
4124
      while (true)
4125
      {
4126
        field = iprot.readFieldBegin();
3430 rajveer 4127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4128
          break;
4129
        }
3430 rajveer 4130
        switch (field.id) {
4131
          case 1: // EMAIL_ID
4132
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4133
              this.emailId = iprot.readI64();
4134
              setEmailIdIsSet(true);
4135
            } else { 
4136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4137
            }
4138
            break;
4139
          default:
4140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4141
        }
3430 rajveer 4142
        iprot.readFieldEnd();
1422 varun.gupt 4143
      }
4144
      iprot.readStructEnd();
4145
      validate();
4146
    }
4147
 
3430 rajveer 4148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4149
      validate();
4150
 
4151
      oprot.writeStructBegin(STRUCT_DESC);
4152
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4153
      oprot.writeI64(this.emailId);
4154
      oprot.writeFieldEnd();
4155
      oprot.writeFieldStop();
4156
      oprot.writeStructEnd();
4157
    }
4158
 
4159
    @Override
4160
    public String toString() {
4161
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4162
      boolean first = true;
4163
 
4164
      sb.append("emailId:");
4165
      sb.append(this.emailId);
4166
      first = false;
4167
      sb.append(")");
4168
      return sb.toString();
4169
    }
4170
 
3430 rajveer 4171
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4172
      // check for required fields
4173
    }
4174
 
3430 rajveer 4175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4176
      try {
4177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4178
      } catch (org.apache.thrift.TException te) {
4179
        throw new java.io.IOException(te);
4180
      }
4181
    }
4182
 
4183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4184
      try {
4185
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4186
        __isset_bit_vector = new BitSet(1);
4187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4188
      } catch (org.apache.thrift.TException te) {
4189
        throw new java.io.IOException(te);
4190
      }
4191
    }
4192
 
1422 varun.gupt 4193
  }
4194
 
3430 rajveer 4195
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4197
 
3430 rajveer 4198
    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 4199
 
3430 rajveer 4200
    private HelperServiceException se; // required
1422 varun.gupt 4201
 
4202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4204
      SE((short)1, "se");
4205
 
4206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4207
 
4208
      static {
4209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4210
          byName.put(field.getFieldName(), field);
4211
        }
4212
      }
4213
 
4214
      /**
4215
       * Find the _Fields constant that matches fieldId, or null if its not found.
4216
       */
4217
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4218
        switch(fieldId) {
4219
          case 1: // SE
4220
            return SE;
4221
          default:
4222
            return null;
4223
        }
1422 varun.gupt 4224
      }
4225
 
4226
      /**
4227
       * Find the _Fields constant that matches fieldId, throwing an exception
4228
       * if it is not found.
4229
       */
4230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4231
        _Fields fields = findByThriftId(fieldId);
4232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4233
        return fields;
4234
      }
4235
 
4236
      /**
4237
       * Find the _Fields constant that matches name, or null if its not found.
4238
       */
4239
      public static _Fields findByName(String name) {
4240
        return byName.get(name);
4241
      }
4242
 
4243
      private final short _thriftId;
4244
      private final String _fieldName;
4245
 
4246
      _Fields(short thriftId, String fieldName) {
4247
        _thriftId = thriftId;
4248
        _fieldName = fieldName;
4249
      }
4250
 
4251
      public short getThriftFieldId() {
4252
        return _thriftId;
4253
      }
4254
 
4255
      public String getFieldName() {
4256
        return _fieldName;
4257
      }
4258
    }
4259
 
4260
    // isset id assignments
4261
 
3430 rajveer 4262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4263
    static {
3430 rajveer 4264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4265
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4269
    }
4270
 
4271
    public markEmailAsSent_result() {
4272
    }
4273
 
4274
    public markEmailAsSent_result(
4275
      HelperServiceException se)
4276
    {
4277
      this();
4278
      this.se = se;
4279
    }
4280
 
4281
    /**
4282
     * Performs a deep copy on <i>other</i>.
4283
     */
4284
    public markEmailAsSent_result(markEmailAsSent_result other) {
4285
      if (other.isSetSe()) {
4286
        this.se = new HelperServiceException(other.se);
4287
      }
4288
    }
4289
 
4290
    public markEmailAsSent_result deepCopy() {
4291
      return new markEmailAsSent_result(this);
4292
    }
4293
 
3430 rajveer 4294
    @Override
4295
    public void clear() {
4296
      this.se = null;
1422 varun.gupt 4297
    }
4298
 
4299
    public HelperServiceException getSe() {
4300
      return this.se;
4301
    }
4302
 
3430 rajveer 4303
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4304
      this.se = se;
4305
    }
4306
 
4307
    public void unsetSe() {
4308
      this.se = null;
4309
    }
4310
 
3430 rajveer 4311
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4312
    public boolean isSetSe() {
4313
      return this.se != null;
4314
    }
4315
 
4316
    public void setSeIsSet(boolean value) {
4317
      if (!value) {
4318
        this.se = null;
4319
      }
4320
    }
4321
 
4322
    public void setFieldValue(_Fields field, Object value) {
4323
      switch (field) {
4324
      case SE:
4325
        if (value == null) {
4326
          unsetSe();
4327
        } else {
4328
          setSe((HelperServiceException)value);
4329
        }
4330
        break;
4331
 
4332
      }
4333
    }
4334
 
4335
    public Object getFieldValue(_Fields field) {
4336
      switch (field) {
4337
      case SE:
4338
        return getSe();
4339
 
4340
      }
4341
      throw new IllegalStateException();
4342
    }
4343
 
3430 rajveer 4344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4345
    public boolean isSet(_Fields field) {
4346
      if (field == null) {
4347
        throw new IllegalArgumentException();
4348
      }
1422 varun.gupt 4349
 
4350
      switch (field) {
4351
      case SE:
4352
        return isSetSe();
4353
      }
4354
      throw new IllegalStateException();
4355
    }
4356
 
4357
    @Override
4358
    public boolean equals(Object that) {
4359
      if (that == null)
4360
        return false;
4361
      if (that instanceof markEmailAsSent_result)
4362
        return this.equals((markEmailAsSent_result)that);
4363
      return false;
4364
    }
4365
 
4366
    public boolean equals(markEmailAsSent_result that) {
4367
      if (that == null)
4368
        return false;
4369
 
4370
      boolean this_present_se = true && this.isSetSe();
4371
      boolean that_present_se = true && that.isSetSe();
4372
      if (this_present_se || that_present_se) {
4373
        if (!(this_present_se && that_present_se))
4374
          return false;
4375
        if (!this.se.equals(that.se))
4376
          return false;
4377
      }
4378
 
4379
      return true;
4380
    }
4381
 
4382
    @Override
4383
    public int hashCode() {
4384
      return 0;
4385
    }
4386
 
4387
    public int compareTo(markEmailAsSent_result other) {
4388
      if (!getClass().equals(other.getClass())) {
4389
        return getClass().getName().compareTo(other.getClass().getName());
4390
      }
4391
 
4392
      int lastComparison = 0;
4393
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
4394
 
3430 rajveer 4395
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4396
      if (lastComparison != 0) {
4397
        return lastComparison;
4398
      }
3430 rajveer 4399
      if (isSetSe()) {
4400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4401
        if (lastComparison != 0) {
4402
          return lastComparison;
4403
        }
1422 varun.gupt 4404
      }
4405
      return 0;
4406
    }
4407
 
3430 rajveer 4408
    public _Fields fieldForId(int fieldId) {
4409
      return _Fields.findByThriftId(fieldId);
4410
    }
4411
 
4412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4413
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4414
      iprot.readStructBegin();
4415
      while (true)
4416
      {
4417
        field = iprot.readFieldBegin();
3430 rajveer 4418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4419
          break;
4420
        }
3430 rajveer 4421
        switch (field.id) {
4422
          case 1: // SE
4423
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4424
              this.se = new HelperServiceException();
4425
              this.se.read(iprot);
4426
            } else { 
4427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4428
            }
4429
            break;
4430
          default:
4431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4432
        }
3430 rajveer 4433
        iprot.readFieldEnd();
1422 varun.gupt 4434
      }
4435
      iprot.readStructEnd();
4436
      validate();
4437
    }
4438
 
3430 rajveer 4439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4440
      oprot.writeStructBegin(STRUCT_DESC);
4441
 
4442
      if (this.isSetSe()) {
4443
        oprot.writeFieldBegin(SE_FIELD_DESC);
4444
        this.se.write(oprot);
4445
        oprot.writeFieldEnd();
4446
      }
4447
      oprot.writeFieldStop();
4448
      oprot.writeStructEnd();
4449
    }
4450
 
4451
    @Override
4452
    public String toString() {
4453
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
4454
      boolean first = true;
4455
 
4456
      sb.append("se:");
4457
      if (this.se == null) {
4458
        sb.append("null");
4459
      } else {
4460
        sb.append(this.se);
4461
      }
4462
      first = false;
4463
      sb.append(")");
4464
      return sb.toString();
4465
    }
4466
 
3430 rajveer 4467
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4468
      // check for required fields
4469
    }
4470
 
3430 rajveer 4471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4472
      try {
4473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4474
      } catch (org.apache.thrift.TException te) {
4475
        throw new java.io.IOException(te);
4476
      }
4477
    }
4478
 
4479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4480
      try {
4481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4482
      } catch (org.apache.thrift.TException te) {
4483
        throw new java.io.IOException(te);
4484
      }
4485
    }
4486
 
1422 varun.gupt 4487
  }
4488
 
3430 rajveer 4489
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
4490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 4491
 
3430 rajveer 4492
    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 4493
 
3430 rajveer 4494
    private Mail mail; // required
352 ashish 4495
 
4496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4498
      MAIL((short)1, "mail");
4499
 
4500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4501
 
4502
      static {
4503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4504
          byName.put(field.getFieldName(), field);
4505
        }
4506
      }
4507
 
4508
      /**
4509
       * Find the _Fields constant that matches fieldId, or null if its not found.
4510
       */
4511
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4512
        switch(fieldId) {
4513
          case 1: // MAIL
4514
            return MAIL;
4515
          default:
4516
            return null;
4517
        }
352 ashish 4518
      }
4519
 
4520
      /**
4521
       * Find the _Fields constant that matches fieldId, throwing an exception
4522
       * if it is not found.
4523
       */
4524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4525
        _Fields fields = findByThriftId(fieldId);
4526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4527
        return fields;
4528
      }
4529
 
4530
      /**
4531
       * Find the _Fields constant that matches name, or null if its not found.
4532
       */
4533
      public static _Fields findByName(String name) {
4534
        return byName.get(name);
4535
      }
4536
 
4537
      private final short _thriftId;
4538
      private final String _fieldName;
4539
 
4540
      _Fields(short thriftId, String fieldName) {
4541
        _thriftId = thriftId;
4542
        _fieldName = fieldName;
4543
      }
4544
 
4545
      public short getThriftFieldId() {
4546
        return _thriftId;
4547
      }
4548
 
4549
      public String getFieldName() {
4550
        return _fieldName;
4551
      }
4552
    }
4553
 
4554
    // isset id assignments
4555
 
3430 rajveer 4556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4557
    static {
3430 rajveer 4558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4559
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4560
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
4561
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4562
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 4563
    }
4564
 
4565
    public sendMail_args() {
4566
    }
4567
 
4568
    public sendMail_args(
4569
      Mail mail)
4570
    {
4571
      this();
4572
      this.mail = mail;
4573
    }
4574
 
4575
    /**
4576
     * Performs a deep copy on <i>other</i>.
4577
     */
4578
    public sendMail_args(sendMail_args other) {
4579
      if (other.isSetMail()) {
4580
        this.mail = new Mail(other.mail);
4581
      }
4582
    }
4583
 
4584
    public sendMail_args deepCopy() {
4585
      return new sendMail_args(this);
4586
    }
4587
 
3430 rajveer 4588
    @Override
4589
    public void clear() {
4590
      this.mail = null;
352 ashish 4591
    }
4592
 
4593
    public Mail getMail() {
4594
      return this.mail;
4595
    }
4596
 
3430 rajveer 4597
    public void setMail(Mail mail) {
352 ashish 4598
      this.mail = mail;
4599
    }
4600
 
4601
    public void unsetMail() {
4602
      this.mail = null;
4603
    }
4604
 
3430 rajveer 4605
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 4606
    public boolean isSetMail() {
4607
      return this.mail != null;
4608
    }
4609
 
4610
    public void setMailIsSet(boolean value) {
4611
      if (!value) {
4612
        this.mail = null;
4613
      }
4614
    }
4615
 
4616
    public void setFieldValue(_Fields field, Object value) {
4617
      switch (field) {
4618
      case MAIL:
4619
        if (value == null) {
4620
          unsetMail();
4621
        } else {
4622
          setMail((Mail)value);
4623
        }
4624
        break;
4625
 
4626
      }
4627
    }
4628
 
4629
    public Object getFieldValue(_Fields field) {
4630
      switch (field) {
4631
      case MAIL:
4632
        return getMail();
4633
 
4634
      }
4635
      throw new IllegalStateException();
4636
    }
4637
 
3430 rajveer 4638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4639
    public boolean isSet(_Fields field) {
4640
      if (field == null) {
4641
        throw new IllegalArgumentException();
4642
      }
352 ashish 4643
 
4644
      switch (field) {
4645
      case MAIL:
4646
        return isSetMail();
4647
      }
4648
      throw new IllegalStateException();
4649
    }
4650
 
4651
    @Override
4652
    public boolean equals(Object that) {
4653
      if (that == null)
4654
        return false;
4655
      if (that instanceof sendMail_args)
4656
        return this.equals((sendMail_args)that);
4657
      return false;
4658
    }
4659
 
4660
    public boolean equals(sendMail_args that) {
4661
      if (that == null)
4662
        return false;
4663
 
4664
      boolean this_present_mail = true && this.isSetMail();
4665
      boolean that_present_mail = true && that.isSetMail();
4666
      if (this_present_mail || that_present_mail) {
4667
        if (!(this_present_mail && that_present_mail))
4668
          return false;
4669
        if (!this.mail.equals(that.mail))
4670
          return false;
4671
      }
4672
 
4673
      return true;
4674
    }
4675
 
4676
    @Override
4677
    public int hashCode() {
4678
      return 0;
4679
    }
4680
 
4681
    public int compareTo(sendMail_args other) {
4682
      if (!getClass().equals(other.getClass())) {
4683
        return getClass().getName().compareTo(other.getClass().getName());
4684
      }
4685
 
4686
      int lastComparison = 0;
4687
      sendMail_args typedOther = (sendMail_args)other;
4688
 
3430 rajveer 4689
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 4690
      if (lastComparison != 0) {
4691
        return lastComparison;
4692
      }
3430 rajveer 4693
      if (isSetMail()) {
4694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
4695
        if (lastComparison != 0) {
4696
          return lastComparison;
4697
        }
352 ashish 4698
      }
4699
      return 0;
4700
    }
4701
 
3430 rajveer 4702
    public _Fields fieldForId(int fieldId) {
4703
      return _Fields.findByThriftId(fieldId);
4704
    }
4705
 
4706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4707
      org.apache.thrift.protocol.TField field;
352 ashish 4708
      iprot.readStructBegin();
4709
      while (true)
4710
      {
4711
        field = iprot.readFieldBegin();
3430 rajveer 4712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4713
          break;
4714
        }
3430 rajveer 4715
        switch (field.id) {
4716
          case 1: // MAIL
4717
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4718
              this.mail = new Mail();
4719
              this.mail.read(iprot);
4720
            } else { 
4721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4722
            }
4723
            break;
4724
          default:
4725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4726
        }
3430 rajveer 4727
        iprot.readFieldEnd();
352 ashish 4728
      }
4729
      iprot.readStructEnd();
4730
      validate();
4731
    }
4732
 
3430 rajveer 4733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4734
      validate();
4735
 
4736
      oprot.writeStructBegin(STRUCT_DESC);
4737
      if (this.mail != null) {
4738
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
4739
        this.mail.write(oprot);
4740
        oprot.writeFieldEnd();
4741
      }
4742
      oprot.writeFieldStop();
4743
      oprot.writeStructEnd();
4744
    }
4745
 
4746
    @Override
4747
    public String toString() {
4748
      StringBuilder sb = new StringBuilder("sendMail_args(");
4749
      boolean first = true;
4750
 
4751
      sb.append("mail:");
4752
      if (this.mail == null) {
4753
        sb.append("null");
4754
      } else {
4755
        sb.append(this.mail);
4756
      }
4757
      first = false;
4758
      sb.append(")");
4759
      return sb.toString();
4760
    }
4761
 
3430 rajveer 4762
    public void validate() throws org.apache.thrift.TException {
352 ashish 4763
      // check for required fields
4764
    }
4765
 
3430 rajveer 4766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4767
      try {
4768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4769
      } catch (org.apache.thrift.TException te) {
4770
        throw new java.io.IOException(te);
4771
      }
4772
    }
4773
 
4774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4775
      try {
4776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4777
      } catch (org.apache.thrift.TException te) {
4778
        throw new java.io.IOException(te);
4779
      }
4780
    }
4781
 
352 ashish 4782
  }
4783
 
3430 rajveer 4784
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
4785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 4786
 
3430 rajveer 4787
    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 4788
 
3430 rajveer 4789
    private HelperServiceException se; // required
352 ashish 4790
 
4791
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4792
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4793
      SE((short)1, "se");
4794
 
4795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4796
 
4797
      static {
4798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4799
          byName.put(field.getFieldName(), field);
4800
        }
4801
      }
4802
 
4803
      /**
4804
       * Find the _Fields constant that matches fieldId, or null if its not found.
4805
       */
4806
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4807
        switch(fieldId) {
4808
          case 1: // SE
4809
            return SE;
4810
          default:
4811
            return null;
4812
        }
352 ashish 4813
      }
4814
 
4815
      /**
4816
       * Find the _Fields constant that matches fieldId, throwing an exception
4817
       * if it is not found.
4818
       */
4819
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4820
        _Fields fields = findByThriftId(fieldId);
4821
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4822
        return fields;
4823
      }
4824
 
4825
      /**
4826
       * Find the _Fields constant that matches name, or null if its not found.
4827
       */
4828
      public static _Fields findByName(String name) {
4829
        return byName.get(name);
4830
      }
4831
 
4832
      private final short _thriftId;
4833
      private final String _fieldName;
4834
 
4835
      _Fields(short thriftId, String fieldName) {
4836
        _thriftId = thriftId;
4837
        _fieldName = fieldName;
4838
      }
4839
 
4840
      public short getThriftFieldId() {
4841
        return _thriftId;
4842
      }
4843
 
4844
      public String getFieldName() {
4845
        return _fieldName;
4846
      }
4847
    }
4848
 
4849
    // isset id assignments
4850
 
3430 rajveer 4851
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4852
    static {
3430 rajveer 4853
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4854
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4856
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4857
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 4858
    }
4859
 
4860
    public sendMail_result() {
4861
    }
4862
 
4863
    public sendMail_result(
4864
      HelperServiceException se)
4865
    {
4866
      this();
4867
      this.se = se;
4868
    }
4869
 
4870
    /**
4871
     * Performs a deep copy on <i>other</i>.
4872
     */
4873
    public sendMail_result(sendMail_result other) {
4874
      if (other.isSetSe()) {
4875
        this.se = new HelperServiceException(other.se);
4876
      }
4877
    }
4878
 
4879
    public sendMail_result deepCopy() {
4880
      return new sendMail_result(this);
4881
    }
4882
 
3430 rajveer 4883
    @Override
4884
    public void clear() {
4885
      this.se = null;
352 ashish 4886
    }
4887
 
4888
    public HelperServiceException getSe() {
4889
      return this.se;
4890
    }
4891
 
3430 rajveer 4892
    public void setSe(HelperServiceException se) {
352 ashish 4893
      this.se = se;
4894
    }
4895
 
4896
    public void unsetSe() {
4897
      this.se = null;
4898
    }
4899
 
3430 rajveer 4900
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 4901
    public boolean isSetSe() {
4902
      return this.se != null;
4903
    }
4904
 
4905
    public void setSeIsSet(boolean value) {
4906
      if (!value) {
4907
        this.se = null;
4908
      }
4909
    }
4910
 
4911
    public void setFieldValue(_Fields field, Object value) {
4912
      switch (field) {
4913
      case SE:
4914
        if (value == null) {
4915
          unsetSe();
4916
        } else {
4917
          setSe((HelperServiceException)value);
4918
        }
4919
        break;
4920
 
4921
      }
4922
    }
4923
 
4924
    public Object getFieldValue(_Fields field) {
4925
      switch (field) {
4926
      case SE:
4927
        return getSe();
4928
 
4929
      }
4930
      throw new IllegalStateException();
4931
    }
4932
 
3430 rajveer 4933
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4934
    public boolean isSet(_Fields field) {
4935
      if (field == null) {
4936
        throw new IllegalArgumentException();
4937
      }
352 ashish 4938
 
4939
      switch (field) {
4940
      case SE:
4941
        return isSetSe();
4942
      }
4943
      throw new IllegalStateException();
4944
    }
4945
 
4946
    @Override
4947
    public boolean equals(Object that) {
4948
      if (that == null)
4949
        return false;
4950
      if (that instanceof sendMail_result)
4951
        return this.equals((sendMail_result)that);
4952
      return false;
4953
    }
4954
 
4955
    public boolean equals(sendMail_result that) {
4956
      if (that == null)
4957
        return false;
4958
 
4959
      boolean this_present_se = true && this.isSetSe();
4960
      boolean that_present_se = true && that.isSetSe();
4961
      if (this_present_se || that_present_se) {
4962
        if (!(this_present_se && that_present_se))
4963
          return false;
4964
        if (!this.se.equals(that.se))
4965
          return false;
4966
      }
4967
 
4968
      return true;
4969
    }
4970
 
4971
    @Override
4972
    public int hashCode() {
4973
      return 0;
4974
    }
4975
 
4976
    public int compareTo(sendMail_result other) {
4977
      if (!getClass().equals(other.getClass())) {
4978
        return getClass().getName().compareTo(other.getClass().getName());
4979
      }
4980
 
4981
      int lastComparison = 0;
4982
      sendMail_result typedOther = (sendMail_result)other;
4983
 
3430 rajveer 4984
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 4985
      if (lastComparison != 0) {
4986
        return lastComparison;
4987
      }
3430 rajveer 4988
      if (isSetSe()) {
4989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4990
        if (lastComparison != 0) {
4991
          return lastComparison;
4992
        }
352 ashish 4993
      }
4994
      return 0;
4995
    }
4996
 
3430 rajveer 4997
    public _Fields fieldForId(int fieldId) {
4998
      return _Fields.findByThriftId(fieldId);
4999
    }
5000
 
5001
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5002
      org.apache.thrift.protocol.TField field;
352 ashish 5003
      iprot.readStructBegin();
5004
      while (true)
5005
      {
5006
        field = iprot.readFieldBegin();
3430 rajveer 5007
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5008
          break;
5009
        }
3430 rajveer 5010
        switch (field.id) {
5011
          case 1: // SE
5012
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5013
              this.se = new HelperServiceException();
5014
              this.se.read(iprot);
5015
            } else { 
5016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5017
            }
5018
            break;
5019
          default:
5020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5021
        }
3430 rajveer 5022
        iprot.readFieldEnd();
352 ashish 5023
      }
5024
      iprot.readStructEnd();
5025
      validate();
5026
    }
5027
 
3430 rajveer 5028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5029
      oprot.writeStructBegin(STRUCT_DESC);
5030
 
5031
      if (this.isSetSe()) {
5032
        oprot.writeFieldBegin(SE_FIELD_DESC);
5033
        this.se.write(oprot);
5034
        oprot.writeFieldEnd();
5035
      }
5036
      oprot.writeFieldStop();
5037
      oprot.writeStructEnd();
5038
    }
5039
 
5040
    @Override
5041
    public String toString() {
5042
      StringBuilder sb = new StringBuilder("sendMail_result(");
5043
      boolean first = true;
5044
 
5045
      sb.append("se:");
5046
      if (this.se == null) {
5047
        sb.append("null");
5048
      } else {
5049
        sb.append(this.se);
5050
      }
5051
      first = false;
5052
      sb.append(")");
5053
      return sb.toString();
5054
    }
5055
 
3430 rajveer 5056
    public void validate() throws org.apache.thrift.TException {
352 ashish 5057
      // check for required fields
5058
    }
5059
 
3430 rajveer 5060
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5061
      try {
5062
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5063
      } catch (org.apache.thrift.TException te) {
5064
        throw new java.io.IOException(te);
5065
      }
5066
    }
5067
 
5068
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5069
      try {
5070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5071
      } catch (org.apache.thrift.TException te) {
5072
        throw new java.io.IOException(te);
5073
      }
5074
    }
5075
 
352 ashish 5076
  }
5077
 
3430 rajveer 5078
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5079
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5080
 
3430 rajveer 5081
    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 5082
 
3430 rajveer 5083
    private TextMessage message; // required
352 ashish 5084
 
5085
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5086
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5087
      MESSAGE((short)1, "message");
5088
 
5089
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5090
 
5091
      static {
5092
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5093
          byName.put(field.getFieldName(), field);
5094
        }
5095
      }
5096
 
5097
      /**
5098
       * Find the _Fields constant that matches fieldId, or null if its not found.
5099
       */
5100
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5101
        switch(fieldId) {
5102
          case 1: // MESSAGE
5103
            return MESSAGE;
5104
          default:
5105
            return null;
5106
        }
352 ashish 5107
      }
5108
 
5109
      /**
5110
       * Find the _Fields constant that matches fieldId, throwing an exception
5111
       * if it is not found.
5112
       */
5113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5114
        _Fields fields = findByThriftId(fieldId);
5115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5116
        return fields;
5117
      }
5118
 
5119
      /**
5120
       * Find the _Fields constant that matches name, or null if its not found.
5121
       */
5122
      public static _Fields findByName(String name) {
5123
        return byName.get(name);
5124
      }
5125
 
5126
      private final short _thriftId;
5127
      private final String _fieldName;
5128
 
5129
      _Fields(short thriftId, String fieldName) {
5130
        _thriftId = thriftId;
5131
        _fieldName = fieldName;
5132
      }
5133
 
5134
      public short getThriftFieldId() {
5135
        return _thriftId;
5136
      }
5137
 
5138
      public String getFieldName() {
5139
        return _fieldName;
5140
      }
5141
    }
5142
 
5143
    // isset id assignments
5144
 
3430 rajveer 5145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5146
    static {
3430 rajveer 5147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5148
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5149
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5150
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5151
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5152
    }
5153
 
5154
    public sendText_args() {
5155
    }
5156
 
5157
    public sendText_args(
5158
      TextMessage message)
5159
    {
5160
      this();
5161
      this.message = message;
5162
    }
5163
 
5164
    /**
5165
     * Performs a deep copy on <i>other</i>.
5166
     */
5167
    public sendText_args(sendText_args other) {
5168
      if (other.isSetMessage()) {
5169
        this.message = new TextMessage(other.message);
5170
      }
5171
    }
5172
 
5173
    public sendText_args deepCopy() {
5174
      return new sendText_args(this);
5175
    }
5176
 
3430 rajveer 5177
    @Override
5178
    public void clear() {
5179
      this.message = null;
352 ashish 5180
    }
5181
 
5182
    public TextMessage getMessage() {
5183
      return this.message;
5184
    }
5185
 
3430 rajveer 5186
    public void setMessage(TextMessage message) {
352 ashish 5187
      this.message = message;
5188
    }
5189
 
5190
    public void unsetMessage() {
5191
      this.message = null;
5192
    }
5193
 
3430 rajveer 5194
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5195
    public boolean isSetMessage() {
5196
      return this.message != null;
5197
    }
5198
 
5199
    public void setMessageIsSet(boolean value) {
5200
      if (!value) {
5201
        this.message = null;
5202
      }
5203
    }
5204
 
5205
    public void setFieldValue(_Fields field, Object value) {
5206
      switch (field) {
5207
      case MESSAGE:
5208
        if (value == null) {
5209
          unsetMessage();
5210
        } else {
5211
          setMessage((TextMessage)value);
5212
        }
5213
        break;
5214
 
5215
      }
5216
    }
5217
 
5218
    public Object getFieldValue(_Fields field) {
5219
      switch (field) {
5220
      case MESSAGE:
5221
        return getMessage();
5222
 
5223
      }
5224
      throw new IllegalStateException();
5225
    }
5226
 
3430 rajveer 5227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5228
    public boolean isSet(_Fields field) {
5229
      if (field == null) {
5230
        throw new IllegalArgumentException();
5231
      }
352 ashish 5232
 
5233
      switch (field) {
5234
      case MESSAGE:
5235
        return isSetMessage();
5236
      }
5237
      throw new IllegalStateException();
5238
    }
5239
 
5240
    @Override
5241
    public boolean equals(Object that) {
5242
      if (that == null)
5243
        return false;
5244
      if (that instanceof sendText_args)
5245
        return this.equals((sendText_args)that);
5246
      return false;
5247
    }
5248
 
5249
    public boolean equals(sendText_args that) {
5250
      if (that == null)
5251
        return false;
5252
 
5253
      boolean this_present_message = true && this.isSetMessage();
5254
      boolean that_present_message = true && that.isSetMessage();
5255
      if (this_present_message || that_present_message) {
5256
        if (!(this_present_message && that_present_message))
5257
          return false;
5258
        if (!this.message.equals(that.message))
5259
          return false;
5260
      }
5261
 
5262
      return true;
5263
    }
5264
 
5265
    @Override
5266
    public int hashCode() {
5267
      return 0;
5268
    }
5269
 
5270
    public int compareTo(sendText_args other) {
5271
      if (!getClass().equals(other.getClass())) {
5272
        return getClass().getName().compareTo(other.getClass().getName());
5273
      }
5274
 
5275
      int lastComparison = 0;
5276
      sendText_args typedOther = (sendText_args)other;
5277
 
3430 rajveer 5278
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5279
      if (lastComparison != 0) {
5280
        return lastComparison;
5281
      }
3430 rajveer 5282
      if (isSetMessage()) {
5283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5284
        if (lastComparison != 0) {
5285
          return lastComparison;
5286
        }
352 ashish 5287
      }
5288
      return 0;
5289
    }
5290
 
3430 rajveer 5291
    public _Fields fieldForId(int fieldId) {
5292
      return _Fields.findByThriftId(fieldId);
5293
    }
5294
 
5295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5296
      org.apache.thrift.protocol.TField field;
352 ashish 5297
      iprot.readStructBegin();
5298
      while (true)
5299
      {
5300
        field = iprot.readFieldBegin();
3430 rajveer 5301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5302
          break;
5303
        }
3430 rajveer 5304
        switch (field.id) {
5305
          case 1: // MESSAGE
5306
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5307
              this.message = new TextMessage();
5308
              this.message.read(iprot);
5309
            } else { 
5310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5311
            }
5312
            break;
5313
          default:
5314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5315
        }
3430 rajveer 5316
        iprot.readFieldEnd();
352 ashish 5317
      }
5318
      iprot.readStructEnd();
5319
      validate();
5320
    }
5321
 
3430 rajveer 5322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5323
      validate();
5324
 
5325
      oprot.writeStructBegin(STRUCT_DESC);
5326
      if (this.message != null) {
5327
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5328
        this.message.write(oprot);
5329
        oprot.writeFieldEnd();
5330
      }
5331
      oprot.writeFieldStop();
5332
      oprot.writeStructEnd();
5333
    }
5334
 
5335
    @Override
5336
    public String toString() {
5337
      StringBuilder sb = new StringBuilder("sendText_args(");
5338
      boolean first = true;
5339
 
5340
      sb.append("message:");
5341
      if (this.message == null) {
5342
        sb.append("null");
5343
      } else {
5344
        sb.append(this.message);
5345
      }
5346
      first = false;
5347
      sb.append(")");
5348
      return sb.toString();
5349
    }
5350
 
3430 rajveer 5351
    public void validate() throws org.apache.thrift.TException {
352 ashish 5352
      // check for required fields
5353
    }
5354
 
3430 rajveer 5355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5356
      try {
5357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5358
      } catch (org.apache.thrift.TException te) {
5359
        throw new java.io.IOException(te);
5360
      }
5361
    }
5362
 
5363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5364
      try {
5365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5366
      } catch (org.apache.thrift.TException te) {
5367
        throw new java.io.IOException(te);
5368
      }
5369
    }
5370
 
352 ashish 5371
  }
5372
 
3430 rajveer 5373
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
5374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 5375
 
3430 rajveer 5376
    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 5377
 
3430 rajveer 5378
    private HelperServiceException se; // required
352 ashish 5379
 
5380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5382
      SE((short)1, "se");
5383
 
5384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5385
 
5386
      static {
5387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5388
          byName.put(field.getFieldName(), field);
5389
        }
5390
      }
5391
 
5392
      /**
5393
       * Find the _Fields constant that matches fieldId, or null if its not found.
5394
       */
5395
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5396
        switch(fieldId) {
5397
          case 1: // SE
5398
            return SE;
5399
          default:
5400
            return null;
5401
        }
352 ashish 5402
      }
5403
 
5404
      /**
5405
       * Find the _Fields constant that matches fieldId, throwing an exception
5406
       * if it is not found.
5407
       */
5408
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5409
        _Fields fields = findByThriftId(fieldId);
5410
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5411
        return fields;
5412
      }
5413
 
5414
      /**
5415
       * Find the _Fields constant that matches name, or null if its not found.
5416
       */
5417
      public static _Fields findByName(String name) {
5418
        return byName.get(name);
5419
      }
5420
 
5421
      private final short _thriftId;
5422
      private final String _fieldName;
5423
 
5424
      _Fields(short thriftId, String fieldName) {
5425
        _thriftId = thriftId;
5426
        _fieldName = fieldName;
5427
      }
5428
 
5429
      public short getThriftFieldId() {
5430
        return _thriftId;
5431
      }
5432
 
5433
      public String getFieldName() {
5434
        return _fieldName;
5435
      }
5436
    }
5437
 
5438
    // isset id assignments
5439
 
3430 rajveer 5440
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5441
    static {
3430 rajveer 5442
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5443
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5445
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5446
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 5447
    }
5448
 
5449
    public sendText_result() {
5450
    }
5451
 
5452
    public sendText_result(
5453
      HelperServiceException se)
5454
    {
5455
      this();
5456
      this.se = se;
5457
    }
5458
 
5459
    /**
5460
     * Performs a deep copy on <i>other</i>.
5461
     */
5462
    public sendText_result(sendText_result other) {
5463
      if (other.isSetSe()) {
5464
        this.se = new HelperServiceException(other.se);
5465
      }
5466
    }
5467
 
5468
    public sendText_result deepCopy() {
5469
      return new sendText_result(this);
5470
    }
5471
 
3430 rajveer 5472
    @Override
5473
    public void clear() {
5474
      this.se = null;
352 ashish 5475
    }
5476
 
5477
    public HelperServiceException getSe() {
5478
      return this.se;
5479
    }
5480
 
3430 rajveer 5481
    public void setSe(HelperServiceException se) {
352 ashish 5482
      this.se = se;
5483
    }
5484
 
5485
    public void unsetSe() {
5486
      this.se = null;
5487
    }
5488
 
3430 rajveer 5489
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5490
    public boolean isSetSe() {
5491
      return this.se != null;
5492
    }
5493
 
5494
    public void setSeIsSet(boolean value) {
5495
      if (!value) {
5496
        this.se = null;
5497
      }
5498
    }
5499
 
5500
    public void setFieldValue(_Fields field, Object value) {
5501
      switch (field) {
5502
      case SE:
5503
        if (value == null) {
5504
          unsetSe();
5505
        } else {
5506
          setSe((HelperServiceException)value);
5507
        }
5508
        break;
5509
 
5510
      }
5511
    }
5512
 
5513
    public Object getFieldValue(_Fields field) {
5514
      switch (field) {
5515
      case SE:
5516
        return getSe();
5517
 
5518
      }
5519
      throw new IllegalStateException();
5520
    }
5521
 
3430 rajveer 5522
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5523
    public boolean isSet(_Fields field) {
5524
      if (field == null) {
5525
        throw new IllegalArgumentException();
5526
      }
352 ashish 5527
 
5528
      switch (field) {
5529
      case SE:
5530
        return isSetSe();
5531
      }
5532
      throw new IllegalStateException();
5533
    }
5534
 
5535
    @Override
5536
    public boolean equals(Object that) {
5537
      if (that == null)
5538
        return false;
5539
      if (that instanceof sendText_result)
5540
        return this.equals((sendText_result)that);
5541
      return false;
5542
    }
5543
 
5544
    public boolean equals(sendText_result that) {
5545
      if (that == null)
5546
        return false;
5547
 
5548
      boolean this_present_se = true && this.isSetSe();
5549
      boolean that_present_se = true && that.isSetSe();
5550
      if (this_present_se || that_present_se) {
5551
        if (!(this_present_se && that_present_se))
5552
          return false;
5553
        if (!this.se.equals(that.se))
5554
          return false;
5555
      }
5556
 
5557
      return true;
5558
    }
5559
 
5560
    @Override
5561
    public int hashCode() {
5562
      return 0;
5563
    }
5564
 
5565
    public int compareTo(sendText_result other) {
5566
      if (!getClass().equals(other.getClass())) {
5567
        return getClass().getName().compareTo(other.getClass().getName());
5568
      }
5569
 
5570
      int lastComparison = 0;
5571
      sendText_result typedOther = (sendText_result)other;
5572
 
3430 rajveer 5573
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5574
      if (lastComparison != 0) {
5575
        return lastComparison;
5576
      }
3430 rajveer 5577
      if (isSetSe()) {
5578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5579
        if (lastComparison != 0) {
5580
          return lastComparison;
5581
        }
352 ashish 5582
      }
5583
      return 0;
5584
    }
5585
 
3430 rajveer 5586
    public _Fields fieldForId(int fieldId) {
5587
      return _Fields.findByThriftId(fieldId);
5588
    }
5589
 
5590
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5591
      org.apache.thrift.protocol.TField field;
352 ashish 5592
      iprot.readStructBegin();
5593
      while (true)
5594
      {
5595
        field = iprot.readFieldBegin();
3430 rajveer 5596
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5597
          break;
5598
        }
3430 rajveer 5599
        switch (field.id) {
5600
          case 1: // SE
5601
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5602
              this.se = new HelperServiceException();
5603
              this.se.read(iprot);
5604
            } else { 
5605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5606
            }
5607
            break;
5608
          default:
5609
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5610
        }
3430 rajveer 5611
        iprot.readFieldEnd();
352 ashish 5612
      }
5613
      iprot.readStructEnd();
5614
      validate();
5615
    }
5616
 
3430 rajveer 5617
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5618
      oprot.writeStructBegin(STRUCT_DESC);
5619
 
5620
      if (this.isSetSe()) {
5621
        oprot.writeFieldBegin(SE_FIELD_DESC);
5622
        this.se.write(oprot);
5623
        oprot.writeFieldEnd();
5624
      }
5625
      oprot.writeFieldStop();
5626
      oprot.writeStructEnd();
5627
    }
5628
 
5629
    @Override
5630
    public String toString() {
5631
      StringBuilder sb = new StringBuilder("sendText_result(");
5632
      boolean first = true;
5633
 
5634
      sb.append("se:");
5635
      if (this.se == null) {
5636
        sb.append("null");
5637
      } else {
5638
        sb.append(this.se);
5639
      }
5640
      first = false;
5641
      sb.append(")");
5642
      return sb.toString();
5643
    }
5644
 
3430 rajveer 5645
    public void validate() throws org.apache.thrift.TException {
352 ashish 5646
      // check for required fields
5647
    }
5648
 
3430 rajveer 5649
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5650
      try {
5651
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5652
      } catch (org.apache.thrift.TException te) {
5653
        throw new java.io.IOException(te);
5654
      }
5655
    }
5656
 
5657
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5658
      try {
5659
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5660
      } catch (org.apache.thrift.TException te) {
5661
        throw new java.io.IOException(te);
5662
      }
5663
    }
5664
 
352 ashish 5665
  }
5666
 
3430 rajveer 5667
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
5668
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 5669
 
3430 rajveer 5670
    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 5671
 
3430 rajveer 5672
    private Message message; // required
352 ashish 5673
 
5674
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5675
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5676
      MESSAGE((short)1, "message");
5677
 
5678
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5679
 
5680
      static {
5681
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5682
          byName.put(field.getFieldName(), field);
5683
        }
5684
      }
5685
 
5686
      /**
5687
       * Find the _Fields constant that matches fieldId, or null if its not found.
5688
       */
5689
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5690
        switch(fieldId) {
5691
          case 1: // MESSAGE
5692
            return MESSAGE;
5693
          default:
5694
            return null;
5695
        }
352 ashish 5696
      }
5697
 
5698
      /**
5699
       * Find the _Fields constant that matches fieldId, throwing an exception
5700
       * if it is not found.
5701
       */
5702
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5703
        _Fields fields = findByThriftId(fieldId);
5704
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5705
        return fields;
5706
      }
5707
 
5708
      /**
5709
       * Find the _Fields constant that matches name, or null if its not found.
5710
       */
5711
      public static _Fields findByName(String name) {
5712
        return byName.get(name);
5713
      }
5714
 
5715
      private final short _thriftId;
5716
      private final String _fieldName;
5717
 
5718
      _Fields(short thriftId, String fieldName) {
5719
        _thriftId = thriftId;
5720
        _fieldName = fieldName;
5721
      }
5722
 
5723
      public short getThriftFieldId() {
5724
        return _thriftId;
5725
      }
5726
 
5727
      public String getFieldName() {
5728
        return _fieldName;
5729
      }
5730
    }
5731
 
5732
    // isset id assignments
5733
 
3430 rajveer 5734
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5735
    static {
3430 rajveer 5736
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5737
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5738
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
5739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 5741
    }
5742
 
5743
    public addMessage_args() {
5744
    }
5745
 
5746
    public addMessage_args(
5747
      Message message)
5748
    {
5749
      this();
5750
      this.message = message;
5751
    }
5752
 
5753
    /**
5754
     * Performs a deep copy on <i>other</i>.
5755
     */
5756
    public addMessage_args(addMessage_args other) {
5757
      if (other.isSetMessage()) {
5758
        this.message = new Message(other.message);
5759
      }
5760
    }
5761
 
5762
    public addMessage_args deepCopy() {
5763
      return new addMessage_args(this);
5764
    }
5765
 
3430 rajveer 5766
    @Override
5767
    public void clear() {
5768
      this.message = null;
352 ashish 5769
    }
5770
 
5771
    public Message getMessage() {
5772
      return this.message;
5773
    }
5774
 
3430 rajveer 5775
    public void setMessage(Message message) {
352 ashish 5776
      this.message = message;
5777
    }
5778
 
5779
    public void unsetMessage() {
5780
      this.message = null;
5781
    }
5782
 
3430 rajveer 5783
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5784
    public boolean isSetMessage() {
5785
      return this.message != null;
5786
    }
5787
 
5788
    public void setMessageIsSet(boolean value) {
5789
      if (!value) {
5790
        this.message = null;
5791
      }
5792
    }
5793
 
5794
    public void setFieldValue(_Fields field, Object value) {
5795
      switch (field) {
5796
      case MESSAGE:
5797
        if (value == null) {
5798
          unsetMessage();
5799
        } else {
5800
          setMessage((Message)value);
5801
        }
5802
        break;
5803
 
5804
      }
5805
    }
5806
 
5807
    public Object getFieldValue(_Fields field) {
5808
      switch (field) {
5809
      case MESSAGE:
5810
        return getMessage();
5811
 
5812
      }
5813
      throw new IllegalStateException();
5814
    }
5815
 
3430 rajveer 5816
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5817
    public boolean isSet(_Fields field) {
5818
      if (field == null) {
5819
        throw new IllegalArgumentException();
5820
      }
352 ashish 5821
 
5822
      switch (field) {
5823
      case MESSAGE:
5824
        return isSetMessage();
5825
      }
5826
      throw new IllegalStateException();
5827
    }
5828
 
5829
    @Override
5830
    public boolean equals(Object that) {
5831
      if (that == null)
5832
        return false;
5833
      if (that instanceof addMessage_args)
5834
        return this.equals((addMessage_args)that);
5835
      return false;
5836
    }
5837
 
5838
    public boolean equals(addMessage_args that) {
5839
      if (that == null)
5840
        return false;
5841
 
5842
      boolean this_present_message = true && this.isSetMessage();
5843
      boolean that_present_message = true && that.isSetMessage();
5844
      if (this_present_message || that_present_message) {
5845
        if (!(this_present_message && that_present_message))
5846
          return false;
5847
        if (!this.message.equals(that.message))
5848
          return false;
5849
      }
5850
 
5851
      return true;
5852
    }
5853
 
5854
    @Override
5855
    public int hashCode() {
5856
      return 0;
5857
    }
5858
 
5859
    public int compareTo(addMessage_args other) {
5860
      if (!getClass().equals(other.getClass())) {
5861
        return getClass().getName().compareTo(other.getClass().getName());
5862
      }
5863
 
5864
      int lastComparison = 0;
5865
      addMessage_args typedOther = (addMessage_args)other;
5866
 
3430 rajveer 5867
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5868
      if (lastComparison != 0) {
5869
        return lastComparison;
5870
      }
3430 rajveer 5871
      if (isSetMessage()) {
5872
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5873
        if (lastComparison != 0) {
5874
          return lastComparison;
5875
        }
352 ashish 5876
      }
5877
      return 0;
5878
    }
5879
 
3430 rajveer 5880
    public _Fields fieldForId(int fieldId) {
5881
      return _Fields.findByThriftId(fieldId);
5882
    }
5883
 
5884
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5885
      org.apache.thrift.protocol.TField field;
352 ashish 5886
      iprot.readStructBegin();
5887
      while (true)
5888
      {
5889
        field = iprot.readFieldBegin();
3430 rajveer 5890
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5891
          break;
5892
        }
3430 rajveer 5893
        switch (field.id) {
5894
          case 1: // MESSAGE
5895
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5896
              this.message = new Message();
5897
              this.message.read(iprot);
5898
            } else { 
5899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5900
            }
5901
            break;
5902
          default:
5903
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5904
        }
3430 rajveer 5905
        iprot.readFieldEnd();
352 ashish 5906
      }
5907
      iprot.readStructEnd();
5908
      validate();
5909
    }
5910
 
3430 rajveer 5911
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5912
      validate();
5913
 
5914
      oprot.writeStructBegin(STRUCT_DESC);
5915
      if (this.message != null) {
5916
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5917
        this.message.write(oprot);
5918
        oprot.writeFieldEnd();
5919
      }
5920
      oprot.writeFieldStop();
5921
      oprot.writeStructEnd();
5922
    }
5923
 
5924
    @Override
5925
    public String toString() {
5926
      StringBuilder sb = new StringBuilder("addMessage_args(");
5927
      boolean first = true;
5928
 
5929
      sb.append("message:");
5930
      if (this.message == null) {
5931
        sb.append("null");
5932
      } else {
5933
        sb.append(this.message);
5934
      }
5935
      first = false;
5936
      sb.append(")");
5937
      return sb.toString();
5938
    }
5939
 
3430 rajveer 5940
    public void validate() throws org.apache.thrift.TException {
352 ashish 5941
      // check for required fields
5942
    }
5943
 
3430 rajveer 5944
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5945
      try {
5946
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5947
      } catch (org.apache.thrift.TException te) {
5948
        throw new java.io.IOException(te);
5949
      }
5950
    }
5951
 
5952
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5953
      try {
5954
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5955
      } catch (org.apache.thrift.TException te) {
5956
        throw new java.io.IOException(te);
5957
      }
5958
    }
5959
 
352 ashish 5960
  }
5961
 
3430 rajveer 5962
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
5963
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 5964
 
3430 rajveer 5965
    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 5966
 
3430 rajveer 5967
    private HelperServiceException se; // required
352 ashish 5968
 
5969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5970
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5971
      SE((short)1, "se");
5972
 
5973
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5974
 
5975
      static {
5976
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5977
          byName.put(field.getFieldName(), field);
5978
        }
5979
      }
5980
 
5981
      /**
5982
       * Find the _Fields constant that matches fieldId, or null if its not found.
5983
       */
5984
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5985
        switch(fieldId) {
5986
          case 1: // SE
5987
            return SE;
5988
          default:
5989
            return null;
5990
        }
352 ashish 5991
      }
5992
 
5993
      /**
5994
       * Find the _Fields constant that matches fieldId, throwing an exception
5995
       * if it is not found.
5996
       */
5997
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5998
        _Fields fields = findByThriftId(fieldId);
5999
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6000
        return fields;
6001
      }
6002
 
6003
      /**
6004
       * Find the _Fields constant that matches name, or null if its not found.
6005
       */
6006
      public static _Fields findByName(String name) {
6007
        return byName.get(name);
6008
      }
6009
 
6010
      private final short _thriftId;
6011
      private final String _fieldName;
6012
 
6013
      _Fields(short thriftId, String fieldName) {
6014
        _thriftId = thriftId;
6015
        _fieldName = fieldName;
6016
      }
6017
 
6018
      public short getThriftFieldId() {
6019
        return _thriftId;
6020
      }
6021
 
6022
      public String getFieldName() {
6023
        return _fieldName;
6024
      }
6025
    }
6026
 
6027
    // isset id assignments
6028
 
3430 rajveer 6029
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6030
    static {
3430 rajveer 6031
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6032
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6033
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6034
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6035
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6036
    }
6037
 
6038
    public addMessage_result() {
6039
    }
6040
 
6041
    public addMessage_result(
6042
      HelperServiceException se)
6043
    {
6044
      this();
6045
      this.se = se;
6046
    }
6047
 
6048
    /**
6049
     * Performs a deep copy on <i>other</i>.
6050
     */
6051
    public addMessage_result(addMessage_result other) {
6052
      if (other.isSetSe()) {
6053
        this.se = new HelperServiceException(other.se);
6054
      }
6055
    }
6056
 
6057
    public addMessage_result deepCopy() {
6058
      return new addMessage_result(this);
6059
    }
6060
 
3430 rajveer 6061
    @Override
6062
    public void clear() {
6063
      this.se = null;
352 ashish 6064
    }
6065
 
6066
    public HelperServiceException getSe() {
6067
      return this.se;
6068
    }
6069
 
3430 rajveer 6070
    public void setSe(HelperServiceException se) {
352 ashish 6071
      this.se = se;
6072
    }
6073
 
6074
    public void unsetSe() {
6075
      this.se = null;
6076
    }
6077
 
3430 rajveer 6078
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6079
    public boolean isSetSe() {
6080
      return this.se != null;
6081
    }
6082
 
6083
    public void setSeIsSet(boolean value) {
6084
      if (!value) {
6085
        this.se = null;
6086
      }
6087
    }
6088
 
6089
    public void setFieldValue(_Fields field, Object value) {
6090
      switch (field) {
6091
      case SE:
6092
        if (value == null) {
6093
          unsetSe();
6094
        } else {
6095
          setSe((HelperServiceException)value);
6096
        }
6097
        break;
6098
 
6099
      }
6100
    }
6101
 
6102
    public Object getFieldValue(_Fields field) {
6103
      switch (field) {
6104
      case SE:
6105
        return getSe();
6106
 
6107
      }
6108
      throw new IllegalStateException();
6109
    }
6110
 
3430 rajveer 6111
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6112
    public boolean isSet(_Fields field) {
6113
      if (field == null) {
6114
        throw new IllegalArgumentException();
6115
      }
352 ashish 6116
 
6117
      switch (field) {
6118
      case SE:
6119
        return isSetSe();
6120
      }
6121
      throw new IllegalStateException();
6122
    }
6123
 
6124
    @Override
6125
    public boolean equals(Object that) {
6126
      if (that == null)
6127
        return false;
6128
      if (that instanceof addMessage_result)
6129
        return this.equals((addMessage_result)that);
6130
      return false;
6131
    }
6132
 
6133
    public boolean equals(addMessage_result that) {
6134
      if (that == null)
6135
        return false;
6136
 
6137
      boolean this_present_se = true && this.isSetSe();
6138
      boolean that_present_se = true && that.isSetSe();
6139
      if (this_present_se || that_present_se) {
6140
        if (!(this_present_se && that_present_se))
6141
          return false;
6142
        if (!this.se.equals(that.se))
6143
          return false;
6144
      }
6145
 
6146
      return true;
6147
    }
6148
 
6149
    @Override
6150
    public int hashCode() {
6151
      return 0;
6152
    }
6153
 
6154
    public int compareTo(addMessage_result other) {
6155
      if (!getClass().equals(other.getClass())) {
6156
        return getClass().getName().compareTo(other.getClass().getName());
6157
      }
6158
 
6159
      int lastComparison = 0;
6160
      addMessage_result typedOther = (addMessage_result)other;
6161
 
3430 rajveer 6162
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6163
      if (lastComparison != 0) {
6164
        return lastComparison;
6165
      }
3430 rajveer 6166
      if (isSetSe()) {
6167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6168
        if (lastComparison != 0) {
6169
          return lastComparison;
6170
        }
352 ashish 6171
      }
6172
      return 0;
6173
    }
6174
 
3430 rajveer 6175
    public _Fields fieldForId(int fieldId) {
6176
      return _Fields.findByThriftId(fieldId);
6177
    }
6178
 
6179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6180
      org.apache.thrift.protocol.TField field;
352 ashish 6181
      iprot.readStructBegin();
6182
      while (true)
6183
      {
6184
        field = iprot.readFieldBegin();
3430 rajveer 6185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6186
          break;
6187
        }
3430 rajveer 6188
        switch (field.id) {
6189
          case 1: // SE
6190
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6191
              this.se = new HelperServiceException();
6192
              this.se.read(iprot);
6193
            } else { 
6194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6195
            }
6196
            break;
6197
          default:
6198
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6199
        }
3430 rajveer 6200
        iprot.readFieldEnd();
352 ashish 6201
      }
6202
      iprot.readStructEnd();
6203
      validate();
6204
    }
6205
 
3430 rajveer 6206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6207
      oprot.writeStructBegin(STRUCT_DESC);
6208
 
6209
      if (this.isSetSe()) {
6210
        oprot.writeFieldBegin(SE_FIELD_DESC);
6211
        this.se.write(oprot);
6212
        oprot.writeFieldEnd();
6213
      }
6214
      oprot.writeFieldStop();
6215
      oprot.writeStructEnd();
6216
    }
6217
 
6218
    @Override
6219
    public String toString() {
6220
      StringBuilder sb = new StringBuilder("addMessage_result(");
6221
      boolean first = true;
6222
 
6223
      sb.append("se:");
6224
      if (this.se == null) {
6225
        sb.append("null");
6226
      } else {
6227
        sb.append(this.se);
6228
      }
6229
      first = false;
6230
      sb.append(")");
6231
      return sb.toString();
6232
    }
6233
 
3430 rajveer 6234
    public void validate() throws org.apache.thrift.TException {
352 ashish 6235
      // check for required fields
6236
    }
6237
 
3430 rajveer 6238
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6239
      try {
6240
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6241
      } catch (org.apache.thrift.TException te) {
6242
        throw new java.io.IOException(te);
6243
      }
6244
    }
6245
 
6246
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6247
      try {
6248
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6249
      } catch (org.apache.thrift.TException te) {
6250
        throw new java.io.IOException(te);
6251
      }
6252
    }
6253
 
352 ashish 6254
  }
6255
 
3430 rajveer 6256
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6257
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6258
 
3430 rajveer 6259
    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);
6260
    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 6261
 
3430 rajveer 6262
    private long id; // required
6263
    private String message; // required
352 ashish 6264
 
6265
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6266
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6267
      ID((short)1, "id"),
6268
      MESSAGE((short)2, "message");
6269
 
6270
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6271
 
6272
      static {
6273
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6274
          byName.put(field.getFieldName(), field);
6275
        }
6276
      }
6277
 
6278
      /**
6279
       * Find the _Fields constant that matches fieldId, or null if its not found.
6280
       */
6281
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6282
        switch(fieldId) {
6283
          case 1: // ID
6284
            return ID;
6285
          case 2: // MESSAGE
6286
            return MESSAGE;
6287
          default:
6288
            return null;
6289
        }
352 ashish 6290
      }
6291
 
6292
      /**
6293
       * Find the _Fields constant that matches fieldId, throwing an exception
6294
       * if it is not found.
6295
       */
6296
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6297
        _Fields fields = findByThriftId(fieldId);
6298
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6299
        return fields;
6300
      }
6301
 
6302
      /**
6303
       * Find the _Fields constant that matches name, or null if its not found.
6304
       */
6305
      public static _Fields findByName(String name) {
6306
        return byName.get(name);
6307
      }
6308
 
6309
      private final short _thriftId;
6310
      private final String _fieldName;
6311
 
6312
      _Fields(short thriftId, String fieldName) {
6313
        _thriftId = thriftId;
6314
        _fieldName = fieldName;
6315
      }
6316
 
6317
      public short getThriftFieldId() {
6318
        return _thriftId;
6319
      }
6320
 
6321
      public String getFieldName() {
6322
        return _fieldName;
6323
      }
6324
    }
6325
 
6326
    // isset id assignments
6327
    private static final int __ID_ISSET_ID = 0;
6328
    private BitSet __isset_bit_vector = new BitSet(1);
6329
 
3430 rajveer 6330
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6331
    static {
3430 rajveer 6332
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6333
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6335
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6337
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6338
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 6339
    }
6340
 
6341
    public updateMessage_args() {
6342
    }
6343
 
6344
    public updateMessage_args(
6345
      long id,
6346
      String message)
6347
    {
6348
      this();
6349
      this.id = id;
6350
      setIdIsSet(true);
6351
      this.message = message;
6352
    }
6353
 
6354
    /**
6355
     * Performs a deep copy on <i>other</i>.
6356
     */
6357
    public updateMessage_args(updateMessage_args other) {
6358
      __isset_bit_vector.clear();
6359
      __isset_bit_vector.or(other.__isset_bit_vector);
6360
      this.id = other.id;
6361
      if (other.isSetMessage()) {
6362
        this.message = other.message;
6363
      }
6364
    }
6365
 
6366
    public updateMessage_args deepCopy() {
6367
      return new updateMessage_args(this);
6368
    }
6369
 
3430 rajveer 6370
    @Override
6371
    public void clear() {
6372
      setIdIsSet(false);
6373
      this.id = 0;
6374
      this.message = null;
352 ashish 6375
    }
6376
 
6377
    public long getId() {
6378
      return this.id;
6379
    }
6380
 
3430 rajveer 6381
    public void setId(long id) {
352 ashish 6382
      this.id = id;
6383
      setIdIsSet(true);
6384
    }
6385
 
6386
    public void unsetId() {
6387
      __isset_bit_vector.clear(__ID_ISSET_ID);
6388
    }
6389
 
3430 rajveer 6390
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6391
    public boolean isSetId() {
6392
      return __isset_bit_vector.get(__ID_ISSET_ID);
6393
    }
6394
 
6395
    public void setIdIsSet(boolean value) {
6396
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6397
    }
6398
 
6399
    public String getMessage() {
6400
      return this.message;
6401
    }
6402
 
3430 rajveer 6403
    public void setMessage(String message) {
352 ashish 6404
      this.message = message;
6405
    }
6406
 
6407
    public void unsetMessage() {
6408
      this.message = null;
6409
    }
6410
 
3430 rajveer 6411
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6412
    public boolean isSetMessage() {
6413
      return this.message != null;
6414
    }
6415
 
6416
    public void setMessageIsSet(boolean value) {
6417
      if (!value) {
6418
        this.message = null;
6419
      }
6420
    }
6421
 
6422
    public void setFieldValue(_Fields field, Object value) {
6423
      switch (field) {
6424
      case ID:
6425
        if (value == null) {
6426
          unsetId();
6427
        } else {
6428
          setId((Long)value);
6429
        }
6430
        break;
6431
 
6432
      case MESSAGE:
6433
        if (value == null) {
6434
          unsetMessage();
6435
        } else {
6436
          setMessage((String)value);
6437
        }
6438
        break;
6439
 
6440
      }
6441
    }
6442
 
6443
    public Object getFieldValue(_Fields field) {
6444
      switch (field) {
6445
      case ID:
3430 rajveer 6446
        return Long.valueOf(getId());
352 ashish 6447
 
6448
      case MESSAGE:
6449
        return getMessage();
6450
 
6451
      }
6452
      throw new IllegalStateException();
6453
    }
6454
 
3430 rajveer 6455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6456
    public boolean isSet(_Fields field) {
6457
      if (field == null) {
6458
        throw new IllegalArgumentException();
6459
      }
352 ashish 6460
 
6461
      switch (field) {
6462
      case ID:
6463
        return isSetId();
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 updateMessage_args)
6475
        return this.equals((updateMessage_args)that);
6476
      return false;
6477
    }
6478
 
6479
    public boolean equals(updateMessage_args that) {
6480
      if (that == null)
6481
        return false;
6482
 
6483
      boolean this_present_id = true;
6484
      boolean that_present_id = true;
6485
      if (this_present_id || that_present_id) {
6486
        if (!(this_present_id && that_present_id))
6487
          return false;
6488
        if (this.id != that.id)
6489
          return false;
6490
      }
6491
 
6492
      boolean this_present_message = true && this.isSetMessage();
6493
      boolean that_present_message = true && that.isSetMessage();
6494
      if (this_present_message || that_present_message) {
6495
        if (!(this_present_message && that_present_message))
6496
          return false;
6497
        if (!this.message.equals(that.message))
6498
          return false;
6499
      }
6500
 
6501
      return true;
6502
    }
6503
 
6504
    @Override
6505
    public int hashCode() {
6506
      return 0;
6507
    }
6508
 
6509
    public int compareTo(updateMessage_args other) {
6510
      if (!getClass().equals(other.getClass())) {
6511
        return getClass().getName().compareTo(other.getClass().getName());
6512
      }
6513
 
6514
      int lastComparison = 0;
6515
      updateMessage_args typedOther = (updateMessage_args)other;
6516
 
3430 rajveer 6517
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6518
      if (lastComparison != 0) {
6519
        return lastComparison;
6520
      }
3430 rajveer 6521
      if (isSetId()) {
6522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6523
        if (lastComparison != 0) {
6524
          return lastComparison;
6525
        }
352 ashish 6526
      }
3430 rajveer 6527
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6528
      if (lastComparison != 0) {
6529
        return lastComparison;
6530
      }
3430 rajveer 6531
      if (isSetMessage()) {
6532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6533
        if (lastComparison != 0) {
6534
          return lastComparison;
6535
        }
352 ashish 6536
      }
6537
      return 0;
6538
    }
6539
 
3430 rajveer 6540
    public _Fields fieldForId(int fieldId) {
6541
      return _Fields.findByThriftId(fieldId);
6542
    }
6543
 
6544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6545
      org.apache.thrift.protocol.TField field;
352 ashish 6546
      iprot.readStructBegin();
6547
      while (true)
6548
      {
6549
        field = iprot.readFieldBegin();
3430 rajveer 6550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6551
          break;
6552
        }
3430 rajveer 6553
        switch (field.id) {
6554
          case 1: // ID
6555
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6556
              this.id = iprot.readI64();
6557
              setIdIsSet(true);
6558
            } else { 
6559
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6560
            }
6561
            break;
6562
          case 2: // MESSAGE
6563
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6564
              this.message = iprot.readString();
6565
            } else { 
6566
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6567
            }
6568
            break;
6569
          default:
6570
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6571
        }
3430 rajveer 6572
        iprot.readFieldEnd();
352 ashish 6573
      }
6574
      iprot.readStructEnd();
6575
      validate();
6576
    }
6577
 
3430 rajveer 6578
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6579
      validate();
6580
 
6581
      oprot.writeStructBegin(STRUCT_DESC);
6582
      oprot.writeFieldBegin(ID_FIELD_DESC);
6583
      oprot.writeI64(this.id);
6584
      oprot.writeFieldEnd();
6585
      if (this.message != null) {
6586
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6587
        oprot.writeString(this.message);
6588
        oprot.writeFieldEnd();
6589
      }
6590
      oprot.writeFieldStop();
6591
      oprot.writeStructEnd();
6592
    }
6593
 
6594
    @Override
6595
    public String toString() {
6596
      StringBuilder sb = new StringBuilder("updateMessage_args(");
6597
      boolean first = true;
6598
 
6599
      sb.append("id:");
6600
      sb.append(this.id);
6601
      first = false;
6602
      if (!first) sb.append(", ");
6603
      sb.append("message:");
6604
      if (this.message == null) {
6605
        sb.append("null");
6606
      } else {
6607
        sb.append(this.message);
6608
      }
6609
      first = false;
6610
      sb.append(")");
6611
      return sb.toString();
6612
    }
6613
 
3430 rajveer 6614
    public void validate() throws org.apache.thrift.TException {
352 ashish 6615
      // check for required fields
6616
    }
6617
 
3430 rajveer 6618
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6619
      try {
6620
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6621
      } catch (org.apache.thrift.TException te) {
6622
        throw new java.io.IOException(te);
6623
      }
6624
    }
6625
 
6626
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6627
      try {
6628
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6629
        __isset_bit_vector = new BitSet(1);
6630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6631
      } catch (org.apache.thrift.TException te) {
6632
        throw new java.io.IOException(te);
6633
      }
6634
    }
6635
 
352 ashish 6636
  }
6637
 
3430 rajveer 6638
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
6639
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 6640
 
3430 rajveer 6641
    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 6642
 
3430 rajveer 6643
    private HelperServiceException se; // required
352 ashish 6644
 
6645
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6646
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6647
      SE((short)1, "se");
6648
 
6649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6650
 
6651
      static {
6652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6653
          byName.put(field.getFieldName(), field);
6654
        }
6655
      }
6656
 
6657
      /**
6658
       * Find the _Fields constant that matches fieldId, or null if its not found.
6659
       */
6660
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6661
        switch(fieldId) {
6662
          case 1: // SE
6663
            return SE;
6664
          default:
6665
            return null;
6666
        }
352 ashish 6667
      }
6668
 
6669
      /**
6670
       * Find the _Fields constant that matches fieldId, throwing an exception
6671
       * if it is not found.
6672
       */
6673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6674
        _Fields fields = findByThriftId(fieldId);
6675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6676
        return fields;
6677
      }
6678
 
6679
      /**
6680
       * Find the _Fields constant that matches name, or null if its not found.
6681
       */
6682
      public static _Fields findByName(String name) {
6683
        return byName.get(name);
6684
      }
6685
 
6686
      private final short _thriftId;
6687
      private final String _fieldName;
6688
 
6689
      _Fields(short thriftId, String fieldName) {
6690
        _thriftId = thriftId;
6691
        _fieldName = fieldName;
6692
      }
6693
 
6694
      public short getThriftFieldId() {
6695
        return _thriftId;
6696
      }
6697
 
6698
      public String getFieldName() {
6699
        return _fieldName;
6700
      }
6701
    }
6702
 
6703
    // isset id assignments
6704
 
3430 rajveer 6705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6706
    static {
3430 rajveer 6707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6708
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 6712
    }
6713
 
6714
    public updateMessage_result() {
6715
    }
6716
 
6717
    public updateMessage_result(
6718
      HelperServiceException se)
6719
    {
6720
      this();
6721
      this.se = se;
6722
    }
6723
 
6724
    /**
6725
     * Performs a deep copy on <i>other</i>.
6726
     */
6727
    public updateMessage_result(updateMessage_result other) {
6728
      if (other.isSetSe()) {
6729
        this.se = new HelperServiceException(other.se);
6730
      }
6731
    }
6732
 
6733
    public updateMessage_result deepCopy() {
6734
      return new updateMessage_result(this);
6735
    }
6736
 
3430 rajveer 6737
    @Override
6738
    public void clear() {
6739
      this.se = null;
352 ashish 6740
    }
6741
 
6742
    public HelperServiceException getSe() {
6743
      return this.se;
6744
    }
6745
 
3430 rajveer 6746
    public void setSe(HelperServiceException se) {
352 ashish 6747
      this.se = se;
6748
    }
6749
 
6750
    public void unsetSe() {
6751
      this.se = null;
6752
    }
6753
 
3430 rajveer 6754
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6755
    public boolean isSetSe() {
6756
      return this.se != null;
6757
    }
6758
 
6759
    public void setSeIsSet(boolean value) {
6760
      if (!value) {
6761
        this.se = null;
6762
      }
6763
    }
6764
 
6765
    public void setFieldValue(_Fields field, Object value) {
6766
      switch (field) {
6767
      case SE:
6768
        if (value == null) {
6769
          unsetSe();
6770
        } else {
6771
          setSe((HelperServiceException)value);
6772
        }
6773
        break;
6774
 
6775
      }
6776
    }
6777
 
6778
    public Object getFieldValue(_Fields field) {
6779
      switch (field) {
6780
      case SE:
6781
        return getSe();
6782
 
6783
      }
6784
      throw new IllegalStateException();
6785
    }
6786
 
3430 rajveer 6787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6788
    public boolean isSet(_Fields field) {
6789
      if (field == null) {
6790
        throw new IllegalArgumentException();
6791
      }
352 ashish 6792
 
6793
      switch (field) {
6794
      case SE:
6795
        return isSetSe();
6796
      }
6797
      throw new IllegalStateException();
6798
    }
6799
 
6800
    @Override
6801
    public boolean equals(Object that) {
6802
      if (that == null)
6803
        return false;
6804
      if (that instanceof updateMessage_result)
6805
        return this.equals((updateMessage_result)that);
6806
      return false;
6807
    }
6808
 
6809
    public boolean equals(updateMessage_result that) {
6810
      if (that == null)
6811
        return false;
6812
 
6813
      boolean this_present_se = true && this.isSetSe();
6814
      boolean that_present_se = true && that.isSetSe();
6815
      if (this_present_se || that_present_se) {
6816
        if (!(this_present_se && that_present_se))
6817
          return false;
6818
        if (!this.se.equals(that.se))
6819
          return false;
6820
      }
6821
 
6822
      return true;
6823
    }
6824
 
6825
    @Override
6826
    public int hashCode() {
6827
      return 0;
6828
    }
6829
 
6830
    public int compareTo(updateMessage_result other) {
6831
      if (!getClass().equals(other.getClass())) {
6832
        return getClass().getName().compareTo(other.getClass().getName());
6833
      }
6834
 
6835
      int lastComparison = 0;
6836
      updateMessage_result typedOther = (updateMessage_result)other;
6837
 
3430 rajveer 6838
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6839
      if (lastComparison != 0) {
6840
        return lastComparison;
6841
      }
3430 rajveer 6842
      if (isSetSe()) {
6843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6844
        if (lastComparison != 0) {
6845
          return lastComparison;
6846
        }
352 ashish 6847
      }
6848
      return 0;
6849
    }
6850
 
3430 rajveer 6851
    public _Fields fieldForId(int fieldId) {
6852
      return _Fields.findByThriftId(fieldId);
6853
    }
6854
 
6855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6856
      org.apache.thrift.protocol.TField field;
352 ashish 6857
      iprot.readStructBegin();
6858
      while (true)
6859
      {
6860
        field = iprot.readFieldBegin();
3430 rajveer 6861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6862
          break;
6863
        }
3430 rajveer 6864
        switch (field.id) {
6865
          case 1: // SE
6866
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6867
              this.se = new HelperServiceException();
6868
              this.se.read(iprot);
6869
            } else { 
6870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6871
            }
6872
            break;
6873
          default:
6874
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6875
        }
3430 rajveer 6876
        iprot.readFieldEnd();
352 ashish 6877
      }
6878
      iprot.readStructEnd();
6879
      validate();
6880
    }
6881
 
3430 rajveer 6882
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6883
      oprot.writeStructBegin(STRUCT_DESC);
6884
 
6885
      if (this.isSetSe()) {
6886
        oprot.writeFieldBegin(SE_FIELD_DESC);
6887
        this.se.write(oprot);
6888
        oprot.writeFieldEnd();
6889
      }
6890
      oprot.writeFieldStop();
6891
      oprot.writeStructEnd();
6892
    }
6893
 
6894
    @Override
6895
    public String toString() {
6896
      StringBuilder sb = new StringBuilder("updateMessage_result(");
6897
      boolean first = true;
6898
 
6899
      sb.append("se:");
6900
      if (this.se == null) {
6901
        sb.append("null");
6902
      } else {
6903
        sb.append(this.se);
6904
      }
6905
      first = false;
6906
      sb.append(")");
6907
      return sb.toString();
6908
    }
6909
 
3430 rajveer 6910
    public void validate() throws org.apache.thrift.TException {
352 ashish 6911
      // check for required fields
6912
    }
6913
 
3430 rajveer 6914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6915
      try {
6916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6917
      } catch (org.apache.thrift.TException te) {
6918
        throw new java.io.IOException(te);
6919
      }
6920
    }
6921
 
6922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6923
      try {
6924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6925
      } catch (org.apache.thrift.TException te) {
6926
        throw new java.io.IOException(te);
6927
      }
6928
    }
6929
 
352 ashish 6930
  }
6931
 
3430 rajveer 6932
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
6933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 6934
 
3430 rajveer 6935
    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 6936
 
3430 rajveer 6937
    private long id; // required
352 ashish 6938
 
6939
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6940
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6941
      ID((short)1, "id");
6942
 
6943
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6944
 
6945
      static {
6946
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6947
          byName.put(field.getFieldName(), field);
6948
        }
6949
      }
6950
 
6951
      /**
6952
       * Find the _Fields constant that matches fieldId, or null if its not found.
6953
       */
6954
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6955
        switch(fieldId) {
6956
          case 1: // ID
6957
            return ID;
6958
          default:
6959
            return null;
6960
        }
352 ashish 6961
      }
6962
 
6963
      /**
6964
       * Find the _Fields constant that matches fieldId, throwing an exception
6965
       * if it is not found.
6966
       */
6967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6968
        _Fields fields = findByThriftId(fieldId);
6969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6970
        return fields;
6971
      }
6972
 
6973
      /**
6974
       * Find the _Fields constant that matches name, or null if its not found.
6975
       */
6976
      public static _Fields findByName(String name) {
6977
        return byName.get(name);
6978
      }
6979
 
6980
      private final short _thriftId;
6981
      private final String _fieldName;
6982
 
6983
      _Fields(short thriftId, String fieldName) {
6984
        _thriftId = thriftId;
6985
        _fieldName = fieldName;
6986
      }
6987
 
6988
      public short getThriftFieldId() {
6989
        return _thriftId;
6990
      }
6991
 
6992
      public String getFieldName() {
6993
        return _fieldName;
6994
      }
6995
    }
6996
 
6997
    // isset id assignments
6998
    private static final int __ID_ISSET_ID = 0;
6999
    private BitSet __isset_bit_vector = new BitSet(1);
7000
 
3430 rajveer 7001
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7002
    static {
3430 rajveer 7003
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7004
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7005
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7006
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7007
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7008
    }
7009
 
7010
    public getMessage_args() {
7011
    }
7012
 
7013
    public getMessage_args(
7014
      long id)
7015
    {
7016
      this();
7017
      this.id = id;
7018
      setIdIsSet(true);
7019
    }
7020
 
7021
    /**
7022
     * Performs a deep copy on <i>other</i>.
7023
     */
7024
    public getMessage_args(getMessage_args other) {
7025
      __isset_bit_vector.clear();
7026
      __isset_bit_vector.or(other.__isset_bit_vector);
7027
      this.id = other.id;
7028
    }
7029
 
7030
    public getMessage_args deepCopy() {
7031
      return new getMessage_args(this);
7032
    }
7033
 
3430 rajveer 7034
    @Override
7035
    public void clear() {
7036
      setIdIsSet(false);
7037
      this.id = 0;
352 ashish 7038
    }
7039
 
7040
    public long getId() {
7041
      return this.id;
7042
    }
7043
 
3430 rajveer 7044
    public void setId(long id) {
352 ashish 7045
      this.id = id;
7046
      setIdIsSet(true);
7047
    }
7048
 
7049
    public void unsetId() {
7050
      __isset_bit_vector.clear(__ID_ISSET_ID);
7051
    }
7052
 
3430 rajveer 7053
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7054
    public boolean isSetId() {
7055
      return __isset_bit_vector.get(__ID_ISSET_ID);
7056
    }
7057
 
7058
    public void setIdIsSet(boolean value) {
7059
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7060
    }
7061
 
7062
    public void setFieldValue(_Fields field, Object value) {
7063
      switch (field) {
7064
      case ID:
7065
        if (value == null) {
7066
          unsetId();
7067
        } else {
7068
          setId((Long)value);
7069
        }
7070
        break;
7071
 
7072
      }
7073
    }
7074
 
7075
    public Object getFieldValue(_Fields field) {
7076
      switch (field) {
7077
      case ID:
3430 rajveer 7078
        return Long.valueOf(getId());
352 ashish 7079
 
7080
      }
7081
      throw new IllegalStateException();
7082
    }
7083
 
3430 rajveer 7084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7085
    public boolean isSet(_Fields field) {
7086
      if (field == null) {
7087
        throw new IllegalArgumentException();
7088
      }
352 ashish 7089
 
7090
      switch (field) {
7091
      case ID:
7092
        return isSetId();
7093
      }
7094
      throw new IllegalStateException();
7095
    }
7096
 
7097
    @Override
7098
    public boolean equals(Object that) {
7099
      if (that == null)
7100
        return false;
7101
      if (that instanceof getMessage_args)
7102
        return this.equals((getMessage_args)that);
7103
      return false;
7104
    }
7105
 
7106
    public boolean equals(getMessage_args that) {
7107
      if (that == null)
7108
        return false;
7109
 
7110
      boolean this_present_id = true;
7111
      boolean that_present_id = true;
7112
      if (this_present_id || that_present_id) {
7113
        if (!(this_present_id && that_present_id))
7114
          return false;
7115
        if (this.id != that.id)
7116
          return false;
7117
      }
7118
 
7119
      return true;
7120
    }
7121
 
7122
    @Override
7123
    public int hashCode() {
7124
      return 0;
7125
    }
7126
 
7127
    public int compareTo(getMessage_args other) {
7128
      if (!getClass().equals(other.getClass())) {
7129
        return getClass().getName().compareTo(other.getClass().getName());
7130
      }
7131
 
7132
      int lastComparison = 0;
7133
      getMessage_args typedOther = (getMessage_args)other;
7134
 
3430 rajveer 7135
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7136
      if (lastComparison != 0) {
7137
        return lastComparison;
7138
      }
3430 rajveer 7139
      if (isSetId()) {
7140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7141
        if (lastComparison != 0) {
7142
          return lastComparison;
7143
        }
352 ashish 7144
      }
7145
      return 0;
7146
    }
7147
 
3430 rajveer 7148
    public _Fields fieldForId(int fieldId) {
7149
      return _Fields.findByThriftId(fieldId);
7150
    }
7151
 
7152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7153
      org.apache.thrift.protocol.TField field;
352 ashish 7154
      iprot.readStructBegin();
7155
      while (true)
7156
      {
7157
        field = iprot.readFieldBegin();
3430 rajveer 7158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7159
          break;
7160
        }
3430 rajveer 7161
        switch (field.id) {
7162
          case 1: // ID
7163
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7164
              this.id = iprot.readI64();
7165
              setIdIsSet(true);
7166
            } else { 
7167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7168
            }
7169
            break;
7170
          default:
7171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7172
        }
3430 rajveer 7173
        iprot.readFieldEnd();
352 ashish 7174
      }
7175
      iprot.readStructEnd();
7176
      validate();
7177
    }
7178
 
3430 rajveer 7179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7180
      validate();
7181
 
7182
      oprot.writeStructBegin(STRUCT_DESC);
7183
      oprot.writeFieldBegin(ID_FIELD_DESC);
7184
      oprot.writeI64(this.id);
7185
      oprot.writeFieldEnd();
7186
      oprot.writeFieldStop();
7187
      oprot.writeStructEnd();
7188
    }
7189
 
7190
    @Override
7191
    public String toString() {
7192
      StringBuilder sb = new StringBuilder("getMessage_args(");
7193
      boolean first = true;
7194
 
7195
      sb.append("id:");
7196
      sb.append(this.id);
7197
      first = false;
7198
      sb.append(")");
7199
      return sb.toString();
7200
    }
7201
 
3430 rajveer 7202
    public void validate() throws org.apache.thrift.TException {
352 ashish 7203
      // check for required fields
7204
    }
7205
 
3430 rajveer 7206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7207
      try {
7208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7209
      } catch (org.apache.thrift.TException te) {
7210
        throw new java.io.IOException(te);
7211
      }
7212
    }
7213
 
7214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7215
      try {
7216
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7217
        __isset_bit_vector = new BitSet(1);
7218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7219
      } catch (org.apache.thrift.TException te) {
7220
        throw new java.io.IOException(te);
7221
      }
7222
    }
7223
 
352 ashish 7224
  }
7225
 
3430 rajveer 7226
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7228
 
3430 rajveer 7229
    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);
7230
    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 7231
 
3430 rajveer 7232
    private Message success; // required
7233
    private HelperServiceException se; // required
352 ashish 7234
 
7235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7237
      SUCCESS((short)0, "success"),
7238
      SE((short)1, "se");
7239
 
7240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7241
 
7242
      static {
7243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7244
          byName.put(field.getFieldName(), field);
7245
        }
7246
      }
7247
 
7248
      /**
7249
       * Find the _Fields constant that matches fieldId, or null if its not found.
7250
       */
7251
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7252
        switch(fieldId) {
7253
          case 0: // SUCCESS
7254
            return SUCCESS;
7255
          case 1: // SE
7256
            return SE;
7257
          default:
7258
            return null;
7259
        }
352 ashish 7260
      }
7261
 
7262
      /**
7263
       * Find the _Fields constant that matches fieldId, throwing an exception
7264
       * if it is not found.
7265
       */
7266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7267
        _Fields fields = findByThriftId(fieldId);
7268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7269
        return fields;
7270
      }
7271
 
7272
      /**
7273
       * Find the _Fields constant that matches name, or null if its not found.
7274
       */
7275
      public static _Fields findByName(String name) {
7276
        return byName.get(name);
7277
      }
7278
 
7279
      private final short _thriftId;
7280
      private final String _fieldName;
7281
 
7282
      _Fields(short thriftId, String fieldName) {
7283
        _thriftId = thriftId;
7284
        _fieldName = fieldName;
7285
      }
7286
 
7287
      public short getThriftFieldId() {
7288
        return _thriftId;
7289
      }
7290
 
7291
      public String getFieldName() {
7292
        return _fieldName;
7293
      }
7294
    }
7295
 
7296
    // isset id assignments
7297
 
3430 rajveer 7298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7299
    static {
3430 rajveer 7300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7301
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7302
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7303
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 7307
    }
7308
 
7309
    public getMessage_result() {
7310
    }
7311
 
7312
    public getMessage_result(
7313
      Message success,
7314
      HelperServiceException se)
7315
    {
7316
      this();
7317
      this.success = success;
7318
      this.se = se;
7319
    }
7320
 
7321
    /**
7322
     * Performs a deep copy on <i>other</i>.
7323
     */
7324
    public getMessage_result(getMessage_result other) {
7325
      if (other.isSetSuccess()) {
7326
        this.success = new Message(other.success);
7327
      }
7328
      if (other.isSetSe()) {
7329
        this.se = new HelperServiceException(other.se);
7330
      }
7331
    }
7332
 
7333
    public getMessage_result deepCopy() {
7334
      return new getMessage_result(this);
7335
    }
7336
 
3430 rajveer 7337
    @Override
7338
    public void clear() {
7339
      this.success = null;
7340
      this.se = null;
352 ashish 7341
    }
7342
 
7343
    public Message getSuccess() {
7344
      return this.success;
7345
    }
7346
 
3430 rajveer 7347
    public void setSuccess(Message success) {
352 ashish 7348
      this.success = success;
7349
    }
7350
 
7351
    public void unsetSuccess() {
7352
      this.success = null;
7353
    }
7354
 
3430 rajveer 7355
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7356
    public boolean isSetSuccess() {
7357
      return this.success != null;
7358
    }
7359
 
7360
    public void setSuccessIsSet(boolean value) {
7361
      if (!value) {
7362
        this.success = null;
7363
      }
7364
    }
7365
 
7366
    public HelperServiceException getSe() {
7367
      return this.se;
7368
    }
7369
 
3430 rajveer 7370
    public void setSe(HelperServiceException se) {
352 ashish 7371
      this.se = se;
7372
    }
7373
 
7374
    public void unsetSe() {
7375
      this.se = null;
7376
    }
7377
 
3430 rajveer 7378
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7379
    public boolean isSetSe() {
7380
      return this.se != null;
7381
    }
7382
 
7383
    public void setSeIsSet(boolean value) {
7384
      if (!value) {
7385
        this.se = null;
7386
      }
7387
    }
7388
 
7389
    public void setFieldValue(_Fields field, Object value) {
7390
      switch (field) {
7391
      case SUCCESS:
7392
        if (value == null) {
7393
          unsetSuccess();
7394
        } else {
7395
          setSuccess((Message)value);
7396
        }
7397
        break;
7398
 
7399
      case SE:
7400
        if (value == null) {
7401
          unsetSe();
7402
        } else {
7403
          setSe((HelperServiceException)value);
7404
        }
7405
        break;
7406
 
7407
      }
7408
    }
7409
 
7410
    public Object getFieldValue(_Fields field) {
7411
      switch (field) {
7412
      case SUCCESS:
7413
        return getSuccess();
7414
 
7415
      case SE:
7416
        return getSe();
7417
 
7418
      }
7419
      throw new IllegalStateException();
7420
    }
7421
 
3430 rajveer 7422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7423
    public boolean isSet(_Fields field) {
7424
      if (field == null) {
7425
        throw new IllegalArgumentException();
7426
      }
352 ashish 7427
 
7428
      switch (field) {
7429
      case SUCCESS:
7430
        return isSetSuccess();
7431
      case SE:
7432
        return isSetSe();
7433
      }
7434
      throw new IllegalStateException();
7435
    }
7436
 
7437
    @Override
7438
    public boolean equals(Object that) {
7439
      if (that == null)
7440
        return false;
7441
      if (that instanceof getMessage_result)
7442
        return this.equals((getMessage_result)that);
7443
      return false;
7444
    }
7445
 
7446
    public boolean equals(getMessage_result that) {
7447
      if (that == null)
7448
        return false;
7449
 
7450
      boolean this_present_success = true && this.isSetSuccess();
7451
      boolean that_present_success = true && that.isSetSuccess();
7452
      if (this_present_success || that_present_success) {
7453
        if (!(this_present_success && that_present_success))
7454
          return false;
7455
        if (!this.success.equals(that.success))
7456
          return false;
7457
      }
7458
 
7459
      boolean this_present_se = true && this.isSetSe();
7460
      boolean that_present_se = true && that.isSetSe();
7461
      if (this_present_se || that_present_se) {
7462
        if (!(this_present_se && that_present_se))
7463
          return false;
7464
        if (!this.se.equals(that.se))
7465
          return false;
7466
      }
7467
 
7468
      return true;
7469
    }
7470
 
7471
    @Override
7472
    public int hashCode() {
7473
      return 0;
7474
    }
7475
 
7476
    public int compareTo(getMessage_result other) {
7477
      if (!getClass().equals(other.getClass())) {
7478
        return getClass().getName().compareTo(other.getClass().getName());
7479
      }
7480
 
7481
      int lastComparison = 0;
7482
      getMessage_result typedOther = (getMessage_result)other;
7483
 
3430 rajveer 7484
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7485
      if (lastComparison != 0) {
7486
        return lastComparison;
7487
      }
3430 rajveer 7488
      if (isSetSuccess()) {
7489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7490
        if (lastComparison != 0) {
7491
          return lastComparison;
7492
        }
352 ashish 7493
      }
3430 rajveer 7494
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7495
      if (lastComparison != 0) {
7496
        return lastComparison;
7497
      }
3430 rajveer 7498
      if (isSetSe()) {
7499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7500
        if (lastComparison != 0) {
7501
          return lastComparison;
7502
        }
352 ashish 7503
      }
7504
      return 0;
7505
    }
7506
 
3430 rajveer 7507
    public _Fields fieldForId(int fieldId) {
7508
      return _Fields.findByThriftId(fieldId);
7509
    }
7510
 
7511
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7512
      org.apache.thrift.protocol.TField field;
352 ashish 7513
      iprot.readStructBegin();
7514
      while (true)
7515
      {
7516
        field = iprot.readFieldBegin();
3430 rajveer 7517
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7518
          break;
7519
        }
3430 rajveer 7520
        switch (field.id) {
7521
          case 0: // SUCCESS
7522
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7523
              this.success = new Message();
7524
              this.success.read(iprot);
7525
            } else { 
7526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7527
            }
7528
            break;
7529
          case 1: // SE
7530
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7531
              this.se = new HelperServiceException();
7532
              this.se.read(iprot);
7533
            } else { 
7534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7535
            }
7536
            break;
7537
          default:
7538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7539
        }
3430 rajveer 7540
        iprot.readFieldEnd();
352 ashish 7541
      }
7542
      iprot.readStructEnd();
7543
      validate();
7544
    }
7545
 
3430 rajveer 7546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7547
      oprot.writeStructBegin(STRUCT_DESC);
7548
 
7549
      if (this.isSetSuccess()) {
7550
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7551
        this.success.write(oprot);
7552
        oprot.writeFieldEnd();
7553
      } else if (this.isSetSe()) {
7554
        oprot.writeFieldBegin(SE_FIELD_DESC);
7555
        this.se.write(oprot);
7556
        oprot.writeFieldEnd();
7557
      }
7558
      oprot.writeFieldStop();
7559
      oprot.writeStructEnd();
7560
    }
7561
 
7562
    @Override
7563
    public String toString() {
7564
      StringBuilder sb = new StringBuilder("getMessage_result(");
7565
      boolean first = true;
7566
 
7567
      sb.append("success:");
7568
      if (this.success == null) {
7569
        sb.append("null");
7570
      } else {
7571
        sb.append(this.success);
7572
      }
7573
      first = false;
7574
      if (!first) sb.append(", ");
7575
      sb.append("se:");
7576
      if (this.se == null) {
7577
        sb.append("null");
7578
      } else {
7579
        sb.append(this.se);
7580
      }
7581
      first = false;
7582
      sb.append(")");
7583
      return sb.toString();
7584
    }
7585
 
3430 rajveer 7586
    public void validate() throws org.apache.thrift.TException {
352 ashish 7587
      // check for required fields
7588
    }
7589
 
3430 rajveer 7590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7591
      try {
7592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7593
      } catch (org.apache.thrift.TException te) {
7594
        throw new java.io.IOException(te);
7595
      }
7596
    }
7597
 
7598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7599
      try {
7600
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7601
      } catch (org.apache.thrift.TException te) {
7602
        throw new java.io.IOException(te);
7603
      }
7604
    }
7605
 
352 ashish 7606
  }
7607
 
3430 rajveer 7608
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 7610
 
3430 rajveer 7611
    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);
7612
    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 7613
 
3430 rajveer 7614
    private long id; // required
7615
    private Map<String,String> params; // required
352 ashish 7616
 
7617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7619
      ID((short)1, "id"),
7620
      PARAMS((short)2, "params");
7621
 
7622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7623
 
7624
      static {
7625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7626
          byName.put(field.getFieldName(), field);
7627
        }
7628
      }
7629
 
7630
      /**
7631
       * Find the _Fields constant that matches fieldId, or null if its not found.
7632
       */
7633
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7634
        switch(fieldId) {
7635
          case 1: // ID
7636
            return ID;
7637
          case 2: // PARAMS
7638
            return PARAMS;
7639
          default:
7640
            return null;
7641
        }
352 ashish 7642
      }
7643
 
7644
      /**
7645
       * Find the _Fields constant that matches fieldId, throwing an exception
7646
       * if it is not found.
7647
       */
7648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7649
        _Fields fields = findByThriftId(fieldId);
7650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7651
        return fields;
7652
      }
7653
 
7654
      /**
7655
       * Find the _Fields constant that matches name, or null if its not found.
7656
       */
7657
      public static _Fields findByName(String name) {
7658
        return byName.get(name);
7659
      }
7660
 
7661
      private final short _thriftId;
7662
      private final String _fieldName;
7663
 
7664
      _Fields(short thriftId, String fieldName) {
7665
        _thriftId = thriftId;
7666
        _fieldName = fieldName;
7667
      }
7668
 
7669
      public short getThriftFieldId() {
7670
        return _thriftId;
7671
      }
7672
 
7673
      public String getFieldName() {
7674
        return _fieldName;
7675
      }
7676
    }
7677
 
7678
    // isset id assignments
7679
    private static final int __ID_ISSET_ID = 0;
7680
    private BitSet __isset_bit_vector = new BitSet(1);
7681
 
3430 rajveer 7682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7683
    static {
3430 rajveer 7684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7685
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7687
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7688
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7689
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7690
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 7693
    }
7694
 
7695
    public getSubstitutedMessage_args() {
7696
    }
7697
 
7698
    public getSubstitutedMessage_args(
7699
      long id,
7700
      Map<String,String> params)
7701
    {
7702
      this();
7703
      this.id = id;
7704
      setIdIsSet(true);
7705
      this.params = params;
7706
    }
7707
 
7708
    /**
7709
     * Performs a deep copy on <i>other</i>.
7710
     */
7711
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
7712
      __isset_bit_vector.clear();
7713
      __isset_bit_vector.or(other.__isset_bit_vector);
7714
      this.id = other.id;
7715
      if (other.isSetParams()) {
7716
        Map<String,String> __this__params = new HashMap<String,String>();
7717
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
7718
 
7719
          String other_element_key = other_element.getKey();
7720
          String other_element_value = other_element.getValue();
7721
 
7722
          String __this__params_copy_key = other_element_key;
7723
 
7724
          String __this__params_copy_value = other_element_value;
7725
 
7726
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
7727
        }
7728
        this.params = __this__params;
7729
      }
7730
    }
7731
 
7732
    public getSubstitutedMessage_args deepCopy() {
7733
      return new getSubstitutedMessage_args(this);
7734
    }
7735
 
3430 rajveer 7736
    @Override
7737
    public void clear() {
7738
      setIdIsSet(false);
7739
      this.id = 0;
7740
      this.params = null;
352 ashish 7741
    }
7742
 
7743
    public long getId() {
7744
      return this.id;
7745
    }
7746
 
3430 rajveer 7747
    public void setId(long id) {
352 ashish 7748
      this.id = id;
7749
      setIdIsSet(true);
7750
    }
7751
 
7752
    public void unsetId() {
7753
      __isset_bit_vector.clear(__ID_ISSET_ID);
7754
    }
7755
 
3430 rajveer 7756
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7757
    public boolean isSetId() {
7758
      return __isset_bit_vector.get(__ID_ISSET_ID);
7759
    }
7760
 
7761
    public void setIdIsSet(boolean value) {
7762
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7763
    }
7764
 
7765
    public int getParamsSize() {
7766
      return (this.params == null) ? 0 : this.params.size();
7767
    }
7768
 
7769
    public void putToParams(String key, String val) {
7770
      if (this.params == null) {
7771
        this.params = new HashMap<String,String>();
7772
      }
7773
      this.params.put(key, val);
7774
    }
7775
 
7776
    public Map<String,String> getParams() {
7777
      return this.params;
7778
    }
7779
 
3430 rajveer 7780
    public void setParams(Map<String,String> params) {
352 ashish 7781
      this.params = params;
7782
    }
7783
 
7784
    public void unsetParams() {
7785
      this.params = null;
7786
    }
7787
 
3430 rajveer 7788
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 7789
    public boolean isSetParams() {
7790
      return this.params != null;
7791
    }
7792
 
7793
    public void setParamsIsSet(boolean value) {
7794
      if (!value) {
7795
        this.params = null;
7796
      }
7797
    }
7798
 
7799
    public void setFieldValue(_Fields field, Object value) {
7800
      switch (field) {
7801
      case ID:
7802
        if (value == null) {
7803
          unsetId();
7804
        } else {
7805
          setId((Long)value);
7806
        }
7807
        break;
7808
 
7809
      case PARAMS:
7810
        if (value == null) {
7811
          unsetParams();
7812
        } else {
7813
          setParams((Map<String,String>)value);
7814
        }
7815
        break;
7816
 
7817
      }
7818
    }
7819
 
7820
    public Object getFieldValue(_Fields field) {
7821
      switch (field) {
7822
      case ID:
3430 rajveer 7823
        return Long.valueOf(getId());
352 ashish 7824
 
7825
      case PARAMS:
7826
        return getParams();
7827
 
7828
      }
7829
      throw new IllegalStateException();
7830
    }
7831
 
3430 rajveer 7832
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7833
    public boolean isSet(_Fields field) {
7834
      if (field == null) {
7835
        throw new IllegalArgumentException();
7836
      }
352 ashish 7837
 
7838
      switch (field) {
7839
      case ID:
7840
        return isSetId();
7841
      case PARAMS:
7842
        return isSetParams();
7843
      }
7844
      throw new IllegalStateException();
7845
    }
7846
 
7847
    @Override
7848
    public boolean equals(Object that) {
7849
      if (that == null)
7850
        return false;
7851
      if (that instanceof getSubstitutedMessage_args)
7852
        return this.equals((getSubstitutedMessage_args)that);
7853
      return false;
7854
    }
7855
 
7856
    public boolean equals(getSubstitutedMessage_args that) {
7857
      if (that == null)
7858
        return false;
7859
 
7860
      boolean this_present_id = true;
7861
      boolean that_present_id = true;
7862
      if (this_present_id || that_present_id) {
7863
        if (!(this_present_id && that_present_id))
7864
          return false;
7865
        if (this.id != that.id)
7866
          return false;
7867
      }
7868
 
7869
      boolean this_present_params = true && this.isSetParams();
7870
      boolean that_present_params = true && that.isSetParams();
7871
      if (this_present_params || that_present_params) {
7872
        if (!(this_present_params && that_present_params))
7873
          return false;
7874
        if (!this.params.equals(that.params))
7875
          return false;
7876
      }
7877
 
7878
      return true;
7879
    }
7880
 
7881
    @Override
7882
    public int hashCode() {
7883
      return 0;
7884
    }
7885
 
3430 rajveer 7886
    public int compareTo(getSubstitutedMessage_args other) {
7887
      if (!getClass().equals(other.getClass())) {
7888
        return getClass().getName().compareTo(other.getClass().getName());
7889
      }
7890
 
7891
      int lastComparison = 0;
7892
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
7893
 
7894
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
7895
      if (lastComparison != 0) {
7896
        return lastComparison;
7897
      }
7898
      if (isSetId()) {
7899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7900
        if (lastComparison != 0) {
7901
          return lastComparison;
7902
        }
7903
      }
7904
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
7905
      if (lastComparison != 0) {
7906
        return lastComparison;
7907
      }
7908
      if (isSetParams()) {
7909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
7910
        if (lastComparison != 0) {
7911
          return lastComparison;
7912
        }
7913
      }
7914
      return 0;
7915
    }
7916
 
7917
    public _Fields fieldForId(int fieldId) {
7918
      return _Fields.findByThriftId(fieldId);
7919
    }
7920
 
7921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7922
      org.apache.thrift.protocol.TField field;
352 ashish 7923
      iprot.readStructBegin();
7924
      while (true)
7925
      {
7926
        field = iprot.readFieldBegin();
3430 rajveer 7927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7928
          break;
7929
        }
3430 rajveer 7930
        switch (field.id) {
7931
          case 1: // ID
7932
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7933
              this.id = iprot.readI64();
7934
              setIdIsSet(true);
7935
            } else { 
7936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7937
            }
7938
            break;
7939
          case 2: // PARAMS
7940
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
7941
              {
7942
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
7943
                this.params = new HashMap<String,String>(2*_map12.size);
7944
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
352 ashish 7945
                {
3430 rajveer 7946
                  String _key14; // required
7947
                  String _val15; // required
7948
                  _key14 = iprot.readString();
7949
                  _val15 = iprot.readString();
7950
                  this.params.put(_key14, _val15);
352 ashish 7951
                }
3430 rajveer 7952
                iprot.readMapEnd();
352 ashish 7953
              }
3430 rajveer 7954
            } else { 
7955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7956
            }
7957
            break;
7958
          default:
7959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7960
        }
3430 rajveer 7961
        iprot.readFieldEnd();
352 ashish 7962
      }
7963
      iprot.readStructEnd();
7964
      validate();
7965
    }
7966
 
3430 rajveer 7967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7968
      validate();
7969
 
7970
      oprot.writeStructBegin(STRUCT_DESC);
7971
      oprot.writeFieldBegin(ID_FIELD_DESC);
7972
      oprot.writeI64(this.id);
7973
      oprot.writeFieldEnd();
7974
      if (this.params != null) {
7975
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
7976
        {
3430 rajveer 7977
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
1422 varun.gupt 7978
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
352 ashish 7979
          {
1422 varun.gupt 7980
            oprot.writeString(_iter16.getKey());
7981
            oprot.writeString(_iter16.getValue());
352 ashish 7982
          }
7983
          oprot.writeMapEnd();
7984
        }
7985
        oprot.writeFieldEnd();
7986
      }
7987
      oprot.writeFieldStop();
7988
      oprot.writeStructEnd();
7989
    }
7990
 
7991
    @Override
7992
    public String toString() {
7993
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
7994
      boolean first = true;
7995
 
7996
      sb.append("id:");
7997
      sb.append(this.id);
7998
      first = false;
7999
      if (!first) sb.append(", ");
8000
      sb.append("params:");
8001
      if (this.params == null) {
8002
        sb.append("null");
8003
      } else {
8004
        sb.append(this.params);
8005
      }
8006
      first = false;
8007
      sb.append(")");
8008
      return sb.toString();
8009
    }
8010
 
3430 rajveer 8011
    public void validate() throws org.apache.thrift.TException {
352 ashish 8012
      // check for required fields
8013
    }
8014
 
3430 rajveer 8015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8016
      try {
8017
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8018
      } catch (org.apache.thrift.TException te) {
8019
        throw new java.io.IOException(te);
8020
      }
8021
    }
8022
 
8023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8024
      try {
8025
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8026
        __isset_bit_vector = new BitSet(1);
8027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8028
      } catch (org.apache.thrift.TException te) {
8029
        throw new java.io.IOException(te);
8030
      }
8031
    }
8032
 
352 ashish 8033
  }
8034
 
3430 rajveer 8035
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8037
 
3430 rajveer 8038
    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);
8039
    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 8040
 
3430 rajveer 8041
    private Message success; // required
8042
    private HelperServiceException se; // required
352 ashish 8043
 
8044
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8045
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8046
      SUCCESS((short)0, "success"),
8047
      SE((short)1, "se");
8048
 
8049
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8050
 
8051
      static {
8052
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8053
          byName.put(field.getFieldName(), field);
8054
        }
8055
      }
8056
 
8057
      /**
8058
       * Find the _Fields constant that matches fieldId, or null if its not found.
8059
       */
8060
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8061
        switch(fieldId) {
8062
          case 0: // SUCCESS
8063
            return SUCCESS;
8064
          case 1: // SE
8065
            return SE;
8066
          default:
8067
            return null;
8068
        }
352 ashish 8069
      }
8070
 
8071
      /**
8072
       * Find the _Fields constant that matches fieldId, throwing an exception
8073
       * if it is not found.
8074
       */
8075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8076
        _Fields fields = findByThriftId(fieldId);
8077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8078
        return fields;
8079
      }
8080
 
8081
      /**
8082
       * Find the _Fields constant that matches name, or null if its not found.
8083
       */
8084
      public static _Fields findByName(String name) {
8085
        return byName.get(name);
8086
      }
8087
 
8088
      private final short _thriftId;
8089
      private final String _fieldName;
8090
 
8091
      _Fields(short thriftId, String fieldName) {
8092
        _thriftId = thriftId;
8093
        _fieldName = fieldName;
8094
      }
8095
 
8096
      public short getThriftFieldId() {
8097
        return _thriftId;
8098
      }
8099
 
8100
      public String getFieldName() {
8101
        return _fieldName;
8102
      }
8103
    }
8104
 
8105
    // isset id assignments
8106
 
3430 rajveer 8107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8108
    static {
3430 rajveer 8109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8110
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8111
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8112
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8116
    }
8117
 
8118
    public getSubstitutedMessage_result() {
8119
    }
8120
 
8121
    public getSubstitutedMessage_result(
8122
      Message success,
8123
      HelperServiceException se)
8124
    {
8125
      this();
8126
      this.success = success;
8127
      this.se = se;
8128
    }
8129
 
8130
    /**
8131
     * Performs a deep copy on <i>other</i>.
8132
     */
8133
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8134
      if (other.isSetSuccess()) {
8135
        this.success = new Message(other.success);
8136
      }
8137
      if (other.isSetSe()) {
8138
        this.se = new HelperServiceException(other.se);
8139
      }
8140
    }
8141
 
8142
    public getSubstitutedMessage_result deepCopy() {
8143
      return new getSubstitutedMessage_result(this);
8144
    }
8145
 
3430 rajveer 8146
    @Override
8147
    public void clear() {
8148
      this.success = null;
8149
      this.se = null;
352 ashish 8150
    }
8151
 
8152
    public Message getSuccess() {
8153
      return this.success;
8154
    }
8155
 
3430 rajveer 8156
    public void setSuccess(Message success) {
352 ashish 8157
      this.success = success;
8158
    }
8159
 
8160
    public void unsetSuccess() {
8161
      this.success = null;
8162
    }
8163
 
3430 rajveer 8164
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8165
    public boolean isSetSuccess() {
8166
      return this.success != null;
8167
    }
8168
 
8169
    public void setSuccessIsSet(boolean value) {
8170
      if (!value) {
8171
        this.success = null;
8172
      }
8173
    }
8174
 
8175
    public HelperServiceException getSe() {
8176
      return this.se;
8177
    }
8178
 
3430 rajveer 8179
    public void setSe(HelperServiceException se) {
352 ashish 8180
      this.se = se;
8181
    }
8182
 
8183
    public void unsetSe() {
8184
      this.se = null;
8185
    }
8186
 
3430 rajveer 8187
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8188
    public boolean isSetSe() {
8189
      return this.se != null;
8190
    }
8191
 
8192
    public void setSeIsSet(boolean value) {
8193
      if (!value) {
8194
        this.se = null;
8195
      }
8196
    }
8197
 
8198
    public void setFieldValue(_Fields field, Object value) {
8199
      switch (field) {
8200
      case SUCCESS:
8201
        if (value == null) {
8202
          unsetSuccess();
8203
        } else {
8204
          setSuccess((Message)value);
8205
        }
8206
        break;
8207
 
8208
      case SE:
8209
        if (value == null) {
8210
          unsetSe();
8211
        } else {
8212
          setSe((HelperServiceException)value);
8213
        }
8214
        break;
8215
 
8216
      }
8217
    }
8218
 
8219
    public Object getFieldValue(_Fields field) {
8220
      switch (field) {
8221
      case SUCCESS:
8222
        return getSuccess();
8223
 
8224
      case SE:
8225
        return getSe();
8226
 
8227
      }
8228
      throw new IllegalStateException();
8229
    }
8230
 
3430 rajveer 8231
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8232
    public boolean isSet(_Fields field) {
8233
      if (field == null) {
8234
        throw new IllegalArgumentException();
8235
      }
352 ashish 8236
 
8237
      switch (field) {
8238
      case SUCCESS:
8239
        return isSetSuccess();
8240
      case SE:
8241
        return isSetSe();
8242
      }
8243
      throw new IllegalStateException();
8244
    }
8245
 
8246
    @Override
8247
    public boolean equals(Object that) {
8248
      if (that == null)
8249
        return false;
8250
      if (that instanceof getSubstitutedMessage_result)
8251
        return this.equals((getSubstitutedMessage_result)that);
8252
      return false;
8253
    }
8254
 
8255
    public boolean equals(getSubstitutedMessage_result that) {
8256
      if (that == null)
8257
        return false;
8258
 
8259
      boolean this_present_success = true && this.isSetSuccess();
8260
      boolean that_present_success = true && that.isSetSuccess();
8261
      if (this_present_success || that_present_success) {
8262
        if (!(this_present_success && that_present_success))
8263
          return false;
8264
        if (!this.success.equals(that.success))
8265
          return false;
8266
      }
8267
 
8268
      boolean this_present_se = true && this.isSetSe();
8269
      boolean that_present_se = true && that.isSetSe();
8270
      if (this_present_se || that_present_se) {
8271
        if (!(this_present_se && that_present_se))
8272
          return false;
8273
        if (!this.se.equals(that.se))
8274
          return false;
8275
      }
8276
 
8277
      return true;
8278
    }
8279
 
8280
    @Override
8281
    public int hashCode() {
8282
      return 0;
8283
    }
8284
 
8285
    public int compareTo(getSubstitutedMessage_result other) {
8286
      if (!getClass().equals(other.getClass())) {
8287
        return getClass().getName().compareTo(other.getClass().getName());
8288
      }
8289
 
8290
      int lastComparison = 0;
8291
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
8292
 
3430 rajveer 8293
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8294
      if (lastComparison != 0) {
8295
        return lastComparison;
8296
      }
3430 rajveer 8297
      if (isSetSuccess()) {
8298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8299
        if (lastComparison != 0) {
8300
          return lastComparison;
8301
        }
352 ashish 8302
      }
3430 rajveer 8303
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8304
      if (lastComparison != 0) {
8305
        return lastComparison;
8306
      }
3430 rajveer 8307
      if (isSetSe()) {
8308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8309
        if (lastComparison != 0) {
8310
          return lastComparison;
8311
        }
352 ashish 8312
      }
8313
      return 0;
8314
    }
8315
 
3430 rajveer 8316
    public _Fields fieldForId(int fieldId) {
8317
      return _Fields.findByThriftId(fieldId);
8318
    }
8319
 
8320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8321
      org.apache.thrift.protocol.TField field;
352 ashish 8322
      iprot.readStructBegin();
8323
      while (true)
8324
      {
8325
        field = iprot.readFieldBegin();
3430 rajveer 8326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8327
          break;
8328
        }
3430 rajveer 8329
        switch (field.id) {
8330
          case 0: // SUCCESS
8331
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8332
              this.success = new Message();
8333
              this.success.read(iprot);
8334
            } else { 
8335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8336
            }
8337
            break;
8338
          case 1: // SE
8339
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8340
              this.se = new HelperServiceException();
8341
              this.se.read(iprot);
8342
            } else { 
8343
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8344
            }
8345
            break;
8346
          default:
8347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8348
        }
3430 rajveer 8349
        iprot.readFieldEnd();
352 ashish 8350
      }
8351
      iprot.readStructEnd();
8352
      validate();
8353
    }
8354
 
3430 rajveer 8355
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8356
      oprot.writeStructBegin(STRUCT_DESC);
8357
 
8358
      if (this.isSetSuccess()) {
8359
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8360
        this.success.write(oprot);
8361
        oprot.writeFieldEnd();
8362
      } else if (this.isSetSe()) {
8363
        oprot.writeFieldBegin(SE_FIELD_DESC);
8364
        this.se.write(oprot);
8365
        oprot.writeFieldEnd();
8366
      }
8367
      oprot.writeFieldStop();
8368
      oprot.writeStructEnd();
8369
    }
8370
 
8371
    @Override
8372
    public String toString() {
8373
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
8374
      boolean first = true;
8375
 
8376
      sb.append("success:");
8377
      if (this.success == null) {
8378
        sb.append("null");
8379
      } else {
8380
        sb.append(this.success);
8381
      }
8382
      first = false;
8383
      if (!first) sb.append(", ");
8384
      sb.append("se:");
8385
      if (this.se == null) {
8386
        sb.append("null");
8387
      } else {
8388
        sb.append(this.se);
8389
      }
8390
      first = false;
8391
      sb.append(")");
8392
      return sb.toString();
8393
    }
8394
 
3430 rajveer 8395
    public void validate() throws org.apache.thrift.TException {
352 ashish 8396
      // check for required fields
8397
    }
8398
 
3430 rajveer 8399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8400
      try {
8401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8402
      } catch (org.apache.thrift.TException te) {
8403
        throw new java.io.IOException(te);
8404
      }
8405
    }
8406
 
8407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8408
      try {
8409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8410
      } catch (org.apache.thrift.TException te) {
8411
        throw new java.io.IOException(te);
8412
      }
8413
    }
8414
 
352 ashish 8415
  }
8416
 
3430 rajveer 8417
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
8418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 8419
 
3430 rajveer 8420
    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);
8421
    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);
8422
    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 8423
 
3430 rajveer 8424
    private String username; // required
8425
    private String password; // required
8426
    private long warehouseId; // required
495 rajveer 8427
 
8428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8430
      USERNAME((short)1, "username"),
8431
      PASSWORD((short)2, "password"),
8432
      WAREHOUSE_ID((short)3, "warehouseId");
8433
 
8434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8435
 
8436
      static {
8437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8438
          byName.put(field.getFieldName(), field);
8439
        }
8440
      }
8441
 
8442
      /**
8443
       * Find the _Fields constant that matches fieldId, or null if its not found.
8444
       */
8445
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8446
        switch(fieldId) {
8447
          case 1: // USERNAME
8448
            return USERNAME;
8449
          case 2: // PASSWORD
8450
            return PASSWORD;
8451
          case 3: // WAREHOUSE_ID
8452
            return WAREHOUSE_ID;
8453
          default:
8454
            return null;
8455
        }
495 rajveer 8456
      }
8457
 
8458
      /**
8459
       * Find the _Fields constant that matches fieldId, throwing an exception
8460
       * if it is not found.
8461
       */
8462
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8463
        _Fields fields = findByThriftId(fieldId);
8464
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8465
        return fields;
8466
      }
8467
 
8468
      /**
8469
       * Find the _Fields constant that matches name, or null if its not found.
8470
       */
8471
      public static _Fields findByName(String name) {
8472
        return byName.get(name);
8473
      }
8474
 
8475
      private final short _thriftId;
8476
      private final String _fieldName;
8477
 
8478
      _Fields(short thriftId, String fieldName) {
8479
        _thriftId = thriftId;
8480
        _fieldName = fieldName;
8481
      }
8482
 
8483
      public short getThriftFieldId() {
8484
        return _thriftId;
8485
      }
8486
 
8487
      public String getFieldName() {
8488
        return _fieldName;
8489
      }
8490
    }
8491
 
8492
    // isset id assignments
8493
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8494
    private BitSet __isset_bit_vector = new BitSet(1);
8495
 
3430 rajveer 8496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8497
    static {
3430 rajveer 8498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8499
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8501
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8503
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 8507
    }
8508
 
8509
    public addUser_args() {
8510
    }
8511
 
8512
    public addUser_args(
8513
      String username,
8514
      String password,
8515
      long warehouseId)
8516
    {
8517
      this();
8518
      this.username = username;
8519
      this.password = password;
8520
      this.warehouseId = warehouseId;
8521
      setWarehouseIdIsSet(true);
8522
    }
8523
 
8524
    /**
8525
     * Performs a deep copy on <i>other</i>.
8526
     */
8527
    public addUser_args(addUser_args other) {
8528
      __isset_bit_vector.clear();
8529
      __isset_bit_vector.or(other.__isset_bit_vector);
8530
      if (other.isSetUsername()) {
8531
        this.username = other.username;
8532
      }
8533
      if (other.isSetPassword()) {
8534
        this.password = other.password;
8535
      }
8536
      this.warehouseId = other.warehouseId;
8537
    }
8538
 
8539
    public addUser_args deepCopy() {
8540
      return new addUser_args(this);
8541
    }
8542
 
3430 rajveer 8543
    @Override
8544
    public void clear() {
8545
      this.username = null;
8546
      this.password = null;
8547
      setWarehouseIdIsSet(false);
8548
      this.warehouseId = 0;
495 rajveer 8549
    }
8550
 
8551
    public String getUsername() {
8552
      return this.username;
8553
    }
8554
 
3430 rajveer 8555
    public void setUsername(String username) {
495 rajveer 8556
      this.username = username;
8557
    }
8558
 
8559
    public void unsetUsername() {
8560
      this.username = null;
8561
    }
8562
 
3430 rajveer 8563
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8564
    public boolean isSetUsername() {
8565
      return this.username != null;
8566
    }
8567
 
8568
    public void setUsernameIsSet(boolean value) {
8569
      if (!value) {
8570
        this.username = null;
8571
      }
8572
    }
8573
 
8574
    public String getPassword() {
8575
      return this.password;
8576
    }
8577
 
3430 rajveer 8578
    public void setPassword(String password) {
495 rajveer 8579
      this.password = password;
8580
    }
8581
 
8582
    public void unsetPassword() {
8583
      this.password = null;
8584
    }
8585
 
3430 rajveer 8586
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 8587
    public boolean isSetPassword() {
8588
      return this.password != null;
8589
    }
8590
 
8591
    public void setPasswordIsSet(boolean value) {
8592
      if (!value) {
8593
        this.password = null;
8594
      }
8595
    }
8596
 
8597
    public long getWarehouseId() {
8598
      return this.warehouseId;
8599
    }
8600
 
3430 rajveer 8601
    public void setWarehouseId(long warehouseId) {
495 rajveer 8602
      this.warehouseId = warehouseId;
8603
      setWarehouseIdIsSet(true);
8604
    }
8605
 
8606
    public void unsetWarehouseId() {
8607
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8608
    }
8609
 
3430 rajveer 8610
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 8611
    public boolean isSetWarehouseId() {
8612
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8613
    }
8614
 
8615
    public void setWarehouseIdIsSet(boolean value) {
8616
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8617
    }
8618
 
8619
    public void setFieldValue(_Fields field, Object value) {
8620
      switch (field) {
8621
      case USERNAME:
8622
        if (value == null) {
8623
          unsetUsername();
8624
        } else {
8625
          setUsername((String)value);
8626
        }
8627
        break;
8628
 
8629
      case PASSWORD:
8630
        if (value == null) {
8631
          unsetPassword();
8632
        } else {
8633
          setPassword((String)value);
8634
        }
8635
        break;
8636
 
8637
      case WAREHOUSE_ID:
8638
        if (value == null) {
8639
          unsetWarehouseId();
8640
        } else {
8641
          setWarehouseId((Long)value);
8642
        }
8643
        break;
8644
 
8645
      }
8646
    }
8647
 
8648
    public Object getFieldValue(_Fields field) {
8649
      switch (field) {
8650
      case USERNAME:
8651
        return getUsername();
8652
 
8653
      case PASSWORD:
8654
        return getPassword();
8655
 
8656
      case WAREHOUSE_ID:
3430 rajveer 8657
        return Long.valueOf(getWarehouseId());
495 rajveer 8658
 
8659
      }
8660
      throw new IllegalStateException();
8661
    }
8662
 
3430 rajveer 8663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8664
    public boolean isSet(_Fields field) {
8665
      if (field == null) {
8666
        throw new IllegalArgumentException();
8667
      }
495 rajveer 8668
 
8669
      switch (field) {
8670
      case USERNAME:
8671
        return isSetUsername();
8672
      case PASSWORD:
8673
        return isSetPassword();
8674
      case WAREHOUSE_ID:
8675
        return isSetWarehouseId();
8676
      }
8677
      throw new IllegalStateException();
8678
    }
8679
 
8680
    @Override
8681
    public boolean equals(Object that) {
8682
      if (that == null)
8683
        return false;
8684
      if (that instanceof addUser_args)
8685
        return this.equals((addUser_args)that);
8686
      return false;
8687
    }
8688
 
8689
    public boolean equals(addUser_args that) {
8690
      if (that == null)
8691
        return false;
8692
 
8693
      boolean this_present_username = true && this.isSetUsername();
8694
      boolean that_present_username = true && that.isSetUsername();
8695
      if (this_present_username || that_present_username) {
8696
        if (!(this_present_username && that_present_username))
8697
          return false;
8698
        if (!this.username.equals(that.username))
8699
          return false;
8700
      }
8701
 
8702
      boolean this_present_password = true && this.isSetPassword();
8703
      boolean that_present_password = true && that.isSetPassword();
8704
      if (this_present_password || that_present_password) {
8705
        if (!(this_present_password && that_present_password))
8706
          return false;
8707
        if (!this.password.equals(that.password))
8708
          return false;
8709
      }
8710
 
8711
      boolean this_present_warehouseId = true;
8712
      boolean that_present_warehouseId = true;
8713
      if (this_present_warehouseId || that_present_warehouseId) {
8714
        if (!(this_present_warehouseId && that_present_warehouseId))
8715
          return false;
8716
        if (this.warehouseId != that.warehouseId)
8717
          return false;
8718
      }
8719
 
8720
      return true;
8721
    }
8722
 
8723
    @Override
8724
    public int hashCode() {
8725
      return 0;
8726
    }
8727
 
8728
    public int compareTo(addUser_args other) {
8729
      if (!getClass().equals(other.getClass())) {
8730
        return getClass().getName().compareTo(other.getClass().getName());
8731
      }
8732
 
8733
      int lastComparison = 0;
8734
      addUser_args typedOther = (addUser_args)other;
8735
 
3430 rajveer 8736
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 8737
      if (lastComparison != 0) {
8738
        return lastComparison;
8739
      }
3430 rajveer 8740
      if (isSetUsername()) {
8741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8742
        if (lastComparison != 0) {
8743
          return lastComparison;
8744
        }
495 rajveer 8745
      }
3430 rajveer 8746
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 8747
      if (lastComparison != 0) {
8748
        return lastComparison;
8749
      }
3430 rajveer 8750
      if (isSetPassword()) {
8751
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
8752
        if (lastComparison != 0) {
8753
          return lastComparison;
8754
        }
495 rajveer 8755
      }
3430 rajveer 8756
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 8757
      if (lastComparison != 0) {
8758
        return lastComparison;
8759
      }
3430 rajveer 8760
      if (isSetWarehouseId()) {
8761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
8762
        if (lastComparison != 0) {
8763
          return lastComparison;
8764
        }
495 rajveer 8765
      }
8766
      return 0;
8767
    }
8768
 
3430 rajveer 8769
    public _Fields fieldForId(int fieldId) {
8770
      return _Fields.findByThriftId(fieldId);
8771
    }
8772
 
8773
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8774
      org.apache.thrift.protocol.TField field;
495 rajveer 8775
      iprot.readStructBegin();
8776
      while (true)
8777
      {
8778
        field = iprot.readFieldBegin();
3430 rajveer 8779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 8780
          break;
8781
        }
3430 rajveer 8782
        switch (field.id) {
8783
          case 1: // USERNAME
8784
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8785
              this.username = iprot.readString();
8786
            } else { 
8787
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8788
            }
8789
            break;
8790
          case 2: // PASSWORD
8791
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8792
              this.password = iprot.readString();
8793
            } else { 
8794
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8795
            }
8796
            break;
8797
          case 3: // WAREHOUSE_ID
8798
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8799
              this.warehouseId = iprot.readI64();
8800
              setWarehouseIdIsSet(true);
8801
            } else { 
8802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8803
            }
8804
            break;
8805
          default:
8806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 8807
        }
3430 rajveer 8808
        iprot.readFieldEnd();
495 rajveer 8809
      }
8810
      iprot.readStructEnd();
8811
      validate();
8812
    }
8813
 
3430 rajveer 8814
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 8815
      validate();
8816
 
8817
      oprot.writeStructBegin(STRUCT_DESC);
8818
      if (this.username != null) {
8819
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
8820
        oprot.writeString(this.username);
8821
        oprot.writeFieldEnd();
8822
      }
8823
      if (this.password != null) {
8824
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
8825
        oprot.writeString(this.password);
8826
        oprot.writeFieldEnd();
8827
      }
8828
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8829
      oprot.writeI64(this.warehouseId);
8830
      oprot.writeFieldEnd();
8831
      oprot.writeFieldStop();
8832
      oprot.writeStructEnd();
8833
    }
8834
 
8835
    @Override
8836
    public String toString() {
8837
      StringBuilder sb = new StringBuilder("addUser_args(");
8838
      boolean first = true;
8839
 
8840
      sb.append("username:");
8841
      if (this.username == null) {
8842
        sb.append("null");
8843
      } else {
8844
        sb.append(this.username);
8845
      }
8846
      first = false;
8847
      if (!first) sb.append(", ");
8848
      sb.append("password:");
8849
      if (this.password == null) {
8850
        sb.append("null");
8851
      } else {
8852
        sb.append(this.password);
8853
      }
8854
      first = false;
8855
      if (!first) sb.append(", ");
8856
      sb.append("warehouseId:");
8857
      sb.append(this.warehouseId);
8858
      first = false;
8859
      sb.append(")");
8860
      return sb.toString();
8861
    }
8862
 
3430 rajveer 8863
    public void validate() throws org.apache.thrift.TException {
495 rajveer 8864
      // check for required fields
8865
    }
8866
 
3430 rajveer 8867
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8868
      try {
8869
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8870
      } catch (org.apache.thrift.TException te) {
8871
        throw new java.io.IOException(te);
8872
      }
8873
    }
8874
 
8875
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8876
      try {
8877
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8878
        __isset_bit_vector = new BitSet(1);
8879
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8880
      } catch (org.apache.thrift.TException te) {
8881
        throw new java.io.IOException(te);
8882
      }
8883
    }
8884
 
495 rajveer 8885
  }
8886
 
3430 rajveer 8887
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
8888
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 8889
 
3430 rajveer 8890
    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);
8891
    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 8892
 
3430 rajveer 8893
    private boolean success; // required
8894
    private HelperServiceException se; // required
495 rajveer 8895
 
8896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8898
      SUCCESS((short)0, "success"),
8899
      SE((short)1, "se");
8900
 
8901
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8902
 
8903
      static {
8904
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8905
          byName.put(field.getFieldName(), field);
8906
        }
8907
      }
8908
 
8909
      /**
8910
       * Find the _Fields constant that matches fieldId, or null if its not found.
8911
       */
8912
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8913
        switch(fieldId) {
8914
          case 0: // SUCCESS
8915
            return SUCCESS;
8916
          case 1: // SE
8917
            return SE;
8918
          default:
8919
            return null;
8920
        }
495 rajveer 8921
      }
8922
 
8923
      /**
8924
       * Find the _Fields constant that matches fieldId, throwing an exception
8925
       * if it is not found.
8926
       */
8927
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8928
        _Fields fields = findByThriftId(fieldId);
8929
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8930
        return fields;
8931
      }
8932
 
8933
      /**
8934
       * Find the _Fields constant that matches name, or null if its not found.
8935
       */
8936
      public static _Fields findByName(String name) {
8937
        return byName.get(name);
8938
      }
8939
 
8940
      private final short _thriftId;
8941
      private final String _fieldName;
8942
 
8943
      _Fields(short thriftId, String fieldName) {
8944
        _thriftId = thriftId;
8945
        _fieldName = fieldName;
8946
      }
8947
 
8948
      public short getThriftFieldId() {
8949
        return _thriftId;
8950
      }
8951
 
8952
      public String getFieldName() {
8953
        return _fieldName;
8954
      }
8955
    }
8956
 
8957
    // isset id assignments
8958
    private static final int __SUCCESS_ISSET_ID = 0;
8959
    private BitSet __isset_bit_vector = new BitSet(1);
8960
 
3430 rajveer 8961
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8962
    static {
3430 rajveer 8963
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8964
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8965
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
8966
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8967
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8968
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8969
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 8970
    }
8971
 
8972
    public addUser_result() {
8973
    }
8974
 
8975
    public addUser_result(
8976
      boolean success,
8977
      HelperServiceException se)
8978
    {
8979
      this();
8980
      this.success = success;
8981
      setSuccessIsSet(true);
8982
      this.se = se;
8983
    }
8984
 
8985
    /**
8986
     * Performs a deep copy on <i>other</i>.
8987
     */
8988
    public addUser_result(addUser_result other) {
8989
      __isset_bit_vector.clear();
8990
      __isset_bit_vector.or(other.__isset_bit_vector);
8991
      this.success = other.success;
8992
      if (other.isSetSe()) {
8993
        this.se = new HelperServiceException(other.se);
8994
      }
8995
    }
8996
 
8997
    public addUser_result deepCopy() {
8998
      return new addUser_result(this);
8999
    }
9000
 
3430 rajveer 9001
    @Override
9002
    public void clear() {
9003
      setSuccessIsSet(false);
9004
      this.success = false;
9005
      this.se = null;
495 rajveer 9006
    }
9007
 
9008
    public boolean isSuccess() {
9009
      return this.success;
9010
    }
9011
 
3430 rajveer 9012
    public void setSuccess(boolean success) {
495 rajveer 9013
      this.success = success;
9014
      setSuccessIsSet(true);
9015
    }
9016
 
9017
    public void unsetSuccess() {
9018
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9019
    }
9020
 
3430 rajveer 9021
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9022
    public boolean isSetSuccess() {
9023
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9024
    }
9025
 
9026
    public void setSuccessIsSet(boolean value) {
9027
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9028
    }
9029
 
9030
    public HelperServiceException getSe() {
9031
      return this.se;
9032
    }
9033
 
3430 rajveer 9034
    public void setSe(HelperServiceException se) {
495 rajveer 9035
      this.se = se;
9036
    }
9037
 
9038
    public void unsetSe() {
9039
      this.se = null;
9040
    }
9041
 
3430 rajveer 9042
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9043
    public boolean isSetSe() {
9044
      return this.se != null;
9045
    }
9046
 
9047
    public void setSeIsSet(boolean value) {
9048
      if (!value) {
9049
        this.se = null;
9050
      }
9051
    }
9052
 
9053
    public void setFieldValue(_Fields field, Object value) {
9054
      switch (field) {
9055
      case SUCCESS:
9056
        if (value == null) {
9057
          unsetSuccess();
9058
        } else {
9059
          setSuccess((Boolean)value);
9060
        }
9061
        break;
9062
 
9063
      case SE:
9064
        if (value == null) {
9065
          unsetSe();
9066
        } else {
9067
          setSe((HelperServiceException)value);
9068
        }
9069
        break;
9070
 
9071
      }
9072
    }
9073
 
9074
    public Object getFieldValue(_Fields field) {
9075
      switch (field) {
9076
      case SUCCESS:
3430 rajveer 9077
        return Boolean.valueOf(isSuccess());
495 rajveer 9078
 
9079
      case SE:
9080
        return getSe();
9081
 
9082
      }
9083
      throw new IllegalStateException();
9084
    }
9085
 
3430 rajveer 9086
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9087
    public boolean isSet(_Fields field) {
9088
      if (field == null) {
9089
        throw new IllegalArgumentException();
9090
      }
495 rajveer 9091
 
9092
      switch (field) {
9093
      case SUCCESS:
9094
        return isSetSuccess();
9095
      case SE:
9096
        return isSetSe();
9097
      }
9098
      throw new IllegalStateException();
9099
    }
9100
 
9101
    @Override
9102
    public boolean equals(Object that) {
9103
      if (that == null)
9104
        return false;
9105
      if (that instanceof addUser_result)
9106
        return this.equals((addUser_result)that);
9107
      return false;
9108
    }
9109
 
9110
    public boolean equals(addUser_result that) {
9111
      if (that == null)
9112
        return false;
9113
 
9114
      boolean this_present_success = true;
9115
      boolean that_present_success = true;
9116
      if (this_present_success || that_present_success) {
9117
        if (!(this_present_success && that_present_success))
9118
          return false;
9119
        if (this.success != that.success)
9120
          return false;
9121
      }
9122
 
9123
      boolean this_present_se = true && this.isSetSe();
9124
      boolean that_present_se = true && that.isSetSe();
9125
      if (this_present_se || that_present_se) {
9126
        if (!(this_present_se && that_present_se))
9127
          return false;
9128
        if (!this.se.equals(that.se))
9129
          return false;
9130
      }
9131
 
9132
      return true;
9133
    }
9134
 
9135
    @Override
9136
    public int hashCode() {
9137
      return 0;
9138
    }
9139
 
9140
    public int compareTo(addUser_result other) {
9141
      if (!getClass().equals(other.getClass())) {
9142
        return getClass().getName().compareTo(other.getClass().getName());
9143
      }
9144
 
9145
      int lastComparison = 0;
9146
      addUser_result typedOther = (addUser_result)other;
9147
 
3430 rajveer 9148
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9149
      if (lastComparison != 0) {
9150
        return lastComparison;
9151
      }
3430 rajveer 9152
      if (isSetSuccess()) {
9153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9154
        if (lastComparison != 0) {
9155
          return lastComparison;
9156
        }
495 rajveer 9157
      }
3430 rajveer 9158
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9159
      if (lastComparison != 0) {
9160
        return lastComparison;
9161
      }
3430 rajveer 9162
      if (isSetSe()) {
9163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9164
        if (lastComparison != 0) {
9165
          return lastComparison;
9166
        }
495 rajveer 9167
      }
9168
      return 0;
9169
    }
9170
 
3430 rajveer 9171
    public _Fields fieldForId(int fieldId) {
9172
      return _Fields.findByThriftId(fieldId);
9173
    }
9174
 
9175
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9176
      org.apache.thrift.protocol.TField field;
495 rajveer 9177
      iprot.readStructBegin();
9178
      while (true)
9179
      {
9180
        field = iprot.readFieldBegin();
3430 rajveer 9181
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9182
          break;
9183
        }
3430 rajveer 9184
        switch (field.id) {
9185
          case 0: // SUCCESS
9186
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9187
              this.success = iprot.readBool();
9188
              setSuccessIsSet(true);
9189
            } else { 
9190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9191
            }
9192
            break;
9193
          case 1: // SE
9194
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9195
              this.se = new HelperServiceException();
9196
              this.se.read(iprot);
9197
            } else { 
9198
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9199
            }
9200
            break;
9201
          default:
9202
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9203
        }
3430 rajveer 9204
        iprot.readFieldEnd();
495 rajveer 9205
      }
9206
      iprot.readStructEnd();
9207
      validate();
9208
    }
9209
 
3430 rajveer 9210
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9211
      oprot.writeStructBegin(STRUCT_DESC);
9212
 
9213
      if (this.isSetSuccess()) {
9214
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9215
        oprot.writeBool(this.success);
9216
        oprot.writeFieldEnd();
9217
      } else if (this.isSetSe()) {
9218
        oprot.writeFieldBegin(SE_FIELD_DESC);
9219
        this.se.write(oprot);
9220
        oprot.writeFieldEnd();
9221
      }
9222
      oprot.writeFieldStop();
9223
      oprot.writeStructEnd();
9224
    }
9225
 
9226
    @Override
9227
    public String toString() {
9228
      StringBuilder sb = new StringBuilder("addUser_result(");
9229
      boolean first = true;
9230
 
9231
      sb.append("success:");
9232
      sb.append(this.success);
9233
      first = false;
9234
      if (!first) sb.append(", ");
9235
      sb.append("se:");
9236
      if (this.se == null) {
9237
        sb.append("null");
9238
      } else {
9239
        sb.append(this.se);
9240
      }
9241
      first = false;
9242
      sb.append(")");
9243
      return sb.toString();
9244
    }
9245
 
3430 rajveer 9246
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9247
      // check for required fields
9248
    }
9249
 
3430 rajveer 9250
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9251
      try {
9252
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9253
      } catch (org.apache.thrift.TException te) {
9254
        throw new java.io.IOException(te);
9255
      }
9256
    }
9257
 
9258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9259
      try {
9260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9261
      } catch (org.apache.thrift.TException te) {
9262
        throw new java.io.IOException(te);
9263
      }
9264
    }
9265
 
495 rajveer 9266
  }
9267
 
3430 rajveer 9268
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9269
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9270
 
3430 rajveer 9271
    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 9272
 
3430 rajveer 9273
    private String username; // required
495 rajveer 9274
 
9275
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9276
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9277
      USERNAME((short)1, "username");
9278
 
9279
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9280
 
9281
      static {
9282
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9283
          byName.put(field.getFieldName(), field);
9284
        }
9285
      }
9286
 
9287
      /**
9288
       * Find the _Fields constant that matches fieldId, or null if its not found.
9289
       */
9290
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9291
        switch(fieldId) {
9292
          case 1: // USERNAME
9293
            return USERNAME;
9294
          default:
9295
            return null;
9296
        }
495 rajveer 9297
      }
9298
 
9299
      /**
9300
       * Find the _Fields constant that matches fieldId, throwing an exception
9301
       * if it is not found.
9302
       */
9303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9304
        _Fields fields = findByThriftId(fieldId);
9305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9306
        return fields;
9307
      }
9308
 
9309
      /**
9310
       * Find the _Fields constant that matches name, or null if its not found.
9311
       */
9312
      public static _Fields findByName(String name) {
9313
        return byName.get(name);
9314
      }
9315
 
9316
      private final short _thriftId;
9317
      private final String _fieldName;
9318
 
9319
      _Fields(short thriftId, String fieldName) {
9320
        _thriftId = thriftId;
9321
        _fieldName = fieldName;
9322
      }
9323
 
9324
      public short getThriftFieldId() {
9325
        return _thriftId;
9326
      }
9327
 
9328
      public String getFieldName() {
9329
        return _fieldName;
9330
      }
9331
    }
9332
 
9333
    // isset id assignments
9334
 
3430 rajveer 9335
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9336
    static {
3430 rajveer 9337
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9338
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9340
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9341
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 9342
    }
9343
 
9344
    public deleteUser_args() {
9345
    }
9346
 
9347
    public deleteUser_args(
9348
      String username)
9349
    {
9350
      this();
9351
      this.username = username;
9352
    }
9353
 
9354
    /**
9355
     * Performs a deep copy on <i>other</i>.
9356
     */
9357
    public deleteUser_args(deleteUser_args other) {
9358
      if (other.isSetUsername()) {
9359
        this.username = other.username;
9360
      }
9361
    }
9362
 
9363
    public deleteUser_args deepCopy() {
9364
      return new deleteUser_args(this);
9365
    }
9366
 
3430 rajveer 9367
    @Override
9368
    public void clear() {
9369
      this.username = null;
495 rajveer 9370
    }
9371
 
9372
    public String getUsername() {
9373
      return this.username;
9374
    }
9375
 
3430 rajveer 9376
    public void setUsername(String username) {
495 rajveer 9377
      this.username = username;
9378
    }
9379
 
9380
    public void unsetUsername() {
9381
      this.username = null;
9382
    }
9383
 
3430 rajveer 9384
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9385
    public boolean isSetUsername() {
9386
      return this.username != null;
9387
    }
9388
 
9389
    public void setUsernameIsSet(boolean value) {
9390
      if (!value) {
9391
        this.username = null;
9392
      }
9393
    }
9394
 
9395
    public void setFieldValue(_Fields field, Object value) {
9396
      switch (field) {
9397
      case USERNAME:
9398
        if (value == null) {
9399
          unsetUsername();
9400
        } else {
9401
          setUsername((String)value);
9402
        }
9403
        break;
9404
 
9405
      }
9406
    }
9407
 
9408
    public Object getFieldValue(_Fields field) {
9409
      switch (field) {
9410
      case USERNAME:
9411
        return getUsername();
9412
 
9413
      }
9414
      throw new IllegalStateException();
9415
    }
9416
 
3430 rajveer 9417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9418
    public boolean isSet(_Fields field) {
9419
      if (field == null) {
9420
        throw new IllegalArgumentException();
9421
      }
495 rajveer 9422
 
9423
      switch (field) {
9424
      case USERNAME:
9425
        return isSetUsername();
9426
      }
9427
      throw new IllegalStateException();
9428
    }
9429
 
9430
    @Override
9431
    public boolean equals(Object that) {
9432
      if (that == null)
9433
        return false;
9434
      if (that instanceof deleteUser_args)
9435
        return this.equals((deleteUser_args)that);
9436
      return false;
9437
    }
9438
 
9439
    public boolean equals(deleteUser_args that) {
9440
      if (that == null)
9441
        return false;
9442
 
9443
      boolean this_present_username = true && this.isSetUsername();
9444
      boolean that_present_username = true && that.isSetUsername();
9445
      if (this_present_username || that_present_username) {
9446
        if (!(this_present_username && that_present_username))
9447
          return false;
9448
        if (!this.username.equals(that.username))
9449
          return false;
9450
      }
9451
 
9452
      return true;
9453
    }
9454
 
9455
    @Override
9456
    public int hashCode() {
9457
      return 0;
9458
    }
9459
 
9460
    public int compareTo(deleteUser_args other) {
9461
      if (!getClass().equals(other.getClass())) {
9462
        return getClass().getName().compareTo(other.getClass().getName());
9463
      }
9464
 
9465
      int lastComparison = 0;
9466
      deleteUser_args typedOther = (deleteUser_args)other;
9467
 
3430 rajveer 9468
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9469
      if (lastComparison != 0) {
9470
        return lastComparison;
9471
      }
3430 rajveer 9472
      if (isSetUsername()) {
9473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9474
        if (lastComparison != 0) {
9475
          return lastComparison;
9476
        }
495 rajveer 9477
      }
9478
      return 0;
9479
    }
9480
 
3430 rajveer 9481
    public _Fields fieldForId(int fieldId) {
9482
      return _Fields.findByThriftId(fieldId);
9483
    }
9484
 
9485
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9486
      org.apache.thrift.protocol.TField field;
495 rajveer 9487
      iprot.readStructBegin();
9488
      while (true)
9489
      {
9490
        field = iprot.readFieldBegin();
3430 rajveer 9491
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9492
          break;
9493
        }
3430 rajveer 9494
        switch (field.id) {
9495
          case 1: // USERNAME
9496
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9497
              this.username = iprot.readString();
9498
            } else { 
9499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9500
            }
9501
            break;
9502
          default:
9503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9504
        }
3430 rajveer 9505
        iprot.readFieldEnd();
495 rajveer 9506
      }
9507
      iprot.readStructEnd();
9508
      validate();
9509
    }
9510
 
3430 rajveer 9511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9512
      validate();
9513
 
9514
      oprot.writeStructBegin(STRUCT_DESC);
9515
      if (this.username != null) {
9516
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9517
        oprot.writeString(this.username);
9518
        oprot.writeFieldEnd();
9519
      }
9520
      oprot.writeFieldStop();
9521
      oprot.writeStructEnd();
9522
    }
9523
 
9524
    @Override
9525
    public String toString() {
9526
      StringBuilder sb = new StringBuilder("deleteUser_args(");
9527
      boolean first = true;
9528
 
9529
      sb.append("username:");
9530
      if (this.username == null) {
9531
        sb.append("null");
9532
      } else {
9533
        sb.append(this.username);
9534
      }
9535
      first = false;
9536
      sb.append(")");
9537
      return sb.toString();
9538
    }
9539
 
3430 rajveer 9540
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9541
      // check for required fields
9542
    }
9543
 
3430 rajveer 9544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9545
      try {
9546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9547
      } catch (org.apache.thrift.TException te) {
9548
        throw new java.io.IOException(te);
9549
      }
9550
    }
9551
 
9552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9553
      try {
9554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9555
      } catch (org.apache.thrift.TException te) {
9556
        throw new java.io.IOException(te);
9557
      }
9558
    }
9559
 
495 rajveer 9560
  }
9561
 
3430 rajveer 9562
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
9563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 9564
 
3430 rajveer 9565
    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);
9566
    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 9567
 
3430 rajveer 9568
    private boolean success; // required
9569
    private HelperServiceException se; // required
495 rajveer 9570
 
9571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9573
      SUCCESS((short)0, "success"),
9574
      SE((short)1, "se");
9575
 
9576
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9577
 
9578
      static {
9579
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9580
          byName.put(field.getFieldName(), field);
9581
        }
9582
      }
9583
 
9584
      /**
9585
       * Find the _Fields constant that matches fieldId, or null if its not found.
9586
       */
9587
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9588
        switch(fieldId) {
9589
          case 0: // SUCCESS
9590
            return SUCCESS;
9591
          case 1: // SE
9592
            return SE;
9593
          default:
9594
            return null;
9595
        }
495 rajveer 9596
      }
9597
 
9598
      /**
9599
       * Find the _Fields constant that matches fieldId, throwing an exception
9600
       * if it is not found.
9601
       */
9602
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9603
        _Fields fields = findByThriftId(fieldId);
9604
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9605
        return fields;
9606
      }
9607
 
9608
      /**
9609
       * Find the _Fields constant that matches name, or null if its not found.
9610
       */
9611
      public static _Fields findByName(String name) {
9612
        return byName.get(name);
9613
      }
9614
 
9615
      private final short _thriftId;
9616
      private final String _fieldName;
9617
 
9618
      _Fields(short thriftId, String fieldName) {
9619
        _thriftId = thriftId;
9620
        _fieldName = fieldName;
9621
      }
9622
 
9623
      public short getThriftFieldId() {
9624
        return _thriftId;
9625
      }
9626
 
9627
      public String getFieldName() {
9628
        return _fieldName;
9629
      }
9630
    }
9631
 
9632
    // isset id assignments
9633
    private static final int __SUCCESS_ISSET_ID = 0;
9634
    private BitSet __isset_bit_vector = new BitSet(1);
9635
 
3430 rajveer 9636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9637
    static {
3430 rajveer 9638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9639
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9641
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9643
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9644
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 9645
    }
9646
 
9647
    public deleteUser_result() {
9648
    }
9649
 
9650
    public deleteUser_result(
9651
      boolean success,
9652
      HelperServiceException se)
9653
    {
9654
      this();
9655
      this.success = success;
9656
      setSuccessIsSet(true);
9657
      this.se = se;
9658
    }
9659
 
9660
    /**
9661
     * Performs a deep copy on <i>other</i>.
9662
     */
9663
    public deleteUser_result(deleteUser_result other) {
9664
      __isset_bit_vector.clear();
9665
      __isset_bit_vector.or(other.__isset_bit_vector);
9666
      this.success = other.success;
9667
      if (other.isSetSe()) {
9668
        this.se = new HelperServiceException(other.se);
9669
      }
9670
    }
9671
 
9672
    public deleteUser_result deepCopy() {
9673
      return new deleteUser_result(this);
9674
    }
9675
 
3430 rajveer 9676
    @Override
9677
    public void clear() {
9678
      setSuccessIsSet(false);
9679
      this.success = false;
9680
      this.se = null;
495 rajveer 9681
    }
9682
 
9683
    public boolean isSuccess() {
9684
      return this.success;
9685
    }
9686
 
3430 rajveer 9687
    public void setSuccess(boolean success) {
495 rajveer 9688
      this.success = success;
9689
      setSuccessIsSet(true);
9690
    }
9691
 
9692
    public void unsetSuccess() {
9693
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9694
    }
9695
 
3430 rajveer 9696
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9697
    public boolean isSetSuccess() {
9698
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9699
    }
9700
 
9701
    public void setSuccessIsSet(boolean value) {
9702
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9703
    }
9704
 
9705
    public HelperServiceException getSe() {
9706
      return this.se;
9707
    }
9708
 
3430 rajveer 9709
    public void setSe(HelperServiceException se) {
495 rajveer 9710
      this.se = se;
9711
    }
9712
 
9713
    public void unsetSe() {
9714
      this.se = null;
9715
    }
9716
 
3430 rajveer 9717
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9718
    public boolean isSetSe() {
9719
      return this.se != null;
9720
    }
9721
 
9722
    public void setSeIsSet(boolean value) {
9723
      if (!value) {
9724
        this.se = null;
9725
      }
9726
    }
9727
 
9728
    public void setFieldValue(_Fields field, Object value) {
9729
      switch (field) {
9730
      case SUCCESS:
9731
        if (value == null) {
9732
          unsetSuccess();
9733
        } else {
9734
          setSuccess((Boolean)value);
9735
        }
9736
        break;
9737
 
9738
      case SE:
9739
        if (value == null) {
9740
          unsetSe();
9741
        } else {
9742
          setSe((HelperServiceException)value);
9743
        }
9744
        break;
9745
 
9746
      }
9747
    }
9748
 
9749
    public Object getFieldValue(_Fields field) {
9750
      switch (field) {
9751
      case SUCCESS:
3430 rajveer 9752
        return Boolean.valueOf(isSuccess());
495 rajveer 9753
 
9754
      case SE:
9755
        return getSe();
9756
 
9757
      }
9758
      throw new IllegalStateException();
9759
    }
9760
 
3430 rajveer 9761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9762
    public boolean isSet(_Fields field) {
9763
      if (field == null) {
9764
        throw new IllegalArgumentException();
9765
      }
495 rajveer 9766
 
9767
      switch (field) {
9768
      case SUCCESS:
9769
        return isSetSuccess();
9770
      case SE:
9771
        return isSetSe();
9772
      }
9773
      throw new IllegalStateException();
9774
    }
9775
 
9776
    @Override
9777
    public boolean equals(Object that) {
9778
      if (that == null)
9779
        return false;
9780
      if (that instanceof deleteUser_result)
9781
        return this.equals((deleteUser_result)that);
9782
      return false;
9783
    }
9784
 
9785
    public boolean equals(deleteUser_result that) {
9786
      if (that == null)
9787
        return false;
9788
 
9789
      boolean this_present_success = true;
9790
      boolean that_present_success = true;
9791
      if (this_present_success || that_present_success) {
9792
        if (!(this_present_success && that_present_success))
9793
          return false;
9794
        if (this.success != that.success)
9795
          return false;
9796
      }
9797
 
9798
      boolean this_present_se = true && this.isSetSe();
9799
      boolean that_present_se = true && that.isSetSe();
9800
      if (this_present_se || that_present_se) {
9801
        if (!(this_present_se && that_present_se))
9802
          return false;
9803
        if (!this.se.equals(that.se))
9804
          return false;
9805
      }
9806
 
9807
      return true;
9808
    }
9809
 
9810
    @Override
9811
    public int hashCode() {
9812
      return 0;
9813
    }
9814
 
9815
    public int compareTo(deleteUser_result other) {
9816
      if (!getClass().equals(other.getClass())) {
9817
        return getClass().getName().compareTo(other.getClass().getName());
9818
      }
9819
 
9820
      int lastComparison = 0;
9821
      deleteUser_result typedOther = (deleteUser_result)other;
9822
 
3430 rajveer 9823
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9824
      if (lastComparison != 0) {
9825
        return lastComparison;
9826
      }
3430 rajveer 9827
      if (isSetSuccess()) {
9828
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9829
        if (lastComparison != 0) {
9830
          return lastComparison;
9831
        }
495 rajveer 9832
      }
3430 rajveer 9833
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9834
      if (lastComparison != 0) {
9835
        return lastComparison;
9836
      }
3430 rajveer 9837
      if (isSetSe()) {
9838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9839
        if (lastComparison != 0) {
9840
          return lastComparison;
9841
        }
495 rajveer 9842
      }
9843
      return 0;
9844
    }
9845
 
3430 rajveer 9846
    public _Fields fieldForId(int fieldId) {
9847
      return _Fields.findByThriftId(fieldId);
9848
    }
9849
 
9850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9851
      org.apache.thrift.protocol.TField field;
495 rajveer 9852
      iprot.readStructBegin();
9853
      while (true)
9854
      {
9855
        field = iprot.readFieldBegin();
3430 rajveer 9856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9857
          break;
9858
        }
3430 rajveer 9859
        switch (field.id) {
9860
          case 0: // SUCCESS
9861
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9862
              this.success = iprot.readBool();
9863
              setSuccessIsSet(true);
9864
            } else { 
9865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9866
            }
9867
            break;
9868
          case 1: // SE
9869
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9870
              this.se = new HelperServiceException();
9871
              this.se.read(iprot);
9872
            } else { 
9873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9874
            }
9875
            break;
9876
          default:
9877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9878
        }
3430 rajveer 9879
        iprot.readFieldEnd();
495 rajveer 9880
      }
9881
      iprot.readStructEnd();
9882
      validate();
9883
    }
9884
 
3430 rajveer 9885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9886
      oprot.writeStructBegin(STRUCT_DESC);
9887
 
9888
      if (this.isSetSuccess()) {
9889
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9890
        oprot.writeBool(this.success);
9891
        oprot.writeFieldEnd();
9892
      } else if (this.isSetSe()) {
9893
        oprot.writeFieldBegin(SE_FIELD_DESC);
9894
        this.se.write(oprot);
9895
        oprot.writeFieldEnd();
9896
      }
9897
      oprot.writeFieldStop();
9898
      oprot.writeStructEnd();
9899
    }
9900
 
9901
    @Override
9902
    public String toString() {
9903
      StringBuilder sb = new StringBuilder("deleteUser_result(");
9904
      boolean first = true;
9905
 
9906
      sb.append("success:");
9907
      sb.append(this.success);
9908
      first = false;
9909
      if (!first) sb.append(", ");
9910
      sb.append("se:");
9911
      if (this.se == null) {
9912
        sb.append("null");
9913
      } else {
9914
        sb.append(this.se);
9915
      }
9916
      first = false;
9917
      sb.append(")");
9918
      return sb.toString();
9919
    }
9920
 
3430 rajveer 9921
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9922
      // check for required fields
9923
    }
9924
 
3430 rajveer 9925
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9926
      try {
9927
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9928
      } catch (org.apache.thrift.TException te) {
9929
        throw new java.io.IOException(te);
9930
      }
9931
    }
9932
 
9933
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9934
      try {
9935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9936
      } catch (org.apache.thrift.TException te) {
9937
        throw new java.io.IOException(te);
9938
      }
9939
    }
9940
 
495 rajveer 9941
  }
9942
 
3430 rajveer 9943
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
9944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 9945
 
3430 rajveer 9946
    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);
9947
    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 9948
 
3430 rajveer 9949
    private String username; // required
9950
    private String password; // required
495 rajveer 9951
 
9952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9954
      USERNAME((short)1, "username"),
9955
      PASSWORD((short)2, "password");
9956
 
9957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9958
 
9959
      static {
9960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9961
          byName.put(field.getFieldName(), field);
9962
        }
9963
      }
9964
 
9965
      /**
9966
       * Find the _Fields constant that matches fieldId, or null if its not found.
9967
       */
9968
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9969
        switch(fieldId) {
9970
          case 1: // USERNAME
9971
            return USERNAME;
9972
          case 2: // PASSWORD
9973
            return PASSWORD;
9974
          default:
9975
            return null;
9976
        }
495 rajveer 9977
      }
9978
 
9979
      /**
9980
       * Find the _Fields constant that matches fieldId, throwing an exception
9981
       * if it is not found.
9982
       */
9983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9984
        _Fields fields = findByThriftId(fieldId);
9985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9986
        return fields;
9987
      }
9988
 
9989
      /**
9990
       * Find the _Fields constant that matches name, or null if its not found.
9991
       */
9992
      public static _Fields findByName(String name) {
9993
        return byName.get(name);
9994
      }
9995
 
9996
      private final short _thriftId;
9997
      private final String _fieldName;
9998
 
9999
      _Fields(short thriftId, String fieldName) {
10000
        _thriftId = thriftId;
10001
        _fieldName = fieldName;
10002
      }
10003
 
10004
      public short getThriftFieldId() {
10005
        return _thriftId;
10006
      }
10007
 
10008
      public String getFieldName() {
10009
        return _fieldName;
10010
      }
10011
    }
10012
 
10013
    // isset id assignments
10014
 
3430 rajveer 10015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10016
    static {
3430 rajveer 10017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10018
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10020
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10024
    }
10025
 
2443 chandransh 10026
    public authenticateDashboardUser_args() {
495 rajveer 10027
    }
10028
 
2443 chandransh 10029
    public authenticateDashboardUser_args(
495 rajveer 10030
      String username,
10031
      String password)
10032
    {
10033
      this();
10034
      this.username = username;
10035
      this.password = password;
10036
    }
10037
 
10038
    /**
10039
     * Performs a deep copy on <i>other</i>.
10040
     */
2443 chandransh 10041
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10042
      if (other.isSetUsername()) {
10043
        this.username = other.username;
10044
      }
10045
      if (other.isSetPassword()) {
10046
        this.password = other.password;
10047
      }
10048
    }
10049
 
2443 chandransh 10050
    public authenticateDashboardUser_args deepCopy() {
10051
      return new authenticateDashboardUser_args(this);
495 rajveer 10052
    }
10053
 
3430 rajveer 10054
    @Override
10055
    public void clear() {
10056
      this.username = null;
10057
      this.password = null;
495 rajveer 10058
    }
10059
 
10060
    public String getUsername() {
10061
      return this.username;
10062
    }
10063
 
3430 rajveer 10064
    public void setUsername(String username) {
495 rajveer 10065
      this.username = username;
10066
    }
10067
 
10068
    public void unsetUsername() {
10069
      this.username = null;
10070
    }
10071
 
3430 rajveer 10072
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10073
    public boolean isSetUsername() {
10074
      return this.username != null;
10075
    }
10076
 
10077
    public void setUsernameIsSet(boolean value) {
10078
      if (!value) {
10079
        this.username = null;
10080
      }
10081
    }
10082
 
10083
    public String getPassword() {
10084
      return this.password;
10085
    }
10086
 
3430 rajveer 10087
    public void setPassword(String password) {
495 rajveer 10088
      this.password = password;
10089
    }
10090
 
10091
    public void unsetPassword() {
10092
      this.password = null;
10093
    }
10094
 
3430 rajveer 10095
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10096
    public boolean isSetPassword() {
10097
      return this.password != null;
10098
    }
10099
 
10100
    public void setPasswordIsSet(boolean value) {
10101
      if (!value) {
10102
        this.password = null;
10103
      }
10104
    }
10105
 
10106
    public void setFieldValue(_Fields field, Object value) {
10107
      switch (field) {
10108
      case USERNAME:
10109
        if (value == null) {
10110
          unsetUsername();
10111
        } else {
10112
          setUsername((String)value);
10113
        }
10114
        break;
10115
 
10116
      case PASSWORD:
10117
        if (value == null) {
10118
          unsetPassword();
10119
        } else {
10120
          setPassword((String)value);
10121
        }
10122
        break;
10123
 
10124
      }
10125
    }
10126
 
10127
    public Object getFieldValue(_Fields field) {
10128
      switch (field) {
10129
      case USERNAME:
10130
        return getUsername();
10131
 
10132
      case PASSWORD:
10133
        return getPassword();
10134
 
10135
      }
10136
      throw new IllegalStateException();
10137
    }
10138
 
3430 rajveer 10139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10140
    public boolean isSet(_Fields field) {
10141
      if (field == null) {
10142
        throw new IllegalArgumentException();
10143
      }
495 rajveer 10144
 
10145
      switch (field) {
10146
      case USERNAME:
10147
        return isSetUsername();
10148
      case PASSWORD:
10149
        return isSetPassword();
10150
      }
10151
      throw new IllegalStateException();
10152
    }
10153
 
10154
    @Override
10155
    public boolean equals(Object that) {
10156
      if (that == null)
10157
        return false;
2443 chandransh 10158
      if (that instanceof authenticateDashboardUser_args)
10159
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10160
      return false;
10161
    }
10162
 
2443 chandransh 10163
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10164
      if (that == null)
10165
        return false;
10166
 
10167
      boolean this_present_username = true && this.isSetUsername();
10168
      boolean that_present_username = true && that.isSetUsername();
10169
      if (this_present_username || that_present_username) {
10170
        if (!(this_present_username && that_present_username))
10171
          return false;
10172
        if (!this.username.equals(that.username))
10173
          return false;
10174
      }
10175
 
10176
      boolean this_present_password = true && this.isSetPassword();
10177
      boolean that_present_password = true && that.isSetPassword();
10178
      if (this_present_password || that_present_password) {
10179
        if (!(this_present_password && that_present_password))
10180
          return false;
10181
        if (!this.password.equals(that.password))
10182
          return false;
10183
      }
10184
 
10185
      return true;
10186
    }
10187
 
10188
    @Override
10189
    public int hashCode() {
10190
      return 0;
10191
    }
10192
 
2443 chandransh 10193
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10194
      if (!getClass().equals(other.getClass())) {
10195
        return getClass().getName().compareTo(other.getClass().getName());
10196
      }
10197
 
10198
      int lastComparison = 0;
2443 chandransh 10199
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10200
 
3430 rajveer 10201
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10202
      if (lastComparison != 0) {
10203
        return lastComparison;
10204
      }
3430 rajveer 10205
      if (isSetUsername()) {
10206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10207
        if (lastComparison != 0) {
10208
          return lastComparison;
10209
        }
495 rajveer 10210
      }
3430 rajveer 10211
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10212
      if (lastComparison != 0) {
10213
        return lastComparison;
10214
      }
3430 rajveer 10215
      if (isSetPassword()) {
10216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10217
        if (lastComparison != 0) {
10218
          return lastComparison;
10219
        }
495 rajveer 10220
      }
10221
      return 0;
10222
    }
10223
 
3430 rajveer 10224
    public _Fields fieldForId(int fieldId) {
10225
      return _Fields.findByThriftId(fieldId);
10226
    }
10227
 
10228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10229
      org.apache.thrift.protocol.TField field;
495 rajveer 10230
      iprot.readStructBegin();
10231
      while (true)
10232
      {
10233
        field = iprot.readFieldBegin();
3430 rajveer 10234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10235
          break;
10236
        }
3430 rajveer 10237
        switch (field.id) {
10238
          case 1: // USERNAME
10239
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10240
              this.username = iprot.readString();
10241
            } else { 
10242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10243
            }
10244
            break;
10245
          case 2: // PASSWORD
10246
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10247
              this.password = iprot.readString();
10248
            } else { 
10249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10250
            }
10251
            break;
10252
          default:
10253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10254
        }
3430 rajveer 10255
        iprot.readFieldEnd();
495 rajveer 10256
      }
10257
      iprot.readStructEnd();
10258
      validate();
10259
    }
10260
 
3430 rajveer 10261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10262
      validate();
10263
 
10264
      oprot.writeStructBegin(STRUCT_DESC);
10265
      if (this.username != null) {
10266
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10267
        oprot.writeString(this.username);
10268
        oprot.writeFieldEnd();
10269
      }
10270
      if (this.password != null) {
10271
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10272
        oprot.writeString(this.password);
10273
        oprot.writeFieldEnd();
10274
      }
10275
      oprot.writeFieldStop();
10276
      oprot.writeStructEnd();
10277
    }
10278
 
10279
    @Override
10280
    public String toString() {
2443 chandransh 10281
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10282
      boolean first = true;
10283
 
10284
      sb.append("username:");
10285
      if (this.username == null) {
10286
        sb.append("null");
10287
      } else {
10288
        sb.append(this.username);
10289
      }
10290
      first = false;
10291
      if (!first) sb.append(", ");
10292
      sb.append("password:");
10293
      if (this.password == null) {
10294
        sb.append("null");
10295
      } else {
10296
        sb.append(this.password);
10297
      }
10298
      first = false;
10299
      sb.append(")");
10300
      return sb.toString();
10301
    }
10302
 
3430 rajveer 10303
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10304
      // check for required fields
10305
    }
10306
 
3430 rajveer 10307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10308
      try {
10309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10310
      } catch (org.apache.thrift.TException te) {
10311
        throw new java.io.IOException(te);
10312
      }
10313
    }
10314
 
10315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10316
      try {
10317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10318
      } catch (org.apache.thrift.TException te) {
10319
        throw new java.io.IOException(te);
10320
      }
10321
    }
10322
 
495 rajveer 10323
  }
10324
 
3430 rajveer 10325
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
10326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 10327
 
3430 rajveer 10328
    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);
10329
    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 10330
 
3430 rajveer 10331
    private DashboardUser success; // required
10332
    private HelperServiceException se; // required
495 rajveer 10333
 
10334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10336
      SUCCESS((short)0, "success"),
10337
      SE((short)1, "se");
10338
 
10339
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10340
 
10341
      static {
10342
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10343
          byName.put(field.getFieldName(), field);
10344
        }
10345
      }
10346
 
10347
      /**
10348
       * Find the _Fields constant that matches fieldId, or null if its not found.
10349
       */
10350
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10351
        switch(fieldId) {
10352
          case 0: // SUCCESS
10353
            return SUCCESS;
10354
          case 1: // SE
10355
            return SE;
10356
          default:
10357
            return null;
10358
        }
495 rajveer 10359
      }
10360
 
10361
      /**
10362
       * Find the _Fields constant that matches fieldId, throwing an exception
10363
       * if it is not found.
10364
       */
10365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10366
        _Fields fields = findByThriftId(fieldId);
10367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10368
        return fields;
10369
      }
10370
 
10371
      /**
10372
       * Find the _Fields constant that matches name, or null if its not found.
10373
       */
10374
      public static _Fields findByName(String name) {
10375
        return byName.get(name);
10376
      }
10377
 
10378
      private final short _thriftId;
10379
      private final String _fieldName;
10380
 
10381
      _Fields(short thriftId, String fieldName) {
10382
        _thriftId = thriftId;
10383
        _fieldName = fieldName;
10384
      }
10385
 
10386
      public short getThriftFieldId() {
10387
        return _thriftId;
10388
      }
10389
 
10390
      public String getFieldName() {
10391
        return _fieldName;
10392
      }
10393
    }
10394
 
10395
    // isset id assignments
10396
 
3430 rajveer 10397
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10398
    static {
3430 rajveer 10399
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10400
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10401
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
10402
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10404
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10405
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 10406
    }
10407
 
2443 chandransh 10408
    public authenticateDashboardUser_result() {
495 rajveer 10409
    }
10410
 
2443 chandransh 10411
    public authenticateDashboardUser_result(
10412
      DashboardUser success,
495 rajveer 10413
      HelperServiceException se)
10414
    {
10415
      this();
10416
      this.success = success;
10417
      this.se = se;
10418
    }
10419
 
10420
    /**
10421
     * Performs a deep copy on <i>other</i>.
10422
     */
2443 chandransh 10423
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
10424
      if (other.isSetSuccess()) {
10425
        this.success = new DashboardUser(other.success);
10426
      }
495 rajveer 10427
      if (other.isSetSe()) {
10428
        this.se = new HelperServiceException(other.se);
10429
      }
10430
    }
10431
 
2443 chandransh 10432
    public authenticateDashboardUser_result deepCopy() {
10433
      return new authenticateDashboardUser_result(this);
495 rajveer 10434
    }
10435
 
3430 rajveer 10436
    @Override
10437
    public void clear() {
10438
      this.success = null;
10439
      this.se = null;
495 rajveer 10440
    }
10441
 
2443 chandransh 10442
    public DashboardUser getSuccess() {
495 rajveer 10443
      return this.success;
10444
    }
10445
 
3430 rajveer 10446
    public void setSuccess(DashboardUser success) {
495 rajveer 10447
      this.success = success;
10448
    }
10449
 
10450
    public void unsetSuccess() {
2443 chandransh 10451
      this.success = null;
495 rajveer 10452
    }
10453
 
3430 rajveer 10454
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10455
    public boolean isSetSuccess() {
2443 chandransh 10456
      return this.success != null;
495 rajveer 10457
    }
10458
 
10459
    public void setSuccessIsSet(boolean value) {
2443 chandransh 10460
      if (!value) {
10461
        this.success = null;
10462
      }
495 rajveer 10463
    }
10464
 
10465
    public HelperServiceException getSe() {
10466
      return this.se;
10467
    }
10468
 
3430 rajveer 10469
    public void setSe(HelperServiceException se) {
495 rajveer 10470
      this.se = se;
10471
    }
10472
 
10473
    public void unsetSe() {
10474
      this.se = null;
10475
    }
10476
 
3430 rajveer 10477
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10478
    public boolean isSetSe() {
10479
      return this.se != null;
10480
    }
10481
 
10482
    public void setSeIsSet(boolean value) {
10483
      if (!value) {
10484
        this.se = null;
10485
      }
10486
    }
10487
 
10488
    public void setFieldValue(_Fields field, Object value) {
10489
      switch (field) {
10490
      case SUCCESS:
10491
        if (value == null) {
10492
          unsetSuccess();
10493
        } else {
2443 chandransh 10494
          setSuccess((DashboardUser)value);
495 rajveer 10495
        }
10496
        break;
10497
 
10498
      case SE:
10499
        if (value == null) {
10500
          unsetSe();
10501
        } else {
10502
          setSe((HelperServiceException)value);
10503
        }
10504
        break;
10505
 
10506
      }
10507
    }
10508
 
10509
    public Object getFieldValue(_Fields field) {
10510
      switch (field) {
10511
      case SUCCESS:
2443 chandransh 10512
        return getSuccess();
495 rajveer 10513
 
10514
      case SE:
10515
        return getSe();
10516
 
10517
      }
10518
      throw new IllegalStateException();
10519
    }
10520
 
3430 rajveer 10521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10522
    public boolean isSet(_Fields field) {
10523
      if (field == null) {
10524
        throw new IllegalArgumentException();
10525
      }
495 rajveer 10526
 
10527
      switch (field) {
10528
      case SUCCESS:
10529
        return isSetSuccess();
10530
      case SE:
10531
        return isSetSe();
10532
      }
10533
      throw new IllegalStateException();
10534
    }
10535
 
10536
    @Override
10537
    public boolean equals(Object that) {
10538
      if (that == null)
10539
        return false;
2443 chandransh 10540
      if (that instanceof authenticateDashboardUser_result)
10541
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 10542
      return false;
10543
    }
10544
 
2443 chandransh 10545
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 10546
      if (that == null)
10547
        return false;
10548
 
2443 chandransh 10549
      boolean this_present_success = true && this.isSetSuccess();
10550
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 10551
      if (this_present_success || that_present_success) {
10552
        if (!(this_present_success && that_present_success))
10553
          return false;
2443 chandransh 10554
        if (!this.success.equals(that.success))
495 rajveer 10555
          return false;
10556
      }
10557
 
10558
      boolean this_present_se = true && this.isSetSe();
10559
      boolean that_present_se = true && that.isSetSe();
10560
      if (this_present_se || that_present_se) {
10561
        if (!(this_present_se && that_present_se))
10562
          return false;
10563
        if (!this.se.equals(that.se))
10564
          return false;
10565
      }
10566
 
10567
      return true;
10568
    }
10569
 
10570
    @Override
10571
    public int hashCode() {
10572
      return 0;
10573
    }
10574
 
2443 chandransh 10575
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 10576
      if (!getClass().equals(other.getClass())) {
10577
        return getClass().getName().compareTo(other.getClass().getName());
10578
      }
10579
 
10580
      int lastComparison = 0;
2443 chandransh 10581
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 10582
 
3430 rajveer 10583
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10584
      if (lastComparison != 0) {
10585
        return lastComparison;
10586
      }
3430 rajveer 10587
      if (isSetSuccess()) {
10588
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10589
        if (lastComparison != 0) {
10590
          return lastComparison;
10591
        }
495 rajveer 10592
      }
3430 rajveer 10593
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10594
      if (lastComparison != 0) {
10595
        return lastComparison;
10596
      }
3430 rajveer 10597
      if (isSetSe()) {
10598
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10599
        if (lastComparison != 0) {
10600
          return lastComparison;
10601
        }
495 rajveer 10602
      }
10603
      return 0;
10604
    }
10605
 
3430 rajveer 10606
    public _Fields fieldForId(int fieldId) {
10607
      return _Fields.findByThriftId(fieldId);
10608
    }
10609
 
10610
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10611
      org.apache.thrift.protocol.TField field;
495 rajveer 10612
      iprot.readStructBegin();
10613
      while (true)
10614
      {
10615
        field = iprot.readFieldBegin();
3430 rajveer 10616
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10617
          break;
10618
        }
3430 rajveer 10619
        switch (field.id) {
10620
          case 0: // SUCCESS
10621
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10622
              this.success = new DashboardUser();
10623
              this.success.read(iprot);
10624
            } else { 
10625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10626
            }
10627
            break;
10628
          case 1: // SE
10629
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10630
              this.se = new HelperServiceException();
10631
              this.se.read(iprot);
10632
            } else { 
10633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10634
            }
10635
            break;
10636
          default:
10637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10638
        }
3430 rajveer 10639
        iprot.readFieldEnd();
495 rajveer 10640
      }
10641
      iprot.readStructEnd();
10642
      validate();
10643
    }
10644
 
3430 rajveer 10645
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10646
      oprot.writeStructBegin(STRUCT_DESC);
10647
 
10648
      if (this.isSetSuccess()) {
10649
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 10650
        this.success.write(oprot);
495 rajveer 10651
        oprot.writeFieldEnd();
10652
      } else if (this.isSetSe()) {
10653
        oprot.writeFieldBegin(SE_FIELD_DESC);
10654
        this.se.write(oprot);
10655
        oprot.writeFieldEnd();
10656
      }
10657
      oprot.writeFieldStop();
10658
      oprot.writeStructEnd();
10659
    }
10660
 
10661
    @Override
10662
    public String toString() {
2443 chandransh 10663
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 10664
      boolean first = true;
10665
 
10666
      sb.append("success:");
2443 chandransh 10667
      if (this.success == null) {
10668
        sb.append("null");
10669
      } else {
10670
        sb.append(this.success);
10671
      }
495 rajveer 10672
      first = false;
10673
      if (!first) sb.append(", ");
10674
      sb.append("se:");
10675
      if (this.se == null) {
10676
        sb.append("null");
10677
      } else {
10678
        sb.append(this.se);
10679
      }
10680
      first = false;
10681
      sb.append(")");
10682
      return sb.toString();
10683
    }
10684
 
3430 rajveer 10685
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10686
      // check for required fields
10687
    }
10688
 
3430 rajveer 10689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10690
      try {
10691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10692
      } catch (org.apache.thrift.TException te) {
10693
        throw new java.io.IOException(te);
10694
      }
10695
    }
10696
 
10697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10698
      try {
10699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10700
      } catch (org.apache.thrift.TException te) {
10701
        throw new java.io.IOException(te);
10702
      }
10703
    }
10704
 
495 rajveer 10705
  }
10706
 
3430 rajveer 10707
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
10708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 10709
 
3430 rajveer 10710
    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);
10711
    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);
10712
    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 10713
 
3430 rajveer 10714
    private String username; // required
10715
    private String oldPassword; // required
10716
    private String newPassword; // required
495 rajveer 10717
 
10718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10720
      USERNAME((short)1, "username"),
10721
      OLD_PASSWORD((short)2, "oldPassword"),
10722
      NEW_PASSWORD((short)3, "newPassword");
10723
 
10724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10725
 
10726
      static {
10727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10728
          byName.put(field.getFieldName(), field);
10729
        }
10730
      }
10731
 
10732
      /**
10733
       * Find the _Fields constant that matches fieldId, or null if its not found.
10734
       */
10735
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10736
        switch(fieldId) {
10737
          case 1: // USERNAME
10738
            return USERNAME;
10739
          case 2: // OLD_PASSWORD
10740
            return OLD_PASSWORD;
10741
          case 3: // NEW_PASSWORD
10742
            return NEW_PASSWORD;
10743
          default:
10744
            return null;
10745
        }
495 rajveer 10746
      }
10747
 
10748
      /**
10749
       * Find the _Fields constant that matches fieldId, throwing an exception
10750
       * if it is not found.
10751
       */
10752
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10753
        _Fields fields = findByThriftId(fieldId);
10754
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10755
        return fields;
10756
      }
10757
 
10758
      /**
10759
       * Find the _Fields constant that matches name, or null if its not found.
10760
       */
10761
      public static _Fields findByName(String name) {
10762
        return byName.get(name);
10763
      }
10764
 
10765
      private final short _thriftId;
10766
      private final String _fieldName;
10767
 
10768
      _Fields(short thriftId, String fieldName) {
10769
        _thriftId = thriftId;
10770
        _fieldName = fieldName;
10771
      }
10772
 
10773
      public short getThriftFieldId() {
10774
        return _thriftId;
10775
      }
10776
 
10777
      public String getFieldName() {
10778
        return _fieldName;
10779
      }
10780
    }
10781
 
10782
    // isset id assignments
10783
 
3430 rajveer 10784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10785
    static {
3430 rajveer 10786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10787
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10789
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10790
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10791
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 10795
    }
10796
 
10797
    public updatePassword_args() {
10798
    }
10799
 
10800
    public updatePassword_args(
10801
      String username,
10802
      String oldPassword,
10803
      String newPassword)
10804
    {
10805
      this();
10806
      this.username = username;
10807
      this.oldPassword = oldPassword;
10808
      this.newPassword = newPassword;
10809
    }
10810
 
10811
    /**
10812
     * Performs a deep copy on <i>other</i>.
10813
     */
10814
    public updatePassword_args(updatePassword_args other) {
10815
      if (other.isSetUsername()) {
10816
        this.username = other.username;
10817
      }
10818
      if (other.isSetOldPassword()) {
10819
        this.oldPassword = other.oldPassword;
10820
      }
10821
      if (other.isSetNewPassword()) {
10822
        this.newPassword = other.newPassword;
10823
      }
10824
    }
10825
 
10826
    public updatePassword_args deepCopy() {
10827
      return new updatePassword_args(this);
10828
    }
10829
 
3430 rajveer 10830
    @Override
10831
    public void clear() {
10832
      this.username = null;
10833
      this.oldPassword = null;
10834
      this.newPassword = null;
495 rajveer 10835
    }
10836
 
10837
    public String getUsername() {
10838
      return this.username;
10839
    }
10840
 
3430 rajveer 10841
    public void setUsername(String username) {
495 rajveer 10842
      this.username = username;
10843
    }
10844
 
10845
    public void unsetUsername() {
10846
      this.username = null;
10847
    }
10848
 
3430 rajveer 10849
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10850
    public boolean isSetUsername() {
10851
      return this.username != null;
10852
    }
10853
 
10854
    public void setUsernameIsSet(boolean value) {
10855
      if (!value) {
10856
        this.username = null;
10857
      }
10858
    }
10859
 
10860
    public String getOldPassword() {
10861
      return this.oldPassword;
10862
    }
10863
 
3430 rajveer 10864
    public void setOldPassword(String oldPassword) {
495 rajveer 10865
      this.oldPassword = oldPassword;
10866
    }
10867
 
10868
    public void unsetOldPassword() {
10869
      this.oldPassword = null;
10870
    }
10871
 
3430 rajveer 10872
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 10873
    public boolean isSetOldPassword() {
10874
      return this.oldPassword != null;
10875
    }
10876
 
10877
    public void setOldPasswordIsSet(boolean value) {
10878
      if (!value) {
10879
        this.oldPassword = null;
10880
      }
10881
    }
10882
 
10883
    public String getNewPassword() {
10884
      return this.newPassword;
10885
    }
10886
 
3430 rajveer 10887
    public void setNewPassword(String newPassword) {
495 rajveer 10888
      this.newPassword = newPassword;
10889
    }
10890
 
10891
    public void unsetNewPassword() {
10892
      this.newPassword = null;
10893
    }
10894
 
3430 rajveer 10895
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 10896
    public boolean isSetNewPassword() {
10897
      return this.newPassword != null;
10898
    }
10899
 
10900
    public void setNewPasswordIsSet(boolean value) {
10901
      if (!value) {
10902
        this.newPassword = null;
10903
      }
10904
    }
10905
 
10906
    public void setFieldValue(_Fields field, Object value) {
10907
      switch (field) {
10908
      case USERNAME:
10909
        if (value == null) {
10910
          unsetUsername();
10911
        } else {
10912
          setUsername((String)value);
10913
        }
10914
        break;
10915
 
10916
      case OLD_PASSWORD:
10917
        if (value == null) {
10918
          unsetOldPassword();
10919
        } else {
10920
          setOldPassword((String)value);
10921
        }
10922
        break;
10923
 
10924
      case NEW_PASSWORD:
10925
        if (value == null) {
10926
          unsetNewPassword();
10927
        } else {
10928
          setNewPassword((String)value);
10929
        }
10930
        break;
10931
 
10932
      }
10933
    }
10934
 
10935
    public Object getFieldValue(_Fields field) {
10936
      switch (field) {
10937
      case USERNAME:
10938
        return getUsername();
10939
 
10940
      case OLD_PASSWORD:
10941
        return getOldPassword();
10942
 
10943
      case NEW_PASSWORD:
10944
        return getNewPassword();
10945
 
10946
      }
10947
      throw new IllegalStateException();
10948
    }
10949
 
3430 rajveer 10950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10951
    public boolean isSet(_Fields field) {
10952
      if (field == null) {
10953
        throw new IllegalArgumentException();
10954
      }
495 rajveer 10955
 
10956
      switch (field) {
10957
      case USERNAME:
10958
        return isSetUsername();
10959
      case OLD_PASSWORD:
10960
        return isSetOldPassword();
10961
      case NEW_PASSWORD:
10962
        return isSetNewPassword();
10963
      }
10964
      throw new IllegalStateException();
10965
    }
10966
 
10967
    @Override
10968
    public boolean equals(Object that) {
10969
      if (that == null)
10970
        return false;
10971
      if (that instanceof updatePassword_args)
10972
        return this.equals((updatePassword_args)that);
10973
      return false;
10974
    }
10975
 
10976
    public boolean equals(updatePassword_args that) {
10977
      if (that == null)
10978
        return false;
10979
 
10980
      boolean this_present_username = true && this.isSetUsername();
10981
      boolean that_present_username = true && that.isSetUsername();
10982
      if (this_present_username || that_present_username) {
10983
        if (!(this_present_username && that_present_username))
10984
          return false;
10985
        if (!this.username.equals(that.username))
10986
          return false;
10987
      }
10988
 
10989
      boolean this_present_oldPassword = true && this.isSetOldPassword();
10990
      boolean that_present_oldPassword = true && that.isSetOldPassword();
10991
      if (this_present_oldPassword || that_present_oldPassword) {
10992
        if (!(this_present_oldPassword && that_present_oldPassword))
10993
          return false;
10994
        if (!this.oldPassword.equals(that.oldPassword))
10995
          return false;
10996
      }
10997
 
10998
      boolean this_present_newPassword = true && this.isSetNewPassword();
10999
      boolean that_present_newPassword = true && that.isSetNewPassword();
11000
      if (this_present_newPassword || that_present_newPassword) {
11001
        if (!(this_present_newPassword && that_present_newPassword))
11002
          return false;
11003
        if (!this.newPassword.equals(that.newPassword))
11004
          return false;
11005
      }
11006
 
11007
      return true;
11008
    }
11009
 
11010
    @Override
11011
    public int hashCode() {
11012
      return 0;
11013
    }
11014
 
11015
    public int compareTo(updatePassword_args other) {
11016
      if (!getClass().equals(other.getClass())) {
11017
        return getClass().getName().compareTo(other.getClass().getName());
11018
      }
11019
 
11020
      int lastComparison = 0;
11021
      updatePassword_args typedOther = (updatePassword_args)other;
11022
 
3430 rajveer 11023
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11024
      if (lastComparison != 0) {
11025
        return lastComparison;
11026
      }
3430 rajveer 11027
      if (isSetUsername()) {
11028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11029
        if (lastComparison != 0) {
11030
          return lastComparison;
11031
        }
495 rajveer 11032
      }
3430 rajveer 11033
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11034
      if (lastComparison != 0) {
11035
        return lastComparison;
11036
      }
3430 rajveer 11037
      if (isSetOldPassword()) {
11038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11039
        if (lastComparison != 0) {
11040
          return lastComparison;
11041
        }
495 rajveer 11042
      }
3430 rajveer 11043
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11044
      if (lastComparison != 0) {
11045
        return lastComparison;
11046
      }
3430 rajveer 11047
      if (isSetNewPassword()) {
11048
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11049
        if (lastComparison != 0) {
11050
          return lastComparison;
11051
        }
495 rajveer 11052
      }
11053
      return 0;
11054
    }
11055
 
3430 rajveer 11056
    public _Fields fieldForId(int fieldId) {
11057
      return _Fields.findByThriftId(fieldId);
11058
    }
11059
 
11060
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11061
      org.apache.thrift.protocol.TField field;
495 rajveer 11062
      iprot.readStructBegin();
11063
      while (true)
11064
      {
11065
        field = iprot.readFieldBegin();
3430 rajveer 11066
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11067
          break;
11068
        }
3430 rajveer 11069
        switch (field.id) {
11070
          case 1: // USERNAME
11071
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11072
              this.username = iprot.readString();
11073
            } else { 
11074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11075
            }
11076
            break;
11077
          case 2: // OLD_PASSWORD
11078
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11079
              this.oldPassword = iprot.readString();
11080
            } else { 
11081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11082
            }
11083
            break;
11084
          case 3: // NEW_PASSWORD
11085
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11086
              this.newPassword = iprot.readString();
11087
            } else { 
11088
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11089
            }
11090
            break;
11091
          default:
11092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11093
        }
3430 rajveer 11094
        iprot.readFieldEnd();
495 rajveer 11095
      }
11096
      iprot.readStructEnd();
11097
      validate();
11098
    }
11099
 
3430 rajveer 11100
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11101
      validate();
11102
 
11103
      oprot.writeStructBegin(STRUCT_DESC);
11104
      if (this.username != null) {
11105
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11106
        oprot.writeString(this.username);
11107
        oprot.writeFieldEnd();
11108
      }
11109
      if (this.oldPassword != null) {
11110
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11111
        oprot.writeString(this.oldPassword);
11112
        oprot.writeFieldEnd();
11113
      }
11114
      if (this.newPassword != null) {
11115
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11116
        oprot.writeString(this.newPassword);
11117
        oprot.writeFieldEnd();
11118
      }
11119
      oprot.writeFieldStop();
11120
      oprot.writeStructEnd();
11121
    }
11122
 
11123
    @Override
11124
    public String toString() {
11125
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11126
      boolean first = true;
11127
 
11128
      sb.append("username:");
11129
      if (this.username == null) {
11130
        sb.append("null");
11131
      } else {
11132
        sb.append(this.username);
11133
      }
11134
      first = false;
11135
      if (!first) sb.append(", ");
11136
      sb.append("oldPassword:");
11137
      if (this.oldPassword == null) {
11138
        sb.append("null");
11139
      } else {
11140
        sb.append(this.oldPassword);
11141
      }
11142
      first = false;
11143
      if (!first) sb.append(", ");
11144
      sb.append("newPassword:");
11145
      if (this.newPassword == null) {
11146
        sb.append("null");
11147
      } else {
11148
        sb.append(this.newPassword);
11149
      }
11150
      first = false;
11151
      sb.append(")");
11152
      return sb.toString();
11153
    }
11154
 
3430 rajveer 11155
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11156
      // check for required fields
11157
    }
11158
 
3430 rajveer 11159
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11160
      try {
11161
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11162
      } catch (org.apache.thrift.TException te) {
11163
        throw new java.io.IOException(te);
11164
      }
11165
    }
11166
 
11167
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11168
      try {
11169
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11170
      } catch (org.apache.thrift.TException te) {
11171
        throw new java.io.IOException(te);
11172
      }
11173
    }
11174
 
495 rajveer 11175
  }
11176
 
3430 rajveer 11177
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11178
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11179
 
3430 rajveer 11180
    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);
11181
    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 11182
 
3430 rajveer 11183
    private boolean success; // required
11184
    private HelperServiceException se; // required
495 rajveer 11185
 
11186
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11187
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11188
      SUCCESS((short)0, "success"),
11189
      SE((short)1, "se");
11190
 
11191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11192
 
11193
      static {
11194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11195
          byName.put(field.getFieldName(), field);
11196
        }
11197
      }
11198
 
11199
      /**
11200
       * Find the _Fields constant that matches fieldId, or null if its not found.
11201
       */
11202
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11203
        switch(fieldId) {
11204
          case 0: // SUCCESS
11205
            return SUCCESS;
11206
          case 1: // SE
11207
            return SE;
11208
          default:
11209
            return null;
11210
        }
495 rajveer 11211
      }
11212
 
11213
      /**
11214
       * Find the _Fields constant that matches fieldId, throwing an exception
11215
       * if it is not found.
11216
       */
11217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11218
        _Fields fields = findByThriftId(fieldId);
11219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11220
        return fields;
11221
      }
11222
 
11223
      /**
11224
       * Find the _Fields constant that matches name, or null if its not found.
11225
       */
11226
      public static _Fields findByName(String name) {
11227
        return byName.get(name);
11228
      }
11229
 
11230
      private final short _thriftId;
11231
      private final String _fieldName;
11232
 
11233
      _Fields(short thriftId, String fieldName) {
11234
        _thriftId = thriftId;
11235
        _fieldName = fieldName;
11236
      }
11237
 
11238
      public short getThriftFieldId() {
11239
        return _thriftId;
11240
      }
11241
 
11242
      public String getFieldName() {
11243
        return _fieldName;
11244
      }
11245
    }
11246
 
11247
    // isset id assignments
11248
    private static final int __SUCCESS_ISSET_ID = 0;
11249
    private BitSet __isset_bit_vector = new BitSet(1);
11250
 
3430 rajveer 11251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11252
    static {
3430 rajveer 11253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11254
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11256
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11260
    }
11261
 
11262
    public updatePassword_result() {
11263
    }
11264
 
11265
    public updatePassword_result(
11266
      boolean success,
11267
      HelperServiceException se)
11268
    {
11269
      this();
11270
      this.success = success;
11271
      setSuccessIsSet(true);
11272
      this.se = se;
11273
    }
11274
 
11275
    /**
11276
     * Performs a deep copy on <i>other</i>.
11277
     */
11278
    public updatePassword_result(updatePassword_result other) {
11279
      __isset_bit_vector.clear();
11280
      __isset_bit_vector.or(other.__isset_bit_vector);
11281
      this.success = other.success;
11282
      if (other.isSetSe()) {
11283
        this.se = new HelperServiceException(other.se);
11284
      }
11285
    }
11286
 
11287
    public updatePassword_result deepCopy() {
11288
      return new updatePassword_result(this);
11289
    }
11290
 
3430 rajveer 11291
    @Override
11292
    public void clear() {
11293
      setSuccessIsSet(false);
11294
      this.success = false;
11295
      this.se = null;
495 rajveer 11296
    }
11297
 
11298
    public boolean isSuccess() {
11299
      return this.success;
11300
    }
11301
 
3430 rajveer 11302
    public void setSuccess(boolean success) {
495 rajveer 11303
      this.success = success;
11304
      setSuccessIsSet(true);
11305
    }
11306
 
11307
    public void unsetSuccess() {
11308
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11309
    }
11310
 
3430 rajveer 11311
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11312
    public boolean isSetSuccess() {
11313
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11314
    }
11315
 
11316
    public void setSuccessIsSet(boolean value) {
11317
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11318
    }
11319
 
11320
    public HelperServiceException getSe() {
11321
      return this.se;
11322
    }
11323
 
3430 rajveer 11324
    public void setSe(HelperServiceException se) {
495 rajveer 11325
      this.se = se;
11326
    }
11327
 
11328
    public void unsetSe() {
11329
      this.se = null;
11330
    }
11331
 
3430 rajveer 11332
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11333
    public boolean isSetSe() {
11334
      return this.se != null;
11335
    }
11336
 
11337
    public void setSeIsSet(boolean value) {
11338
      if (!value) {
11339
        this.se = null;
11340
      }
11341
    }
11342
 
11343
    public void setFieldValue(_Fields field, Object value) {
11344
      switch (field) {
11345
      case SUCCESS:
11346
        if (value == null) {
11347
          unsetSuccess();
11348
        } else {
11349
          setSuccess((Boolean)value);
11350
        }
11351
        break;
11352
 
11353
      case SE:
11354
        if (value == null) {
11355
          unsetSe();
11356
        } else {
11357
          setSe((HelperServiceException)value);
11358
        }
11359
        break;
11360
 
11361
      }
11362
    }
11363
 
11364
    public Object getFieldValue(_Fields field) {
11365
      switch (field) {
11366
      case SUCCESS:
3430 rajveer 11367
        return Boolean.valueOf(isSuccess());
495 rajveer 11368
 
11369
      case SE:
11370
        return getSe();
11371
 
11372
      }
11373
      throw new IllegalStateException();
11374
    }
11375
 
3430 rajveer 11376
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11377
    public boolean isSet(_Fields field) {
11378
      if (field == null) {
11379
        throw new IllegalArgumentException();
11380
      }
495 rajveer 11381
 
11382
      switch (field) {
11383
      case SUCCESS:
11384
        return isSetSuccess();
11385
      case SE:
11386
        return isSetSe();
11387
      }
11388
      throw new IllegalStateException();
11389
    }
11390
 
11391
    @Override
11392
    public boolean equals(Object that) {
11393
      if (that == null)
11394
        return false;
11395
      if (that instanceof updatePassword_result)
11396
        return this.equals((updatePassword_result)that);
11397
      return false;
11398
    }
11399
 
11400
    public boolean equals(updatePassword_result that) {
11401
      if (that == null)
11402
        return false;
11403
 
11404
      boolean this_present_success = true;
11405
      boolean that_present_success = true;
11406
      if (this_present_success || that_present_success) {
11407
        if (!(this_present_success && that_present_success))
11408
          return false;
11409
        if (this.success != that.success)
11410
          return false;
11411
      }
11412
 
11413
      boolean this_present_se = true && this.isSetSe();
11414
      boolean that_present_se = true && that.isSetSe();
11415
      if (this_present_se || that_present_se) {
11416
        if (!(this_present_se && that_present_se))
11417
          return false;
11418
        if (!this.se.equals(that.se))
11419
          return false;
11420
      }
11421
 
11422
      return true;
11423
    }
11424
 
11425
    @Override
11426
    public int hashCode() {
11427
      return 0;
11428
    }
11429
 
11430
    public int compareTo(updatePassword_result other) {
11431
      if (!getClass().equals(other.getClass())) {
11432
        return getClass().getName().compareTo(other.getClass().getName());
11433
      }
11434
 
11435
      int lastComparison = 0;
11436
      updatePassword_result typedOther = (updatePassword_result)other;
11437
 
3430 rajveer 11438
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11439
      if (lastComparison != 0) {
11440
        return lastComparison;
11441
      }
3430 rajveer 11442
      if (isSetSuccess()) {
11443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11444
        if (lastComparison != 0) {
11445
          return lastComparison;
11446
        }
495 rajveer 11447
      }
3430 rajveer 11448
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11449
      if (lastComparison != 0) {
11450
        return lastComparison;
11451
      }
3430 rajveer 11452
      if (isSetSe()) {
11453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11454
        if (lastComparison != 0) {
11455
          return lastComparison;
11456
        }
495 rajveer 11457
      }
11458
      return 0;
11459
    }
11460
 
3430 rajveer 11461
    public _Fields fieldForId(int fieldId) {
11462
      return _Fields.findByThriftId(fieldId);
11463
    }
11464
 
11465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11466
      org.apache.thrift.protocol.TField field;
495 rajveer 11467
      iprot.readStructBegin();
11468
      while (true)
11469
      {
11470
        field = iprot.readFieldBegin();
3430 rajveer 11471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11472
          break;
11473
        }
3430 rajveer 11474
        switch (field.id) {
11475
          case 0: // SUCCESS
11476
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11477
              this.success = iprot.readBool();
11478
              setSuccessIsSet(true);
11479
            } else { 
11480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11481
            }
11482
            break;
11483
          case 1: // SE
11484
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11485
              this.se = new HelperServiceException();
11486
              this.se.read(iprot);
11487
            } else { 
11488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11489
            }
11490
            break;
11491
          default:
11492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11493
        }
3430 rajveer 11494
        iprot.readFieldEnd();
495 rajveer 11495
      }
11496
      iprot.readStructEnd();
11497
      validate();
11498
    }
11499
 
3430 rajveer 11500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11501
      oprot.writeStructBegin(STRUCT_DESC);
11502
 
11503
      if (this.isSetSuccess()) {
11504
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11505
        oprot.writeBool(this.success);
11506
        oprot.writeFieldEnd();
11507
      } else if (this.isSetSe()) {
11508
        oprot.writeFieldBegin(SE_FIELD_DESC);
11509
        this.se.write(oprot);
11510
        oprot.writeFieldEnd();
11511
      }
11512
      oprot.writeFieldStop();
11513
      oprot.writeStructEnd();
11514
    }
11515
 
11516
    @Override
11517
    public String toString() {
11518
      StringBuilder sb = new StringBuilder("updatePassword_result(");
11519
      boolean first = true;
11520
 
11521
      sb.append("success:");
11522
      sb.append(this.success);
11523
      first = false;
11524
      if (!first) sb.append(", ");
11525
      sb.append("se:");
11526
      if (this.se == null) {
11527
        sb.append("null");
11528
      } else {
11529
        sb.append(this.se);
11530
      }
11531
      first = false;
11532
      sb.append(")");
11533
      return sb.toString();
11534
    }
11535
 
3430 rajveer 11536
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11537
      // check for required fields
11538
    }
11539
 
3430 rajveer 11540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11541
      try {
11542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11543
      } catch (org.apache.thrift.TException te) {
11544
        throw new java.io.IOException(te);
11545
      }
11546
    }
11547
 
11548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11549
      try {
11550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11551
      } catch (org.apache.thrift.TException te) {
11552
        throw new java.io.IOException(te);
11553
      }
11554
    }
11555
 
495 rajveer 11556
  }
11557
 
3430 rajveer 11558
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 11560
 
3430 rajveer 11561
    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);
11562
    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 11563
 
3430 rajveer 11564
    private String username; // required
11565
    private String password; // required
750 chandransh 11566
 
11567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11569
      USERNAME((short)1, "username"),
11570
      PASSWORD((short)2, "password");
11571
 
11572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11573
 
11574
      static {
11575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11576
          byName.put(field.getFieldName(), field);
11577
        }
11578
      }
11579
 
11580
      /**
11581
       * Find the _Fields constant that matches fieldId, or null if its not found.
11582
       */
11583
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11584
        switch(fieldId) {
11585
          case 1: // USERNAME
11586
            return USERNAME;
11587
          case 2: // PASSWORD
11588
            return PASSWORD;
11589
          default:
11590
            return null;
11591
        }
750 chandransh 11592
      }
11593
 
11594
      /**
11595
       * Find the _Fields constant that matches fieldId, throwing an exception
11596
       * if it is not found.
11597
       */
11598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11599
        _Fields fields = findByThriftId(fieldId);
11600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11601
        return fields;
11602
      }
11603
 
11604
      /**
11605
       * Find the _Fields constant that matches name, or null if its not found.
11606
       */
11607
      public static _Fields findByName(String name) {
11608
        return byName.get(name);
11609
      }
11610
 
11611
      private final short _thriftId;
11612
      private final String _fieldName;
11613
 
11614
      _Fields(short thriftId, String fieldName) {
11615
        _thriftId = thriftId;
11616
        _fieldName = fieldName;
11617
      }
11618
 
11619
      public short getThriftFieldId() {
11620
        return _thriftId;
11621
      }
11622
 
11623
      public String getFieldName() {
11624
        return _fieldName;
11625
      }
11626
    }
11627
 
11628
    // isset id assignments
11629
 
3430 rajveer 11630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11631
    static {
3430 rajveer 11632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11633
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11635
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 11639
    }
11640
 
11641
    public authenticateLogisticsUser_args() {
11642
    }
11643
 
11644
    public authenticateLogisticsUser_args(
11645
      String username,
11646
      String password)
11647
    {
11648
      this();
11649
      this.username = username;
11650
      this.password = password;
11651
    }
11652
 
11653
    /**
11654
     * Performs a deep copy on <i>other</i>.
11655
     */
11656
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
11657
      if (other.isSetUsername()) {
11658
        this.username = other.username;
11659
      }
11660
      if (other.isSetPassword()) {
11661
        this.password = other.password;
11662
      }
11663
    }
11664
 
11665
    public authenticateLogisticsUser_args deepCopy() {
11666
      return new authenticateLogisticsUser_args(this);
11667
    }
11668
 
3430 rajveer 11669
    @Override
11670
    public void clear() {
11671
      this.username = null;
11672
      this.password = null;
750 chandransh 11673
    }
11674
 
11675
    public String getUsername() {
11676
      return this.username;
11677
    }
11678
 
3430 rajveer 11679
    public void setUsername(String username) {
750 chandransh 11680
      this.username = username;
11681
    }
11682
 
11683
    public void unsetUsername() {
11684
      this.username = null;
11685
    }
11686
 
3430 rajveer 11687
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 11688
    public boolean isSetUsername() {
11689
      return this.username != null;
11690
    }
11691
 
11692
    public void setUsernameIsSet(boolean value) {
11693
      if (!value) {
11694
        this.username = null;
11695
      }
11696
    }
11697
 
11698
    public String getPassword() {
11699
      return this.password;
11700
    }
11701
 
3430 rajveer 11702
    public void setPassword(String password) {
750 chandransh 11703
      this.password = password;
11704
    }
11705
 
11706
    public void unsetPassword() {
11707
      this.password = null;
11708
    }
11709
 
3430 rajveer 11710
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 11711
    public boolean isSetPassword() {
11712
      return this.password != null;
11713
    }
11714
 
11715
    public void setPasswordIsSet(boolean value) {
11716
      if (!value) {
11717
        this.password = null;
11718
      }
11719
    }
11720
 
11721
    public void setFieldValue(_Fields field, Object value) {
11722
      switch (field) {
11723
      case USERNAME:
11724
        if (value == null) {
11725
          unsetUsername();
11726
        } else {
11727
          setUsername((String)value);
11728
        }
11729
        break;
11730
 
11731
      case PASSWORD:
11732
        if (value == null) {
11733
          unsetPassword();
11734
        } else {
11735
          setPassword((String)value);
11736
        }
11737
        break;
11738
 
11739
      }
11740
    }
11741
 
11742
    public Object getFieldValue(_Fields field) {
11743
      switch (field) {
11744
      case USERNAME:
11745
        return getUsername();
11746
 
11747
      case PASSWORD:
11748
        return getPassword();
11749
 
11750
      }
11751
      throw new IllegalStateException();
11752
    }
11753
 
3430 rajveer 11754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11755
    public boolean isSet(_Fields field) {
11756
      if (field == null) {
11757
        throw new IllegalArgumentException();
11758
      }
750 chandransh 11759
 
11760
      switch (field) {
11761
      case USERNAME:
11762
        return isSetUsername();
11763
      case PASSWORD:
11764
        return isSetPassword();
11765
      }
11766
      throw new IllegalStateException();
11767
    }
11768
 
11769
    @Override
11770
    public boolean equals(Object that) {
11771
      if (that == null)
11772
        return false;
11773
      if (that instanceof authenticateLogisticsUser_args)
11774
        return this.equals((authenticateLogisticsUser_args)that);
11775
      return false;
11776
    }
11777
 
11778
    public boolean equals(authenticateLogisticsUser_args that) {
11779
      if (that == null)
11780
        return false;
11781
 
11782
      boolean this_present_username = true && this.isSetUsername();
11783
      boolean that_present_username = true && that.isSetUsername();
11784
      if (this_present_username || that_present_username) {
11785
        if (!(this_present_username && that_present_username))
11786
          return false;
11787
        if (!this.username.equals(that.username))
11788
          return false;
11789
      }
11790
 
11791
      boolean this_present_password = true && this.isSetPassword();
11792
      boolean that_present_password = true && that.isSetPassword();
11793
      if (this_present_password || that_present_password) {
11794
        if (!(this_present_password && that_present_password))
11795
          return false;
11796
        if (!this.password.equals(that.password))
11797
          return false;
11798
      }
11799
 
11800
      return true;
11801
    }
11802
 
11803
    @Override
11804
    public int hashCode() {
11805
      return 0;
11806
    }
11807
 
11808
    public int compareTo(authenticateLogisticsUser_args other) {
11809
      if (!getClass().equals(other.getClass())) {
11810
        return getClass().getName().compareTo(other.getClass().getName());
11811
      }
11812
 
11813
      int lastComparison = 0;
11814
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
11815
 
3430 rajveer 11816
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 11817
      if (lastComparison != 0) {
11818
        return lastComparison;
11819
      }
3430 rajveer 11820
      if (isSetUsername()) {
11821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11822
        if (lastComparison != 0) {
11823
          return lastComparison;
11824
        }
750 chandransh 11825
      }
3430 rajveer 11826
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 11827
      if (lastComparison != 0) {
11828
        return lastComparison;
11829
      }
3430 rajveer 11830
      if (isSetPassword()) {
11831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11832
        if (lastComparison != 0) {
11833
          return lastComparison;
11834
        }
750 chandransh 11835
      }
11836
      return 0;
11837
    }
11838
 
3430 rajveer 11839
    public _Fields fieldForId(int fieldId) {
11840
      return _Fields.findByThriftId(fieldId);
11841
    }
11842
 
11843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11844
      org.apache.thrift.protocol.TField field;
750 chandransh 11845
      iprot.readStructBegin();
11846
      while (true)
11847
      {
11848
        field = iprot.readFieldBegin();
3430 rajveer 11849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 11850
          break;
11851
        }
3430 rajveer 11852
        switch (field.id) {
11853
          case 1: // USERNAME
11854
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11855
              this.username = iprot.readString();
11856
            } else { 
11857
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11858
            }
11859
            break;
11860
          case 2: // PASSWORD
11861
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11862
              this.password = iprot.readString();
11863
            } else { 
11864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11865
            }
11866
            break;
11867
          default:
11868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 11869
        }
3430 rajveer 11870
        iprot.readFieldEnd();
750 chandransh 11871
      }
11872
      iprot.readStructEnd();
11873
      validate();
11874
    }
11875
 
3430 rajveer 11876
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 11877
      validate();
11878
 
11879
      oprot.writeStructBegin(STRUCT_DESC);
11880
      if (this.username != null) {
11881
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11882
        oprot.writeString(this.username);
11883
        oprot.writeFieldEnd();
11884
      }
11885
      if (this.password != null) {
11886
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11887
        oprot.writeString(this.password);
11888
        oprot.writeFieldEnd();
11889
      }
11890
      oprot.writeFieldStop();
11891
      oprot.writeStructEnd();
11892
    }
11893
 
11894
    @Override
11895
    public String toString() {
11896
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
11897
      boolean first = true;
11898
 
11899
      sb.append("username:");
11900
      if (this.username == null) {
11901
        sb.append("null");
11902
      } else {
11903
        sb.append(this.username);
11904
      }
11905
      first = false;
11906
      if (!first) sb.append(", ");
11907
      sb.append("password:");
11908
      if (this.password == null) {
11909
        sb.append("null");
11910
      } else {
11911
        sb.append(this.password);
11912
      }
11913
      first = false;
11914
      sb.append(")");
11915
      return sb.toString();
11916
    }
11917
 
3430 rajveer 11918
    public void validate() throws org.apache.thrift.TException {
750 chandransh 11919
      // check for required fields
11920
    }
11921
 
3430 rajveer 11922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11923
      try {
11924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11925
      } catch (org.apache.thrift.TException te) {
11926
        throw new java.io.IOException(te);
11927
      }
11928
    }
11929
 
11930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11931
      try {
11932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11933
      } catch (org.apache.thrift.TException te) {
11934
        throw new java.io.IOException(te);
11935
      }
11936
    }
11937
 
750 chandransh 11938
  }
11939
 
3430 rajveer 11940
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
11941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 11942
 
3430 rajveer 11943
    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);
11944
    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 11945
 
3430 rajveer 11946
    private LogisticsUser success; // required
11947
    private HelperServiceException hse; // required
750 chandransh 11948
 
11949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11951
      SUCCESS((short)0, "success"),
11952
      HSE((short)1, "hse");
11953
 
11954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11955
 
11956
      static {
11957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11958
          byName.put(field.getFieldName(), field);
11959
        }
11960
      }
11961
 
11962
      /**
11963
       * Find the _Fields constant that matches fieldId, or null if its not found.
11964
       */
11965
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11966
        switch(fieldId) {
11967
          case 0: // SUCCESS
11968
            return SUCCESS;
11969
          case 1: // HSE
11970
            return HSE;
11971
          default:
11972
            return null;
11973
        }
750 chandransh 11974
      }
11975
 
11976
      /**
11977
       * Find the _Fields constant that matches fieldId, throwing an exception
11978
       * if it is not found.
11979
       */
11980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11981
        _Fields fields = findByThriftId(fieldId);
11982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11983
        return fields;
11984
      }
11985
 
11986
      /**
11987
       * Find the _Fields constant that matches name, or null if its not found.
11988
       */
11989
      public static _Fields findByName(String name) {
11990
        return byName.get(name);
11991
      }
11992
 
11993
      private final short _thriftId;
11994
      private final String _fieldName;
11995
 
11996
      _Fields(short thriftId, String fieldName) {
11997
        _thriftId = thriftId;
11998
        _fieldName = fieldName;
11999
      }
12000
 
12001
      public short getThriftFieldId() {
12002
        return _thriftId;
12003
      }
12004
 
12005
      public String getFieldName() {
12006
        return _fieldName;
12007
      }
12008
    }
12009
 
12010
    // isset id assignments
12011
 
3430 rajveer 12012
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12013
    static {
3430 rajveer 12014
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12015
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12016
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12017
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12021
    }
12022
 
12023
    public authenticateLogisticsUser_result() {
12024
    }
12025
 
12026
    public authenticateLogisticsUser_result(
12027
      LogisticsUser success,
12028
      HelperServiceException hse)
12029
    {
12030
      this();
12031
      this.success = success;
12032
      this.hse = hse;
12033
    }
12034
 
12035
    /**
12036
     * Performs a deep copy on <i>other</i>.
12037
     */
12038
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12039
      if (other.isSetSuccess()) {
12040
        this.success = new LogisticsUser(other.success);
12041
      }
12042
      if (other.isSetHse()) {
12043
        this.hse = new HelperServiceException(other.hse);
12044
      }
12045
    }
12046
 
12047
    public authenticateLogisticsUser_result deepCopy() {
12048
      return new authenticateLogisticsUser_result(this);
12049
    }
12050
 
3430 rajveer 12051
    @Override
12052
    public void clear() {
12053
      this.success = null;
12054
      this.hse = null;
750 chandransh 12055
    }
12056
 
12057
    public LogisticsUser getSuccess() {
12058
      return this.success;
12059
    }
12060
 
3430 rajveer 12061
    public void setSuccess(LogisticsUser success) {
750 chandransh 12062
      this.success = success;
12063
    }
12064
 
12065
    public void unsetSuccess() {
12066
      this.success = null;
12067
    }
12068
 
3430 rajveer 12069
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12070
    public boolean isSetSuccess() {
12071
      return this.success != null;
12072
    }
12073
 
12074
    public void setSuccessIsSet(boolean value) {
12075
      if (!value) {
12076
        this.success = null;
12077
      }
12078
    }
12079
 
12080
    public HelperServiceException getHse() {
12081
      return this.hse;
12082
    }
12083
 
3430 rajveer 12084
    public void setHse(HelperServiceException hse) {
750 chandransh 12085
      this.hse = hse;
12086
    }
12087
 
12088
    public void unsetHse() {
12089
      this.hse = null;
12090
    }
12091
 
3430 rajveer 12092
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12093
    public boolean isSetHse() {
12094
      return this.hse != null;
12095
    }
12096
 
12097
    public void setHseIsSet(boolean value) {
12098
      if (!value) {
12099
        this.hse = null;
12100
      }
12101
    }
12102
 
12103
    public void setFieldValue(_Fields field, Object value) {
12104
      switch (field) {
12105
      case SUCCESS:
12106
        if (value == null) {
12107
          unsetSuccess();
12108
        } else {
12109
          setSuccess((LogisticsUser)value);
12110
        }
12111
        break;
12112
 
12113
      case HSE:
12114
        if (value == null) {
12115
          unsetHse();
12116
        } else {
12117
          setHse((HelperServiceException)value);
12118
        }
12119
        break;
12120
 
12121
      }
12122
    }
12123
 
12124
    public Object getFieldValue(_Fields field) {
12125
      switch (field) {
12126
      case SUCCESS:
12127
        return getSuccess();
12128
 
12129
      case HSE:
12130
        return getHse();
12131
 
12132
      }
12133
      throw new IllegalStateException();
12134
    }
12135
 
3430 rajveer 12136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12137
    public boolean isSet(_Fields field) {
12138
      if (field == null) {
12139
        throw new IllegalArgumentException();
12140
      }
750 chandransh 12141
 
12142
      switch (field) {
12143
      case SUCCESS:
12144
        return isSetSuccess();
12145
      case HSE:
12146
        return isSetHse();
12147
      }
12148
      throw new IllegalStateException();
12149
    }
12150
 
12151
    @Override
12152
    public boolean equals(Object that) {
12153
      if (that == null)
12154
        return false;
12155
      if (that instanceof authenticateLogisticsUser_result)
12156
        return this.equals((authenticateLogisticsUser_result)that);
12157
      return false;
12158
    }
12159
 
12160
    public boolean equals(authenticateLogisticsUser_result that) {
12161
      if (that == null)
12162
        return false;
12163
 
12164
      boolean this_present_success = true && this.isSetSuccess();
12165
      boolean that_present_success = true && that.isSetSuccess();
12166
      if (this_present_success || that_present_success) {
12167
        if (!(this_present_success && that_present_success))
12168
          return false;
12169
        if (!this.success.equals(that.success))
12170
          return false;
12171
      }
12172
 
12173
      boolean this_present_hse = true && this.isSetHse();
12174
      boolean that_present_hse = true && that.isSetHse();
12175
      if (this_present_hse || that_present_hse) {
12176
        if (!(this_present_hse && that_present_hse))
12177
          return false;
12178
        if (!this.hse.equals(that.hse))
12179
          return false;
12180
      }
12181
 
12182
      return true;
12183
    }
12184
 
12185
    @Override
12186
    public int hashCode() {
12187
      return 0;
12188
    }
12189
 
12190
    public int compareTo(authenticateLogisticsUser_result other) {
12191
      if (!getClass().equals(other.getClass())) {
12192
        return getClass().getName().compareTo(other.getClass().getName());
12193
      }
12194
 
12195
      int lastComparison = 0;
12196
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12197
 
3430 rajveer 12198
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12199
      if (lastComparison != 0) {
12200
        return lastComparison;
12201
      }
3430 rajveer 12202
      if (isSetSuccess()) {
12203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12204
        if (lastComparison != 0) {
12205
          return lastComparison;
12206
        }
750 chandransh 12207
      }
3430 rajveer 12208
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12209
      if (lastComparison != 0) {
12210
        return lastComparison;
12211
      }
3430 rajveer 12212
      if (isSetHse()) {
12213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12214
        if (lastComparison != 0) {
12215
          return lastComparison;
12216
        }
750 chandransh 12217
      }
12218
      return 0;
12219
    }
12220
 
3430 rajveer 12221
    public _Fields fieldForId(int fieldId) {
12222
      return _Fields.findByThriftId(fieldId);
12223
    }
12224
 
12225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12226
      org.apache.thrift.protocol.TField field;
750 chandransh 12227
      iprot.readStructBegin();
12228
      while (true)
12229
      {
12230
        field = iprot.readFieldBegin();
3430 rajveer 12231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12232
          break;
12233
        }
3430 rajveer 12234
        switch (field.id) {
12235
          case 0: // SUCCESS
12236
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12237
              this.success = new LogisticsUser();
12238
              this.success.read(iprot);
12239
            } else { 
12240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12241
            }
12242
            break;
12243
          case 1: // HSE
12244
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12245
              this.hse = new HelperServiceException();
12246
              this.hse.read(iprot);
12247
            } else { 
12248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12249
            }
12250
            break;
12251
          default:
12252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12253
        }
3430 rajveer 12254
        iprot.readFieldEnd();
750 chandransh 12255
      }
12256
      iprot.readStructEnd();
12257
      validate();
12258
    }
12259
 
3430 rajveer 12260
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12261
      oprot.writeStructBegin(STRUCT_DESC);
12262
 
12263
      if (this.isSetSuccess()) {
12264
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12265
        this.success.write(oprot);
12266
        oprot.writeFieldEnd();
12267
      } else if (this.isSetHse()) {
12268
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12269
        this.hse.write(oprot);
12270
        oprot.writeFieldEnd();
12271
      }
12272
      oprot.writeFieldStop();
12273
      oprot.writeStructEnd();
12274
    }
12275
 
12276
    @Override
12277
    public String toString() {
12278
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12279
      boolean first = true;
12280
 
12281
      sb.append("success:");
12282
      if (this.success == null) {
12283
        sb.append("null");
12284
      } else {
12285
        sb.append(this.success);
12286
      }
12287
      first = false;
12288
      if (!first) sb.append(", ");
12289
      sb.append("hse:");
12290
      if (this.hse == null) {
12291
        sb.append("null");
12292
      } else {
12293
        sb.append(this.hse);
12294
      }
12295
      first = false;
12296
      sb.append(")");
12297
      return sb.toString();
12298
    }
12299
 
3430 rajveer 12300
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12301
      // check for required fields
12302
    }
12303
 
3430 rajveer 12304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12305
      try {
12306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12307
      } catch (org.apache.thrift.TException te) {
12308
        throw new java.io.IOException(te);
12309
      }
12310
    }
12311
 
12312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12313
      try {
12314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12315
      } catch (org.apache.thrift.TException te) {
12316
        throw new java.io.IOException(te);
12317
      }
12318
    }
12319
 
750 chandransh 12320
  }
12321
 
3430 rajveer 12322
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 12324
 
3430 rajveer 12325
    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);
12326
    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 12327
 
3430 rajveer 12328
    private String username; // required
12329
    private String password; // required
1611 ankur.sing 12330
 
12331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12333
      USERNAME((short)1, "username"),
12334
      PASSWORD((short)2, "password");
12335
 
12336
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12337
 
12338
      static {
12339
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12340
          byName.put(field.getFieldName(), field);
12341
        }
12342
      }
12343
 
12344
      /**
12345
       * Find the _Fields constant that matches fieldId, or null if its not found.
12346
       */
12347
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12348
        switch(fieldId) {
12349
          case 1: // USERNAME
12350
            return USERNAME;
12351
          case 2: // PASSWORD
12352
            return PASSWORD;
12353
          default:
12354
            return null;
12355
        }
1611 ankur.sing 12356
      }
12357
 
12358
      /**
12359
       * Find the _Fields constant that matches fieldId, throwing an exception
12360
       * if it is not found.
12361
       */
12362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12363
        _Fields fields = findByThriftId(fieldId);
12364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12365
        return fields;
12366
      }
12367
 
12368
      /**
12369
       * Find the _Fields constant that matches name, or null if its not found.
12370
       */
12371
      public static _Fields findByName(String name) {
12372
        return byName.get(name);
12373
      }
12374
 
12375
      private final short _thriftId;
12376
      private final String _fieldName;
12377
 
12378
      _Fields(short thriftId, String fieldName) {
12379
        _thriftId = thriftId;
12380
        _fieldName = fieldName;
12381
      }
12382
 
12383
      public short getThriftFieldId() {
12384
        return _thriftId;
12385
      }
12386
 
12387
      public String getFieldName() {
12388
        return _fieldName;
12389
      }
12390
    }
12391
 
12392
    // isset id assignments
12393
 
3430 rajveer 12394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12395
    static {
3430 rajveer 12396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12397
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12398
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12399
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 12403
    }
12404
 
12405
    public authenticateStatisticsUser_args() {
12406
    }
12407
 
12408
    public authenticateStatisticsUser_args(
12409
      String username,
12410
      String password)
12411
    {
12412
      this();
12413
      this.username = username;
12414
      this.password = password;
12415
    }
12416
 
12417
    /**
12418
     * Performs a deep copy on <i>other</i>.
12419
     */
12420
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
12421
      if (other.isSetUsername()) {
12422
        this.username = other.username;
12423
      }
12424
      if (other.isSetPassword()) {
12425
        this.password = other.password;
12426
      }
12427
    }
12428
 
12429
    public authenticateStatisticsUser_args deepCopy() {
12430
      return new authenticateStatisticsUser_args(this);
12431
    }
12432
 
3430 rajveer 12433
    @Override
12434
    public void clear() {
12435
      this.username = null;
12436
      this.password = null;
1611 ankur.sing 12437
    }
12438
 
12439
    public String getUsername() {
12440
      return this.username;
12441
    }
12442
 
3430 rajveer 12443
    public void setUsername(String username) {
1611 ankur.sing 12444
      this.username = username;
12445
    }
12446
 
12447
    public void unsetUsername() {
12448
      this.username = null;
12449
    }
12450
 
3430 rajveer 12451
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12452
    public boolean isSetUsername() {
12453
      return this.username != null;
12454
    }
12455
 
12456
    public void setUsernameIsSet(boolean value) {
12457
      if (!value) {
12458
        this.username = null;
12459
      }
12460
    }
12461
 
12462
    public String getPassword() {
12463
      return this.password;
12464
    }
12465
 
3430 rajveer 12466
    public void setPassword(String password) {
1611 ankur.sing 12467
      this.password = password;
12468
    }
12469
 
12470
    public void unsetPassword() {
12471
      this.password = null;
12472
    }
12473
 
3430 rajveer 12474
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12475
    public boolean isSetPassword() {
12476
      return this.password != null;
12477
    }
12478
 
12479
    public void setPasswordIsSet(boolean value) {
12480
      if (!value) {
12481
        this.password = null;
12482
      }
12483
    }
12484
 
12485
    public void setFieldValue(_Fields field, Object value) {
12486
      switch (field) {
12487
      case USERNAME:
12488
        if (value == null) {
12489
          unsetUsername();
12490
        } else {
12491
          setUsername((String)value);
12492
        }
12493
        break;
12494
 
12495
      case PASSWORD:
12496
        if (value == null) {
12497
          unsetPassword();
12498
        } else {
12499
          setPassword((String)value);
12500
        }
12501
        break;
12502
 
12503
      }
12504
    }
12505
 
12506
    public Object getFieldValue(_Fields field) {
12507
      switch (field) {
12508
      case USERNAME:
12509
        return getUsername();
12510
 
12511
      case PASSWORD:
12512
        return getPassword();
12513
 
12514
      }
12515
      throw new IllegalStateException();
12516
    }
12517
 
3430 rajveer 12518
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12519
    public boolean isSet(_Fields field) {
12520
      if (field == null) {
12521
        throw new IllegalArgumentException();
12522
      }
1611 ankur.sing 12523
 
12524
      switch (field) {
12525
      case USERNAME:
12526
        return isSetUsername();
12527
      case PASSWORD:
12528
        return isSetPassword();
12529
      }
12530
      throw new IllegalStateException();
12531
    }
12532
 
12533
    @Override
12534
    public boolean equals(Object that) {
12535
      if (that == null)
12536
        return false;
12537
      if (that instanceof authenticateStatisticsUser_args)
12538
        return this.equals((authenticateStatisticsUser_args)that);
12539
      return false;
12540
    }
12541
 
12542
    public boolean equals(authenticateStatisticsUser_args that) {
12543
      if (that == null)
12544
        return false;
12545
 
12546
      boolean this_present_username = true && this.isSetUsername();
12547
      boolean that_present_username = true && that.isSetUsername();
12548
      if (this_present_username || that_present_username) {
12549
        if (!(this_present_username && that_present_username))
12550
          return false;
12551
        if (!this.username.equals(that.username))
12552
          return false;
12553
      }
12554
 
12555
      boolean this_present_password = true && this.isSetPassword();
12556
      boolean that_present_password = true && that.isSetPassword();
12557
      if (this_present_password || that_present_password) {
12558
        if (!(this_present_password && that_present_password))
12559
          return false;
12560
        if (!this.password.equals(that.password))
12561
          return false;
12562
      }
12563
 
12564
      return true;
12565
    }
12566
 
12567
    @Override
12568
    public int hashCode() {
12569
      return 0;
12570
    }
12571
 
12572
    public int compareTo(authenticateStatisticsUser_args other) {
12573
      if (!getClass().equals(other.getClass())) {
12574
        return getClass().getName().compareTo(other.getClass().getName());
12575
      }
12576
 
12577
      int lastComparison = 0;
12578
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12579
 
3430 rajveer 12580
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 12581
      if (lastComparison != 0) {
12582
        return lastComparison;
12583
      }
3430 rajveer 12584
      if (isSetUsername()) {
12585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12586
        if (lastComparison != 0) {
12587
          return lastComparison;
12588
        }
1611 ankur.sing 12589
      }
3430 rajveer 12590
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 12591
      if (lastComparison != 0) {
12592
        return lastComparison;
12593
      }
3430 rajveer 12594
      if (isSetPassword()) {
12595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12596
        if (lastComparison != 0) {
12597
          return lastComparison;
12598
        }
1611 ankur.sing 12599
      }
12600
      return 0;
12601
    }
12602
 
3430 rajveer 12603
    public _Fields fieldForId(int fieldId) {
12604
      return _Fields.findByThriftId(fieldId);
12605
    }
12606
 
12607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12608
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12609
      iprot.readStructBegin();
12610
      while (true)
12611
      {
12612
        field = iprot.readFieldBegin();
3430 rajveer 12613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12614
          break;
12615
        }
3430 rajveer 12616
        switch (field.id) {
12617
          case 1: // USERNAME
12618
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12619
              this.username = iprot.readString();
12620
            } else { 
12621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12622
            }
12623
            break;
12624
          case 2: // PASSWORD
12625
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12626
              this.password = iprot.readString();
12627
            } else { 
12628
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12629
            }
12630
            break;
12631
          default:
12632
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12633
        }
3430 rajveer 12634
        iprot.readFieldEnd();
1611 ankur.sing 12635
      }
12636
      iprot.readStructEnd();
12637
      validate();
12638
    }
12639
 
3430 rajveer 12640
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12641
      validate();
12642
 
12643
      oprot.writeStructBegin(STRUCT_DESC);
12644
      if (this.username != null) {
12645
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12646
        oprot.writeString(this.username);
12647
        oprot.writeFieldEnd();
12648
      }
12649
      if (this.password != null) {
12650
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12651
        oprot.writeString(this.password);
12652
        oprot.writeFieldEnd();
12653
      }
12654
      oprot.writeFieldStop();
12655
      oprot.writeStructEnd();
12656
    }
12657
 
12658
    @Override
12659
    public String toString() {
12660
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
12661
      boolean first = true;
12662
 
12663
      sb.append("username:");
12664
      if (this.username == null) {
12665
        sb.append("null");
12666
      } else {
12667
        sb.append(this.username);
12668
      }
12669
      first = false;
12670
      if (!first) sb.append(", ");
12671
      sb.append("password:");
12672
      if (this.password == null) {
12673
        sb.append("null");
12674
      } else {
12675
        sb.append(this.password);
12676
      }
12677
      first = false;
12678
      sb.append(")");
12679
      return sb.toString();
12680
    }
12681
 
3430 rajveer 12682
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12683
      // check for required fields
12684
    }
12685
 
3430 rajveer 12686
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12687
      try {
12688
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12689
      } catch (org.apache.thrift.TException te) {
12690
        throw new java.io.IOException(te);
12691
      }
12692
    }
12693
 
12694
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12695
      try {
12696
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12697
      } catch (org.apache.thrift.TException te) {
12698
        throw new java.io.IOException(te);
12699
      }
12700
    }
12701
 
1611 ankur.sing 12702
  }
12703
 
3430 rajveer 12704
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12705
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 12706
 
3430 rajveer 12707
    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);
12708
    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 12709
 
3430 rajveer 12710
    private StatisticsUser success; // required
12711
    private HelperServiceException hse; // required
1611 ankur.sing 12712
 
12713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12715
      SUCCESS((short)0, "success"),
12716
      HSE((short)1, "hse");
12717
 
12718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12719
 
12720
      static {
12721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12722
          byName.put(field.getFieldName(), field);
12723
        }
12724
      }
12725
 
12726
      /**
12727
       * Find the _Fields constant that matches fieldId, or null if its not found.
12728
       */
12729
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12730
        switch(fieldId) {
12731
          case 0: // SUCCESS
12732
            return SUCCESS;
12733
          case 1: // HSE
12734
            return HSE;
12735
          default:
12736
            return null;
12737
        }
1611 ankur.sing 12738
      }
12739
 
12740
      /**
12741
       * Find the _Fields constant that matches fieldId, throwing an exception
12742
       * if it is not found.
12743
       */
12744
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12745
        _Fields fields = findByThriftId(fieldId);
12746
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12747
        return fields;
12748
      }
12749
 
12750
      /**
12751
       * Find the _Fields constant that matches name, or null if its not found.
12752
       */
12753
      public static _Fields findByName(String name) {
12754
        return byName.get(name);
12755
      }
12756
 
12757
      private final short _thriftId;
12758
      private final String _fieldName;
12759
 
12760
      _Fields(short thriftId, String fieldName) {
12761
        _thriftId = thriftId;
12762
        _fieldName = fieldName;
12763
      }
12764
 
12765
      public short getThriftFieldId() {
12766
        return _thriftId;
12767
      }
12768
 
12769
      public String getFieldName() {
12770
        return _fieldName;
12771
      }
12772
    }
12773
 
12774
    // isset id assignments
12775
 
3430 rajveer 12776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12777
    static {
3430 rajveer 12778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12779
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12780
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
12781
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 12785
    }
12786
 
12787
    public authenticateStatisticsUser_result() {
12788
    }
12789
 
12790
    public authenticateStatisticsUser_result(
12791
      StatisticsUser success,
12792
      HelperServiceException hse)
12793
    {
12794
      this();
12795
      this.success = success;
12796
      this.hse = hse;
12797
    }
12798
 
12799
    /**
12800
     * Performs a deep copy on <i>other</i>.
12801
     */
12802
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
12803
      if (other.isSetSuccess()) {
12804
        this.success = new StatisticsUser(other.success);
12805
      }
12806
      if (other.isSetHse()) {
12807
        this.hse = new HelperServiceException(other.hse);
12808
      }
12809
    }
12810
 
12811
    public authenticateStatisticsUser_result deepCopy() {
12812
      return new authenticateStatisticsUser_result(this);
12813
    }
12814
 
3430 rajveer 12815
    @Override
12816
    public void clear() {
12817
      this.success = null;
12818
      this.hse = null;
1611 ankur.sing 12819
    }
12820
 
12821
    public StatisticsUser getSuccess() {
12822
      return this.success;
12823
    }
12824
 
3430 rajveer 12825
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 12826
      this.success = success;
12827
    }
12828
 
12829
    public void unsetSuccess() {
12830
      this.success = null;
12831
    }
12832
 
3430 rajveer 12833
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12834
    public boolean isSetSuccess() {
12835
      return this.success != null;
12836
    }
12837
 
12838
    public void setSuccessIsSet(boolean value) {
12839
      if (!value) {
12840
        this.success = null;
12841
      }
12842
    }
12843
 
12844
    public HelperServiceException getHse() {
12845
      return this.hse;
12846
    }
12847
 
3430 rajveer 12848
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 12849
      this.hse = hse;
12850
    }
12851
 
12852
    public void unsetHse() {
12853
      this.hse = null;
12854
    }
12855
 
3430 rajveer 12856
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12857
    public boolean isSetHse() {
12858
      return this.hse != null;
12859
    }
12860
 
12861
    public void setHseIsSet(boolean value) {
12862
      if (!value) {
12863
        this.hse = null;
12864
      }
12865
    }
12866
 
12867
    public void setFieldValue(_Fields field, Object value) {
12868
      switch (field) {
12869
      case SUCCESS:
12870
        if (value == null) {
12871
          unsetSuccess();
12872
        } else {
12873
          setSuccess((StatisticsUser)value);
12874
        }
12875
        break;
12876
 
12877
      case HSE:
12878
        if (value == null) {
12879
          unsetHse();
12880
        } else {
12881
          setHse((HelperServiceException)value);
12882
        }
12883
        break;
12884
 
12885
      }
12886
    }
12887
 
12888
    public Object getFieldValue(_Fields field) {
12889
      switch (field) {
12890
      case SUCCESS:
12891
        return getSuccess();
12892
 
12893
      case HSE:
12894
        return getHse();
12895
 
12896
      }
12897
      throw new IllegalStateException();
12898
    }
12899
 
3430 rajveer 12900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12901
    public boolean isSet(_Fields field) {
12902
      if (field == null) {
12903
        throw new IllegalArgumentException();
12904
      }
1611 ankur.sing 12905
 
12906
      switch (field) {
12907
      case SUCCESS:
12908
        return isSetSuccess();
12909
      case HSE:
12910
        return isSetHse();
12911
      }
12912
      throw new IllegalStateException();
12913
    }
12914
 
12915
    @Override
12916
    public boolean equals(Object that) {
12917
      if (that == null)
12918
        return false;
12919
      if (that instanceof authenticateStatisticsUser_result)
12920
        return this.equals((authenticateStatisticsUser_result)that);
12921
      return false;
12922
    }
12923
 
12924
    public boolean equals(authenticateStatisticsUser_result that) {
12925
      if (that == null)
12926
        return false;
12927
 
12928
      boolean this_present_success = true && this.isSetSuccess();
12929
      boolean that_present_success = true && that.isSetSuccess();
12930
      if (this_present_success || that_present_success) {
12931
        if (!(this_present_success && that_present_success))
12932
          return false;
12933
        if (!this.success.equals(that.success))
12934
          return false;
12935
      }
12936
 
12937
      boolean this_present_hse = true && this.isSetHse();
12938
      boolean that_present_hse = true && that.isSetHse();
12939
      if (this_present_hse || that_present_hse) {
12940
        if (!(this_present_hse && that_present_hse))
12941
          return false;
12942
        if (!this.hse.equals(that.hse))
12943
          return false;
12944
      }
12945
 
12946
      return true;
12947
    }
12948
 
12949
    @Override
12950
    public int hashCode() {
12951
      return 0;
12952
    }
12953
 
12954
    public int compareTo(authenticateStatisticsUser_result other) {
12955
      if (!getClass().equals(other.getClass())) {
12956
        return getClass().getName().compareTo(other.getClass().getName());
12957
      }
12958
 
12959
      int lastComparison = 0;
12960
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
12961
 
3430 rajveer 12962
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 12963
      if (lastComparison != 0) {
12964
        return lastComparison;
12965
      }
3430 rajveer 12966
      if (isSetSuccess()) {
12967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12968
        if (lastComparison != 0) {
12969
          return lastComparison;
12970
        }
1611 ankur.sing 12971
      }
3430 rajveer 12972
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 12973
      if (lastComparison != 0) {
12974
        return lastComparison;
12975
      }
3430 rajveer 12976
      if (isSetHse()) {
12977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12978
        if (lastComparison != 0) {
12979
          return lastComparison;
12980
        }
1611 ankur.sing 12981
      }
12982
      return 0;
12983
    }
12984
 
3430 rajveer 12985
    public _Fields fieldForId(int fieldId) {
12986
      return _Fields.findByThriftId(fieldId);
12987
    }
12988
 
12989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12990
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12991
      iprot.readStructBegin();
12992
      while (true)
12993
      {
12994
        field = iprot.readFieldBegin();
3430 rajveer 12995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12996
          break;
12997
        }
3430 rajveer 12998
        switch (field.id) {
12999
          case 0: // SUCCESS
13000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13001
              this.success = new StatisticsUser();
13002
              this.success.read(iprot);
13003
            } else { 
13004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13005
            }
13006
            break;
13007
          case 1: // HSE
13008
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13009
              this.hse = new HelperServiceException();
13010
              this.hse.read(iprot);
13011
            } else { 
13012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13013
            }
13014
            break;
13015
          default:
13016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13017
        }
3430 rajveer 13018
        iprot.readFieldEnd();
1611 ankur.sing 13019
      }
13020
      iprot.readStructEnd();
13021
      validate();
13022
    }
13023
 
3430 rajveer 13024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13025
      oprot.writeStructBegin(STRUCT_DESC);
13026
 
13027
      if (this.isSetSuccess()) {
13028
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13029
        this.success.write(oprot);
13030
        oprot.writeFieldEnd();
13031
      } else if (this.isSetHse()) {
13032
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13033
        this.hse.write(oprot);
13034
        oprot.writeFieldEnd();
13035
      }
13036
      oprot.writeFieldStop();
13037
      oprot.writeStructEnd();
13038
    }
13039
 
13040
    @Override
13041
    public String toString() {
13042
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13043
      boolean first = true;
13044
 
13045
      sb.append("success:");
13046
      if (this.success == null) {
13047
        sb.append("null");
13048
      } else {
13049
        sb.append(this.success);
13050
      }
13051
      first = false;
13052
      if (!first) sb.append(", ");
13053
      sb.append("hse:");
13054
      if (this.hse == null) {
13055
        sb.append("null");
13056
      } else {
13057
        sb.append(this.hse);
13058
      }
13059
      first = false;
13060
      sb.append(")");
13061
      return sb.toString();
13062
    }
13063
 
3430 rajveer 13064
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13065
      // check for required fields
13066
    }
13067
 
3430 rajveer 13068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13069
      try {
13070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13071
      } catch (org.apache.thrift.TException te) {
13072
        throw new java.io.IOException(te);
13073
      }
13074
    }
13075
 
13076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13077
      try {
13078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13079
      } catch (org.apache.thrift.TException te) {
13080
        throw new java.io.IOException(te);
13081
      }
13082
    }
13083
 
1611 ankur.sing 13084
  }
13085
 
3430 rajveer 13086
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13088
 
3430 rajveer 13089
    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);
13090
    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 13091
 
3430 rajveer 13092
    private String username; // required
13093
    private String password; // required
1891 ankur.sing 13094
 
13095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13097
      USERNAME((short)1, "username"),
13098
      PASSWORD((short)2, "password");
13099
 
13100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13101
 
13102
      static {
13103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13104
          byName.put(field.getFieldName(), field);
13105
        }
13106
      }
13107
 
13108
      /**
13109
       * Find the _Fields constant that matches fieldId, or null if its not found.
13110
       */
13111
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13112
        switch(fieldId) {
13113
          case 1: // USERNAME
13114
            return USERNAME;
13115
          case 2: // PASSWORD
13116
            return PASSWORD;
13117
          default:
13118
            return null;
13119
        }
1891 ankur.sing 13120
      }
13121
 
13122
      /**
13123
       * Find the _Fields constant that matches fieldId, throwing an exception
13124
       * if it is not found.
13125
       */
13126
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13127
        _Fields fields = findByThriftId(fieldId);
13128
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13129
        return fields;
13130
      }
13131
 
13132
      /**
13133
       * Find the _Fields constant that matches name, or null if its not found.
13134
       */
13135
      public static _Fields findByName(String name) {
13136
        return byName.get(name);
13137
      }
13138
 
13139
      private final short _thriftId;
13140
      private final String _fieldName;
13141
 
13142
      _Fields(short thriftId, String fieldName) {
13143
        _thriftId = thriftId;
13144
        _fieldName = fieldName;
13145
      }
13146
 
13147
      public short getThriftFieldId() {
13148
        return _thriftId;
13149
      }
13150
 
13151
      public String getFieldName() {
13152
        return _fieldName;
13153
      }
13154
    }
13155
 
13156
    // isset id assignments
13157
 
3430 rajveer 13158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13159
    static {
3430 rajveer 13160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13161
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13163
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13167
    }
13168
 
13169
    public authenticateReportUser_args() {
13170
    }
13171
 
13172
    public authenticateReportUser_args(
13173
      String username,
13174
      String password)
13175
    {
13176
      this();
13177
      this.username = username;
13178
      this.password = password;
13179
    }
13180
 
13181
    /**
13182
     * Performs a deep copy on <i>other</i>.
13183
     */
13184
    public authenticateReportUser_args(authenticateReportUser_args other) {
13185
      if (other.isSetUsername()) {
13186
        this.username = other.username;
13187
      }
13188
      if (other.isSetPassword()) {
13189
        this.password = other.password;
13190
      }
13191
    }
13192
 
13193
    public authenticateReportUser_args deepCopy() {
13194
      return new authenticateReportUser_args(this);
13195
    }
13196
 
3430 rajveer 13197
    @Override
13198
    public void clear() {
13199
      this.username = null;
13200
      this.password = null;
1891 ankur.sing 13201
    }
13202
 
13203
    public String getUsername() {
13204
      return this.username;
13205
    }
13206
 
3430 rajveer 13207
    public void setUsername(String username) {
1891 ankur.sing 13208
      this.username = username;
13209
    }
13210
 
13211
    public void unsetUsername() {
13212
      this.username = null;
13213
    }
13214
 
3430 rajveer 13215
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13216
    public boolean isSetUsername() {
13217
      return this.username != null;
13218
    }
13219
 
13220
    public void setUsernameIsSet(boolean value) {
13221
      if (!value) {
13222
        this.username = null;
13223
      }
13224
    }
13225
 
13226
    public String getPassword() {
13227
      return this.password;
13228
    }
13229
 
3430 rajveer 13230
    public void setPassword(String password) {
1891 ankur.sing 13231
      this.password = password;
13232
    }
13233
 
13234
    public void unsetPassword() {
13235
      this.password = null;
13236
    }
13237
 
3430 rajveer 13238
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13239
    public boolean isSetPassword() {
13240
      return this.password != null;
13241
    }
13242
 
13243
    public void setPasswordIsSet(boolean value) {
13244
      if (!value) {
13245
        this.password = null;
13246
      }
13247
    }
13248
 
13249
    public void setFieldValue(_Fields field, Object value) {
13250
      switch (field) {
13251
      case USERNAME:
13252
        if (value == null) {
13253
          unsetUsername();
13254
        } else {
13255
          setUsername((String)value);
13256
        }
13257
        break;
13258
 
13259
      case PASSWORD:
13260
        if (value == null) {
13261
          unsetPassword();
13262
        } else {
13263
          setPassword((String)value);
13264
        }
13265
        break;
13266
 
13267
      }
13268
    }
13269
 
13270
    public Object getFieldValue(_Fields field) {
13271
      switch (field) {
13272
      case USERNAME:
13273
        return getUsername();
13274
 
13275
      case PASSWORD:
13276
        return getPassword();
13277
 
13278
      }
13279
      throw new IllegalStateException();
13280
    }
13281
 
3430 rajveer 13282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13283
    public boolean isSet(_Fields field) {
13284
      if (field == null) {
13285
        throw new IllegalArgumentException();
13286
      }
1891 ankur.sing 13287
 
13288
      switch (field) {
13289
      case USERNAME:
13290
        return isSetUsername();
13291
      case PASSWORD:
13292
        return isSetPassword();
13293
      }
13294
      throw new IllegalStateException();
13295
    }
13296
 
13297
    @Override
13298
    public boolean equals(Object that) {
13299
      if (that == null)
13300
        return false;
13301
      if (that instanceof authenticateReportUser_args)
13302
        return this.equals((authenticateReportUser_args)that);
13303
      return false;
13304
    }
13305
 
13306
    public boolean equals(authenticateReportUser_args that) {
13307
      if (that == null)
13308
        return false;
13309
 
13310
      boolean this_present_username = true && this.isSetUsername();
13311
      boolean that_present_username = true && that.isSetUsername();
13312
      if (this_present_username || that_present_username) {
13313
        if (!(this_present_username && that_present_username))
13314
          return false;
13315
        if (!this.username.equals(that.username))
13316
          return false;
13317
      }
13318
 
13319
      boolean this_present_password = true && this.isSetPassword();
13320
      boolean that_present_password = true && that.isSetPassword();
13321
      if (this_present_password || that_present_password) {
13322
        if (!(this_present_password && that_present_password))
13323
          return false;
13324
        if (!this.password.equals(that.password))
13325
          return false;
13326
      }
13327
 
13328
      return true;
13329
    }
13330
 
13331
    @Override
13332
    public int hashCode() {
13333
      return 0;
13334
    }
13335
 
13336
    public int compareTo(authenticateReportUser_args other) {
13337
      if (!getClass().equals(other.getClass())) {
13338
        return getClass().getName().compareTo(other.getClass().getName());
13339
      }
13340
 
13341
      int lastComparison = 0;
13342
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
13343
 
3430 rajveer 13344
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 13345
      if (lastComparison != 0) {
13346
        return lastComparison;
13347
      }
3430 rajveer 13348
      if (isSetUsername()) {
13349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13350
        if (lastComparison != 0) {
13351
          return lastComparison;
13352
        }
1891 ankur.sing 13353
      }
3430 rajveer 13354
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 13355
      if (lastComparison != 0) {
13356
        return lastComparison;
13357
      }
3430 rajveer 13358
      if (isSetPassword()) {
13359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13360
        if (lastComparison != 0) {
13361
          return lastComparison;
13362
        }
1891 ankur.sing 13363
      }
13364
      return 0;
13365
    }
13366
 
3430 rajveer 13367
    public _Fields fieldForId(int fieldId) {
13368
      return _Fields.findByThriftId(fieldId);
13369
    }
13370
 
13371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13372
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13373
      iprot.readStructBegin();
13374
      while (true)
13375
      {
13376
        field = iprot.readFieldBegin();
3430 rajveer 13377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13378
          break;
13379
        }
3430 rajveer 13380
        switch (field.id) {
13381
          case 1: // USERNAME
13382
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13383
              this.username = iprot.readString();
13384
            } else { 
13385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13386
            }
13387
            break;
13388
          case 2: // PASSWORD
13389
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13390
              this.password = iprot.readString();
13391
            } else { 
13392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13393
            }
13394
            break;
13395
          default:
13396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13397
        }
3430 rajveer 13398
        iprot.readFieldEnd();
1891 ankur.sing 13399
      }
13400
      iprot.readStructEnd();
13401
      validate();
13402
    }
13403
 
3430 rajveer 13404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13405
      validate();
13406
 
13407
      oprot.writeStructBegin(STRUCT_DESC);
13408
      if (this.username != null) {
13409
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13410
        oprot.writeString(this.username);
13411
        oprot.writeFieldEnd();
13412
      }
13413
      if (this.password != null) {
13414
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13415
        oprot.writeString(this.password);
13416
        oprot.writeFieldEnd();
13417
      }
13418
      oprot.writeFieldStop();
13419
      oprot.writeStructEnd();
13420
    }
13421
 
13422
    @Override
13423
    public String toString() {
13424
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
13425
      boolean first = true;
13426
 
13427
      sb.append("username:");
13428
      if (this.username == null) {
13429
        sb.append("null");
13430
      } else {
13431
        sb.append(this.username);
13432
      }
13433
      first = false;
13434
      if (!first) sb.append(", ");
13435
      sb.append("password:");
13436
      if (this.password == null) {
13437
        sb.append("null");
13438
      } else {
13439
        sb.append(this.password);
13440
      }
13441
      first = false;
13442
      sb.append(")");
13443
      return sb.toString();
13444
    }
13445
 
3430 rajveer 13446
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13447
      // check for required fields
13448
    }
13449
 
3430 rajveer 13450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13451
      try {
13452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13453
      } catch (org.apache.thrift.TException te) {
13454
        throw new java.io.IOException(te);
13455
      }
13456
    }
13457
 
13458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13459
      try {
13460
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13461
      } catch (org.apache.thrift.TException te) {
13462
        throw new java.io.IOException(te);
13463
      }
13464
    }
13465
 
1891 ankur.sing 13466
  }
13467
 
3430 rajveer 13468
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
13469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 13470
 
3430 rajveer 13471
    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);
13472
    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 13473
 
3430 rajveer 13474
    private ReportUser success; // required
13475
    private HelperServiceException hse; // required
1891 ankur.sing 13476
 
13477
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13478
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13479
      SUCCESS((short)0, "success"),
13480
      HSE((short)1, "hse");
13481
 
13482
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13483
 
13484
      static {
13485
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13486
          byName.put(field.getFieldName(), field);
13487
        }
13488
      }
13489
 
13490
      /**
13491
       * Find the _Fields constant that matches fieldId, or null if its not found.
13492
       */
13493
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13494
        switch(fieldId) {
13495
          case 0: // SUCCESS
13496
            return SUCCESS;
13497
          case 1: // HSE
13498
            return HSE;
13499
          default:
13500
            return null;
13501
        }
1891 ankur.sing 13502
      }
13503
 
13504
      /**
13505
       * Find the _Fields constant that matches fieldId, throwing an exception
13506
       * if it is not found.
13507
       */
13508
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13509
        _Fields fields = findByThriftId(fieldId);
13510
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13511
        return fields;
13512
      }
13513
 
13514
      /**
13515
       * Find the _Fields constant that matches name, or null if its not found.
13516
       */
13517
      public static _Fields findByName(String name) {
13518
        return byName.get(name);
13519
      }
13520
 
13521
      private final short _thriftId;
13522
      private final String _fieldName;
13523
 
13524
      _Fields(short thriftId, String fieldName) {
13525
        _thriftId = thriftId;
13526
        _fieldName = fieldName;
13527
      }
13528
 
13529
      public short getThriftFieldId() {
13530
        return _thriftId;
13531
      }
13532
 
13533
      public String getFieldName() {
13534
        return _fieldName;
13535
      }
13536
    }
13537
 
13538
    // isset id assignments
13539
 
3430 rajveer 13540
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13541
    static {
3430 rajveer 13542
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13543
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13544
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
13545
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13548
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 13549
    }
13550
 
13551
    public authenticateReportUser_result() {
13552
    }
13553
 
13554
    public authenticateReportUser_result(
13555
      ReportUser success,
13556
      HelperServiceException hse)
13557
    {
13558
      this();
13559
      this.success = success;
13560
      this.hse = hse;
13561
    }
13562
 
13563
    /**
13564
     * Performs a deep copy on <i>other</i>.
13565
     */
13566
    public authenticateReportUser_result(authenticateReportUser_result other) {
13567
      if (other.isSetSuccess()) {
13568
        this.success = new ReportUser(other.success);
13569
      }
13570
      if (other.isSetHse()) {
13571
        this.hse = new HelperServiceException(other.hse);
13572
      }
13573
    }
13574
 
13575
    public authenticateReportUser_result deepCopy() {
13576
      return new authenticateReportUser_result(this);
13577
    }
13578
 
3430 rajveer 13579
    @Override
13580
    public void clear() {
13581
      this.success = null;
13582
      this.hse = null;
1891 ankur.sing 13583
    }
13584
 
13585
    public ReportUser getSuccess() {
13586
      return this.success;
13587
    }
13588
 
3430 rajveer 13589
    public void setSuccess(ReportUser success) {
1891 ankur.sing 13590
      this.success = success;
13591
    }
13592
 
13593
    public void unsetSuccess() {
13594
      this.success = null;
13595
    }
13596
 
3430 rajveer 13597
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13598
    public boolean isSetSuccess() {
13599
      return this.success != null;
13600
    }
13601
 
13602
    public void setSuccessIsSet(boolean value) {
13603
      if (!value) {
13604
        this.success = null;
13605
      }
13606
    }
13607
 
13608
    public HelperServiceException getHse() {
13609
      return this.hse;
13610
    }
13611
 
3430 rajveer 13612
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 13613
      this.hse = hse;
13614
    }
13615
 
13616
    public void unsetHse() {
13617
      this.hse = null;
13618
    }
13619
 
3430 rajveer 13620
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13621
    public boolean isSetHse() {
13622
      return this.hse != null;
13623
    }
13624
 
13625
    public void setHseIsSet(boolean value) {
13626
      if (!value) {
13627
        this.hse = null;
13628
      }
13629
    }
13630
 
13631
    public void setFieldValue(_Fields field, Object value) {
13632
      switch (field) {
13633
      case SUCCESS:
13634
        if (value == null) {
13635
          unsetSuccess();
13636
        } else {
13637
          setSuccess((ReportUser)value);
13638
        }
13639
        break;
13640
 
13641
      case HSE:
13642
        if (value == null) {
13643
          unsetHse();
13644
        } else {
13645
          setHse((HelperServiceException)value);
13646
        }
13647
        break;
13648
 
13649
      }
13650
    }
13651
 
13652
    public Object getFieldValue(_Fields field) {
13653
      switch (field) {
13654
      case SUCCESS:
13655
        return getSuccess();
13656
 
13657
      case HSE:
13658
        return getHse();
13659
 
13660
      }
13661
      throw new IllegalStateException();
13662
    }
13663
 
3430 rajveer 13664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13665
    public boolean isSet(_Fields field) {
13666
      if (field == null) {
13667
        throw new IllegalArgumentException();
13668
      }
1891 ankur.sing 13669
 
13670
      switch (field) {
13671
      case SUCCESS:
13672
        return isSetSuccess();
13673
      case HSE:
13674
        return isSetHse();
13675
      }
13676
      throw new IllegalStateException();
13677
    }
13678
 
13679
    @Override
13680
    public boolean equals(Object that) {
13681
      if (that == null)
13682
        return false;
13683
      if (that instanceof authenticateReportUser_result)
13684
        return this.equals((authenticateReportUser_result)that);
13685
      return false;
13686
    }
13687
 
13688
    public boolean equals(authenticateReportUser_result that) {
13689
      if (that == null)
13690
        return false;
13691
 
13692
      boolean this_present_success = true && this.isSetSuccess();
13693
      boolean that_present_success = true && that.isSetSuccess();
13694
      if (this_present_success || that_present_success) {
13695
        if (!(this_present_success && that_present_success))
13696
          return false;
13697
        if (!this.success.equals(that.success))
13698
          return false;
13699
      }
13700
 
13701
      boolean this_present_hse = true && this.isSetHse();
13702
      boolean that_present_hse = true && that.isSetHse();
13703
      if (this_present_hse || that_present_hse) {
13704
        if (!(this_present_hse && that_present_hse))
13705
          return false;
13706
        if (!this.hse.equals(that.hse))
13707
          return false;
13708
      }
13709
 
13710
      return true;
13711
    }
13712
 
13713
    @Override
13714
    public int hashCode() {
13715
      return 0;
13716
    }
13717
 
13718
    public int compareTo(authenticateReportUser_result other) {
13719
      if (!getClass().equals(other.getClass())) {
13720
        return getClass().getName().compareTo(other.getClass().getName());
13721
      }
13722
 
13723
      int lastComparison = 0;
13724
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
13725
 
3430 rajveer 13726
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13727
      if (lastComparison != 0) {
13728
        return lastComparison;
13729
      }
3430 rajveer 13730
      if (isSetSuccess()) {
13731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13732
        if (lastComparison != 0) {
13733
          return lastComparison;
13734
        }
1891 ankur.sing 13735
      }
3430 rajveer 13736
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 13737
      if (lastComparison != 0) {
13738
        return lastComparison;
13739
      }
3430 rajveer 13740
      if (isSetHse()) {
13741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13742
        if (lastComparison != 0) {
13743
          return lastComparison;
13744
        }
1891 ankur.sing 13745
      }
13746
      return 0;
13747
    }
13748
 
3430 rajveer 13749
    public _Fields fieldForId(int fieldId) {
13750
      return _Fields.findByThriftId(fieldId);
13751
    }
13752
 
13753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13754
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13755
      iprot.readStructBegin();
13756
      while (true)
13757
      {
13758
        field = iprot.readFieldBegin();
3430 rajveer 13759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13760
          break;
13761
        }
3430 rajveer 13762
        switch (field.id) {
13763
          case 0: // SUCCESS
13764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13765
              this.success = new ReportUser();
13766
              this.success.read(iprot);
13767
            } else { 
13768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13769
            }
13770
            break;
13771
          case 1: // HSE
13772
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13773
              this.hse = new HelperServiceException();
13774
              this.hse.read(iprot);
13775
            } else { 
13776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13777
            }
13778
            break;
13779
          default:
13780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13781
        }
3430 rajveer 13782
        iprot.readFieldEnd();
1891 ankur.sing 13783
      }
13784
      iprot.readStructEnd();
13785
      validate();
13786
    }
13787
 
3430 rajveer 13788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13789
      oprot.writeStructBegin(STRUCT_DESC);
13790
 
13791
      if (this.isSetSuccess()) {
13792
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13793
        this.success.write(oprot);
13794
        oprot.writeFieldEnd();
13795
      } else if (this.isSetHse()) {
13796
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13797
        this.hse.write(oprot);
13798
        oprot.writeFieldEnd();
13799
      }
13800
      oprot.writeFieldStop();
13801
      oprot.writeStructEnd();
13802
    }
13803
 
13804
    @Override
13805
    public String toString() {
13806
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
13807
      boolean first = true;
13808
 
13809
      sb.append("success:");
13810
      if (this.success == null) {
13811
        sb.append("null");
13812
      } else {
13813
        sb.append(this.success);
13814
      }
13815
      first = false;
13816
      if (!first) sb.append(", ");
13817
      sb.append("hse:");
13818
      if (this.hse == null) {
13819
        sb.append("null");
13820
      } else {
13821
        sb.append(this.hse);
13822
      }
13823
      first = false;
13824
      sb.append(")");
13825
      return sb.toString();
13826
    }
13827
 
3430 rajveer 13828
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13829
      // check for required fields
13830
    }
13831
 
3430 rajveer 13832
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13833
      try {
13834
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13835
      } catch (org.apache.thrift.TException te) {
13836
        throw new java.io.IOException(te);
13837
      }
13838
    }
13839
 
13840
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13841
      try {
13842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13843
      } catch (org.apache.thrift.TException te) {
13844
        throw new java.io.IOException(te);
13845
      }
13846
    }
13847
 
1891 ankur.sing 13848
  }
13849
 
3430 rajveer 13850
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
13851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 13852
 
3430 rajveer 13853
    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 13854
 
3430 rajveer 13855
    private long role; // required
1891 ankur.sing 13856
 
13857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13859
      ROLE((short)1, "role");
13860
 
13861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13862
 
13863
      static {
13864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13865
          byName.put(field.getFieldName(), field);
13866
        }
13867
      }
13868
 
13869
      /**
13870
       * Find the _Fields constant that matches fieldId, or null if its not found.
13871
       */
13872
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13873
        switch(fieldId) {
13874
          case 1: // ROLE
13875
            return ROLE;
13876
          default:
13877
            return null;
13878
        }
1891 ankur.sing 13879
      }
13880
 
13881
      /**
13882
       * Find the _Fields constant that matches fieldId, throwing an exception
13883
       * if it is not found.
13884
       */
13885
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13886
        _Fields fields = findByThriftId(fieldId);
13887
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13888
        return fields;
13889
      }
13890
 
13891
      /**
13892
       * Find the _Fields constant that matches name, or null if its not found.
13893
       */
13894
      public static _Fields findByName(String name) {
13895
        return byName.get(name);
13896
      }
13897
 
13898
      private final short _thriftId;
13899
      private final String _fieldName;
13900
 
13901
      _Fields(short thriftId, String fieldName) {
13902
        _thriftId = thriftId;
13903
        _fieldName = fieldName;
13904
      }
13905
 
13906
      public short getThriftFieldId() {
13907
        return _thriftId;
13908
      }
13909
 
13910
      public String getFieldName() {
13911
        return _fieldName;
13912
      }
13913
    }
13914
 
13915
    // isset id assignments
13916
    private static final int __ROLE_ISSET_ID = 0;
13917
    private BitSet __isset_bit_vector = new BitSet(1);
13918
 
3430 rajveer 13919
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13920
    static {
3430 rajveer 13921
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13922
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 13926
    }
13927
 
13928
    public getReports_args() {
13929
    }
13930
 
13931
    public getReports_args(
13932
      long role)
13933
    {
13934
      this();
13935
      this.role = role;
13936
      setRoleIsSet(true);
13937
    }
13938
 
13939
    /**
13940
     * Performs a deep copy on <i>other</i>.
13941
     */
13942
    public getReports_args(getReports_args other) {
13943
      __isset_bit_vector.clear();
13944
      __isset_bit_vector.or(other.__isset_bit_vector);
13945
      this.role = other.role;
13946
    }
13947
 
13948
    public getReports_args deepCopy() {
13949
      return new getReports_args(this);
13950
    }
13951
 
3430 rajveer 13952
    @Override
13953
    public void clear() {
13954
      setRoleIsSet(false);
13955
      this.role = 0;
1891 ankur.sing 13956
    }
13957
 
13958
    public long getRole() {
13959
      return this.role;
13960
    }
13961
 
3430 rajveer 13962
    public void setRole(long role) {
1891 ankur.sing 13963
      this.role = role;
13964
      setRoleIsSet(true);
13965
    }
13966
 
13967
    public void unsetRole() {
13968
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
13969
    }
13970
 
3430 rajveer 13971
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13972
    public boolean isSetRole() {
13973
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
13974
    }
13975
 
13976
    public void setRoleIsSet(boolean value) {
13977
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
13978
    }
13979
 
13980
    public void setFieldValue(_Fields field, Object value) {
13981
      switch (field) {
13982
      case ROLE:
13983
        if (value == null) {
13984
          unsetRole();
13985
        } else {
13986
          setRole((Long)value);
13987
        }
13988
        break;
13989
 
13990
      }
13991
    }
13992
 
13993
    public Object getFieldValue(_Fields field) {
13994
      switch (field) {
13995
      case ROLE:
3430 rajveer 13996
        return Long.valueOf(getRole());
1891 ankur.sing 13997
 
13998
      }
13999
      throw new IllegalStateException();
14000
    }
14001
 
3430 rajveer 14002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14003
    public boolean isSet(_Fields field) {
14004
      if (field == null) {
14005
        throw new IllegalArgumentException();
14006
      }
1891 ankur.sing 14007
 
14008
      switch (field) {
14009
      case ROLE:
14010
        return isSetRole();
14011
      }
14012
      throw new IllegalStateException();
14013
    }
14014
 
14015
    @Override
14016
    public boolean equals(Object that) {
14017
      if (that == null)
14018
        return false;
14019
      if (that instanceof getReports_args)
14020
        return this.equals((getReports_args)that);
14021
      return false;
14022
    }
14023
 
14024
    public boolean equals(getReports_args that) {
14025
      if (that == null)
14026
        return false;
14027
 
14028
      boolean this_present_role = true;
14029
      boolean that_present_role = true;
14030
      if (this_present_role || that_present_role) {
14031
        if (!(this_present_role && that_present_role))
14032
          return false;
14033
        if (this.role != that.role)
14034
          return false;
14035
      }
14036
 
14037
      return true;
14038
    }
14039
 
14040
    @Override
14041
    public int hashCode() {
14042
      return 0;
14043
    }
14044
 
14045
    public int compareTo(getReports_args other) {
14046
      if (!getClass().equals(other.getClass())) {
14047
        return getClass().getName().compareTo(other.getClass().getName());
14048
      }
14049
 
14050
      int lastComparison = 0;
14051
      getReports_args typedOther = (getReports_args)other;
14052
 
3430 rajveer 14053
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14054
      if (lastComparison != 0) {
14055
        return lastComparison;
14056
      }
3430 rajveer 14057
      if (isSetRole()) {
14058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14059
        if (lastComparison != 0) {
14060
          return lastComparison;
14061
        }
1891 ankur.sing 14062
      }
14063
      return 0;
14064
    }
14065
 
3430 rajveer 14066
    public _Fields fieldForId(int fieldId) {
14067
      return _Fields.findByThriftId(fieldId);
14068
    }
14069
 
14070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14071
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14072
      iprot.readStructBegin();
14073
      while (true)
14074
      {
14075
        field = iprot.readFieldBegin();
3430 rajveer 14076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14077
          break;
14078
        }
3430 rajveer 14079
        switch (field.id) {
14080
          case 1: // ROLE
14081
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14082
              this.role = iprot.readI64();
14083
              setRoleIsSet(true);
14084
            } else { 
14085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14086
            }
14087
            break;
14088
          default:
14089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14090
        }
3430 rajveer 14091
        iprot.readFieldEnd();
1891 ankur.sing 14092
      }
14093
      iprot.readStructEnd();
14094
      validate();
14095
    }
14096
 
3430 rajveer 14097
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14098
      validate();
14099
 
14100
      oprot.writeStructBegin(STRUCT_DESC);
14101
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14102
      oprot.writeI64(this.role);
14103
      oprot.writeFieldEnd();
14104
      oprot.writeFieldStop();
14105
      oprot.writeStructEnd();
14106
    }
14107
 
14108
    @Override
14109
    public String toString() {
14110
      StringBuilder sb = new StringBuilder("getReports_args(");
14111
      boolean first = true;
14112
 
14113
      sb.append("role:");
14114
      sb.append(this.role);
14115
      first = false;
14116
      sb.append(")");
14117
      return sb.toString();
14118
    }
14119
 
3430 rajveer 14120
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14121
      // check for required fields
14122
    }
14123
 
3430 rajveer 14124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14125
      try {
14126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14127
      } catch (org.apache.thrift.TException te) {
14128
        throw new java.io.IOException(te);
14129
      }
14130
    }
14131
 
14132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14133
      try {
14134
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14135
        __isset_bit_vector = new BitSet(1);
14136
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14137
      } catch (org.apache.thrift.TException te) {
14138
        throw new java.io.IOException(te);
14139
      }
14140
    }
14141
 
1891 ankur.sing 14142
  }
14143
 
3430 rajveer 14144
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14145
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14146
 
3430 rajveer 14147
    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 14148
 
3430 rajveer 14149
    private List<Report> success; // required
1891 ankur.sing 14150
 
14151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14153
      SUCCESS((short)0, "success");
14154
 
14155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14156
 
14157
      static {
14158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14159
          byName.put(field.getFieldName(), field);
14160
        }
14161
      }
14162
 
14163
      /**
14164
       * Find the _Fields constant that matches fieldId, or null if its not found.
14165
       */
14166
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14167
        switch(fieldId) {
14168
          case 0: // SUCCESS
14169
            return SUCCESS;
14170
          default:
14171
            return null;
14172
        }
1891 ankur.sing 14173
      }
14174
 
14175
      /**
14176
       * Find the _Fields constant that matches fieldId, throwing an exception
14177
       * if it is not found.
14178
       */
14179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14180
        _Fields fields = findByThriftId(fieldId);
14181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14182
        return fields;
14183
      }
14184
 
14185
      /**
14186
       * Find the _Fields constant that matches name, or null if its not found.
14187
       */
14188
      public static _Fields findByName(String name) {
14189
        return byName.get(name);
14190
      }
14191
 
14192
      private final short _thriftId;
14193
      private final String _fieldName;
14194
 
14195
      _Fields(short thriftId, String fieldName) {
14196
        _thriftId = thriftId;
14197
        _fieldName = fieldName;
14198
      }
14199
 
14200
      public short getThriftFieldId() {
14201
        return _thriftId;
14202
      }
14203
 
14204
      public String getFieldName() {
14205
        return _fieldName;
14206
      }
14207
    }
14208
 
14209
    // isset id assignments
14210
 
3430 rajveer 14211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14212
    static {
3430 rajveer 14213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14214
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14215
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14216
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14217
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14218
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14219
    }
14220
 
14221
    public getReports_result() {
14222
    }
14223
 
14224
    public getReports_result(
14225
      List<Report> success)
14226
    {
14227
      this();
14228
      this.success = success;
14229
    }
14230
 
14231
    /**
14232
     * Performs a deep copy on <i>other</i>.
14233
     */
14234
    public getReports_result(getReports_result other) {
14235
      if (other.isSetSuccess()) {
14236
        List<Report> __this__success = new ArrayList<Report>();
14237
        for (Report other_element : other.success) {
14238
          __this__success.add(new Report(other_element));
14239
        }
14240
        this.success = __this__success;
14241
      }
14242
    }
14243
 
14244
    public getReports_result deepCopy() {
14245
      return new getReports_result(this);
14246
    }
14247
 
3430 rajveer 14248
    @Override
14249
    public void clear() {
14250
      this.success = null;
1891 ankur.sing 14251
    }
14252
 
14253
    public int getSuccessSize() {
14254
      return (this.success == null) ? 0 : this.success.size();
14255
    }
14256
 
14257
    public java.util.Iterator<Report> getSuccessIterator() {
14258
      return (this.success == null) ? null : this.success.iterator();
14259
    }
14260
 
14261
    public void addToSuccess(Report elem) {
14262
      if (this.success == null) {
14263
        this.success = new ArrayList<Report>();
14264
      }
14265
      this.success.add(elem);
14266
    }
14267
 
14268
    public List<Report> getSuccess() {
14269
      return this.success;
14270
    }
14271
 
3430 rajveer 14272
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14273
      this.success = success;
14274
    }
14275
 
14276
    public void unsetSuccess() {
14277
      this.success = null;
14278
    }
14279
 
3430 rajveer 14280
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14281
    public boolean isSetSuccess() {
14282
      return this.success != null;
14283
    }
14284
 
14285
    public void setSuccessIsSet(boolean value) {
14286
      if (!value) {
14287
        this.success = null;
14288
      }
14289
    }
14290
 
14291
    public void setFieldValue(_Fields field, Object value) {
14292
      switch (field) {
14293
      case SUCCESS:
14294
        if (value == null) {
14295
          unsetSuccess();
14296
        } else {
14297
          setSuccess((List<Report>)value);
14298
        }
14299
        break;
14300
 
14301
      }
14302
    }
14303
 
14304
    public Object getFieldValue(_Fields field) {
14305
      switch (field) {
14306
      case SUCCESS:
14307
        return getSuccess();
14308
 
14309
      }
14310
      throw new IllegalStateException();
14311
    }
14312
 
3430 rajveer 14313
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14314
    public boolean isSet(_Fields field) {
14315
      if (field == null) {
14316
        throw new IllegalArgumentException();
14317
      }
1891 ankur.sing 14318
 
14319
      switch (field) {
14320
      case SUCCESS:
14321
        return isSetSuccess();
14322
      }
14323
      throw new IllegalStateException();
14324
    }
14325
 
14326
    @Override
14327
    public boolean equals(Object that) {
14328
      if (that == null)
14329
        return false;
14330
      if (that instanceof getReports_result)
14331
        return this.equals((getReports_result)that);
14332
      return false;
14333
    }
14334
 
14335
    public boolean equals(getReports_result that) {
14336
      if (that == null)
14337
        return false;
14338
 
14339
      boolean this_present_success = true && this.isSetSuccess();
14340
      boolean that_present_success = true && that.isSetSuccess();
14341
      if (this_present_success || that_present_success) {
14342
        if (!(this_present_success && that_present_success))
14343
          return false;
14344
        if (!this.success.equals(that.success))
14345
          return false;
14346
      }
14347
 
14348
      return true;
14349
    }
14350
 
14351
    @Override
14352
    public int hashCode() {
14353
      return 0;
14354
    }
14355
 
14356
    public int compareTo(getReports_result other) {
14357
      if (!getClass().equals(other.getClass())) {
14358
        return getClass().getName().compareTo(other.getClass().getName());
14359
      }
14360
 
14361
      int lastComparison = 0;
14362
      getReports_result typedOther = (getReports_result)other;
14363
 
3430 rajveer 14364
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14365
      if (lastComparison != 0) {
14366
        return lastComparison;
14367
      }
3430 rajveer 14368
      if (isSetSuccess()) {
14369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14370
        if (lastComparison != 0) {
14371
          return lastComparison;
14372
        }
1891 ankur.sing 14373
      }
14374
      return 0;
14375
    }
14376
 
3430 rajveer 14377
    public _Fields fieldForId(int fieldId) {
14378
      return _Fields.findByThriftId(fieldId);
14379
    }
14380
 
14381
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14382
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14383
      iprot.readStructBegin();
14384
      while (true)
14385
      {
14386
        field = iprot.readFieldBegin();
3430 rajveer 14387
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14388
          break;
14389
        }
3430 rajveer 14390
        switch (field.id) {
14391
          case 0: // SUCCESS
14392
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14393
              {
14394
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
14395
                this.success = new ArrayList<Report>(_list17.size);
14396
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1891 ankur.sing 14397
                {
3430 rajveer 14398
                  Report _elem19; // required
14399
                  _elem19 = new Report();
14400
                  _elem19.read(iprot);
14401
                  this.success.add(_elem19);
1891 ankur.sing 14402
                }
3430 rajveer 14403
                iprot.readListEnd();
1891 ankur.sing 14404
              }
3430 rajveer 14405
            } else { 
14406
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14407
            }
14408
            break;
14409
          default:
14410
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14411
        }
3430 rajveer 14412
        iprot.readFieldEnd();
1891 ankur.sing 14413
      }
14414
      iprot.readStructEnd();
14415
      validate();
14416
    }
14417
 
3430 rajveer 14418
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14419
      oprot.writeStructBegin(STRUCT_DESC);
14420
 
14421
      if (this.isSetSuccess()) {
14422
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14423
        {
3430 rajveer 14424
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1891 ankur.sing 14425
          for (Report _iter20 : this.success)
14426
          {
14427
            _iter20.write(oprot);
14428
          }
14429
          oprot.writeListEnd();
14430
        }
14431
        oprot.writeFieldEnd();
14432
      }
14433
      oprot.writeFieldStop();
14434
      oprot.writeStructEnd();
14435
    }
14436
 
14437
    @Override
14438
    public String toString() {
14439
      StringBuilder sb = new StringBuilder("getReports_result(");
14440
      boolean first = true;
14441
 
14442
      sb.append("success:");
14443
      if (this.success == null) {
14444
        sb.append("null");
14445
      } else {
14446
        sb.append(this.success);
14447
      }
14448
      first = false;
14449
      sb.append(")");
14450
      return sb.toString();
14451
    }
14452
 
3430 rajveer 14453
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14454
      // check for required fields
14455
    }
14456
 
3430 rajveer 14457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14458
      try {
14459
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14460
      } catch (org.apache.thrift.TException te) {
14461
        throw new java.io.IOException(te);
14462
      }
14463
    }
14464
 
14465
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14466
      try {
14467
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14468
      } catch (org.apache.thrift.TException te) {
14469
        throw new java.io.IOException(te);
14470
      }
14471
    }
14472
 
1891 ankur.sing 14473
  }
14474
 
3430 rajveer 14475
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
14476
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 14477
 
3430 rajveer 14478
    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);
14479
    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);
14480
    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 14481
 
3430 rajveer 14482
    private String username; // required
14483
    private String password; // required
14484
    private long role; // required
2024 ankur.sing 14485
 
14486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14488
      USERNAME((short)1, "username"),
2357 ankur.sing 14489
      PASSWORD((short)2, "password"),
14490
      ROLE((short)3, "role");
2024 ankur.sing 14491
 
14492
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14493
 
14494
      static {
14495
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14496
          byName.put(field.getFieldName(), field);
14497
        }
14498
      }
14499
 
14500
      /**
14501
       * Find the _Fields constant that matches fieldId, or null if its not found.
14502
       */
14503
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14504
        switch(fieldId) {
14505
          case 1: // USERNAME
14506
            return USERNAME;
14507
          case 2: // PASSWORD
14508
            return PASSWORD;
14509
          case 3: // ROLE
14510
            return ROLE;
14511
          default:
14512
            return null;
14513
        }
2024 ankur.sing 14514
      }
14515
 
14516
      /**
14517
       * Find the _Fields constant that matches fieldId, throwing an exception
14518
       * if it is not found.
14519
       */
14520
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14521
        _Fields fields = findByThriftId(fieldId);
14522
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14523
        return fields;
14524
      }
14525
 
14526
      /**
14527
       * Find the _Fields constant that matches name, or null if its not found.
14528
       */
14529
      public static _Fields findByName(String name) {
14530
        return byName.get(name);
14531
      }
14532
 
14533
      private final short _thriftId;
14534
      private final String _fieldName;
14535
 
14536
      _Fields(short thriftId, String fieldName) {
14537
        _thriftId = thriftId;
14538
        _fieldName = fieldName;
14539
      }
14540
 
14541
      public short getThriftFieldId() {
14542
        return _thriftId;
14543
      }
14544
 
14545
      public String getFieldName() {
14546
        return _fieldName;
14547
      }
14548
    }
14549
 
14550
    // isset id assignments
2357 ankur.sing 14551
    private static final int __ROLE_ISSET_ID = 0;
14552
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 14553
 
3430 rajveer 14554
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14555
    static {
3430 rajveer 14556
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14557
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14558
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14559
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14560
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14561
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14562
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 14565
    }
14566
 
14567
    public authenticateCatalogUser_args() {
14568
    }
14569
 
14570
    public authenticateCatalogUser_args(
14571
      String username,
2357 ankur.sing 14572
      String password,
14573
      long role)
2024 ankur.sing 14574
    {
14575
      this();
14576
      this.username = username;
14577
      this.password = password;
2357 ankur.sing 14578
      this.role = role;
14579
      setRoleIsSet(true);
2024 ankur.sing 14580
    }
14581
 
14582
    /**
14583
     * Performs a deep copy on <i>other</i>.
14584
     */
14585
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 14586
      __isset_bit_vector.clear();
14587
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 14588
      if (other.isSetUsername()) {
14589
        this.username = other.username;
14590
      }
14591
      if (other.isSetPassword()) {
14592
        this.password = other.password;
14593
      }
2357 ankur.sing 14594
      this.role = other.role;
2024 ankur.sing 14595
    }
14596
 
14597
    public authenticateCatalogUser_args deepCopy() {
14598
      return new authenticateCatalogUser_args(this);
14599
    }
14600
 
3430 rajveer 14601
    @Override
14602
    public void clear() {
14603
      this.username = null;
14604
      this.password = null;
14605
      setRoleIsSet(false);
14606
      this.role = 0;
2024 ankur.sing 14607
    }
14608
 
14609
    public String getUsername() {
14610
      return this.username;
14611
    }
14612
 
3430 rajveer 14613
    public void setUsername(String username) {
2024 ankur.sing 14614
      this.username = username;
14615
    }
14616
 
14617
    public void unsetUsername() {
14618
      this.username = null;
14619
    }
14620
 
3430 rajveer 14621
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14622
    public boolean isSetUsername() {
14623
      return this.username != null;
14624
    }
14625
 
14626
    public void setUsernameIsSet(boolean value) {
14627
      if (!value) {
14628
        this.username = null;
14629
      }
14630
    }
14631
 
14632
    public String getPassword() {
14633
      return this.password;
14634
    }
14635
 
3430 rajveer 14636
    public void setPassword(String password) {
2024 ankur.sing 14637
      this.password = password;
14638
    }
14639
 
14640
    public void unsetPassword() {
14641
      this.password = null;
14642
    }
14643
 
3430 rajveer 14644
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14645
    public boolean isSetPassword() {
14646
      return this.password != null;
14647
    }
14648
 
14649
    public void setPasswordIsSet(boolean value) {
14650
      if (!value) {
14651
        this.password = null;
14652
      }
14653
    }
14654
 
2357 ankur.sing 14655
    public long getRole() {
14656
      return this.role;
14657
    }
14658
 
3430 rajveer 14659
    public void setRole(long role) {
2357 ankur.sing 14660
      this.role = role;
14661
      setRoleIsSet(true);
14662
    }
14663
 
14664
    public void unsetRole() {
14665
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14666
    }
14667
 
3430 rajveer 14668
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 14669
    public boolean isSetRole() {
14670
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14671
    }
14672
 
14673
    public void setRoleIsSet(boolean value) {
14674
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14675
    }
14676
 
2024 ankur.sing 14677
    public void setFieldValue(_Fields field, Object value) {
14678
      switch (field) {
14679
      case USERNAME:
14680
        if (value == null) {
14681
          unsetUsername();
14682
        } else {
14683
          setUsername((String)value);
14684
        }
14685
        break;
14686
 
14687
      case PASSWORD:
14688
        if (value == null) {
14689
          unsetPassword();
14690
        } else {
14691
          setPassword((String)value);
14692
        }
14693
        break;
14694
 
2357 ankur.sing 14695
      case ROLE:
14696
        if (value == null) {
14697
          unsetRole();
14698
        } else {
14699
          setRole((Long)value);
14700
        }
14701
        break;
14702
 
2024 ankur.sing 14703
      }
14704
    }
14705
 
14706
    public Object getFieldValue(_Fields field) {
14707
      switch (field) {
14708
      case USERNAME:
14709
        return getUsername();
14710
 
14711
      case PASSWORD:
14712
        return getPassword();
14713
 
2357 ankur.sing 14714
      case ROLE:
3430 rajveer 14715
        return Long.valueOf(getRole());
2357 ankur.sing 14716
 
2024 ankur.sing 14717
      }
14718
      throw new IllegalStateException();
14719
    }
14720
 
3430 rajveer 14721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14722
    public boolean isSet(_Fields field) {
14723
      if (field == null) {
14724
        throw new IllegalArgumentException();
14725
      }
2024 ankur.sing 14726
 
14727
      switch (field) {
14728
      case USERNAME:
14729
        return isSetUsername();
14730
      case PASSWORD:
14731
        return isSetPassword();
2357 ankur.sing 14732
      case ROLE:
14733
        return isSetRole();
2024 ankur.sing 14734
      }
14735
      throw new IllegalStateException();
14736
    }
14737
 
14738
    @Override
14739
    public boolean equals(Object that) {
14740
      if (that == null)
14741
        return false;
14742
      if (that instanceof authenticateCatalogUser_args)
14743
        return this.equals((authenticateCatalogUser_args)that);
14744
      return false;
14745
    }
14746
 
14747
    public boolean equals(authenticateCatalogUser_args that) {
14748
      if (that == null)
14749
        return false;
14750
 
14751
      boolean this_present_username = true && this.isSetUsername();
14752
      boolean that_present_username = true && that.isSetUsername();
14753
      if (this_present_username || that_present_username) {
14754
        if (!(this_present_username && that_present_username))
14755
          return false;
14756
        if (!this.username.equals(that.username))
14757
          return false;
14758
      }
14759
 
14760
      boolean this_present_password = true && this.isSetPassword();
14761
      boolean that_present_password = true && that.isSetPassword();
14762
      if (this_present_password || that_present_password) {
14763
        if (!(this_present_password && that_present_password))
14764
          return false;
14765
        if (!this.password.equals(that.password))
14766
          return false;
14767
      }
14768
 
2357 ankur.sing 14769
      boolean this_present_role = true;
14770
      boolean that_present_role = true;
14771
      if (this_present_role || that_present_role) {
14772
        if (!(this_present_role && that_present_role))
14773
          return false;
14774
        if (this.role != that.role)
14775
          return false;
14776
      }
14777
 
2024 ankur.sing 14778
      return true;
14779
    }
14780
 
14781
    @Override
14782
    public int hashCode() {
14783
      return 0;
14784
    }
14785
 
14786
    public int compareTo(authenticateCatalogUser_args other) {
14787
      if (!getClass().equals(other.getClass())) {
14788
        return getClass().getName().compareTo(other.getClass().getName());
14789
      }
14790
 
14791
      int lastComparison = 0;
14792
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
14793
 
3430 rajveer 14794
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 14795
      if (lastComparison != 0) {
14796
        return lastComparison;
14797
      }
3430 rajveer 14798
      if (isSetUsername()) {
14799
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14800
        if (lastComparison != 0) {
14801
          return lastComparison;
14802
        }
2024 ankur.sing 14803
      }
3430 rajveer 14804
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 14805
      if (lastComparison != 0) {
14806
        return lastComparison;
14807
      }
3430 rajveer 14808
      if (isSetPassword()) {
14809
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14810
        if (lastComparison != 0) {
14811
          return lastComparison;
14812
        }
2024 ankur.sing 14813
      }
3430 rajveer 14814
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 14815
      if (lastComparison != 0) {
14816
        return lastComparison;
14817
      }
3430 rajveer 14818
      if (isSetRole()) {
14819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14820
        if (lastComparison != 0) {
14821
          return lastComparison;
14822
        }
2357 ankur.sing 14823
      }
2024 ankur.sing 14824
      return 0;
14825
    }
14826
 
3430 rajveer 14827
    public _Fields fieldForId(int fieldId) {
14828
      return _Fields.findByThriftId(fieldId);
14829
    }
14830
 
14831
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14832
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 14833
      iprot.readStructBegin();
14834
      while (true)
14835
      {
14836
        field = iprot.readFieldBegin();
3430 rajveer 14837
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 14838
          break;
14839
        }
3430 rajveer 14840
        switch (field.id) {
14841
          case 1: // USERNAME
14842
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14843
              this.username = iprot.readString();
14844
            } else { 
14845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14846
            }
14847
            break;
14848
          case 2: // PASSWORD
14849
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14850
              this.password = iprot.readString();
14851
            } else { 
14852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14853
            }
14854
            break;
14855
          case 3: // ROLE
14856
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14857
              this.role = iprot.readI64();
14858
              setRoleIsSet(true);
14859
            } else { 
14860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14861
            }
14862
            break;
14863
          default:
14864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 14865
        }
3430 rajveer 14866
        iprot.readFieldEnd();
2024 ankur.sing 14867
      }
14868
      iprot.readStructEnd();
14869
      validate();
14870
    }
14871
 
3430 rajveer 14872
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 14873
      validate();
14874
 
14875
      oprot.writeStructBegin(STRUCT_DESC);
14876
      if (this.username != null) {
14877
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14878
        oprot.writeString(this.username);
14879
        oprot.writeFieldEnd();
14880
      }
14881
      if (this.password != null) {
14882
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14883
        oprot.writeString(this.password);
14884
        oprot.writeFieldEnd();
14885
      }
2357 ankur.sing 14886
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14887
      oprot.writeI64(this.role);
14888
      oprot.writeFieldEnd();
2024 ankur.sing 14889
      oprot.writeFieldStop();
14890
      oprot.writeStructEnd();
14891
    }
14892
 
14893
    @Override
14894
    public String toString() {
14895
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
14896
      boolean first = true;
14897
 
14898
      sb.append("username:");
14899
      if (this.username == null) {
14900
        sb.append("null");
14901
      } else {
14902
        sb.append(this.username);
14903
      }
14904
      first = false;
14905
      if (!first) sb.append(", ");
14906
      sb.append("password:");
14907
      if (this.password == null) {
14908
        sb.append("null");
14909
      } else {
14910
        sb.append(this.password);
14911
      }
14912
      first = false;
2357 ankur.sing 14913
      if (!first) sb.append(", ");
14914
      sb.append("role:");
14915
      sb.append(this.role);
14916
      first = false;
2024 ankur.sing 14917
      sb.append(")");
14918
      return sb.toString();
14919
    }
14920
 
3430 rajveer 14921
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 14922
      // check for required fields
14923
    }
14924
 
3430 rajveer 14925
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14926
      try {
14927
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14928
      } catch (org.apache.thrift.TException te) {
14929
        throw new java.io.IOException(te);
14930
      }
14931
    }
14932
 
14933
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14934
      try {
14935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14936
      } catch (org.apache.thrift.TException te) {
14937
        throw new java.io.IOException(te);
14938
      }
14939
    }
14940
 
2024 ankur.sing 14941
  }
14942
 
3430 rajveer 14943
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
14944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 14945
 
3430 rajveer 14946
    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);
14947
    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 14948
 
3430 rajveer 14949
    private CatalogDashboardUser success; // required
14950
    private HelperServiceException hse; // required
2024 ankur.sing 14951
 
14952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14954
      SUCCESS((short)0, "success"),
14955
      HSE((short)1, "hse");
14956
 
14957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14958
 
14959
      static {
14960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14961
          byName.put(field.getFieldName(), field);
14962
        }
14963
      }
14964
 
14965
      /**
14966
       * Find the _Fields constant that matches fieldId, or null if its not found.
14967
       */
14968
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14969
        switch(fieldId) {
14970
          case 0: // SUCCESS
14971
            return SUCCESS;
14972
          case 1: // HSE
14973
            return HSE;
14974
          default:
14975
            return null;
14976
        }
2024 ankur.sing 14977
      }
14978
 
14979
      /**
14980
       * Find the _Fields constant that matches fieldId, throwing an exception
14981
       * if it is not found.
14982
       */
14983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14984
        _Fields fields = findByThriftId(fieldId);
14985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14986
        return fields;
14987
      }
14988
 
14989
      /**
14990
       * Find the _Fields constant that matches name, or null if its not found.
14991
       */
14992
      public static _Fields findByName(String name) {
14993
        return byName.get(name);
14994
      }
14995
 
14996
      private final short _thriftId;
14997
      private final String _fieldName;
14998
 
14999
      _Fields(short thriftId, String fieldName) {
15000
        _thriftId = thriftId;
15001
        _fieldName = fieldName;
15002
      }
15003
 
15004
      public short getThriftFieldId() {
15005
        return _thriftId;
15006
      }
15007
 
15008
      public String getFieldName() {
15009
        return _fieldName;
15010
      }
15011
    }
15012
 
15013
    // isset id assignments
15014
 
3430 rajveer 15015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15016
    static {
3430 rajveer 15017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15018
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15019
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15020
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15024
    }
15025
 
15026
    public authenticateCatalogUser_result() {
15027
    }
15028
 
15029
    public authenticateCatalogUser_result(
15030
      CatalogDashboardUser success,
15031
      HelperServiceException hse)
15032
    {
15033
      this();
15034
      this.success = success;
15035
      this.hse = hse;
15036
    }
15037
 
15038
    /**
15039
     * Performs a deep copy on <i>other</i>.
15040
     */
15041
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15042
      if (other.isSetSuccess()) {
15043
        this.success = new CatalogDashboardUser(other.success);
15044
      }
15045
      if (other.isSetHse()) {
15046
        this.hse = new HelperServiceException(other.hse);
15047
      }
15048
    }
15049
 
15050
    public authenticateCatalogUser_result deepCopy() {
15051
      return new authenticateCatalogUser_result(this);
15052
    }
15053
 
3430 rajveer 15054
    @Override
15055
    public void clear() {
15056
      this.success = null;
15057
      this.hse = null;
2024 ankur.sing 15058
    }
15059
 
15060
    public CatalogDashboardUser getSuccess() {
15061
      return this.success;
15062
    }
15063
 
3430 rajveer 15064
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15065
      this.success = success;
15066
    }
15067
 
15068
    public void unsetSuccess() {
15069
      this.success = null;
15070
    }
15071
 
3430 rajveer 15072
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15073
    public boolean isSetSuccess() {
15074
      return this.success != null;
15075
    }
15076
 
15077
    public void setSuccessIsSet(boolean value) {
15078
      if (!value) {
15079
        this.success = null;
15080
      }
15081
    }
15082
 
15083
    public HelperServiceException getHse() {
15084
      return this.hse;
15085
    }
15086
 
3430 rajveer 15087
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15088
      this.hse = hse;
15089
    }
15090
 
15091
    public void unsetHse() {
15092
      this.hse = null;
15093
    }
15094
 
3430 rajveer 15095
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15096
    public boolean isSetHse() {
15097
      return this.hse != null;
15098
    }
15099
 
15100
    public void setHseIsSet(boolean value) {
15101
      if (!value) {
15102
        this.hse = null;
15103
      }
15104
    }
15105
 
15106
    public void setFieldValue(_Fields field, Object value) {
15107
      switch (field) {
15108
      case SUCCESS:
15109
        if (value == null) {
15110
          unsetSuccess();
15111
        } else {
15112
          setSuccess((CatalogDashboardUser)value);
15113
        }
15114
        break;
15115
 
15116
      case HSE:
15117
        if (value == null) {
15118
          unsetHse();
15119
        } else {
15120
          setHse((HelperServiceException)value);
15121
        }
15122
        break;
15123
 
15124
      }
15125
    }
15126
 
15127
    public Object getFieldValue(_Fields field) {
15128
      switch (field) {
15129
      case SUCCESS:
15130
        return getSuccess();
15131
 
15132
      case HSE:
15133
        return getHse();
15134
 
15135
      }
15136
      throw new IllegalStateException();
15137
    }
15138
 
3430 rajveer 15139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15140
    public boolean isSet(_Fields field) {
15141
      if (field == null) {
15142
        throw new IllegalArgumentException();
15143
      }
2024 ankur.sing 15144
 
15145
      switch (field) {
15146
      case SUCCESS:
15147
        return isSetSuccess();
15148
      case HSE:
15149
        return isSetHse();
15150
      }
15151
      throw new IllegalStateException();
15152
    }
15153
 
15154
    @Override
15155
    public boolean equals(Object that) {
15156
      if (that == null)
15157
        return false;
15158
      if (that instanceof authenticateCatalogUser_result)
15159
        return this.equals((authenticateCatalogUser_result)that);
15160
      return false;
15161
    }
15162
 
15163
    public boolean equals(authenticateCatalogUser_result that) {
15164
      if (that == null)
15165
        return false;
15166
 
15167
      boolean this_present_success = true && this.isSetSuccess();
15168
      boolean that_present_success = true && that.isSetSuccess();
15169
      if (this_present_success || that_present_success) {
15170
        if (!(this_present_success && that_present_success))
15171
          return false;
15172
        if (!this.success.equals(that.success))
15173
          return false;
15174
      }
15175
 
15176
      boolean this_present_hse = true && this.isSetHse();
15177
      boolean that_present_hse = true && that.isSetHse();
15178
      if (this_present_hse || that_present_hse) {
15179
        if (!(this_present_hse && that_present_hse))
15180
          return false;
15181
        if (!this.hse.equals(that.hse))
15182
          return false;
15183
      }
15184
 
15185
      return true;
15186
    }
15187
 
15188
    @Override
15189
    public int hashCode() {
15190
      return 0;
15191
    }
15192
 
15193
    public int compareTo(authenticateCatalogUser_result other) {
15194
      if (!getClass().equals(other.getClass())) {
15195
        return getClass().getName().compareTo(other.getClass().getName());
15196
      }
15197
 
15198
      int lastComparison = 0;
15199
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15200
 
3430 rajveer 15201
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15202
      if (lastComparison != 0) {
15203
        return lastComparison;
15204
      }
3430 rajveer 15205
      if (isSetSuccess()) {
15206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15207
        if (lastComparison != 0) {
15208
          return lastComparison;
15209
        }
2024 ankur.sing 15210
      }
3430 rajveer 15211
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15212
      if (lastComparison != 0) {
15213
        return lastComparison;
15214
      }
3430 rajveer 15215
      if (isSetHse()) {
15216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15217
        if (lastComparison != 0) {
15218
          return lastComparison;
15219
        }
2024 ankur.sing 15220
      }
15221
      return 0;
15222
    }
15223
 
3430 rajveer 15224
    public _Fields fieldForId(int fieldId) {
15225
      return _Fields.findByThriftId(fieldId);
15226
    }
15227
 
15228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15229
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15230
      iprot.readStructBegin();
15231
      while (true)
15232
      {
15233
        field = iprot.readFieldBegin();
3430 rajveer 15234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15235
          break;
15236
        }
3430 rajveer 15237
        switch (field.id) {
15238
          case 0: // SUCCESS
15239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15240
              this.success = new CatalogDashboardUser();
15241
              this.success.read(iprot);
15242
            } else { 
15243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15244
            }
15245
            break;
15246
          case 1: // HSE
15247
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15248
              this.hse = new HelperServiceException();
15249
              this.hse.read(iprot);
15250
            } else { 
15251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15252
            }
15253
            break;
15254
          default:
15255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15256
        }
3430 rajveer 15257
        iprot.readFieldEnd();
2024 ankur.sing 15258
      }
15259
      iprot.readStructEnd();
15260
      validate();
15261
    }
15262
 
3430 rajveer 15263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15264
      oprot.writeStructBegin(STRUCT_DESC);
15265
 
15266
      if (this.isSetSuccess()) {
15267
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15268
        this.success.write(oprot);
15269
        oprot.writeFieldEnd();
15270
      } else if (this.isSetHse()) {
15271
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15272
        this.hse.write(oprot);
15273
        oprot.writeFieldEnd();
15274
      }
15275
      oprot.writeFieldStop();
15276
      oprot.writeStructEnd();
15277
    }
15278
 
15279
    @Override
15280
    public String toString() {
15281
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15282
      boolean first = true;
15283
 
15284
      sb.append("success:");
15285
      if (this.success == null) {
15286
        sb.append("null");
15287
      } else {
15288
        sb.append(this.success);
15289
      }
15290
      first = false;
15291
      if (!first) sb.append(", ");
15292
      sb.append("hse:");
15293
      if (this.hse == null) {
15294
        sb.append("null");
15295
      } else {
15296
        sb.append(this.hse);
15297
      }
15298
      first = false;
15299
      sb.append(")");
15300
      return sb.toString();
15301
    }
15302
 
3430 rajveer 15303
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15304
      // check for required fields
15305
    }
15306
 
3430 rajveer 15307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15308
      try {
15309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15310
      } catch (org.apache.thrift.TException te) {
15311
        throw new java.io.IOException(te);
15312
      }
15313
    }
15314
 
15315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15316
      try {
15317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15318
      } catch (org.apache.thrift.TException te) {
15319
        throw new java.io.IOException(te);
15320
      }
15321
    }
15322
 
2024 ankur.sing 15323
  }
15324
 
4544 varun.gupt 15325
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
15326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
15327
 
15328
    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);
15329
    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);
15330
 
15331
    private List<Long> entityIds; // required
15332
    private String email; // required
15333
 
15334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15336
      ENTITY_IDS((short)1, "entityIds"),
15337
      EMAIL((short)2, "email");
15338
 
15339
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15340
 
15341
      static {
15342
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15343
          byName.put(field.getFieldName(), field);
15344
        }
15345
      }
15346
 
15347
      /**
15348
       * Find the _Fields constant that matches fieldId, or null if its not found.
15349
       */
15350
      public static _Fields findByThriftId(int fieldId) {
15351
        switch(fieldId) {
15352
          case 1: // ENTITY_IDS
15353
            return ENTITY_IDS;
15354
          case 2: // EMAIL
15355
            return EMAIL;
15356
          default:
15357
            return null;
15358
        }
15359
      }
15360
 
15361
      /**
15362
       * Find the _Fields constant that matches fieldId, throwing an exception
15363
       * if it is not found.
15364
       */
15365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15366
        _Fields fields = findByThriftId(fieldId);
15367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15368
        return fields;
15369
      }
15370
 
15371
      /**
15372
       * Find the _Fields constant that matches name, or null if its not found.
15373
       */
15374
      public static _Fields findByName(String name) {
15375
        return byName.get(name);
15376
      }
15377
 
15378
      private final short _thriftId;
15379
      private final String _fieldName;
15380
 
15381
      _Fields(short thriftId, String fieldName) {
15382
        _thriftId = thriftId;
15383
        _fieldName = fieldName;
15384
      }
15385
 
15386
      public short getThriftFieldId() {
15387
        return _thriftId;
15388
      }
15389
 
15390
      public String getFieldName() {
15391
        return _fieldName;
15392
      }
15393
    }
15394
 
15395
    // isset id assignments
15396
 
15397
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15398
    static {
15399
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15400
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15401
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15402
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15403
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15405
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15406
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
15407
    }
15408
 
15409
    public shareEntities_args() {
15410
    }
15411
 
15412
    public shareEntities_args(
15413
      List<Long> entityIds,
15414
      String email)
15415
    {
15416
      this();
15417
      this.entityIds = entityIds;
15418
      this.email = email;
15419
    }
15420
 
15421
    /**
15422
     * Performs a deep copy on <i>other</i>.
15423
     */
15424
    public shareEntities_args(shareEntities_args other) {
15425
      if (other.isSetEntityIds()) {
15426
        List<Long> __this__entityIds = new ArrayList<Long>();
15427
        for (Long other_element : other.entityIds) {
15428
          __this__entityIds.add(other_element);
15429
        }
15430
        this.entityIds = __this__entityIds;
15431
      }
15432
      if (other.isSetEmail()) {
15433
        this.email = other.email;
15434
      }
15435
    }
15436
 
15437
    public shareEntities_args deepCopy() {
15438
      return new shareEntities_args(this);
15439
    }
15440
 
15441
    @Override
15442
    public void clear() {
15443
      this.entityIds = null;
15444
      this.email = null;
15445
    }
15446
 
15447
    public int getEntityIdsSize() {
15448
      return (this.entityIds == null) ? 0 : this.entityIds.size();
15449
    }
15450
 
15451
    public java.util.Iterator<Long> getEntityIdsIterator() {
15452
      return (this.entityIds == null) ? null : this.entityIds.iterator();
15453
    }
15454
 
15455
    public void addToEntityIds(long elem) {
15456
      if (this.entityIds == null) {
15457
        this.entityIds = new ArrayList<Long>();
15458
      }
15459
      this.entityIds.add(elem);
15460
    }
15461
 
15462
    public List<Long> getEntityIds() {
15463
      return this.entityIds;
15464
    }
15465
 
15466
    public void setEntityIds(List<Long> entityIds) {
15467
      this.entityIds = entityIds;
15468
    }
15469
 
15470
    public void unsetEntityIds() {
15471
      this.entityIds = null;
15472
    }
15473
 
15474
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
15475
    public boolean isSetEntityIds() {
15476
      return this.entityIds != null;
15477
    }
15478
 
15479
    public void setEntityIdsIsSet(boolean value) {
15480
      if (!value) {
15481
        this.entityIds = null;
15482
      }
15483
    }
15484
 
15485
    public String getEmail() {
15486
      return this.email;
15487
    }
15488
 
15489
    public void setEmail(String email) {
15490
      this.email = email;
15491
    }
15492
 
15493
    public void unsetEmail() {
15494
      this.email = null;
15495
    }
15496
 
15497
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
15498
    public boolean isSetEmail() {
15499
      return this.email != null;
15500
    }
15501
 
15502
    public void setEmailIsSet(boolean value) {
15503
      if (!value) {
15504
        this.email = null;
15505
      }
15506
    }
15507
 
15508
    public void setFieldValue(_Fields field, Object value) {
15509
      switch (field) {
15510
      case ENTITY_IDS:
15511
        if (value == null) {
15512
          unsetEntityIds();
15513
        } else {
15514
          setEntityIds((List<Long>)value);
15515
        }
15516
        break;
15517
 
15518
      case EMAIL:
15519
        if (value == null) {
15520
          unsetEmail();
15521
        } else {
15522
          setEmail((String)value);
15523
        }
15524
        break;
15525
 
15526
      }
15527
    }
15528
 
15529
    public Object getFieldValue(_Fields field) {
15530
      switch (field) {
15531
      case ENTITY_IDS:
15532
        return getEntityIds();
15533
 
15534
      case EMAIL:
15535
        return getEmail();
15536
 
15537
      }
15538
      throw new IllegalStateException();
15539
    }
15540
 
15541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15542
    public boolean isSet(_Fields field) {
15543
      if (field == null) {
15544
        throw new IllegalArgumentException();
15545
      }
15546
 
15547
      switch (field) {
15548
      case ENTITY_IDS:
15549
        return isSetEntityIds();
15550
      case EMAIL:
15551
        return isSetEmail();
15552
      }
15553
      throw new IllegalStateException();
15554
    }
15555
 
15556
    @Override
15557
    public boolean equals(Object that) {
15558
      if (that == null)
15559
        return false;
15560
      if (that instanceof shareEntities_args)
15561
        return this.equals((shareEntities_args)that);
15562
      return false;
15563
    }
15564
 
15565
    public boolean equals(shareEntities_args that) {
15566
      if (that == null)
15567
        return false;
15568
 
15569
      boolean this_present_entityIds = true && this.isSetEntityIds();
15570
      boolean that_present_entityIds = true && that.isSetEntityIds();
15571
      if (this_present_entityIds || that_present_entityIds) {
15572
        if (!(this_present_entityIds && that_present_entityIds))
15573
          return false;
15574
        if (!this.entityIds.equals(that.entityIds))
15575
          return false;
15576
      }
15577
 
15578
      boolean this_present_email = true && this.isSetEmail();
15579
      boolean that_present_email = true && that.isSetEmail();
15580
      if (this_present_email || that_present_email) {
15581
        if (!(this_present_email && that_present_email))
15582
          return false;
15583
        if (!this.email.equals(that.email))
15584
          return false;
15585
      }
15586
 
15587
      return true;
15588
    }
15589
 
15590
    @Override
15591
    public int hashCode() {
15592
      return 0;
15593
    }
15594
 
15595
    public int compareTo(shareEntities_args other) {
15596
      if (!getClass().equals(other.getClass())) {
15597
        return getClass().getName().compareTo(other.getClass().getName());
15598
      }
15599
 
15600
      int lastComparison = 0;
15601
      shareEntities_args typedOther = (shareEntities_args)other;
15602
 
15603
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
15604
      if (lastComparison != 0) {
15605
        return lastComparison;
15606
      }
15607
      if (isSetEntityIds()) {
15608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
15609
        if (lastComparison != 0) {
15610
          return lastComparison;
15611
        }
15612
      }
15613
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
15614
      if (lastComparison != 0) {
15615
        return lastComparison;
15616
      }
15617
      if (isSetEmail()) {
15618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
15619
        if (lastComparison != 0) {
15620
          return lastComparison;
15621
        }
15622
      }
15623
      return 0;
15624
    }
15625
 
15626
    public _Fields fieldForId(int fieldId) {
15627
      return _Fields.findByThriftId(fieldId);
15628
    }
15629
 
15630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15631
      org.apache.thrift.protocol.TField field;
15632
      iprot.readStructBegin();
15633
      while (true)
15634
      {
15635
        field = iprot.readFieldBegin();
15636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15637
          break;
15638
        }
15639
        switch (field.id) {
15640
          case 1: // ENTITY_IDS
15641
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15642
              {
15643
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
15644
                this.entityIds = new ArrayList<Long>(_list21.size);
15645
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15646
                {
15647
                  long _elem23; // required
15648
                  _elem23 = iprot.readI64();
15649
                  this.entityIds.add(_elem23);
15650
                }
15651
                iprot.readListEnd();
15652
              }
15653
            } else { 
15654
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15655
            }
15656
            break;
15657
          case 2: // EMAIL
15658
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15659
              this.email = iprot.readString();
15660
            } else { 
15661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15662
            }
15663
            break;
15664
          default:
15665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15666
        }
15667
        iprot.readFieldEnd();
15668
      }
15669
      iprot.readStructEnd();
15670
      validate();
15671
    }
15672
 
15673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15674
      validate();
15675
 
15676
      oprot.writeStructBegin(STRUCT_DESC);
15677
      if (this.entityIds != null) {
15678
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
15679
        {
15680
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
15681
          for (long _iter24 : this.entityIds)
15682
          {
15683
            oprot.writeI64(_iter24);
15684
          }
15685
          oprot.writeListEnd();
15686
        }
15687
        oprot.writeFieldEnd();
15688
      }
15689
      if (this.email != null) {
15690
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
15691
        oprot.writeString(this.email);
15692
        oprot.writeFieldEnd();
15693
      }
15694
      oprot.writeFieldStop();
15695
      oprot.writeStructEnd();
15696
    }
15697
 
15698
    @Override
15699
    public String toString() {
15700
      StringBuilder sb = new StringBuilder("shareEntities_args(");
15701
      boolean first = true;
15702
 
15703
      sb.append("entityIds:");
15704
      if (this.entityIds == null) {
15705
        sb.append("null");
15706
      } else {
15707
        sb.append(this.entityIds);
15708
      }
15709
      first = false;
15710
      if (!first) sb.append(", ");
15711
      sb.append("email:");
15712
      if (this.email == null) {
15713
        sb.append("null");
15714
      } else {
15715
        sb.append(this.email);
15716
      }
15717
      first = false;
15718
      sb.append(")");
15719
      return sb.toString();
15720
    }
15721
 
15722
    public void validate() throws org.apache.thrift.TException {
15723
      // check for required fields
15724
    }
15725
 
15726
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15727
      try {
15728
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15729
      } catch (org.apache.thrift.TException te) {
15730
        throw new java.io.IOException(te);
15731
      }
15732
    }
15733
 
15734
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15735
      try {
15736
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15737
      } catch (org.apache.thrift.TException te) {
15738
        throw new java.io.IOException(te);
15739
      }
15740
    }
15741
 
15742
  }
15743
 
15744
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
15745
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
15746
 
15747
    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);
15748
 
15749
    private HelperServiceException hse; // required
15750
 
15751
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15752
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15753
      HSE((short)1, "hse");
15754
 
15755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15756
 
15757
      static {
15758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15759
          byName.put(field.getFieldName(), field);
15760
        }
15761
      }
15762
 
15763
      /**
15764
       * Find the _Fields constant that matches fieldId, or null if its not found.
15765
       */
15766
      public static _Fields findByThriftId(int fieldId) {
15767
        switch(fieldId) {
15768
          case 1: // HSE
15769
            return HSE;
15770
          default:
15771
            return null;
15772
        }
15773
      }
15774
 
15775
      /**
15776
       * Find the _Fields constant that matches fieldId, throwing an exception
15777
       * if it is not found.
15778
       */
15779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15780
        _Fields fields = findByThriftId(fieldId);
15781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15782
        return fields;
15783
      }
15784
 
15785
      /**
15786
       * Find the _Fields constant that matches name, or null if its not found.
15787
       */
15788
      public static _Fields findByName(String name) {
15789
        return byName.get(name);
15790
      }
15791
 
15792
      private final short _thriftId;
15793
      private final String _fieldName;
15794
 
15795
      _Fields(short thriftId, String fieldName) {
15796
        _thriftId = thriftId;
15797
        _fieldName = fieldName;
15798
      }
15799
 
15800
      public short getThriftFieldId() {
15801
        return _thriftId;
15802
      }
15803
 
15804
      public String getFieldName() {
15805
        return _fieldName;
15806
      }
15807
    }
15808
 
15809
    // isset id assignments
15810
 
15811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15812
    static {
15813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15814
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15815
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
15818
    }
15819
 
15820
    public shareEntities_result() {
15821
    }
15822
 
15823
    public shareEntities_result(
15824
      HelperServiceException hse)
15825
    {
15826
      this();
15827
      this.hse = hse;
15828
    }
15829
 
15830
    /**
15831
     * Performs a deep copy on <i>other</i>.
15832
     */
15833
    public shareEntities_result(shareEntities_result other) {
15834
      if (other.isSetHse()) {
15835
        this.hse = new HelperServiceException(other.hse);
15836
      }
15837
    }
15838
 
15839
    public shareEntities_result deepCopy() {
15840
      return new shareEntities_result(this);
15841
    }
15842
 
15843
    @Override
15844
    public void clear() {
15845
      this.hse = null;
15846
    }
15847
 
15848
    public HelperServiceException getHse() {
15849
      return this.hse;
15850
    }
15851
 
15852
    public void setHse(HelperServiceException hse) {
15853
      this.hse = hse;
15854
    }
15855
 
15856
    public void unsetHse() {
15857
      this.hse = null;
15858
    }
15859
 
15860
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
15861
    public boolean isSetHse() {
15862
      return this.hse != null;
15863
    }
15864
 
15865
    public void setHseIsSet(boolean value) {
15866
      if (!value) {
15867
        this.hse = null;
15868
      }
15869
    }
15870
 
15871
    public void setFieldValue(_Fields field, Object value) {
15872
      switch (field) {
15873
      case HSE:
15874
        if (value == null) {
15875
          unsetHse();
15876
        } else {
15877
          setHse((HelperServiceException)value);
15878
        }
15879
        break;
15880
 
15881
      }
15882
    }
15883
 
15884
    public Object getFieldValue(_Fields field) {
15885
      switch (field) {
15886
      case HSE:
15887
        return getHse();
15888
 
15889
      }
15890
      throw new IllegalStateException();
15891
    }
15892
 
15893
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15894
    public boolean isSet(_Fields field) {
15895
      if (field == null) {
15896
        throw new IllegalArgumentException();
15897
      }
15898
 
15899
      switch (field) {
15900
      case HSE:
15901
        return isSetHse();
15902
      }
15903
      throw new IllegalStateException();
15904
    }
15905
 
15906
    @Override
15907
    public boolean equals(Object that) {
15908
      if (that == null)
15909
        return false;
15910
      if (that instanceof shareEntities_result)
15911
        return this.equals((shareEntities_result)that);
15912
      return false;
15913
    }
15914
 
15915
    public boolean equals(shareEntities_result that) {
15916
      if (that == null)
15917
        return false;
15918
 
15919
      boolean this_present_hse = true && this.isSetHse();
15920
      boolean that_present_hse = true && that.isSetHse();
15921
      if (this_present_hse || that_present_hse) {
15922
        if (!(this_present_hse && that_present_hse))
15923
          return false;
15924
        if (!this.hse.equals(that.hse))
15925
          return false;
15926
      }
15927
 
15928
      return true;
15929
    }
15930
 
15931
    @Override
15932
    public int hashCode() {
15933
      return 0;
15934
    }
15935
 
15936
    public int compareTo(shareEntities_result other) {
15937
      if (!getClass().equals(other.getClass())) {
15938
        return getClass().getName().compareTo(other.getClass().getName());
15939
      }
15940
 
15941
      int lastComparison = 0;
15942
      shareEntities_result typedOther = (shareEntities_result)other;
15943
 
15944
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
15945
      if (lastComparison != 0) {
15946
        return lastComparison;
15947
      }
15948
      if (isSetHse()) {
15949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15950
        if (lastComparison != 0) {
15951
          return lastComparison;
15952
        }
15953
      }
15954
      return 0;
15955
    }
15956
 
15957
    public _Fields fieldForId(int fieldId) {
15958
      return _Fields.findByThriftId(fieldId);
15959
    }
15960
 
15961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15962
      org.apache.thrift.protocol.TField field;
15963
      iprot.readStructBegin();
15964
      while (true)
15965
      {
15966
        field = iprot.readFieldBegin();
15967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15968
          break;
15969
        }
15970
        switch (field.id) {
15971
          case 1: // HSE
15972
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15973
              this.hse = new HelperServiceException();
15974
              this.hse.read(iprot);
15975
            } else { 
15976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15977
            }
15978
            break;
15979
          default:
15980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15981
        }
15982
        iprot.readFieldEnd();
15983
      }
15984
      iprot.readStructEnd();
15985
      validate();
15986
    }
15987
 
15988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15989
      oprot.writeStructBegin(STRUCT_DESC);
15990
 
15991
      if (this.isSetHse()) {
15992
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15993
        this.hse.write(oprot);
15994
        oprot.writeFieldEnd();
15995
      }
15996
      oprot.writeFieldStop();
15997
      oprot.writeStructEnd();
15998
    }
15999
 
16000
    @Override
16001
    public String toString() {
16002
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16003
      boolean first = true;
16004
 
16005
      sb.append("hse:");
16006
      if (this.hse == null) {
16007
        sb.append("null");
16008
      } else {
16009
        sb.append(this.hse);
16010
      }
16011
      first = false;
16012
      sb.append(")");
16013
      return sb.toString();
16014
    }
16015
 
16016
    public void validate() throws org.apache.thrift.TException {
16017
      // check for required fields
16018
    }
16019
 
16020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16021
      try {
16022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16023
      } catch (org.apache.thrift.TException te) {
16024
        throw new java.io.IOException(te);
16025
      }
16026
    }
16027
 
16028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16029
      try {
16030
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16031
      } catch (org.apache.thrift.TException te) {
16032
        throw new java.io.IOException(te);
16033
      }
16034
    }
16035
 
16036
  }
16037
 
4693 mandeep.dh 16038
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16039
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16040
 
16041
 
16042
 
16043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16045
;
16046
 
16047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16048
 
16049
      static {
16050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16051
          byName.put(field.getFieldName(), field);
16052
        }
16053
      }
16054
 
16055
      /**
16056
       * Find the _Fields constant that matches fieldId, or null if its not found.
16057
       */
16058
      public static _Fields findByThriftId(int fieldId) {
16059
        switch(fieldId) {
16060
          default:
16061
            return null;
16062
        }
16063
      }
16064
 
16065
      /**
16066
       * Find the _Fields constant that matches fieldId, throwing an exception
16067
       * if it is not found.
16068
       */
16069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16070
        _Fields fields = findByThriftId(fieldId);
16071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16072
        return fields;
16073
      }
16074
 
16075
      /**
16076
       * Find the _Fields constant that matches name, or null if its not found.
16077
       */
16078
      public static _Fields findByName(String name) {
16079
        return byName.get(name);
16080
      }
16081
 
16082
      private final short _thriftId;
16083
      private final String _fieldName;
16084
 
16085
      _Fields(short thriftId, String fieldName) {
16086
        _thriftId = thriftId;
16087
        _fieldName = fieldName;
16088
      }
16089
 
16090
      public short getThriftFieldId() {
16091
        return _thriftId;
16092
      }
16093
 
16094
      public String getFieldName() {
16095
        return _fieldName;
16096
      }
16097
    }
16098
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16099
    static {
16100
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16103
    }
16104
 
16105
    public getAgents_args() {
16106
    }
16107
 
16108
    /**
16109
     * Performs a deep copy on <i>other</i>.
16110
     */
16111
    public getAgents_args(getAgents_args other) {
16112
    }
16113
 
16114
    public getAgents_args deepCopy() {
16115
      return new getAgents_args(this);
16116
    }
16117
 
16118
    @Override
16119
    public void clear() {
16120
    }
16121
 
16122
    public void setFieldValue(_Fields field, Object value) {
16123
      switch (field) {
16124
      }
16125
    }
16126
 
16127
    public Object getFieldValue(_Fields field) {
16128
      switch (field) {
16129
      }
16130
      throw new IllegalStateException();
16131
    }
16132
 
16133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16134
    public boolean isSet(_Fields field) {
16135
      if (field == null) {
16136
        throw new IllegalArgumentException();
16137
      }
16138
 
16139
      switch (field) {
16140
      }
16141
      throw new IllegalStateException();
16142
    }
16143
 
16144
    @Override
16145
    public boolean equals(Object that) {
16146
      if (that == null)
16147
        return false;
16148
      if (that instanceof getAgents_args)
16149
        return this.equals((getAgents_args)that);
16150
      return false;
16151
    }
16152
 
16153
    public boolean equals(getAgents_args that) {
16154
      if (that == null)
16155
        return false;
16156
 
16157
      return true;
16158
    }
16159
 
16160
    @Override
16161
    public int hashCode() {
16162
      return 0;
16163
    }
16164
 
16165
    public int compareTo(getAgents_args other) {
16166
      if (!getClass().equals(other.getClass())) {
16167
        return getClass().getName().compareTo(other.getClass().getName());
16168
      }
16169
 
16170
      int lastComparison = 0;
16171
      getAgents_args typedOther = (getAgents_args)other;
16172
 
16173
      return 0;
16174
    }
16175
 
16176
    public _Fields fieldForId(int fieldId) {
16177
      return _Fields.findByThriftId(fieldId);
16178
    }
16179
 
16180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16181
      org.apache.thrift.protocol.TField field;
16182
      iprot.readStructBegin();
16183
      while (true)
16184
      {
16185
        field = iprot.readFieldBegin();
16186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16187
          break;
16188
        }
16189
        switch (field.id) {
16190
          default:
16191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16192
        }
16193
        iprot.readFieldEnd();
16194
      }
16195
      iprot.readStructEnd();
16196
      validate();
16197
    }
16198
 
16199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16200
      validate();
16201
 
16202
      oprot.writeStructBegin(STRUCT_DESC);
16203
      oprot.writeFieldStop();
16204
      oprot.writeStructEnd();
16205
    }
16206
 
16207
    @Override
16208
    public String toString() {
16209
      StringBuilder sb = new StringBuilder("getAgents_args(");
16210
      boolean first = true;
16211
 
16212
      sb.append(")");
16213
      return sb.toString();
16214
    }
16215
 
16216
    public void validate() throws org.apache.thrift.TException {
16217
      // check for required fields
16218
    }
16219
 
16220
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16221
      try {
16222
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16223
      } catch (org.apache.thrift.TException te) {
16224
        throw new java.io.IOException(te);
16225
      }
16226
    }
16227
 
16228
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16229
      try {
16230
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16231
      } catch (org.apache.thrift.TException te) {
16232
        throw new java.io.IOException(te);
16233
      }
16234
    }
16235
 
16236
  }
16237
 
16238
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16239
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16240
 
16241
    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);
16242
 
16243
    private List<Agent> success; // required
16244
 
16245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16247
      SUCCESS((short)0, "success");
16248
 
16249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16250
 
16251
      static {
16252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16253
          byName.put(field.getFieldName(), field);
16254
        }
16255
      }
16256
 
16257
      /**
16258
       * Find the _Fields constant that matches fieldId, or null if its not found.
16259
       */
16260
      public static _Fields findByThriftId(int fieldId) {
16261
        switch(fieldId) {
16262
          case 0: // SUCCESS
16263
            return SUCCESS;
16264
          default:
16265
            return null;
16266
        }
16267
      }
16268
 
16269
      /**
16270
       * Find the _Fields constant that matches fieldId, throwing an exception
16271
       * if it is not found.
16272
       */
16273
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16274
        _Fields fields = findByThriftId(fieldId);
16275
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16276
        return fields;
16277
      }
16278
 
16279
      /**
16280
       * Find the _Fields constant that matches name, or null if its not found.
16281
       */
16282
      public static _Fields findByName(String name) {
16283
        return byName.get(name);
16284
      }
16285
 
16286
      private final short _thriftId;
16287
      private final String _fieldName;
16288
 
16289
      _Fields(short thriftId, String fieldName) {
16290
        _thriftId = thriftId;
16291
        _fieldName = fieldName;
16292
      }
16293
 
16294
      public short getThriftFieldId() {
16295
        return _thriftId;
16296
      }
16297
 
16298
      public String getFieldName() {
16299
        return _fieldName;
16300
      }
16301
    }
16302
 
16303
    // isset id assignments
16304
 
16305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16306
    static {
16307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16308
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16309
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16310
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
16311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
16313
    }
16314
 
16315
    public getAgents_result() {
16316
    }
16317
 
16318
    public getAgents_result(
16319
      List<Agent> success)
16320
    {
16321
      this();
16322
      this.success = success;
16323
    }
16324
 
16325
    /**
16326
     * Performs a deep copy on <i>other</i>.
16327
     */
16328
    public getAgents_result(getAgents_result other) {
16329
      if (other.isSetSuccess()) {
16330
        List<Agent> __this__success = new ArrayList<Agent>();
16331
        for (Agent other_element : other.success) {
16332
          __this__success.add(new Agent(other_element));
16333
        }
16334
        this.success = __this__success;
16335
      }
16336
    }
16337
 
16338
    public getAgents_result deepCopy() {
16339
      return new getAgents_result(this);
16340
    }
16341
 
16342
    @Override
16343
    public void clear() {
16344
      this.success = null;
16345
    }
16346
 
16347
    public int getSuccessSize() {
16348
      return (this.success == null) ? 0 : this.success.size();
16349
    }
16350
 
16351
    public java.util.Iterator<Agent> getSuccessIterator() {
16352
      return (this.success == null) ? null : this.success.iterator();
16353
    }
16354
 
16355
    public void addToSuccess(Agent elem) {
16356
      if (this.success == null) {
16357
        this.success = new ArrayList<Agent>();
16358
      }
16359
      this.success.add(elem);
16360
    }
16361
 
16362
    public List<Agent> getSuccess() {
16363
      return this.success;
16364
    }
16365
 
16366
    public void setSuccess(List<Agent> success) {
16367
      this.success = success;
16368
    }
16369
 
16370
    public void unsetSuccess() {
16371
      this.success = null;
16372
    }
16373
 
16374
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16375
    public boolean isSetSuccess() {
16376
      return this.success != null;
16377
    }
16378
 
16379
    public void setSuccessIsSet(boolean value) {
16380
      if (!value) {
16381
        this.success = null;
16382
      }
16383
    }
16384
 
16385
    public void setFieldValue(_Fields field, Object value) {
16386
      switch (field) {
16387
      case SUCCESS:
16388
        if (value == null) {
16389
          unsetSuccess();
16390
        } else {
16391
          setSuccess((List<Agent>)value);
16392
        }
16393
        break;
16394
 
16395
      }
16396
    }
16397
 
16398
    public Object getFieldValue(_Fields field) {
16399
      switch (field) {
16400
      case SUCCESS:
16401
        return getSuccess();
16402
 
16403
      }
16404
      throw new IllegalStateException();
16405
    }
16406
 
16407
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16408
    public boolean isSet(_Fields field) {
16409
      if (field == null) {
16410
        throw new IllegalArgumentException();
16411
      }
16412
 
16413
      switch (field) {
16414
      case SUCCESS:
16415
        return isSetSuccess();
16416
      }
16417
      throw new IllegalStateException();
16418
    }
16419
 
16420
    @Override
16421
    public boolean equals(Object that) {
16422
      if (that == null)
16423
        return false;
16424
      if (that instanceof getAgents_result)
16425
        return this.equals((getAgents_result)that);
16426
      return false;
16427
    }
16428
 
16429
    public boolean equals(getAgents_result that) {
16430
      if (that == null)
16431
        return false;
16432
 
16433
      boolean this_present_success = true && this.isSetSuccess();
16434
      boolean that_present_success = true && that.isSetSuccess();
16435
      if (this_present_success || that_present_success) {
16436
        if (!(this_present_success && that_present_success))
16437
          return false;
16438
        if (!this.success.equals(that.success))
16439
          return false;
16440
      }
16441
 
16442
      return true;
16443
    }
16444
 
16445
    @Override
16446
    public int hashCode() {
16447
      return 0;
16448
    }
16449
 
16450
    public int compareTo(getAgents_result other) {
16451
      if (!getClass().equals(other.getClass())) {
16452
        return getClass().getName().compareTo(other.getClass().getName());
16453
      }
16454
 
16455
      int lastComparison = 0;
16456
      getAgents_result typedOther = (getAgents_result)other;
16457
 
16458
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16459
      if (lastComparison != 0) {
16460
        return lastComparison;
16461
      }
16462
      if (isSetSuccess()) {
16463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16464
        if (lastComparison != 0) {
16465
          return lastComparison;
16466
        }
16467
      }
16468
      return 0;
16469
    }
16470
 
16471
    public _Fields fieldForId(int fieldId) {
16472
      return _Fields.findByThriftId(fieldId);
16473
    }
16474
 
16475
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16476
      org.apache.thrift.protocol.TField field;
16477
      iprot.readStructBegin();
16478
      while (true)
16479
      {
16480
        field = iprot.readFieldBegin();
16481
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16482
          break;
16483
        }
16484
        switch (field.id) {
16485
          case 0: // SUCCESS
16486
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16487
              {
16488
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
16489
                this.success = new ArrayList<Agent>(_list25.size);
16490
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
16491
                {
16492
                  Agent _elem27; // required
16493
                  _elem27 = new Agent();
16494
                  _elem27.read(iprot);
16495
                  this.success.add(_elem27);
16496
                }
16497
                iprot.readListEnd();
16498
              }
16499
            } else { 
16500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16501
            }
16502
            break;
16503
          default:
16504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16505
        }
16506
        iprot.readFieldEnd();
16507
      }
16508
      iprot.readStructEnd();
16509
      validate();
16510
    }
16511
 
16512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16513
      oprot.writeStructBegin(STRUCT_DESC);
16514
 
16515
      if (this.isSetSuccess()) {
16516
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16517
        {
16518
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16519
          for (Agent _iter28 : this.success)
16520
          {
16521
            _iter28.write(oprot);
16522
          }
16523
          oprot.writeListEnd();
16524
        }
16525
        oprot.writeFieldEnd();
16526
      }
16527
      oprot.writeFieldStop();
16528
      oprot.writeStructEnd();
16529
    }
16530
 
16531
    @Override
16532
    public String toString() {
16533
      StringBuilder sb = new StringBuilder("getAgents_result(");
16534
      boolean first = true;
16535
 
16536
      sb.append("success:");
16537
      if (this.success == null) {
16538
        sb.append("null");
16539
      } else {
16540
        sb.append(this.success);
16541
      }
16542
      first = false;
16543
      sb.append(")");
16544
      return sb.toString();
16545
    }
16546
 
16547
    public void validate() throws org.apache.thrift.TException {
16548
      // check for required fields
16549
    }
16550
 
16551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16552
      try {
16553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16554
      } catch (org.apache.thrift.TException te) {
16555
        throw new java.io.IOException(te);
16556
      }
16557
    }
16558
 
16559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16560
      try {
16561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16562
      } catch (org.apache.thrift.TException te) {
16563
        throw new java.io.IOException(te);
16564
      }
16565
    }
16566
 
16567
  }
16568
 
16569
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
16570
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
16571
 
16572
    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);
16573
    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);
16574
 
16575
    private String emailId; // required
16576
    private String password; // required
16577
 
16578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16580
      EMAIL_ID((short)1, "emailId"),
16581
      PASSWORD((short)2, "password");
16582
 
16583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16584
 
16585
      static {
16586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16587
          byName.put(field.getFieldName(), field);
16588
        }
16589
      }
16590
 
16591
      /**
16592
       * Find the _Fields constant that matches fieldId, or null if its not found.
16593
       */
16594
      public static _Fields findByThriftId(int fieldId) {
16595
        switch(fieldId) {
16596
          case 1: // EMAIL_ID
16597
            return EMAIL_ID;
16598
          case 2: // PASSWORD
16599
            return PASSWORD;
16600
          default:
16601
            return null;
16602
        }
16603
      }
16604
 
16605
      /**
16606
       * Find the _Fields constant that matches fieldId, throwing an exception
16607
       * if it is not found.
16608
       */
16609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16610
        _Fields fields = findByThriftId(fieldId);
16611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16612
        return fields;
16613
      }
16614
 
16615
      /**
16616
       * Find the _Fields constant that matches name, or null if its not found.
16617
       */
16618
      public static _Fields findByName(String name) {
16619
        return byName.get(name);
16620
      }
16621
 
16622
      private final short _thriftId;
16623
      private final String _fieldName;
16624
 
16625
      _Fields(short thriftId, String fieldName) {
16626
        _thriftId = thriftId;
16627
        _fieldName = fieldName;
16628
      }
16629
 
16630
      public short getThriftFieldId() {
16631
        return _thriftId;
16632
      }
16633
 
16634
      public String getFieldName() {
16635
        return _fieldName;
16636
      }
16637
    }
16638
 
16639
    // isset id assignments
16640
 
16641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16642
    static {
16643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16644
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16645
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16646
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16648
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16649
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
16650
    }
16651
 
16652
    public validateLogIn_args() {
16653
    }
16654
 
16655
    public validateLogIn_args(
16656
      String emailId,
16657
      String password)
16658
    {
16659
      this();
16660
      this.emailId = emailId;
16661
      this.password = password;
16662
    }
16663
 
16664
    /**
16665
     * Performs a deep copy on <i>other</i>.
16666
     */
16667
    public validateLogIn_args(validateLogIn_args other) {
16668
      if (other.isSetEmailId()) {
16669
        this.emailId = other.emailId;
16670
      }
16671
      if (other.isSetPassword()) {
16672
        this.password = other.password;
16673
      }
16674
    }
16675
 
16676
    public validateLogIn_args deepCopy() {
16677
      return new validateLogIn_args(this);
16678
    }
16679
 
16680
    @Override
16681
    public void clear() {
16682
      this.emailId = null;
16683
      this.password = null;
16684
    }
16685
 
16686
    public String getEmailId() {
16687
      return this.emailId;
16688
    }
16689
 
16690
    public void setEmailId(String emailId) {
16691
      this.emailId = emailId;
16692
    }
16693
 
16694
    public void unsetEmailId() {
16695
      this.emailId = null;
16696
    }
16697
 
16698
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
16699
    public boolean isSetEmailId() {
16700
      return this.emailId != null;
16701
    }
16702
 
16703
    public void setEmailIdIsSet(boolean value) {
16704
      if (!value) {
16705
        this.emailId = null;
16706
      }
16707
    }
16708
 
16709
    public String getPassword() {
16710
      return this.password;
16711
    }
16712
 
16713
    public void setPassword(String password) {
16714
      this.password = password;
16715
    }
16716
 
16717
    public void unsetPassword() {
16718
      this.password = null;
16719
    }
16720
 
16721
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
16722
    public boolean isSetPassword() {
16723
      return this.password != null;
16724
    }
16725
 
16726
    public void setPasswordIsSet(boolean value) {
16727
      if (!value) {
16728
        this.password = null;
16729
      }
16730
    }
16731
 
16732
    public void setFieldValue(_Fields field, Object value) {
16733
      switch (field) {
16734
      case EMAIL_ID:
16735
        if (value == null) {
16736
          unsetEmailId();
16737
        } else {
16738
          setEmailId((String)value);
16739
        }
16740
        break;
16741
 
16742
      case PASSWORD:
16743
        if (value == null) {
16744
          unsetPassword();
16745
        } else {
16746
          setPassword((String)value);
16747
        }
16748
        break;
16749
 
16750
      }
16751
    }
16752
 
16753
    public Object getFieldValue(_Fields field) {
16754
      switch (field) {
16755
      case EMAIL_ID:
16756
        return getEmailId();
16757
 
16758
      case PASSWORD:
16759
        return getPassword();
16760
 
16761
      }
16762
      throw new IllegalStateException();
16763
    }
16764
 
16765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16766
    public boolean isSet(_Fields field) {
16767
      if (field == null) {
16768
        throw new IllegalArgumentException();
16769
      }
16770
 
16771
      switch (field) {
16772
      case EMAIL_ID:
16773
        return isSetEmailId();
16774
      case PASSWORD:
16775
        return isSetPassword();
16776
      }
16777
      throw new IllegalStateException();
16778
    }
16779
 
16780
    @Override
16781
    public boolean equals(Object that) {
16782
      if (that == null)
16783
        return false;
16784
      if (that instanceof validateLogIn_args)
16785
        return this.equals((validateLogIn_args)that);
16786
      return false;
16787
    }
16788
 
16789
    public boolean equals(validateLogIn_args that) {
16790
      if (that == null)
16791
        return false;
16792
 
16793
      boolean this_present_emailId = true && this.isSetEmailId();
16794
      boolean that_present_emailId = true && that.isSetEmailId();
16795
      if (this_present_emailId || that_present_emailId) {
16796
        if (!(this_present_emailId && that_present_emailId))
16797
          return false;
16798
        if (!this.emailId.equals(that.emailId))
16799
          return false;
16800
      }
16801
 
16802
      boolean this_present_password = true && this.isSetPassword();
16803
      boolean that_present_password = true && that.isSetPassword();
16804
      if (this_present_password || that_present_password) {
16805
        if (!(this_present_password && that_present_password))
16806
          return false;
16807
        if (!this.password.equals(that.password))
16808
          return false;
16809
      }
16810
 
16811
      return true;
16812
    }
16813
 
16814
    @Override
16815
    public int hashCode() {
16816
      return 0;
16817
    }
16818
 
16819
    public int compareTo(validateLogIn_args other) {
16820
      if (!getClass().equals(other.getClass())) {
16821
        return getClass().getName().compareTo(other.getClass().getName());
16822
      }
16823
 
16824
      int lastComparison = 0;
16825
      validateLogIn_args typedOther = (validateLogIn_args)other;
16826
 
16827
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
16828
      if (lastComparison != 0) {
16829
        return lastComparison;
16830
      }
16831
      if (isSetEmailId()) {
16832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
16833
        if (lastComparison != 0) {
16834
          return lastComparison;
16835
        }
16836
      }
16837
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
16838
      if (lastComparison != 0) {
16839
        return lastComparison;
16840
      }
16841
      if (isSetPassword()) {
16842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
16843
        if (lastComparison != 0) {
16844
          return lastComparison;
16845
        }
16846
      }
16847
      return 0;
16848
    }
16849
 
16850
    public _Fields fieldForId(int fieldId) {
16851
      return _Fields.findByThriftId(fieldId);
16852
    }
16853
 
16854
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16855
      org.apache.thrift.protocol.TField field;
16856
      iprot.readStructBegin();
16857
      while (true)
16858
      {
16859
        field = iprot.readFieldBegin();
16860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16861
          break;
16862
        }
16863
        switch (field.id) {
16864
          case 1: // EMAIL_ID
16865
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16866
              this.emailId = iprot.readString();
16867
            } else { 
16868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16869
            }
16870
            break;
16871
          case 2: // PASSWORD
16872
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16873
              this.password = iprot.readString();
16874
            } else { 
16875
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16876
            }
16877
            break;
16878
          default:
16879
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16880
        }
16881
        iprot.readFieldEnd();
16882
      }
16883
      iprot.readStructEnd();
16884
      validate();
16885
    }
16886
 
16887
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16888
      validate();
16889
 
16890
      oprot.writeStructBegin(STRUCT_DESC);
16891
      if (this.emailId != null) {
16892
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
16893
        oprot.writeString(this.emailId);
16894
        oprot.writeFieldEnd();
16895
      }
16896
      if (this.password != null) {
16897
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
16898
        oprot.writeString(this.password);
16899
        oprot.writeFieldEnd();
16900
      }
16901
      oprot.writeFieldStop();
16902
      oprot.writeStructEnd();
16903
    }
16904
 
16905
    @Override
16906
    public String toString() {
16907
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
16908
      boolean first = true;
16909
 
16910
      sb.append("emailId:");
16911
      if (this.emailId == null) {
16912
        sb.append("null");
16913
      } else {
16914
        sb.append(this.emailId);
16915
      }
16916
      first = false;
16917
      if (!first) sb.append(", ");
16918
      sb.append("password:");
16919
      if (this.password == null) {
16920
        sb.append("null");
16921
      } else {
16922
        sb.append(this.password);
16923
      }
16924
      first = false;
16925
      sb.append(")");
16926
      return sb.toString();
16927
    }
16928
 
16929
    public void validate() throws org.apache.thrift.TException {
16930
      // check for required fields
16931
    }
16932
 
16933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16934
      try {
16935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16936
      } catch (org.apache.thrift.TException te) {
16937
        throw new java.io.IOException(te);
16938
      }
16939
    }
16940
 
16941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16942
      try {
16943
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16944
      } catch (org.apache.thrift.TException te) {
16945
        throw new java.io.IOException(te);
16946
      }
16947
    }
16948
 
16949
  }
16950
 
16951
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
16952
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
16953
 
16954
    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);
16955
 
16956
    private boolean success; // required
16957
 
16958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16959
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16960
      SUCCESS((short)0, "success");
16961
 
16962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16963
 
16964
      static {
16965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16966
          byName.put(field.getFieldName(), field);
16967
        }
16968
      }
16969
 
16970
      /**
16971
       * Find the _Fields constant that matches fieldId, or null if its not found.
16972
       */
16973
      public static _Fields findByThriftId(int fieldId) {
16974
        switch(fieldId) {
16975
          case 0: // SUCCESS
16976
            return SUCCESS;
16977
          default:
16978
            return null;
16979
        }
16980
      }
16981
 
16982
      /**
16983
       * Find the _Fields constant that matches fieldId, throwing an exception
16984
       * if it is not found.
16985
       */
16986
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16987
        _Fields fields = findByThriftId(fieldId);
16988
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16989
        return fields;
16990
      }
16991
 
16992
      /**
16993
       * Find the _Fields constant that matches name, or null if its not found.
16994
       */
16995
      public static _Fields findByName(String name) {
16996
        return byName.get(name);
16997
      }
16998
 
16999
      private final short _thriftId;
17000
      private final String _fieldName;
17001
 
17002
      _Fields(short thriftId, String fieldName) {
17003
        _thriftId = thriftId;
17004
        _fieldName = fieldName;
17005
      }
17006
 
17007
      public short getThriftFieldId() {
17008
        return _thriftId;
17009
      }
17010
 
17011
      public String getFieldName() {
17012
        return _fieldName;
17013
      }
17014
    }
17015
 
17016
    // isset id assignments
17017
    private static final int __SUCCESS_ISSET_ID = 0;
17018
    private BitSet __isset_bit_vector = new BitSet(1);
17019
 
17020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17021
    static {
17022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17023
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17027
    }
17028
 
17029
    public validateLogIn_result() {
17030
    }
17031
 
17032
    public validateLogIn_result(
17033
      boolean success)
17034
    {
17035
      this();
17036
      this.success = success;
17037
      setSuccessIsSet(true);
17038
    }
17039
 
17040
    /**
17041
     * Performs a deep copy on <i>other</i>.
17042
     */
17043
    public validateLogIn_result(validateLogIn_result other) {
17044
      __isset_bit_vector.clear();
17045
      __isset_bit_vector.or(other.__isset_bit_vector);
17046
      this.success = other.success;
17047
    }
17048
 
17049
    public validateLogIn_result deepCopy() {
17050
      return new validateLogIn_result(this);
17051
    }
17052
 
17053
    @Override
17054
    public void clear() {
17055
      setSuccessIsSet(false);
17056
      this.success = false;
17057
    }
17058
 
17059
    public boolean isSuccess() {
17060
      return this.success;
17061
    }
17062
 
17063
    public void setSuccess(boolean success) {
17064
      this.success = success;
17065
      setSuccessIsSet(true);
17066
    }
17067
 
17068
    public void unsetSuccess() {
17069
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17070
    }
17071
 
17072
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17073
    public boolean isSetSuccess() {
17074
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17075
    }
17076
 
17077
    public void setSuccessIsSet(boolean value) {
17078
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17079
    }
17080
 
17081
    public void setFieldValue(_Fields field, Object value) {
17082
      switch (field) {
17083
      case SUCCESS:
17084
        if (value == null) {
17085
          unsetSuccess();
17086
        } else {
17087
          setSuccess((Boolean)value);
17088
        }
17089
        break;
17090
 
17091
      }
17092
    }
17093
 
17094
    public Object getFieldValue(_Fields field) {
17095
      switch (field) {
17096
      case SUCCESS:
17097
        return Boolean.valueOf(isSuccess());
17098
 
17099
      }
17100
      throw new IllegalStateException();
17101
    }
17102
 
17103
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17104
    public boolean isSet(_Fields field) {
17105
      if (field == null) {
17106
        throw new IllegalArgumentException();
17107
      }
17108
 
17109
      switch (field) {
17110
      case SUCCESS:
17111
        return isSetSuccess();
17112
      }
17113
      throw new IllegalStateException();
17114
    }
17115
 
17116
    @Override
17117
    public boolean equals(Object that) {
17118
      if (that == null)
17119
        return false;
17120
      if (that instanceof validateLogIn_result)
17121
        return this.equals((validateLogIn_result)that);
17122
      return false;
17123
    }
17124
 
17125
    public boolean equals(validateLogIn_result that) {
17126
      if (that == null)
17127
        return false;
17128
 
17129
      boolean this_present_success = true;
17130
      boolean that_present_success = true;
17131
      if (this_present_success || that_present_success) {
17132
        if (!(this_present_success && that_present_success))
17133
          return false;
17134
        if (this.success != that.success)
17135
          return false;
17136
      }
17137
 
17138
      return true;
17139
    }
17140
 
17141
    @Override
17142
    public int hashCode() {
17143
      return 0;
17144
    }
17145
 
17146
    public int compareTo(validateLogIn_result other) {
17147
      if (!getClass().equals(other.getClass())) {
17148
        return getClass().getName().compareTo(other.getClass().getName());
17149
      }
17150
 
17151
      int lastComparison = 0;
17152
      validateLogIn_result typedOther = (validateLogIn_result)other;
17153
 
17154
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17155
      if (lastComparison != 0) {
17156
        return lastComparison;
17157
      }
17158
      if (isSetSuccess()) {
17159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17160
        if (lastComparison != 0) {
17161
          return lastComparison;
17162
        }
17163
      }
17164
      return 0;
17165
    }
17166
 
17167
    public _Fields fieldForId(int fieldId) {
17168
      return _Fields.findByThriftId(fieldId);
17169
    }
17170
 
17171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17172
      org.apache.thrift.protocol.TField field;
17173
      iprot.readStructBegin();
17174
      while (true)
17175
      {
17176
        field = iprot.readFieldBegin();
17177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17178
          break;
17179
        }
17180
        switch (field.id) {
17181
          case 0: // SUCCESS
17182
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17183
              this.success = iprot.readBool();
17184
              setSuccessIsSet(true);
17185
            } else { 
17186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17187
            }
17188
            break;
17189
          default:
17190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17191
        }
17192
        iprot.readFieldEnd();
17193
      }
17194
      iprot.readStructEnd();
17195
      validate();
17196
    }
17197
 
17198
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17199
      oprot.writeStructBegin(STRUCT_DESC);
17200
 
17201
      if (this.isSetSuccess()) {
17202
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17203
        oprot.writeBool(this.success);
17204
        oprot.writeFieldEnd();
17205
      }
17206
      oprot.writeFieldStop();
17207
      oprot.writeStructEnd();
17208
    }
17209
 
17210
    @Override
17211
    public String toString() {
17212
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17213
      boolean first = true;
17214
 
17215
      sb.append("success:");
17216
      sb.append(this.success);
17217
      first = false;
17218
      sb.append(")");
17219
      return sb.toString();
17220
    }
17221
 
17222
    public void validate() throws org.apache.thrift.TException {
17223
      // check for required fields
17224
    }
17225
 
17226
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17227
      try {
17228
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17229
      } catch (org.apache.thrift.TException te) {
17230
        throw new java.io.IOException(te);
17231
      }
17232
    }
17233
 
17234
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17235
      try {
17236
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17237
      } catch (org.apache.thrift.TException te) {
17238
        throw new java.io.IOException(te);
17239
      }
17240
    }
17241
 
17242
  }
17243
 
17244
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17245
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17246
 
17247
    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);
17248
    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);
17249
 
17250
    private String agentEmailId; // required
17251
    private String password; // required
17252
 
17253
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17254
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17255
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17256
      PASSWORD((short)2, "password");
17257
 
17258
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17259
 
17260
      static {
17261
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17262
          byName.put(field.getFieldName(), field);
17263
        }
17264
      }
17265
 
17266
      /**
17267
       * Find the _Fields constant that matches fieldId, or null if its not found.
17268
       */
17269
      public static _Fields findByThriftId(int fieldId) {
17270
        switch(fieldId) {
17271
          case 1: // AGENT_EMAIL_ID
17272
            return AGENT_EMAIL_ID;
17273
          case 2: // PASSWORD
17274
            return PASSWORD;
17275
          default:
17276
            return null;
17277
        }
17278
      }
17279
 
17280
      /**
17281
       * Find the _Fields constant that matches fieldId, throwing an exception
17282
       * if it is not found.
17283
       */
17284
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17285
        _Fields fields = findByThriftId(fieldId);
17286
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17287
        return fields;
17288
      }
17289
 
17290
      /**
17291
       * Find the _Fields constant that matches name, or null if its not found.
17292
       */
17293
      public static _Fields findByName(String name) {
17294
        return byName.get(name);
17295
      }
17296
 
17297
      private final short _thriftId;
17298
      private final String _fieldName;
17299
 
17300
      _Fields(short thriftId, String fieldName) {
17301
        _thriftId = thriftId;
17302
        _fieldName = fieldName;
17303
      }
17304
 
17305
      public short getThriftFieldId() {
17306
        return _thriftId;
17307
      }
17308
 
17309
      public String getFieldName() {
17310
        return _fieldName;
17311
      }
17312
    }
17313
 
17314
    // isset id assignments
17315
 
17316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17317
    static {
17318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17319
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17321
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17323
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17324
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
17325
    }
17326
 
17327
    public updatePasswordForAgent_args() {
17328
    }
17329
 
17330
    public updatePasswordForAgent_args(
17331
      String agentEmailId,
17332
      String password)
17333
    {
17334
      this();
17335
      this.agentEmailId = agentEmailId;
17336
      this.password = password;
17337
    }
17338
 
17339
    /**
17340
     * Performs a deep copy on <i>other</i>.
17341
     */
17342
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
17343
      if (other.isSetAgentEmailId()) {
17344
        this.agentEmailId = other.agentEmailId;
17345
      }
17346
      if (other.isSetPassword()) {
17347
        this.password = other.password;
17348
      }
17349
    }
17350
 
17351
    public updatePasswordForAgent_args deepCopy() {
17352
      return new updatePasswordForAgent_args(this);
17353
    }
17354
 
17355
    @Override
17356
    public void clear() {
17357
      this.agentEmailId = null;
17358
      this.password = null;
17359
    }
17360
 
17361
    public String getAgentEmailId() {
17362
      return this.agentEmailId;
17363
    }
17364
 
17365
    public void setAgentEmailId(String agentEmailId) {
17366
      this.agentEmailId = agentEmailId;
17367
    }
17368
 
17369
    public void unsetAgentEmailId() {
17370
      this.agentEmailId = null;
17371
    }
17372
 
17373
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
17374
    public boolean isSetAgentEmailId() {
17375
      return this.agentEmailId != null;
17376
    }
17377
 
17378
    public void setAgentEmailIdIsSet(boolean value) {
17379
      if (!value) {
17380
        this.agentEmailId = null;
17381
      }
17382
    }
17383
 
17384
    public String getPassword() {
17385
      return this.password;
17386
    }
17387
 
17388
    public void setPassword(String password) {
17389
      this.password = password;
17390
    }
17391
 
17392
    public void unsetPassword() {
17393
      this.password = null;
17394
    }
17395
 
17396
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17397
    public boolean isSetPassword() {
17398
      return this.password != null;
17399
    }
17400
 
17401
    public void setPasswordIsSet(boolean value) {
17402
      if (!value) {
17403
        this.password = null;
17404
      }
17405
    }
17406
 
17407
    public void setFieldValue(_Fields field, Object value) {
17408
      switch (field) {
17409
      case AGENT_EMAIL_ID:
17410
        if (value == null) {
17411
          unsetAgentEmailId();
17412
        } else {
17413
          setAgentEmailId((String)value);
17414
        }
17415
        break;
17416
 
17417
      case PASSWORD:
17418
        if (value == null) {
17419
          unsetPassword();
17420
        } else {
17421
          setPassword((String)value);
17422
        }
17423
        break;
17424
 
17425
      }
17426
    }
17427
 
17428
    public Object getFieldValue(_Fields field) {
17429
      switch (field) {
17430
      case AGENT_EMAIL_ID:
17431
        return getAgentEmailId();
17432
 
17433
      case PASSWORD:
17434
        return getPassword();
17435
 
17436
      }
17437
      throw new IllegalStateException();
17438
    }
17439
 
17440
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17441
    public boolean isSet(_Fields field) {
17442
      if (field == null) {
17443
        throw new IllegalArgumentException();
17444
      }
17445
 
17446
      switch (field) {
17447
      case AGENT_EMAIL_ID:
17448
        return isSetAgentEmailId();
17449
      case PASSWORD:
17450
        return isSetPassword();
17451
      }
17452
      throw new IllegalStateException();
17453
    }
17454
 
17455
    @Override
17456
    public boolean equals(Object that) {
17457
      if (that == null)
17458
        return false;
17459
      if (that instanceof updatePasswordForAgent_args)
17460
        return this.equals((updatePasswordForAgent_args)that);
17461
      return false;
17462
    }
17463
 
17464
    public boolean equals(updatePasswordForAgent_args that) {
17465
      if (that == null)
17466
        return false;
17467
 
17468
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
17469
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
17470
      if (this_present_agentEmailId || that_present_agentEmailId) {
17471
        if (!(this_present_agentEmailId && that_present_agentEmailId))
17472
          return false;
17473
        if (!this.agentEmailId.equals(that.agentEmailId))
17474
          return false;
17475
      }
17476
 
17477
      boolean this_present_password = true && this.isSetPassword();
17478
      boolean that_present_password = true && that.isSetPassword();
17479
      if (this_present_password || that_present_password) {
17480
        if (!(this_present_password && that_present_password))
17481
          return false;
17482
        if (!this.password.equals(that.password))
17483
          return false;
17484
      }
17485
 
17486
      return true;
17487
    }
17488
 
17489
    @Override
17490
    public int hashCode() {
17491
      return 0;
17492
    }
17493
 
17494
    public int compareTo(updatePasswordForAgent_args other) {
17495
      if (!getClass().equals(other.getClass())) {
17496
        return getClass().getName().compareTo(other.getClass().getName());
17497
      }
17498
 
17499
      int lastComparison = 0;
17500
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
17501
 
17502
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
17503
      if (lastComparison != 0) {
17504
        return lastComparison;
17505
      }
17506
      if (isSetAgentEmailId()) {
17507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
17508
        if (lastComparison != 0) {
17509
          return lastComparison;
17510
        }
17511
      }
17512
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17513
      if (lastComparison != 0) {
17514
        return lastComparison;
17515
      }
17516
      if (isSetPassword()) {
17517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17518
        if (lastComparison != 0) {
17519
          return lastComparison;
17520
        }
17521
      }
17522
      return 0;
17523
    }
17524
 
17525
    public _Fields fieldForId(int fieldId) {
17526
      return _Fields.findByThriftId(fieldId);
17527
    }
17528
 
17529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17530
      org.apache.thrift.protocol.TField field;
17531
      iprot.readStructBegin();
17532
      while (true)
17533
      {
17534
        field = iprot.readFieldBegin();
17535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17536
          break;
17537
        }
17538
        switch (field.id) {
17539
          case 1: // AGENT_EMAIL_ID
17540
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17541
              this.agentEmailId = iprot.readString();
17542
            } else { 
17543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17544
            }
17545
            break;
17546
          case 2: // PASSWORD
17547
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17548
              this.password = iprot.readString();
17549
            } else { 
17550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17551
            }
17552
            break;
17553
          default:
17554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17555
        }
17556
        iprot.readFieldEnd();
17557
      }
17558
      iprot.readStructEnd();
17559
      validate();
17560
    }
17561
 
17562
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17563
      validate();
17564
 
17565
      oprot.writeStructBegin(STRUCT_DESC);
17566
      if (this.agentEmailId != null) {
17567
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
17568
        oprot.writeString(this.agentEmailId);
17569
        oprot.writeFieldEnd();
17570
      }
17571
      if (this.password != null) {
17572
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17573
        oprot.writeString(this.password);
17574
        oprot.writeFieldEnd();
17575
      }
17576
      oprot.writeFieldStop();
17577
      oprot.writeStructEnd();
17578
    }
17579
 
17580
    @Override
17581
    public String toString() {
17582
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
17583
      boolean first = true;
17584
 
17585
      sb.append("agentEmailId:");
17586
      if (this.agentEmailId == null) {
17587
        sb.append("null");
17588
      } else {
17589
        sb.append(this.agentEmailId);
17590
      }
17591
      first = false;
17592
      if (!first) sb.append(", ");
17593
      sb.append("password:");
17594
      if (this.password == null) {
17595
        sb.append("null");
17596
      } else {
17597
        sb.append(this.password);
17598
      }
17599
      first = false;
17600
      sb.append(")");
17601
      return sb.toString();
17602
    }
17603
 
17604
    public void validate() throws org.apache.thrift.TException {
17605
      // check for required fields
17606
    }
17607
 
17608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17609
      try {
17610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17611
      } catch (org.apache.thrift.TException te) {
17612
        throw new java.io.IOException(te);
17613
      }
17614
    }
17615
 
17616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17617
      try {
17618
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17619
      } catch (org.apache.thrift.TException te) {
17620
        throw new java.io.IOException(te);
17621
      }
17622
    }
17623
 
17624
  }
17625
 
17626
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
17627
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
17628
 
17629
 
17630
 
17631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17633
;
17634
 
17635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17636
 
17637
      static {
17638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17639
          byName.put(field.getFieldName(), field);
17640
        }
17641
      }
17642
 
17643
      /**
17644
       * Find the _Fields constant that matches fieldId, or null if its not found.
17645
       */
17646
      public static _Fields findByThriftId(int fieldId) {
17647
        switch(fieldId) {
17648
          default:
17649
            return null;
17650
        }
17651
      }
17652
 
17653
      /**
17654
       * Find the _Fields constant that matches fieldId, throwing an exception
17655
       * if it is not found.
17656
       */
17657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17658
        _Fields fields = findByThriftId(fieldId);
17659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17660
        return fields;
17661
      }
17662
 
17663
      /**
17664
       * Find the _Fields constant that matches name, or null if its not found.
17665
       */
17666
      public static _Fields findByName(String name) {
17667
        return byName.get(name);
17668
      }
17669
 
17670
      private final short _thriftId;
17671
      private final String _fieldName;
17672
 
17673
      _Fields(short thriftId, String fieldName) {
17674
        _thriftId = thriftId;
17675
        _fieldName = fieldName;
17676
      }
17677
 
17678
      public short getThriftFieldId() {
17679
        return _thriftId;
17680
      }
17681
 
17682
      public String getFieldName() {
17683
        return _fieldName;
17684
      }
17685
    }
17686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17687
    static {
17688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
17691
    }
17692
 
17693
    public updatePasswordForAgent_result() {
17694
    }
17695
 
17696
    /**
17697
     * Performs a deep copy on <i>other</i>.
17698
     */
17699
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
17700
    }
17701
 
17702
    public updatePasswordForAgent_result deepCopy() {
17703
      return new updatePasswordForAgent_result(this);
17704
    }
17705
 
17706
    @Override
17707
    public void clear() {
17708
    }
17709
 
17710
    public void setFieldValue(_Fields field, Object value) {
17711
      switch (field) {
17712
      }
17713
    }
17714
 
17715
    public Object getFieldValue(_Fields field) {
17716
      switch (field) {
17717
      }
17718
      throw new IllegalStateException();
17719
    }
17720
 
17721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17722
    public boolean isSet(_Fields field) {
17723
      if (field == null) {
17724
        throw new IllegalArgumentException();
17725
      }
17726
 
17727
      switch (field) {
17728
      }
17729
      throw new IllegalStateException();
17730
    }
17731
 
17732
    @Override
17733
    public boolean equals(Object that) {
17734
      if (that == null)
17735
        return false;
17736
      if (that instanceof updatePasswordForAgent_result)
17737
        return this.equals((updatePasswordForAgent_result)that);
17738
      return false;
17739
    }
17740
 
17741
    public boolean equals(updatePasswordForAgent_result that) {
17742
      if (that == null)
17743
        return false;
17744
 
17745
      return true;
17746
    }
17747
 
17748
    @Override
17749
    public int hashCode() {
17750
      return 0;
17751
    }
17752
 
17753
    public int compareTo(updatePasswordForAgent_result other) {
17754
      if (!getClass().equals(other.getClass())) {
17755
        return getClass().getName().compareTo(other.getClass().getName());
17756
      }
17757
 
17758
      int lastComparison = 0;
17759
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
17760
 
17761
      return 0;
17762
    }
17763
 
17764
    public _Fields fieldForId(int fieldId) {
17765
      return _Fields.findByThriftId(fieldId);
17766
    }
17767
 
17768
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17769
      org.apache.thrift.protocol.TField field;
17770
      iprot.readStructBegin();
17771
      while (true)
17772
      {
17773
        field = iprot.readFieldBegin();
17774
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17775
          break;
17776
        }
17777
        switch (field.id) {
17778
          default:
17779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17780
        }
17781
        iprot.readFieldEnd();
17782
      }
17783
      iprot.readStructEnd();
17784
      validate();
17785
    }
17786
 
17787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17788
      oprot.writeStructBegin(STRUCT_DESC);
17789
 
17790
      oprot.writeFieldStop();
17791
      oprot.writeStructEnd();
17792
    }
17793
 
17794
    @Override
17795
    public String toString() {
17796
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
17797
      boolean first = true;
17798
 
17799
      sb.append(")");
17800
      return sb.toString();
17801
    }
17802
 
17803
    public void validate() throws org.apache.thrift.TException {
17804
      // check for required fields
17805
    }
17806
 
17807
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17808
      try {
17809
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17810
      } catch (org.apache.thrift.TException te) {
17811
        throw new java.io.IOException(te);
17812
      }
17813
    }
17814
 
17815
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17816
      try {
17817
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17818
      } catch (org.apache.thrift.TException te) {
17819
        throw new java.io.IOException(te);
17820
      }
17821
    }
17822
 
17823
  }
17824
 
17825
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
17827
 
17828
    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);
17829
 
17830
    private String agentEmailId; // required
17831
 
17832
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17833
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17834
      AGENT_EMAIL_ID((short)1, "agentEmailId");
17835
 
17836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17837
 
17838
      static {
17839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17840
          byName.put(field.getFieldName(), field);
17841
        }
17842
      }
17843
 
17844
      /**
17845
       * Find the _Fields constant that matches fieldId, or null if its not found.
17846
       */
17847
      public static _Fields findByThriftId(int fieldId) {
17848
        switch(fieldId) {
17849
          case 1: // AGENT_EMAIL_ID
17850
            return AGENT_EMAIL_ID;
17851
          default:
17852
            return null;
17853
        }
17854
      }
17855
 
17856
      /**
17857
       * Find the _Fields constant that matches fieldId, throwing an exception
17858
       * if it is not found.
17859
       */
17860
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17861
        _Fields fields = findByThriftId(fieldId);
17862
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17863
        return fields;
17864
      }
17865
 
17866
      /**
17867
       * Find the _Fields constant that matches name, or null if its not found.
17868
       */
17869
      public static _Fields findByName(String name) {
17870
        return byName.get(name);
17871
      }
17872
 
17873
      private final short _thriftId;
17874
      private final String _fieldName;
17875
 
17876
      _Fields(short thriftId, String fieldName) {
17877
        _thriftId = thriftId;
17878
        _fieldName = fieldName;
17879
      }
17880
 
17881
      public short getThriftFieldId() {
17882
        return _thriftId;
17883
      }
17884
 
17885
      public String getFieldName() {
17886
        return _fieldName;
17887
      }
17888
    }
17889
 
17890
    // isset id assignments
17891
 
17892
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17893
    static {
17894
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17895
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
17899
    }
17900
 
17901
    public getRoleNamesForAgent_args() {
17902
    }
17903
 
17904
    public getRoleNamesForAgent_args(
17905
      String agentEmailId)
17906
    {
17907
      this();
17908
      this.agentEmailId = agentEmailId;
17909
    }
17910
 
17911
    /**
17912
     * Performs a deep copy on <i>other</i>.
17913
     */
17914
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
17915
      if (other.isSetAgentEmailId()) {
17916
        this.agentEmailId = other.agentEmailId;
17917
      }
17918
    }
17919
 
17920
    public getRoleNamesForAgent_args deepCopy() {
17921
      return new getRoleNamesForAgent_args(this);
17922
    }
17923
 
17924
    @Override
17925
    public void clear() {
17926
      this.agentEmailId = null;
17927
    }
17928
 
17929
    public String getAgentEmailId() {
17930
      return this.agentEmailId;
17931
    }
17932
 
17933
    public void setAgentEmailId(String agentEmailId) {
17934
      this.agentEmailId = agentEmailId;
17935
    }
17936
 
17937
    public void unsetAgentEmailId() {
17938
      this.agentEmailId = null;
17939
    }
17940
 
17941
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
17942
    public boolean isSetAgentEmailId() {
17943
      return this.agentEmailId != null;
17944
    }
17945
 
17946
    public void setAgentEmailIdIsSet(boolean value) {
17947
      if (!value) {
17948
        this.agentEmailId = null;
17949
      }
17950
    }
17951
 
17952
    public void setFieldValue(_Fields field, Object value) {
17953
      switch (field) {
17954
      case AGENT_EMAIL_ID:
17955
        if (value == null) {
17956
          unsetAgentEmailId();
17957
        } else {
17958
          setAgentEmailId((String)value);
17959
        }
17960
        break;
17961
 
17962
      }
17963
    }
17964
 
17965
    public Object getFieldValue(_Fields field) {
17966
      switch (field) {
17967
      case AGENT_EMAIL_ID:
17968
        return getAgentEmailId();
17969
 
17970
      }
17971
      throw new IllegalStateException();
17972
    }
17973
 
17974
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17975
    public boolean isSet(_Fields field) {
17976
      if (field == null) {
17977
        throw new IllegalArgumentException();
17978
      }
17979
 
17980
      switch (field) {
17981
      case AGENT_EMAIL_ID:
17982
        return isSetAgentEmailId();
17983
      }
17984
      throw new IllegalStateException();
17985
    }
17986
 
17987
    @Override
17988
    public boolean equals(Object that) {
17989
      if (that == null)
17990
        return false;
17991
      if (that instanceof getRoleNamesForAgent_args)
17992
        return this.equals((getRoleNamesForAgent_args)that);
17993
      return false;
17994
    }
17995
 
17996
    public boolean equals(getRoleNamesForAgent_args that) {
17997
      if (that == null)
17998
        return false;
17999
 
18000
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18001
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18002
      if (this_present_agentEmailId || that_present_agentEmailId) {
18003
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18004
          return false;
18005
        if (!this.agentEmailId.equals(that.agentEmailId))
18006
          return false;
18007
      }
18008
 
18009
      return true;
18010
    }
18011
 
18012
    @Override
18013
    public int hashCode() {
18014
      return 0;
18015
    }
18016
 
18017
    public int compareTo(getRoleNamesForAgent_args other) {
18018
      if (!getClass().equals(other.getClass())) {
18019
        return getClass().getName().compareTo(other.getClass().getName());
18020
      }
18021
 
18022
      int lastComparison = 0;
18023
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18024
 
18025
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18026
      if (lastComparison != 0) {
18027
        return lastComparison;
18028
      }
18029
      if (isSetAgentEmailId()) {
18030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18031
        if (lastComparison != 0) {
18032
          return lastComparison;
18033
        }
18034
      }
18035
      return 0;
18036
    }
18037
 
18038
    public _Fields fieldForId(int fieldId) {
18039
      return _Fields.findByThriftId(fieldId);
18040
    }
18041
 
18042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18043
      org.apache.thrift.protocol.TField field;
18044
      iprot.readStructBegin();
18045
      while (true)
18046
      {
18047
        field = iprot.readFieldBegin();
18048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18049
          break;
18050
        }
18051
        switch (field.id) {
18052
          case 1: // AGENT_EMAIL_ID
18053
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18054
              this.agentEmailId = iprot.readString();
18055
            } else { 
18056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18057
            }
18058
            break;
18059
          default:
18060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18061
        }
18062
        iprot.readFieldEnd();
18063
      }
18064
      iprot.readStructEnd();
18065
      validate();
18066
    }
18067
 
18068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18069
      validate();
18070
 
18071
      oprot.writeStructBegin(STRUCT_DESC);
18072
      if (this.agentEmailId != null) {
18073
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18074
        oprot.writeString(this.agentEmailId);
18075
        oprot.writeFieldEnd();
18076
      }
18077
      oprot.writeFieldStop();
18078
      oprot.writeStructEnd();
18079
    }
18080
 
18081
    @Override
18082
    public String toString() {
18083
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18084
      boolean first = true;
18085
 
18086
      sb.append("agentEmailId:");
18087
      if (this.agentEmailId == null) {
18088
        sb.append("null");
18089
      } else {
18090
        sb.append(this.agentEmailId);
18091
      }
18092
      first = false;
18093
      sb.append(")");
18094
      return sb.toString();
18095
    }
18096
 
18097
    public void validate() throws org.apache.thrift.TException {
18098
      // check for required fields
18099
    }
18100
 
18101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18102
      try {
18103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18104
      } catch (org.apache.thrift.TException te) {
18105
        throw new java.io.IOException(te);
18106
      }
18107
    }
18108
 
18109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18110
      try {
18111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18112
      } catch (org.apache.thrift.TException te) {
18113
        throw new java.io.IOException(te);
18114
      }
18115
    }
18116
 
18117
  }
18118
 
18119
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18121
 
18122
    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);
18123
 
18124
    private List<String> success; // required
18125
 
18126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18128
      SUCCESS((short)0, "success");
18129
 
18130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18131
 
18132
      static {
18133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18134
          byName.put(field.getFieldName(), field);
18135
        }
18136
      }
18137
 
18138
      /**
18139
       * Find the _Fields constant that matches fieldId, or null if its not found.
18140
       */
18141
      public static _Fields findByThriftId(int fieldId) {
18142
        switch(fieldId) {
18143
          case 0: // SUCCESS
18144
            return SUCCESS;
18145
          default:
18146
            return null;
18147
        }
18148
      }
18149
 
18150
      /**
18151
       * Find the _Fields constant that matches fieldId, throwing an exception
18152
       * if it is not found.
18153
       */
18154
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18155
        _Fields fields = findByThriftId(fieldId);
18156
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18157
        return fields;
18158
      }
18159
 
18160
      /**
18161
       * Find the _Fields constant that matches name, or null if its not found.
18162
       */
18163
      public static _Fields findByName(String name) {
18164
        return byName.get(name);
18165
      }
18166
 
18167
      private final short _thriftId;
18168
      private final String _fieldName;
18169
 
18170
      _Fields(short thriftId, String fieldName) {
18171
        _thriftId = thriftId;
18172
        _fieldName = fieldName;
18173
      }
18174
 
18175
      public short getThriftFieldId() {
18176
        return _thriftId;
18177
      }
18178
 
18179
      public String getFieldName() {
18180
        return _fieldName;
18181
      }
18182
    }
18183
 
18184
    // isset id assignments
18185
 
18186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18187
    static {
18188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18189
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18190
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18191
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18194
    }
18195
 
18196
    public getRoleNamesForAgent_result() {
18197
    }
18198
 
18199
    public getRoleNamesForAgent_result(
18200
      List<String> success)
18201
    {
18202
      this();
18203
      this.success = success;
18204
    }
18205
 
18206
    /**
18207
     * Performs a deep copy on <i>other</i>.
18208
     */
18209
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18210
      if (other.isSetSuccess()) {
18211
        List<String> __this__success = new ArrayList<String>();
18212
        for (String other_element : other.success) {
18213
          __this__success.add(other_element);
18214
        }
18215
        this.success = __this__success;
18216
      }
18217
    }
18218
 
18219
    public getRoleNamesForAgent_result deepCopy() {
18220
      return new getRoleNamesForAgent_result(this);
18221
    }
18222
 
18223
    @Override
18224
    public void clear() {
18225
      this.success = null;
18226
    }
18227
 
18228
    public int getSuccessSize() {
18229
      return (this.success == null) ? 0 : this.success.size();
18230
    }
18231
 
18232
    public java.util.Iterator<String> getSuccessIterator() {
18233
      return (this.success == null) ? null : this.success.iterator();
18234
    }
18235
 
18236
    public void addToSuccess(String elem) {
18237
      if (this.success == null) {
18238
        this.success = new ArrayList<String>();
18239
      }
18240
      this.success.add(elem);
18241
    }
18242
 
18243
    public List<String> getSuccess() {
18244
      return this.success;
18245
    }
18246
 
18247
    public void setSuccess(List<String> success) {
18248
      this.success = success;
18249
    }
18250
 
18251
    public void unsetSuccess() {
18252
      this.success = null;
18253
    }
18254
 
18255
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18256
    public boolean isSetSuccess() {
18257
      return this.success != null;
18258
    }
18259
 
18260
    public void setSuccessIsSet(boolean value) {
18261
      if (!value) {
18262
        this.success = null;
18263
      }
18264
    }
18265
 
18266
    public void setFieldValue(_Fields field, Object value) {
18267
      switch (field) {
18268
      case SUCCESS:
18269
        if (value == null) {
18270
          unsetSuccess();
18271
        } else {
18272
          setSuccess((List<String>)value);
18273
        }
18274
        break;
18275
 
18276
      }
18277
    }
18278
 
18279
    public Object getFieldValue(_Fields field) {
18280
      switch (field) {
18281
      case SUCCESS:
18282
        return getSuccess();
18283
 
18284
      }
18285
      throw new IllegalStateException();
18286
    }
18287
 
18288
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18289
    public boolean isSet(_Fields field) {
18290
      if (field == null) {
18291
        throw new IllegalArgumentException();
18292
      }
18293
 
18294
      switch (field) {
18295
      case SUCCESS:
18296
        return isSetSuccess();
18297
      }
18298
      throw new IllegalStateException();
18299
    }
18300
 
18301
    @Override
18302
    public boolean equals(Object that) {
18303
      if (that == null)
18304
        return false;
18305
      if (that instanceof getRoleNamesForAgent_result)
18306
        return this.equals((getRoleNamesForAgent_result)that);
18307
      return false;
18308
    }
18309
 
18310
    public boolean equals(getRoleNamesForAgent_result that) {
18311
      if (that == null)
18312
        return false;
18313
 
18314
      boolean this_present_success = true && this.isSetSuccess();
18315
      boolean that_present_success = true && that.isSetSuccess();
18316
      if (this_present_success || that_present_success) {
18317
        if (!(this_present_success && that_present_success))
18318
          return false;
18319
        if (!this.success.equals(that.success))
18320
          return false;
18321
      }
18322
 
18323
      return true;
18324
    }
18325
 
18326
    @Override
18327
    public int hashCode() {
18328
      return 0;
18329
    }
18330
 
18331
    public int compareTo(getRoleNamesForAgent_result other) {
18332
      if (!getClass().equals(other.getClass())) {
18333
        return getClass().getName().compareTo(other.getClass().getName());
18334
      }
18335
 
18336
      int lastComparison = 0;
18337
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
18338
 
18339
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18340
      if (lastComparison != 0) {
18341
        return lastComparison;
18342
      }
18343
      if (isSetSuccess()) {
18344
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18345
        if (lastComparison != 0) {
18346
          return lastComparison;
18347
        }
18348
      }
18349
      return 0;
18350
    }
18351
 
18352
    public _Fields fieldForId(int fieldId) {
18353
      return _Fields.findByThriftId(fieldId);
18354
    }
18355
 
18356
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18357
      org.apache.thrift.protocol.TField field;
18358
      iprot.readStructBegin();
18359
      while (true)
18360
      {
18361
        field = iprot.readFieldBegin();
18362
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18363
          break;
18364
        }
18365
        switch (field.id) {
18366
          case 0: // SUCCESS
18367
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18368
              {
18369
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
18370
                this.success = new ArrayList<String>(_list29.size);
18371
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
18372
                {
18373
                  String _elem31; // required
18374
                  _elem31 = iprot.readString();
18375
                  this.success.add(_elem31);
18376
                }
18377
                iprot.readListEnd();
18378
              }
18379
            } else { 
18380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18381
            }
18382
            break;
18383
          default:
18384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18385
        }
18386
        iprot.readFieldEnd();
18387
      }
18388
      iprot.readStructEnd();
18389
      validate();
18390
    }
18391
 
18392
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18393
      oprot.writeStructBegin(STRUCT_DESC);
18394
 
18395
      if (this.isSetSuccess()) {
18396
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18397
        {
18398
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
18399
          for (String _iter32 : this.success)
18400
          {
18401
            oprot.writeString(_iter32);
18402
          }
18403
          oprot.writeListEnd();
18404
        }
18405
        oprot.writeFieldEnd();
18406
      }
18407
      oprot.writeFieldStop();
18408
      oprot.writeStructEnd();
18409
    }
18410
 
18411
    @Override
18412
    public String toString() {
18413
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
18414
      boolean first = true;
18415
 
18416
      sb.append("success:");
18417
      if (this.success == null) {
18418
        sb.append("null");
18419
      } else {
18420
        sb.append(this.success);
18421
      }
18422
      first = false;
18423
      sb.append(")");
18424
      return sb.toString();
18425
    }
18426
 
18427
    public void validate() throws org.apache.thrift.TException {
18428
      // check for required fields
18429
    }
18430
 
18431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18432
      try {
18433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18434
      } catch (org.apache.thrift.TException te) {
18435
        throw new java.io.IOException(te);
18436
      }
18437
    }
18438
 
18439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18440
      try {
18441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18442
      } catch (org.apache.thrift.TException te) {
18443
        throw new java.io.IOException(te);
18444
      }
18445
    }
18446
 
18447
  }
18448
 
18449
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
18450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
18451
 
18452
    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);
18453
 
18454
    private String roleName; // required
18455
 
18456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18458
      ROLE_NAME((short)1, "roleName");
18459
 
18460
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18461
 
18462
      static {
18463
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18464
          byName.put(field.getFieldName(), field);
18465
        }
18466
      }
18467
 
18468
      /**
18469
       * Find the _Fields constant that matches fieldId, or null if its not found.
18470
       */
18471
      public static _Fields findByThriftId(int fieldId) {
18472
        switch(fieldId) {
18473
          case 1: // ROLE_NAME
18474
            return ROLE_NAME;
18475
          default:
18476
            return null;
18477
        }
18478
      }
18479
 
18480
      /**
18481
       * Find the _Fields constant that matches fieldId, throwing an exception
18482
       * if it is not found.
18483
       */
18484
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18485
        _Fields fields = findByThriftId(fieldId);
18486
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18487
        return fields;
18488
      }
18489
 
18490
      /**
18491
       * Find the _Fields constant that matches name, or null if its not found.
18492
       */
18493
      public static _Fields findByName(String name) {
18494
        return byName.get(name);
18495
      }
18496
 
18497
      private final short _thriftId;
18498
      private final String _fieldName;
18499
 
18500
      _Fields(short thriftId, String fieldName) {
18501
        _thriftId = thriftId;
18502
        _fieldName = fieldName;
18503
      }
18504
 
18505
      public short getThriftFieldId() {
18506
        return _thriftId;
18507
      }
18508
 
18509
      public String getFieldName() {
18510
        return _fieldName;
18511
      }
18512
    }
18513
 
18514
    // isset id assignments
18515
 
18516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18517
    static {
18518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18519
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18521
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18522
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
18523
    }
18524
 
18525
    public getPermissionsForRoleName_args() {
18526
    }
18527
 
18528
    public getPermissionsForRoleName_args(
18529
      String roleName)
18530
    {
18531
      this();
18532
      this.roleName = roleName;
18533
    }
18534
 
18535
    /**
18536
     * Performs a deep copy on <i>other</i>.
18537
     */
18538
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
18539
      if (other.isSetRoleName()) {
18540
        this.roleName = other.roleName;
18541
      }
18542
    }
18543
 
18544
    public getPermissionsForRoleName_args deepCopy() {
18545
      return new getPermissionsForRoleName_args(this);
18546
    }
18547
 
18548
    @Override
18549
    public void clear() {
18550
      this.roleName = null;
18551
    }
18552
 
18553
    public String getRoleName() {
18554
      return this.roleName;
18555
    }
18556
 
18557
    public void setRoleName(String roleName) {
18558
      this.roleName = roleName;
18559
    }
18560
 
18561
    public void unsetRoleName() {
18562
      this.roleName = null;
18563
    }
18564
 
18565
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
18566
    public boolean isSetRoleName() {
18567
      return this.roleName != null;
18568
    }
18569
 
18570
    public void setRoleNameIsSet(boolean value) {
18571
      if (!value) {
18572
        this.roleName = null;
18573
      }
18574
    }
18575
 
18576
    public void setFieldValue(_Fields field, Object value) {
18577
      switch (field) {
18578
      case ROLE_NAME:
18579
        if (value == null) {
18580
          unsetRoleName();
18581
        } else {
18582
          setRoleName((String)value);
18583
        }
18584
        break;
18585
 
18586
      }
18587
    }
18588
 
18589
    public Object getFieldValue(_Fields field) {
18590
      switch (field) {
18591
      case ROLE_NAME:
18592
        return getRoleName();
18593
 
18594
      }
18595
      throw new IllegalStateException();
18596
    }
18597
 
18598
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18599
    public boolean isSet(_Fields field) {
18600
      if (field == null) {
18601
        throw new IllegalArgumentException();
18602
      }
18603
 
18604
      switch (field) {
18605
      case ROLE_NAME:
18606
        return isSetRoleName();
18607
      }
18608
      throw new IllegalStateException();
18609
    }
18610
 
18611
    @Override
18612
    public boolean equals(Object that) {
18613
      if (that == null)
18614
        return false;
18615
      if (that instanceof getPermissionsForRoleName_args)
18616
        return this.equals((getPermissionsForRoleName_args)that);
18617
      return false;
18618
    }
18619
 
18620
    public boolean equals(getPermissionsForRoleName_args that) {
18621
      if (that == null)
18622
        return false;
18623
 
18624
      boolean this_present_roleName = true && this.isSetRoleName();
18625
      boolean that_present_roleName = true && that.isSetRoleName();
18626
      if (this_present_roleName || that_present_roleName) {
18627
        if (!(this_present_roleName && that_present_roleName))
18628
          return false;
18629
        if (!this.roleName.equals(that.roleName))
18630
          return false;
18631
      }
18632
 
18633
      return true;
18634
    }
18635
 
18636
    @Override
18637
    public int hashCode() {
18638
      return 0;
18639
    }
18640
 
18641
    public int compareTo(getPermissionsForRoleName_args other) {
18642
      if (!getClass().equals(other.getClass())) {
18643
        return getClass().getName().compareTo(other.getClass().getName());
18644
      }
18645
 
18646
      int lastComparison = 0;
18647
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
18648
 
18649
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
18650
      if (lastComparison != 0) {
18651
        return lastComparison;
18652
      }
18653
      if (isSetRoleName()) {
18654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
18655
        if (lastComparison != 0) {
18656
          return lastComparison;
18657
        }
18658
      }
18659
      return 0;
18660
    }
18661
 
18662
    public _Fields fieldForId(int fieldId) {
18663
      return _Fields.findByThriftId(fieldId);
18664
    }
18665
 
18666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18667
      org.apache.thrift.protocol.TField field;
18668
      iprot.readStructBegin();
18669
      while (true)
18670
      {
18671
        field = iprot.readFieldBegin();
18672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18673
          break;
18674
        }
18675
        switch (field.id) {
18676
          case 1: // ROLE_NAME
18677
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18678
              this.roleName = iprot.readString();
18679
            } else { 
18680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18681
            }
18682
            break;
18683
          default:
18684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18685
        }
18686
        iprot.readFieldEnd();
18687
      }
18688
      iprot.readStructEnd();
18689
      validate();
18690
    }
18691
 
18692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18693
      validate();
18694
 
18695
      oprot.writeStructBegin(STRUCT_DESC);
18696
      if (this.roleName != null) {
18697
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
18698
        oprot.writeString(this.roleName);
18699
        oprot.writeFieldEnd();
18700
      }
18701
      oprot.writeFieldStop();
18702
      oprot.writeStructEnd();
18703
    }
18704
 
18705
    @Override
18706
    public String toString() {
18707
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
18708
      boolean first = true;
18709
 
18710
      sb.append("roleName:");
18711
      if (this.roleName == null) {
18712
        sb.append("null");
18713
      } else {
18714
        sb.append(this.roleName);
18715
      }
18716
      first = false;
18717
      sb.append(")");
18718
      return sb.toString();
18719
    }
18720
 
18721
    public void validate() throws org.apache.thrift.TException {
18722
      // check for required fields
18723
    }
18724
 
18725
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18726
      try {
18727
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18728
      } catch (org.apache.thrift.TException te) {
18729
        throw new java.io.IOException(te);
18730
      }
18731
    }
18732
 
18733
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18734
      try {
18735
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18736
      } catch (org.apache.thrift.TException te) {
18737
        throw new java.io.IOException(te);
18738
      }
18739
    }
18740
 
18741
  }
18742
 
18743
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
18744
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
18745
 
18746
    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);
18747
 
18748
    private List<String> success; // required
18749
 
18750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18752
      SUCCESS((short)0, "success");
18753
 
18754
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18755
 
18756
      static {
18757
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18758
          byName.put(field.getFieldName(), field);
18759
        }
18760
      }
18761
 
18762
      /**
18763
       * Find the _Fields constant that matches fieldId, or null if its not found.
18764
       */
18765
      public static _Fields findByThriftId(int fieldId) {
18766
        switch(fieldId) {
18767
          case 0: // SUCCESS
18768
            return SUCCESS;
18769
          default:
18770
            return null;
18771
        }
18772
      }
18773
 
18774
      /**
18775
       * Find the _Fields constant that matches fieldId, throwing an exception
18776
       * if it is not found.
18777
       */
18778
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18779
        _Fields fields = findByThriftId(fieldId);
18780
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18781
        return fields;
18782
      }
18783
 
18784
      /**
18785
       * Find the _Fields constant that matches name, or null if its not found.
18786
       */
18787
      public static _Fields findByName(String name) {
18788
        return byName.get(name);
18789
      }
18790
 
18791
      private final short _thriftId;
18792
      private final String _fieldName;
18793
 
18794
      _Fields(short thriftId, String fieldName) {
18795
        _thriftId = thriftId;
18796
        _fieldName = fieldName;
18797
      }
18798
 
18799
      public short getThriftFieldId() {
18800
        return _thriftId;
18801
      }
18802
 
18803
      public String getFieldName() {
18804
        return _fieldName;
18805
      }
18806
    }
18807
 
18808
    // isset id assignments
18809
 
18810
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18811
    static {
18812
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18813
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18814
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18815
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
18818
    }
18819
 
18820
    public getPermissionsForRoleName_result() {
18821
    }
18822
 
18823
    public getPermissionsForRoleName_result(
18824
      List<String> success)
18825
    {
18826
      this();
18827
      this.success = success;
18828
    }
18829
 
18830
    /**
18831
     * Performs a deep copy on <i>other</i>.
18832
     */
18833
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
18834
      if (other.isSetSuccess()) {
18835
        List<String> __this__success = new ArrayList<String>();
18836
        for (String other_element : other.success) {
18837
          __this__success.add(other_element);
18838
        }
18839
        this.success = __this__success;
18840
      }
18841
    }
18842
 
18843
    public getPermissionsForRoleName_result deepCopy() {
18844
      return new getPermissionsForRoleName_result(this);
18845
    }
18846
 
18847
    @Override
18848
    public void clear() {
18849
      this.success = null;
18850
    }
18851
 
18852
    public int getSuccessSize() {
18853
      return (this.success == null) ? 0 : this.success.size();
18854
    }
18855
 
18856
    public java.util.Iterator<String> getSuccessIterator() {
18857
      return (this.success == null) ? null : this.success.iterator();
18858
    }
18859
 
18860
    public void addToSuccess(String elem) {
18861
      if (this.success == null) {
18862
        this.success = new ArrayList<String>();
18863
      }
18864
      this.success.add(elem);
18865
    }
18866
 
18867
    public List<String> getSuccess() {
18868
      return this.success;
18869
    }
18870
 
18871
    public void setSuccess(List<String> success) {
18872
      this.success = success;
18873
    }
18874
 
18875
    public void unsetSuccess() {
18876
      this.success = null;
18877
    }
18878
 
18879
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18880
    public boolean isSetSuccess() {
18881
      return this.success != null;
18882
    }
18883
 
18884
    public void setSuccessIsSet(boolean value) {
18885
      if (!value) {
18886
        this.success = null;
18887
      }
18888
    }
18889
 
18890
    public void setFieldValue(_Fields field, Object value) {
18891
      switch (field) {
18892
      case SUCCESS:
18893
        if (value == null) {
18894
          unsetSuccess();
18895
        } else {
18896
          setSuccess((List<String>)value);
18897
        }
18898
        break;
18899
 
18900
      }
18901
    }
18902
 
18903
    public Object getFieldValue(_Fields field) {
18904
      switch (field) {
18905
      case SUCCESS:
18906
        return getSuccess();
18907
 
18908
      }
18909
      throw new IllegalStateException();
18910
    }
18911
 
18912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18913
    public boolean isSet(_Fields field) {
18914
      if (field == null) {
18915
        throw new IllegalArgumentException();
18916
      }
18917
 
18918
      switch (field) {
18919
      case SUCCESS:
18920
        return isSetSuccess();
18921
      }
18922
      throw new IllegalStateException();
18923
    }
18924
 
18925
    @Override
18926
    public boolean equals(Object that) {
18927
      if (that == null)
18928
        return false;
18929
      if (that instanceof getPermissionsForRoleName_result)
18930
        return this.equals((getPermissionsForRoleName_result)that);
18931
      return false;
18932
    }
18933
 
18934
    public boolean equals(getPermissionsForRoleName_result that) {
18935
      if (that == null)
18936
        return false;
18937
 
18938
      boolean this_present_success = true && this.isSetSuccess();
18939
      boolean that_present_success = true && that.isSetSuccess();
18940
      if (this_present_success || that_present_success) {
18941
        if (!(this_present_success && that_present_success))
18942
          return false;
18943
        if (!this.success.equals(that.success))
18944
          return false;
18945
      }
18946
 
18947
      return true;
18948
    }
18949
 
18950
    @Override
18951
    public int hashCode() {
18952
      return 0;
18953
    }
18954
 
18955
    public int compareTo(getPermissionsForRoleName_result other) {
18956
      if (!getClass().equals(other.getClass())) {
18957
        return getClass().getName().compareTo(other.getClass().getName());
18958
      }
18959
 
18960
      int lastComparison = 0;
18961
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
18962
 
18963
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18964
      if (lastComparison != 0) {
18965
        return lastComparison;
18966
      }
18967
      if (isSetSuccess()) {
18968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18969
        if (lastComparison != 0) {
18970
          return lastComparison;
18971
        }
18972
      }
18973
      return 0;
18974
    }
18975
 
18976
    public _Fields fieldForId(int fieldId) {
18977
      return _Fields.findByThriftId(fieldId);
18978
    }
18979
 
18980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18981
      org.apache.thrift.protocol.TField field;
18982
      iprot.readStructBegin();
18983
      while (true)
18984
      {
18985
        field = iprot.readFieldBegin();
18986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18987
          break;
18988
        }
18989
        switch (field.id) {
18990
          case 0: // SUCCESS
18991
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18992
              {
18993
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
18994
                this.success = new ArrayList<String>(_list33.size);
18995
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
18996
                {
18997
                  String _elem35; // required
18998
                  _elem35 = iprot.readString();
18999
                  this.success.add(_elem35);
19000
                }
19001
                iprot.readListEnd();
19002
              }
19003
            } else { 
19004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19005
            }
19006
            break;
19007
          default:
19008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19009
        }
19010
        iprot.readFieldEnd();
19011
      }
19012
      iprot.readStructEnd();
19013
      validate();
19014
    }
19015
 
19016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19017
      oprot.writeStructBegin(STRUCT_DESC);
19018
 
19019
      if (this.isSetSuccess()) {
19020
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19021
        {
19022
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19023
          for (String _iter36 : this.success)
19024
          {
19025
            oprot.writeString(_iter36);
19026
          }
19027
          oprot.writeListEnd();
19028
        }
19029
        oprot.writeFieldEnd();
19030
      }
19031
      oprot.writeFieldStop();
19032
      oprot.writeStructEnd();
19033
    }
19034
 
19035
    @Override
19036
    public String toString() {
19037
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19038
      boolean first = true;
19039
 
19040
      sb.append("success:");
19041
      if (this.success == null) {
19042
        sb.append("null");
19043
      } else {
19044
        sb.append(this.success);
19045
      }
19046
      first = false;
19047
      sb.append(")");
19048
      return sb.toString();
19049
    }
19050
 
19051
    public void validate() throws org.apache.thrift.TException {
19052
      // check for required fields
19053
    }
19054
 
19055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19056
      try {
19057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19058
      } catch (org.apache.thrift.TException te) {
19059
        throw new java.io.IOException(te);
19060
      }
19061
    }
19062
 
19063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19064
      try {
19065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19066
      } catch (org.apache.thrift.TException te) {
19067
        throw new java.io.IOException(te);
19068
      }
19069
    }
19070
 
19071
  }
19072
 
352 ashish 19073
}